0b9d921381215478093bc86cca7147dede5ffccf
[gnulib.git] / ChangeLog
1 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2
3         stdalign: new module
4         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5         * modules/stdalign: New files.
6         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8
9         stdalign-tests: new module
10         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11
12         argp: use stdalign
13         * lib/argp-parse.c: Include <stdalign.h>.
14         (alignof): Remove.
15         * modules/argp (Depends-on): Add stdalign.
16
17 2011-10-27  Bruno Haible  <bruno@clisp.org>
18
19         raise test: Avoid a test failure on Linux/MIPS.
20         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
21         because 99 is a valid signal on Linux/MIPS.
22
23 2011-10-27  Bruno Haible  <bruno@clisp.org>
24
25         nonblocking tests: Fix test failure on Linux/MIPS.
26         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
27         Set to 270000.
28
29 2011-10-27  Bruno Haible  <bruno@clisp.org>
30
31         utimensat: Work around problem on Linux/hppa.
32         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
33         values.
34         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
35
36 2011-10-25  Jim Meyering  <meyering@redhat.com>
37
38         maint.mk: fix a bug in sc_prohibit_stddef_without_use
39         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
40         after symbols like NULL, size_t, etc.
41         Reported by Alfred M. Szmidt.
42
43         maint.mk: exempt ENODATA from a syntax-check rule
44         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45         from the sc_prohibit_always-defined_macros syntax-check rule.
46         Add a comment.  See this for more details:
47         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
48
49 2011-10-23  Jim Meyering  <meyering@redhat.com>
50
51         fts: close parent dir FD before returning from post-traversal fts_read
52         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
53         unlink A, even though an FD open on A remained.  This is suboptimal
54         (holding a file descriptor open longer than needed), but otherwise not
55         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
56         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
57         that represents a real problem: it causes the removal of A to fail
58         with e.g., "rm: cannot remove `A': Device or resource busy"
59
60         fts visits each directory twice and keeps a cache (fts_fd_ring) of
61         directory file descriptors.  After completing the final, FTS_DP,
62         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
63         cache, but then proceeded to add a new FD to it via the subsequent
64         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
65         final file descriptor would be closed only via fts_close's call to
66         fd_ring_clear.  Now, it is usually closed earlier, via the final
67         FTS_DP-returning fts_read call.
68         * lib/fts.c (restore_initial_cwd): New function, converted from
69         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
70         Update callers.
71         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
72         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
73
74 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
75             Bruno Haible  <bruno@clisp.org>
76             Jim Meyering  <jim@meyering.net>
77
78         readme-release: improve safety of release prep instructions.
79         * README-release: Don't git pull all branches when only master
80         is needed for the release process.
81         Run make maintainer-clean before changing trees and merging.
82         Don't try to run ./configure right after git pull in case files
83         that influence the bootstrap process have changed, move the
84         ./configure step to after running ./bootstrap.
85         Don't bootstrap "one last time"... it's the first time!
86
87 2011-10-22  Bruno Haible  <bruno@clisp.org>
88
89         errno, strerror-override: Support for MSVC 10.
90         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
91         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
92         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
93         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
94         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
95         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
96         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
97         Assign values compatible with MSVC 10.
98         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
99         New macros.
100         (GNULIB_defined_EWINSOCK): New macro.
101         * lib/strerror-override.c (strerror_override): Update accordingly.
102         * lib/strerror-override.h: Likewise.
103         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
104         longer equal to the corresponding errno value.
105         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
106
107 2011-10-22  Bruno Haible  <bruno@clisp.org>
108
109         perror: Recognize when test program crashes.
110         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
111         strerror, set gl_cv_func_perror_works to no.
112         Reported by Daniel Richard G. <skunk@iskunk.org>.
113
114         perror: Fix indentation.
115         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
116
117 2011-10-22  Bruno Haible  <bruno@clisp.org>
118
119         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
120         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
121         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
122         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
123         functions, not as a macro.
124         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
125         macros.
126         (isfinite, isinf, isnan, signbit): Check overloaded functions and
127         absence of macro.
128         Suggested by Eric Blake.
129         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
130
131 2011-10-21  Bruno Haible  <bruno@clisp.org>
132
133         relocatable-prog-wrapper: Don't leave object files behind.
134         * build-aux/install-reloc: Re-synchronize list of .o files to be
135         removed with list of compilation units.
136
137 2011-10-20  Bruno Haible  <bruno@clisp.org>
138
139         openpty, posix_openpt: Remove code duplication.
140         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
141         * lib/openpty.c: Include <stdlib.h>.
142         (openpty): Use posix_openpt on all platforms except IRIX.
143         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
144
145 2011-10-20  Bruno Haible  <bruno@clisp.org>
146
147         unlockpt: Detect invalid argument.
148         * lib/unlockpt.c: Include <fcntl.h>.
149         (unlockpt): Check whether fd is valid, using fcntl().
150         * modules/unlockpt (Depends-on): Add fcntl-h.
151
152 2011-10-20  Bruno Haible  <bruno@clisp.org>
153
154         openpty: Avoid compilation error on AIX 6.1.
155         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
156
157 2011-10-20  Bruno Haible  <bruno@clisp.org>
158
159         posix_openpt: Support for OpenBSD.
160         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
161         (posix_openpt) [OpenBSD]: New code.
162         * lib/grantpt.c: Include <fcntl.h>.
163         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
164         * modules/grantpt (Depends-on): Add fcntl-h.
165
166 2011-10-20  Bruno Haible  <bruno@clisp.org>
167
168         posix_openpt test: Coding style.
169         * tests/test-posix_openpt.c: Use GNU coding style.
170
171 2011-10-20  Bruno Haible  <bruno@clisp.org>
172
173         grantpt: Support --avoid=pt_chown.
174         * modules/grantpt (Files): Add lib/pty-private.h.
175
176 2011-10-20  Bruno Haible  <bruno@clisp.org>
177
178         posix_openpt: Fix autoconf macro.
179         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
180         unneeded check for _getpty.
181
182 2011-10-20  Bruno Haible  <bruno@clisp.org>
183
184         openpty: Update comments.
185         * lib/openpty.c: Add comments about Minix.
186
187 2011-10-19  Eric Blake  <eblake@redhat.com>
188
189         openpty: relax license
190         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
191
192         pt_chown: use configmake to simplify build
193         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
194
195         ptsname and others: relax license
196         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
197         * modules/unlockpt (License): Likewise.
198         * modules/pt_chown (License): Likewise.
199         * modules/ptsname (License): Likewise.
200         * modules/ttyname_r (License): Likewise.
201
202 2011-10-19  Jim Meyering  <meyering@redhat.com>
203
204         posix_openpt: remove spurious #endif
205         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
206
207 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
208
209         maint.mk: Respect $(build_aux) in web-manual rule.
210         * top/maint.mk (web-manual): Find gen-announce script in user's
211         $(build_aux) directory instead of hard-coding 'build-aux'.
212
213 2011-10-19  Bruno Haible  <bruno@clisp.org>
214
215         posix_openpt: Fix compilation error.
216         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
217         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
218         Mention the openpty module as an alternative.
219
220 2011-10-19  Bruno Haible  <bruno@clisp.org>
221
222         Support for old NeXTstep 3.3 frexp().
223         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
224         execution time of the test to 5 seconds.
225         Reported by Daniel Richard G. <skunk@iskunk.org>.
226
227 2011-10-19  Bruno Haible  <bruno@clisp.org>
228
229         Support for old NeXTstep 3.3 sed.
230         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
231         part, use /.../, not \|...|. Escape periods in the header file name.
232         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
233         Reported by Daniel Richard G. <skunk@iskunk.org>.
234
235 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
236
237         Support for old NeXTstep 3.3 gcc.
238         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
239         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
240         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
241         * lib/spawn.in.h (_Restrict_arr_): Likewise.
242         * lib/regex.h (_Restrict_arr_): Likewise.
243         * lib/regex_internal.h (re_token_t): Likewise.
244         * lib/regexec.c (check_node_accept_bytes): Likewise.
245         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
246
247 2011-10-18  Eric Blake  <eblake@redhat.com>
248
249         posix_openpt: new module
250         * modules/posix_openpt: New module.
251         * m4/posix_openpt.m4: New file.
252         * lib/posix_openpt.c: Likewise.
253         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
254         (gl_STDLIB_H_DEFAULTS): Set defaults.
255         * modules/stdlib (Makefile.am): Substitute macros.
256         * lib/stdlib.in.h (posix_openpt): Declare.
257         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
258         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
259         * modules/posix_openpt-tests: New test module.
260         * tests/test-posix_openpt.c: New test.
261
262 2011-10-15  Bruno Haible  <bruno@clisp.org>
263
264         xstrtoll: Fix compilation failure.
265         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
266         from lib/strtol.c.
267         * doc/posix-headers/limits.texi: Mention missing numerical limits on
268         some platforms.
269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
270
271 2011-10-15  Bruno Haible  <bruno@clisp.org>
272
273         vasnprintf: Optimize bit search operation.
274         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
276         gl_DOUBLE_EXPONENT_LOCATION.
277         * modules/vasnprintf (Files): Add m4/exponentd.m4.
278         * modules/unistdio/u8-vasnprintf (Files): Likewise.
279         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
280         * modules/unistdio/u16-vasnprintf (Files): Likewise.
281         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
282         * modules/unistdio/u32-vasnprintf (Files): Likewise.
283         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
284         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
285         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
286
287 2011-10-15  Bruno Haible  <bruno@clisp.org>
288
289         vasnprintf: Fix comments.
290         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
291
292 2011-10-14  Bruno Haible  <bruno@clisp.org>
293
294         Tests for module 'integer_length_ll'.
295         * modules/integer_length_ll-tests: New file.
296         * tests/test-integer_length_ll.c: New file.
297
298         New module 'integer_length_ll'.
299         * lib/integer_length_ll.c: New file.
300         * modules/integer_length_ll: New file.
301
302 2011-10-14  Bruno Haible  <bruno@clisp.org>
303
304         Tests for module 'integer_length_l'.
305         * modules/integer_length_l-tests: New file.
306         * tests/test-integer_length_l.c: New file.
307
308         New module 'integer_length_l'.
309         * lib/integer_length_l.c: New file.
310         * modules/integer_length_l: New file.
311
312 2011-10-14  Bruno Haible  <bruno@clisp.org>
313
314         Tests for module 'integer_length'.
315         * modules/integer_length-tests: New file.
316         * tests/test-integer_length.c: New file.
317
318         New module 'integer_length'.
319         * lib/integer_length.h: New file.
320         * lib/integer_length.c: New file.
321         * modules/integer_length: New file.
322
323 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
324
325         popen: Fix dependency conditions.
326         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
327
328 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
329
330         perror: Fix autoconf test.
331         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
332         <stdlib.h> and <string.h>.
333
334 2011-10-14  Bruno Haible  <bruno@clisp.org>
335
336         ffsl: Optimize on 64-bit platforms.
337         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
338         unrolling.
339
340 2011-10-13  Bruno Haible  <bruno@clisp.org>
341
342         ffsl: Optimize on 32-bit platforms.
343         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
344         use ffs() without a loop.
345
346         ffsl, ffsll: Optimize for GCC.
347         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
348         * lib/ffsl.c (GCC_BUILTIN): New macro.
349         * lib/ffsll.c (GCC_BUILTIN): Likewise.
350
351 2011-10-13  Bruno Haible  <bruno@clisp.org>
352
353         ffs, bcopy, memset: Support symbol renaming via config.h.
354         * lib/ffs.c: Include <config.h>.
355         * lib/bcopy.c: Likewise.
356         * lib/memset.c: Likewise.
357
358 2011-10-10  Bruno Haible  <bruno@clisp.org>
359
360         atanl: Simplify for platforms where 'long double' == 'double'.
361         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
362         alternative implementation.
363         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
364         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
365         * modules/atanl (Depends-on): Add atan. Update conditions.
366
367 2011-10-10  Bruno Haible  <bruno@clisp.org>
368
369         acosl: Simplify for platforms where 'long double' == 'double'.
370         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
371         alternative implementation.
372         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
373         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
374         * modules/acosl (Depends-on): Add acos. Update conditions.
375
376 2011-10-10  Bruno Haible  <bruno@clisp.org>
377
378         asinl: Simplify for platforms where 'long double' == 'double'.
379         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
380         alternative implementation.
381         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
382         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
383         * modules/asinl (Depends-on): Add asin. Update conditions.
384
385 2011-10-10  Bruno Haible  <bruno@clisp.org>
386
387         tanl: Simplify for platforms where 'long double' == 'double'.
388         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
389         implementation.
390         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
391         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
392         * modules/tanl (Depends-on): Add tan. Update conditions.
393         (configure.ac): Don't compile trigl.c if
394         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
395
396 2011-10-10  Bruno Haible  <bruno@clisp.org>
397
398         cosl: Simplify for platforms where 'long double' == 'double'.
399         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
400         implementation.
401         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
402         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
403         * modules/cosl (Depends-on): Add cos. Update conditions.
404         (configure.ac): Don't compile sincosl.c and trigl.c if
405         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
406
407 2011-10-10  Bruno Haible  <bruno@clisp.org>
408
409         sinl: Simplify for platforms where 'long double' == 'double'.
410         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
411         implementation.
412         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
413         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
414         * modules/sinl (Depends-on): Add sin. Update conditions.
415         (configure.ac): Don't compile sincosl.c and trigl.c if
416         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
417
418 2011-10-10  Bruno Haible  <bruno@clisp.org>
419
420         logl: Simplify for platforms where 'long double' == 'double'.
421         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
422         implementation.
423         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
424         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
425         * modules/logl (Depends-on): Add log. Update conditions.
426
427 2011-10-10  Bruno Haible  <bruno@clisp.org>
428
429         expl: Simplify for platforms where 'long double' == 'double'.
430         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
431         implementation.
432         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
433         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
434         * modules/expl (Depends-on): Add exp. Update conditions.
435
436 2011-10-10  Bruno Haible  <bruno@clisp.org>
437
438         sqrtl: Simplify for platforms where 'long double' == 'double'.
439         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
440         alternative implementation.
441         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
442         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
443         * modules/sqrtl (Depends-on): Update conditions.
444
445 2011-10-10  Bruno Haible  <bruno@clisp.org>
446
447         ldexpl: Simplify for platforms where 'long double' == 'double'.
448         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
449         alternative implementation.
450         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
451         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
452         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
453
454 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
455
456         ffsll: set correct witness
457         * modules/ffsll (configure.ac): Fix typo.
458
459 2011-10-10  Bruno Haible  <bruno@clisp.org>
460
461         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
462         * lib/printf-frexpl.c: Include <config.h>.
463         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
464         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
465         second time.
466         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
467         gl_LONG_DOUBLE_VS_DOUBLE.
468         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
469         conditions.
470
471 2011-10-10  Bruno Haible  <bruno@clisp.org>
472
473         frexpl: Simplify for platforms where 'long double' == 'double'.
474         * lib/frexpl.c: Include <config.h>.
475         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
476         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
477         time.
478         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
479         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
480         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
481         * modules/frexpl (Depends-on): Add frexp. Update conditions.
482         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
483         conditions.
484
485 2011-10-10  Jim Meyering  <meyering@redhat.com>
486
487         test-renameat: don't leave behind a temporary file
488         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
489           ERROR: files left in build directory after distclean:
490           ./gltests/test-renameat.too
491           make[1]: *** [distcleancheck] Error 1
492         Reported by Tom G. Christensen.
493
494 2011-10-09  Bruno Haible  <bruno@clisp.org>
495
496         rint: Determine RINT_LIBM correctly on AIX 7.
497         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
498         directly, not only through a function pointer. Also accept an optional
499         4th argument with extra code.
500         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
501         rintf() call by gcc when optimizing.
502
503         mathfunc.m4: Refactor.
504         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
505         m4 variable.
506
507 2011-10-09  Bruno Haible  <bruno@clisp.org>
508
509         rintl: Simplify for platforms where 'long double' == 'double'.
510         * lib/rintl.c: Include <config.h>.
511         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
512         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
513         time.
514         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
515         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
516         * modules/rintl (Depends-on): Add rint. Update conditions.
517
518 2011-10-09  Bruno Haible  <bruno@clisp.org>
519
520         roundl: Simplify for platforms where 'long double' == 'double'.
521         * lib/roundl.c: Include <config.h>.
522         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
523         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
524         time.
525         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
526         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
527         * modules/roundl (Depends-on): Add round. Update conditions.
528
529 2011-10-09  Bruno Haible  <bruno@clisp.org>
530
531         truncl: Simplify for platforms where 'long double' == 'double'.
532         * lib/truncl.c: Include <config.h>.
533         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
534         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
535         time.
536         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
537         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
538         * modules/truncl (Depends-on): Add trunc. Update conditions.
539
540 2011-10-09  Bruno Haible  <bruno@clisp.org>
541
542         ceill: Simplify for platforms where 'long double' == 'double'.
543         * lib/ceill.c: Include <config.h>.
544         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
545         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
546         time.
547         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
548         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
549         * modules/ceill (Depends-on): Add ceil. Update conditions.
550
551 2011-10-09  Bruno Haible  <bruno@clisp.org>
552
553         floorl: Simplify for platforms where 'long double' == 'double'.
554         * lib/floorl.c: Include <config.h>.
555         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
556         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
557         time.
558         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
559         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
560         * modules/floorl (Depends-on): Add floor. Update conditions.
561
562 2011-10-09  Bruno Haible  <bruno@clisp.org>
563
564         rint: Fix ordering constraints.
565         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
566         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
567         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
568
569 2011-10-09  Bruno Haible  <bruno@clisp.org>
570
571         copysignl: Simplify for platforms where 'long double' == 'double'.
572         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
573         alternative.
574         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
575         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
576         * modules/copysignl (Depends-on): Add copysign. Update conditions.
577
578 2011-10-09  Bruno Haible  <bruno@clisp.org>
579
580         Tests for module 'rintl'.
581         * modules/rintl-tests: New file.
582         * tests/test-rintl.c: New file.
583
584         New module 'rintl'.
585         * lib/math.in.h (rintl): New declaration.
586         * lib/rintl.c: New file.
587         * m4/rintl.m4: New file.
588         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
590         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
591         * modules/rintl: New file.
592         * tests/test-math-c++.cc: Check the declaration of rintl.
593         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
594         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
595         * doc/posix-functions/rintl.texi: Mention the new module.
596
597 2011-10-09  Bruno Haible  <bruno@clisp.org>
598
599         Tests for module 'rintf'.
600         * modules/rintf-tests: New file.
601         * tests/test-rintf.c: New file.
602
603         New module 'rintf'.
604         * lib/math.in.h (rintf): New declaration.
605         * lib/rintf.c: New file.
606         * m4/rintf.m4: New file.
607         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
609         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
610         * modules/rintf: New file.
611         * tests/test-math-c++.cc: Check the declaration of rintf.
612         * doc/posix-functions/rintf.texi: Mention the new module.
613
614 2011-10-09  Bruno Haible  <bruno@clisp.org>
615
616         rint: Support for MSVC.
617         * lib/math.in.h (rint): New declaration.
618         * lib/rint.c: New file.
619         * m4/rint.m4: New file.
620         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
622         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
623         * modules/rint (Description): Fix.
624         (Files): Add lib/rint.c, m4/rint.m4.
625         (Depends-on): Add math.
626         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
627         gl_MATH_MODULE_INDICATOR.
628         * tests/test-math-c++.cc: Check the declaration of rint.
629         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
630         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
631         * doc/posix-functions/rint.texi: Mention the replacement provided by
632         the module.
633
634         rint tests: More tests.
635         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
636         minus-zero.h, infinity.h, nan.h.
637         (main): Skip the test if the current rounding mode is not standard. Add
638         tests for negative numbers, minus zero, infinity, NaN.
639         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
640         tests/nan.h.
641         (Depends-on): Add isnand-nolibm.
642
643 2011-10-09  Bruno Haible  <bruno@clisp.org>
644
645         Tests for module 'copysignl'.
646         * modules/copysignl-tests: New file.
647         * tests/test-copysignl.c: New file.
648
649         New module 'copysignl'.
650         * lib/math.in.h (copysignl): New declaration.
651         * lib/copysignl.c: New file.
652         * m4/copysignl.m4: New file.
653         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
655         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
656         HAVE_COPYSIGNL.
657         * modules/copysignl: New file.
658         * tests/test-math-c++.cc: Check the declaration of copysignl.
659         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
660         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
661         * doc/posix-functions/copysignl.texi: Mention the new module.
662
663 2011-10-09  Bruno Haible  <bruno@clisp.org>
664
665         Tests for module 'copysignf'.
666         * modules/copysignf-tests: New file.
667         * tests/test-copysignf.c: New file.
668
669         New module 'copysignf'.
670         * lib/math.in.h (copysignf): New declaration.
671         * lib/copysignf.c: New file.
672         * m4/copysignf.m4: New file.
673         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
675         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
676         HAVE_COPYSIGNF.
677         * modules/copysignf: New file.
678         * tests/test-math-c++.cc: Check the declaration of copysignf.
679         * doc/posix-functions/copysignf.texi: Mention the new module.
680
681 2011-10-09  Bruno Haible  <bruno@clisp.org>
682
683         Ensure that HAVE_* variables are set to 1 before they are set to 0.
684         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
685         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
686         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
687         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
688         gl_SIGNAL_H_DEFAULTS.
689
690 2011-10-09  Bruno Haible  <bruno@clisp.org>
691
692         poll: Make macro safer.
693         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
694         ac_cv_header_poll_h is not set.
695
696 2011-10-09  Bruno Haible  <bruno@clisp.org>
697
698         copysign: Provide replacement.
699         * lib/math.in.h (copysign): New declaration.
700         * lib/copysign.c: New file.
701         * m4/copysign.m4: New file.
702         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
704         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
705         HAVE_COPYSIGN.
706         * modules/copysign (Description): Clarify.
707         (Files): Add lib/copysign.c, m4/copysign.m4.
708         (Depends-on): Add math, signbit.
709         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
710         gl_MATH_MODULE_INDICATOR.
711         * tests/test-math-c++.cc: Check the declaration of copysign.
712         * doc/posix-functions/copysign.texi: Mention the effects of the module
713         on Minix and MSVC.
714
715 2011-10-09  Bruno Haible  <bruno@clisp.org>
716
717         isinf: Ensure macro on AIX 5.1.
718         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
719         macro.
720         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
721
722 2011-10-09  Bruno Haible  <bruno@clisp.org>
723
724         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
725         * modules/snprintf-posix-tests (configure.ac): Require
726         gl_LONG_DOUBLE_VS_DOUBLE.
727         * modules/sprintf-posix-tests (configure.ac): Likewise.
728         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
729         * modules/vasprintf-posix-tests (configure.ac): Likewise.
730         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
731         * modules/vsprintf-posix-tests (configure.ac): Likewise.
732         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
733         tests on platforms where 'long double' is the same as 'double'.
734         * tests/test-sprintf-posix.h (test_function): Likewise.
735         * tests/test-vasnprintf-posix.c (test_function): Likewise.
736         * tests/test-vasprintf-posix.c (test_function): Likewise.
737
738         *printf: Fix for platforms where 'long double' == 'double'.
739         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
740         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
741         * modules/dprintf-posix (Files): Add m4/math_h.m4.
742         * modules/fprintf-posix (Files): Likewise.
743         * modules/obstack-printf-posix (Files): Likewise.
744         * modules/snprintf-posix (Files): Likewise.
745         * modules/sprintf-posix (Files): Likewise.
746         * modules/vasnprintf (Files): Likewise.
747         * modules/vasnprintf-posix (Files): Likewise.
748         * modules/vasprintf-posix (Files): Likewise.
749         * modules/vdprintf-posix (Files): Likewise.
750         * modules/vfprintf-posix (Files): Likewise.
751         * modules/vsnprintf-posix (Files): Likewise.
752         * modules/vsprintf-posix (Files): Likewise.
753         * modules/unistdio/u8-vasnprintf (Files): Likewise.
754         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
755         * modules/unistdio/u16-vasnprintf (Files): Likewise.
756         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
757         * modules/unistdio/u32-vasnprintf (Files): Likewise.
758         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
759         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
760
761         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
762         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
763         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
764         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
765         'long double'.
766         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
767
768         isinf: Fix for platforms where 'long double' == 'double'.
769         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
770         Don't blindly assume 80-bit 'long double'.
771
772         isfinite: Fix for platforms where 'long double' == 'double'.
773         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
774         Don't blindly assume 80-bit 'long double'.
775
776         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
777         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
778         * modules/isfinite-tests (configure.ac): Require
779         gl_LONG_DOUBLE_VS_DOUBLE.
780         * modules/isinf-tests (configure.ac): Likewise.
781         * modules/isnan-tests (configure.ac): Likewise.
782         * modules/isnanl-tests (configure.ac): Likewise.
783         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
784         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
785         tests on platforms where 'long double' is the same as 'double'.
786         * tests/test-isinf.c (test_isinfl): Likewise.
787         * tests/test-isnan.c (test_long_double): Likewise.
788         * tests/test-isnanl.h (main): Likewise.
789
790 2011-10-08  Bruno Haible  <bruno@clisp.org>
791
792         Tests for module 'tanhf'.
793         * modules/tanhf-tests: New file.
794         * tests/test-tanhf.c: New file.
795
796         New module 'tanhf'.
797         * lib/math.in.h (tanhf): New declaration.
798         * lib/tanhf.c: New file.
799         * m4/tanhf.m4: New file.
800         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
802         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
803         * modules/tanhf: New file.
804         * tests/test-math-c++.cc: Check the declaration of tanhf.
805         * doc/posix-functions/tanhf.texi: Mention the new module.
806
807         tanh: Use a .m4 file.
808         * m4/tanh.m4: New file.
809         * modules/tanh (Files): Add it.
810         (configure.ac): Just invoke gl_FUNC_TANH.
811
812 2011-10-08  Bruno Haible  <bruno@clisp.org>
813
814         Tests for module 'coshf'.
815         * modules/coshf-tests: New file.
816         * tests/test-coshf.c: New file.
817
818         New module 'coshf'.
819         * lib/math.in.h (coshf): New declaration.
820         * lib/coshf.c: New file.
821         * m4/coshf.m4: New file.
822         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
824         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
825         * modules/coshf: New file.
826         * tests/test-math-c++.cc: Check the declaration of coshf.
827         * doc/posix-functions/coshf.texi: Mention the new module.
828
829         cosh: Use a .m4 file.
830         * m4/cosh.m4: New file.
831         * modules/cosh (Files): Add it.
832         (configure.ac): Just invoke gl_FUNC_COSH.
833
834 2011-10-08  Bruno Haible  <bruno@clisp.org>
835
836         Tests for module 'sinhf'.
837         * modules/sinhf-tests: New file.
838         * tests/test-sinhf.c: New file.
839
840         New module 'sinhf'.
841         * lib/math.in.h (sinhf): New declaration.
842         * lib/sinhf.c: New file.
843         * m4/sinhf.m4: New file.
844         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
846         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
847         * modules/sinhf: New file.
848         * tests/test-math-c++.cc: Check the declaration of sinhf.
849         * doc/posix-functions/sinhf.texi: Mention the new module.
850
851         sinh: Use a .m4 file.
852         * m4/sinh.m4: New file.
853         * modules/sinh (Files): Add it.
854         (configure.ac): Just invoke gl_FUNC_SINH.
855
856 2011-10-08  Bruno Haible  <bruno@clisp.org>
857
858         Tests for module 'atan2f'.
859         * modules/atan2f-tests: New file.
860         * tests/test-atan2f.c: New file.
861
862         New module 'atan2f'.
863         * lib/math.in.h (atan2f): New declaration.
864         * lib/atan2f.c: New file.
865         * m4/atan2f.m4: New file.
866         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
868         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
869         * modules/atan2f: New file.
870         * tests/test-math-c++.cc: Check the declaration of atan2f.
871         * doc/posix-functions/atan2f.texi: Mention the new module.
872
873         atan2: Use a .m4 file.
874         * m4/atan2.m4: New file.
875         * modules/atan2 (Files): Add it.
876         (configure.ac): Just invoke gl_FUNC_ATAN2.
877
878 2011-10-08  Bruno Haible  <bruno@clisp.org>
879
880         Tests for module 'atanf'.
881         * modules/atanf-tests: New file.
882         * tests/test-atanf.c: New file.
883
884         New module 'atanf'.
885         * lib/math.in.h (atanf): New declaration.
886         * lib/atanf.c: New file.
887         * m4/atanf.m4: New file.
888         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
890         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
891         * modules/atanf: New file.
892         * tests/test-math-c++.cc: Check the declaration of atanf.
893         * doc/posix-functions/atanf.texi: Mention the new module.
894
895         atan: Use a .m4 file.
896         * m4/atan.m4: New file.
897         * modules/atan (Files): Add it.
898         (configure.ac): Just invoke gl_FUNC_ATAN.
899
900 2011-10-08  Bruno Haible  <bruno@clisp.org>
901
902         Tests for module 'acosf'.
903         * modules/acosf-tests: New file.
904         * tests/test-acosf.c: New file.
905
906         New module 'acosf'.
907         * lib/math.in.h (acosf): New declaration.
908         * lib/acosf.c: New file.
909         * m4/acosf.m4: New file.
910         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
912         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
913         * modules/acosf: New file.
914         * tests/test-math-c++.cc: Check the declaration of acosf.
915         * doc/posix-functions/acosf.texi: Mention the new module.
916
917         acos: Use a .m4 file.
918         * m4/acos.m4: New file.
919         * modules/acos (Files): Add it.
920         (configure.ac): Just invoke gl_FUNC_ACOS.
921
922 2011-10-08  Bruno Haible  <bruno@clisp.org>
923
924         Tests for module 'asinf'.
925         * modules/asinf-tests: New file.
926         * tests/test-asinf.c: New file.
927
928         New module 'asinf'.
929         * lib/math.in.h (asinf): New declaration.
930         * lib/asinf.c: New file.
931         * m4/asinf.m4: New file.
932         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
934         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
935         * modules/asinf: New file.
936         * tests/test-math-c++.cc: Check the declaration of asinf.
937         * doc/posix-functions/asinf.texi: Mention the new module.
938
939         asin: Use a .m4 file.
940         * m4/asin.m4: New file.
941         * modules/asin (Files): Add it.
942         (configure.ac): Just invoke gl_FUNC_ASIN.
943
944 2011-10-08  Bruno Haible  <bruno@clisp.org>
945
946         Tests for module 'tanf'.
947         * modules/tanf-tests: New file.
948         * tests/test-tanf.c: New file.
949
950         New module 'tanf'.
951         * lib/math.in.h (tanf): New declaration.
952         * lib/tanf.c: New file.
953         * m4/tanf.m4: New file.
954         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
956         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
957         * modules/tanf: New file.
958         * tests/test-math-c++.cc: Check the declaration of tanf.
959         * doc/posix-functions/tanf.texi: Mention the new module.
960
961         tan: Use a .m4 file.
962         * m4/tan.m4: New file.
963         * modules/tan (Files): Add it.
964         (configure.ac): Just invoke gl_FUNC_TAN.
965
966 2011-10-08  Bruno Haible  <bruno@clisp.org>
967
968         Tests for module 'cosf'.
969         * modules/cosf-tests: New file.
970         * tests/test-cosf.c: New file.
971
972         New module 'cosf'.
973         * lib/math.in.h (cosf): New declaration.
974         * lib/cosf.c: New file.
975         * m4/cosf.m4: New file.
976         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
978         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
979         * modules/cosf: New file.
980         * tests/test-math-c++.cc: Check the declaration of cosf.
981         * doc/posix-functions/cosf.texi: Mention the new module.
982
983         cos: Use a .m4 file.
984         * m4/cos.m4: New file.
985         * modules/cos (Files): Add it.
986         (configure.ac): Just invoke gl_FUNC_COS.
987
988 2011-10-08  Bruno Haible  <bruno@clisp.org>
989
990         Tests for module 'sinf'.
991         * modules/sinf-tests: New file.
992         * tests/test-sinf.c: New file.
993
994         New module 'sinf'.
995         * lib/math.in.h (sinf): New declaration.
996         * lib/sinf.c: New file.
997         * m4/sinf.m4: New file.
998         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1000         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1001         * modules/sinf: New file.
1002         * tests/test-math-c++.cc: Check the declaration of sinf.
1003         * doc/posix-functions/sinf.texi: Mention the new module.
1004
1005         sin: Use a .m4 file.
1006         * m4/sin.m4: New file.
1007         * modules/sin (Files): Add it.
1008         (configure.ac): Just invoke gl_FUNC_SIN.
1009
1010 2011-10-08  Bruno Haible  <bruno@clisp.org>
1011
1012         Tests for module 'powf'.
1013         * modules/powf-tests: New file.
1014         * tests/test-powf.c: New file.
1015
1016         New module 'powf'.
1017         * lib/math.in.h (powf): New declaration.
1018         * lib/powf.c: New file.
1019         * m4/powf.m4: New file.
1020         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1022         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1023         * modules/powf: New file.
1024         * tests/test-math-c++.cc: Check the declaration of powf.
1025         * doc/posix-functions/powf.texi: Mention the new module.
1026
1027         pow: Use a .m4 file.
1028         * m4/pow.m4: New file.
1029         * modules/pow (Files): Add it.
1030         (configure.ac): Just invoke gl_FUNC_POW.
1031
1032 2011-10-08  Bruno Haible  <bruno@clisp.org>
1033
1034         Tests for module 'log10f'.
1035         * modules/log10f-tests: New file.
1036         * tests/test-log10f.c: New file.
1037
1038         New module 'log10f'.
1039         * lib/math.in.h (log10f): New declaration.
1040         * lib/log10f.c: New file.
1041         * m4/log10f.m4: New file.
1042         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1044         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1045         * modules/log10f: New file.
1046         * tests/test-math-c++.cc: Check the declaration of log10f.
1047         * doc/posix-functions/log10f.texi: Mention the new module.
1048
1049         log10: Use a .m4 file.
1050         * m4/log10.m4: New file.
1051         * modules/log10 (Files): Add it.
1052         (configure.ac): Just invoke gl_FUNC_LOG10.
1053
1054 2011-10-08  Bruno Haible  <bruno@clisp.org>
1055
1056         Tests for module 'logf'.
1057         * modules/logf-tests: New file.
1058         * tests/test-logf.c: New file.
1059
1060         New module 'logf'.
1061         * lib/math.in.h (logf): New declaration.
1062         * lib/logf.c: New file.
1063         * m4/logf.m4: New file.
1064         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1066         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1067         * modules/logf: New file.
1068         * tests/test-math-c++.cc: Check the declaration of logf.
1069         * doc/posix-functions/logf.texi: Mention the new module.
1070
1071         log: Use a .m4 file.
1072         * m4/log.m4: New file.
1073         * modules/log (Files): Add it.
1074         (configure.ac): Just invoke gl_FUNC_LOG.
1075
1076 2011-10-08  Bruno Haible  <bruno@clisp.org>
1077
1078         Tests for module 'expf'.
1079         * modules/expf-tests: New file.
1080         * tests/test-expf.c: New file.
1081
1082         New module 'expf'.
1083         * lib/math.in.h (expf): New declaration.
1084         * lib/expf.c: New file.
1085         * m4/expf.m4: New file.
1086         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1088         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1089         * modules/expf: New file.
1090         * tests/test-math-c++.cc: Check the declaration of expf.
1091         * doc/posix-functions/expf.texi: Mention the new module.
1092
1093         exp: Use a .m4 file.
1094         * m4/exp.m4: New file.
1095         * modules/exp (Files): Add it.
1096         (configure.ac): Just invoke gl_FUNC_EXP.
1097
1098 2011-10-08  Bruno Haible  <bruno@clisp.org>
1099
1100         Tests for module 'sqrtf'.
1101         * modules/sqrtf-tests: New file.
1102         * tests/test-sqrtf.c: New file.
1103
1104         New module 'sqrtf'.
1105         * lib/math.in.h (sqrtf): New declaration.
1106         * lib/sqrtf.c: New file.
1107         * m4/sqrtf.m4: New file.
1108         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1109         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1110         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1111         * modules/sqrtf: New file.
1112         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1113         * doc/posix-functions/sqrtf.texi: Mention the new module.
1114
1115 2011-10-08  Bruno Haible  <bruno@clisp.org>
1116
1117         Tests: Avoid link failures w.r.t. libintl.
1118         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1119         $(LIBINTL).
1120         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1121         $(LIBINTL).
1122         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1123         against $(LIBINTL).
1124         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1125         $(LIBINTL).
1126         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1127         $(LIBINTL).
1128         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1129
1130 2011-10-08  Bruno Haible  <bruno@clisp.org>
1131
1132         pow tests: Defeat compiler optimizations.
1133         * tests/test-pow.c (main): Assign arguments to x and y before use.
1134
1135 2011-10-08  Bruno Haible  <bruno@clisp.org>
1136
1137         gnulib-tool: Improve last commit.
1138         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1139         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1140         ignore dependencies that are not among the modules list.
1141
1142 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1143
1144         gnulib-tool: don't follow dependencies to avoided modules
1145         This fixes a bug that is related to the previous one.
1146         * gnulib-tool (func_modules_transitive_closure)
1147         (func_emit_autoconf_snippets):
1148         Check whether a dependency is acceptable before using it.
1149         (--extract-dependencies): Report an error if --avoid is also used,
1150         since this combination of options is not yet supported.
1151
1152         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1153         Problem reported by Peter Dyballa in
1154         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1155         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1156         when echoing "$condition".
1157
1158 2011-10-07  Bruno Haible  <bruno@clisp.org>
1159
1160         Fix documentation about math functions on MacOS X.
1161         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1162         MacOS X 10.5.
1163         * doc/posix-functions/fdim.texi: Likewise.
1164         * doc/posix-functions/feclearexcept.texi: Likewise.
1165         * doc/posix-functions/fegetenv.texi: Likewise.
1166         * doc/posix-functions/fegetround.texi: Likewise.
1167         * doc/posix-functions/feholdexcept.texi: Likewise.
1168         * doc/posix-functions/feraiseexcept.texi: Likewise.
1169         * doc/posix-functions/fesetenv.texi: Likewise.
1170         * doc/posix-functions/fesetround.texi: Likewise.
1171         * doc/posix-functions/fetestexcept.texi: Likewise.
1172         * doc/posix-functions/feupdateenv.texi: Likewise.
1173         * doc/posix-functions/fmax.texi: Likewise.
1174         * doc/posix-functions/fmin.texi: Likewise.
1175         * doc/posix-functions/log2.texi: Likewise.
1176         * doc/posix-functions/modff.texi: Likewise.
1177         * doc/posix-functions/nan.texi: Likewise.
1178         * doc/posix-functions/nanf.texi: Likewise.
1179         * doc/posix-functions/nextafterf.texi: Likewise.
1180         * doc/posix-functions/remquo.texi: Likewise.
1181
1182 2011-10-07  Bruno Haible  <bruno@clisp.org>
1183
1184         modff: Drop assumption about library that defines modff.
1185         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1186         AC_CHECK_FUNCS.
1187         * modules/modff (Files): Add m4/mathfunc.m4.
1188
1189 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1190
1191         raise tests: Avoid a GCC warning.
1192         * tests/test-raise.c (handler): Use _Noreturn.
1193
1194 2011-10-07  Bruno Haible  <bruno@clisp.org>
1195
1196         Tests for module 'ldexpf'.
1197         * modules/ldexpf-tests: New file.
1198         * tests/test-ldexpf.c: New file.
1199
1200         New module 'ldexpf'.
1201         * lib/math.in.h (ldexpf): New declaration.
1202         * lib/ldexpf.c: New file.
1203         * m4/ldexpf.m4: New file.
1204         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1206         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1207         * modules/ldexpf: New file.
1208         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1209         * doc/posix-functions/ldexpf.texi: Mention the new module.
1210
1211 2011-10-06  Bruno Haible  <bruno@clisp.org>
1212
1213         frexpf: Work around problems on IRIX and mingw.
1214         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1216         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1217         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1218         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1219         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1220         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1221
1222 2011-10-06  Bruno Haible  <bruno@clisp.org>
1223
1224         fabsf: Drop assumption about library that defines fabsf.
1225         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1226         AC_CHECK_FUNCS.
1227         * modules/fabsf (Files): Add m4/mathfunc.m4.
1228
1229 2011-10-06  Bruno Haible  <bruno@clisp.org>
1230
1231         frexpf: Drop assumption about library that defines frexpf.
1232         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1233         'int *', 'float *', 'long double *', 'float', 'long double'.
1234         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1235         AC_CHECK_FUNCS.
1236         * modules/frexpf (Files): Add m4/mathfunc.m4.
1237
1238         Tests for module 'frexpf'.
1239         * modules/frexpf-tests: New file.
1240         * tests/test-frexpf.c: New file.
1241
1242         New module 'frexpf'.
1243         * lib/math.in.h (frexpf): New declaration.
1244         * lib/frexpf.c: New file.
1245         * m4/frexpf.m4: New file.
1246         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1248         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1249         * modules/frexpf: New file.
1250         * tests/test-math-c++.cc: Check the declaration of frexpf.
1251         * doc/posix-functions/frexpf.texi: Mention the new module.
1252
1253 2011-10-06  Bruno Haible  <bruno@clisp.org>
1254
1255         math: Sort function declarations of math.in.h.
1256         * lib/math.in.h (frexp, logb): Move declarations.
1257
1258 2011-10-05  Bruno Haible  <bruno@clisp.org>
1259
1260         Tests for module 'modff'.
1261         * modules/modff-tests: New file.
1262         * tests/test-modff.c: New file.
1263
1264         New module 'modff'.
1265         * lib/math.in.h (modff): New declaration.
1266         * lib/modff.c: New file.
1267         * m4/modff.m4: New file.
1268         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1270         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1271         * modules/modff: New file.
1272         * tests/test-math-c++.cc: Check the declaration of modff.
1273         * doc/posix-functions/modff.texi: Mention the new module.
1274
1275         modf tests: Make test sharper.
1276         * tests/test-modf.c (main): Strengthen upper bound.
1277
1278         modf: Use a .m4 file.
1279         * m4/modf.m4: New file.
1280         * modules/modf (Files): Add it.
1281         (configure.ac): Just invoke gl_FUNC_MODF.
1282
1283 2011-10-05  Bruno Haible  <bruno@clisp.org>
1284
1285         Tests for module 'fmodf'.
1286         * modules/fmodf-tests: New file.
1287         * tests/test-fmodf.c: New file.
1288
1289         New module 'fmodf'.
1290         * lib/math.in.h (fmodf): New declaration.
1291         * lib/fmodf.c: New file.
1292         * m4/fmodf.m4: New file.
1293         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1295         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1296         * modules/fmodf: New file.
1297         * tests/test-math-c++.cc: Check the declaration of fmodf.
1298         * doc/posix-functions/fmodf.texi: Mention the new module.
1299
1300         fmod: Use a .m4 file.
1301         * m4/fmod.m4: New file.
1302         * modules/fmod (Files): Add it.
1303         (configure.ac): Just invoke gl_FUNC_FMOD.
1304
1305 2011-10-05  Bruno Haible  <bruno@clisp.org>
1306
1307         Tests for module 'fabsf'.
1308         * modules/fabsf-tests: New file.
1309         * tests/test-fabsf.c: New file.
1310
1311         New module 'fabsf'.
1312         * lib/math.in.h (fabsf): New declaration.
1313         * lib/fabsf.c: New file.
1314         * m4/fabsf.m4: New file.
1315         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1317         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1318         * modules/fabsf: New file.
1319         * tests/test-math-c++.cc: Check the declaration of fabsf.
1320         * doc/posix-functions/fabsf.texi: Mention the new module.
1321
1322         fabs: Use a .m4 file.
1323         * m4/fabs.m4: New file.
1324         * modules/fabs (Files): Add it.
1325         (configure.ac): Just invoke gl_FUNC_FABS.
1326
1327 2011-10-05  Jim Meyering  <meyering@redhat.com>
1328
1329         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1330         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1331         ls -lL regression introduced in coreutils-8.12, it does so at the
1332         cost of an additional stat call in the common case.  Besides, now
1333         that the kernel change that prompted commit 95f7c57f has been reverted
1334         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1335         we have no use for commit 95f7c57f, "file-has-acl: use
1336         acl_extended_file_nofollow if available".
1337
1338 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1339
1340         file-has-acl: revert unintended change in behavior of ls -L
1341         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1342         derived from...
1343         (file_has_acl): ...code here.  Call it.
1344         This problem was introduced with 2011-07-22 commit 95f7c57f,
1345         "file-has-acl: use acl_extended_file_nofollow if available".
1346         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1347
1348 2011-10-03  Bruno Haible  <bruno@clisp.org>
1349
1350         poll: Avoid link errors on MSVC.
1351         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1352         * modules/poll (Depends-on): Add sockets.
1353         (Link): New section.
1354         * NEWS: Mention the change.
1355         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1356         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1357         $(LIB_POLL) instead of $(LIBSOCKET).
1358
1359 2011-10-03  Bruno Haible  <bruno@clisp.org>
1360
1361         sys_select tests: Fix link error on MSVC 9.
1362         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1363         with $(LIB_SELECT) instead of $(LIBSOCKET).
1364
1365 2011-10-03  Bruno Haible  <bruno@clisp.org>
1366
1367         sys_select: Fix compilation error on mingw.
1368         * lib/sys_select.in.h: On native Windows, include <io.h>.
1369
1370 2011-10-03  Bruno Haible  <bruno@clisp.org>
1371
1372         wmemset: Support for MSVC.
1373         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1374         whether wmemset() exists.
1375
1376 2011-10-03  Bruno Haible  <bruno@clisp.org>
1377
1378         wmemmove: Support for MSVC.
1379         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1380         whether wmemmove() exists.
1381
1382 2011-10-03  Bruno Haible  <bruno@clisp.org>
1383
1384         wmemcpy: Support for MSVC.
1385         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1386         whether wmemcpy() exists.
1387
1388 2011-10-03  Bruno Haible  <bruno@clisp.org>
1389
1390         wmemcmp: Support for MSVC.
1391         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1392         whether wmemcmp() exists.
1393
1394 2011-10-03  Bruno Haible  <bruno@clisp.org>
1395
1396         wmemchr: Support for MSVC.
1397         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1398         whether wmemchr() exists.
1399
1400 2011-10-03  Bruno Haible  <bruno@clisp.org>
1401
1402         glthread/*, strsignal: Support for MSVC.
1403         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1404         including <winsock.h> on MSVC 9.
1405         * lib/glthread/lock.h: Likewise.
1406         * lib/glthread/thread.h: Likewise.
1407         * lib/glthread/tls.h: Likewise.
1408         * lib/glthread/yield.h: Likewise.
1409         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1410         if HAVE_UNISTD_H is false.
1411         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1412
1413 2011-10-03  Bruno Haible  <bruno@clisp.org>
1414
1415         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1416         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1417         Set to 100000.
1418
1419 2011-10-03  Bruno Haible  <bruno@clisp.org>
1420
1421         acl: Fix specification.
1422         * lib/file-has-acl.c (file_has_acl): Fix specification.
1423
1424 2011-10-03  Bruno Haible  <bruno@clisp.org>
1425
1426         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1427         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1428         (compute_curr_prefix, shared_library_fullname,
1429         find_shared_library_fullname, get_shared_library_fullname, relocate):
1430         Use it together with PIC && INSTALLDIR.
1431         Reported by <jojelino@gmail.com>
1432         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1433
1434 2011-10-01  Jim Meyering  <meyering@redhat.com>
1435
1436         maint.mk: adjust a release-related rule not to require use of gzip
1437         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1438         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1439         projects that build only .tar.xz files.  Also fix an erroneous test.
1440
1441         test-linkat: don't leave behind a temporary file
1442         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1443         Otherwise, coreutils' "make distcheck" would fail with this:
1444           Only in /c/cu/tests/torture/coreutils/test/\
1445             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1446           make[2]: *** [my-distcheck] Error 1
1447
1448         float, math: add omitted file
1449         * lib/itold.c: Add file, required for yesterday's float change.
1450
1451 2011-10-01  Bruno Haible  <bruno@clisp.org>
1452
1453         isinf: Fix for OpenBSD/x86.
1454         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1455         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1456         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1457
1458 2011-10-01  Bruno Haible  <bruno@clisp.org>
1459
1460         isfinite: Fix syntax error in configure test.
1461         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1462
1463         isfinite: Fix typo.
1464         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1465         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1466
1467 2011-10-01  Bruno Haible  <bruno@clisp.org>
1468
1469         nonblocking tests: Fix test failure on Linux/IA-64.
1470         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1471         Set to 270000.
1472
1473 2011-10-01  Bruno Haible  <bruno@clisp.org>
1474
1475         mkfifoat tests: Fix a test failure on mingw.
1476         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1477         with error ENOSYS.
1478
1479 2011-09-30  Bruno Haible  <bruno@clisp.org>
1480
1481         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1482         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1483         'long double'. Set REPLACE_ITOLD.
1484         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1485         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1486         * lib/itold.c: New file.
1487         * modules/float (Files): Add lib/itold.c.
1488         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1489         (Makefile.am): Substitute REPLACE_ITOLD.
1490         * modules/math (Depends-on): Add float.
1491         (Makefile.am): Substitute REPLACE_ITOLD.
1492         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1493         * doc/posix-headers/math.texi: Likewise.
1494         * doc/posix-functions/logl.texi: Likewise.
1495
1496 2011-09-30  Bruno Haible  <bruno@clisp.org>
1497
1498         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1499         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1500         Set to 140000.
1501
1502 2011-09-30  Bruno Haible  <bruno@clisp.org>
1503
1504         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1505         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1506         invocation, say "right after AC_PROG_CC_STDC", not "right after
1507         AC_PROG_CC".
1508         Reported by Gary V. Vaughan <gary@gnu.org>.
1509
1510 2011-09-30  Bruno Haible  <bruno@clisp.org>
1511
1512         Centralize C99 requirement.
1513         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1514         * modules/stdarg (configure.ac-early): Invoke it instead of
1515         AC_PROG_CC_STDC.
1516         Reported by Gary V. Vaughan and Paul Eggert.
1517
1518 2011-09-29  Bruno Haible  <bruno@clisp.org>
1519
1520         float: Fix LDBL_MAX value on Linux/PowerPC.
1521         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1522         on Linux/PowerPC.
1523         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1524         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1525         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1526         platform.
1527         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1528
1529 2011-09-29  Bruno Haible  <bruno@clisp.org>
1530
1531         doc: Improve doc about gl_EARLY.
1532         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1533         AC_PROG_CC_STDC invocation.
1534         Reported by Gary V. Vaughan <gary@gnu.org>.
1535
1536 2011-09-28  Bruno Haible  <bruno@clisp.org>
1537
1538         fgetc, fputc, fread, fwrite tests: Fix link error.
1539         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1540         on non-MSVC platforms.
1541         * tests/test-fputc.c (main): Likewise.
1542         * tests/test-fread.c (main): Likewise.
1543         * tests/test-fwrite.c (main): Likewise.
1544         Reported by Jim Meyering.
1545
1546 2011-09-27  Bruno Haible  <bruno@clisp.org>
1547
1548         fputc, fwrite tests: Avoid test failure on MSVC.
1549         * tests/test-fgetc.c: Include msvc-inval.h.
1550         (main): Invoke gl_msvc_inval_ensure_handler.
1551         * tests/test-fputc.c: Include msvc-inval.h.
1552         (main): Invoke gl_msvc_inval_ensure_handler.
1553         * tests/test-fread.c: Include msvc-inval.h.
1554         (main): Invoke gl_msvc_inval_ensure_handler.
1555         * tests/test-fwrite.c: Include msvc-inval.h.
1556         (main): Invoke gl_msvc_inval_ensure_handler.
1557         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1558         * modules/fputc-tests (Depends-on): Likewise.
1559         * modules/fread-tests (Depends-on): Likewise.
1560         * modules/fwrite-tests (Depends-on): Likewise.
1561
1562 2011-09-27  Bruno Haible  <bruno@clisp.org>
1563
1564         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1565         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1566         (raise): Remove older, duplicated declaration.
1567         (_gl_raise_SIGPIPE): New declaration.
1568         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1569         (rpl_raise): Remove function.
1570         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1571         a gnulib-defined SIGPIPE here.
1572         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1573         'sigprocmask' has detected missing signal-blocking and the module
1574         'sigpipe' is enabled.
1575         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1576
1577 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1578
1579         base64-tests: avoid memory leak
1580         * tests/test-base64.c (main): Plug memory leak.
1581
1582         base32: new module
1583         * modules/base32: New module.
1584         * lib/base32.c: New file.
1585         * lib/base32.h: Likewise.
1586         * m4/base32.m4: Likewise.
1587         * modules/base32-tests: New test.
1588         * tests/test-base32.c: Likewise.
1589         * MODULES.html.sh (Misc): Mention it.
1590
1591 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1592
1593         gnulib: use more-standard license notice wording
1594         * gnulib-tool (func_emit_copyright_notice): When emitting a
1595         license notice into a file, use the standard wording as suggested
1596         by the current information for GNU maintainers, except say "file"
1597         rather than "program".  The new wording gives a license version
1598         number, which addresses an issue raised by Glenn Morris in
1599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1600         * m4/onceonly.m4: Use that same wording here, too.
1601
1602         dup2: minor simplification
1603         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1604         as lib/dup2.c no longer uses 'inline'.
1605
1606 2011-09-25  Bruno Haible  <bruno@clisp.org>
1607
1608         strings: Fix compilation error on MSVC.
1609         * lib/strings.in.h: Include <stddef.h> for size_t.
1610
1611 2011-09-25  Bruno Haible  <bruno@clisp.org>
1612
1613         fflush et al.: Document limitation on MSVC.
1614         * doc/posix-functions/fflush.texi: Document possible crash in handling
1615         mode other than DEFAULT_HANDLING.
1616         * doc/posix-functions/fgetc.texi: Likewise.
1617         * doc/posix-functions/fputc.texi: Likewise.
1618         * doc/posix-functions/fread.texi: Likewise.
1619         * doc/posix-functions/fwrite.texi: Likewise.
1620
1621 2011-09-25  Bruno Haible  <bruno@clisp.org>
1622
1623         msvc-inval: Allow three invalid parameter handling modes.
1624         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1625         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1626         macros.
1627         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1628         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1629         SANE_LIBRARY_HANDLING as a no-op.
1630         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1631         <stdlib.h>.
1632         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1633
1634 2011-09-25  Bruno Haible  <bruno@clisp.org>
1635
1636         msvc-inval: Make handler multithread-safe.
1637         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1638         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1639         declarations.
1640         (gl_msvc_inval_current): New declaration.
1641         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1642         Operate on the structure returned by gl_msvc_inval_current().
1643         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1644         Remove varaiables.
1645         (tls_index, tls_initialized): New variables.
1646         (not_per_thread): New variable.
1647         (gl_msvc_inval_current): New function.
1648         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1649         returned by gl_msvc_inval_current().
1650
1651 2011-09-25  Bruno Haible  <bruno@clisp.org>
1652
1653         msvc-inval: Install handler globally.
1654         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1655         !_MSC_VER.
1656         (gl_msvc_invalid_parameter_handler): Remove declaration.
1657         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1658         declarations.
1659         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1660         Install the handler globally, don't uninstall it.
1661         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1662         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1663         currently valid, call RaiseException instead.
1664         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1665         for !_MSC_VER.
1666
1667 2011-09-25  Bruno Haible  <bruno@clisp.org>
1668
1669         strerror_r-posix: Fix for MSVC 9.
1670         * lib/strerror_r.c (local_snprintf): New function.
1671         (snprintf): Define to local_snprintf, not to _snprintf.
1672
1673 2011-09-25  Bruno Haible  <bruno@clisp.org>
1674
1675         ftruncate: Support for MSVC 9.
1676         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1677         (chsize_nothrow): New function.
1678         (chsize): Redefine as a macro.
1679         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1680         * modules/ftruncate (Depends-on): Add msvc-inval.
1681
1682 2011-09-25  Bruno Haible  <bruno@clisp.org>
1683
1684         New module 'fstat'.
1685         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1686         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1687         * lib/fchdir.c (rpl_fstat): Remove function.
1688         * m4/fstat.m4: New file.
1689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1690         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1691         declared.
1692         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1693         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1694         * modules/fstat: New file.
1695         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1696         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1697         is set.
1698         * doc/posix-functions/fstat.texi: Mention the new module and the
1699         problem on MSVC.
1700         * NEWS: Mention the change.
1701         * modules/acl (Depends-on): Add fstat.
1702         * modules/chdir-safer (Depends-on): Likewise.
1703         * modules/chown (Depends-on): Likewise.
1704         * modules/copy-file (Depends-on): Likewise.
1705         * modules/fchdir (Depends-on): Likewise.
1706         * modules/fdopendir (Depends-on): Likewise.
1707         * modules/fopen (Depends-on): Likewise.
1708         * modules/fts (Depends-on): Likewise.
1709         * modules/getcwd (Depends-on): Likewise.
1710         * modules/isapipe (Depends-on): Likewise.
1711         * modules/linkat (Depends-on): Likewise.
1712         * modules/lseek (Depends-on): Likewise.
1713         * modules/mkdir-p (Depends-on): Likewise.
1714         * modules/open (Depends-on): Likewise.
1715         * modules/openat (Depends-on): Likewise.
1716         * modules/read-file (Depends-on): Likewise.
1717         * modules/renameat (Depends-on): Likewise.
1718         * modules/utimens (Depends-on): Likewise.
1719
1720 2011-09-25  Bruno Haible  <bruno@clisp.org>
1721
1722         linkat: Fix compilation on MSVC 9.
1723         * lib/linkat.c: Don't include <stdint.h>.
1724
1725 2011-09-25  Bruno Haible  <bruno@clisp.org>
1726
1727         fclose: Support for MSVC 9.
1728         * lib/fclose.c: Include msvc-inval.h.
1729         (fclose_nothrow): New function.
1730         (rpl_fclose): Use it.
1731         * modules/fclose (Depends-on): Add msvc-inval.
1732         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1733
1734 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1735
1736         dup2: minor simplifications
1737         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1738         that it's a performance win.
1739         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1740         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1741
1742 2011-09-24  Jim Meyering  <meyering@redhat.com>
1743
1744         test-futimens: avoid a warning from gcc -Wshadow
1745         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1746         to avoid a shadowing warning.
1747
1748 2011-09-24  Bruno Haible  <bruno@clisp.org>
1749
1750         fdopen: Support for MSVC 9.
1751         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1752         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1753         * lib/fdopen.c: Include msvc-inval.h.
1754         (fdopen_nothrow): New function.
1755         (rpl_fdopen): Use it.
1756         * modules/fdopen (Depends-on): Add msvc-inval.
1757         * modules/fclose-tests (Depends-on): Add fdopen.
1758         * modules/fflush-tests (Depends-on): Likewise.
1759         * modules/fgetc-tests (Depends-on): Likewise.
1760         * modules/fputc-tests (Depends-on): Likewise.
1761         * modules/fread-tests (Depends-on): Likewise.
1762         * modules/freopen-tests (Depends-on): Likewise.
1763         * modules/fseeko-tests (Depends-on): Likewise.
1764         * modules/ftello-tests (Depends-on): Likewise.
1765         * modules/fwrite-tests  (Depends-on): Likewise.
1766         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1767
1768 2011-09-24  Bruno Haible  <bruno@clisp.org>
1769
1770         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1771         * modules/fgetc-tests (Depends-on): Add unistd.
1772         * modules/fputc-tests (Depends-on): Likewise.
1773         * modules/fread-tests (Depends-on): Likewise.
1774         * modules/fwrite-tests (Depends-on): Likewise.
1775
1776 2011-09-24  Bruno Haible  <bruno@clisp.org>
1777
1778         dup: Simplify autoconf test.
1779         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1780         on gl_MSVC_INVAL's result.
1781
1782 2011-09-24  Bruno Haible  <bruno@clisp.org>
1783
1784         Tests for function fwrite().
1785         * modules/fwrite-tests: New file.
1786         * tests/test-fwrite.c: New file.
1787         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1788
1789         Tests for function fread().
1790         * modules/fread-tests: New file.
1791         * tests/test-fread.c: New file.
1792         * modules/stdio-tests (Depends-on): Add fread-tests.
1793
1794         Activate fputc tests.
1795         * modules/stdio-tests (Depends-on): Add fputc-tests.
1796
1797         Enhance fgetc, fputc tests.
1798         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1799         * tests/test-fputc.c (main): Likewise.
1800
1801 2011-09-24  Bruno Haible  <bruno@clisp.org>
1802
1803         write: Support for MSVC 9.
1804         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1805         is not 1.
1806         * lib/write.c (write_nothrow): New function.
1807         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1808         not 1. Use write_nothrow.
1809         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1810         invalid parameter handler.
1811         (gl_PREREQ_WRITE): New macro.
1812         * modules/write (Depends-on): Add msvc-inval.
1813         (configure.ac): Invoke gl_PREREQ_WRITE.
1814         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1815
1816 2011-09-24  Bruno Haible  <bruno@clisp.org>
1817
1818         read: Fix last commit.
1819         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1820
1821 2011-09-24  Bruno Haible  <bruno@clisp.org>
1822
1823         dup2: Fix last commit.
1824         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1825         (rpl_dup2): Disable fcntl workaround on native Windows.
1826
1827         sigprocmask: Make code safer.
1828         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1829         section that changes macro definitions for this compilation unit.
1830
1831 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1832
1833         dup2: clarify by coalescing Windows-specific material
1834         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1835         "msvc-nothrow.h"' to the Windows-specific section, so that the
1836         Emacs source need not contain these include files.
1837         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1838         Windows-specific fixes into this function rather than just the
1839         nothrow fix, as this shortens and clarifies the code.  Always
1840         define as a function, as that's a bit cleaner than having it be
1841         sometimes a function and sometimes a macro.
1842         (rpl_dup2): Move the Windows-specific stuff out of here and into
1843         ms_windows_dup2.  Don't protect the Haiku-related fix with
1844         "#if !defined __linux__", as the same code also works around
1845         a Linux kernel bug, and it doesn't add any system calls on any
1846         platform.  Add comment about FreeBSD 6.1.
1847
1848         sigprocmask: move #include directive
1849         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1850         Windows-specific section, so that the Emacs source need not
1851         contain msvc-inval.h.
1852
1853 2011-09-23  Bruno Haible  <bruno@clisp.org>
1854
1855         read: Support for MSVC 9.
1856         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1857         is not 1.
1858         * lib/read.c (read_nothrow): New function.
1859         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1860         read_nothrow.
1861         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1862         invalid parameter handler.
1863         (gl_PREREQ_READ): New macro.
1864         * modules/read (Depends-on): Add msvc-inval.
1865         (configure.ac): Invoke gl_PREREQ_READ.
1866         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1867
1868 2011-09-23  Bruno Haible  <bruno@clisp.org>
1869
1870         close: Support for MSVC 9.
1871         * lib/close.c: Include <errno.h>, msvc-inval.h.
1872         (close_nothrow): New function.
1873         (rpl_close): Use it.
1874         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1875         invalid parameter handler.
1876         * modules/close (Depends-on): Add msvc-inval.
1877         * modules/dup2-tests (Depends-on): Add close.
1878         * modules/dup3-tests (Depends-on): Likewise.
1879         * modules/fcntl-tests (Depends-on): Likewise.
1880         * modules/spawn-pipe-tests (Depends-on): Likewise.
1881         * modules/unistd-safer-tests (Depends-on): Likewise.
1882         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1883
1884 2011-09-23  Bruno Haible  <bruno@clisp.org>
1885
1886         New module 'dup'.
1887         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1888         Allow replacement.
1889         * lib/dup.c: New file.
1890         * lib/fchdir.c (rpl_dup): Remove function.
1891         * m4/dup.m4: New file.
1892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1893         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1894         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1895         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1896         * modules/dup: New file.
1897         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1898         'dup' module is in use.
1899         * modules/fdopendir (Depends-on): Add dup.
1900         * modules/fdutimensat-tests (Depends-on): Likewise.
1901         * modules/fts (Depends-on): Likewise.
1902         * modules/futimens-tests (Depends-on): Likewise.
1903         * modules/posix_spawnp-tests (Depends-on): Likewise.
1904         * modules/unistd-safer-tests (Depends-on): Likewise.
1905         * modules/utimens-tests (Depends-on): Likewise.
1906         * doc/posix-functions/dup.texi: Mention the new module and the problem
1907         on MSVC.
1908
1909 2011-09-23  Bruno Haible  <bruno@clisp.org>
1910
1911         getdtablesize: Support for MSVC 9.
1912         * lib/getdtablesize.c: Include msvc-inval.h.
1913         (_setmaxstdio_nothrow): New function.
1914         (_setmaxstdio): Redefine it.
1915         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1916         * modules/getdtablesize (Depends-on): Add msvc-inval.
1917         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1918
1919 2011-09-23  Bruno Haible  <bruno@clisp.org>
1920
1921         signal-h: Rename from signal.
1922         * modules/signal-h: Renamed from modules/signal.
1923         * modules/pthread_sigmask (Depends-on): Update.
1924         * modules/raise (Depends-on): Likewise.
1925         * modules/sigaction (Depends-on): Likewise.
1926         * modules/sigpipe (Depends-on): Likewise.
1927         * modules/sigprocmask (Depends-on): Likewise.
1928         * modules/sys_select (Depends-on): Likewise.
1929         * modules/signal-h-tests: Renamed from modules/signal-tests.
1930         (Files, Depends-on, Makefile.am): Update.
1931         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1932         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1933         (Files, Makefile.am): Update.
1934         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1935         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1936         * modules/signal: New placeholder file.
1937         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1938         * doc/posix-headers/signal.texi: Update.
1939         * NEWS: Mention the change.
1940
1941 2011-09-23  Bruno Haible  <bruno@clisp.org>
1942
1943         sigprocmask: Avoid crashes through signal() on MSVC 9.
1944         * lib/sigprocmask.c: Include msvc-inval.h.
1945         (signal_nothrow): New function.
1946         (signal): Redefine it.
1947         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1948         * modules/sigprocmask (Depends-on): Add msvc-inval.
1949         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1950
1951 2011-09-23  Bruno Haible  <bruno@clisp.org>
1952
1953         Tests for module 'raise'.
1954         * modules/raise-tests: New file.
1955         * tests/test-raise.c: New file.
1956
1957         raise: Support for MSVC.
1958         * lib/signal.in.h (raise): New declaration.
1959         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1960         for native Windows platforms.
1961         * m4/raise.m4: New file.
1962         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1963         HAVE_RAISE, REPLACE_RAISE.
1964         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1965         REPLACE_RAISE.
1966         * modules/raise (Status, Notice): Remove fields.
1967         (Files): Add m4/raise.m4.
1968         (Depends-on): Add signal, msvc-inval.
1969         (configure.ac): Use the common idioms.
1970         (Maintainer): Add me.
1971         * tests/test-signal-c++.cc: Check the signature of raise.
1972         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1973
1974 2011-09-23  Bruno Haible  <bruno@clisp.org>
1975
1976         pipe2: Fix compilation on pre-C99 compilers.
1977         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1978
1979 2011-09-23  Bruno Haible  <bruno@clisp.org>
1980
1981         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1982         * lib/msvc-nothrow.h: New file.
1983         * lib/msvc-nothrow.c: New file.
1984         * m4/msvc-nothrow.m4: New file.
1985         * modules/msvc-nothrow: New file.
1986         * lib/dup2.c: Include msvc-nothrow.h.
1987         (rpl_dup2): No need to protect _get_osfhandle call here.
1988         * lib/accept4.c: Include msvc-nothrow.h.
1989         * lib/error.c: Likewise.
1990         * lib/fcntl.c: Likewise.
1991         * lib/lseek.c: Likewise.
1992         * lib/nonblocking.c: Likewise.
1993         * lib/poll.c: Likewise.
1994         * lib/read.c: Likewise.
1995         * lib/select.c: Likewise.
1996         * lib/sockets.h: Likewise.
1997         * lib/sockets.c: Likewise.
1998         * lib/stdio-read.c: Likewise.
1999         * lib/stdio-write.c: Likewise.
2000         * lib/write.c: Likewise.
2001         * lib/w32sock.h: Likewise.
2002         * lib/w32spawn.h: Likewise.
2003         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2004         * lib/fsync.c: Likewise.
2005         * lib/isapipe.c: Likewise.
2006         * modules/dup2 (Depends-on): Add msvc-nothrow.
2007         * modules/accept4 (Depends-on): Likewise.
2008         * modules/error (Depends-on): Likewise.
2009         * modules/fcntl (Depends-on): Likewise.
2010         * modules/lseek (Depends-on): Likewise.
2011         * modules/nonblocking (Depends-on): Likewise.
2012         * modules/poll (Depends-on): Likewise.
2013         * modules/read (Depends-on): Likewise.
2014         * modules/select (Depends-on): Likewise.
2015         * modules/sockets (Depends-on): Likewise.
2016         * modules/sigpipe (Depends-on): Likewise.
2017         * modules/write (Depends-on): Likewise.
2018         * modules/accept (Depends-on): Likewise.
2019         * modules/bind (Depends-on): Likewise.
2020         * modules/connect (Depends-on): Likewise.
2021         * modules/gethostname (Depends-on): Likewise.
2022         * modules/getpeername (Depends-on): Likewise.
2023         * modules/getsockname (Depends-on): Likewise.
2024         * modules/getsockopt (Depends-on): Likewise.
2025         * modules/ioctl (Depends-on): Likewise.
2026         * modules/listen (Depends-on): Likewise.
2027         * modules/recv (Depends-on): Likewise.
2028         * modules/recvfrom (Depends-on): Likewise.
2029         * modules/send (Depends-on): Likewise.
2030         * modules/sendto (Depends-on): Likewise.
2031         * modules/setsockopt (Depends-on): Likewise.
2032         * modules/shutdown (Depends-on): Likewise.
2033         * modules/socket (Depends-on): Likewise.
2034         * modules/execute (Depends-on): Likewise.
2035         * modules/spawn-pipe (Depends-on): Likewise.
2036         * modules/flock (Depends-on): Likewise.
2037         * modules/fsync (Depends-on): Likewise.
2038         * modules/isapipe (Depends-on): Likewise.
2039         * tests/test-cloexec.c: Include msvc-nothrow.h.
2040         * tests/test-dup-safer.c: Likewise.
2041         * tests/test-dup2.c: Likewise.
2042         * tests/test-dup3.c: Likewise.
2043         * tests/test-fcntl.c: Likewise.
2044         * tests/test-pipe.c: Likewise.
2045         * tests/test-pipe2.c: Likewise.
2046         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2047         * modules/unistd-safer-tests (Depends-on): Likewise.
2048         * modules/dup2-tests (Depends-on): Likewise.
2049         * modules/dup3-tests (Depends-on): Likewise.
2050         * modules/fcntl-tests (Depends-on): Likewise.
2051         * modules/pipe-posix-tests (Depends-on): Likewise.
2052         * modules/pipe2-tests (Depends-on): Likewise.
2053
2054 2011-09-23  Bruno Haible  <bruno@clisp.org>
2055
2056         dup2: Make code more maintainable.
2057         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2058         (rpl_dup2): Use it.
2059         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2060         * modules/dup2 (configure.ac): Invoke it.
2061         Reported by Paul Eggert.
2062
2063 2011-09-23  Bruno Haible  <bruno@clisp.org>
2064
2065         msvc-inval: Fix compilation error.
2066         * lib/msvc-inval.h: Include <excpt.h>.
2067
2068 2011-09-23  Bruno Haible  <bruno@clisp.org>
2069
2070         mkdir: Tweak for MSVC 9.
2071         * lib/sys_stat.in.h: Update comments.
2072         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2073
2074         Tests for module 'chdir'.
2075         * modules/chdir-tests: New file.
2076         * tests/test-chdir.c: New file.
2077
2078         New module 'chdir'.
2079         * modules/chdir: New file.
2080         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2081         (chdir): New declaration.
2082         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2083         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2084         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2085         * tests/test-unistd-c++.cc: Check signature of chdir.
2086         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2087         * modules/chdir-long (Depends-on): Add chdir.
2088         * modules/fchdir (Depends-on): Likewise.
2089         * modules/rename (Depends-on): Likewise.
2090         * modules/savewd (Depends-on): Likewise.
2091
2092         rmdir: Support for mingw, MSVC 9.
2093         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2094         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2095
2096         getcwd: Tweak for MSVC 9.
2097         * lib/unistd.in.h: Update comments.
2098         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2099
2100 2011-09-22  Bruno Haible  <bruno@clisp.org>
2101
2102         strerror_r-posix: Avoid a link error on MSVC.
2103         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2104         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2105
2106 2011-09-22  Bruno Haible  <bruno@clisp.org>
2107
2108         select: Avoid link errors on MSVC.
2109         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2110         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2111         * modules/pselect (Link): Likewise.
2112         * NEWS: Mention the change.
2113         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2114         test-select-stdin against $(LIB_SELECT).
2115         * modules/pselect-tests (Makefile.am): Link test-pselect against
2116         $(LIB_SELECT).
2117
2118 2011-09-22  Bruno Haible  <bruno@clisp.org>
2119
2120         select: Avoid compilation error on MSVC.
2121         * lib/select.c: Don't include <stdbool.h>.
2122
2123 2011-09-21  Bruno Haible  <bruno@clisp.org>
2124
2125         Consolidate all uses of PATH_MAX in *.m4 files.
2126         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2127         macros.
2128         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2129         and gl_PATHMAX_SNIPPET.
2130         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2131         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2132         * modules/chdir-long (Files): Add m4/pathmax.m4.
2133         * modules/getcwd (Files): Likewise.
2134
2135 2011-09-21  Bruno Haible  <bruno@clisp.org>
2136
2137         ftruncate: Un-deprecate, concentrate on Win32 support.
2138         * modules/ftruncate (Status, Notice): Remove sections.
2139         (Depends-on): Add largefile.
2140         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2141         non-mingw platforms.
2142         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2143         include <io.h>.
2144         * modules/perror-tests (Depends-on): Add ftruncate.
2145         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2146         'ftruncate' module.
2147
2148 2011-09-21  Bruno Haible  <bruno@clisp.org>
2149
2150         Add dependencies to new dirent related modules.
2151         * modules/opendir (Depends-on): Add closedir.
2152         * modules/getcwd (Depends-on): Add opendir, closedir.
2153         * modules/dirent-safer-tests (Depends-on): Likewise.
2154         * modules/fdopendir-tests (Depends-on): Likewise.
2155         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2156         * modules/renameat-tests (Depends-on): Likewise.
2157
2158 2011-09-21  Bruno Haible  <bruno@clisp.org>
2159
2160         opendir: Avoid compilation error on mingw.
2161         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2162         * modules/opendir (Depends-on): Add unistd.
2163
2164 2011-09-21  Bruno Haible  <bruno@clisp.org>
2165
2166         ftruncate tests: Avoid a test failure on mingw.
2167         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2168
2169 2011-09-21  Bruno Haible  <bruno@clisp.org>
2170
2171         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2172         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2173         native Windows.
2174
2175 2011-09-21  Bruno Haible  <bruno@clisp.org>
2176
2177         New module 'fdopen'.
2178         * lib/stdio.in.h (fdopen): New declaration.
2179         * lib/fdopen.c: New file.
2180         * m4/fdopen.m4: New file.
2181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2182         REPLACE_FDOPEN.
2183         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2184         REPLACE_FDOPEN.
2185         * modules/fdopen: New file.
2186         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2187         * tests/test-stdio-c++.cc: Check signature of fdopen.
2188         * doc/posix-functions/fdopen.texi: Mention the new module.
2189
2190 2011-09-21  Bruno Haible  <bruno@clisp.org>
2191
2192         unlockpt tests: Avoid test failure on NetBSD 5.1.
2193         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2194         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2195
2196 2011-09-21  Bruno Haible  <bruno@clisp.org>
2197
2198         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2199         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2200         * tests/test-getlogin_r.c (main): Likewise.
2201
2202 2011-09-20  Bruno Haible  <bruno@clisp.org>
2203
2204         time tests: Don't require pid_t.
2205         * doc/posix-headers/time.texi: Revert last change.
2206         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2207         * tests/test-time.c: Comment out the check for pid_t.
2208
2209 2011-09-20  Bruno Haible  <bruno@clisp.org>
2210
2211         fsync tests: Avoid a test failure on mingw.
2212         * tests/test-fsync.c (main): Allow a failure with EIO.
2213
2214 2011-09-20  Bruno Haible  <bruno@clisp.org>
2215
2216         euidaccess: Update comments.
2217         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2218
2219 2011-09-20  Bruno Haible  <bruno@clisp.org>
2220
2221         Ensure EBADF returns for socket functions on mingw.
2222         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2223         descriptor is invalid.
2224         * lib/bind.c (rpl_bind): Likewise.
2225         * lib/connect.c (rpl_connect): Likewise.
2226         * lib/getpeername.c (rpl_getpeername): Likewise.
2227         * lib/getsockname.c (rpl_getsockname): Likewise.
2228         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2229         * lib/listen.c (rpl_listen): Likewise.
2230         * lib/recv.c (rpl_recv): Likewise.
2231         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2232         * lib/send.c (rpl_send): Likewise.
2233         * lib/sendto.c (rpl_sendto): Likewise.
2234         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2235         * lib/shutdown.c (rpl_shutdown): Likewise.
2236
2237 2011-09-20  Bruno Haible  <bruno@clisp.org>
2238
2239         select tests: EBADF tests.
2240         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2241         test_bad_fd): New functions.
2242         (test_function): Invoke also test_bad_fd.
2243
2244 2011-09-20  Bruno Haible  <bruno@clisp.org>
2245
2246         Tests for module 'posix_spawn_file_actions_addopen.
2247         * modules/posix_spawn_file_actions_addopen-tests: New file.
2248         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2249
2250         Tests for module 'posix_spawn_file_actions_adddup2'.
2251         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2252         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2253
2254         Tests for module 'posix_spawn_file_actions_addclose'.
2255         * modules/posix_spawn_file_actions_addclose-tests: New file.
2256         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2257
2258 2011-09-20  Bruno Haible  <bruno@clisp.org>
2259
2260         Tests for module 'unlockpt'.
2261         * modules/unlockpt-tests: New file.
2262         * tests/test-unlockpt.c: New file.
2263         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2264
2265         Tests for module 'grantpt'.
2266         * modules/grantpt-tests: New file.
2267         * tests/test-grantpt.c: New file.
2268         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2269
2270 2011-09-20  Bruno Haible  <bruno@clisp.org>
2271
2272         freopen tests: EBADF tests.
2273         * tests/test-freopen.c: Include errno.h, unistd.h.
2274         (main): Add tests for EBADF, commented out for the moment.
2275
2276         fclose tests: EBADF tests.
2277         * tests/test-fclose.c (main): Add tests for EBADF.
2278
2279         fflush tests: EBADF tests.
2280         * tests/test-fflush.c: Include errno.h, macros.h.
2281         (main): Add tests for EBADF.
2282
2283         ftello tests: EBADF tests.
2284         * tests/test-ftello4.sh: New file.
2285         * tests/test-ftello4.c: New file.
2286         * modules/ftello-tests (Files): Add them.
2287         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2288
2289         fseeko tests: EBADF tests.
2290         * tests/test-fseeko4.sh: New file.
2291         * tests/test-fseeko4.c: New file.
2292         * modules/fseeko-tests (Files): Add them.
2293         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2294
2295         Tests for function fputc().
2296         * modules/fputc-tests: New file.
2297         * tests/test-fputc.c: New file.
2298         * modules/stdio-tests (Depends-on): Add fputc-tests.
2299
2300         Tests for function fgetc().
2301         * modules/fgetc-tests: New file.
2302         * tests/test-fgetc.c: New file.
2303         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2304
2305         Tests for function fdopen().
2306         * modules/fdopen-tests: New file.
2307         * tests/test-fdopen.c: New file.
2308         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2309
2310         Tests for module 'vdprintf'.
2311         * modules/vdprintf-tests: New file.
2312         * tests/test-vdprintf.c: New file.
2313
2314         Tests for module 'dprintf'.
2315         * modules/dprintf-tests: New file.
2316         * tests/test-dprintf.c: New file.
2317
2318 2011-09-20  Bruno Haible  <bruno@clisp.org>
2319
2320         Tests for module 'ioctl'.
2321         * modules/ioctl-tests: New file.
2322         * tests/test-ioctl.c: New file.
2323
2324 2011-09-20  Bruno Haible  <bruno@clisp.org>
2325
2326         fcntl tests: EBADF tests.
2327         * tests/test-fcntl.c (main): Add more tests for EBADF.
2328
2329 2011-09-20  Bruno Haible  <bruno@clisp.org>
2330
2331         utimensat tests: EBADF tests.
2332         * tests/test-utimensat.c (main): Add tests for EBADF.
2333
2334         renameat tests: EBADF tests.
2335         * tests/test-renameat.c (main): Add tests for EBADF.
2336
2337         mkfifoat tests: EBADF tests.
2338         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2339
2340         readlinkat tests: EBADF tests.
2341         * tests/test-readlinkat.c (main): Add tests for EBADF.
2342
2343         symlinkat tests: EBADF tests.
2344         * tests/test-symlinkat.c (main): Add tests for EBADF.
2345
2346         linkat tests: EBADF tests.
2347         * tests/test-linkat.c (main): Add tests for EBADF.
2348
2349         Tests for module 'faccessat'.
2350         * modules/faccessat-tests: New file.
2351         * tests/test-faccessat.c: New file.
2352
2353         fdopendir tests: EBADF tests.
2354         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2355
2356         openat tests: EBADF tests.
2357         * tests/test-fchownat.c (main): Add tests for EBADF.
2358         * tests/test-fstatat.c (main): Likewise.
2359         * tests/test-mkdirat.c (main): Likewise.
2360         * tests/test-openat.c (main): Likewise.
2361         * tests/test-unlinkat.c (main): Likewise.
2362         * tests/test-fchmodat.c: New file.
2363         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2364         (Makefile.am): Also run 'test-fchmodat'.
2365
2366 2011-09-20  Bruno Haible  <bruno@clisp.org>
2367
2368         utimens, futimens, fdutimensat tests: EBADF tests.
2369         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2370
2371         Tests for function fstat().
2372         * modules/fstat-tests: New file.
2373         * tests/test-fstat.c: New file.
2374         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2375
2376 2011-09-20  Bruno Haible  <bruno@clisp.org>
2377
2378         test-ttyname_r tests: EBADF tests.
2379         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2380
2381         Tests for module 'isatty'.
2382         * modules/isatty-tests: New file.
2383         * tests/test-isatty.c: New file.
2384
2385         Tests for module 'write'.
2386         * modules/write-tests: New file.
2387         * tests/test-write.c: New file.
2388
2389         Tests for module 'read'.
2390         * modules/read-tests: New file.
2391         * tests/test-read.c: New file.
2392
2393         pwrite tests: EBADF tests.
2394         * tests/test-pwrite.c (main): Add tests for EBADF.
2395
2396         pread tests: EBADF tests.
2397         * tests/test-pread.c (main): Add tests for EBADF.
2398
2399         lseek tests: EBADF tests.
2400         * tests/test-lseek.c (main): Add more tests for EBADF.
2401
2402         Tests for module 'ftruncate'.
2403         * modules/ftruncate-tests: New file.
2404         * tests/test-ftruncate.sh: New file.
2405         * tests/test-ftruncate.c: New file.
2406
2407         fsync tests: EBADF tests.
2408         * tests/test-fsync.c (main): Add more tests for EBADF.
2409
2410         fdatasync tests: EBADF tests.
2411         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2412
2413         Tests for module 'fchown'.
2414         * modules/fchown-tests: New file.
2415         * tests/test-fchown.c: New file.
2416
2417         Tests for module 'fchmod'.
2418         * modules/fchmod-tests: New file.
2419         * tests/test-fchmod.c: New file.
2420
2421         fchdir tests: EBADF tests.
2422         * tests/test-fchdir.c (main): Add more tests for EBADF.
2423
2424         dup2 tests: EBADF tests.
2425         * tests/test-dup2.c (main): Add more tests for EBADF.
2426
2427         Tests for module 'dup'.
2428         * modules/dup-tests: New file.
2429         * tests/test-dup.c: New file.
2430
2431         Tests for module 'close'.
2432         * modules/close-tests: New file.
2433         * tests/test-close.c: New file.
2434
2435 2011-09-20  Bruno Haible  <bruno@clisp.org>
2436
2437         Tests for module 'shutdown'.
2438         * modules/shutdown-tests: New file.
2439         * tests/test-shutdown.c: New file.
2440
2441         Tests for module 'setsockopt'.
2442         * modules/setsockopt-tests: New file.
2443         * tests/test-setsockopt.c: New file.
2444
2445         Tests for module 'sendto'.
2446         * modules/sendto-tests: New file.
2447         * tests/test-sendto.c: New file.
2448
2449         Tests for module 'send'.
2450         * modules/send-tests: New file.
2451         * tests/test-send.c: New file.
2452
2453         Tests for module 'recvfrom'.
2454         * modules/recvfrom-tests: New file.
2455         * tests/test-recvfrom.c: New file.
2456
2457         Tests for module 'recv'.
2458         * modules/recv-tests: New file.
2459         * tests/test-recv.c: New file.
2460
2461         Tests for module 'listen'.
2462         * modules/listen-tests: New file.
2463         * tests/test-listen.c: New file.
2464
2465         Tests for module 'getsockopt'.
2466         * modules/getsockopt-tests: New file.
2467         * tests/test-getsockopt.c: New file.
2468
2469         Tests for module 'getsockname'.
2470         * modules/getsockname-tests: New file.
2471         * tests/test-getsockname.c: New file.
2472
2473         Tests for module 'getpeername'.
2474         * modules/getpeername-tests: New file.
2475         * tests/test-getpeername.c: New file.
2476
2477         Tests for module 'connect'.
2478         * modules/connect-tests: New file.
2479         * tests/test-connect.c: New file.
2480
2481         Tests for module 'bind'.
2482         * modules/bind-tests: New file.
2483         * tests/test-bind.c: New file.
2484
2485         accept4 tests: Fix for native Windows.
2486         * tests/test-accept4.c: Include sockets.h.
2487         (main): Invoke gl_sockets_startup.
2488         * modules/accept4-tests (Depends-on): Add sockets.
2489
2490         accept tests: Fix for native Windows.
2491         * tests/test-accept.c: Include sockets.h.
2492         (main): Invoke gl_sockets_startup.
2493         * modules/accept-tests (Depends-on): Add sockets.
2494
2495 2011-09-19  Bruno Haible  <bruno@clisp.org>
2496
2497         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2498         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2499         do...while(0).
2500         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2501         Suggested by Paul Eggert.
2502
2503 2011-09-19  Bruno Haible  <bruno@clisp.org>
2504
2505         sched: Ensure pid_t is defined.
2506         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2507         not define pid_t.
2508         * lib/sched.in.h: Include <sys/types.h>.
2509         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2510         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2511
2512 2011-09-19  Bruno Haible  <bruno@clisp.org>
2513
2514         msvc-inval: Ensure the entire expansion is a single statement.
2515         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2516         of braces.
2517
2518 2011-09-19  Jim Meyering  <meyering@redhat.com>
2519
2520         tests: use printf, not echo in init.sh's warn_ function
2521         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2522         misbehave when given strings containing a backslash or starting
2523         with e.g., -n.  James Youngman suggested setting IFS.
2524
2525 2011-09-19  Eric Blake  <eblake@redhat.com>
2526
2527         futimens: enhance test
2528         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2529         closed non-negative fd.
2530
2531         date: accept 'hence' as opposite of 'ago'
2532         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2533         * tests/test-parse-datetime.c (main): Enhance test.
2534         Suggested by Jesse Wilson.
2535
2536 2011-09-19  Jim Meyering  <meyering@redhat.com>
2537
2538         getcwd: don't fail in a deep directory on a system without openat
2539         Before this change, getcwd would fail when called from a directory
2540         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2541         the non-openat implementation used "..", "../..", "../../..", etc.
2542         to access ancestor directories.  With too many, that string would
2543         be longer than PATH_MAX.
2544         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2545         using gnulib's openat replacement.
2546         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2547         we're using the replacement function.
2548
2549 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2550
2551         maint.mk: avoid warnings from perl about missing files
2552         * top/maint.mk (def_sym_regex): Ignore files listed in
2553         $(gl_other_headers_) that do not exist, say because a project
2554         does not use a corresponding module.
2555
2556 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2557
2558         stat: use pathmax.h only if needed
2559         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2560         This is better for Emacs, which does not have a mingw port and
2561         therefore can avoid the pathmax module.
2562
2563         utimens: remove dependency on dup2
2564         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2565         to work around the Linux kernel bug.
2566         * modules/utimens (Depends-on): Remove dup2.
2567
2568 2011-09-18  Bruno Haible  <bruno@clisp.org>
2569
2570         inet_ntop, inet_pton: Look for it also in libresolv.
2571         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2572         libnsl, search for it in libresolv.
2573         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2574         Needed on Solaris 7.
2575
2576 2011-09-18  Bruno Haible  <bruno@clisp.org>
2577
2578         accept, accept4 tests: Avoid link error on Solaris.
2579         * modules/accept-tests (Makefile.am): Link test-accept against
2580         $(LIBSOCKET).
2581         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2582         $(LIBSOCKET).
2583
2584         accept4: Avoid link error on Solaris.
2585         * modules/accept4 (Link): New section.
2586
2587         socket functions: Avoid link errors on Solaris.
2588         * modules/accept (Depends-on): Add socketlib.
2589         (Link): New section.
2590         * modules/bind (Depends-on): Add socketlib.
2591         (Link): New section.
2592         * modules/connect (Depends-on): Add socketlib.
2593         (Link): New section.
2594         * modules/getpeername (Depends-on): Add socketlib.
2595         (Link): New section.
2596         * modules/getsockname (Depends-on): Add socketlib.
2597         (Link): New section.
2598         * modules/getsockopt (Depends-on): Add socketlib.
2599         (Link): New section.
2600         * modules/listen (Depends-on): Add socketlib.
2601         (Link): New section.
2602         * modules/recv (Depends-on): Add socketlib.
2603         (Link): New section.
2604         * modules/recvfrom (Depends-on): Add socketlib.
2605         (Link): New section.
2606         * modules/send (Depends-on): Add socketlib.
2607         (Link): New section.
2608         * modules/sendto (Depends-on): Add socketlib.
2609         (Link): New section.
2610         * modules/setsockopt (Depends-on): Add socketlib.
2611         (Link): New section.
2612         * modules/shutdown (Depends-on): Add socketlib.
2613         (Link): New section.
2614         * modules/socket (Depends-on): Add socketlib.
2615         (Link): New section.
2616
2617 2011-09-18  Bruno Haible  <bruno@clisp.org>
2618
2619         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2620         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2621         than 5 seconds.
2622         * modules/ptsname-tests (configure.ac): Test for alarm.
2623
2624 2011-09-18  Bruno Haible  <bruno@clisp.org>
2625
2626         posix_spawn_file_actions_add*: Fix module dependencies.
2627         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2628         posix_spawn_file_actions_init.
2629         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2630         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2631
2632 2011-09-18  Bruno Haible  <bruno@clisp.org>
2633
2634         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2635         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2636         * tests/test-renameat.c (main): Likewise.
2637
2638 2011-09-18  Bruno Haible  <bruno@clisp.org>
2639
2640         Tests for module 'accept4'.
2641         * modules/accept4-tests: New file.
2642         * tests/test-accept4.c: New file.
2643
2644 2011-09-18  Bruno Haible  <bruno@clisp.org>
2645
2646         Tests for module 'accept'.
2647         * modules/accept-tests: New file.
2648         * tests/test-accept.c: New file.
2649
2650 2011-09-18  Bruno Haible  <bruno@clisp.org>
2651
2652         dup2: Support for MSVC.
2653         * lib/dup2.c: Include msvc-inval.h.
2654         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2655         _get_osfhandle calls.
2656         * modules/dup2 (Depends-on): Add msvc-inval.
2657         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2658
2659         New module 'msvc-inval'.
2660         * lib/msvc-inval.h: New file.
2661         * lib/msvc-inval.c: New file.
2662         * m4/msvc-inval.m4: New file.
2663         * modules/msvc-inval: New file.
2664
2665 2011-09-17  Bruno Haible  <bruno@clisp.org>
2666
2667         Tests for module 'pclose'.
2668         * modules/pclose-tests: New file.
2669
2670         New module 'pclose'.
2671         * lib/stdio.in.h (pclose): New declaration.
2672         * lib/pclose.c: New file.
2673         * m4/pclose.m4: New file.
2674         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2675         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2676         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2677         * modules/pclose: New file.
2678         * modules/popen-tests (Depends-on): Add pclose.
2679         * modules/popen-safer-tests (Depends-on): Likewise.
2680         * doc/posix-functions/pclose.texi: Mention the new module.
2681
2682 2011-09-17  Bruno Haible  <bruno@clisp.org>
2683
2684         popen: Support for MSVC.
2685         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2686         * lib/popen.c (popen): Provide alternate definition for native Windows.
2687         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2689         * modules/popen (Depends-on, configure.ac): Update condition.
2690         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2691         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2692         fixed.
2693
2694 2011-09-17  Bruno Haible  <bruno@clisp.org>
2695
2696         isnanl, isnand, isnanf: Work around MSVC bug.
2697         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2698
2699 2011-09-17  Bruno Haible  <bruno@clisp.org>
2700
2701         sys_socket tests: Fix recent mistake.
2702         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2703
2704 2011-09-17  Bruno Haible  <bruno@clisp.org>
2705
2706         putenv: Support for MSVC.
2707         * modules/putenv (Depends-on): Add environ.
2708         * lib/putenv.c (environ): Disable declaration.
2709         * lib/unistd.in.h: Update comment.
2710
2711 2011-09-17  Bruno Haible  <bruno@clisp.org>
2712
2713         math: Avoid macro redefinition warnings on MSVC.
2714         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2715         Undefine before redefining.
2716
2717 2011-09-17  Bruno Haible  <bruno@clisp.org>
2718
2719         doc: Mention functions which are declared as macros.
2720         * doc/posix-functions/*[fl].texi: Mention that some functions are
2721         defined as macros with arguments only.
2722
2723 2011-09-17  Bruno Haible  <bruno@clisp.org>
2724
2725         Add dependencies to new dirent related modules.
2726         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2727         * modules/fts (Depends-on): Likewise.
2728         * modules/glob (Depends-on): Likewise.
2729         * modules/savedir (Depends-on): Likewise.
2730         * modules/scandir (Depends-on): Likewise.
2731         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2732         * modules/fdopendir (Depends-on): Add opendir.
2733
2734 2011-09-17  Bruno Haible  <bruno@clisp.org>
2735
2736         inet_pton: Support for MSVC on Windows Vista or newer.
2737         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2738         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2739         HAVE_DECL_INET_PTON is defined.
2740         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2741         On platforms with <winsock2.h>, test whether inet_pton is declared in
2742         <ws2tcpip.h>. If so, arrange to replace it.
2743         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2744         REPLACE_INET_PTON.
2745         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2746         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2747         (Depends-on, configure.ac): Update condition.
2748         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2749
2750 2011-09-17  Bruno Haible  <bruno@clisp.org>
2751
2752         inet_ntop: Support for MSVC on Windows Vista or newer.
2753         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2754         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2755         HAVE_DECL_INET_NTOP is defined.
2756         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2757         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2758         <ws2tcpip.h>. If so, arrange to replace it.
2759         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2760         REPLACE_INET_NTOP.
2761         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2762         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2763         (Depends-on, configure.ac): Update condition.
2764         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2765
2766 2011-09-16  Eric Blake  <eblake@redhat.com>
2767
2768         test-fsync: yet another enhancement
2769         * tests/test-fsync.c (main): Also test behavior on read-only text
2770         file.
2771
2772 2011-09-16  Bruno Haible  <bruno@clisp.org>
2773
2774         Enhance fsync, fdatasync tests.
2775         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2776         * tests/test-fdatasync.c (main): Likewise.
2777
2778 2011-09-16  Bruno Haible  <bruno@clisp.org>
2779
2780         Support for MSVC compiler: Ensure mode_t gets defined.
2781         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2782         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2784         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2785         * tests/test-fcntl-h.c: Check that mode_t is defined.
2786         * tests/test-sys_stat.c: Likewise.
2787         * tests/test-sys_types.c: Likewise.
2788         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2789         * doc/posix-headers/sys_stat.texi: Likewise.
2790         * doc/posix-headers/sys_types.texi: Likewise.
2791
2792 2011-09-16  Bruno Haible  <bruno@clisp.org>
2793
2794         sys_stat: Support for MSVC.
2795         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2796         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2797         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2798         MSVC.
2799
2800 2011-09-16  Bruno Haible  <bruno@clisp.org>
2801
2802         Support for MSVC compiler: Ensure off_t gets defined.
2803         * lib/unistd.in.h: Include <sys/types.h>.
2804         * tests/test-fcntl-h.c: Check that off_t is defined.
2805         * tests/test-sys_stat.c: Likewise.
2806         * tests/test-sys_types.c: Likewise.
2807
2808 2011-09-16  Eric Blake  <eblake@redhat.com>
2809
2810         fdatasync: port to Solaris
2811         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2812         * modules/fdatasync (Link): Document it.
2813         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2814
2815         fdatasync: port to MacOS X 10.7
2816         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2817         declared.
2818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2819         * modules/unistd (Makefile.am): Substitute it.
2820         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2821         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2822
2823         fdatasync: minor improvements
2824         * modules/fdatasync (Depends-on): Add condition for fsync.
2825         * lib/fdatasync.c (fdatasync): Add comment.
2826         * tests/test-unistd-c++.cc: Test fdatasync.
2827
2828         unistd: update refs to newer POSIX
2829         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2830         Suggested by Bruno Haible.
2831
2832         fdatasync: new module
2833         * modules/fsync (Description): Document difference to fdatasync.
2834         * modules/fdatasync: New module.
2835         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2836         * lib/fdatasync.c (fdatasync): Likewise.
2837         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2838         defaults.
2839         * modules/unistd (Makefile.am): Set witnesses.
2840         * lib/unistd.in.h (fdatasync): Declare.
2841         * MODULES.html.sh: Document it.
2842         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2843         * modules/fdatasync-tests: New test.
2844         * tests/test-fdatasync.c: Likewise.
2845
2846 2011-09-16  Eric Blake  <eblake@redhat.com>
2847
2848         test-fsync: enhance tests
2849         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2850         * tests/test-fsync.c (main): Enhance test.
2851
2852 2011-09-15  Bruno Haible  <bruno@clisp.org>
2853
2854         Support for MSVC compiler: Ensure ssize_t gets defined.
2855         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2856         * doc/posix-headers/stdio.texi: Likewise.
2857         * modules/stdio (Depends-on): Add ssize_t.
2858         * modules/sys_socket (Depends-on): Likewise.
2859         * modules/sys_types (Depends-on): Likewise.
2860         * modules/sys_uio (Depends-on): Likewise.
2861         * modules/unistd (Depends-on): Likewise.
2862         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2863         * tests/test-sys_types.c: Check that ssize_t is defined.
2864
2865 2011-09-14  Bruno Haible  <bruno@clisp.org>
2866
2867         Avoid using #, the m4 comment starter character, near brackets.
2868         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2869         delimiter character in sed expressions.
2870         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2871         Suggested by Eric Blake.
2872
2873         Properly quote AC_CHECK_DECLS' 4th argument.
2874         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2875         argument.
2876         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2877         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2878         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2879         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2880         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2881         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2882         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2883         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2884         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2885         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2886         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2887         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2888         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2889         * m4/isinf.m4 (gl_ISINF): Likewise.
2890         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2891         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2892         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2893         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2894         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2895         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2896         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2897         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2898         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2899         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2900         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2903         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2905         Reported by Eric Blake.
2906
2907         Properly quote AC_CHECK_DECL's 4th argument.
2908         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2909         argument.
2910         * m4/argp.m4 (gl_ARGP): Likewise.
2911         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2912         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2913         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2914         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2915         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2916         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2917         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2918         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2919         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2920         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2921         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2922         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2923         Reported by Eric Blake.
2924
2925 2011-09-14  Eric Blake  <eblake@redhat.com>
2926
2927         opendir: avoid compile warning
2928         * lib/opendir.c (includes): Always include errno.h.
2929         Reported by Tatsuro MATSUOKA.
2930
2931 2011-09-14  Jim Meyering  <meyering@redhat.com>
2932
2933         maint.mk: sc_tight_scope: propagate failure from sub-make
2934         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2935         Reported by Martin von Gagern.
2936
2937 2011-09-13  Bruno Haible  <bruno@clisp.org>
2938
2939         tempname: Support for MSVC.
2940         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2941         MSVC.
2942         * modules/tempname (Depends-on): Add fcntl-h.
2943
2944 2011-09-13  Bruno Haible  <bruno@clisp.org>
2945
2946         sys_time: Support for MSVC.
2947         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2948         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2949         include <winsock2.h>.
2950         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2951         function declarations that collide with POSIX.
2952         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2953         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2954
2955 2011-09-13  Bruno Haible  <bruno@clisp.org>
2956
2957         stat: Support for MSVC.
2958         * lib/stat.c: Include pathmax.h.
2959         * modules/stat (Depends-on): Add pathmax.
2960
2961         pathmax: Support for native Windows.
2962         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2963
2964 2011-09-12  Bruno Haible  <bruno@clisp.org>
2965
2966         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2967         * lib/dirent.in.h (struct dirent): New type.
2968         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2969         DT_WHT): New macros.
2970         (DIR): New type.
2971         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2972         (readdir, rewinddir): New declarations.
2973         * lib/dirent-private.h: New file.
2974         * lib/opendir.c: New file.
2975         * lib/readdir.c: New file.
2976         * lib/rewinddir.c: New file.
2977         * lib/closedir.c: New file.
2978         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2979         * m4/opendir.m4: New file.
2980         * m4/readdir.m4: New file.
2981         * m4/rewinddir.m4: New file.
2982         * m4/closedir.m4: New file.
2983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2984         REPLACE_CLOSEDIR here.
2985         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2986         readdir, rewinddir are declared.
2987         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2988         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2989         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2990         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2991         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2992         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2993         * modules/opendir: New file.
2994         * modules/readdir: New file.
2995         * modules/rewinddir: New file.
2996         * modules/closedir: New file.
2997         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2998         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2999         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3000         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3001         * NEWS: Mention the 'fchdir' change.
3002
3003 2011-09-11  Bruno Haible  <bruno@clisp.org>
3004
3005         asm-underscore.m4: Support for MSVC.
3006         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3007         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3008
3009 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3010
3011         Doc about crypt functions.
3012         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3013         needing for _GNU_SOURCE to get crypt.
3014         * doc/posix-functions/encrypt.texi: Likewise.
3015         * doc/posix-functions/setkey.texi: Likewise.
3016
3017 2011-09-11  Bruno Haible  <bruno@clisp.org>
3018
3019         doc: Update regarding MSVC 9.
3020         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3021         tested".
3022         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3023         * doc/posix-headers/*.texi: Likewise.
3024         * doc/pastposix-functions/*.texi: Likewise.
3025         * doc/glibc-functions/*.texi: Likewise.
3026         * doc/glibc-headers/*.texi: Likewise.
3027
3028 2011-09-11  Bruno Haible  <bruno@clisp.org>
3029
3030         unistd et al.: Don't assume <unistd.h> exists.
3031         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3032         does not exist.
3033         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3034         exist. But include <stdlib.h>.
3035         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3036         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3037         symlink() does not exist.
3038         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3039         include <io.h> instead.
3040         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3041         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3042         include <direct.h> instead.
3043         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3045         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3046         <io.h> instead.
3047         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3048         correctly if the system does not have hard links.
3049         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3050         <direct.h> instead.
3051         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3052         it when looking for function declarations.
3053         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3054         <direct.h> and <io.h> instead.
3055         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3056
3057 2011-09-11  Bruno Haible  <bruno@clisp.org>
3058
3059         strcase: Support for MSVC.
3060         * modules/strcase (Status, Notice): Remove obsoletion mark.
3061         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3062         * doc/posix-functions/strncasecmp.texi: Likewise.
3063
3064         strings: Don't assume <strings.h> exists.
3065         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3066         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3067         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3068         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3069
3070 2011-09-11  Bruno Haible  <bruno@clisp.org>
3071
3072         dirent: Don't assume <dirent.h> exists.
3073         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3074         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3075         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3076         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3077
3078 2011-09-11  Bruno Haible  <bruno@clisp.org>
3079
3080         Fix wint_t on MSVC.
3081         * lib/wchar.in.h (wint_t): On MSVC, override it.
3082         * lib/wctype.in.h (wint_t): Likewise.
3083         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3084         MSVC.
3085         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3086         * doc/posix-headers/wctype.texi: Likewise.
3087
3088 2011-09-11  Bruno Haible  <bruno@clisp.org>
3089
3090         sys_types: Fix typo.
3091         * lib/sys_types.in.h: Fix typo in comment.
3092         Reported by Paul Eggert.
3093
3094         Support for MSVC compiler: Ensure size_t gets defined.
3095         * modules/strings (Depends-on): Add 'sys_types'.
3096         * modules/sys_uio (Depends-on): Likewise.
3097         * lib/sys_uio.in.h: Update comment.
3098
3099         C++ tests for module 'sys_types'.
3100         * modules/sys_types-c++-tests: New file.
3101         * tests/test-sys_types-c++.cc: New file.
3102
3103         Tests for module 'sys_types'.
3104         * modules/sys_types-tests: New file.
3105         * tests/test-sys_types.c: New file.
3106
3107         New module 'sys_types'.
3108         * lib/sys_types.in.h: New file.
3109         * m4/sys_types_h.m4: New file.
3110         * modules/sys_types: New file.
3111         * doc/posix-headers/sys_types.texi: Mention the new module and the
3112         size_t problem on MSVC 9.
3113
3114 2011-09-11  Bruno Haible  <bruno@clisp.org>
3115
3116         Support for MSVC compiler: Avoid division by a literal 0.
3117         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3118         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3119         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3120         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3121         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3122         * tests/infinity.h: New file.
3123         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3124         on MSVC.
3125         * tests/test-ceilf1.c: Include infinity.h.
3126         (main): Use Infinityf.
3127         * tests/test-ceil1.c: Include infinity.h.
3128         (main): Use Infinityd.
3129         * tests/test-ceill.c: Include infinity.h.
3130         (main): Use Infinityl.
3131         * tests/test-dprintf-posix.c: Include infinity.h.
3132         (test_function): Use Infinityd.
3133         * tests/test-floorf1.c: Include infinity.h.
3134         (main): Use Infinityf.
3135         * tests/test-floor1.c: Include infinity.h.
3136         (main): Use Infinityd.
3137         * tests/test-floorl.c: Include infinity.h.
3138         (main): Use Infinityl.
3139         * tests/test-fprintf-posix.c: Include infinity.h.
3140         (test_function): Use Infinityd.
3141         * tests/test-frexp.c: Include infinity.h.
3142         (main): Use Infinityd.
3143         * tests/test-frexpl.c: Include infinity.h.
3144         (main): Use Infinityl.
3145         * tests/test-isfinite.c: Include infinity.h.
3146         (test_isfinitef): Use Infinityf.
3147         (test_isfinited): Use Infinityd.
3148         (test_isfinitel): Use Infinityl.
3149         * tests/test-isinf.c: Include infinity.h.
3150         (test_isinff): Use Infinityf.
3151         (test_isinfd): Use Infinityd.
3152         (test_isinfl): Use Infinityl.
3153         * tests/test-isnan.c: Include infinity.h.
3154         (test_float): Use Infinityf.
3155         (test_double): Use Infinityd.
3156         (test_long_double): Use Infinityl.
3157         * tests/test-isnanf.h: Include infinity.h.
3158         (main): Use Infinityf.
3159         * tests/test-isnand.h: Include infinity.h.
3160         (main): Use Infinityd.
3161         * tests/test-isnanl.h: Include infinity.h.
3162         (main): Use Infinityl.
3163         * tests/test-ldexpl.c: Include infinity.h.
3164         (main): Use Infinityl.
3165         * tests/test-printf-posix.h: Include infinity.h.
3166         (test_function): Use Infinityd.
3167         * tests/test-roundf1.c: Include infinity.h.
3168         (main): Use Infinityf.
3169         * tests/test-round1.c: Include infinity.h.
3170         (main): Use Infinityd.
3171         * tests/test-roundl.c: Include infinity.h.
3172         (main): Use Infinityl.
3173         * tests/test-signbit.c: Include infinity.h.
3174         (test_signbitf): Use Infinityf.
3175         (test_signbitd): Use Infinityd.
3176         (test_signbitl): Use Infinityl.
3177         * tests/test-snprintf-posix.h: Include infinity.h.
3178         (test_function): Use Infinityd, Infinityl.
3179         * tests/test-sprintf-posix.h: Include infinity.h.
3180         (test_function): Use Infinityd, Infinityl.
3181         * tests/test-truncf1.c: Include infinity.h.
3182         (main): Use Infinityf.
3183         * tests/test-trunc1.c: Include infinity.h.
3184         (main): Use Infinityd.
3185         * tests/test-truncl.c: Include infinity.h.
3186         (main): Use Infinityl.
3187         * tests/test-vasnprintf-posix.c: Include infinity.h.
3188         (test_function): Use Infinityd, Infinityl.
3189         * tests/test-vasprintf-posix.c: Include infinity.h.
3190         (test_function): Use Infinityd, Infinityl.
3191         * modules/ceilf-tests (Files): Add tests/infinity.h.
3192         * modules/ceil-tests (Files): Likewise.
3193         * modules/ceill-tests (Files): Likewise.
3194         * modules/dprintf-posix-tests (Files): Likewise.
3195         * modules/floorf-tests (Files): Likewise.
3196         * modules/floor-tests (Files): Likewise.
3197         * modules/floorl-tests (Files): Likewise.
3198         * modules/fprintf-posix-tests (Files): Likewise.
3199         * modules/frexp-tests (Files): Likewise.
3200         * modules/frexp-nolibm-tests (Files): Likewise.
3201         * modules/frexpl-tests (Files): Likewise.
3202         * modules/frexpl-nolibm-tests (Files): Likewise.
3203         * modules/isfinite-tests (Files): Likewise.
3204         * modules/isinf-tests (Files): Likewise.
3205         * modules/isnan-tests (Files): Likewise.
3206         * modules/isnanf-tests (Files): Likewise.
3207         * modules/isnanf-nolibm-tests (Files): Likewise.
3208         * modules/isnand-tests (Files): Likewise.
3209         * modules/isnand-nolibm-tests (Files): Likewise.
3210         * modules/isnanl-tests (Files): Likewise.
3211         * modules/isnanl-nolibm-tests (Files): Likewise.
3212         * modules/ldexpl-tests (Files): Likewise.
3213         * modules/printf-posix-tests (Files): Likewise.
3214         * modules/roundf-tests (Files): Likewise.
3215         * modules/round-tests (Files): Likewise.
3216         * modules/roundl-tests (Files): Likewise.
3217         * modules/signbit-tests (Files): Likewise.
3218         * modules/snprintf-posix-tests (Files): Likewise.
3219         * modules/sprintf-posix-tests (Files): Likewise.
3220         * modules/truncf-tests (Files): Likewise.
3221         * modules/trunc-tests (Files): Likewise.
3222         * modules/truncl-tests (Files): Likewise.
3223         * modules/vasnprintf-posix-tests (Files): Likewise.
3224         * modules/vasprintf-posix-tests (Files): Likewise.
3225         * modules/vdprintf-posix-tests (Files): Likewise.
3226         * modules/vfprintf-posix-tests (Files): Likewise.
3227         * modules/vprintf-posix-tests (Files): Likewise.
3228         * modules/vsnprintf-posix-tests (Files): Likewise.
3229         * modules/vsprintf-posix-tests (Files): Likewise.
3230         * modules/xprintf-posix-tests (Files): Likewise.
3231
3232 2011-09-11  Bruno Haible  <bruno@clisp.org>
3233
3234         Ensure pid_t gets defined.
3235         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3236         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3237         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3238         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3239         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3240         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3241         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3242         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3243         * tests/test-fcntl-h.c: Check that pid_t is defined.
3244         * tests/test-sched.c: Likewise.
3245         * tests/test-termios.c: Likewise.
3246         * tests/test-time.c: Likewise.
3247         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3248         * doc/posix-headers/signal.texi: Likewise.
3249         * doc/posix-headers/sys_types.texi: Likewise.
3250         * doc/posix-headers/time.texi: Likewise.
3251
3252 2011-09-11  Bruno Haible  <bruno@clisp.org>
3253
3254         acl: Fix compilation on Solaris 10 (older version).
3255         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3256         of ACE_EVERYONE.
3257         * lib/set-mode-acl.c (qset_acl): Likewise.
3258         Reported by Christian Jullien <eligis@orange.fr>.
3259
3260 2011-09-10  Bruno Haible  <bruno@clisp.org>
3261
3262         iconv, unsetenv: Add support for MSVC compiler.
3263         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3264         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3265
3266 2011-09-10  Bruno Haible  <bruno@clisp.org>
3267
3268         *printf: Add support for MSVC compiler.
3269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3270         handles the exception caused by the %n directive. When cross-compiling,
3271         guess no on native Windows.
3272         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3273         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3274         emulate it through vsnprintf.
3275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3276         * doc/posix-functions/dprintf.texi: Update documentation regarding
3277         MSVC 9.
3278         * doc/posix-functions/fprintf.texi: Likewise.
3279         * doc/posix-functions/printf.texi: Likewise.
3280         * doc/posix-functions/snprintf.texi: Likewise.
3281         * doc/posix-functions/sprintf.texi: Likewise.
3282         * doc/posix-functions/swprintf.texi: Likewise.
3283         * doc/posix-functions/vdprintf.texi: Likewise.
3284         * doc/posix-functions/vfprintf.texi: Likewise.
3285         * doc/posix-functions/vprintf.texi: Likewise.
3286         * doc/posix-functions/vsnprintf.texi: Likewise.
3287         * doc/posix-functions/vsprintf.texi: Likewise.
3288         * doc/glibc-functions/asprintf.texi: Likewise.
3289         * doc/glibc-functions/obstack_printf.texi: Likewise.
3290         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3291         * doc/glibc-functions/vasprintf.texi: Likewise.
3292
3293 2011-09-10  Bruno Haible  <bruno@clisp.org>
3294
3295         nocrash: Add support for native Windows.
3296         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3297
3298 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3299             Bruno Haible  <bruno@clisp.org>
3300
3301         absolute-header, include-next: Add support for MSVC compiler.
3302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3303         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3304         directory separator in #line directives.
3305         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3306         recognize also backslash as directory separator in #line directives.
3307
3308 2011-09-08  Jim Meyering  <meyering@redhat.com>
3309
3310         maint.mk: mark the post-release commit log with "maint: " prefix
3311         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3312         one-line commit-log summary.
3313
3314 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3315             Bruno Haible  <bruno@clisp.org>
3316
3317         Doc about crypt functions.
3318         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3319         systems.
3320         * doc/posix-functions/encrypt.texi: Likewise.
3321         * doc/posix-functions/setkey.texi: Likewise.
3322
3323 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3324
3325         * lib/gc.h: Fix copyright header.
3326
3327 2011-09-07  Bruno Haible  <bruno@clisp.org>
3328
3329         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3330         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3331         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3332
3333 2011-09-07  Bruno Haible  <bruno@clisp.org>
3334
3335         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3336         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3337         * lib/freopen.c: Likewise.
3338         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3339         * lib/lstat.c: Likewise.
3340         * lib/stat.c: Likewise.
3341         * lib/open.c: Use different syntax for include of <fcntl.h>.
3342         * lib/openat.c: Include fcntl.h again, explicitly.
3343
3344 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3345
3346         parse-datetime: document the newly accepted format
3347         * doc/parse-datetime.texi (Combined date and time of day items):
3348         New section.
3349
3350 2011-09-06  Bruno Haible  <bruno@clisp.org>
3351
3352         acl: Fix a test failure on newer Solaris 10 with ZFS.
3353         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3354         ENOSYS as no ACL.
3355         Reported by Jim Meyering.
3356
3357 2011-09-06  Bruno Haible  <bruno@clisp.org>
3358
3359         acl: Update for AIX >= 5.3 with NFS.
3360         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3361         ENOSYS as no ACL.
3362
3363         acl: Fix a test failure on AIX >= 5.3 with NFS.
3364         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3365         as no ACL.
3366
3367 2011-09-06  Bruno Haible  <bruno@clisp.org>
3368
3369         acl: Fix a test failure on IRIX 6.5 with NFS.
3370         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3371         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3372         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3373         * lib/copy-acl.c (qcopy_acl): Likewise.
3374
3375 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3376
3377         openat: port to AIX 7.1 with large files
3378         AIX 7.1 does a "#define openat open64at" if large files are in use,
3379         so we can't simply #undef openat.  Use the orig_openat trick (similar
3380         to orig_open in lib/open.c) to work around the problem.  Problem
3381         reported by Kevin Brott for GNU tar, in the thread containing
3382         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3383         * lib/openat.c (__need_system_fcntl_h): Define first.
3384         Include <fcntl.h> and <sys/types.h> before undefining.
3385         (orig_openat) [HAVE_OPENAT]: New inline function.
3386         (openat) [HAVE_OPENAT]: Do not undef.
3387         (rpl_openat): Use orig_openat, not openat.
3388
3389 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3390             Bruno Haible  <bruno@clisp.org>
3391
3392         acl: Avoid errors on NonStop Kernel.
3393         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3394         ENOTSUP errors.
3395
3396 2011-09-05  Bruno Haible  <bruno@clisp.org>
3397
3398         acl: Clean up Solaris code.
3399         * lib/acl-internal.h: Remove no-op #if.
3400         * lib/file-has-acl.c: Likewise.
3401         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3402         * lib/copy-acl.c (qcopy_acl): Likewise.
3403
3404 2011-09-05  Bruno Haible  <bruno@clisp.org>
3405
3406         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3407         binaries built on the original Solaris 10.
3408         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3409         trivial.
3410
3411 2011-09-05  Bruno Haible  <bruno@clisp.org>
3412
3413         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3414         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3415         10.
3416         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3417         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3418         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3419         instead of acl_get, facl_get, acl_set, facl_set.
3420
3421 2011-09-05  Bruno Haible  <bruno@clisp.org>
3422
3423         copy-file: Try unit tests on more file systems.
3424         * tests/test-copy-file-1.sh: New file.
3425         * tests/test-copy-file-2.sh: New file.
3426         * modules/copy-file-tests (Files): Add them.
3427         (Makefile.am): Add them to TESTS.
3428
3429         acl: Try unit tests on more file systems.
3430         * tests/test-file-has-acl-1.sh: New file.
3431         * tests/test-file-has-acl-2.sh: New file.
3432         * tests/test-set-mode-acl-1.sh: New file.
3433         * tests/test-set-mode-acl-2.sh: New file.
3434         * tests/test-copy-acl-1.sh: New file.
3435         * tests/test-copy-acl-2.sh: New file.
3436         * modules/acl-tests (Files): Add them.
3437         (Makefile.am): Add them to TESTS.
3438
3439 2011-09-04  Bruno Haible  <bruno@clisp.org>
3440
3441         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3442         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3443         10.
3444         (OLD_ALLOW, OLD_DENY): New macros.
3445         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3446         ACE_ACCESS_ALLOWED_ACE_TYPE.
3447         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3448         ACE_ACCESS_DENIED_ACE_TYPE.
3449         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3450         (NEW_ACE_EXECUTE): Fix value.
3451         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3452         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3453         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3454         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3455         NEW_ACE_SYNCHRONIZE): New macros.
3456         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3457         instead of acl_fromtext, acl_set, facl_set.
3458         Fixes a coreutils/tests/cp/perm failure.
3459
3460 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3461
3462         openat: test for fstatat (..., 0) bug
3463         Further testing with tar suggests that fstatat (..., 0)
3464         does not work in general, on AIX 7.1; see
3465         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3466         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3467         replacement fstatat (which is what older AIX releases were using
3468         anyway).
3469         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3470         use is now changed to orig_fstatat.  This was probably the right
3471         thing to do anyway.
3472         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3473         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3474         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3475         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3476         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3477         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3478         if the bug is found.
3479
3480         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3481         This tests for another fstatat bug on AIX 7.1:
3482         fstatat (AT_FDCWD, ..., 0) does not work.  See
3483         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3484         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3485         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3486         (rpl_fstatat): Adjust so that it works around either (or both)
3487         bugs if present.
3488         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3489
3490 2011-09-03  Karl Berry  <karl@gnu.org>
3491
3492         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3493         in index entries.
3494
3495 2011-09-02  Bruno Haible  <bruno@clisp.org>
3496
3497         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3498         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3499         values of AR, ARFLAGS, RANLIB.
3500         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3501
3502 2011-09-02  Bruno Haible  <bruno@clisp.org>
3503
3504         Find 'ar' program that fits with --host argument.
3505         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3506
3507 2011-09-02  Bruno Haible  <bruno@clisp.org>
3508
3509         tests: init.sh: Support any non-GNU diff.
3510         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3511         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3512         Solaris 8.
3513
3514 2011-09-02  Bruno Haible  <bruno@clisp.org>
3515
3516         tests: init.sh: work also with any non-GNU diff that supports -u
3517         * tests/init.sh: Relax check for diff -u support.
3518         Rather than checking for GNU diff via --version, simply check
3519         for support for -u itself.  Useful at least on OpenBSD 4.9,
3520         AIX 7.1, IRIX 6.5, and Solaris 10.
3521
3522 2011-09-01  Bruno Haible  <bruno@clisp.org>
3523
3524         strtoimax, strtoumax: Document problem on HP-UX 11.
3525         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3526         * doc/posix-functions/strtoumax.texi: Likewise.
3527
3528 2011-09-01  Bruno Haible  <bruno@clisp.org>
3529
3530         strtoumax: Avoid link error on OSF/1 with DTK cc.
3531         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3532         defined as a function.
3533         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3534         strtoumax is defined, not whether it is declared.
3535
3536 2011-09-01  Bruno Haible  <bruno@clisp.org>
3537
3538         strtoimax: Avoid link error on OSF/1 with DTK cc.
3539         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3540         defined as a function.
3541         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3542         strtoimax is defined, not whether it is declared.
3543
3544 2011-09-01  Bruno Haible  <bruno@clisp.org>
3545
3546         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3547         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3548         as a function.
3549         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3550         whether it is declared.
3551
3552 2011-09-01  Bruno Haible  <bruno@clisp.org>
3553
3554         imaxabs: Avoid link error on OSF/1 with DTK cc.
3555         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3556         as a function.
3557         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3558         whether it is declared.
3559
3560 2011-09-01  Bruno Haible  <bruno@clisp.org>
3561
3562         Tests for module 'strtoumax'.
3563         * modules/strtoumax-tests: New file.
3564         * tests/test-strtoumax.c: New file.
3565
3566         Tests for module 'strtoimax'.
3567         * modules/strtoimax-tests: New file.
3568         * tests/test-strtoimax.c: New file.
3569
3570         Tests for module 'imaxdiv'.
3571         * modules/imaxdiv-tests: New file.
3572         * tests/test-imaxdiv.c: New file.
3573
3574         Tests for module 'imaxabs'.
3575         * modules/imaxabs-tests: New file.
3576         * tests/test-imaxabs.c: New file.
3577
3578 2011-09-01  Bruno Haible  <bruno@clisp.org>
3579
3580         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3581         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3582         pthread_create.
3583
3584 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3585
3586         openat: work around AIX 7.1 fstatat issue
3587         This should fix the problem that was not properly fixed
3588         in the previous change, dated 2011-08-30.
3589         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3590         __need_system_stat_h defined.
3591         (orig_fstatat) [HAVE_FSTATAT]: New function.
3592         (rpl_fstatat): Go back to the old way of doing things,
3593         except call orig_fstatat instead of fstatat.
3594         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3595         Remove unnecessary check whether fstatat fills in st_size etc.
3596
3597 2011-09-01  Bruno Haible  <bruno@clisp.org>
3598
3599         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3600         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3601         just include the system's header.
3602
3603 2011-08-31  Jim Meyering  <meyering@redhat.com>
3604
3605         tests: avoid spurious assertion failure in test-float.c on ppc64
3606         * tests/test-float.c (test_long_double): Comment out an assertion,
3607         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3608         with gcc-4.4.4.
3609
3610         maint: indent with spaces, not TABs
3611         I need to get in the habit of running gnulib's "make check".
3612         Both of these would have been caught.
3613         * m4/largefile.m4: Indent with spaces, not TABs.
3614         * lib/parse-datetime.y (iso_8601_time): Likewise.
3615         Spotted by Pádraig Brady.
3616
3617         test-parse-datetime.c: accommodate a relatively strict gcc warning
3618         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3619         to avoid a warning from gcc's -Werror=missing-declarations.
3620         Insert a few spaces-before-funcall-parenthesis.
3621
3622 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3623
3624         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3625         The parser now accepts ISO 8601 date-time strings with "T" as the
3626         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3627         with a space between the date and time strings.  Now it also parses
3628         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3629         variants like "2004-02-29T16:21:42.333-07:00"
3630         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3631         of day representation using the 'T' separator character.
3632         * doc/parse-datetime.texi (General date syntax): replace use of
3633         deprecated --iso-8601 option with --rfc-3339 in example of date
3634         command output formats that can be parsed.
3635         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3636         lib/parse-datetime.y.
3637         (gmt_offset): New function.
3638         (main): Add additional test cases to validate ISO8601 extended
3639         date and time of day parsing.
3640
3641 2011-08-31  Bruno Haible  <bruno@clisp.org>
3642
3643         freopen: Documentation.
3644         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3645         name.
3646         Reported by Claudio Bley <claudio.bley@gmail.com>.
3647
3648 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3649
3650         freopen: Don't crash if the filename argument is NULL.
3651         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3652         NULL.
3653
3654 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3655
3656         openat: work around AIX 7.1 fstatat bug
3657         Problem reported by Kevin Brott for GNU tar, in the thread containing
3658         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3659         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3660         FSTATAT_ST_SIZE_ETC_BROKEN.
3661         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3662         rpl_fstatat.
3663         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3664         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3665         AC_CHECK_FUNCS_ONCE for fstatat.
3666         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3667         fchmodat, mkdirat, openat and unlinkat.
3668
3669 2011-08-30  Bruno Haible  <bruno@clisp.org>
3670
3671         Avoid endless recursions if config.h includes some header files.
3672         * lib/fopen.c (__need_FILE): Define already before including config.h.
3673         * lib/freopen.c (__need_FILE): Likewise.
3674         * lib/open.c (__need_system_fcntl_h): Likewise.
3675         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3676         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3677         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3678
3679 2011-08-25  Karl Berry  <karl@gnu.org>
3680
3681         * config/srclist.txt (ylwrap): new try.
3682         * build-aux/ylwrap: new file.
3683
3684 2011-08-23  Bruno Haible  <bruno@clisp.org>
3685
3686         tmpdir: Use a good default directory on native Windows.
3687         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3688         (P_tmpdir): Default to _P_tmpdir on native Windows.
3689         (path_search): On native Windows, try the value returned by GetTempPath
3690         before trying P_tmpdir.
3691         * modules/tmpdir (Depends-on): Add pathmax.
3692         Suggested by John Darrington <john@darrington.wattle.id.au>.
3693
3694 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3695
3696         doc: fix typo in README-release
3697         * top/README-release: Capitalize first word of a sentence.
3698
3699 2011-08-19  Jim Meyering  <meyering@redhat.com>
3700
3701         fts: do not exhaust memory when processing million-entry directories
3702         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3703         directory would require about 256*N bytes of memory.  Thus, it was
3704         easy to construct a directory too large to be processed by any of
3705         those tools.  With this change, fts' maximum memory utilization is
3706         now limited to around 30MB.
3707         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3708         (fts_read): When we've processed the final entry (i.e., when
3709         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3710         using the parent entry to read any remaining entries.  Dispatch
3711         depending on what fts_build returns:
3712         - NULL+stop, aka failure: stop
3713         - NULL otherwise: move up in the dir hierarchy
3714         - non-NULL: handle this new entry
3715         (fts_build): Declare and use new local, continue_readdir.
3716         Prepare to be called from fts_read, when the entries
3717         from a partially-read directory have just been exhausted.
3718         In that case, we'll skip the opendir and instead use the parent's
3719         fts_dirp and derive dir_fd from that.
3720         Finally, in the readdir loop, if we read max_entries entries,
3721         exit the loop ensuring *not* to call closedir.  This is required
3722         so that fts_dirp can be reused on a subsequent call.
3723         Prompted by Ben England's report of memory exhaustion in find
3724         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3725
3726         maint: fts: move decl of `dp' down into while loop; split a long line
3727         * lib/fts.c (fts_build): No semantic change.
3728
3729         fts: add/use new struct member, fts_dirp
3730         We are about to use this to manage any directory with
3731         too many entries to read all of them into memory at once.
3732         To do that, we'll need to save the DIR* pointer in each
3733         affected FTSENT struct.
3734         * lib/fts_.h: Include <dirent.h>.
3735         (struct FTSENT) [fts_dirp]: New member.
3736         * lib/fts.c (closedir_and_clear): Define.
3737         Use it in place of closedir so that we are sure to
3738         clear the new fts_dirp member when done with it.
3739         (fts_alloc): Initialize the new member.
3740         (fts_lfree): Free, if needed.
3741
3742         maint: fts: give __opendir2 a new parameter and rename
3743         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3744         than surreptitiously using sole caller's "dir_fd".
3745         (fts_opendir): Rename from __opendir2.
3746
3747         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3748         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3749
3750         maint: fts.c: correct off-by-one indentation
3751         * lib/fts.c (fts_build): Correct indentation, change style
3752         of a couple of block comments, and bracing style.
3753
3754         maint: fts.c: move __opendir2 #define "up" out of function body
3755         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3756
3757         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3758         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3759         out for a long time and besides was useful only on BSD systems.
3760
3761 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3762
3763         regex: port to Stratus OpenVOS
3764         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3765         define to empty, rather than attempting nonportable optimizations.
3766         Problem reported by Paul Green in:
3767         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3768         and fix suggested by Eric Blake in:
3769         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3770
3771 2011-08-17  Eric Blake  <eblake@redhat.com>
3772
3773         getcwd: fix test failures on mingw
3774         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3775         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3776         test if long directory cannot be created, and allow mingw errno.
3777
3778         getcwd-lgpl: fix m4 to match relaxed test for BSD
3779         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3780         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3781         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3782         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3783         signature problem.
3784
3785         getcwd: fix compilation on mingw64
3786         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3787         getcwd.
3788         Reported by Marc-André Lureau.
3789
3790         pipe2: silence compiler warning
3791         * lib/pipe2.c (pipe2): Hide label if it is not used.
3792
3793 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3794
3795         relocatable-prog: fix link error
3796         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3797         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3798         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3799         into modules/relocatable-lib without noticing that
3800         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3801         also needs to build relocatable.c.
3802
3803 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3804
3805         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3807         shell code: it contained a 'break' that was not in a loop.
3808         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3809         via a shell-language loop; this may have been true in old Autoconf
3810         versions, but it's not true in Autoconf 2.68.  I found this bug
3811         when testing coreutils git on Solaris 8, whose shell complains
3812         about the syntax error.
3813
3814 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3815
3816         * lib/base64.c: Fix comment to reference RFC 4648.
3817         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3818         <gvtulder@gmail.com>.
3819
3820 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3821
3822         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3823
3824         po/Makefile.in.in: fix make -q problem
3825         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3826         rule, since there's no file named 'check-macro-version' and its
3827         use as a file breaks make -q.
3828         (all): Don't depend on check-macro-version.
3829         (CHECK_MACRO_VERSION): New macro.
3830         (stamp-po): Use it.
3831
3832         configmake: fix make -q problem
3833         * modules/configmake (configmake.h): Update configmake.h's time stamp
3834         even if the file does not change.  Otherwise, 'make -q' fails.
3835         Problem reported by Simon Josefsson in
3836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3837
3838 2011-08-11  Jim Meyering  <meyering@redhat.com>
3839
3840         git-version-gen: correct the advice in a comment
3841         * build-aux/git-version-gen: Correct comment.
3842         Don't recommend to list .tarball-version in .gitignore.
3843
3844 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         base64: fix off-by-one buffer size bug
3847         Problem and (trivial) fix reported by Gijs van Tulder in
3848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3849         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3850         * tests/test-base64.c (main): Catch the bug.
3851
3852 2011-08-10  Eric Blake  <eblake@redhat.com>
3853
3854         closein: correct comments
3855         * lib/closein.c (close_stdin): Improve comments.
3856
3857 2011-08-09  Bruno Haible  <bruno@clisp.org>
3858
3859         More tests for 'fseeko'.
3860         * tests/test-fseeko3.c: New file, from Eric Blake.
3861         * tests/test-fseeko3.sh: New file.
3862         * modules/fseeko-tests (Files): Add them.
3863         (TESTS): Add test-fseeko3.sh.
3864         (check_PROGRAMS): Add test-fseeko3.
3865
3866 2011-08-09  Eric Blake  <eblake@redhat.com>
3867
3868         fseeko: remove unneeded hack
3869         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3870
3871         fseeko: fix bug on glibc
3872         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3873         Reported by John W. Eaton.
3874
3875 2011-08-08  Bruno Haible  <bruno@clisp.org>
3876
3877         unictype/base: Fix interoperability with preinstalled libunistring.
3878         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3879         Reported by Simon Josefsson.
3880
3881 2011-08-08  Bruno Haible  <bruno@clisp.org>
3882
3883         iswblank: Detect declaration correctly.
3884         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3885         AC_CHECK_DECLS invocation.
3886
3887 2011-08-08  Bruno Haible  <bruno@clisp.org>
3888
3889         tcgetsid: Detect declaration correctly.
3890         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3891         AC_CHECK_DECLS invocation.
3892         Reported by Simon Josefsson.
3893
3894 2011-08-08  Eric Blake  <eblake@redhat.com>
3895
3896         largefile: fix typo that regressed large file support
3897         * modules/largefile (configure.ac-early): Fix section name.
3898
3899 2011-08-06  Karl Berry  <karl@gnu.org>
3900
3901         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3902         a separate module.
3903
3904 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3905
3906         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3907         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3908         get prototype for free.
3909
3910 2011-08-04  Bruno Haible  <bruno@clisp.org>
3911
3912         Tests for module 'pathmax'.
3913         * modules/pathmax-tests: New file.
3914         * tests/test-pathmax.c: New file.
3915
3916         canonicalize-lgpl: Support larger filenames on the Hurd.
3917         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3918         Reported by Paul Eggert.
3919
3920         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3921         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3922         * lib/chdir-long.h: Include pathmax.h.
3923         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3924         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3925         (PATH_MAX): Remove code that is done by pathmax.h.
3926         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3927         * lib/tmpfile.c: Add a comment.
3928         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3929         * modules/chdir-long (Depends-on): Add pathmax.
3930         * modules/getcwd (Depends-on): Add pathmax.
3931         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3932         is not defined.
3933         * doc/posix-headers/limits.texi: Mention the pathmax module.
3934         * NEWS: Mention the change.
3935
3936 2011-08-02  Bruno Haible  <bruno@clisp.org>
3937
3938         pthread_sigmask: Actually use results of gl_THREADLIB.
3939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3940         gl_THREADLIB, not gl_[]THREADLIB.
3941         Reported by Eric Blake.
3942
3943 2011-08-02  Jim Meyering  <meyering@redhat.com>
3944
3945         maint.mk: relax the default _gl_TS_function_match regexp
3946         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3947         space between function name and "(" in an "extern" declaration.
3948         That would fail to match a decl with no space there: extern void foo();
3949
3950 2011-07-31  Iain Nicol  <iain@thenicols.net>
3951
3952         git-version-gen: document that EXTRA_DIST must include .version
3953         * build-aux/git-version-gen: In the how-to-use comment, document
3954         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3955         will fail when run from an unpacked distribution tarball.
3956
3957 2011-08-01  Bruno Haible  <bruno@clisp.org>
3958
3959         wctype-h: Fix last change.
3960         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3961         REPLACE_TOWLOWER to 0.
3962         Reported by Sam Steingold <sds@gnu.org>.
3963
3964 2011-07-31  Bruno Haible  <bruno@clisp.org>
3965
3966         frexpl: Update autoconf test.
3967         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3968         according to changes of 2011-06-20.
3969
3970 2011-07-31  Bruno Haible  <bruno@clisp.org>
3971
3972         sys_utsname: Add support for Minix.
3973         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3974         <sys/utsname.h>.
3975         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3976         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3977
3978 2011-07-31  Bruno Haible  <bruno@clisp.org>
3979
3980         strings: Add support for Minix.
3981         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3982         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3983         * doc/posix-headers/strings.texi: Document the Minix problem.
3984
3985 2011-07-31  Bruno Haible  <bruno@clisp.org>
3986
3987         wctype-h: Add support for Minix.
3988         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3989         REPLACE_TOWLOWER.
3990         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3991         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3992         REPLACE_ISWCNTRL.
3993
3994 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3995
3996         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3997         This is a performance improvement for 64-bit hosts: it causes the
3998         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3999
4000 2011-07-31  Bruno Haible  <bruno@clisp.org>
4001
4002         stdioext: Add support for Minix.
4003         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4004         * lib/fpurge.c (fpurge): Likewise.
4005         * lib/freadahead.c (freadahead): Likewise.
4006         * lib/freadable.c (freadable): Likewise.
4007         * lib/freading.c (freading): Likewise.
4008         * lib/freadptr.c (freadptr): Likewise.
4009         * lib/freadseek.c (freadptrinc): Likewise.
4010         * lib/fseeko.c (rpl_fseeko): Likewise.
4011         * lib/fseterr.c (fseterr): Likewise.
4012         * lib/fwritable.c (fwritable): Likewise.
4013         * lib/fwriting.c (fwriting): Likewise.
4014         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4015         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4016
4017 2011-07-31  Bruno Haible  <bruno@clisp.org>
4018
4019         errno: Port to Minix.
4020         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4021         ECONNABORTED are defined.
4022         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4023         GNULIB_defined_ECONNABORTED): New macros.
4024         * lib/strerror-override.h (strerror_override): Test also
4025         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4026         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4027         ECONNABORTED.
4028         * doc/posix-headers/errno.texi: Mention the Minix problem.
4029
4030 2011-07-31  Bruno Haible  <bruno@clisp.org>
4031
4032         Work around declaration collisions on Minix.
4033         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4034         defined, set REPLACE_MBSINIT.
4035         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4036         defined, set REPLACE_MBRTOWC.
4037         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4038         set REPLACE_MBRLEN.
4039         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4040         defined, set REPLACE_MBSRTOWCS.
4041         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4042         defined, set REPLACE_WCRTOMB.
4043         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4044         defined, set REPLACE_WCSRTOMBS.
4045
4046 2011-07-31  Bruno Haible  <bruno@clisp.org>
4047
4048         Add support for Minix with ACK compiler.
4049         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4050         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4051         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4052
4053 2011-07-31  Bruno Haible  <bruno@clisp.org>
4054
4055         Documentation about Minix.
4056         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4057         * doc/glibc-headers/*.texi: Likewise.
4058         * doc/posix-functions/*.texi: Likewise.
4059         * doc/glibc-functions/*.texi: Likewise.
4060
4061 2011-07-31  Bruno Haible  <bruno@clisp.org>
4062
4063         snippet/warn-on-use: Fix indentation.
4064         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4065
4066 2011-07-25  Jim Meyering  <meyering@redhat.com>
4067
4068         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4069         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4070         commands.
4071
4072 2011-07-27  Jim Meyering  <meyering@redhat.com>
4073
4074         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4075         * top/maint.mk (gl_extract_significant_defines_): Now that
4076         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4077         gnulib/lib/signal.in.h, and now that we recommend to
4078         define-if-undefined those two symbols in application code,
4079         we must filter them out of the "significant" list.
4080         This avoids a "make syntax-check" failure in coreutils.
4081
4082 2011-07-26  Eric Blake  <eblake@redhat.com>
4083
4084         warnings: add comments about previous patch
4085         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4086         * m4/include_next.m4: Likewise.
4087         * m4/warn-on-use.m4: Likewise.
4088         * m4/warnings.m4: Likewise, and simplify use.
4089         Suggested by Stefano Lattarini.
4090
4091         include-next, warnings: support older autoconf
4092         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4093         AS_VAR_PUSHDEF in a way that works with older autoconf.
4094         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4095         Reported by Daniel P. Berrange.
4096
4097 2011-07-25  Bruno Haible  <bruno@clisp.org>
4098
4099         fseek, ftell: Fix doc.
4100         * doc/posix-functions/fseek.texi: Reword statement about
4101         AC_SYS_LARGEFILE.
4102         * doc/posix-functions/ftell.texi: Likewise.
4103
4104 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4105             Bruno Haible  <bruno@clisp.org>
4106
4107         Add dependencies to the 'largefile' module.
4108         * modules/fopen (Depends-on): Add 'largefile'.
4109         * modules/freopen (Depends-on): Likewise.
4110         * modules/fseeko (Depends-on): Likewise.
4111         * modules/ftello (Depends-on): Likewise.
4112         * modules/glob (Depends-on): Likewise.
4113         * modules/lseek (Depends-on): Likewise.
4114         * modules/lstat (Depends-on): Likewise.
4115         * modules/mkostemp (Depends-on): Likewise.
4116         * modules/mkostemps (Depends-on): Likewise.
4117         * modules/mkstemp (Depends-on): Likewise.
4118         * modules/mkstemps (Depends-on): Likewise.
4119         * modules/open (Depends-on): Likewise.
4120         * modules/openat (Depends-on): Likewise.
4121         * modules/pread (Depends-on): Likewise.
4122         * modules/pwrite (Depends-on): Likewise.
4123         * modules/scandir (Depends-on): Likewise.
4124         * modules/stat (Depends-on): Likewise.
4125         * modules/tmpfile (Depends-on): Likewise.
4126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4127         since the containing module now depends on the largefile module.
4128         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4129         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4130         off_t is fixed by gnulib.
4131         * doc/posix-functions/freopen.texi: Likewise.
4132         * doc/posix-functions/fseeko.texi: Likewise.
4133         * doc/posix-functions/fstatat.texi: Likewise.
4134         * doc/posix-functions/ftello.texi: Likewise.
4135         * doc/posix-functions/glob.texi: Likewise.
4136         * doc/posix-functions/lseek.texi: Likewise.
4137         * doc/posix-functions/lstat.texi: Likewise.
4138         * doc/posix-functions/mkstemp.texi: Likewise.
4139         * doc/posix-functions/open.texi: Likewise.
4140         * doc/posix-functions/openat.texi: Likewise.
4141         * doc/posix-functions/pread.texi: Likewise.
4142         * doc/posix-functions/pwrite.texi: Likewise.
4143         * doc/posix-functions/scandir.texi: Likewise.
4144         * doc/posix-functions/stat.texi: Likewise.
4145         * doc/posix-functions/tmpfile.texi: Likewise.
4146         * doc/glibc-functions/mkostemp.texi: Likewise.
4147         * doc/glibc-functions/mkostemps.texi: Likewise.
4148         * doc/glibc-functions/mkstemps.texi: Likewise.
4149
4150 2011-07-25  Bruno Haible  <bruno@clisp.org>
4151
4152         fcntl: Move AC_LIBOBJ invocation to module description.
4153         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4154         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4155
4156         fcntl: Remove call-in from fchdir.m4.
4157         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4159
4160         dup3: Remove potential call-in from fchdir.m4.
4161         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4163
4164         dup2: Move AC_LIBOBJ invocation to module description.
4165         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4166         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4167         Don't invoke AC_LIBOBJ.
4168         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4169
4170         dup2: Remove call-in from fchdir.m4.
4171         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4173
4174         fclose: Move AC_LIBOBJ invocation to module description.
4175         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4176         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4177         to 1.
4178         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4179
4180         fclose: Remove call-in from close.m4.
4181         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4182         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4183
4184         close: Move AC_LIBOBJ invocation to module description.
4185         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4186         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4187         1.
4188         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4189
4190         close: Remove call-in from fchdir.m4.
4191         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4193
4194         open: Move AC_LIBOBJ invocation to module description.
4195         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4196         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4197         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4198
4199         open: Remove call-in from fchdir.m4.
4200         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4202
4203         fchdir: Start to remove gl_REPLACE_* idiom.
4204         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4205         (gl_FUNC_FCHDIR): Invoke it.
4206
4207 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4208
4209         * lib/ftell.c (ftell): Comment out cast.
4210
4211         close: use gl_REPLACE_FCLOSE only if defined
4212         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4213         is defined.  The close module doesn't depend on the fclose module
4214         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4216         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4217
4218 2011-07-24  Jim Meyering  <meyering@redhat.com>
4219
4220         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4221         * tests/test-select.h (test_function): Declare as "static".
4222
4223 2011-07-24  Bruno Haible  <bruno@clisp.org>
4224
4225         doc: Mention the effects of AC_SYS_LARGEFILE.
4226         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4227         on this function.
4228         * doc/posix-functions/aio_error.texi: Likewise.
4229         * doc/posix-functions/aio_fsync.texi: Likewise.
4230         * doc/posix-functions/aio_read.texi: Likewise.
4231         * doc/posix-functions/aio_return.texi: Likewise.
4232         * doc/posix-functions/aio_suspend.texi: Likewise.
4233         * doc/posix-functions/aio_write.texi: Likewise.
4234         * doc/posix-functions/fgetpos.texi: Likewise.
4235         * doc/posix-functions/fopen.texi: Likewise.
4236         * doc/posix-functions/freopen.texi: Likewise.
4237         * doc/posix-functions/fsetpos.texi: Likewise.
4238         * doc/posix-functions/fstatvfs.texi: Likewise.
4239         * doc/posix-functions/ftruncate.texi: Likewise.
4240         * doc/posix-functions/ftw.texi: Likewise.
4241         * doc/posix-functions/getrlimit.texi: Likewise.
4242         * doc/posix-functions/glob.texi: Likewise.
4243         * doc/posix-functions/lio_listio.texi: Likewise.
4244         * doc/posix-functions/lockf.texi: Likewise.
4245         * doc/posix-functions/mkstemp.texi: Likewise.
4246         * doc/posix-functions/mmap.texi: Likewise.
4247         * doc/posix-functions/nftw.texi: Likewise.
4248         * doc/posix-functions/openat.texi: Likewise.
4249         * doc/posix-functions/opendir.texi: Likewise.
4250         * doc/posix-functions/posix_fadvise.texi: Likewise.
4251         * doc/posix-functions/posix_fallocate.texi: Likewise.
4252         * doc/posix-functions/pread.texi: Likewise.
4253         * doc/posix-functions/pwrite.texi: Likewise.
4254         * doc/posix-functions/readdir.texi: Likewise.
4255         * doc/posix-functions/readdir_r.texi: Likewise.
4256         * doc/posix-functions/rewinddir.texi: Likewise.
4257         * doc/posix-functions/scandir.texi: Likewise.
4258         * doc/posix-functions/seekdir.texi: Likewise.
4259         * doc/posix-functions/setrlimit.texi: Likewise.
4260         * doc/posix-functions/statvfs.texi: Likewise.
4261         * doc/posix-functions/telldir.texi: Likewise.
4262         * doc/posix-functions/tmpfile.texi: Likewise.
4263         * doc/posix-functions/truncate.texi: Likewise.
4264         * doc/glibc-functions/fallocate.texi: Likewise.
4265         * doc/glibc-functions/fstatfs.texi: Likewise.
4266         * doc/glibc-functions/fts_children.texi: Likewise.
4267         * doc/glibc-functions/fts_read.texi: Likewise.
4268         * doc/glibc-functions/getdirentries.texi: Likewise.
4269         * doc/glibc-functions/mkostemp.texi: Likewise.
4270         * doc/glibc-functions/mkostemps.texi: Likewise.
4271         * doc/glibc-functions/mkstemps.texi: Likewise.
4272         * doc/glibc-functions/preadv.texi: Likewise.
4273         * doc/glibc-functions/pwritev.texi: Likewise.
4274         * doc/glibc-functions/sendfile.texi: Likewise.
4275         * doc/glibc-functions/statfs.texi: Likewise.
4276
4277 2011-07-24  Bruno Haible  <bruno@clisp.org>
4278
4279         doc: Fix typo.
4280         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4281
4282 2011-07-24  Bruno Haible  <bruno@clisp.org>
4283
4284         doc: Mention fsusage.
4285         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4286
4287 2011-07-24  Bruno Haible  <bruno@clisp.org>
4288
4289         doc: Mention new glibc headers and functions.
4290         * doc/glibc-headers/gshadow.texi: New file.
4291         * doc/glibc-functions/endsgent.texi: New file.
4292         * doc/glibc-functions/fgetsgent.texi: New file.
4293         * doc/glibc-functions/fgetsgent_r.texi: New file.
4294         * doc/glibc-functions/getsgent.texi: New file.
4295         * doc/glibc-functions/getsgent_r.texi: New file.
4296         * doc/glibc-functions/getsgnam.texi: New file.
4297         * doc/glibc-functions/getsgnam_r.texi: New file.
4298         * doc/glibc-functions/putsgent.texi: New file.
4299         * doc/glibc-functions/setsgent.texi: New file.
4300         * doc/glibc-functions/sgetsgent.texi: New file.
4301         * doc/glibc-functions/sgetsgent_r.texi: New file.
4302         * doc/glibc-functions/malloc_info.texi: New file.
4303         * doc/glibc-functions/preadv.texi: New file.
4304         * doc/glibc-functions/pwritev.texi: New file.
4305         * doc/glibc-functions/register_printf_modifier.texi: New file.
4306         * doc/glibc-functions/register_printf_specifier.texi: New file.
4307         * doc/glibc-functions/register_printf_type.texi: New file.
4308         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4309         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4310         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4311         * doc/glibc-functions/pthread_getname_np.texi: New file.
4312         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4313         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4314         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4315         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4316         * doc/glibc-functions/pthread_setname_np.texi: New file.
4317         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4318         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4319         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4320         * doc/glibc-functions/qsort_r.texi: New file.
4321         * doc/glibc-functions/quick_exit.texi: New file.
4322         * doc/glibc-functions/syncfs.texi: New file.
4323         * doc/gnulib.texi: Include them.
4324         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4325         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4326         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4327         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4328         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4329         * doc/glibc-functions/execvpe.texi: Likewise.
4330
4331 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4332
4333         ftell: don't include <unistd.h>
4334         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4335         guaranteed to define off_t, and the ftell module depends on the
4336         stdio module.
4337
4338         ftell: do not assume wraparound signed arithmetic
4339         * lib/ftell.c: Include <limits.h>.
4340         (ftell): Don't assume wraparound signed arithmetic.
4341
4342 2011-07-24  Bruno Haible  <bruno@clisp.org>
4343
4344         close: No longer depend on module 'fclose'.
4345         * modules/close (Depends-on): Remove fclose.
4346         * NEWS: Mention the change.
4347         Suggested by Sam Steingold <sds@gnu.org>.
4348
4349 2011-07-24  Bruno Haible  <bruno@clisp.org>
4350
4351         fsusage: Enable large volume support on AIX >= 5.2.
4352         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4353         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4354         instead of STAT_STATVFS.
4355         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4356
4357         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4358         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4359         f_blocks field only on MacOS X.
4360
4361         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4362         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4363         * modules/fsusage (Depends-on): Add largefile.
4364
4365 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4366
4367         * README: Modernize discussion of signed integers.
4368         Assuming overflow wraparound is no longer safe.
4369         Mention ones' complement and signed magnitude.
4370
4371 2011-07-22  Bruno Haible  <bruno@clisp.org>
4372
4373         select tests, pselect tests: Refactor.
4374         * tests/test-select.h: New file, extracted from tests/test-select.c.
4375         (select_fn): New type.
4376         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4377         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4378         test_pipe): Add my_select argument.
4379         (test_function): Renamed from main. Add my_select argument.
4380         * tests/test-select.c: Move most code to tests/test-select.h. Include
4381         test-select.h.
4382         * modules/select-tests (Files): Add tests/test-select.h.
4383         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4384         (my_select, main): New functions.
4385         * modules/pselect-tests (Files): Add tests/test-select.h,
4386         tests/macros.h, tests/signature.h.
4387         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4388         (configure.ac): Check for <sys/wait.h>.
4389
4390 2011-07-22  Bruno Haible  <bruno@clisp.org>
4391
4392         sys_select tests: Check the signature of FD_*.
4393         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4394         signature tests from here...
4395         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4396         here.
4397         * modules/sys_select-tests (Files): Add tests/signature.h.
4398
4399 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4400
4401         largefile: new module, replacing large-inode
4402         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4403         * MODULES.html.sh: Add largefile, remove large-inode.
4404         * modules/largefile, m4/largefile.m4: New files.
4405         * modules/large-inode, m4/large-inode.m4: Remove.
4406
4407         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4408         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4409         implementations that use only 32 bits to count blocks.
4410         On typical hosts with 1024-byte blocks, this fails with file
4411         systems as small as 4 TiB.  Problem reported by Herb Wartens
4412         <http://debbugs.gnu.org/9140> and this should also fix a similar
4413         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4414
4415         large-inode: New module
4416         * MODULES.html.sh: Add it.
4417         * modules/large-inode, m4/large-inode.m4: New files.
4418
4419         extensions: Enable extensions on MacOS X 10.5 and later.
4420         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4421
4422 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4423
4424         file-has-acl: use acl_extended_file_nofollow if available
4425         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4426         (acl_extended_file): New macro.
4427         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4428         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4429
4430 2011-07-21  Bruno Haible  <bruno@clisp.org>
4431
4432         Declare system functions in a way that works with C++.
4433         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4434         declare fdopendir as extern "C".
4435         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4436         declare frexpl as extern "C".
4437         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4438         declare gai_strerror as extern "C".
4439         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4440         programs, declare gai_strerror as extern "C".
4441         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4442         declare getlogin_r as extern "C".
4443         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4444         as extern "C".
4445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4446         declare ldexpl as extern "C".
4447         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4448         as extern "C".
4449         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4450         program, declare getmntinfo as extern "C".
4451         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4452         stpncpy as extern "C".
4453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4454         program, declare __xpg_strerror_r as extern "C".
4455         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4456         strndup as extern "C".
4457         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4458         declare memset and bzero as extern "C".
4459         Reported by Sam Steingold <sds@gnu.org>.
4460
4461 2011-07-12  Jim Meyering  <meyering@redhat.com>
4462
4463         maint.mk: prohibit inclusion of "verify.h" without use
4464         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4465
4466 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4467
4468         timer-time: A new module to check for timer_settime()
4469         * m4/timer_time.m4: Check for the posix function.
4470         * modules/timer-time: Add the new module.
4471         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4472         Mention it.
4473
4474 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4475             Bruno Haible  <bruno@clisp.org>
4476
4477         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4478         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4479         not defined, assume POSIX threads and look for pthread_sigmask in
4480         $LIBS, without changing $CPPFLAGS.
4481
4482 2011-07-19  Bruno Haible  <bruno@clisp.org>
4483
4484         strstr: Update cross-compilation guess.
4485         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4486         CPUs, guess no, in view of glibc
4487         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4488         Suggested by Eric Blake. Reported by Reuben Thomas.
4489
4490 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4491
4492         getopt-gnu: suppress core dumps from detection code
4493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4494         to suppress core dumps that may well occur on glibc systems.
4495         * modules/getopt-gnu: Depend on nocrash.
4496
4497 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4498
4499         pthread_sigmask: ensure usleep is declared
4500         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4501         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4502
4503 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4504
4505         doc: Document NonStop portability issues.
4506         * doc/posix-functions/sigaction.texi (sigaction):
4507         * doc/posix-headers/signal.texi (signal.h):
4508         Document NonStop.  See Joachim Schmitz in
4509         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4510
4511 2011-07-15  Bruno Haible  <bruno@clisp.org>
4512
4513         ffsl, ffsll: Avoid unportable behaviour.
4514         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4515
4516 2011-07-15  Bruno Haible  <bruno@clisp.org>
4517
4518         ffs: More tests.
4519         * tests/test-ffs.c (NBITS): New macro.
4520         (main): Add more tests.
4521         * tests/test-ffsl.c (NBITS): New macro.
4522         (main): Add more tests.
4523         * tests/test-ffsll.c (NBITS): New macro.
4524         (main): Add more tests.
4525
4526 2011-07-15  Eric Blake  <eblake@redhat.com>
4527
4528         ffsl, ffsll: new modules
4529         * modules/ffsl: New file.
4530         * modules/ffsll: Likewise.
4531         * m4/ffsl.m4: Likewise.
4532         * m4/ffsll.m4: Likewise.
4533         * lib/ffsl.c: Likewise.
4534         * lib/ffsl.h: Likewise.
4535         * lib/ffsll.c: Likewise.
4536         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4537         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4538         * modules/string (Makefile.am): Substitute witnesses.
4539         * lib/strings.in.h (ffsl, ffsll): Declare.
4540         * modules/ffsl-tests: New test file.
4541         * modules/ffsll-tests: Likewise.
4542         * tests/test-ffsl.c: Likewise.
4543         * tests/test-ffsll.c: Likewise.
4544         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4545         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4546         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4547
4548         ffs: fix m4 prerequisite
4549         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4550
4551         ffs: avoid undefined behavior
4552         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4553         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4554         Reported by Bruno Haible.
4555
4556 2011-07-12  Bruno Haible  <bruno@clisp.org>
4557
4558         pthread_sigmask: Rely on module 'threadlib'.
4559         * modules/pthread_sigmask (Depends-on): Add threadlib.
4560         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4561         is defined.
4562
4563 2011-07-12  Bruno Haible  <bruno@clisp.org>
4564
4565         regex: Depend on module 'strcase'.
4566         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4567
4568 2011-07-12  Jim Meyering  <meyering@redhat.com>
4569
4570         warn-on-use: fix typo in file name
4571         * modules/snippet/warn-on-use (Files): Correct file name:
4572         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4573
4574 2011-07-12  Bruno Haible  <bruno@clisp.org>
4575
4576         strings: Document module.
4577         * doc/posix-headers/strings.texi: Mention module 'strings'.
4578
4579 2011-07-12  Bruno Haible  <bruno@clisp.org>
4580
4581         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4582         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4583         (Files, Makefile.am): Update.
4584         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4585         * modules/stdlib (Depends-on): Update.
4586
4587 2011-07-12  Bruno Haible  <bruno@clisp.org>
4588
4589         * NEWS: Mention the changes.
4590
4591         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4592         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4593         (Files, Makefile.am): Update.
4594         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4595         * modules/arpa_inet (Depends-on): Update.
4596         * modules/ctype (Depends-on): Update.
4597         * modules/dirent (Depends-on): Update.
4598         * modules/fcntl-h (Depends-on): Update.
4599         * modules/glob (Depends-on): Update.
4600         * modules/iconv-h (Depends-on): Update.
4601         * modules/inttypes-incomplete (Depends-on): Update.
4602         * modules/langinfo (Depends-on): Update.
4603         * modules/locale (Depends-on): Update.
4604         * modules/math (Depends-on): Update.
4605         * modules/netdb (Depends-on): Update.
4606         * modules/poll-h (Depends-on): Update.
4607         * modules/pty (Depends-on): Update.
4608         * modules/search (Depends-on): Update.
4609         * modules/signal (Depends-on): Update.
4610         * modules/spawn (Depends-on): Update.
4611         * modules/stdio (Depends-on): Update.
4612         * modules/stdlib (Depends-on): Update.
4613         * modules/string (Depends-on): Update.
4614         * modules/strings (Depends-on): Update.
4615         * modules/sys_file (Depends-on): Update.
4616         * modules/sys_ioctl (Depends-on): Update.
4617         * modules/sys_select (Depends-on): Update.
4618         * modules/sys_socket (Depends-on): Update.
4619         * modules/sys_stat (Depends-on): Update.
4620         * modules/sys_time (Depends-on): Update.
4621         * modules/sys_times (Depends-on): Update.
4622         * modules/sys_utsname (Depends-on): Update.
4623         * modules/sys_wait (Depends-on): Update.
4624         * modules/termios (Depends-on): Update.
4625         * modules/time (Depends-on): Update.
4626         * modules/unistd (Depends-on): Update.
4627         * modules/wchar (Depends-on): Update.
4628         * modules/wctype-h (Depends-on): Update.
4629         * MODULES.html.sh (Support for building libraries and executables):
4630         Update.
4631
4632         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4633         * modules/snippet/unused-parameter: Renamed from
4634         modules/unused-parameter.
4635         (Files, Makefile.am): Update.
4636         * build-aux/snippet/unused-parameter.h: Renamed from
4637         build-aux/unused-parameter.h.
4638         * modules/selinux-h (Depends-on): Update.
4639         * modules/unistr/base (Depends-on): Update.
4640         * MODULES.html.sh (Core language properties): Update.
4641
4642         Rename module 'link-warning' to 'snippet/link-warning'.
4643         * modules/snippet/link-warning: Renamed from modules/link-warning.
4644         (Files, Makefile.am): Update.
4645         * build-aux/snippet/link-warning.h: Renamed from
4646         build-aux/link-warning.h.
4647         * MODULES.html.sh (Support for building libraries and executables):
4648         Update.
4649
4650         Rename module 'c++defs' to 'snippet/c++defs'.
4651         * modules/snippet/c++defs: Renamed from modules/c++defs.
4652         (Files, Makefile.am): Update.
4653         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4654         * modules/arpa_inet (Depends-on): Update.
4655         * modules/ctype (Depends-on): Update.
4656         * modules/dirent (Depends-on): Update.
4657         * modules/fcntl-h (Depends-on): Update.
4658         * modules/glob (Depends-on): Update.
4659         * modules/iconv-h (Depends-on): Update.
4660         * modules/langinfo (Depends-on): Update.
4661         * modules/locale (Depends-on): Update.
4662         * modules/math (Depends-on): Update.
4663         * modules/netdb (Depends-on): Update.
4664         * modules/poll-h (Depends-on): Update.
4665         * modules/pty (Depends-on): Update.
4666         * modules/search (Depends-on): Update.
4667         * modules/signal (Depends-on): Update.
4668         * modules/spawn (Depends-on): Update.
4669         * modules/stdio (Depends-on): Update.
4670         * modules/stdlib (Depends-on): Update.
4671         * modules/string (Depends-on): Update.
4672         * modules/strings (Depends-on): Update.
4673         * modules/sys_ioctl (Depends-on): Update.
4674         * modules/sys_select (Depends-on): Update.
4675         * modules/sys_socket (Depends-on): Update.
4676         * modules/sys_stat (Depends-on): Update.
4677         * modules/sys_time (Depends-on): Update.
4678         * modules/sys_wait (Depends-on): Update.
4679         * modules/termios (Depends-on): Update.
4680         * modules/time (Depends-on): Update.
4681         * modules/unistd (Depends-on): Update.
4682         * modules/wchar (Depends-on): Update.
4683         * modules/wctype-h (Depends-on): Update.
4684
4685         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4686         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4687         (Files, Makefile.am): Update.
4688         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4689         * modules/argv-iter (Depends-on): Update.
4690         * modules/arpa_inet (Depends-on): Update.
4691         * modules/dirent (Depends-on): Update.
4692         * modules/fcntl-h (Depends-on): Update.
4693         * modules/fnmatch (Depends-on): Update.
4694         * modules/getopt-posix (Depends-on): Update.
4695         * modules/glob (Depends-on): Update.
4696         * modules/iconv-h (Depends-on): Update.
4697         * modules/inttypes-incomplete (Depends-on): Update.
4698         * modules/locale (Depends-on): Update.
4699         * modules/math (Depends-on): Update.
4700         * modules/netdb (Depends-on): Update.
4701         * modules/search (Depends-on): Update.
4702         * modules/signal (Depends-on): Update.
4703         * modules/spawn (Depends-on): Update.
4704         * modules/stdio (Depends-on): Update.
4705         * modules/stdlib (Depends-on): Update.
4706         * modules/string (Depends-on): Update.
4707         * modules/strings (Depends-on): Update.
4708         * modules/sys_socket (Depends-on): Update.
4709         * modules/sys_stat (Depends-on): Update.
4710         * modules/sys_time (Depends-on): Update.
4711         * modules/sys_times (Depends-on): Update.
4712         * modules/sys_utsname (Depends-on): Update.
4713         * modules/time (Depends-on): Update.
4714         * modules/unistd (Depends-on): Update.
4715         * modules/wchar (Depends-on): Update.
4716         * MODULES.html.sh (Support for building libraries and executables):
4717         Update.
4718
4719 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4720
4721         Improvements on _Noreturn and related modules.
4722
4723         modules/_Exit-tests: test _Noreturn too
4724         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4725         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4726         (main): Use them.
4727
4728         stdnoreturn, stdnoreturn-tests: remove modules
4729         They're not needed here and a bit premature for use elsewhere.  See
4730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4731         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4732         * tests/test-stdnoreturn.c: Remove files.
4733         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4734         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4735         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4736         and using noreturn.
4737         * modules/openat, modules/sigpipe-die, modules/xalloc:
4738         * modules/xmemdup0, modules/xstrtol:
4739         Remove dependency on stdnoreturn.
4740
4741         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4742         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4743         Reparenthesize to avoid GCC warning.
4744         Support Microsoft's syntax.
4745         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4746
4747         _Noreturn-tests: remove module
4748         * modules/_Noreturn-tests: Remove.
4749         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4750         * tests/test-_Noreturn.c: Remove.
4751         * tests/test-stdnoreturn.c: Merge from the old
4752         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4753
4754 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4755
4756         _Noreturn, stdnoreturn, and related modules.
4757
4758         * top/maint.mk: Adjust to new noreturn support.
4759         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4760         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4761
4762         xalloc: use stdnoreturn.h
4763         * lib/xalloc.h: Include <stdnoreturn.h>.
4764         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4765         * modules/xalloc (Depends-on): Add stdnoreturn.
4766
4767         xstrtol: use stdnoreturn.h
4768         * lib/xstrtol.h: Include <stdnoreturn.h>.
4769         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4770         * modules/xstrtol (Depends-on): Add stdnoreturn.
4771
4772         xmemdup0: use stdnoreturn.h
4773         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4774         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4775         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4776
4777         sigpipe-die: use stdnoreturn.h
4778         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4779         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4780         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4781
4782         openat: use stdnoreturn.h
4783         * lib/openat.h: Include <stdnoreturn.h>.
4784         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4785         * modules/openat (Depends-on): Add stdnoreturn.
4786
4787         * lib/openat-die.c (openat_save_fail): Modernize comment.
4788
4789         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4790
4791         * lib/glthread/thread.h: Modernize comment.
4792
4793         obstack: use _Noreturn
4794         * lib/obstack.c (__attribute__): Remove macro.
4795         (print_and_abort): Use _Noreturn.
4796
4797         c-stack: use _Noreturn
4798         * lib/c-stack.c (die, overflow_handler, segv_handler):
4799         Use _Noreturn rather than __attribute__((noreturn)).
4800
4801         argmatch-tests, exclude_tests: use _Noreturn
4802         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4803         Remove.
4804         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4805
4806         stdlib: use _Noreturn
4807         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4808         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4809         * modules/stdlib (Depends-on): Add _Noreturn.
4810         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4811
4812         stdnoreturn-tests: new module
4813         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4814
4815         stdnoreturn: new module
4816         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4817         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4818
4819         _Noreturn-tests: new module
4820         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4821
4822         _Noreturn: new module
4823         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4824         New section, mentioning it.
4825         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4826
4827         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4828
4829 2011-07-11  Eric Blake  <eblake@redhat.com>
4830
4831         ffs: new module
4832         * modules/ffs: New file.
4833         * m4/ffs.m4: Likewise.
4834         * lib/ffs.c: Likewise.
4835         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4836         * modules/strings (Makefile.am): Substitute witness.
4837         (Depends-on): Add c++defs.
4838         * lib/strings.in.h (ffs): Declare.
4839         * modules/ffs-tests: New test file.
4840         * tests/test-ffs.c: Test new module.
4841         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4842         * doc/posix-functions/ffs.texi (ffs): Likewise.
4843
4844         regex: avoid compiler warning
4845         * lib/regex.c (includes): Include <strings.h>, for use of
4846         strcasecmp in regcomp.c.
4847         Reported by Joachim Schmitz.
4848
4849 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4850
4851         stdint: respect system's intmax_t if INTMAX_MAX
4852         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4853         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4854         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4855         long but int64_t is long long, and where we will clash with the
4856         system intmax_t if we override it.  See
4857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4858         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4859         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4860         similarly for UINTMAX_C.
4861
4862 2011-07-08  Bruno Haible  <bruno@clisp.org>
4863
4864         pthread_sigmask tests: Avoid a compiler warning.
4865         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4866         non-zero.
4867
4868         sigprocmask tests: A better way to avoid a compiler warning.
4869         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4870         (main): Complain if system() returns non-zero.
4871         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4872
4873 2011-07-08  Bruno Haible  <bruno@clisp.org>
4874
4875         pthread_sigmask: Work around IRIX bug.
4876         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4877         bug.
4878         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4879         there may be unblocked pending signals.
4880         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4881
4882 2011-07-08  Bruno Haible  <bruno@clisp.org>
4883
4884         pthread_sigmask: Work around Cygwin bug.
4885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4886         bug.
4887         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4888         the system's pthread_sigmask function.
4889         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4890
4891 2011-07-08  Bruno Haible  <bruno@clisp.org>
4892
4893         pthread_sigmask: Work around bug in single-threaded implementation.
4894         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4895         FreeBSD, HP-UX, Solaris bug.
4896         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4897         * lib/pthread_sigmask.c: Include <stddef.h>.
4898         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4899         the system's pthread_sigmask function.
4900         * modules/pthread_sigmask (configure.ac): Invoke
4901         gl_PREREQ_PTHREAD_SIGMASK.
4902         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4903         HP-UX, Solaris.
4904
4905 2011-07-08  Eric Blake  <eblake@redhat.com>
4906
4907         test-sigprocmask: avoid compiler warning
4908         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4909         * tests/test-sigprocmask.c (main): Use it to silence warning.
4910         Reported by Jim Meyering.
4911
4912         test-snprintf: avoid compiler warning
4913         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4914         * tests/test-vsnprintf.c (main): Likewise.
4915         Reported by Jim Meyering.
4916
4917 2011-07-08  Bruno Haible  <bruno@clisp.org>
4918
4919         Tests for module 'pthread_sigmask'.
4920         * modules/pthread_sigmask-tests: New file.
4921         * tests/test-pthread_sigmask1.c: New file, based on
4922         tests/test-sigprocmask.c.
4923         * tests/test-pthread_sigmask2.c: New file.
4924
4925 2011-07-08  Jim Meyering  <meyering@redhat.com>
4926
4927         test-getopt.h: avoid warning about an unused variable
4928         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4929
4930 2011-07-07  Jim Meyering  <meyering@redhat.com>
4931
4932         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4933         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4934         now that it no longer contains leading TABs.
4935         Remove unused "url=FIXME" statement.
4936
4937 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4938
4939         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4940         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4941         When gl_THREADLIB is not in use, assume that the POSIX sematics
4942         are desired.  This is better for Emacs, which uses POSIX semantics
4943         on GNUish and/or POSIXish platforms, and does not use threads at
4944         all otherwise.
4945
4946         pthread_sigmask: fix typo when testing for libraries
4947         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4948         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4949
4950 2011-07-08  Eric Blake  <eblake@redhat.com>
4951
4952         fts: introduce FTS_NOATIME
4953         * lib/fts_.h (FTS_NOATIME): New bit flag.
4954         (FTS_OPTIONMASK): Adjust.
4955         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4956         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4957
4958 2011-07-08  Bruno Haible  <bruno@clisp.org>
4959
4960         Tests for module 'thread'.
4961         * modules/thread-tests: New file.
4962         * tests/test-thread_self.c: New file.
4963         * tests/test-thread_create.cc: New file.
4964
4965 2011-07-08  Bruno Haible  <bruno@clisp.org>
4966
4967         thread: Avoid gcc warnings when using gl_thread_self().
4968         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4969         'void *'.
4970         (gl_thread_self_pointer): Update.
4971
4972 2011-07-07  Bruno Haible  <bruno@clisp.org>
4973
4974         signal-c++-tests: Check declaration of pthread_sigmask.
4975         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4976         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4977         $(LIB_PTHREAD_SIGMASK).
4978
4979 2011-07-07  Bruno Haible  <bruno@clisp.org>
4980
4981         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4982         * lib/signal.in.h (pthread_sigmask): Override if
4983         REPLACE_PTHREAD_SIGMASK is 1.
4984         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4985         REPLACE_PTHREAD_SIGMASK.
4986         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4987         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4988         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4989         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4990         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4991
4992 2011-07-07  Bruno Haible  <bruno@clisp.org>
4993
4994         pthread_sigmask: Ensure declaration in <signal.h>.
4995         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4996         include <pthread.h>.
4997         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4998         problem.
4999
5000 2011-07-07  Bruno Haible  <bruno@clisp.org>
5001
5002         pthread_sigmask: Document the module.
5003         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5004
5005 2011-07-07  Bruno Haible  <bruno@clisp.org>
5006
5007         pthread_sigmask: Follow gnulib conventions.
5008         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5009         gl_PTHREAD_SIGMASK.
5010         * modules/pthread_sigmask (configure.ac): Update.
5011
5012 2011-07-07  Bruno Haible  <bruno@clisp.org>
5013
5014         pthread_sigmask: Make declaration C++ safe.
5015         * lib/signal.in.h: In two special conditions, just do an #include_next.
5016         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5017         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5018         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5019         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5020         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5021         not REPLACE_PTHREAD_MASK.
5022         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5023         not REPLACE_PTHREAD_MASK.
5024         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5025
5026 2011-07-07  Bruno Haible  <bruno@clisp.org>
5027
5028         pthread_sigmask: Fix return value.
5029         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5030         * lib/pthread_sigmask.c: New file.
5031         * modules/pthread_sigmask (Files): Add it.
5032         (configure.ac): Invoke AC_LIBOBJ.
5033
5034 2011-07-07  Eric Blake  <eblake@redhat.com>
5035
5036         getopt: more portable argv creation
5037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5038         const, use char arrays rather than strings.
5039         Suggested by Paul Eggert.
5040
5041 2011-07-07  Bruno Haible  <bruno@clisp.org>
5042
5043         Tests for module 'sigprocmask'.
5044         * modules/sigprocmask-tests: New file.
5045         * tests/test-sigprocmask.c: New file.
5046
5047 2011-07-07  Bruno Haible  <bruno@clisp.org>
5048
5049         float tests: Tweak.
5050         * tests/test-float.c (main): Tweak skip message.
5051
5052 2011-07-07  Eric Blake  <eblake@redhat.com>
5053
5054         getopt: avoid compiler warning during configure
5055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5056         assigning string literals to non-const pointer.
5057
5058         getopt-gnu: avoid crash in glibc getopt
5059         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5060         * tests/test-getopt.h (test_getopt): Enhance test.
5061         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5062         * doc/posix-functions/getopt.texi (getopt): Document it.
5063         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5064         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5065         Likewise.
5066
5067 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5068
5069         getopt: handle W; without long options in getopt [BZ #12922]
5070         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5071         but no long options are defined, just return 'W'.
5072
5073 2011-07-07  Bruno Haible  <bruno@clisp.org>
5074
5075         Avoid literal tabs.
5076         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5077         variable containing a tab instead of a literal tab.
5078         Reported by Jim Meyering.
5079
5080 2011-07-07  Bruno Haible  <bruno@clisp.org>
5081
5082         Comments.
5083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5084
5085 2011-07-06  Bruno Haible  <bruno@clisp.org>
5086
5087         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5088         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5089         <winsock2.h>.
5090         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5091         lib/sys_socket.in.h.
5092         (close, gethostname): Hide declarations from <winsock2.h>.
5093         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5094         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5095         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5096         (select): Don't override if gnulib's <sys/select.h> was already
5097         included.
5098         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5099         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5100         setsockopt, shutdown, select): Tweak indentation.
5101
5102 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5103
5104         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5105         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5106         in an application that does not use the sys_select module.
5107
5108 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5109
5110         poll: do not return 0 on timeout=-1
5111         * lib/poll.c: Loop with yield if no events occured
5112
5113 2011-07-06  Eric Blake  <eblake@redhat.com>
5114
5115         pthread_sigmask: always replace when not using pthread
5116         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5117         replacement when using some threading other than pthread.  Fix
5118         logic bug.
5119
5120 2011-07-06  Bruno Haible  <bruno@clisp.org>
5121
5122         Comments.
5123         * m4/printf.m4: Update comments about mingw.
5124
5125 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5126
5127         sys_select: define sigset_t more portably
5128         * lib/sys_select.in.h: Always include <sys/types.h>, since
5129         we now need sigset_t and mingw defines it there.
5130         Include <signal.h> before split inclusion guard, to avoid
5131         mishaps on Solaris, whose <signal.h> eventually includes us.
5132         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5133         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5134         which come from ...
5135         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5136         gl_CHECK_TYPE_SIGSET_T.
5137         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5138         does the real work.
5139         * modules/sys_select (Depends-on): Add 'signal'.
5140
5141         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5142         Suggested by Bruno Haible.
5143
5144         pselect: Use pthread_sigmask, not sigprocmask.
5145         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5146         multithreaded apps better than sigprocmask does.
5147         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5148         sigprocmask directly.
5149
5150 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5151
5152         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5153         Don't #undef,  since we don't need any underlying pselect.
5154         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5155         (Depends-on): Add select.
5156         (Link): Add $(LIBSOCKET).
5157         These changes suggested by Bruno Haible.
5158
5159         pselect: document better
5160         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5161         * doc/posix-functions/pselect.texi (pselect): Document new module.
5162
5163         pthread_sigmask: new module
5164         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5165         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5166         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5167         This is done only as a macro; I don't know how well that'll
5168         work for C++.  Move <sys/types.h> include before the include_next,
5169         to avoid mishap on Solaris.
5170         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5171         * modules/signal (Makefile.am): Substitute the check's results.
5172         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5173
5174         test-pselect: new module
5175         * modules/pselect-tests, tests/test-pselect.c: New files.
5176         * tests/test-select.c, tests/test-sys_select-c++.cc:
5177         If TEST_PSELECT is defined, test pselect instead of testing select.
5178
5179         * tests/test-sys_select.c (sigset_t): Test for it, too.
5180         Suggested by Bruno Haible.
5181
5182 2011-07-05  Eric Blake  <eblake@redhat.com>
5183
5184         snprintf: guarantee %1$d, for libintl
5185         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5186         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5187         * doc/posix-functions/snprintf.texi (snprintf): Update.
5188         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5189         * tests/test-snprintf.c (main): Enhance test.
5190         * tests/test-vsnprintf.c (main): Likewise.
5191
5192 2011-07-05  Jim Meyering  <meyering@redhat.com>
5193
5194         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5195         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5196         per Bruno's request, to accommodate this idiom (no space after "#")
5197         even when the function is inside an #if block:
5198         char *
5199         gets (char *s)
5200         #undef gets
5201         {
5202           ...
5203         }
5204
5205 2011-07-04  Jim Meyering  <meyering@redhat.com>
5206
5207         maint: indent with spaces, not TABs, and add a rule to check this
5208         * tests/test-userspec.c: Indent with spaces, not TABs.
5209         * tests/test-argp.c: Likewise.
5210         * tests/test-c-stack2.sh: Likewise.
5211         * tests/test-parse-duration.sh: Likewise
5212         * m4/strtod.m4: Likewise.
5213         * m4/alloca.m4: Likewise.
5214         * m4/pselect.m4: Likewise.
5215         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5216
5217 2011-07-03  Jim Meyering  <meyering@redhat.com>
5218
5219         maint.mk: correct omissions in prohibit_argmatch_without_use check
5220         This rule would mistakenly report that argmatch.h is included without
5221         use even when both the argmatch and invalid_arg macro were used.
5222         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5223         of argmatch and invalid_arg.
5224
5225 2011-07-03  Bruno Haible  <bruno@clisp.org>
5226
5227         Comments about EINTR.
5228         * lib/safe-read.h: Explain the purpose of this module.
5229         * lib/safe-write.h: Likewise.
5230         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5231         module.
5232         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5233         module.
5234         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5235
5236 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5237
5238         xnanosleep: Rewrite to use new dtotimespec module.
5239         It has the conversion code that used to be in xnanosleep.
5240         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5241         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5242         (TIME_T_MAX): Remove.
5243         (xnanosleep): Rewrite in terms of dtotimespec.
5244         * modules/xnanosleep (Depends-on): Add dtotimespec.
5245         Remove intprops, stdbool.
5246
5247         timespec-add, timespec-sub: new modules
5248         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5249         * lib/timespec-add.c, lib/timespec-sub.c:
5250         * modules/timespec-add, modules/timespec-sub: New files.
5251
5252         dtotimespec: new module
5253         * lib/timespec.h (dtotimespec): New decl.
5254         * lib/dtotimespec.c, modules/dtotimespec: New files.
5255
5256         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5257
5258         pselect: new module
5259         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5260         (pselect): New decls.
5261         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5262         since the standard pselect decl uses 'restrict'.
5263         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5264         HAVE_PSELECT, REPLACE_PSELECT.
5265         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5266         HAVE_PSELECT, REPLACE_PSELECT.
5267         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5268
5269         sys_select: don't depend on sys_socket
5270         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5272         This fix works on GNU and GNU-like platforms, but has not been tested
5273         on native Windows.
5274         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5276         gl_HEADER_SYS_SOCKET.
5277         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5278         gl_PREREQ_SYS_H_WINSOCK2.
5279
5280 2011-06-29  Eric Blake  <eblake@redhat.com>
5281
5282         pipe2: fix C89 compile problem
5283         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5284         Reported by Bruno Haible.
5285
5286         pipe, pipe2: don't corrupt fd on error
5287         * lib/pipe.c (pipe): Leave fd unchanged on error.
5288         * lib/pipe2.c (pipe2): Likewise.
5289         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5290         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5291
5292 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5293
5294         mmap-anon: do not use regular expressions inadvertently
5295         * m4/mmap-anon.m4: Remove trailing period from strings sought
5296         in the output.
5297
5298 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5299
5300         nanosleep: fix integer overflow problem
5301         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5302         arithmetic wraps around on overflow.
5303
5304         nanosleep: simplify carrying
5305         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5306         first call to the underyling nanosleep, not for the last one.
5307         This doesn't fix any bugs, but it simplifies the computation of
5308         the remaining delay.  Found while auditing integer overflow issues.
5309
5310         dup2: remove test for existence of fcntl
5311         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5312         "#if HAVE_FCNTL", in the configure-time test program.
5313         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5314         and therefore speeds up "configure" a bit.  Found while
5315         adding the dup2 module to Emacs.
5316
5317 2011-06-24  Eric Blake  <eblake@redhat.com>
5318
5319         maint.mk: enhance useless header checks
5320         * top/maint.mk (_sc_header_without_use): Check both include
5321         styles.
5322         (sc_prohibit_assert_without_use)
5323         (sc_prohibit_close_stream_without_use)
5324         (sc_prohibit_getopt_without_use)
5325         (sc_prohibit_quotearg_without_use)
5326         (sc_prohibit_quote_without_use)
5327         (sc_prohibit_long_options_without_use)
5328         (sc_prohibit_inttostr_without_use)
5329         (sc_prohibit_ignore_value_without_use)
5330         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5331         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5332         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5333         (sc_prohibit_hash_pjw_without_use)
5334         (sc_prohibit_safe_read_without_use)
5335         (sc_prohibit_argmatch_without_use)
5336         (sc_prohibit_canonicalize_without_use)
5337         (sc_prohibit_root_dev_ino_without_use)
5338         (sc_prohibit_openat_without_use)
5339         (sc_prohibit_c_ctype_without_use)
5340         (sc_prohibit_signal_without_use)
5341         (sc_prohibit_stdio--_without_use)
5342         (sc_prohibit_stdio-safer_without_use)
5343         (sc_prohibit_strings_without_use)
5344         (sc_prohibit_intprops_without_use)
5345         (sc_prohibit_stddef_without_use)
5346         (sc_prohibit_xfreopen_without_use): Update clients.
5347
5348 2011-06-24  Jim Meyering  <meyering@redhat.com>
5349
5350         syntax-check: keep one maint.mk rule in sync with its header
5351         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5352         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5353         I prefer to avoid temporary files here, so use <(...), but that
5354         is not supported by /bin/sh, so...
5355         (SHELL): Define to /bin/bash.
5356
5357 2011-06-24  Eric Blake  <eblake@redhat.com>
5358
5359         maint.mk: update sc_prohibit_intprops_without_use
5360         * top/maint.mk (_intprops_names): Match recent changes.
5361
5362 2011-06-24  Bruno Haible  <bruno@clisp.org>
5363
5364         strerror-override: No-op tweak.
5365         * lib/strerror-override.h (strerror_override): Reorder conditions,
5366         for consistency with lib/strerror-override.c.
5367
5368 2011-06-23  Eric Blake  <eblake@redhat.com>
5369
5370         maint.mk: test further PATH_MAX issues
5371         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5372         (sc_prohibit_path_max_allocation): ...and also test alloca.
5373         Suggested by Jim Meyering.
5374
5375 2011-06-22  Eric Blake  <eblake@redhat.com>
5376
5377         maint.mk: add syntax-check to avoid char[PATH_MAX]
5378         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5379
5380         stat: be robust to PATH_MAX definition
5381         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5382         * modules/stat (Depends-on): Add verify.
5383
5384         link: work around IRIX bug
5385         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5386         * lib/link.c (rpl_link): Work around it.
5387         * tests/test-link.h (test_link): Enhance test.
5388         * doc/posix-functions/link.texi (link): Document the bug.
5389
5390         getopt: silence clang warning
5391         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5392         dereference.
5393         Reported by Gustavo Martin Domato.
5394
5395 2011-06-22  Jim Meyering  <meyering@redhat.com>
5396
5397         bootstrap: do not insert a blank line into each .gitignore file
5398         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5399
5400 2011-06-21  Eric Blake  <eblake@redhat.com>
5401
5402         perror: test for output mismatch
5403         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5404         perror on IRIX.
5405
5406         strerror_r: fix OpenBSD behavior on out-of-range
5407         * lib/strerror_r.c (strerror_r): Always use maximal string.
5408         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5409
5410         strerror_r: fix OpenBSD behavior on 0
5411         * lib/strerror-override.c (strerror_override): Also override 0
5412         when needed.
5413         * lib/strerror-override.h (strerror_override): Likewise.
5414         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5415         earlier.
5416         * lib/strerror_r.c (strerror_r): Likewise.
5417         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5418         behavior...
5419         (gl_FUNC_STRERROR_0): ...into new macro.
5420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5421         is overridden.
5422         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5423         * modules/strerror-override (Files): Add strerror.m4.
5424         (configure.ac): Also provide override for 0 when needed.
5425         * doc/posix-functions/strerror.texi (strerror): Document this.
5426         * doc/posix-functions/perror.texi (perror): Likewise.
5427
5428         perror: adjust array size
5429         * modules/perror (Depends-on): Add strerror-override.
5430         * lib/perror.c (perror): Use it to avoid magic number.
5431
5432         strerror-override: reduce size
5433         * lib/strerror-override.c (strerror_override): Use fewer lines.
5434
5435 2011-06-20  Bruno Haible  <bruno@clisp.org>
5436
5437         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5438         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5439
5440 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5441
5442         alloca: port to compilers that can optimize like GCC 4.6.0
5443         * lib/alloca.c (find_stack_direction): New signature, taken from
5444         Autoconf git.  This works with GCC 4.6.0.  This code should never
5445         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5446         be used with other compilers that optimize as well as GCC 4.6.0 does.
5447         (alloca): Adjust to new signature.
5448         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5449         New macro, which patches Autoconf in a similar way.
5450
5451         c-stack: stop worrying about stack direction
5452         * lib/c-stack.c (find_stack_direction): Remove.
5453         (segv_handler): Don't worry about stack direction growth, as it's
5454         too much of a pain to configure this correctly, given how compilers
5455         are optimizing-away our stack-growth detection code.  Instead, assume
5456         that any access to just before or just after the stack is OK.
5457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5458         Don't require AC_FUNC_ALLOCA; no longer needed.
5459
5460 2011-06-20  Eric Blake  <eblake@redhat.com>
5461
5462         test-stat: don't allocate PATH_MAX bytes
5463         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5464         PATH_MAX-sized buffer.
5465         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5466         * modules/stat-tests (Depends-on): Likewise.
5467         * tests/test-fstatat.c (includes): Drop pathmax.h.
5468         * tests/test-stat.c (includes): Likewise.
5469         Reported by Bruno Haible.
5470
5471 2011-06-20  Bruno Haible  <bruno@clisp.org>
5472
5473         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5474         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5475         * lib/float.c: New file.
5476         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5477         REPLACE_FLOAT_LDBL.
5478         * modules/float (Files): Add lib/float.c.
5479         (configure.ac): Invoke AC_LIBOBJ.
5480         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5481
5482 2011-06-20  Bruno Haible  <bruno@clisp.org>
5483
5484         Tests for module 'float'.
5485         * modules/float-tests: New file.
5486         * tests/test-float.c: New file.
5487
5488 2011-06-19  Bruno Haible  <bruno@clisp.org>
5489
5490         isinf: Coding style.
5491         * lib/isinf.c: Use GNU coding style.
5492
5493 2011-06-19  Bruno Haible  <bruno@clisp.org>
5494
5495         linkat test: Avoid test failure on AIX 7.1.
5496         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5497         * tests/test-link.h (test_link): Likewise.
5498
5499 2011-06-19  Bruno Haible  <bruno@clisp.org>
5500
5501         pread test: Avoid test failure on OpenBSD 4.9.
5502         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5503
5504 2011-06-19  Bruno Haible  <bruno@clisp.org>
5505
5506         sprintf-posix: Fix test failure on AIX 7.1.
5507         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5508         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5509         on AIX.
5510         * doc/posix-functions/fprintf.texi: Likewise.
5511         * doc/posix-functions/printf.texi: Likewise.
5512         * doc/posix-functions/snprintf.texi: Likewise.
5513         * doc/posix-functions/sprintf.texi: Likewise.
5514         * doc/posix-functions/vdprintf.texi: Likewise.
5515         * doc/posix-functions/vfprintf.texi: Likewise.
5516         * doc/posix-functions/vprintf.texi: Likewise.
5517         * doc/posix-functions/vsnprintf.texi: Likewise.
5518         * doc/posix-functions/vsprintf.texi: Likewise.
5519
5520 2011-06-19  Bruno Haible  <bruno@clisp.org>
5521
5522         roundl-ieee: Fix test failure on AIX 7.1.
5523         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5524         * doc/posix-functions/roundl.texi: Mention problem with negative
5525         arguments.
5526
5527 2011-06-19  Bruno Haible  <bruno@clisp.org>
5528
5529         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5530         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5531         * doc/posix-functions/round.texi: Mention problem with negative
5532         arguments.
5533         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5534
5535 2011-06-19  Bruno Haible  <bruno@clisp.org>
5536
5537         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5538         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5539         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5540         * doc/posix-functions/roundf.texi: Mention problem with negative
5541         arguments.
5542         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5543
5544 2011-06-19  Bruno Haible  <bruno@clisp.org>
5545
5546         ceilf-ieee: Work around bug on MacOS X 10.5.
5547         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5548
5549         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5550         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5551         IEEE compliant, avoid compiler optimizations.
5552         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5553         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5554         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5555         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5556         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5557         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5558         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5559         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5560         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5561         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5562
5563 2011-06-19  Bruno Haible  <bruno@clisp.org>
5564
5565         ceilf-ieee: Work around bug on AIX 7.1.
5566         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5567         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5568
5569 2011-06-19  Bruno Haible  <bruno@clisp.org>
5570
5571         ceil-ieee: Work around bug on AIX 7.1.
5572         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5573         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5574
5575 2011-06-18  Bruno Haible  <bruno@clisp.org>
5576
5577         fsync test: Avoid test failure on MacOS X and AIX.
5578         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5579         EINVAL.
5580
5581 2011-06-18  Bruno Haible  <bruno@clisp.org>
5582
5583         openat, fdopendir tests: Fix link errors.
5584         * modules/openat-tests (Depends-on): Add progname.
5585         * modules/fdopendir-tests (Depends-on): Likewise.
5586         * tests/test-fchownat.c: Include progname.h.
5587         (main): Call set_program_name.
5588         * tests/test-fstatat.c: Include progname.h.
5589         (main): Call set_program_name.
5590         * tests/test-mkdirat.c: Include progname.h.
5591         (main): Call set_program_name.
5592         * tests/test-openat.c: Include progname.h.
5593         (main): Call set_program_name.
5594         * tests/test-unlinkat.c: Include progname.h.
5595         (main): Call set_program_name.
5596         * tests/test-fdopendir.c: Include progname.h.
5597         (main): Call set_program_name.
5598
5599 2011-06-18  Bruno Haible  <bruno@clisp.org>
5600
5601         Doc update.
5602         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5603         HP-UX.
5604         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5605
5606 2011-06-18  Bruno Haible  <bruno@clisp.org>
5607
5608         getcwd tests: Avoid compilation error on HP-UX 11.31.
5609         * modules/getcwd-tests (Depends-on): Add pathmax.
5610         * tests/test-getcwd.c: Include pathmax.h.
5611
5612 2011-06-18  Bruno Haible  <bruno@clisp.org>
5613
5614         isfinite, isinf: Fix link error on AIX 6 and 7.
5615         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5616         needed, also test the macro with a 'float' argument.
5617         * m4/isinf.m4 (gl_ISINF): Likewise.
5618
5619 2011-06-18  Bruno Haible  <bruno@clisp.org>
5620
5621         getloadavg: Don't clobber LIBS. Regression from previous commit.
5622         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5623         AC_CHECK_LIB from here...
5624         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5625         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5626         gl_func_getloadavg_done.
5627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5628
5629 2011-06-18  Bruno Haible  <bruno@clisp.org>
5630
5631         clean-temp: Improve documentation.
5632         * lib/clean-temp.h: Explain better how to use this module.
5633         Reported by John Darrington <john@darrington.wattle.id.au>.
5634
5635 2011-06-17  Bruno Haible  <bruno@clisp.org>
5636
5637         pread, pwrite: Avoid cc warning on AIX.
5638         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5639         (pwrite): Likewise.
5640
5641 2011-06-17  Bruno Haible  <bruno@clisp.org>
5642
5643         spawn-pipe tests: Fix link error.
5644         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5645         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5646
5647 2011-06-17  Bruno Haible  <bruno@clisp.org>
5648
5649         Tests: Remove unnecessary dependency.
5650         * modules/canonicalize-tests (Depends-on): Remove progname.
5651         * modules/chown-tests (Depends-on): Likewise.
5652         * modules/dirname-tests (Depends-on): Likewise.
5653         * modules/fdopendir-tests (Depends-on): Likewise.
5654         * modules/fdutimensat-tests (Depends-on): Likewise.
5655         * modules/hash-tests (Depends-on): Likewise.
5656         * modules/lchown-tests (Depends-on): Likewise.
5657         * modules/linkat-tests (Depends-on): Likewise.
5658         * modules/renameat-tests (Depends-on): Likewise.
5659         * modules/spawn-pipe-tests (Depends-on): Likewise.
5660         * modules/utimensat-tests (Depends-on): Likewise.
5661
5662 2011-06-17  Bruno Haible  <bruno@clisp.org>
5663
5664         spawn-pipe tests: Fix link error.
5665         * tests/test-spawn-pipe-child.c: Undefine fflush.
5666
5667 2011-06-17  Bruno Haible  <bruno@clisp.org>
5668
5669         Fix tests link errors.
5670         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5671         * modules/chown-tests (Makefile.am): Don't link test-chown with
5672         LIBINTL.
5673         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5674         LIBINTL.
5675         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5676         LIBINTL.
5677         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5678         LIBINTL.
5679
5680 2011-06-16  Bruno Haible  <bruno@clisp.org>
5681
5682         crypto/gc-sha1: Fix recent regression.
5683         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5684         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5685
5686         crypto/gc-md5: Fix recent regression.
5687         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5688
5689         crypto/gc-md4: Fix recent regression.
5690         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5691         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5692
5693         crypto/gc-arctwo: Fix recent regression.
5694         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5695         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5696
5697         crypto/gc-rijndael: Fix recent regression.
5698         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5699         (configure.ac): Invoke AC_LIBOBJ here.
5700         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5702
5703         crypto/gc-hmac-sha1: Fix recent regression.
5704         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5705         (configure.ac): Invoke AC_LIBOBJ here.
5706         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5708
5709         crypto/gc-hmac-md5: Fix recent regression.
5710         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5711         (configure.ac): Invoke AC_LIBOBJ here.
5712         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5714
5715         crypto/gc-des: Fix recent regression.
5716         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5717         (configure.ac): Invoke AC_LIBOBJ here.
5718         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5720
5721         crypto/gc-arcfour: Fix recent regression.
5722         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5723         (configure.ac): Invoke AC_LIBOBJ here.
5724         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5726
5727 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5728
5729         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5730         After the 2011-05-21 change, this macro requires
5731         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5732         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5733
5734 2011-06-16  Bruno Haible  <bruno@clisp.org>
5735
5736         fprintftime: Move AC_LIBOBJ invocations to module description.
5737         * m4/fprintftime.m4: Remove file.
5738         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5739         (configure.ac): Remove gl_FPRINTFTIME call.
5740         (Makefile.am): Augment lib_SOURCES.
5741         Reported by Jim Meyering.
5742
5743 2011-06-16  Bruno Haible  <bruno@clisp.org>
5744
5745         tmpfile-safer: Finish 2011-05-23 commit.
5746         * m4/stdio-safer.m4: Really remove file.
5747         Reported by Jim Meyering.
5748
5749 2011-06-16  Bruno Haible  <bruno@clisp.org>
5750
5751         syntax-check: Fix typo.
5752         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5753         printf-posix.m4.
5754         Reported by Jim Meyering.
5755
5756 2011-06-13  Jim Meyering  <meyering@redhat.com>
5757
5758         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5759         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5760
5761 2011-05-23  Bruno Haible  <bruno@clisp.org>
5762
5763         yesno: Move AC_LIBOBJ invocations to module description.
5764         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5765         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5766
5767 2011-05-23  Bruno Haible  <bruno@clisp.org>
5768
5769         xstrtol: Move AC_LIBOBJ invocations to module description.
5770         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5771         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5772
5773 2011-05-23  Bruno Haible  <bruno@clisp.org>
5774
5775         xstrtold: Move AC_LIBOBJ invocations to module description.
5776         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5777         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5778
5779 2011-05-23  Bruno Haible  <bruno@clisp.org>
5780
5781         xstrtod: Move AC_LIBOBJ invocations to module description.
5782         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5783         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5784
5785 2011-05-23  Bruno Haible  <bruno@clisp.org>
5786
5787         xnanosleep: Move AC_LIBOBJ invocations to module description.
5788         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5789         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5790
5791 2011-05-23  Bruno Haible  <bruno@clisp.org>
5792
5793         xgetcwd: Move AC_LIBOBJ invocations to module description.
5794         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5795         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5796
5797 2011-05-23  Bruno Haible  <bruno@clisp.org>
5798
5799         xalloc: Move AC_LIBOBJ invocations to module description.
5800         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5801         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5802
5803 2011-05-23  Bruno Haible  <bruno@clisp.org>
5804
5805         write-any-file: Move AC_LIBOBJ invocations to module description.
5806         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5807         invocation.
5808         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5809
5810 2011-05-23  Bruno Haible  <bruno@clisp.org>
5811
5812         utimens: Move AC_LIBOBJ invocations to module description.
5813         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5814         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5815
5816 2011-05-23  Bruno Haible  <bruno@clisp.org>
5817
5818         utimecmp: Move AC_LIBOBJ invocations to module description.
5819         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5820         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5821
5822 2011-05-23  Bruno Haible  <bruno@clisp.org>
5823
5824         userspec: Move AC_LIBOBJ invocations to module description.
5825         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5826         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5827
5828 2011-05-23  Bruno Haible  <bruno@clisp.org>
5829
5830         unlinkdir: Move AC_LIBOBJ invocations to module description.
5831         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5832         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5833
5834 2011-05-23  Bruno Haible  <bruno@clisp.org>
5835
5836         unistd-safer: Move AC_LIBOBJ invocations to module description.
5837         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5838         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5839
5840 2011-05-23  Bruno Haible  <bruno@clisp.org>
5841
5842         tempname: Move AC_LIBOBJ invocations to module description.
5843         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5844         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5845
5846 2011-05-23  Bruno Haible  <bruno@clisp.org>
5847
5848         strftime: Move AC_LIBOBJ invocations to module description.
5849         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5850         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5851
5852 2011-05-23  Bruno Haible  <bruno@clisp.org>
5853
5854         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5855         * m4/stdlib-safer.m4: Remove file.
5856         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5857         (configure.ac): Remove gl_STDLIB_SAFER call.
5858         (Makefile.am): Augment lib_SOURCES.
5859
5860 2011-05-23  Bruno Haible  <bruno@clisp.org>
5861
5862         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5863         * m4/stdio-safer.m4: Remove file.
5864         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5865         (configure.ac): Remove gl_TMPFILE_SAFER call.
5866         (Makefile.am): Augment lib_SOURCES.
5867
5868 2011-05-23  Bruno Haible  <bruno@clisp.org>
5869
5870         popen-safer: Move AC_LIBOBJ invocations to module description.
5871         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5872         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5873         (configure.ac): Remove gl_POPEN_SAFER call.
5874         (Makefile.am): Augment lib_SOURCES.
5875
5876 2011-05-23  Bruno Haible  <bruno@clisp.org>
5877
5878         freopen-safer: Move AC_LIBOBJ invocations to module description.
5879         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5880         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5881         (configure.ac): Remove gl_FREOPEN_SAFER call.
5882         (Makefile.am): Augment lib_SOURCES.
5883
5884 2011-05-23  Bruno Haible  <bruno@clisp.org>
5885
5886         fopen-safer: Move AC_LIBOBJ invocations to module description.
5887         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5888         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5889         (configure.ac): Remove gl_FOPEN_SAFER call.
5890         (Makefile.am): Augment lib_SOURCES.
5891
5892 2011-05-23  Bruno Haible  <bruno@clisp.org>
5893
5894         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5895         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5896         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5897
5898 2011-05-23  Bruno Haible  <bruno@clisp.org>
5899
5900         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5901         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5902         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5903
5904 2011-05-23  Bruno Haible  <bruno@clisp.org>
5905
5906         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5907         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5908         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5909
5910 2011-05-23  Bruno Haible  <bruno@clisp.org>
5911
5912         settime: Move AC_LIBOBJ invocations to module description.
5913         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5914         * modules/settime (Makefile.am): Augment lib_SOURCES.
5915
5916 2011-05-23  Bruno Haible  <bruno@clisp.org>
5917
5918         savedir: Move AC_LIBOBJ invocations to module description.
5919         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5920         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5921
5922 2011-05-23  Bruno Haible  <bruno@clisp.org>
5923
5924         save-cwd: Move AC_LIBOBJ invocations to module description.
5925         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5926         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5927
5928 2011-05-23  Bruno Haible  <bruno@clisp.org>
5929
5930         same: Move AC_LIBOBJ invocations to module description.
5931         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5932         * modules/same (Makefile.am): Augment lib_SOURCES.
5933
5934 2011-05-23  Bruno Haible  <bruno@clisp.org>
5935
5936         safe-write: Move AC_LIBOBJ invocations to module description.
5937         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5938         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5939         instead of gl_SAFE_WRITE.
5940         (Makefile.am): Augment lib_SOURCES.
5941
5942 2011-05-23  Bruno Haible  <bruno@clisp.org>
5943
5944         safe-read: Move AC_LIBOBJ invocations to module description.
5945         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5946         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5947         of gl_SAFE_READ.
5948         (Makefile.am): Augment lib_SOURCES.
5949
5950 2011-05-23  Bruno Haible  <bruno@clisp.org>
5951
5952         safe-alloc: Move AC_LIBOBJ invocations to module description.
5953         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5954         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5955
5956 2011-05-23  Bruno Haible  <bruno@clisp.org>
5957
5958         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5959         * m4/rijndael.m4: Remove file.
5960         * modules/crypto/rijndael (Files): Remove it.
5961         (configure.ac): Remove gl_RIJNDAEL call.
5962         (Makefile.am): Augment lib_SOURCES.
5963
5964 2011-05-23  Bruno Haible  <bruno@clisp.org>
5965
5966         readtokens: Move AC_LIBOBJ invocations to module description.
5967         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5968         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5969
5970 2011-05-23  Bruno Haible  <bruno@clisp.org>
5971
5972         read-file: Move AC_LIBOBJ invocations to module description.
5973         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5974         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5975         of gl_FUNC_READ_FILE.
5976         (Makefile.am): Augment lib_SOURCES.
5977
5978 2011-05-23  Bruno Haible  <bruno@clisp.org>
5979
5980         quotearg: Move AC_LIBOBJ invocations to module description.
5981         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5982         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5983
5984 2011-05-23  Bruno Haible  <bruno@clisp.org>
5985
5986         quote: Move AC_LIBOBJ invocations to module description.
5987         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5988         * modules/quote (Makefile.am): Augment lib_SOURCES.
5989
5990 2011-05-23  Bruno Haible  <bruno@clisp.org>
5991
5992         posixver: Move AC_LIBOBJ invocations to module description.
5993         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5994         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5995
5996 2011-05-23  Bruno Haible  <bruno@clisp.org>
5997
5998         posixtm: Move AC_LIBOBJ invocations to module description.
5999         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6000         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6001
6002 2011-05-23  Bruno Haible  <bruno@clisp.org>
6003
6004         physmem: Move AC_LIBOBJ invocations to module description.
6005         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6006         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6007
6008 2011-05-23  Bruno Haible  <bruno@clisp.org>
6009
6010         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6011         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6012         invocation.
6013         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6014
6015 2011-05-23  Bruno Haible  <bruno@clisp.org>
6016
6017         mpsort: Move AC_LIBOBJ invocations to module description.
6018         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6019         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6020
6021 2011-05-23  Bruno Haible  <bruno@clisp.org>
6022
6023         modechange: Move AC_LIBOBJ invocations to module description.
6024         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6025         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6026
6027 2011-05-23  Bruno Haible  <bruno@clisp.org>
6028
6029         mkdir-p: Move AC_LIBOBJ invocations to module description.
6030         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6031         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6032
6033 2011-05-23  Bruno Haible  <bruno@clisp.org>
6034
6035         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6036         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6037         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6038
6039 2011-05-23  Bruno Haible  <bruno@clisp.org>
6040
6041         mgetgroups: Move AC_LIBOBJ invocations to module description.
6042         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6043         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6044
6045 2011-05-23  Bruno Haible  <bruno@clisp.org>
6046
6047         memxor: Move AC_LIBOBJ invocations to module description.
6048         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6049         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6050
6051 2011-05-23  Bruno Haible  <bruno@clisp.org>
6052
6053         memcoll: Move AC_LIBOBJ invocations to module description.
6054         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6055         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6056
6057 2011-05-23  Bruno Haible  <bruno@clisp.org>
6058
6059         memcasecmp: Move AC_LIBOBJ invocations to module description.
6060         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6061         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6062
6063 2011-05-23  Bruno Haible  <bruno@clisp.org>
6064
6065         crypto/md5: Move AC_LIBOBJ invocations to module description.
6066         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6067         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6068
6069 2011-05-23  Bruno Haible  <bruno@clisp.org>
6070
6071         crypto/md4: Move AC_LIBOBJ invocations to module description.
6072         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6073         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6074
6075 2011-05-23  Bruno Haible  <bruno@clisp.org>
6076
6077         crypto/md2: Move AC_LIBOBJ invocations to module description.
6078         * m4/md2.m4: Remove file.
6079         * modules/crypto/md2 (Files): Remove it.
6080         (configure.ac): Remove gl_MD2 call.
6081         (Makefile.am): Augment lib_SOURCES.
6082
6083 2011-05-23  Bruno Haible  <bruno@clisp.org>
6084
6085         long-options: Move AC_LIBOBJ invocations to module description.
6086         * m4/long-options.m4: Remove file.
6087         * modules/long-options (Files): Remove it.
6088         (configure.ac): Remove gl_LONG_OPTIONS call.
6089         (Makefile.am): Augment lib_SOURCES.
6090
6091 2011-05-23  Bruno Haible  <bruno@clisp.org>
6092
6093         i-ring: Move AC_LIBOBJ invocations to module description.
6094         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6095         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6096
6097 2011-05-23  Bruno Haible  <bruno@clisp.org>
6098
6099         idcache: Move AC_LIBOBJ invocations to module description.
6100         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6101         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6102
6103 2011-05-23  Bruno Haible  <bruno@clisp.org>
6104
6105         human: Move AC_LIBOBJ invocations to module description.
6106         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6107         * modules/human (Makefile.am): Augment lib_SOURCES.
6108
6109 2011-05-23  Bruno Haible  <bruno@clisp.org>
6110
6111         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6112         * m4/hmac-sha1.m4: Remove file.
6113         * modules/crypto/hmac-sha1 (Files): Remove it.
6114         (configure.ac): Remove gl_HMAC_SHA1 call.
6115         (Makefile.am): Augment lib_SOURCES.
6116
6117 2011-05-23  Bruno Haible  <bruno@clisp.org>
6118
6119         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6120         * m4/hmac-md5.m4: Remove file.
6121         * modules/crypto/hmac-md5 (Files): Remove it.
6122         (configure.ac): Remove gl_HMAC_MD5 call.
6123         (Makefile.am): Augment lib_SOURCES.
6124
6125 2011-05-23  Bruno Haible  <bruno@clisp.org>
6126
6127         hash: Move AC_LIBOBJ invocations to module description.
6128         * m4/hash.m4: Remove file.
6129         * modules/hash (Files): Remove it.
6130         (configure.ac): Remove gl_HASH call.
6131         (Makefile.am): Augment lib_SOURCES.
6132
6133 2011-05-23  Bruno Haible  <bruno@clisp.org>
6134
6135         hard-locale: Move AC_LIBOBJ invocations to module description.
6136         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6137         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6138
6139 2011-05-23  Bruno Haible  <bruno@clisp.org>
6140
6141         getugroups: Move AC_LIBOBJ invocations to module description.
6142         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6143         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6144
6145 2011-05-23  Bruno Haible  <bruno@clisp.org>
6146
6147         gettime: Move AC_LIBOBJ invocations to module description.
6148         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6149         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6150
6151 2011-05-23  Bruno Haible  <bruno@clisp.org>
6152
6153         getndelim2: Move AC_LIBOBJ invocations to module description.
6154         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6155         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6156
6157 2011-05-23  Bruno Haible  <bruno@clisp.org>
6158
6159         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6160         * m4/gc-pbkdf2-sha1.m4: Remove file.
6161         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6162         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6163         (Makefile.am): Augment lib_SOURCES.
6164
6165 2011-05-23  Bruno Haible  <bruno@clisp.org>
6166
6167         fts: Move AC_LIBOBJ invocations to module description.
6168         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6169         * modules/fts (configure.ac): ... to here.
6170
6171 2011-05-23  Bruno Haible  <bruno@clisp.org>
6172
6173         file-type: Move AC_LIBOBJ invocations to module description.
6174         * m4/file-type.m4: Remove file.
6175         * modules/file-type (Files): Remove it.
6176         (configure.ac): Remove gl_FILE_TYPE call.
6177         (Makefile.am): Augment lib_SOURCES.
6178
6179 2011-05-23  Bruno Haible  <bruno@clisp.org>
6180
6181         filenamecat*: Respect rules for use of AC_LIBOBJ.
6182         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6183         Remove AC_LIBOBJ invocation.
6184         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6185         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6186
6187 2011-05-23  Bruno Haible  <bruno@clisp.org>
6188
6189         filemode: Move AC_LIBOBJ invocations to module description.
6190         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6191         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6192
6193 2011-05-23  Bruno Haible  <bruno@clisp.org>
6194
6195         openat-safer: Move AC_LIBOBJ invocations to module description.
6196         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6197         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6198
6199 2011-05-23  Bruno Haible  <bruno@clisp.org>
6200
6201         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6202         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6203         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6204
6205 2011-05-23  Bruno Haible  <bruno@clisp.org>
6206
6207         exclude: Move AC_LIBOBJ invocations to module description.
6208         * m4/exclude.m4: Remove file.
6209         * modules/exclude (Files): Remove it.
6210         (configure.ac): Remove gl_EXCLUDE call.
6211         (Makefile.am): Augment lib_SOURCES.
6212
6213 2011-05-23  Bruno Haible  <bruno@clisp.org>
6214
6215         dirname*: Respect rules for use of AC_LIBOBJ.
6216         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6217         invocations.
6218         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6219         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6220
6221 2011-05-23  Bruno Haible  <bruno@clisp.org>
6222
6223         dirent-safer: Move AC_LIBOBJ invocations to module description.
6224         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6225         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6226
6227 2011-05-23  Bruno Haible  <bruno@clisp.org>
6228
6229         crypto/des: Move AC_LIBOBJ invocations to module description.
6230         * m4/des.m4: Remove file.
6231         * modules/crypto/des (Files): Remove it.
6232         (configure.ac): Remove gl_DES call.
6233         (Makefile.am): Augment lib_SOURCES.
6234
6235 2011-05-23  Bruno Haible  <bruno@clisp.org>
6236
6237         cycle-check: Move AC_LIBOBJ invocations to module description.
6238         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6239         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6240
6241 2011-05-23  Bruno Haible  <bruno@clisp.org>
6242
6243         c-strtold: Move AC_LIBOBJ invocations to module description.
6244         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6245         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6246
6247 2011-05-23  Bruno Haible  <bruno@clisp.org>
6248
6249         c-strtod: Move AC_LIBOBJ invocations to module description.
6250         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6251         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6252
6253 2011-05-23  Bruno Haible  <bruno@clisp.org>
6254
6255         crc: Move AC_LIBOBJ invocations to module description.
6256         * m4/crc.m4: Remove file.
6257         * modules/crc (Files): Remove it.
6258         (configure.ac): Remove gl_CRC call.
6259         (Makefile.am): Augment lib_SOURCES.
6260
6261 2011-05-23  Bruno Haible  <bruno@clisp.org>
6262
6263         close-stream: Move AC_LIBOBJ invocations to module description.
6264         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6265         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6266
6267 2011-05-23  Bruno Haible  <bruno@clisp.org>
6268
6269         closeout: Move AC_LIBOBJ invocations to module description.
6270         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6271         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6272
6273 2011-05-23  Bruno Haible  <bruno@clisp.org>
6274
6275         closein: Move AC_LIBOBJ invocations to module description.
6276         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6277         * modules/closein (Makefile.am): Augment lib_SOURCES.
6278
6279 2011-05-23  Bruno Haible  <bruno@clisp.org>
6280
6281         cloexec: Move AC_LIBOBJ invocations to module description.
6282         * m4/cloexec.m4: Remove file.
6283         * modules/cloexec (Files): Remove it.
6284         (configure.ac): Remove gl_CLOEXEC call.
6285         (Makefile.am): Augment lib_SOURCES.
6286
6287 2011-05-23  Bruno Haible  <bruno@clisp.org>
6288
6289         check-version: Move AC_LIBOBJ invocations to module description.
6290         * m4/check-version.m4: Remove file.
6291         * modules/check-version (Files): Remove it.
6292         (configure.ac): Remove gl_CHECK_VERSION call.
6293         (Makefile.am): Augment lib_SOURCES.
6294
6295 2011-05-23  Bruno Haible  <bruno@clisp.org>
6296
6297         chdir-safer: Move AC_LIBOBJ invocations to module description.
6298         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6299         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6300
6301 2011-05-23  Bruno Haible  <bruno@clisp.org>
6302
6303         canonicalize: Move AC_LIBOBJ invocations to module description.
6304         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6305         AC_LIBOBJ invocation.
6306         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6307
6308 2011-05-23  Bruno Haible  <bruno@clisp.org>
6309
6310         canon-host: Move AC_LIBOBJ invocations to module description.
6311         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6312         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6313         instead of gl_CANON_HOST.
6314         (Makefile.am): Augment lib_SOURCES.
6315
6316 2011-05-23  Bruno Haible  <bruno@clisp.org>
6317
6318         backupfile: Move AC_LIBOBJ invocations to module description.
6319         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6320         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6321
6322 2011-05-23  Bruno Haible  <bruno@clisp.org>
6323
6324         argmatch: Move AC_LIBOBJ invocations to module description.
6325         * m4/argmatch.m4: Remove file.
6326         * modules/argmatch (Files): Remove it.
6327         (configure.ac): Remove gl_ARGMATCH call.
6328         (Makefile.am): Augment lib_SOURCES.
6329
6330 2011-05-23  Bruno Haible  <bruno@clisp.org>
6331
6332         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6333         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6334         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6335
6336 2011-05-23  Bruno Haible  <bruno@clisp.org>
6337
6338         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6339         * m4/arcfour.m4: Remove file.
6340         * modules/crypto/arcfour (Files): Remove it.
6341         (configure.ac): Remove gl_ARCFOUR call.
6342         (Makefile.am): Augment lib_SOURCES.
6343
6344 2011-05-22  Bruno Haible  <bruno@clisp.org>
6345
6346         write: Move AC_LIBOBJ invocations to module description.
6347         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6348         * modules/write (configure.ac): ... to here.
6349
6350 2011-05-22  Bruno Haible  <bruno@clisp.org>
6351
6352         wmemset: Move AC_LIBOBJ invocations to module description.
6353         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6354         here...
6355         * modules/wmemset (configure.ac): ... to here.
6356
6357 2011-05-22  Bruno Haible  <bruno@clisp.org>
6358
6359         wmemmove: Move AC_LIBOBJ invocations to module description.
6360         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6361         here...
6362         * modules/wmemmove (configure.ac): ... to here.
6363
6364 2011-05-22  Bruno Haible  <bruno@clisp.org>
6365
6366         wmemcpy: Move AC_LIBOBJ invocations to module description.
6367         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6368         here...
6369         * modules/wmemcpy (configure.ac): ... to here.
6370
6371 2011-05-22  Bruno Haible  <bruno@clisp.org>
6372
6373         wmemcmp: Move AC_LIBOBJ invocations to module description.
6374         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6375         here...
6376         * modules/wmemcmp (configure.ac): ... to here.
6377
6378 2011-05-22  Bruno Haible  <bruno@clisp.org>
6379
6380         wmemchr: Move AC_LIBOBJ invocations to module description.
6381         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6382         here...
6383         * modules/wmemchr (configure.ac): ... to here.
6384
6385 2011-05-22  Bruno Haible  <bruno@clisp.org>
6386
6387         wcswidth: Move AC_LIBOBJ invocations to module description.
6388         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6389         here...
6390         * modules/wcswidth (configure.ac): ... to here.
6391
6392 2011-05-22  Bruno Haible  <bruno@clisp.org>
6393
6394         wcwidth: Respect rules for use of AC_LIBOBJ.
6395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6396         invocation from here...
6397         * modules/wcwidth (configure.ac): ... to here.
6398         (Depends-on): Update conditions.
6399
6400 2011-05-22  Bruno Haible  <bruno@clisp.org>
6401
6402         wctype: Move AC_LIBOBJ invocations to module description.
6403         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6404         invocation from here...
6405         * modules/wctype (configure.ac): ... to here.
6406         (Depends-on): Update conditions.
6407
6408 2011-05-22  Bruno Haible  <bruno@clisp.org>
6409
6410         wctrans: Move AC_LIBOBJ invocations to module description.
6411         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6412         invocation from here...
6413         * modules/wctrans (configure.ac): ... to here.
6414
6415 2011-05-22  Bruno Haible  <bruno@clisp.org>
6416
6417         wctomb: Move AC_LIBOBJ invocations to module description.
6418         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6419         invocations from here...
6420         * modules/wctomb (configure.ac): ... to here.
6421
6422 2011-05-22  Bruno Haible  <bruno@clisp.org>
6423
6424         wctob: Move AC_LIBOBJ invocations to module description.
6425         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6426         gl_PREREQ_WCTOB invocations from here...
6427         * modules/wctob (configure.ac): ... to here.
6428         (Depends-on): Update conditions.
6429
6430 2011-05-22  Bruno Haible  <bruno@clisp.org>
6431
6432         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6433         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6434         here...
6435         * modules/wcsxfrm (configure.ac): ... to here.
6436
6437 2011-05-22  Bruno Haible  <bruno@clisp.org>
6438
6439         wcstok: Move AC_LIBOBJ invocations to module description.
6440         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6441         * modules/wcstok (configure.ac): ... to here.
6442
6443 2011-05-22  Bruno Haible  <bruno@clisp.org>
6444
6445         wcsstr: Move AC_LIBOBJ invocations to module description.
6446         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6447         * modules/wcsstr (configure.ac): ... to here.
6448
6449 2011-05-22  Bruno Haible  <bruno@clisp.org>
6450
6451         wcsspn: Move AC_LIBOBJ invocations to module description.
6452         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6453         * modules/wcsspn (configure.ac): ... to here.
6454
6455 2011-05-22  Bruno Haible  <bruno@clisp.org>
6456
6457         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6458         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6459         gl_PREREQ_WCSRTOMBS invocations from here...
6460         * modules/wcsrtombs (configure.ac): ... to here.
6461
6462 2011-05-22  Bruno Haible  <bruno@clisp.org>
6463
6464         wcsrchr: Move AC_LIBOBJ invocations to module description.
6465         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6466         here...
6467         * modules/wcsrchr (configure.ac): ... to here.
6468
6469 2011-05-22  Bruno Haible  <bruno@clisp.org>
6470
6471         wcspbrk: Move AC_LIBOBJ invocations to module description.
6472         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6473         here...
6474         * modules/wcspbrk (configure.ac): ... to here.
6475
6476 2011-05-22  Bruno Haible  <bruno@clisp.org>
6477
6478         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6479         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6480         gl_PREREQ_WCSNRTOMBS invocations from here...
6481         * modules/wcsnrtombs (configure.ac): ... to here.
6482
6483 2011-05-22  Bruno Haible  <bruno@clisp.org>
6484
6485         wcsnlen: Move AC_LIBOBJ invocations to module description.
6486         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6487         here...
6488         * modules/wcsnlen (configure.ac): ... to here.
6489
6490 2011-05-22  Bruno Haible  <bruno@clisp.org>
6491
6492         wcsncpy: Move AC_LIBOBJ invocations to module description.
6493         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6494         here...
6495         * modules/wcsncpy (configure.ac): ... to here.
6496
6497 2011-05-22  Bruno Haible  <bruno@clisp.org>
6498
6499         wcsncmp: Move AC_LIBOBJ invocations to module description.
6500         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6501         here...
6502         * modules/wcsncmp (configure.ac): ... to here.
6503
6504 2011-05-22  Bruno Haible  <bruno@clisp.org>
6505
6506         wcsncat: Move AC_LIBOBJ invocations to module description.
6507         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6508         here...
6509         * modules/wcsncat (configure.ac): ... to here.
6510
6511 2011-05-22  Bruno Haible  <bruno@clisp.org>
6512
6513         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6514         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6515         from here...
6516         * modules/wcsncasecmp (configure.ac): ... to here.
6517
6518 2011-05-22  Bruno Haible  <bruno@clisp.org>
6519
6520         wcslen: Move AC_LIBOBJ invocations to module description.
6521         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6522         * modules/wcslen (configure.ac): ... to here.
6523
6524 2011-05-22  Bruno Haible  <bruno@clisp.org>
6525
6526         wcsdup: Move AC_LIBOBJ invocations to module description.
6527         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6528         * modules/wcsdup (configure.ac): ... to here.
6529
6530 2011-05-22  Bruno Haible  <bruno@clisp.org>
6531
6532         wcscspn: Move AC_LIBOBJ invocations to module description.
6533         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6534         here...
6535         * modules/wcscspn (configure.ac): ... to here.
6536
6537 2011-05-22  Bruno Haible  <bruno@clisp.org>
6538
6539         wcscpy: Move AC_LIBOBJ invocations to module description.
6540         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6541         * modules/wcscpy (configure.ac): ... to here.
6542
6543 2011-05-22  Bruno Haible  <bruno@clisp.org>
6544
6545         wcscoll: Move AC_LIBOBJ invocations to module description.
6546         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6547         here...
6548         * modules/wcscoll (configure.ac): ... to here.
6549
6550 2011-05-22  Bruno Haible  <bruno@clisp.org>
6551
6552         wcscmp: Move AC_LIBOBJ invocations to module description.
6553         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6554         * modules/wcscmp (configure.ac): ... to here.
6555
6556 2011-05-22  Bruno Haible  <bruno@clisp.org>
6557
6558         wcschr: Move AC_LIBOBJ invocations to module description.
6559         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6560         * modules/wcschr (configure.ac): ... to here.
6561
6562 2011-05-22  Bruno Haible  <bruno@clisp.org>
6563
6564         wcscat: Move AC_LIBOBJ invocations to module description.
6565         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6566         * modules/wcscat (configure.ac): ... to here.
6567
6568 2011-05-22  Bruno Haible  <bruno@clisp.org>
6569
6570         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6571         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6572         here...
6573         * modules/wcscasecmp (configure.ac): ... to here.
6574
6575 2011-05-22  Bruno Haible  <bruno@clisp.org>
6576
6577         wcrtomb: Move AC_LIBOBJ invocations to module description.
6578         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6579         invocations from here...
6580         * modules/wcrtomb (configure.ac): ... to here.
6581
6582 2011-05-22  Bruno Haible  <bruno@clisp.org>
6583
6584         wcpncpy: Move AC_LIBOBJ invocations to module description.
6585         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6586         here...
6587         * modules/wcpncpy (configure.ac): ... to here.
6588
6589 2011-05-22  Bruno Haible  <bruno@clisp.org>
6590
6591         wcpcpy: Move AC_LIBOBJ invocations to module description.
6592         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6593         * modules/wcpcpy (configure.ac): ... to here.
6594
6595 2011-05-22  Bruno Haible  <bruno@clisp.org>
6596
6597         waitpid: Move AC_LIBOBJ invocations to module description.
6598         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6599         invocation from here...
6600         * modules/waitpid (configure.ac): ... to here.
6601
6602 2011-05-22  Bruno Haible  <bruno@clisp.org>
6603
6604         utimensat: Move AC_LIBOBJ invocations to module description.
6605         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6606         here...
6607         * modules/utimensat (configure.ac): ... to here.
6608
6609 2011-05-22  Bruno Haible  <bruno@clisp.org>
6610
6611         usleep: Move AC_LIBOBJ invocations to module description.
6612         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6613         here...
6614         * modules/usleep (configure.ac): ... to here.
6615
6616 2011-05-22  Bruno Haible  <bruno@clisp.org>
6617
6618         unlockpt: Move AC_LIBOBJ invocations to module description.
6619         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6620         gl_PREREQ_UNLOCKPT invocations from here...
6621         * modules/unlockpt (configure.ac): ... to here.
6622
6623 2011-05-22  Bruno Haible  <bruno@clisp.org>
6624
6625         unlink: Respect rules for use of AC_LIBOBJ.
6626         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6627         * modules/unlink (configure.ac): ... to here.
6628
6629 2011-05-22  Bruno Haible  <bruno@clisp.org>
6630
6631         uname: Move AC_LIBOBJ invocations to module description.
6632         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6633         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6634         here...
6635         * modules/uname (configure.ac): ... to here.
6636
6637 2011-05-22  Bruno Haible  <bruno@clisp.org>
6638
6639         ttyname_r: Move AC_LIBOBJ invocations to module description.
6640         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6641         gl_PREREQ_TTYNAME_R invocations from here...
6642         * modules/ttyname_r (configure.ac): ... to here.
6643
6644 2011-05-22  Bruno Haible  <bruno@clisp.org>
6645
6646         tsearch: Move AC_LIBOBJ invocations to module description.
6647         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6648         invocations from here...
6649         * modules/tsearch (configure.ac): ... to here.
6650
6651 2011-05-22  Bruno Haible  <bruno@clisp.org>
6652
6653         towctrans: Move AC_LIBOBJ invocations to module description.
6654         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6655         AC_LIBOBJ invocation from here...
6656         * modules/towctrans (configure.ac): ... to here.
6657
6658 2011-05-22  Bruno Haible  <bruno@clisp.org>
6659
6660         tmpfile: Move AC_LIBOBJ invocations to module description.
6661         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6662         invocations from here...
6663         * modules/tmpfile (configure.ac): ... to here.
6664
6665 2011-05-22  Bruno Haible  <bruno@clisp.org>
6666
6667         times: Move AC_LIBOBJ invocations to module description.
6668         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6669         * modules/times (configure.ac): ... to here.
6670
6671 2011-05-22  Bruno Haible  <bruno@clisp.org>
6672
6673         time_r: Move AC_LIBOBJ invocations to module description.
6674         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6675         invocations from here...
6676         * modules/time_r (configure.ac): ... to here.
6677
6678 2011-05-22  Bruno Haible  <bruno@clisp.org>
6679
6680         timegm: Move AC_LIBOBJ invocations to module description.
6681         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6682         invocations from here...
6683         * modules/timegm (configure.ac): ... to here.
6684
6685 2011-05-22  Bruno Haible  <bruno@clisp.org>
6686
6687         tcgetsid: Move AC_LIBOBJ invocations to module description.
6688         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6689         and gl_PREREQ_TCGETSID invocations from here...
6690         * modules/tcgetsid (configure.ac): ... to here.
6691         (Depends-on): Update conditions.
6692
6693 2011-05-22  Bruno Haible  <bruno@clisp.org>
6694
6695         symlinkat: Move AC_LIBOBJ invocations to module description.
6696         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6697         here...
6698         * modules/symlinkat (configure.ac): ... to here.
6699
6700 2011-05-22  Bruno Haible  <bruno@clisp.org>
6701
6702         symlink: Move AC_LIBOBJ invocations to module description.
6703         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6704         here...
6705         * modules/symlink (configure.ac): ... to here.
6706
6707 2011-05-22  Bruno Haible  <bruno@clisp.org>
6708
6709         strverscmp: Move AC_LIBOBJ invocations to module description.
6710         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6712         from here...
6713         * modules/strverscmp (configure.ac): ... to here.
6714
6715 2011-05-22  Bruno Haible  <bruno@clisp.org>
6716
6717         strtok_r: Move AC_LIBOBJ invocations to module description.
6718         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6719         and gl_PREREQ_STRTOK_R invocations from here...
6720         * modules/strtok_r (configure.ac): ... to here.
6721         (Depends-on): Update conditions.
6722
6723 2011-05-22  Bruno Haible  <bruno@clisp.org>
6724
6725         strtoumax: Move AC_LIBOBJ invocations to module description.
6726         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6728         from here...
6729         * modules/strtoumax (configure.ac): ... to here.
6730
6731 2011-05-22  Bruno Haible  <bruno@clisp.org>
6732
6733         strtoimax: Move AC_LIBOBJ invocations to module description.
6734         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6735         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6736         from here...
6737         * modules/strtoimax (configure.ac): ... to here.
6738
6739 2011-05-22  Bruno Haible  <bruno@clisp.org>
6740
6741         strtoull: Move AC_LIBOBJ invocations to module description.
6742         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6743         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6744         from here...
6745         * modules/strtoull (configure.ac): ... to here.
6746
6747 2011-05-22  Bruno Haible  <bruno@clisp.org>
6748
6749         strtoll: Move AC_LIBOBJ invocations to module description.
6750         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6751         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6752         here...
6753         * modules/strtoll (configure.ac): ... to here.
6754
6755 2011-05-22  Bruno Haible  <bruno@clisp.org>
6756
6757         strtoul: Move AC_LIBOBJ invocations to module description.
6758         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6759         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6760         * modules/strtoul (configure.ac): ... to here.
6761
6762 2011-05-22  Bruno Haible  <bruno@clisp.org>
6763
6764         strtol: Move AC_LIBOBJ invocations to module description.
6765         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6766         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6767         * modules/strtol (configure.ac): ... to here.
6768
6769 2011-05-22  Bruno Haible  <bruno@clisp.org>
6770
6771         strtod: Move AC_LIBOBJ invocations to module description.
6772         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6773         invocations from here...
6774         * modules/strtod (configure.ac): ... to here.
6775
6776 2011-05-22  Bruno Haible  <bruno@clisp.org>
6777
6778         strstr*: Move AC_LIBOBJ invocations to module description.
6779         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6780         invocations from here...
6781         * modules/strstr-simple (configure.ac): ... to here.
6782         * modules/strstr (configure.ac): ... and here.
6783
6784 2011-05-22  Bruno Haible  <bruno@clisp.org>
6785
6786         strsignal: Move AC_LIBOBJ invocations to module description.
6787         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6788         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6789         * modules/strsignal (configure.ac): ... to here.
6790         (Depends-on): Update conditions.
6791
6792 2011-05-22  Bruno Haible  <bruno@clisp.org>
6793
6794         strsep: Move AC_LIBOBJ invocations to module description.
6795         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6797         here...
6798         * modules/strsep (configure.ac): ... to here.
6799
6800 2011-05-22  Bruno Haible  <bruno@clisp.org>
6801
6802         strptime: Move AC_LIBOBJ invocations to module description.
6803         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6804         gl_PREREQ_STRPTIME invocations from here...
6805         * modules/strptime (configure.ac): ... to here.
6806
6807 2011-05-22  Bruno Haible  <bruno@clisp.org>
6808
6809         strpbrk: Move AC_LIBOBJ invocations to module description.
6810         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6811         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6812         here...
6813         * modules/strpbrk (configure.ac): ... to here.
6814
6815 2011-05-22  Bruno Haible  <bruno@clisp.org>
6816
6817         strnlen: Move AC_LIBOBJ invocations to module description.
6818         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6819         invocations from here...
6820         * modules/strnlen (configure.ac): ... to here.
6821
6822 2011-05-22  Bruno Haible  <bruno@clisp.org>
6823
6824         strndup: Move AC_LIBOBJ invocations to module description.
6825         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6826         invocations from here...
6827         * modules/strndup (configure.ac): ... to here.
6828         (Depends-on): Update conditions.
6829
6830 2011-05-22  Bruno Haible  <bruno@clisp.org>
6831
6832         strncat: Move AC_LIBOBJ invocations to module description.
6833         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6834         invocations from here...
6835         * modules/strncat (configure.ac): ... to here.
6836
6837 2011-05-22  Bruno Haible  <bruno@clisp.org>
6838
6839         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6840         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6841         invocations from here...
6842         * modules/strdup (configure.ac): ... to here.
6843         * modules/strdup-posix (configure.ac): ... and here.
6844
6845 2011-05-22  Bruno Haible  <bruno@clisp.org>
6846
6847         strcspn: Move AC_LIBOBJ invocations to module description.
6848         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6849         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6850         here...
6851         * modules/strcspn (configure.ac): ... to here.
6852
6853 2011-05-22  Bruno Haible  <bruno@clisp.org>
6854
6855         strchrnul: Move AC_LIBOBJ invocations to module description.
6856         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6857         gl_PREREQ_STRCHRNUL invocations from here...
6858         * modules/strchrnul (configure.ac): ... to here.
6859
6860 2011-05-22  Bruno Haible  <bruno@clisp.org>
6861
6862         strcasestr*: Move AC_LIBOBJ invocations to module description.
6863         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6864         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6865         * modules/strcasestr-simple (configure.ac): ... to here.
6866         * modules/strcasestr (configure.ac): ... and here.
6867
6868 2011-05-22  Bruno Haible  <bruno@clisp.org>
6869
6870         strcase: Move AC_LIBOBJ invocations to module description.
6871         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6872         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6873         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6874         gl_PREREQ_STRNCASECMP invocations from here...
6875         * modules/strcase (configure.ac): ... to here.
6876
6877 2011-05-22  Bruno Haible  <bruno@clisp.org>
6878
6879         stpncpy: Move AC_LIBOBJ invocations to module description.
6880         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6881         here...
6882         * modules/stpncpy (configure.ac): ... to here.
6883
6884 2011-05-22  Bruno Haible  <bruno@clisp.org>
6885
6886         stpcpy: Move AC_LIBOBJ invocations to module description.
6887         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6888         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6889         here...
6890         * modules/stpcpy (configure.ac): ... to here.
6891
6892 2011-05-21  Bruno Haible  <bruno@clisp.org>
6893
6894         stat: Move AC_LIBOBJ invocations to module description.
6895         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6896         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6897         here...
6898         * modules/stat (configure.ac): ... to here.
6899
6900 2011-05-21  Bruno Haible  <bruno@clisp.org>
6901
6902         sleep: Move AC_LIBOBJ invocations to module description.
6903         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6904         * modules/sleep (configure.ac): ... to here.
6905
6906 2011-05-21  Bruno Haible  <bruno@clisp.org>
6907
6908         signbit: Move AC_LIBOBJ invocations to module description.
6909         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6910         * modules/signbit (configure.ac): ... to here.
6911
6912 2011-05-21  Bruno Haible  <bruno@clisp.org>
6913
6914         sigprocmask: Move AC_LIBOBJ invocations to module description.
6915         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6916         gl_PREREQ_SIGPROMASK invocations from here...
6917         * modules/sigprocmask (configure.ac): ... to here.
6918
6919 2011-05-21  Bruno Haible  <bruno@clisp.org>
6920
6921         sigaction: Move AC_LIBOBJ invocations to module description.
6922         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6923         gl_PREREQ_SIGACTION invocations from here...
6924         * modules/sigaction (configure.ac): ... to here.
6925
6926 2011-05-21  Bruno Haible  <bruno@clisp.org>
6927
6928         sig2str: Move AC_LIBOBJ invocations to module description.
6929         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6931         here...
6932         * modules/sig2str (configure.ac): ... to here.
6933
6934 2011-05-21  Bruno Haible  <bruno@clisp.org>
6935
6936         setlocale: Move AC_LIBOBJ invocations to module description.
6937         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6938         gl_PREREQ_SETLOCALE invocations from here...
6939         * modules/setlocale (configure.ac): ... to here.
6940
6941 2011-05-21  Bruno Haible  <bruno@clisp.org>
6942
6943         unsetenv: Move AC_LIBOBJ invocations to module description.
6944         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6945         and gl_PREREQ_UNSETENV invocations from here...
6946         * modules/unsetenv (configure.ac): ... to here.
6947         (Depends-on): Update.
6948
6949 2011-05-21  Bruno Haible  <bruno@clisp.org>
6950
6951         setenv: Move AC_LIBOBJ invocations to module description.
6952         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6953         here...
6954         * modules/setenv (configure.ac): ... to here.
6955
6956 2011-05-21  Bruno Haible  <bruno@clisp.org>
6957
6958         selinux-h: Move AC_LIBOBJ invocations to module description.
6959         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6960         AC_LIBOBJ invocation from here...
6961         * modules/selinux-h (configure.ac): ... to here.
6962
6963 2011-05-21  Bruno Haible  <bruno@clisp.org>
6964
6965         select: Respect rules for use of AC_LIBOBJ.
6966         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6967         here...
6968         * modules/select (configure.ac): ... to here.
6969
6970 2011-05-21  Bruno Haible  <bruno@clisp.org>
6971
6972         scandir: Move AC_LIBOBJ invocations to module description.
6973         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6974         invocations from here...
6975         * modules/scandir (configure.ac): ... to here.
6976
6977 2011-05-21  Bruno Haible  <bruno@clisp.org>
6978
6979         rpmatch: Move AC_LIBOBJ invocations to module description.
6980         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6981         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6982         here...
6983         * modules/rpmatch (configure.ac): ... to here.
6984
6985 2011-05-21  Bruno Haible  <bruno@clisp.org>
6986
6987         rmdir: Respect rules for use of AC_LIBOBJ.
6988         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6989         * modules/rmdir (configure.ac): ... to here.
6990
6991 2011-05-21  Bruno Haible  <bruno@clisp.org>
6992
6993         renameat: Move AC_LIBOBJ invocations to module description.
6994         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6995         here...
6996         * modules/renameat (configure.ac): ... to here.
6997
6998 2011-05-21  Bruno Haible  <bruno@clisp.org>
6999
7000         rename: Respect rules for use of AC_LIBOBJ.
7001         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7002         here...
7003         * modules/rename (configure.ac): ... to here.
7004
7005 2011-05-21  Bruno Haible  <bruno@clisp.org>
7006
7007         remove: Move AC_LIBOBJ invocations to module description.
7008         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7009         here...
7010         * modules/remove (configure.ac): ... to here.
7011
7012 2011-05-21  Bruno Haible  <bruno@clisp.org>
7013
7014         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7015         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7016         macro.
7017         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7018         * modules/relocatable-lib (configure.ac): ... to here.
7019         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7020         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7021
7022 2011-05-21  Bruno Haible  <bruno@clisp.org>
7023
7024         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7025         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7026         here...
7027         * modules/relocatable-prog (configure.ac): ... to here.
7028
7029 2011-05-21  Bruno Haible  <bruno@clisp.org>
7030
7031         regex: Move AC_LIBOBJ invocations to module description.
7032         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7033         invocations from here...
7034         * modules/regex (configure.ac): ... to here.
7035
7036 2011-05-21  Bruno Haible  <bruno@clisp.org>
7037
7038         realloc-*: Move AC_LIBOBJ invocations to module description.
7039         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7040         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7041         AC_LIBOBJ invocations from here...
7042         * modules/realloc-gnu (configure.ac): ... to here.
7043         * modules/realloc-posix (configure.ac): ... and here.
7044
7045 2011-05-21  Bruno Haible  <bruno@clisp.org>
7046
7047         readutmp: Move AC_LIBOBJ invocations to module description.
7048         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7049         * modules/readutmp (configure.ac): ... to here.
7050
7051 2011-05-21  Bruno Haible  <bruno@clisp.org>
7052
7053         readlinkat: Move AC_LIBOBJ invocations to module description.
7054         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7055         here...
7056         * modules/readlinkat (configure.ac): ... to here.
7057
7058 2011-05-21  Bruno Haible  <bruno@clisp.org>
7059
7060         readlink: Move AC_LIBOBJ invocations to module description.
7061         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7062         gl_PREREQ_READLINK invocations from here...
7063         * modules/readlink (configure.ac): ... to here.
7064
7065 2011-05-21  Bruno Haible  <bruno@clisp.org>
7066
7067         readline: Move AC_LIBOBJ invocations to module description.
7068         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7069         gl_PREREQ_READLINE invocations from here...
7070         * modules/readline (configure.ac): ... to here.
7071
7072 2011-05-21  Bruno Haible  <bruno@clisp.org>
7073
7074         read: Move AC_LIBOBJ invocations to module description.
7075         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7076         * modules/read (configure.ac): ... to here.
7077
7078 2011-05-21  Bruno Haible  <bruno@clisp.org>
7079
7080         rawmemchr: Move AC_LIBOBJ invocations to module description.
7081         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7083         from here...
7084         * modules/rawmemchr (configure.ac): ... to here.
7085
7086 2011-05-21  Bruno Haible  <bruno@clisp.org>
7087
7088         random_r: Move AC_LIBOBJ invocations to module description.
7089         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7090         gl_PREREQ_RANDOM_R invocations from here...
7091         * modules/random_r (configure.ac): ... to here.
7092
7093 2011-05-21  Bruno Haible  <bruno@clisp.org>
7094
7095         pwrite: Move AC_LIBOBJ invocations to module description.
7096         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7097         * modules/pwrite (configure.ac): ... to here.
7098
7099 2011-05-21  Bruno Haible  <bruno@clisp.org>
7100
7101         putenv: Move AC_LIBOBJ invocations to module description.
7102         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7103         * modules/putenv (configure.ac): ... to here.
7104
7105 2011-05-21  Bruno Haible  <bruno@clisp.org>
7106
7107         login_tty: Move AC_LIBOBJ invocations to module description.
7108         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7109         * modules/login_tty (configure.ac): ... to here.
7110
7111 2011-05-21  Bruno Haible  <bruno@clisp.org>
7112
7113         openpty: Move AC_LIBOBJ invocations to module description.
7114         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7115         * modules/openpty (configure.ac): ... to here.
7116
7117 2011-05-21  Bruno Haible  <bruno@clisp.org>
7118
7119         forkpty: Move AC_LIBOBJ invocations to module description.
7120         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7121         * modules/forkpty (configure.ac): ... to here.
7122
7123 2011-05-21  Bruno Haible  <bruno@clisp.org>
7124
7125         ptsname: Move AC_LIBOBJ invocations to module description.
7126         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7127         invocations from here...
7128         * modules/ptsname (configure.ac): ... to here.
7129
7130 2011-05-21  Bruno Haible  <bruno@clisp.org>
7131
7132         pread: Move AC_LIBOBJ invocations to module description.
7133         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7134         * modules/pread (configure.ac): ... to here.
7135
7136 2011-05-21  Bruno Haible  <bruno@clisp.org>
7137
7138         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7139         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7140         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7141         * modules/posix_spawn (configure.ac): ... to here.
7142         * modules/posix_spawnp (configure.ac): ... and here.
7143
7144 2011-05-21  Bruno Haible  <bruno@clisp.org>
7145
7146         popen: Move AC_LIBOBJ invocations to module description.
7147         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7148         invocations from here...
7149         * modules/popen (configure.ac): ... to here.
7150
7151 2011-05-21  Bruno Haible  <bruno@clisp.org>
7152
7153         poll: Move AC_LIBOBJ invocations to module description.
7154         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7155         invocations from here...
7156         * modules/poll (configure.ac): ... to here.
7157
7158 2011-05-21  Bruno Haible  <bruno@clisp.org>
7159
7160         pipe-posix: Move AC_LIBOBJ invocations to module description.
7161         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7162         * modules/pipe-posix (configure.ac): ... to here.
7163
7164 2011-05-21  Bruno Haible  <bruno@clisp.org>
7165
7166         openat: Respect rules for use of AC_LIBOBJ.
7167         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7168         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7169         * modules/openat (configure.ac): ... to here.
7170
7171 2011-05-21  Bruno Haible  <bruno@clisp.org>
7172
7173         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7174         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7175         invocation from here...
7176         * modules/obstack-printf (configure.ac): ... to here.
7177         * modules/obstack-printf-posix (configure.ac): ... and here.
7178
7179 2011-05-21  Bruno Haible  <bruno@clisp.org>
7180
7181         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7182         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7183         from here...
7184         * modules/nl_langinfo (configure.ac): ... to here.
7185
7186 2011-05-21  Bruno Haible  <bruno@clisp.org>
7187
7188         nanosleep: Move AC_LIBOBJ invocations to module description.
7189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7190         gl_PREREQ_NANOSLEEP invocations from here...
7191         * modules/nanosleep (configure.ac): ... to here.
7192
7193 2011-05-21  Bruno Haible  <bruno@clisp.org>
7194
7195         mountlist: Move AC_LIBOBJ invocations to module description.
7196         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7197         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7198         * modules/mountlist (configure.ac): ... to here.
7199
7200 2011-05-21  Bruno Haible  <bruno@clisp.org>
7201
7202         mktime: Respect rules for use of AC_LIBOBJ.
7203         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7204         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7205         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7206         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7207         * modules/mktime (configure.ac): ... to here.
7208         * modules/mktime-internal (configure.ac): ... and here.
7209         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7210
7211 2011-05-21  Bruno Haible  <bruno@clisp.org>
7212
7213         mkstemps: Move AC_LIBOBJ invocations to module description.
7214         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7215         here...
7216         * modules/mkstemps (configure.ac): ... to here.
7217
7218 2011-05-21  Bruno Haible  <bruno@clisp.org>
7219
7220         mkstemp: Move AC_LIBOBJ invocations to module description.
7221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7222         gl_PREREQ_MKSTEMP invocations from here...
7223         * modules/mkstemp (configure.ac): ... to here.
7224
7225 2011-05-21  Bruno Haible  <bruno@clisp.org>
7226
7227         mkostemps: Move AC_LIBOBJ invocations to module description.
7228         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7229         here...
7230         * modules/mkostemps (configure.ac): ... to here.
7231
7232 2011-05-21  Bruno Haible  <bruno@clisp.org>
7233
7234         mkostemp: Move AC_LIBOBJ invocations to module description.
7235         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7236         gl_PREREQ_MKOSTEMP invocations from here...
7237         * modules/mkostemp (configure.ac): ... to here.
7238
7239 2011-05-21  Bruno Haible  <bruno@clisp.org>
7240
7241         mknod: Move AC_LIBOBJ invocations to module description.
7242         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7243         * modules/mknod (configure.ac): ... to here.
7244
7245 2011-05-21  Bruno Haible  <bruno@clisp.org>
7246
7247         mkfifoat: Move AC_LIBOBJ invocations to module description.
7248         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7249         here...
7250         * modules/mkfifoat (configure.ac): ... to here.
7251
7252 2011-05-21  Bruno Haible  <bruno@clisp.org>
7253
7254         mkfifo: Respect rules for use of AC_LIBOBJ.
7255         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7256         here...
7257         * modules/mkfifo (configure.ac): ... to here.
7258
7259 2011-05-21  Bruno Haible  <bruno@clisp.org>
7260
7261         mkdtemp: Move AC_LIBOBJ invocations to module description.
7262         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7263         invocations from here...
7264         * modules/mkdtemp (configure.ac): ... to here.
7265
7266 2011-05-21  Bruno Haible  <bruno@clisp.org>
7267
7268         mkdir: Move AC_LIBOBJ invocations to module description.
7269         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7270         * modules/mkdir (configure.ac): ... to here.
7271
7272 2011-05-21  Bruno Haible  <bruno@clisp.org>
7273
7274         memset: Move AC_LIBOBJ invocations to module description.
7275         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7277         here...
7278         * modules/memset (configure.ac): ... to here.
7279
7280 2011-05-21  Bruno Haible  <bruno@clisp.org>
7281
7282         memrchr: Move AC_LIBOBJ invocations to module description.
7283         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7285         here...
7286         * modules/memrchr (configure.ac): ... to here.
7287
7288 2011-05-21  Bruno Haible  <bruno@clisp.org>
7289
7290         mempcpy: Move AC_LIBOBJ invocations to module description.
7291         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7292         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7293         here...
7294         * modules/mempcpy (configure.ac): ... to here.
7295
7296 2011-05-21  Bruno Haible  <bruno@clisp.org>
7297
7298         memmove: Move AC_LIBOBJ invocations to module description.
7299         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7300         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7301         here...
7302         * modules/memmove (configure.ac): ... to here.
7303
7304 2011-05-21  Bruno Haible  <bruno@clisp.org>
7305
7306         memmem*: Move AC_LIBOBJ invocations to module description.
7307         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7308         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7309         here...
7310         (gl_FUNC_MEMMEM): ... and here...
7311         * modules/memmem-simple (configure.ac): ... to here.
7312         * modules/memmem (configure.ac): ... and here.
7313
7314 2011-05-21  Bruno Haible  <bruno@clisp.org>
7315
7316         memcpy: Move AC_LIBOBJ invocations to module description.
7317         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7318         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7319         here...
7320         * modules/memcpy (configure.ac): ... to here.
7321
7322 2011-05-21  Bruno Haible  <bruno@clisp.org>
7323
7324         memcmp: Simplify autoconf macro.
7325         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7326         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7327         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7328
7329 2011-05-21  Bruno Haible  <bruno@clisp.org>
7330
7331         memcmp: Move AC_LIBOBJ invocations to module description.
7332         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7333         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7334         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7335         * modules/memcmp (configure.ac): ... to here.
7336         (Depends-on): Update conditions.
7337
7338 2011-05-21  Bruno Haible  <bruno@clisp.org>
7339
7340         memchr: Respect rules for use of AC_LIBOBJ.
7341         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7342         invocations from here...
7343         * modules/memchr (configure.ac): ... to here.
7344
7345 2011-05-21  Bruno Haible  <bruno@clisp.org>
7346
7347         mbtowc: Move AC_LIBOBJ invocations to module description.
7348         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7349         invocations from here...
7350         * modules/mbtowc (configure.ac): ... to here.
7351
7352 2011-05-21  Bruno Haible  <bruno@clisp.org>
7353
7354         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7355         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7356         gl_PREREQ_MBSRTOWCS invocations from here...
7357         * modules/mbsrtowcs (configure.ac): ... to here.
7358
7359 2011-05-21  Bruno Haible  <bruno@clisp.org>
7360
7361         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7362         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7363         gl_PREREQ_MBSNRTOWCS invocations from here...
7364         * modules/mbsnrtowcs (configure.ac): ... to here.
7365
7366 2011-05-21  Bruno Haible  <bruno@clisp.org>
7367
7368         mbsinit: Move AC_LIBOBJ invocations to module description.
7369         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7370         invocations from here...
7371         * modules/mbsinit (configure.ac): ... to here.
7372
7373 2011-05-21  Bruno Haible  <bruno@clisp.org>
7374
7375         mbrlen: Move AC_LIBOBJ invocations to module description.
7376         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7377         invocations from here...
7378         * modules/mbrlen (configure.ac): ... to here.
7379
7380 2011-05-21  Bruno Haible  <bruno@clisp.org>
7381
7382         mbrtowc: Respect rules for use of AC_LIBOBJ.
7383         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7384         invocations from here...
7385         * modules/mbrtowc (configure.ac): ... to here.
7386
7387 2011-05-21  Bruno Haible  <bruno@clisp.org>
7388
7389         malloc-*: Move AC_LIBOBJ invocations to module description.
7390         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7391         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7392         AC_LIBOBJ invocations from here...
7393         * modules/malloc-gnu (configure.ac): ... to here.
7394         * modules/malloc-posix (configure.ac): ... and here.
7395
7396 2011-05-21  Bruno Haible  <bruno@clisp.org>
7397
7398         lstat, openat: Respect rules for use of AC_LIBOBJ.
7399         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7400         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7401         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7402         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7403         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7404         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7405         here.
7406         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7407
7408 2011-05-21  Bruno Haible  <bruno@clisp.org>
7409
7410         lseek: Move AC_LIBOBJ invocations to module description.
7411         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7412         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7413         * modules/lseek (configure.ac): ... to here.
7414
7415 2011-05-21  Bruno Haible  <bruno@clisp.org>
7416
7417         linkat: Move AC_LIBOBJ invocations to module description.
7418         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7419         here...
7420         * modules/linkat (configure.ac): ... to here.
7421
7422 2011-05-21  Bruno Haible  <bruno@clisp.org>
7423
7424         link: Respect rules for use of AC_LIBOBJ.
7425         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7426         * modules/link (configure.ac): ... to here.
7427
7428 2011-05-21  Bruno Haible  <bruno@clisp.org>
7429
7430         lchown: Move AC_LIBOBJ invocations to module description.
7431         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7432         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7433         * modules/lchown (configure.ac): ... to here.
7434
7435 2011-05-21  Bruno Haible  <bruno@clisp.org>
7436
7437         iswctype: Move AC_LIBOBJ invocations to module description.
7438         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7439         here...
7440         * modules/iswctype (configure.ac): ... to here.
7441
7442 2011-05-21  Bruno Haible  <bruno@clisp.org>
7443
7444         iswblank: Move AC_LIBOBJ invocations to module description.
7445         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7446         here...
7447         * modules/iswblank (configure.ac): ... to here.
7448
7449 2011-05-21  Bruno Haible  <bruno@clisp.org>
7450
7451         atanl: Move AC_LIBOBJ invocations to module description.
7452         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7453         * modules/atanl (configure.ac): ... to here.
7454
7455 2011-05-21  Bruno Haible  <bruno@clisp.org>
7456
7457         acosl: Move AC_LIBOBJ invocations to module description.
7458         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7459         * modules/acosl (configure.ac): ... to here.
7460
7461 2011-05-21  Bruno Haible  <bruno@clisp.org>
7462
7463         asinl: Respect rules for use of AC_LIBOBJ.
7464         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7465         * modules/asinl (configure.ac): ... to here.
7466
7467 2011-05-21  Bruno Haible  <bruno@clisp.org>
7468
7469         tanl: Move AC_LIBOBJ invocations to module description.
7470         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7471         * modules/tanl (configure.ac): ... to here.
7472
7473 2011-05-21  Bruno Haible  <bruno@clisp.org>
7474
7475         cosl: Move AC_LIBOBJ invocations to module description.
7476         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7477         * modules/cosl (configure.ac): ... to here.
7478
7479 2011-05-21  Bruno Haible  <bruno@clisp.org>
7480
7481         sinl: Move AC_LIBOBJ invocations to module description.
7482         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7483         * modules/sinl (configure.ac): ... to here.
7484
7485 2011-05-21  Bruno Haible  <bruno@clisp.org>
7486
7487         logl: Move AC_LIBOBJ invocations to module description.
7488         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7489         * modules/logl (configure.ac): ... to here.
7490
7491 2011-05-21  Bruno Haible  <bruno@clisp.org>
7492
7493         expl: Move AC_LIBOBJ invocations to module description.
7494         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7495         * modules/expl (configure.ac): ... to here.
7496
7497 2011-05-21  Bruno Haible  <bruno@clisp.org>
7498
7499         roundl: Move AC_LIBOBJ invocations to module description.
7500         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7501         * modules/roundl (configure.ac): ... to here.
7502
7503 2011-05-21  Bruno Haible  <bruno@clisp.org>
7504
7505         round: Move AC_LIBOBJ invocations to module description.
7506         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7507         * modules/round (configure.ac): ... to here.
7508
7509 2011-05-21  Bruno Haible  <bruno@clisp.org>
7510
7511         roundf: Move AC_LIBOBJ invocations to module description.
7512         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7513         * modules/roundf (configure.ac): ... to here.
7514
7515 2011-05-21  Bruno Haible  <bruno@clisp.org>
7516
7517         truncl: Move AC_LIBOBJ invocations to module description.
7518         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7519         * modules/truncl (configure.ac): ... to here.
7520
7521 2011-05-21  Bruno Haible  <bruno@clisp.org>
7522
7523         trunc: Move AC_LIBOBJ invocations to module description.
7524         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7525         * modules/trunc (configure.ac): ... to here.
7526
7527 2011-05-21  Bruno Haible  <bruno@clisp.org>
7528
7529         truncf: Move AC_LIBOBJ invocations to module description.
7530         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7531         * modules/truncf (configure.ac): ... to here.
7532
7533 2011-05-21  Bruno Haible  <bruno@clisp.org>
7534
7535         ceill: Move AC_LIBOBJ invocations to module description.
7536         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7537         * modules/ceill (configure.ac): ... to here.
7538
7539 2011-05-21  Bruno Haible  <bruno@clisp.org>
7540
7541         ceil: Move AC_LIBOBJ invocations to module description.
7542         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7543         * modules/ceil (configure.ac): ... to here.
7544
7545 2011-05-21  Bruno Haible  <bruno@clisp.org>
7546
7547         ceilf: Move AC_LIBOBJ invocations to module description.
7548         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7549         * modules/ceilf (configure.ac): ... to here.
7550
7551 2011-05-21  Bruno Haible  <bruno@clisp.org>
7552
7553         floorl: Respect rules for use of AC_LIBOBJ.
7554         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7555         * modules/floorl (configure.ac): ... to here.
7556
7557 2011-05-21  Bruno Haible  <bruno@clisp.org>
7558
7559         floor: Respect rules for use of AC_LIBOBJ.
7560         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7561         * modules/floor (configure.ac): ... to here.
7562
7563 2011-05-21  Bruno Haible  <bruno@clisp.org>
7564
7565         floorf: Move AC_LIBOBJ invocations to module description.
7566         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7567         * modules/floorf (configure.ac): ... to here.
7568
7569 2011-05-20  Bruno Haible  <bruno@clisp.org>
7570
7571         sqrtl: Respect rules for use of AC_LIBOBJ.
7572         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7573         * modules/sqrtl (configure.ac): ... to here.
7574
7575 2011-05-20  Bruno Haible  <bruno@clisp.org>
7576
7577         ldexpl: Respect rules for use of AC_LIBOBJ.
7578         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7579         * modules/ldexpl (configure.ac): ... to here.
7580
7581 2011-05-20  Bruno Haible  <bruno@clisp.org>
7582
7583         frexpl*: Respect rules for use of AC_LIBOBJ.
7584         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7585         invocation from here...
7586         * modules/frexpl (configure.ac): ... to here.
7587         * modules/frexpl-nolibm (configure.ac): ... and here.
7588
7589 2011-05-20  Bruno Haible  <bruno@clisp.org>
7590
7591         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7592         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7593         invocation from here...
7594         * modules/frexp (configure.ac): ... to here.
7595         * modules/frexp-nolibm (configure.ac): ... and here.
7596
7597 2011-05-20  Bruno Haible  <bruno@clisp.org>
7598
7599         isnan: Respect rules for use of AC_LIBOBJ.
7600         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7601         invocations here.
7602         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7603         REPLACE_ISNAN.
7604         * modules/isnand (configure.ac): Likewise.
7605         * modules/isnanl (configure.ac): Likewise.
7606
7607 2011-05-20  Bruno Haible  <bruno@clisp.org>
7608
7609         isnanl*: Respect rules for use of AC_LIBOBJ.
7610         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7611         invocation from here...
7612         * modules/isnanl (configure.ac): ... to here.
7613         * modules/isnanl-nolibm (configure.ac): ... and here.
7614
7615 2011-05-20  Bruno Haible  <bruno@clisp.org>
7616
7617         isnand*: Move AC_LIBOBJ invocations to module description.
7618         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7619         invocation from here...
7620         * modules/isnand (configure.ac): ... to here.
7621         * modules/isnand-nolibm (configure.ac): ... and here.
7622
7623 2011-05-20  Bruno Haible  <bruno@clisp.org>
7624
7625         isnanf*: Move AC_LIBOBJ invocations to module description.
7626         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7627         invocation from here...
7628         * modules/isnanf (configure.ac): ... to here.
7629         * modules/isnanf-nolibm (configure.ac): ... and here.
7630
7631 2011-05-20  Bruno Haible  <bruno@clisp.org>
7632
7633         isnan*: Separate the AC_LIBOBJ invocations.
7634         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7635         AC_LIBOBJ invocation.
7636         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7637         here.
7638         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7639         AC_LIBOBJ invocation.
7640         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7641         here.
7642         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7643         AC_LIBOBJ invocation.
7644         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7645         here.
7646         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7647
7648 2011-05-08  Bruno Haible  <bruno@clisp.org>
7649
7650         isinf: Move AC_LIBOBJ invocations to module description.
7651         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7652         * modules/isinf (configure.ac): ... to here.
7653
7654 2011-05-08  Bruno Haible  <bruno@clisp.org>
7655
7656         isfinite: Move AC_LIBOBJ invocations to module description.
7657         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7658         * modules/isfinite (configure.ac): ... to here.
7659
7660 2011-05-08  Bruno Haible  <bruno@clisp.org>
7661
7662         isblank: Move AC_LIBOBJ invocations to module description.
7663         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7664         here...
7665         * modules/isblank (configure.ac): ... to here.
7666
7667 2011-05-08  Bruno Haible  <bruno@clisp.org>
7668
7669         isapipe: Move AC_LIBOBJ invocations to module description.
7670         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7671         gl_PREREQ_ISAPIPE invocations from here...
7672         * modules/isapipe (configure.ac): ... to here.
7673         (Depends-on): Update condition.
7674
7675 2011-05-08  Bruno Haible  <bruno@clisp.org>
7676
7677         ioctl: Move AC_LIBOBJ invocations to module description.
7678         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7679         invocations from here...
7680         * modules/ioctl (configure.ac): ... to here.
7681         (Depends-on): Update condition.
7682
7683 2011-05-08  Bruno Haible  <bruno@clisp.org>
7684
7685         imaxdiv: Move AC_LIBOBJ invocations to module description.
7686         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7687         invocations from here...
7688         * modules/imaxdiv (configure.ac): ... to here.
7689
7690 2011-05-08  Bruno Haible  <bruno@clisp.org>
7691
7692         imaxabs: Move AC_LIBOBJ invocations to module description.
7693         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7694         invocations from here...
7695         * modules/imaxabs (configure.ac): ... to here.
7696
7697 2011-05-08  Bruno Haible  <bruno@clisp.org>
7698
7699         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7701         AC_LIBOBJ invocations from here...
7702         * modules/getaddrinfo (configure.ac): ... to here.
7703         (Depends-on): Add conditions.
7704
7705 2011-05-08  Bruno Haible  <bruno@clisp.org>
7706
7707         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7708         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7709         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7710         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7711         (gl_PREREQ_INET_PTON): ... from here.
7712         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7713         gl_PREREQ_INET_PTON here.
7714         (Depends-on): Update condition.
7715
7716 2011-05-08  Bruno Haible  <bruno@clisp.org>
7717
7718         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7719         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7720         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7721         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7722         (gl_PREREQ_INET_NTOP): ... from here.
7723         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7724         gl_PREREQ_INET_NTOP here.
7725         (Depends-on): Update condition.
7726
7727 2011-05-08  Bruno Haible  <bruno@clisp.org>
7728
7729         iconv_open: Move AC_LIBOBJ invocations to module description.
7730         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7731         AC_LIBOBJ invocations from here...
7732         * modules/iconv_open (configure.ac): ... to here.
7733
7734 2011-05-08  Bruno Haible  <bruno@clisp.org>
7735
7736         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7737         If module 'iconv_open' is among the main modules and module
7738         'iconv_open-utf' is among the tests dependencies, then
7739         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7740         return the special iconv_t values. Therefore iconv() and iconv_close()
7741         must support these special iconv_t values, already in lib, not only in
7742         tests.
7743         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7744         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7745         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7746         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7747         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7748         (Depends-on): Add the dependencies of iconv_open-utf.
7749         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7750         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7751         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7752
7753 2011-05-08  Bruno Haible  <bruno@clisp.org>
7754
7755         group-member: Move AC_LIBOBJ invocations to module description.
7756         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7757         gl_PREREQ_GROUP_MEMBER invocations from here...
7758         * modules/group-member (configure.ac): ... to here.
7759
7760 2011-05-08  Bruno Haible  <bruno@clisp.org>
7761
7762         grantpt: Move AC_LIBOBJ invocations to module description.
7763         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7764         invocations from here...
7765         * modules/grantpt (configure.ac): ... to here.
7766
7767 2011-05-08  Bruno Haible  <bruno@clisp.org>
7768
7769         glob: Move AC_LIBOBJ invocations to module description.
7770         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7771         from here...
7772         * modules/glob (configure.ac): ... to here.
7773
7774 2011-05-08  Bruno Haible  <bruno@clisp.org>
7775
7776         getusershell: Move AC_LIBOBJ invocations to module description.
7777         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7778         Move AC_LIBOBJ invocation from here...
7779         * modules/getusershell (configure.ac): ... to here.
7780         (Depends-on): Update condition.
7781
7782 2011-05-08  Bruno Haible  <bruno@clisp.org>
7783
7784         gettimeofday: Move AC_LIBOBJ invocations to module description.
7785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7786         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7787         gl_PREREQ_GETTIMEOFDAY invocations from here...
7788         * modules/gettimeofday (configure.ac): ... to here.
7789
7790 2011-05-08  Bruno Haible  <bruno@clisp.org>
7791
7792         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7793         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7794         just gl_FUNC_TZSET.
7795         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7796         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7797         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7798         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7799
7800 2011-05-08  Bruno Haible  <bruno@clisp.org>
7801
7802         getsubopt: Move AC_LIBOBJ invocations to module description.
7803         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7804         gl_PREREQ_GETSUBOPT invocations from here...
7805         * modules/getsubopt (configure.ac): ... to here.
7806
7807 2011-05-08  Bruno Haible  <bruno@clisp.org>
7808
7809         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7810         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7811         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7812         * modules/getpass-gnu (configure.ac): ... to here.
7813
7814 2011-05-08  Bruno Haible  <bruno@clisp.org>
7815
7816         getpass: Move AC_LIBOBJ invocations to module description.
7817         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7818         gl_PREREQ_GETPASS invocations from here...
7819         * modules/getpass (configure.ac): ... to here.
7820
7821 2011-05-08  Bruno Haible  <bruno@clisp.org>
7822
7823         getpagesize: Move AC_LIBOBJ invocations to module description.
7824         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7825         from here...
7826         * modules/getpagesize (configure.ac): ... to here.
7827
7828 2011-05-08  Bruno Haible  <bruno@clisp.org>
7829
7830         getopt: Move AC_LIBOBJ invocations to module description.
7831         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7832         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7833         invocations from here...
7834         * modules/getopt-gnu (configure.ac): ... to here.
7835         * modules/getopt-posix (configure.ac): ... and here.
7836         (Depends-on): Update condition.
7837
7838 2011-05-08  Bruno Haible  <bruno@clisp.org>
7839
7840         getopt, argp: Respect rules for use of AC_LIBOBJ.
7841         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7842         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7843         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7844         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7845
7846 2011-05-08  Bruno Haible  <bruno@clisp.org>
7847
7848         getlogin_r: Move AC_LIBOBJ invocations to module description.
7849         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7850         gl_PREREQ_GETLOGIN_R invocations from here...
7851         * modules/getlogin_r (configure.ac): ... to here.
7852
7853 2011-05-08  Bruno Haible  <bruno@clisp.org>
7854
7855         getlogin: Move AC_LIBOBJ invocations to module description.
7856         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7857         here...
7858         * modules/getlogin (configure.ac): ... to here.
7859
7860 2011-05-08  Bruno Haible  <bruno@clisp.org>
7861
7862         getloadavg: Move AC_LIBOBJ invocations to module description.
7863         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7864         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7865         * modules/getloadavg (configure.ac): ... to here.
7866
7867 2011-05-08  Bruno Haible  <bruno@clisp.org>
7868
7869         gethrxtime: Move AC_LIBOBJ invocations to module description.
7870         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7871         LIB_GETHRXTIME from here...
7872         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7873         invocations from here...
7874         * modules/gethrxtime (configure.ac): ... to here.
7875
7876 2011-05-08  Bruno Haible  <bruno@clisp.org>
7877
7878         gethostname: Move AC_LIBOBJ invocations to module description.
7879         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7880         gl_PREREQ_GETHOSTNAME invocations from here...
7881         * modules/gethostname (configure.ac): ... to here.
7882
7883 2011-05-08  Bruno Haible  <bruno@clisp.org>
7884
7885         getgroups: Move AC_LIBOBJ invocations to module description.
7886         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7887         here...
7888         * modules/getgroups (configure.ac): ... to here.
7889
7890 2011-05-08  Bruno Haible  <bruno@clisp.org>
7891
7892         getdtablesize: Move AC_LIBOBJ invocations to module description.
7893         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7894         invocation from here...
7895         * modules/getdtablesize (configure.ac): ... to here.
7896
7897 2011-05-08  Bruno Haible  <bruno@clisp.org>
7898
7899         getdomainname: Move AC_LIBOBJ invocations to module description.
7900         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7901         gl_PREREQ_GETDOMAINNAME invocations from here...
7902         * modules/getdomainname (configure.ac): ... to here.
7903
7904 2011-05-08  Bruno Haible  <bruno@clisp.org>
7905
7906         getline: Move AC_LIBOBJ invocations to module description.
7907         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7908         invocations from here...
7909         * modules/getline (configure.ac): ... to here.
7910
7911 2011-05-08  Bruno Haible  <bruno@clisp.org>
7912
7913         getline: Simplify.
7914         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7915         It's already handled through the module dependency.
7916
7917 2011-05-08  Bruno Haible  <bruno@clisp.org>
7918
7919         getdelim: Move AC_LIBOBJ invocations to module description.
7920         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7921         and gl_PREREQ_GETDELIM invocations from here...
7922         * modules/getdelim (configure.ac): ... to here.
7923         (Depends-on): Fix condition.
7924
7925 2011-05-08  Bruno Haible  <bruno@clisp.org>
7926
7927         getcwd: Move AC_LIBOBJ invocations to module description.
7928         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7929         invocations from here...
7930         * modules/getcwd (configure.ac): ... to here.
7931
7932 2011-05-08  Bruno Haible  <bruno@clisp.org>
7933
7934         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7935         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7936         here...
7937         * modules/getcwd-lgpl (configure.ac): ... to here.
7938
7939 2011-05-07  Bruno Haible  <bruno@clisp.org>
7940
7941         crypto/gc: Move AC_LIBOBJ invocations to module description.
7942         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7943         * modules/crypto/gc (configure.ac): ... to here.
7944
7945 2011-05-07  Bruno Haible  <bruno@clisp.org>
7946
7947         fwriting: Move AC_LIBOBJ invocations to module description.
7948         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7949         here...
7950         * modules/fwriting (configure.ac): ... to here.
7951
7952 2011-05-07  Bruno Haible  <bruno@clisp.org>
7953
7954         fwritable: Move AC_LIBOBJ invocations to module description.
7955         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7956         here...
7957         * modules/fwritable (configure.ac): ... to here.
7958
7959 2011-05-07  Bruno Haible  <bruno@clisp.org>
7960
7961         futimens: Move AC_LIBOBJ invocations to module description.
7962         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7963         here...
7964         * modules/futimens (configure.ac): ... to here.
7965
7966 2011-05-07  Bruno Haible  <bruno@clisp.org>
7967
7968         ftruncate: Move AC_LIBOBJ invocations to module description.
7969         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7970         gl_PREREQ_FTRUNCATE invocations from here...
7971         * modules/ftruncate (configure.ac): ... to here.
7972
7973 2011-05-07  Bruno Haible  <bruno@clisp.org>
7974
7975         fsync: Move AC_LIBOBJ invocations to module description.
7976         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7977         invocations from here...
7978         * modules/fsync (configure.ac): ... to here.
7979
7980 2011-05-07  Bruno Haible  <bruno@clisp.org>
7981
7982         fsusage: Move AC_LIBOBJ invocations to module description.
7983         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7984         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7985         * modules/fsusage (configure.ac): ... to here.
7986
7987 2011-05-07  Bruno Haible  <bruno@clisp.org>
7988
7989         freopen: Move AC_LIBOBJ invocations to module description.
7990         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7991         invocations from here...
7992         * modules/freopen (configure.ac): ... to here.
7993
7994 2011-05-07  Bruno Haible  <bruno@clisp.org>
7995
7996         free: Move AC_LIBOBJ invocations to module description.
7997         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7998         invocations from here...
7999         * modules/free (configure.ac): ... to here.
8000
8001 2011-05-07  Bruno Haible  <bruno@clisp.org>
8002
8003         freadable: Move AC_LIBOBJ invocations to module description.
8004         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8005         here...
8006         * modules/freadable (configure.ac): ... to here.
8007
8008 2011-05-07  Bruno Haible  <bruno@clisp.org>
8009
8010         fpurge: Move AC_LIBOBJ invocations to module description.
8011         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8012         invocations from here...
8013         * modules/fpurge (configure.ac): ... to here.
8014
8015 2011-05-07  Bruno Haible  <bruno@clisp.org>
8016
8017         fpending: Move AC_LIBOBJ invocations to module description.
8018         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8019         gl_FUNC_FPENDING.
8020         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8021         invocations from here...
8022         * modules/fpending (configure.ac): ... to here.
8023
8024 2011-05-07  Bruno Haible  <bruno@clisp.org>
8025
8026         fopen: Move AC_LIBOBJ invocations to module description.
8027         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8028         invocations from here...
8029         * modules/fopen (configure.ac): ... to here.
8030
8031 2011-05-07  Bruno Haible  <bruno@clisp.org>
8032
8033         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8034         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8035         gl_FUNC_FNMATCH_POSIX.
8036         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8037         invocations from here...
8038         * modules/fnmatch (configure.ac): ... to here.
8039         * modules/fnmatch-gnu (configure.ac): ... and here.
8040
8041 2011-05-07  Bruno Haible  <bruno@clisp.org>
8042
8043         flock: Move AC_LIBOBJ invocations to module description.
8044         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8045         invocations from here...
8046         * modules/flock (configure.ac): ... to here.
8047
8048 2011-05-07  Bruno Haible  <bruno@clisp.org>
8049
8050         fileblocks: Move AC_LIBOBJ invocations to module description.
8051         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8052         gl_PREREQ_FILEBLOCKS invocations from here...
8053         * modules/fileblocks (configure.ac): ... to here.
8054
8055 2011-05-06  Bruno Haible  <bruno@clisp.org>
8056
8057         fflush: Move AC_LIBOBJ invocations to module description.
8058         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8059         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8060         invocations from here...
8061         * modules/fflush (configure.ac): ... to here.
8062
8063 2011-05-06  Bruno Haible  <bruno@clisp.org>
8064
8065         fdopendir: Move AC_LIBOBJ invocations to module description.
8066         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8067         here...
8068         * modules/fdopendir (configure.ac): ... to here.
8069         (Depends-on): Improve conditions.
8070
8071 2011-05-06  Bruno Haible  <bruno@clisp.org>
8072
8073         _Exit: Move AC_LIBOBJ invocations to module description.
8074         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8075         invocations from here...
8076         * modules/_Exit (configure.ac): ... to here.
8077
8078 2011-05-21  Bruno Haible  <bruno@clisp.org>
8079
8080         euidaccess: Respect rules for use of AC_LIBOBJ.
8081         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8083         from here...
8084         * modules/euidaccess (configure.ac): ... to here.
8085
8086 2011-05-06  Bruno Haible  <bruno@clisp.org>
8087
8088         error: Move AC_LIBOBJ invocations to module description.
8089         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8090         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8091         invocations from here...
8092         * modules/error (configure.ac): ... to here.
8093
8094 2011-05-06  Bruno Haible  <bruno@clisp.org>
8095
8096         duplocale: Move AC_LIBOBJ invocations to module description.
8097         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8098         gl_PREREQ_DUPLOCALE invocations from here...
8099         * modules/duplocale (configure.ac): ... to here.
8100
8101 2011-05-05  Bruno Haible  <bruno@clisp.org>
8102
8103         dirfd: Move AC_LIBOBJ invocations to module description.
8104         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8105         gl_FUNC_DIRFD.
8106         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8107         here...
8108         * modules/dirfd (configure.ac): ... to here.
8109         (Depends-on): Fix condition.
8110
8111 2011-05-05  Bruno Haible  <bruno@clisp.org>
8112
8113         chown: Respect rules for use of AC_LIBOBJ.
8114         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8115         * modules/chown (configure.ac): ... to here.
8116
8117 2011-05-05  Bruno Haible  <bruno@clisp.org>
8118
8119         chdir-long: Move AC_LIBOBJ invocations to module description.
8120         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8121         gl_PREREQ_CHDIR_LONG invocations from here...
8122         * modules/chdir-long (configure.ac): ... to here.
8123
8124 2011-05-05  Bruno Haible  <bruno@clisp.org>
8125
8126         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8127         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8128         from here...
8129         * modules/canonicalize-lgpl (configure.ac): ... to here.
8130
8131 2011-05-05  Bruno Haible  <bruno@clisp.org>
8132
8133         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8134         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8135         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8136         REPLACE_CALLOC.
8137         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8138         * modules/calloc-gnu (configure.ac): Likewise.
8139
8140 2011-05-05  Bruno Haible  <bruno@clisp.org>
8141
8142         btowc: Move AC_LIBOBJ invocations to module description.
8143         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8144         invocations from here...
8145         * modules/btowc (configure.ac): ... to here.
8146
8147 2011-05-21  Bruno Haible  <bruno@clisp.org>
8148
8149         atexit: Move AC_LIBOBJ invocations to module description.
8150         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8152         here...
8153         * modules/atexit (configure.ac): ... to here.
8154
8155 2011-05-05  Bruno Haible  <bruno@clisp.org>
8156
8157         atoll: Move AC_LIBOBJ invocations to module description.
8158         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8159         invocations from here...
8160         * modules/atoll (configure.ac): ... to here.
8161
8162 2011-05-05  Bruno Haible  <bruno@clisp.org>
8163
8164         argz: Move AC_LIBOBJ invocations to module description.
8165         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8166         * modules/argz (configure.ac): ... to here.
8167
8168 2011-05-05  Bruno Haible  <bruno@clisp.org>
8169
8170         alphasort: Move AC_LIBOBJ invocations to module description.
8171         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8172         gl_PREREQ_ALPHASORT invocations from here...
8173         * modules/alphasort (configure.ac): ... to here.
8174
8175 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8176
8177         verify: new macro verify_expr; verify_true deprecated
8178         * NEWS: Mention this.
8179         * doc/verify.texi (Compile-time Assertions): Document this.
8180         * lib/verify.h (verify_true): Deprecate.
8181         (verify_expr): New macro.
8182         * tests/test-verify.c (function): Test verify_expr.
8183
8184 2011-06-14  Jim Meyering  <meyering@redhat.com>
8185
8186         init.sh: give more portable redirection-related advice in a comment
8187         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8188         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8189         for lots of discussion.  Stefano Lattarini suggested the solution
8190         of putting "9>&2" after the command.  Reported by Bruno Haible.
8191
8192 2011-06-13  Bruno Haible  <bruno@clisp.org>
8193
8194         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8195         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8196         'none'.
8197
8198 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8199
8200         ftoastr: use strtof only if HAVE_STRTOF
8201         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8203         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8204         * modules/ftoastr (configure.ac): Check for strtof.
8205
8206 2011-06-13  Bruno Haible  <bruno@clisp.org>
8207
8208         gnulib-tool: Addendum to 2011-06-08 commit.
8209         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8210         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8211
8212 2011-06-13  Bruno Haible  <bruno@clisp.org>
8213
8214         fseeko: Provide a non-inline replacement of fseek().
8215         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8216         * modules/fseeko (Depends-on): Add fseek.
8217         * modules/fseek (License): Change to LGPLv2+.
8218
8219 2011-06-13  Bruno Haible  <bruno@clisp.org>
8220
8221         ftello: Provide a non-inline replacement of ftell().
8222         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8223         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8224         not have ftello() (such as on mingw).
8225         * modules/ftello (Depends-on): Add ftell.
8226         * modules/ftell (License): Change to LGPLv2+.
8227
8228 2011-05-07  Bruno Haible  <bruno@clisp.org>
8229
8230         ftell: Move AC_LIBOBJ invocations to module description.
8231         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8232         * modules/ftell (configure.ac): ... to here.
8233
8234 2011-05-07  Bruno Haible  <bruno@clisp.org>
8235
8236         ftello: Respect rules for use of AC_LIBOBJ.
8237         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8238         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8239         here...
8240         * modules/ftello (configure.ac): ... to here.
8241
8242 2011-05-07  Bruno Haible  <bruno@clisp.org>
8243
8244         fseeko: Simplify.
8245         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8246         (gl_FUNC_FSEEKO): Inline it here.
8247
8248 2011-05-07  Bruno Haible  <bruno@clisp.org>
8249
8250         fseek: Move AC_LIBOBJ invocations to module description.
8251         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8252         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8253         * modules/fseek (configure.ac): ... to here.
8254
8255 2011-05-07  Bruno Haible  <bruno@clisp.org>
8256
8257         fseek: Respect rules for use of AC_LIBOBJ.
8258         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8259         here...
8260         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8261
8262 2011-05-07  Bruno Haible  <bruno@clisp.org>
8263
8264         fseeko: Respect rules for use of AC_LIBOBJ.
8265         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8266         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8267         here...
8268         * modules/fseeko (configure.ac): ... to here.
8269
8270 2011-06-13  Bruno Haible  <bruno@clisp.org>
8271
8272         gnulib-tool: Allow comments in the 'Depends-on' section.
8273         * doc/gnulib.texi (Module description): Mention comment syntax in the
8274         Depends-on section.
8275         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8276
8277 2011-06-13  Bruno Haible  <bruno@clisp.org>
8278
8279         file-set.h: guard __attibute__ use, now that it's not always defined
8280         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8281         versions that support it.  This fixes a coreutils build failure with
8282         the vendor cc on HP-UX 11.31.
8283
8284 2011-06-12  Bruno Haible  <bruno@clisp.org>
8285
8286         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8287         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8288         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8289         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8290         (acl, aclsort): New declarations.
8291         (aclv_nontrivial): New declaration.
8292         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8293         (file_has_acl): Read also the second kind of HP-UX ACLs.
8294         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8295         kind of HP-UX ACLs if the first kind fails.
8296         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8297         second kind of HP-UX ACLs.
8298         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8299         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8300         agree.
8301         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8302         hpuxjfs.
8303         Handle hpuxjfs.
8304         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8305         hpuxjfs.
8306         Handle hpuxjfs.
8307         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8308         (func_test_same_acls): Use both lsacl and getacl.
8309         Handle hpuxjfs.
8310         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8311         (func_test_same_acls): Use both lsacl and getacl.
8312         Handle hpuxjfs.
8313
8314 2011-06-12  Bruno Haible  <bruno@clisp.org>
8315
8316         acl: Complete the 2010-08-10 fix.
8317         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8318         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8319         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8320         explicitly.
8321         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8322         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8323
8324 2011-06-12  Bruno Haible  <bruno@clisp.org>
8325
8326         spawn-pipe tests: Comments.
8327         * tests/test-spawn-pipe-child.c (main): Update comment.
8328         Reported by James Youngman <jay@gnu.org>.
8329
8330 2011-06-11  James Youngman  <jay@gnu.org>
8331
8332         New module 'stat-size'.
8333         * modules/stat-size: New module.  Provides macros for accessing
8334         file size information in instances of struct stat.  Depends on the
8335         fileblocks module because it calls st_blocks.
8336         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8337         * doc/gnulib.texi: Include stat-size.texi.
8338         * doc/stat-size.texi: Documentation for this module.
8339         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8340         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8341         AC_STRUCT_ST_BLOCKS.
8342
8343 2011-06-09  Bruno Haible  <bruno@clisp.org>
8344
8345         thread: Support pthreads-win32.
8346         * lib/glthread/thread.h (gl_thread_self): Define differently on
8347         pthreads-win32.
8348         (gl_null_thread): New declaration.
8349         (gl_thread_self_pointer): New macro.
8350         * lib/glthread/thread.c (gl_null_thread): New constant.
8351         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8352         gl_thread_self.
8353         * tests/test-tls.c: Likewise.
8354         Suggested by Paul Eggert. Reported by Eric Blake.
8355
8356 2011-06-09  Bruno Haible  <bruno@clisp.org>
8357
8358         thread: Fix confusion between NULL and 0.
8359         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8360         Reported by Paul Eggert.
8361
8362 2011-06-09  Bruno Haible  <bruno@clisp.org>
8363
8364         spawn-pipe tests: Avoid test failure on HP-UX 11.
8365         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8366         is closed.
8367
8368 2011-06-09  Bruno Haible  <bruno@clisp.org>
8369
8370         acl tests: Fix compilation error on HP-UX 11.
8371         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8372
8373 2011-06-09  Bruno Haible  <bruno@clisp.org>
8374
8375         rmdir: Avoid test failure on HP-UX 10.20.
8376         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8377         EEXIST.
8378
8379 2011-06-08  Eric Blake  <eblake@redhat.com>
8380
8381         perror: fix test on mingw
8382         * modules/perror-tests (Depends-on): Add dup2.
8383
8384         strerror_r-posix: fix on MacOS
8385         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8386         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8387         logic bug.
8388         * lib/strerror_r.c (strerror_r): Fix the bug.
8389         * lib/strerror.c (strerror): Likewise.
8390         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8391         problem.
8392         * doc/posix-functions/strerror.texi (strerror): Likewise.
8393         * doc/posix-functions/perror.texi (perror): Likewise.
8394         * tests/test-strerror.c (main): Enhance test.
8395         * tests/test-strerror_r.c (main): Likewise.
8396
8397 2011-06-08  Bruno Haible  <bruno@clisp.org>
8398
8399         gnulib-tool: Better isolation between different gnulib-tool invocations.
8400         * gnulib-tool: New option --witness-c-macro.
8401         (witness_c_macro): New variable.
8402         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8403         AM_CPPFLAGS define it as a C macro.
8404         (func_emit_tests_Makefile_am): Likewise.
8405         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8406         read it from there.
8407         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8408         m4_define, not AC_DEFUN.
8409         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8410         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8411         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8412         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8413         s|...|...|, to substitute the values of the GNULIB_* module indicator
8414         variables.
8415         * modules/dirent (Makefile.am): Likewise.
8416         * modules/fcntl-h (Makefile.am): Likewise.
8417         * modules/iconv-h (Makefile.am): Likewise.
8418         * modules/langinfo (Makefile.am): Likewise.
8419         * modules/locale (Makefile.am): Likewise.
8420         * modules/math (Makefile.am): Likewise.
8421         * modules/netdb (Makefile.am): Likewise.
8422         * modules/poll-h (Makefile.am): Likewise.
8423         * modules/pty (Makefile.am): Likewise.
8424         * modules/search (Makefile.am): Likewise.
8425         * modules/signal (Makefile.am): Likewise.
8426         * modules/spawn (Makefile.am): Likewise.
8427         * modules/stdio (Makefile.am): Likewise.
8428         * modules/stdlib (Makefile.am): Likewise.
8429         * modules/string (Makefile.am): Likewise.
8430         * modules/sys_ioctl (Makefile.am): Likewise.
8431         * modules/sys_select (Makefile.am): Likewise.
8432         * modules/sys_socket (Makefile.am): Likewise.
8433         * modules/sys_stat (Makefile.am): Likewise.
8434         * modules/sys_times (Makefile.am): Likewise.
8435         * modules/sys_utsname (Makefile.am): Likewise.
8436         * modules/sys_wait (Makefile.am): Likewise.
8437         * modules/termios (Makefile.am): Likewise.
8438         * modules/time (Makefile.am): Likewise.
8439         * modules/unistd (Makefile.am): Likewise.
8440         * modules/wchar (Makefile.am): Likewise.
8441
8442 2011-06-08  Eric Blake  <eblake@redhat.com>
8443
8444         strerror: simplify replacement
8445         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8446         * modules/strerror (configure.ac): No prereqs needed here...
8447         * modules/strerror-override (configure.ac): ...but this needs it.
8448         (Files): Add file for needed prereq macro.
8449
8450 2011-06-08  Bruno Haible  <bruno@clisp.org>
8451
8452         strerror_r-posix: Tweaks.
8453         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8454         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8455         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8456         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8457         (gl_FUNC_STRERROR_R): ... to here.
8458         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8459
8460 2011-06-07  Eric Blake  <eblake@redhat.com>
8461
8462         perror: document fixed bugs
8463         * doc/posix-functions/perror.texi (perror): Document recent
8464         patches.
8465
8466 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8467
8468         stat-time: get_stat_birthtime failure is better-defined
8469         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8470         return a timestamp whose tv_sec and tv_nsec values are both -1.
8471         Previously, the spec said only that the tv_nsec value was negative.
8472         This upward-compatible change simplifies GNU tar a bit.
8473
8474 2011-06-07  Eric Blake  <eblake@redhat.com>
8475
8476         strerror_r-posix: work around cygwin 1.7.9
8477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8478         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8479         bug without replacing strerror_r.
8480         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8481         strerror_r is buggy, but without requiring strerror_r compilation.
8482         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8483
8484         test-perror: relax test to ignore cygwin bug
8485         * tests/test-perror2.c (main): Relax test on requiring detection
8486         of stream errors, and use unbuffered stream.
8487         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8488         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8489         * doc/posix-functions/fputc.texi (fputc): Likewise.
8490         * doc/posix-functions/fputs.texi (fputs): Likewise.
8491         * doc/posix-functions/fputws.texi (fputws): Likewise.
8492         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8493         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8494         * doc/posix-functions/getopt.texi (getopt): Likewise.
8495         * doc/posix-functions/perror.texi (perror): Likewise.
8496         * doc/posix-functions/printf.texi (printf): Likewise.
8497         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8498         * doc/posix-functions/psignal.texi (psignal): Likewise.
8499         * doc/posix-functions/putc.texi (putc): Likewise.
8500         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8501         Likewise.
8502         * doc/posix-functions/putchar.texi (putchar): Likewise.
8503         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8504         Likewise.
8505         * doc/posix-functions/puts.texi (puts): Likewise.
8506         * doc/posix-functions/putwc.texi (putwc): Likewise.
8507         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8508         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8509         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8510         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8511         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8512         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8513         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8514         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8515
8516 2011-05-22  Bruno Haible  <bruno@clisp.org>
8517
8518         strerror: Move AC_LIBOBJ invocations to module description.
8519         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8520         gl_PREREQ_STRERROR invocations from here...
8521         * modules/strerror (configure.ac): ... to here.
8522
8523 2011-05-21  Bruno Haible  <bruno@clisp.org>
8524
8525         perror: Use common idiom.
8526         * modules/perror (configure.ac): Reorder statements.
8527
8528 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8529
8530         tests: fix usage message in 'mktempd_'
8531         * tests/init.sh (mktempd_): In the usage message, use literal
8532         'mktempd_', not '$ME' (which is even undefined), as the name of
8533         the subroutine.
8534
8535 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8536
8537         tests init: new function 'fatal_', for hard errors
8538         Before this patch, the only way offered by tests/init.sh to
8539         properly signal a hard error was the `framework_failure_'
8540         function.  But the error message issued by that function,
8541         as its name would suggest, refers to a set-up failure in the
8542         testsuite, while hard errors can obviously also be due to
8543         other reasons.  The best way to fix this inconsistency is to
8544         introduce a new function with a more general error message.
8545         * tests/init.sh (fatal_): New function.
8546
8547 2011-06-06  Eric Blake  <eblake@redhat.com>
8548
8549         canonicalize-lgpl: use common idiom
8550         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8551         over newer POSIX -Rf.
8552         Reported by Bruno Haible.
8553
8554         canonicalize-lgpl: work around AIX realpath bug
8555         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8556         * doc/posix-functions/realpath.texi (realpath): Document it.
8557         Reported by Bruno Haible.
8558
8559         strerror: work around FreeBSD bug
8560         * lib/strerror.c (strerror): Special case 0.
8561         Reported by Bruno Haible.
8562
8563         strerror-override: avoid bloating errno module
8564         * modules/errno (Files, configure.ac): Move replacement strings...
8565         * modules/strerror-override: ...to new module.
8566         * modules/strerror (Depends-on): Add strerror-override.
8567         * modules/strerror_r-posix (Depends-on): Likewise.
8568         * MODULES.html.sh: Document new module.
8569         Reported by Bruno Haible.
8570
8571 2011-06-06  Bruno Haible  <bruno@clisp.org>
8572
8573         spawn-pipe tests: Rename program.
8574         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8575         * tests/test-spawn-pipe-child.c: Update comment.
8576         * tests/test-spawn-pipe.sh: Update.
8577         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8578
8579         spawn-pipe tests: Link the child program only against libc.
8580         * tests/test-spawn-pipe-child.c: New file, extracted from
8581         tests/test-spawn-pipe.c.
8582         (main): Expect only one argument.
8583         (is_open): New function, copied from tests/test-pipe.c.
8584         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8585         (child_main): Remove function.
8586         (test_pipe): Pass only one argument to the child program.
8587         (main): Remove child process code. Expect the child program's name as
8588         first argument.
8589         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8590         argument.
8591         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8592         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8593         test-spawn-pipe-child against no libraries.
8594
8595 2011-06-06  Bruno Haible  <bruno@clisp.org>
8596
8597         careadlinkat: Avoid mismatch between ssize_t and int.
8598         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8599         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8600
8601 2011-06-06  Jim Meyering  <meyering@redhat.com>
8602
8603         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8604         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8605         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8606
8607 2011-06-05  Bruno Haible  <bruno@clisp.org>
8608
8609         ansi-c++-opt: Interoperability with libtool.
8610         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8611         set the variable to "no", not to ":".
8612         * NEWS: Mention the change.
8613
8614 2011-06-05  Bruno Haible  <bruno@clisp.org>
8615
8616         acl: Fix test failure on AIX 7.
8617         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8618         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8619
8620 2011-06-05  Bruno Haible  <bruno@clisp.org>
8621
8622         pipe-filter-ii: Fix test failure on AIX and IRIX.
8623         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8624         with EAGAIN, retry with a smaller buffer size.
8625
8626 2011-06-05  Bruno Haible  <bruno@clisp.org>
8627
8628         localename: Fix link dependencies.
8629         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8630         * modules/localename-tests (Makefile.am): Link test-localename with
8631         $(LIBTHREAD).
8632
8633 2011-06-05  Bruno Haible  <bruno@clisp.org>
8634
8635         error: Avoid gcc warning.
8636         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8637
8638 2011-06-05  Bruno Haible  <bruno@clisp.org>
8639
8640         unsetenv: Avoid gcc warning.
8641         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8642
8643 2011-06-05  Bruno Haible  <bruno@clisp.org>
8644
8645         setenv: Avoid gcc warning.
8646         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8647
8648 2011-06-05  Bruno Haible  <bruno@clisp.org>
8649
8650         sys_select: Ensure memset is declared also on AIX 7.
8651         * lib/sys_select.in.h: Include <string.h> also on AIX.
8652         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8653         self-contained also on AIX 7.1.
8654
8655 2011-06-04  Jim Meyering  <meyering@redhat.com>
8656
8657         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8658         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8659         function name, "error".
8660         (_gl_translatable_diag_func_re): New configurable variable.
8661
8662 2011-06-04  Bruno Haible  <bruno@clisp.org>
8663
8664         getopt: Avoid gcc warning.
8665         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8666
8667 2011-06-04  Bruno Haible  <bruno@clisp.org>
8668
8669         strerror_r: Fix comments.
8670         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8671         commit.
8672
8673 2011-06-04  Bruno Haible  <bruno@clisp.org>
8674
8675         perror: Fix compilation error.
8676         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8677         Undefine fprintf, not sprintf.
8678         * modules/perror (Depends-on): Remove intprops, verify.
8679
8680 2011-06-04  Bruno Haible  <bruno@clisp.org>
8681
8682         setlocale: Enable replacement on Cygwin 1.5.
8683         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8684         Cygwin 1.5.x.
8685         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8686         LC_CTYPE category also exists on Cygwin 1.5.x.
8687
8688 2011-06-04  Bruno Haible  <bruno@clisp.org>
8689
8690         strerror-override: Don't disable symbol renamings.
8691         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8692         * lib/strerror-override.c: Include config.h.
8693         (strerror_override): Don't undefine.
8694
8695 2011-06-03  Bruno Haible  <bruno@clisp.org>
8696
8697         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8698         * lib/localename.h: Update copyright header.
8699         * lib/localename.c: Likewise.
8700         * lib/relocatable.h: Likewise.
8701         * lib/relocatable.c: Likewise.
8702
8703 2011-06-02  Bruno Haible  <bruno@clisp.org>
8704
8705         doc: Fix a module name.
8706         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8707
8708 2011-06-02  Bruno Haible  <bruno@clisp.org>
8709
8710         pipe2: Remove dependency on 'nonblocking' module.
8711         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8712         O_NONBLOCK is defined by gnulib.
8713         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8714         is zero.
8715         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8716         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8717         defined by gnulib.
8718         (get_nonblocking_flag): New function.
8719         (main): Test O_NONBLOCK flag only if it is nonzero.
8720         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8721
8722 2011-06-03  Jim Meyering  <meyering@redhat.com>
8723
8724         maint: three new prohibit-header-without-use rules
8725         Prohibit use of cloexec.h, posixver.h, same.h without use.
8726         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8727         (sc_prohibit_posixver_without_use): Likewise.
8728         (sc_prohibit_same_without_use): Likewise.
8729
8730 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8731
8732         allocator: 'die' routine is now given requested size
8733         * lib/allocator.h (struct allocator.die): New size arg.
8734         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8735         If the actual problem is an ssize_t limitation, not a size_t or
8736         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8737
8738 2011-06-01  Eric Blake  <eblake@redhat.com>
8739
8740         strerror: drop strerror_r dependency
8741         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8742         * lib/strerror-override.c (strerror_override): ...to new file.
8743         * lib/strerror-override.h: Add prototype.
8744         * lib/strerror-impl.h: Delete.
8745         * lib/strerror.c (strerror): New implementation.
8746         * modules/errno (Files): Add new files.
8747         (configure.ac): Compile new file as appropriate.
8748         * modules/strerror (Files): Drop unused file.
8749         (Depends-on): Drop strerror_r-posix.
8750         * MODULES.html.sh: Document strerror_r-posix.
8751         Requested by Sam Steingold.
8752
8753         perror: call strerror_r directly
8754         * modules/perror (Files): Drop strerror-impl.h.
8755         * lib/perror.c (perror): Use our own stack buffer, rather than
8756         calling a wrapper that uses static storage.
8757         * doc/posix-functions/perror.texi (perror): Document a limitation
8758         of our replacement.
8759
8760         strerror_r: fix includes for FreeBSD
8761         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8762         since we use abort on some platforms.
8763         Reported by Matthias Bolte.
8764
8765 2011-05-31  Bruno Haible  <bruno@clisp.org>
8766
8767         Fix link errors in tests: openat-die uses gettext-h.
8768         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8769         against $(LIBINTL).
8770         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8771         against $(LIBINTL).
8772         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8773         $(LIBINTL).
8774         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8775         against $(LIBINTL).
8776         * modules/linkat-tests (Makefile.am): Link test-linkat against
8777         $(LIBINTL).
8778         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8779         $(LIBINTL).
8780         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8781         against $(LIBINTL).
8782         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8783         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8784         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8785         $(LIBINTL).
8786         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8787         $(LIBINTL).
8788         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8789         $(LIBINTL).
8790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8791
8792 2011-05-31  Bruno Haible  <bruno@clisp.org>
8793
8794         Fix link errors in tests: wait-process uses gettext-h.
8795         * modules/nonblocking-pipe-tests (Makefile.am): Set
8796         test_nonblocking_pipe_main_LDADD.
8797         * modules/nonblocking-socket-tests (Makefile.am): Link
8798         test-nonblocking-socket-main against $(LIBINTL).
8799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8800
8801 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8802
8803         assert-h: work around 'verify' incompatibility
8804         * lib/verify.h: Use @...@ directives, not ifdef.
8805         * modules/assert-h (assert.h): Implement the directives.
8806         (assert.h): Substitute the symbol-prefix more consistently.
8807
8808 2011-05-29  Jim Meyering  <meyering@redhat.com>
8809
8810         trim: remove three superfluous assignments
8811         * lib/trim.c (trim2): Remove three superfluous assignments
8812         and correct brace positioning.
8813
8814 2011-05-29  Bruno Haible  <bruno@clisp.org>
8815
8816         wctype-h: Avoid namespace pollution on Solaris 2.6.
8817         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8818         identifiers.
8819         * doc/posix-headers/wctype.texi: Mention the problem.
8820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8821
8822 2011-05-28  Jim Meyering  <meyering@redhat.com>
8823
8824         parse-datetime.y: accommodate -Wstrict-overflow
8825         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8826         placate -Wstrict-overflow.
8827
8828         trim: avoid a warning from -O2 -Wstrict-overflow
8829         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8830
8831 2011-05-29  Bruno Haible  <bruno@clisp.org>
8832
8833         gnulib-tool: Fix bug in yesterday's commit.
8834         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8835         twice.
8836
8837 2011-05-29  Bruno Haible  <bruno@clisp.org>
8838
8839         Allow multiple gnulib generated include files to be combined.
8840         * gnulib-tool (func_compute_include_guard_prefix): New function.
8841         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8842         ${gl_include_guard_prefix} references.
8843         (func_import, func_create_testdir): Invoke
8844         func_compute_include_guard_prefix.
8845         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8846         * lib/ctype.in.h: Likewise.
8847         * lib/dirent.in.h: Likewise.
8848         * lib/errno.in.h: Likewise.
8849         * lib/fcntl.in.h: Likewise.
8850         * lib/float.in.h: Likewise.
8851         * lib/getopt.in.h: Likewise.
8852         * lib/iconv.in.h: Likewise.
8853         * lib/langinfo.in.h: Likewise.
8854         * lib/locale.in.h: Likewise.
8855         * lib/math.in.h: Likewise.
8856         * lib/netdb.in.h: Likewise.
8857         * lib/netinet_in.in.h: Likewise.
8858         * lib/poll.in.h: Likewise.
8859         * lib/pthread.in.h: Likewise.
8860         * lib/pty.in.h: Likewise.
8861         * lib/sched.in.h: Likewise.
8862         * lib/se-selinux.in.h: Likewise.
8863         * lib/search.in.h: Likewise.
8864         * lib/signal.in.h: Likewise.
8865         * lib/spawn.in.h: Likewise.
8866         * lib/stdarg.in.h: Likewise.
8867         * lib/stddef.in.h: Likewise.
8868         * lib/stdint.in.h: Likewise.
8869         * lib/stdio.in.h: Likewise.
8870         * lib/stdlib.in.h: Likewise.
8871         * lib/string.in.h: Likewise.
8872         * lib/strings.in.h: Likewise.
8873         * lib/sys_file.in.h: Likewise.
8874         * lib/sys_ioctl.in.h: Likewise.
8875         * lib/sys_select.in.h: Likewise.
8876         * lib/sys_socket.in.h: Likewise.
8877         * lib/sys_stat.in.h: Likewise.
8878         * lib/sys_time.in.h: Likewise.
8879         * lib/sys_times.in.h: Likewise.
8880         * lib/sys_uio.in.h: Likewise.
8881         * lib/sys_utsname.in.h: Likewise.
8882         * lib/sys_wait.in.h: Likewise.
8883         * lib/sysexits.in.h: Likewise.
8884         * lib/termios.in.h: Likewise.
8885         * lib/time.in.h: Likewise.
8886         * lib/unistd.in.h: Likewise.
8887         * lib/wchar.in.h: Likewise.
8888         * lib/wctype.in.h: Likewise.
8889         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8890         * modules/ctype (Makefile.am): Likewise.
8891         * modules/dirent (Makefile.am): Likewise.
8892         * modules/errno (Makefile.am): Likewise.
8893         * modules/fcntl-h (Makefile.am): Likewise.
8894         * modules/float (Makefile.am): Likewise.
8895         * modules/getopt-posix (Makefile.am): Likewise.
8896         * modules/iconv-h (Makefile.am): Likewise.
8897         * modules/langinfo (Makefile.am): Likewise.
8898         * modules/locale (Makefile.am): Likewise.
8899         * modules/math (Makefile.am): Likewise.
8900         * modules/netdb (Makefile.am): Likewise.
8901         * modules/netinet_in (Makefile.am): Likewise.
8902         * modules/poll-h (Makefile.am): Likewise.
8903         * modules/pthread (Makefile.am): Likewise.
8904         * modules/pty (Makefile.am): Likewise.
8905         * modules/sched (Makefile.am): Likewise.
8906         * modules/search (Makefile.am): Likewise.
8907         * modules/selinux-h (Makefile.am): Likewise.
8908         * modules/signal (Makefile.am): Likewise.
8909         * modules/spawn (Makefile.am): Likewise.
8910         * modules/stdarg (Makefile.am): Likewise.
8911         * modules/stddef (Makefile.am): Likewise.
8912         * modules/stdint (Makefile.am): Likewise.
8913         * modules/stdio (Makefile.am): Likewise.
8914         * modules/stdlib (Makefile.am): Likewise.
8915         * modules/string (Makefile.am): Likewise.
8916         * modules/strings (Makefile.am): Likewise.
8917         * modules/sys_file (Makefile.am): Likewise.
8918         * modules/sys_ioctl (Makefile.am): Likewise.
8919         * modules/sys_select (Makefile.am): Likewise.
8920         * modules/sys_socket (Makefile.am): Likewise.
8921         * modules/sys_stat (Makefile.am): Likewise.
8922         * modules/sys_time (Makefile.am): Likewise.
8923         * modules/sys_times (Makefile.am): Likewise.
8924         * modules/sys_uio (Makefile.am): Likewise.
8925         * modules/sys_utsname (Makefile.am): Likewise.
8926         * modules/sys_wait (Makefile.am): Likewise.
8927         * modules/sysexits (Makefile.am): Likewise.
8928         * modules/termios (Makefile.am): Likewise.
8929         * modules/time (Makefile.am): Likewise.
8930         * modules/unistd (Makefile.am): Likewise.
8931         * modules/wchar (Makefile.am): Likewise.
8932         * modules/wctype-h (Makefile.am): Likewise.
8933         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8934
8935 2011-05-29  Bruno Haible  <bruno@clisp.org>
8936
8937         assert-h: Allow multiple gnulib generated replacements to coexist.
8938         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8939
8940 2011-05-29  Bruno Haible  <bruno@clisp.org>
8941
8942         argp: Allow coexistence with strerror_r-posix module.
8943         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8944         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8945         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8946         not the glibc signature.
8947
8948 2011-05-28  Bruno Haible  <bruno@clisp.org>
8949
8950         gnulib-tool: Alternative structure of testdirs, similar to --import.
8951         * gnulib-tool: New option --single-configure.
8952         (func_usage): Document it.
8953         (single_configure): New variable.
8954         (func_modules_transitive_closure_separately,
8955         func_modules_transitive_closure_separately,
8956         func_determine_use_libtests, func_modules_add_dummy_separately,
8957         func_modules_to_filelist_separately): New functions, extracted from
8958         func_import.
8959         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8960         (func_import): Use the new functions.
8961         (func_create_testdir): Set final_modules. Handle $single_configure =
8962         true case.
8963
8964 2011-05-28  Bruno Haible  <bruno@clisp.org>
8965
8966         getloadavg: Remove an unreliable safety check.
8967         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8968         getloadavg.c is in place.
8969         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8970         Reported by Sam Steingold <sds@gnu.org>.
8971
8972 2011-05-28  Bruno Haible  <bruno@clisp.org>
8973
8974         doc: Cleanup yet another file produced by texinfo.tex.
8975         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8976
8977 2011-05-28  Bruno Haible  <bruno@clisp.org>
8978
8979         Finish the conditional dependencies mechanism.
8980         * gnulib-tool: New option --no-conditional-dependencies.
8981         (func_usage): Document it. Don't mark --conditional-dependencies as
8982         experimental.
8983         (cond_dependencies): The possible values can now be true, false, empty.
8984         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8985         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8986         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8987
8988 2011-05-28  Bruno Haible  <bruno@clisp.org>
8989
8990         doc: Use a recent texinfo.tex.
8991         * doc/Makefile (tex_opts): New variable.
8992         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8993
8994 2011-05-28  Jim Meyering  <meyering@redhat.com>
8995
8996         intprops.h: adjust comment to match code change
8997         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8998         only once, it *may* have side effects.  Also fix an unrelated typo.
8999         (_GL_INT_SIGNED): Likewise.
9000
9001 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9002
9003         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9004
9005 2011-05-26  Bruno Haible  <bruno@clisp.org>
9006
9007         mbsrchr: Avoid collision with system function on Interix.
9008         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9009         Reported by Markus Duft <mduft@gentoo.org>.
9010
9011 2011-05-15  James Youngman  <jay@gnu.org>
9012
9013         getopt: for ambiguous options, enumerate the possibilities.
9014         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9015         the ambiguous options when an ambiguous prefix is given. This was
9016         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9017         glibc change was
9018         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9019
9020 2011-05-25  Eric Blake  <eblake@redhat.com>
9021
9022         getcwd: work around mingw bug
9023         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9024         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9025         Reported by Matthias Bolte.
9026
9027 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9028
9029         test-intprops: disable -Wtype-limits diagnostics
9030         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9031         diagnostics.  Otherwise, the integer overflow macros generate many
9032         diagnostics.  Reported by Jim Meyering in
9033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9034
9035         intprops: shorten, to pacify gcc -Woverlength-strings
9036         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9037         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9038         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9039         likely to run afoul of C compiler limits for string constant lengths.
9040         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9041
9042 2011-05-24  Eric Blake  <eblake@redhat.com>
9043
9044         docs: document recently fixed glibc printf bug
9045         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9046         * doc/posix-functions/printf.texi (printf): Likewise.
9047         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9048         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9049
9050         closein-tests: convert to init.sh
9051         * modules/closein-tests (Files): Add init.sh
9052         * tests/test-closein.sh Use it.
9053
9054         yesno-tests: convert to init.sh
9055         * modules/yesno-tests (Files): Add init.sh.
9056         * tests/test-yesno.sh: Use it.
9057
9058         atexit-tests: ensure reliable exit status
9059         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9060         Reported by Bruno Haible.
9061
9062 2011-05-24  Bruno Haible  <bruno@clisp.org>
9063
9064         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9065         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9066         gl_PREREQ_STRERROR_R invocations from here...
9067         * modules/strerror_r-posix (configure.ac): ... to here.
9068
9069 2011-05-24  Eric Blake  <eblake@redhat.com>
9070
9071         strerror_r: fix missing header
9072         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9073
9074         strerror_r: fix AIX test failures
9075         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9076         ERANGE failure.
9077
9078         strerror_r: fix Solaris test failures
9079         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9080         failures.
9081         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9082
9083         strerror_r: enforce POSIX recommendations
9084         * lib/strerror_r.c (safe_copy): New helper method.
9085         (strerror_r): Guarantee a non-empty string.
9086         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9087         recent POSIX rulings and to match our strerror guarantees.
9088         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9089
9090 2011-05-24  Jim Meyering  <meyering@redhat.com>
9091
9092         test-perror2.c: avoid warning about unused variable
9093         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9094
9095 2011-05-24  Eric Blake  <eblake@redhat.com>
9096
9097         perror: avoid spurious test failure on HP-UX
9098         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9099
9100         tests: fix logic bug in init.sh
9101         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9102         shell.
9103
9104 2011-05-24  Jim Meyering  <meyering@redhat.com>
9105
9106         utimensat: do not reference an out-of-scope buffer
9107         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9108         declared in an inner scope, yet "times" would be dereferenced outside
9109         the scope in which "ts" was valid.
9110         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9111         of ts[2] "out/up", so that the use of aliased "times" (via
9112         "times = ts;") does not end up referencing an out-of-scope "ts"
9113
9114         opendir-safer.c: don't clobber errno; don't close negative FD
9115         * lib/opendir-safer.c (opendir_safer):
9116         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9117         file descriptor, and more importantly, don't clobber the
9118         offending errno value with EINVAL.  Before, upon failure
9119         of dup_safer, we would pass the negative file descriptor to
9120         fdopendir, which would clobber errno.
9121
9122 2011-05-23  Bruno Haible  <bruno@clisp.org>
9123
9124         idcache: Fix module description.
9125         * modules/idcache (Include): Set to "idcache.h".
9126
9127 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9128
9129         gnulib-tool: fix portability problem with MacOS sed
9130         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9131         before the "}".  Problem reported by Leo in
9132         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9133         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9134         sed_extract_condition1, sed_extract_condition2.
9135
9136 2011-05-23  Bruno Haible  <bruno@clisp.org>
9137
9138         hash: Simplify autoconf macro.
9139         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9140
9141 2011-05-23  Bruno Haible  <bruno@clisp.org>
9142
9143         getugroups: Fix module description.
9144         * modules/getugroups (Include): Set to "getugroups.h".
9145
9146 2011-05-23  Bruno Haible  <bruno@clisp.org>
9147
9148         linkat: Simplify autoconf macro.
9149         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9150
9151 2011-05-23  Bruno Haible  <bruno@clisp.org>
9152             Eric Blake  <eblake@redhat.com>
9153
9154         linkat, renameat: Update dependencies.
9155         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9156         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9157         symlinkat.
9158
9159 2011-05-23  Jim Meyering  <meyering@redhat.com>
9160
9161         maint.mk: more tight_scope improvements
9162         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9163         (_gl_TS_headers): Define only in if-0'd block.
9164         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9165         sometimes we must *not* use it.  Adjust uses accordingly.
9166         (sc_tight_scope): Use much simpler grep-based test to determine
9167         whether we skip this rule.
9168
9169         maint.mk: generalize/improve the tight-scope rule
9170         * top/maint.mk: Emit a warning when the test is skipped.
9171         (_gl_TS_dir): Add $(srcdir)/ prefix.
9172         (_gl_TS_function_match): Simplify, rather than trying
9173         to enumerate common types.  Otherwise, it would fail to match an
9174         "extern unsigned char const *" declaration in idutils.
9175         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9176         a way to support use of that type of macro.
9177         (_gl_TS_var_match): Simplify regexp.
9178         (_gl_TS_obj_files): New configurable variable.
9179         (_gl_TS_headers): Likewise.
9180
9181 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9182
9183         verify: fix bug when gnulib <assert.h> is also included
9184         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9185         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9186         Perhaps there's a better way, but this fixes the immediate problem.
9187         Problem reported by Bruno Haible in
9188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9189
9190 2011-05-22  Bruno Haible  <bruno@clisp.org>
9191
9192         xgetcwd: Simplify autoconf macro.
9193         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9194
9195 2011-05-22  Bruno Haible  <bruno@clisp.org>
9196
9197         New module 'mktime-internal'.
9198         * modules/mktime-internal: New file.
9199         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9200         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9201         mktime_internal as a C macro if libc has __mktime_internal.
9202         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9203         conditions.
9204         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9205
9206 2011-05-22  Bruno Haible  <bruno@clisp.org>
9207
9208         timegm: Correct mktime replacement statements.
9209         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9210         defining mktime as a C macro. This completes a 2009-07-28 commit.
9211
9212 2011-05-22  Bruno Haible  <bruno@clisp.org>
9213
9214         timegm: Simplify autoconf macro.
9215         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9216
9217 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9218
9219         clock-time: change to LGPLv2+.
9220         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9221         BSD-like but we have no mark for that; this is good enough for now.
9222
9223 2011-05-21  Bruno Haible  <bruno@clisp.org>
9224
9225         strerror_r: Fix comments.
9226         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9227
9228 2011-05-21  Bruno Haible  <bruno@clisp.org>
9229
9230         relocatable-prog-wrapper: Fix possible link error.
9231         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9232         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9233         (gl_FUNC_SETENV): ... to here.
9234         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9235         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9236
9237 2011-05-21  Bruno Haible  <bruno@clisp.org>
9238
9239         relocatable-prog-wrapper: Assume strerror() exists.
9240         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9241         m4/strerror.m4.
9242         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9243         * lib/relocwrapper.c: Remove mention of strerror module.
9244         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9245         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9246         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9247         C macro.
9248
9249 2011-05-21  Bruno Haible  <bruno@clisp.org>
9250
9251         select: Simplify replacement idiom.
9252         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9253         Win32 platforms.
9254         * lib/sys_select.in.h (select): Simplify accordingly.
9255         * modules/select (Depends-on): Likewise.
9256
9257 2011-05-21  Bruno Haible  <bruno@clisp.org>
9258
9259         mkdir-p: Simplify autoconf macro.
9260         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9261         gl_FUNC_LCHOWN.
9262
9263 2011-05-21  Eric Blake  <eblake@redhat.com>
9264
9265         strerror_r: avoid clobbering strerror on cygwin
9266         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9267         fall back instead to sys_errlist.
9268         * modules/strerror (configure.ac): Add witness.
9269         * tests/test-strerror_r.c (main): Enhance test.
9270         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9271         * tests/test-perror2.c (main): Free memory before exit.
9272
9273 2011-05-21  Bruno Haible  <bruno@clisp.org>
9274
9275         mkdtemp: Use gnulib naming conventions.
9276         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9277         * modules/mkdtemp (configure.ac): Update.
9278
9279 2011-05-20  Eric Blake  <eblake@redhat.com>
9280
9281         strerror_r: avoid corrupting errno on Solaris
9282         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9283         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9284
9285         strerror_r: avoid compiler warning
9286         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9287
9288         strerror_r: simplify AIX code
9289         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9290
9291         test-perror: avoid spurious failure on FreeBSD
9292         * modules/perror-tests (Depends-on): Add strerror, now that
9293         strerror_r no longer pulls it in.
9294
9295 2011-05-20  Bruno Haible  <bruno@clisp.org>
9296
9297         strerror_r-posix: Remove unused dependencies.
9298         * modules/strerror_r-posix (Depends-on): Remove strerror.
9299         Reported by Eric Blake.
9300
9301 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9302
9303         intprops: remove assumption about A|B representation
9304         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9305         is a valid integer if both A and B are.  Although this is true for
9306         all known practical hosts, the C standard doesn't guarantee it,
9307         and the code need not assume it.  Also, this change may work around
9308         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9310
9311 2011-05-20  Eric Blake  <eblake@redhat.com>
9312
9313         perror: work around FreeBSD bug
9314         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9315         is broken.  Move AC_LIBOBJ...
9316         * modules/perror (configure.ac): Here.
9317         * doc/posix-functions/perror.texi (perror): Document this.
9318         * tests/test-perror2.c (main): Enhance test.
9319
9320         test-perror: check for strerror interactions
9321         * tests/macros.h (STREQ): Add macro.
9322         * modules/perror-tests (Files): Add second test.
9323         * tests/test-perror2.c (main): New file.
9324         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9325
9326         test-perror: rewrite to use init script
9327         * modules/perror-tests (Files): Add init.sh.
9328         * tests/test-perror.sh: Use temporary directory.
9329
9330 2011-05-20  Jim Meyering  <meyering@redhat.com>
9331
9332         maint: replace misused "a" with "an"
9333         * doc/intprops.texi: "a integer"
9334         * doc/regex.texi: "a explanation"
9335         * lib/alignof.h: "a object"
9336         * lib/argmatch.h: "a explanation"
9337         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9338         * lib/stdint.in.h: "a integer"
9339         * lib/userspec.c: "a owner"
9340         * doc/gnulib.texi: Fix "a idea", and reword.
9341
9342 2011-05-19  Jim Meyering  <meyering@redhat.com>
9343
9344         maint: correct misuse of "a" and "an"
9345         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9346         * lib/argp-help.c: "an docum...": s/an/a/
9347         * lib/argp-parse.c: "An vector": s/An/A/
9348         * lib/execute.c: "an native": s/an/a/
9349         * lib/spawn-pipe.c: Likewise.
9350         * lib/gc.h: "an Gc_rc": s/an/a/
9351         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9352         * lib/fts.c: "an stat.st_dev": s/an/a/
9353
9354 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9355
9356         intprops-tests: work around HP-UX 11.23 cc bug with constants
9357         * tests/test-intprops.c (VERIFY): New macro.
9358         (main): Use it, instead of verify, to work around the compiler bug; see
9359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9360
9361         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9362         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9363         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9364         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9365         (_GL_REMAINDER_OVERFLOW): Use it.
9366
9367         intprops-tests: revert unsigned part of previous change
9368         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9369         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9370         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9372
9373 2011-05-19  Bruno Haible  <bruno@clisp.org>
9374
9375         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9376         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9377         strerror_r() returned without filling the buffer.
9378         Reported by Eric Blake.
9379
9380 2011-05-19  Eric Blake  <eblake@redhat.com>
9381
9382         strerror_r: guarantee unchanged errno
9383         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9384         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9385         failure.
9386         * tests/test-strerror_r.c (main): Enhance test.
9387
9388 2011-05-19  Bruno Haible  <bruno@clisp.org>
9389
9390         strerror_r: Reorder #if blocks.
9391         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9392         for consistency with the previous commit.
9393
9394 2011-05-19  Bruno Haible  <bruno@clisp.org>
9395
9396         perror: Avoid clobbering the strerror buffer when possible.
9397         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9398         * lib/strerror.c: Include it.
9399         * modules/strerror (Files): Add lib/strerror-impl.h.
9400         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9401         (my_strerror): New function, defined through lib/strerror-impl.h.
9402         (perror): Use it instead of strerror.
9403         * modules/perror (Files): Add lib/strerror-impl.h.
9404         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9405
9406 2011-05-19  Eric Blake  <eblake@redhat.com>
9407
9408         strerror_r: fix on newer cygwin
9409         * lib/strerror_r.c (strerror_r): Cygwin now has
9410         __xpg_strerror_r, use it.
9411
9412 2011-05-19  Bruno Haible  <bruno@clisp.org>
9413
9414         strerror_r: Avoid clobbering the strerror buffer when possible.
9415         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9416         (sys_nerr, sys_errlist): New declarations.
9417         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9418         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9419         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9420
9421 2011-05-19  Bruno Haible  <bruno@clisp.org>
9422
9423         strerror_r: Fix test failure on mingw.
9424         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9425         EXTEND_STRERROR_R.
9426         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9427         macros from errno.in.h instead.
9428
9429 2011-05-19  Eric Blake  <eblake@redhat.com>
9430
9431         strerror: relax test for Solaris
9432         * tests/test-strerror.c (main): Permit Solaris behavior.
9433         * tests/test-strerror_r.c (main): Likewise.
9434
9435         strerror: enforce POSIX ruling on strerror(0)
9436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9437         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9438         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9439         * doc/posix-functions/strerror.texi (strerror): Document it.
9440         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9441         * tests/test-strerror.c (main): Strengthen test.
9442         * tests/test-strerror_r.c (main): Likewise.
9443
9444 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9445
9446         intprop-tests: port to older and more-pedantic compilers
9447         * modules/intprops-tests (Files): Add tests/macros.h.
9448         * tests/test-intprops.c: Include macros.h.
9449         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9450         it's no longer documented to expand to an integer constant expression.
9451         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9452         argument is floating point, as it's no longer documented to expand
9453         to an integer constant expression in that case.
9454         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9455         compiler bugs reported by Bruno Haible.  See
9456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9457         (U0, U1): New constants, to work around the same bugs.  Also,
9458         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9459
9460         intprops: work around C compiler bugs
9461         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9462         bug in Sun C 5.11 2010/08/13 and other compilers; see
9463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9464
9465         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9466         * doc/intprops.texi (Integer Type Determination): Fix
9467         documentation for TYPE_IS_INTEGER: it returns an constant
9468         expression, not an integer constant expression.  Fix doc for
9469         TYPE_SIGNED: it returns an integer constant expression only if its
9470         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9471         hardly worth documented that way....)
9472
9473 2011-05-18  Bruno Haible  <bruno@clisp.org>
9474
9475         strerror_r: Avoid clobbering the strerror buffer when possible.
9476         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9477         Handle gnulib defined errno values here. When strerror() returns NULL
9478         or an empty string, return EINVAL.
9479         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9480         gnulib defined errno values here.
9481         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9482
9483 2011-05-18  Eric Blake  <eblake@redhat.com>
9484
9485         fnmatch: avoid compiler warning
9486         * lib/fnmatch_loop.c (FCT): Use correct type.
9487         Reported by Matthias Bolte.
9488
9489 2011-05-13  Jim Meyering  <meyering@redhat.com>
9490
9491         maint.mk: three new prohibit_<HDR>_without_use rules
9492         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9493         (sc_prohibit_stdio-safer_without_use): Likewise.
9494         (sc_prohibit_xfreopen_without_use): Likewise.
9495
9496 2011-05-17  Jim Meyering  <meyering@redhat.com>
9497
9498         announce-gen: fail if the NEWS delta is empty
9499         If there's nothing noteworthy in NEWS, then either you forgot
9500         or you shouldn't be releasing.
9501         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9502
9503 2011-05-17  Pádraig Brady <P@draigBrady.com>
9504
9505         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9506         reserved symbols starting with double underscore from the check.
9507
9508 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9509
9510         intprops: add doc
9511         * doc/intprops.texi: New file, documenting intprops.
9512         * doc/gnulib.texi (Particular Modules): Include it.
9513
9514         verify: add doc to gnulib manual and fix example
9515         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9516         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9517         (Compile-time Assertions): Fix example so it can't overflow.
9518
9519 2011-05-17  Jim Meyering  <meyering@redhat.com>
9520
9521         warnings.m4: don't usurp save_CPPFLAGS variable name
9522         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9523
9524         doc: fix typo
9525         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9526
9527 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9528             Bruno Haible  <bruno@clisp.org>
9529
9530         doc: Tweak recent change.
9531         * README (Portability guidelines): Tweak new text.
9532         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9533         Interix 6.1.
9534
9535 2011-05-16  Eric Blake  <eblake@redhat.com>
9536
9537         inttypes: avoid autoconf warning
9538         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9539         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9540
9541 2011-05-16  Sam Steingold <sds@gnu.org>
9542         and Eric Blake  <eblake@redhat.com>
9543
9544         vc-list-files: accept multiple directory operands
9545         * build-aux/vc-list-files: Iterate over all remaining operands.
9546
9547 2011-05-16  Bruno Haible  <bruno@clisp.org>
9548
9549         Fix confusion regarding deprecated modules.
9550         * modules/calloc (Status, Notice): Mark module as deprecated, not
9551         obsolete.
9552         * modules/fnmatch-posix (Status, Notice): Likewise.
9553         * modules/getdate (Status, Notice): Likewise.
9554         * modules/getopt (Status, Notice): Likewise.
9555         * modules/malloc (Status, Notice): Likewise.
9556         * modules/pipe (Status, Notice): Likewise.
9557         * modules/realloc (Status, Notice): Likewise.
9558         * modules/rename-dest-slash (Status, Notice): Likewise.
9559         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9560         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9561         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9562         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9563         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9564
9565 2011-05-16  Bruno Haible  <bruno@clisp.org>
9566
9567         doc: List the target platforms.
9568         * doc/gnulib-intro.texi (Target Platforms): New section.
9569         * doc/gnulib.texi (Introduction): Update menu.
9570         * README (Portability guidelines): Refer to the new section. Update
9571         statement about oldest supported environment. Remove rationale why
9572         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9573         unportable C89 function.
9574         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9575         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9576
9577 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9578
9579         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9580
9581 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9582
9583         intprops-tests: new module
9584         * modules/intprops-tests, tests/test-intprops.c: New files.
9585
9586         intprops: add safe, portable integer overflow checking
9587         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9588         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9589         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9590         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9591         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9592         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9593         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9594         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9595         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9596         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9597         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9598
9599 2011-05-12  James Youngman  <jay@gnu.org>
9600
9601         Add a test for glibc's Bugzilla bug #12378.
9602         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9603         doesn't allow the literal matching of a lone "[" (which is
9604         required by POSIX).
9605         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9606
9607 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9608
9609         Sync glibc change fixing Bugzilla bug #12378.
9610         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9611         beginning and fall back to matching as normal character if the
9612         string ends before the matching ']' is found.  This is what POSIX
9613         requires.
9614
9615 2011-05-13  Eric Blake  <eblake@redhat.com>
9616
9617         getcwd-lgpl: relax test for FreeBSD
9618         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9619         issue.
9620         * tests/test-getcwd-lgpl.c (main): Relax test.
9621         Reported by Matthias Bolte.
9622
9623 2011-05-11  Eric Blake  <eblake@redhat.com>
9624
9625         test-fflush: silence compiler warning
9626         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9627
9628 2011-05-11  Bruno Haible  <bruno@clisp.org>
9629
9630         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9631         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9632         * modules/canonicalize (Depends-on): Add 'nocrash'.
9633         * modules/canonicalize-lgpl (Depends-on): Likewise.
9634         * doc/posix-functions/realpath.texi: Update platforms list.
9635         Reported by Ryan Schmidt <ryandesign@macports.org>.
9636
9637 2011-05-11  Bruno Haible  <bruno@clisp.org>
9638
9639         group-member: Declare function in <unistd.h>.
9640         * lib/unistd.in.h (group_member): New declaration.
9641         * lib/group-member.h: Remove file.
9642         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9643         * tests/test-unistd-c++.cc: Check signature of group_member.
9644         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9645         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9646         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9647         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9648         HAVE_GROUP_MEMBER.
9649         * modules/group-member (Files): Remove lib/group-member.h.
9650         (Depends-on): Add unistd. Specify conditions.
9651         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9652         (Include): Change to <unistd.h>.
9653         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9654         HAVE_GROUP_MEMBER.
9655         * NEWS: Mention the change.
9656         * lib/euidaccess.c: Don't include group-member.h.
9657
9658 2011-05-11  Bruno Haible  <bruno@clisp.org>
9659
9660         group-member: Document module.
9661         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9662         module.
9663
9664 2011-05-11  Bruno Haible  <bruno@clisp.org>
9665
9666         fclose: Fix mistake earlier today.
9667         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9668
9669 2011-05-11  Eric Blake  <eblake@redhat.com>
9670
9671         fclose: preserve fflush errors
9672         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9673         Reported by Jim Meyering.
9674
9675         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9676         * build-aux/bootstrap (check_versions): When no specific version
9677         is required, merely check that the app produces an exit status
9678         that indicates its existence.
9679
9680         maint.mk: drop redundant check
9681         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9682         the same but better.
9683
9684 2011-05-11  Bruno Haible  <bruno@clisp.org>
9685
9686         fclose: Fix possible link error.
9687         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9688         unregister_shadow_fd. Improve comments.
9689         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9690         Eric Blake.
9691
9692 2011-05-11  Jim Meyering  <meyering@redhat.com>
9693
9694         maint.mk: improve "can not" detection and generalize rule name
9695         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9696         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9697         Use the same technique as in sc_prohibit_doubled_word, so that
9698         we recognize "can not" also when the words are separated by a newline.
9699         Suggested by Eric Blake.
9700         (perl_filename_lineno_text_): Define.  Factored out of...
9701         (prohibit_doubled_word_): ...here.  Use the new definition.
9702         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9703         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9704         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9705
9706 2011-05-10  Eric Blake  <eblake@redhat.com>
9707
9708         fclose: avoid double close race when possible
9709         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9710         all but WINDOWS_SOCKETS.
9711
9712 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9713
9714         openat: correct new comment
9715         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9716
9717 2011-05-10  Jim Meyering  <meyering@redhat.com>
9718
9719         openat: add comments
9720         * lib/openat-proc.c (openat_proc_name): Add comments,
9721         mostly from Eric Blake.
9722
9723 2011-05-09  Eric Blake  <eblake@redhat.com>
9724
9725         openat: reduce syscalls in first probe of /proc
9726         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9727         be a directory.  Simplify the probe for .. bugs.
9728         * modules/openat (Depends-on): Drop same-inode.
9729         Reported by Bastien ROUCARIES.
9730
9731 2011-05-09  Jim Meyering  <meyering@redhat.com>
9732
9733         maint.mk: change semantics/name of tight_scope variables
9734         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9735         Rename variables to align with semantics that make them more useful.
9736
9737         maint.mk: tweak new rule's name not to impinge
9738         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9739         (sc_tight_scope): Use new rule name rather than $@-0.
9740
9741         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9742         * top/maint.mk (sc_tight_scope): New rule.
9743         (sc_tight_scope-0): New rule, ifdef'd out.
9744         (_gl_TS_dir): Default.
9745         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9746         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9747
9748 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9749
9750         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9751         Haible <bruno@clisp.org>.
9752
9753 2011-05-08  Bruno Haible  <bruno@clisp.org>
9754
9755         Comments.
9756         * m4/isnanf.m4: Add comment.
9757         * m4/isnanl.m4: Likewise.
9758
9759 2011-05-08  Bruno Haible  <bruno@clisp.org>
9760
9761         glob: Remove obsolete macro.
9762         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9763
9764 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9765
9766         intprops: Sun C 5.11 supports __typeof__
9767         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9768         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9769         which is new.
9770         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9771
9772         intprops: switch to usual gnulib indenting and naming
9773         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9774         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9775
9776         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9777
9778 2011-05-08  Jim Meyering  <meyering@redhat.com>
9779
9780         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9781         * top/maint.mk (release-prep): Use make's --no-print-directory
9782         option when generating the announcement.  This eliminates the
9783         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9784         generated announcement template.
9785
9786 2011-05-08  Bruno Haible  <bruno@clisp.org>
9787
9788         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9789         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9790         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9791
9792 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9793
9794         ignore-value, verify: Omit include files from lib_SOURCES.
9795         * modules/ignore-value, modules/verify (Makefile.am):
9796         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9797         that leads Automake to duplicate use of am__objects_... variables
9798         in Makefile.in.  See
9799         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9800
9801 2011-05-07  Bruno Haible  <bruno@clisp.org>
9802
9803         fclose: Simplify autoconf macro.
9804         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9805         defined.
9806
9807 2011-05-07  Bruno Haible  <bruno@clisp.org>
9808
9809         canonicalize-lgpl: Fix autoconf macro ordering bug.
9810         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9811         gl_STDLIB_H_DEFAULTS.
9812
9813 2011-05-06  Eric Blake  <eblake@redhat.com>
9814
9815         maintainer-makefile: make sc_po_check easier to tune
9816         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9817         to probe for strings, such as an alternate location for gnulib.
9818
9819         fclose: guarantee behavior on seekable stdin
9820         * modules/fclose (Depends-on): Add fflush.
9821         * doc/posix-functions/fclose.texi (fclose): Document this.
9822         * tests/test-fclose.c (main): Make test for this unconditional.
9823
9824 2011-05-06  Bruno Haible  <bruno@clisp.org>
9825
9826         fflush, fpurge: Relicense under LGPLv2+.
9827         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9828         * modules/fpurge (License): Likewise.
9829         With permission from Eric Blake and Jim Meyering.
9830         Suggested by Eric Blake.
9831
9832 2011-05-06  Karl Berry  <karl@gnu.org>
9833
9834         * MODULES.html.sh (func_all_modules): remove exit.
9835
9836 2011-05-06  Jim Meyering  <meyering@redhat.com>
9837
9838         maint.mk: use info-gnu@ as the default only for a stable release
9839         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9840         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9841         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9842         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9843
9844 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9845
9846         assert-h: new module, which supports C1X-style static_assert
9847         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9848         * lib/verify.h: Revamp so that this can be copied into assert.h,
9849         while retaining the ability to use it standalone as before.
9850         Rename private identifiers so as not to encroach on the
9851         standard C namespace, since this is now used by assert.h.
9852         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9853         the old verify_true.
9854         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9855         the old verify_true.  Use _GL_VERIFY_TYPE.
9856         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9857         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9858         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9859         defined when this file is copied into the replacement assert.h.
9860         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9861         and _Static_assert is not built in.
9862         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9863         defined, and use the new macros mentioned above.
9864         * doc/posix-headers/assert.texi: Document this.
9865
9866 2011-05-05  Bruno Haible  <bruno@clisp.org>
9867
9868         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9869         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9870         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9871         gl_REPLACE_FCLOSE here.
9872         * modules/fflush (Depends-on): Remove fclose.
9873         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9874         combination with module 'fclose'.
9875
9876 2011-05-05  Bruno Haible  <bruno@clisp.org>
9877
9878         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9879         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9880         gl_FUNC_FFLUSH.
9881         (gl_FUNC_FFLUSH): Use it.
9882         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9883         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9884         gl_REPLACE_FSEEKO here.
9885
9886 2011-05-05  Bruno Haible  <bruno@clisp.org>
9887
9888         tzset: Relicense under LGPL.
9889         * modules/tzset (License): Change to LGPL.
9890         No agreement needed; it's a no-op.
9891
9892         strtoimax, strtoumax: Relicense under LGPL.
9893         * modules/strtoimax (License): Change to LGPL.
9894         * modules/strtoumax (License): Likewise.
9895         With permission from Jim Meyering, Paul Eggert:
9896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9898
9899         getgroups: Relicense under LGPL.
9900         * modules/getgroups (License): Change to LGPL.
9901         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9905
9906         nanosleep: Relicense under LGPL.
9907         * modules/nanosleep (License): Change to LGPL.
9908         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9909         Haible:
9910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9914
9915         futimens: Relicense under LGPL.
9916         * modules/futimens (License): Change to LGPL.
9917         With permission from Eric Blake:
9918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9919
9920         fflush: Relicense under LGPL.
9921         * modules/fflush (License): Change to LGPL.
9922         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9926
9927         tmpfile: Relicense under LGPL.
9928         * modules/tmpfile (License): Change to LGPL.
9929         With permission from Ben Pfaff:
9930         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9931
9932         isfinite: Relicense under LGPL.
9933         * modules/isfinite (License): Change to LGPL.
9934         With permission from Ben Pfaff, Bruno Haible:
9935         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9937
9938         acosl..tanl: Relicense under LGPL.
9939         * modules/acosl (License): Change to LGPL.
9940         * modules/asinl (License): Likewise.
9941         * modules/atanl (License): Likewise.
9942         * modules/cosl (License): Likewise.
9943         * modules/expl (License): Likewise.
9944         * modules/logl (License): Likewise.
9945         * modules/sinl (License): Likewise.
9946         * modules/sqrtl (License): Likewise.
9947         * modules/tanl (License): Likewise.
9948         Source code originally from glibc and Paolo Bonzini. Agreements:
9949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9951
9952 2011-05-05  Bruno Haible  <bruno@clisp.org>
9953
9954         signal: Define sighandler_t.
9955         * lib/signal.in.h (sighandler_t): New type.
9956         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9957         whether sighandler_t is defined.
9958         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9959         * modules/signal (Depends-on): Add extensions.
9960         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9961         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9962         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9963
9964 2011-05-05  Eric Blake  <eblake@redhat.com>
9965
9966         maint: remove useless REPLACE_*_H macros
9967         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9968         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9969         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9970         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9971         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9972         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9973         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9974         * m4/btowc.m4: Update callers.
9975         * m4/dirfd.m4: Likewise.
9976         * m4/duplocale.m4: Likewise.
9977         * m4/fchdir.m4: Likewise.
9978         * m4/fdopendir.m4: Likewise.
9979         * m4/inet_ntop.m4: Likewise.
9980         * m4/inet_pton.m4: Likewise.
9981         * m4/ioctl.m4: Likewise.
9982         * m4/mbrlen.m4: Likewise.
9983         * m4/mbrtowc.m4: Likewise.
9984         * m4/mbsinit.m4: Likewise.
9985         * m4/mbsnrtowcs.m4: Likewise.
9986         * m4/mbsrtowcs.m4: Likewise.
9987         * m4/poll.m4: Likewise.
9988         * m4/setlocale.m4: Likewise.
9989         * m4/wcrtomb.m4: Likewise.
9990         * m4/wcsnrtombs.m4: Likewise.
9991         * m4/wcsrtombs.m4: Likewise.
9992         * m4/wctob.m4: Likewise.
9993         * m4/wcwidth.m4: Likewise.
9994         * modules/posix_spawn: Likewise.
9995         * modules/posix_spawn_file_actions_addclose: Likewise.
9996         * modules/posix_spawn_file_actions_adddup2: Likewise.
9997         * modules/posix_spawn_file_actions_addopen: Likewise.
9998         * modules/posix_spawn_file_actions_destroy: Likewise.
9999         * modules/posix_spawn_file_actions_init: Likewise.
10000         * modules/posix_spawnattr_destroy: Likewise.
10001         * modules/posix_spawnattr_getflags: Likewise.
10002         * modules/posix_spawnattr_getpgroup: Likewise.
10003         * modules/posix_spawnattr_getschedparam: Likewise.
10004         * modules/posix_spawnattr_getschedpolicy: Likewise.
10005         * modules/posix_spawnattr_getsigdefault: Likewise.
10006         * modules/posix_spawnattr_getsigmask: Likewise.
10007         * modules/posix_spawnattr_init: Likewise.
10008         * modules/posix_spawnattr_setflags: Likewise.
10009         * modules/posix_spawnattr_setpgroup: Likewise.
10010         * modules/posix_spawnattr_setschedparam: Likewise.
10011         * modules/posix_spawnattr_setschedpolicy: Likewise.
10012         * modules/posix_spawnattr_setsigdefault: Likewise.
10013         * modules/posix_spawnattr_setsigmask: Likewise.
10014         * modules/posix_spawnp: Likewise.
10015
10016 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10017
10018         Add option to do-release-commit-and-tag to specify branch.
10019         * build-aux/do-release-commit-and-tag: Add --branch.
10020
10021 2011-05-03  Bruno Haible  <bruno@clisp.org>
10022
10023         Avoid unnecessary compilation units, through conditional dependencies.
10024         * modules/accept (Depends-on): Add conditions to the dependencies.
10025         * modules/acosl (Depends-on): Likewise.
10026         * modules/argz (Depends-on): Likewise.
10027         * modules/asinl (Depends-on): Likewise.
10028         * modules/atanl (Depends-on): Likewise.
10029         * modules/atoll (Depends-on): Likewise.
10030         * modules/bind (Depends-on): Likewise.
10031         * modules/btowc (Depends-on): Likewise.
10032         * modules/canonicalize-lgpl (Depends-on): Likewise.
10033         * modules/ceil (Depends-on): Likewise.
10034         * modules/ceilf (Depends-on): Likewise.
10035         * modules/ceill (Depends-on): Likewise.
10036         * modules/chdir-long (Depends-on): Likewise.
10037         * modules/chown (Depends-on): Likewise.
10038         * modules/close (Depends-on): Likewise.
10039         * modules/connect (Depends-on): Likewise.
10040         * modules/cosl (Depends-on): Likewise.
10041         * modules/dirfd (Depends-on): Likewise.
10042         * modules/dprintf (Depends-on): Likewise.
10043         * modules/dprintf-posix (Depends-on): Likewise.
10044         * modules/error (Depends-on): Likewise.
10045         * modules/euidaccess (Depends-on): Likewise.
10046         * modules/expl (Depends-on): Likewise.
10047         * modules/faccessat (Depends-on): Likewise.
10048         * modules/fchdir (Depends-on): Likewise.
10049         * modules/fclose (Depends-on): Likewise.
10050         * modules/fcntl (Depends-on): Likewise.
10051         * modules/fdopendir (Depends-on): Likewise.
10052         * modules/fflush (Depends-on): Likewise.
10053         * modules/floor (Depends-on): Likewise.
10054         * modules/floorf (Depends-on): Likewise.
10055         * modules/floorl (Depends-on): Likewise.
10056         * modules/fnmatch (Depends-on): Likewise.
10057         * modules/fopen (Depends-on): Likewise.
10058         * modules/fprintf-posix (Depends-on): Likewise.
10059         * modules/frexp (Depends-on): Likewise.
10060         * modules/frexp-nolibm (Depends-on): Likewise.
10061         * modules/frexpl (Depends-on): Likewise.
10062         * modules/frexpl-nolibm (Depends-on): Likewise.
10063         * modules/fseek (Depends-on): Likewise.
10064         * modules/fsusage (Depends-on): Likewise.
10065         * modules/ftell (Depends-on): Likewise.
10066         * modules/ftello (Depends-on): Likewise.
10067         * modules/futimens (Depends-on): Likewise.
10068         * modules/getcwd (Depends-on): Likewise.
10069         * modules/getcwd-lgpl (Depends-on): Likewise.
10070         * modules/getdelim (Depends-on): Likewise.
10071         * modules/getdomainname (Depends-on): Likewise.
10072         * modules/getgroups (Depends-on): Likewise.
10073         * modules/gethostname (Depends-on): Likewise.
10074         * modules/getline (Depends-on): Likewise.
10075         * modules/getlogin_r (Depends-on): Likewise.
10076         * modules/getopt-posix (Depends-on): Likewise.
10077         * modules/getpeername (Depends-on): Likewise.
10078         * modules/getsockname (Depends-on): Likewise.
10079         * modules/getsockopt (Depends-on): Likewise.
10080         * modules/getsubopt (Depends-on): Likewise.
10081         * modules/getusershell (Depends-on): Likewise.
10082         * modules/glob (Depends-on): Likewise.
10083         * modules/grantpt (Depends-on): Likewise.
10084         * modules/iconv_open (Depends-on): Likewise.
10085         * modules/iconv_open-utf (Depends-on): Likewise.
10086         * modules/inet_ntop (Depends-on): Likewise.
10087         * modules/inet_pton (Depends-on): Likewise.
10088         * modules/ioctl (Depends-on): Likewise.
10089         * modules/isapipe (Depends-on): Likewise.
10090         * modules/isfinite (Depends-on): Likewise.
10091         * modules/isinf (Depends-on): Likewise.
10092         * modules/lchown (Depends-on): Likewise.
10093         * modules/ldexpl (Depends-on): Likewise.
10094         * modules/link (Depends-on): Likewise.
10095         * modules/linkat (Depends-on): Likewise.
10096         * modules/listen (Depends-on): Likewise.
10097         * modules/logl (Depends-on): Likewise.
10098         * modules/lstat (Depends-on): Likewise.
10099         * modules/mbrlen (Depends-on): Likewise.
10100         * modules/mbrtowc (Depends-on): Likewise.
10101         * modules/mbsinit (Depends-on): Likewise.
10102         * modules/mbsnrtowcs (Depends-on): Likewise.
10103         * modules/mbsrtowcs (Depends-on): Likewise.
10104         * modules/mbtowc (Depends-on): Likewise.
10105         * modules/memcmp (Depends-on): Likewise.
10106         * modules/mkdir (Depends-on): Likewise.
10107         * modules/mkdtemp (Depends-on): Likewise.
10108         * modules/mkfifo (Depends-on): Likewise.
10109         * modules/mkfifoat (Depends-on): Likewise.
10110         * modules/mknod (Depends-on): Likewise.
10111         * modules/mkostemp (Depends-on): Likewise.
10112         * modules/mkostemps (Depends-on): Likewise.
10113         * modules/mkstemp (Depends-on): Likewise.
10114         * modules/mkstemps (Depends-on): Likewise.
10115         * modules/mktime (Depends-on): Likewise.
10116         * modules/nanosleep (Depends-on): Likewise.
10117         * modules/open (Depends-on): Likewise.
10118         * modules/openat (Depends-on): Likewise.
10119         * modules/perror (Depends-on): Likewise.
10120         * modules/poll (Depends-on): Likewise.
10121         * modules/popen (Depends-on): Likewise.
10122         * modules/posix_spawn (Depends-on): Likewise.
10123         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10124         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10125         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10126         * modules/posix_spawnp (Depends-on): Likewise.
10127         * modules/pread (Depends-on): Likewise.
10128         * modules/printf-posix (Depends-on): Likewise.
10129         * modules/ptsname (Depends-on): Likewise.
10130         * modules/putenv (Depends-on): Likewise.
10131         * modules/pwrite (Depends-on): Likewise.
10132         * modules/readline (Depends-on): Likewise.
10133         * modules/readlink (Depends-on): Likewise.
10134         * modules/readlinkat (Depends-on): Likewise.
10135         * modules/recv (Depends-on): Likewise.
10136         * modules/recvfrom (Depends-on): Likewise.
10137         * modules/regex (Depends-on): Likewise.
10138         * modules/remove (Depends-on): Likewise.
10139         * modules/rename (Depends-on): Likewise.
10140         * modules/renameat (Depends-on): Likewise.
10141         * modules/rmdir (Depends-on): Likewise.
10142         * modules/round (Depends-on): Likewise.
10143         * modules/roundf (Depends-on): Likewise.
10144         * modules/roundl (Depends-on): Likewise.
10145         * modules/rpmatch (Depends-on): Likewise.
10146         * modules/select (Depends-on): Likewise.
10147         * modules/send (Depends-on): Likewise.
10148         * modules/sendto (Depends-on): Likewise.
10149         * modules/setenv (Depends-on): Likewise.
10150         * modules/setlocale (Depends-on): Likewise.
10151         * modules/setsockopt (Depends-on): Likewise.
10152         * modules/shutdown (Depends-on): Likewise.
10153         * modules/sigaction (Depends-on): Likewise.
10154         * modules/signbit (Depends-on): Likewise.
10155         * modules/sigprocmask (Depends-on): Likewise.
10156         * modules/sinl (Depends-on): Likewise.
10157         * modules/sleep (Depends-on): Likewise.
10158         * modules/snprintf (Depends-on): Likewise.
10159         * modules/snprintf-posix (Depends-on): Likewise.
10160         * modules/socket (Depends-on): Likewise.
10161         * modules/sprintf-posix (Depends-on): Likewise.
10162         * modules/sqrtl (Depends-on): Likewise.
10163         * modules/stat (Depends-on): Likewise.
10164         * modules/strchrnul (Depends-on): Likewise.
10165         * modules/strdup-posix (Depends-on): Likewise.
10166         * modules/strerror (Depends-on): Likewise.
10167         * modules/strerror_r-posix (Depends-on): Likewise.
10168         * modules/strndup (Depends-on): Likewise.
10169         * modules/strnlen (Depends-on): Likewise.
10170         * modules/strptime (Depends-on): Likewise.
10171         * modules/strsep (Depends-on): Likewise.
10172         * modules/strsignal (Depends-on): Likewise.
10173         * modules/strstr-simple (Depends-on): Likewise.
10174         * modules/strtod (Depends-on): Likewise.
10175         * modules/strtoimax (Depends-on): Likewise.
10176         * modules/strtok_r (Depends-on): Likewise.
10177         * modules/strtoumax (Depends-on): Likewise.
10178         * modules/symlink (Depends-on): Likewise.
10179         * modules/symlinkat (Depends-on): Likewise.
10180         * modules/tanl (Depends-on): Likewise.
10181         * modules/tcgetsid (Depends-on): Likewise.
10182         * modules/tmpfile (Depends-on): Likewise.
10183         * modules/trunc (Depends-on): Likewise.
10184         * modules/truncf (Depends-on): Likewise.
10185         * modules/truncl (Depends-on): Likewise.
10186         * modules/uname (Depends-on): Likewise.
10187         * modules/unlink (Depends-on): Likewise.
10188         * modules/unlockpt (Depends-on): Likewise.
10189         * modules/unsetenv (Depends-on): Likewise.
10190         * modules/usleep (Depends-on): Likewise.
10191         * modules/utimensat (Depends-on): Likewise.
10192         * modules/vasprintf (Depends-on): Likewise.
10193         * modules/vdprintf (Depends-on): Likewise.
10194         * modules/vdprintf-posix (Depends-on): Likewise.
10195         * modules/vfprintf-posix (Depends-on): Likewise.
10196         * modules/vprintf-posix (Depends-on): Likewise.
10197         * modules/vsnprintf (Depends-on): Likewise.
10198         * modules/vsnprintf-posix (Depends-on): Likewise.
10199         * modules/vsprintf-posix (Depends-on): Likewise.
10200         * modules/wcrtomb (Depends-on): Likewise.
10201         * modules/wcscasecmp (Depends-on): Likewise.
10202         * modules/wcscspn (Depends-on): Likewise.
10203         * modules/wcsdup (Depends-on): Likewise.
10204         * modules/wcsncasecmp (Depends-on): Likewise.
10205         * modules/wcsnrtombs (Depends-on): Likewise.
10206         * modules/wcspbrk (Depends-on): Likewise.
10207         * modules/wcsrtombs (Depends-on): Likewise.
10208         * modules/wcsspn (Depends-on): Likewise.
10209         * modules/wcsstr (Depends-on): Likewise.
10210         * modules/wcstok (Depends-on): Likewise.
10211         * modules/wcswidth (Depends-on): Likewise.
10212         * modules/wctob (Depends-on): Likewise.
10213         * modules/wctomb (Depends-on): Likewise.
10214         * modules/wctype (Depends-on): Likewise.
10215         * modules/wcwidth (Depends-on): Likewise.
10216         * modules/write (Depends-on): Likewise.
10217
10218 2011-05-03  Bruno Haible  <bruno@clisp.org>
10219
10220         Support for conditional dependencies.
10221         * doc/gnulib.texi (Module description): Document the syntax of
10222         conditional dependencies.
10223         * gnulib-tool: New option --conditional-dependencies.
10224         (func_usage): Document it.
10225         (cond_dependencies): New variable.
10226         (func_get_automake_snippet_conditional,
10227         func_get_automake_snippet_unconditional): New functions, extracted from
10228         func_get_automake_snippet.
10229         (func_get_automake_snippet): Use them.
10230         (sed_first_32_chars): New variable.
10231         (func_module_shellfunc_name): New function.
10232         (func_module_shellvar_name): New function.
10233         (func_module_conditional_name): New function.
10234         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10235         func_cond_module_condition): New functions.
10236         (func_modules_transitive_closure): Add support for conditional
10237         dependencies.
10238         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10239         conditional automake snippet in an automake conditional.
10240         (func_emit_autoconf_snippets): Emit shell functions that contain the
10241         code for conditional modules.
10242         (func_import, func_create_testdir): Update specification.
10243
10244 2011-05-03  Eric Blake  <eblake@redhat.com>
10245
10246         test-getaddrinfo: report error information
10247         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10248
10249 2011-05-03  Jim Meyering  <meyering@redhat.com>
10250
10251         bootstrap: avoid build failure when $GZIP is set
10252         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10253         program name.  If defined at all, it is supposed to list gzip options.
10254         Reported by Alan Curry in http://debbugs.gnu.org/8609
10255
10256 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10257
10258         readme-release: new module with release instructions
10259         * modules/readme-release: New module.
10260         * top/README-release: New file, from coreutils, grep, diffutils.
10261         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10262
10263 2011-05-02  Eric Blake  <eblake@redhat.com>
10264
10265         fflush: also replace fclose when fixing fflush
10266         * modules/fflush (Depends-on): Add fclose.
10267         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10268         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10269         memstreams with no backing fd.
10270         * doc/posix-functions/fclose.texi (fclose): Document the use of
10271         fflush module to fix the bug.
10272         * tests/test-fclose.c (main): Relax test when fclose is used in
10273         isolation.
10274
10275         fclose: add some tests
10276         * modules/fclose-tests: New test module.
10277         * tests/test-fclose.c: New file.
10278         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10279
10280         fclose: reduced dependencies
10281         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10282         simpler lseek.
10283         * lib/fclose.c (rpl_fclose): Likewise.
10284         Reported by Simon Josefsson.
10285
10286         exit: drop remaining clients
10287         * modules/argmatch (Depends-on): Replace exit with stdlib.
10288         * modules/copy-file (Depends-on): Likewise.
10289         * modules/execute (Depends-on): Likewise.
10290         * modules/exitfail (Depends-on): Likewise.
10291         * modules/obstack (Depends-on): Likewise.
10292         * modules/pagealign_alloc (Depends-on): Likewise.
10293         * modules/pipe-filter-gi (Depends-on): Likewise.
10294         * modules/pipe-filter-ii (Depends-on): Likewise.
10295         * modules/savewd (Depends-on): Likewise.
10296         * modules/spawn-pipe (Depends-on): Likewise.
10297         * modules/wait-process (Depends-on): Likewise.
10298         * modules/xsetenv (Depends-on): Likewise.
10299         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10300         * modules/git-merge-changelog (Depends-on): Likewise.
10301         * modules/long-options (Depends-on): Likewise.
10302         * modules/pt_chown (Depends-on): Likewise.
10303         * modules/sysexits (Depends-on): Likewise.
10304
10305         freading: relax license from LGPLv3+ to LGPLv2+
10306         * modules/freading (License): Relax LGPL version.
10307
10308 2011-05-02  Bruno Haible  <bruno@clisp.org>
10309
10310         fchdir: Remove unused dependencies.
10311         * modules/fchdir (Depends-on): Remove include_next.
10312
10313 2011-05-02  Bruno Haible  <bruno@clisp.org>
10314
10315         gnulib-tool: Refactor.
10316         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10317         from func_emit_autoconf_snippets.
10318         (func_emit_autoconf_snippets): Use it.
10319
10320 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10321
10322         * NEWS: Document removal of 'exit'.
10323         * modules/exit: Remove file.
10324
10325 2011-05-01  Bruno Haible  <bruno@clisp.org>
10326
10327         Update DEPENDENCIES.
10328         * DEPENDENCIES (gettext): Recommend the newest release.
10329         Reported by Simon Josefsson.
10330
10331 2011-05-01  Bruno Haible  <bruno@clisp.org>
10332
10333         gnulib-tool: Reduce code duplication.
10334         * gnulib-tool (func_emit_autoconf_snippets): New function.
10335         (func_import, func_create_testdir): Use it.
10336
10337 2011-04-30  Eric Blake  <eblake@redhat.com>
10338
10339         fclose: don't fail on non-seekable input stream
10340         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10341         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10342         since fflush is allowed to fail in that case.
10343
10344 2011-04-30  Bruno Haible  <bruno@clisp.org>
10345
10346         dup3: cleanup
10347         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10348
10349 2011-04-30  Bruno Haible  <bruno@clisp.org>
10350
10351         netdb: Make it work in C++ mode.
10352         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10353         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10354         module.
10355         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10356         gl_MODULE_INDICATOR_FOR_TESTS.
10357         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10358         * modules/netdb-c++-tests: New file.
10359         * tests/test-netdb-c++.cc: New file.
10360
10361 2011-04-30  Bruno Haible  <bruno@clisp.org>
10362
10363         New modules 'vfscanf', 'vscanf'.
10364         * modules/vfscanf: New file.
10365         * modules/vscanf: New file.
10366         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10367         here.
10368         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10369         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10370
10371 2011-04-30  Bruno Haible  <bruno@clisp.org>
10372
10373         passfd: Add comments.
10374         * lib/passfd.c: Add comments about platforms.
10375
10376 2011-04-30  Bruno Haible  <bruno@clisp.org>
10377
10378         sys_uio: Make <sys/uio.h> self-contained.
10379         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10380         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10381
10382 2011-04-30  Bruno Haible  <bruno@clisp.org>
10383
10384         sys_socket: Ensure 'struct iovec' definition.
10385         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10386         <sys/socket.h>.
10387         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10388
10389 2011-04-30  Bruno Haible  <bruno@clisp.org>
10390
10391         sys_uio: Protect definition of 'struct iovec'.
10392         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10393         it as a C struct.
10394
10395 2011-04-30  Bruno Haible  <bruno@clisp.org>
10396
10397         manywarnings: fix indentation
10398         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10399
10400 2011-04-30  Pádraig Brady <P@draigBrady.com>
10401
10402         manywarnings: add -Wno-missing-field-initializers if needed.
10403         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10404         option if it's needed to allow initialization with { 0, }
10405
10406 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10407
10408         announce-gen: cosmetic improvement
10409         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10410
10411 2011-04-29  Jim Meyering  <meyering@redhat.com>
10412
10413         vc-list-files: indent with spaces, not TABs
10414         * build-aux/vc-list-files: Convert leading TABs to spaces,
10415         to match the style of most other files in gnulib.
10416
10417         announce-gen: indent with spaces, not TABs
10418         * build-aux/announce-gen: Convert all TABs to spaces, to match
10419         the style of most other files in gnulib.
10420
10421 2011-04-29  Eric Blake  <eblake@redhat.com>
10422
10423         quotearg: avoid uninitialized variable use
10424         * lib/quotearg.c (quoting_options_from_style): Initialize
10425         remaining fields, and ensure that custom styles are only used via
10426         quoting_options rather than quoting_style.
10427
10428 2011-04-29  Jim Meyering  <meyering@redhat.com>
10429
10430         maint.mk: remove unused VC-tag variable
10431         * top/maint.mk (VC-tag): Remove unused variable.
10432
10433 2011-04-29  Bruno Haible  <bruno@clisp.org>
10434
10435         netdb: fix gai_strerror replacements
10436         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10437         * modules/netdb: Substitute it.
10438
10439 2011-04-29  Jim Meyering  <meyering@redhat.com>
10440
10441         test-getcwd.c: avoid new set-but-not-used warning
10442         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10443         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10444         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10445         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10446
10447         test-hash.c: avoid a new shadowing warning
10448         * tests/test-hash.c (main): Don't shadow "dup".
10449
10450 2011-04-28  Eric Blake  <eblake@redhat.com>
10451
10452         getaddrinfo: fix gai_strerror signature
10453         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10454         and work around mingw with UNICODE defined.
10455         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10456         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10457         * modules/netdb (Makefile.am): Substitute it.
10458         * lib/netdb.in.h (gai_strerror): Declare replacement.
10459         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10460         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10461         the fix.
10462
10463         getsockopt: avoid compiler warning
10464         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10465         Reported by Matthias Bolte.
10466
10467         tests: drop unused link dependency
10468         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10469         * modules/dirent-safer-tests (Makefile.am): Likewise.
10470         * modules/fdopendir-tests (Makefile.am): Likewise.
10471         * modules/mkfifoat-tests (Makefile.am): Likewise.
10472         * modules/openat-safer-tests (Makefile.am): Likewise.
10473         * modules/openat-tests (Makefile.am): Likewise.
10474         * modules/readlinkat-tests (Makefile.am): Likewise.
10475         * modules/symlinkat-tests (Makefile.am): Likewise.
10476         * modules/linkat-tests (Makefile.am): Likewise.
10477         (Depends-on): Switch to filenamecat-lgpl.
10478         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10479         LIBINTL.
10480         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10481         * tests/test-linkat.c (main): Don't require xalloc.
10482
10483         hash, mgetgroups: drop xalloc dependency
10484         * lib/hash.c (includes): Adjust includes.
10485         * lib/mgetgroups.c (includes): Likewise.
10486         (xgetgroups): Move...
10487         * lib/xgetgroups.c: ...to new file.
10488         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10489         * modules/xgetgroups: New file, split from...
10490         * modules/mgetgroups: ...here.
10491         (Depends-on): Add xalloc-oversized.
10492         * modules/hash (Depends-on): Likewise.
10493         * modules/hash-tests (Depends-on): Drop xalloc.
10494         (test_hash_LDADD): Drop unused library.
10495         * tests/test-hash.c (main): Break xalloc dependency.
10496         (includes): Drop unused include.
10497
10498         xalloc-oversized: new module
10499         * modules/xalloc-oversized: New module.
10500         * modules/xalloc (Depends-on): Add it.
10501         * lib/xalloc.h (xalloc_oversized): Move...
10502         * lib/xalloc-oversized.h: ...into new file.
10503
10504         utimecmp: drop dependency on xmalloc
10505         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10506         due to memory pressure.
10507         * modules/utimecmp (Depends-on): Drop xalloc.
10508
10509 2011-04-27  Eric Blake  <eblake@redhat.com>
10510
10511         getcwd: fix mingw bugs
10512         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10513         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10514         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10515
10516 2011-04-27  Bruno Haible  <bruno@clisp.org>
10517
10518         mkstemps: Ensure declaration on MacOS X 10.5.
10519         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10520         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10521         MacOS X.
10522
10523 2011-04-27  Bruno Haible  <bruno@clisp.org>
10524
10525         mkstemp: More documentation.
10526         * doc/posix-functions/mkstemp.texi: Document header file problem on
10527         MacOS X.
10528
10529 2011-04-27  Bruno Haible  <bruno@clisp.org>
10530
10531         mkstemp: Tweak configure message when cross-compiling.
10532         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10533         result as a guess.
10534
10535 2011-04-27  Bruno Haible  <bruno@clisp.org>
10536
10537         clean-temp: Clarify what it does.
10538         * lib/clean-temp.h: Add more comments.
10539         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10540         module.
10541         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10542         * doc/glibc-functions/mkstemps.texi: Likewise.
10543         * doc/glibc-functions/mkostemps.texi: Likewise.
10544
10545 2011-04-27  Eric Blake  <eblake@redhat.com>
10546
10547         fchdir: avoid extra chdir and fix test
10548         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10549         getcwd-lgpl.
10550         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10551         have to be canonical.
10552         (canonicalize_file_name): Drop unused macro.
10553         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10554
10555         filenamecat-lgpl: fix licence
10556         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10557         when it was first created.
10558
10559         linkat, renameat: add missing dependency
10560         * modules/linkat (Depends-on): Require getcwd-lgpl.
10561         * modules/renameat (Depends-on): Likewise.
10562
10563         tests: reduce dependencies
10564         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10565         * tests/test-renameat.c (main): Likewise.
10566         * modules/linkat-tests (Depends-on): Relax dependency.
10567         * modules/renameat-tests (Depends-on): Likewise.
10568         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10569         dependency explicit.
10570
10571         save-cwd: reduce default dependency
10572         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10573         * lib/save-cwd.c: Update comments.
10574         * NEWS: Document the semantic change.
10575
10576         getcwd: enhance tests
10577         * tests/test-getcwd-lgpl.c: New file, taken from...
10578         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10579         repeat long path stress tests from m4 probe.
10580         * modules/getcwd-lgpl-tests: New module.
10581         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10582         * m4/getcwd-abort-bug.m4: Update comment.
10583         * m4/getcwd-path-max.m4: Likewise.
10584
10585         getcwd-lgpl: new module
10586         * modules/getcwd-lgpl: New module.
10587         * lib/getcwd-lgpl.c: New file.
10588         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10589         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10590         * modules/getcwd (configure.ac): Set C witness.
10591         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10592
10593         getcwd: tweak comments
10594         * m4/getcwd-abort-bug.m4: Fix comments.
10595         * m4/getcwd-path-max.m4: Likewise.
10596         * m4/getcwd.m4: Likewise.
10597
10598 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10599         and Eric Blake  <eblake@redhat.com>
10600
10601         mkstemp: replace if system version uses wrong permissions
10602         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10603         read/write mode bits set in file created by mkstemp.
10604         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10605
10606 2011-04-27  Eric Blake  <eblake@redhat.com>
10607
10608         passfd: avoid compiler warning
10609         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10610         Reported by Laine Stump.
10611
10612 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10613
10614         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10615         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10616
10617 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10618         and Eric Blake  <eblake@redhat.com>
10619
10620         mkstemp: mention clean-temp module
10621         * lib/mkstemp.c: Add comment.
10622         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10623
10624 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10625
10626         inttypes: also provide default values for 32-bit tests
10627         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10628         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10629
10630 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10631
10632         strtoumax: remove dependency on strtoimax
10633         This is like the strtoull change of yesterday.
10634         * modules/strtoumax (Files): Add lib/strtoimax.c.
10635         (Depends-on): Remove strtoimax and add verify.
10636
10637         inttypes-incomplete: new module
10638         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10639         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10640         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10641         of gl_INTTYPES_H.
10642         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10643         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10644         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10645         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10646         * modules/strtoumax, modules/xstrtol (Depends-on):
10647         Depend on inttypes-incomplete, not inttypes.
10648         * modules/inttypes-incomplete: New module, containing the contents
10649         of the old modules/inttypes module, except that the Files: section
10650         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10651         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10652         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10653         (Depends-on): Depend only on inttypes-incomplete.
10654         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10655
10656         inttypes: omit now-redundant strtoimax and strtoumax work
10657         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10658         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10659
10660         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10661         This supports apps that need pointers to strtoimax and strtoumax,
10662         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10663         nonexistent functions.  See
10664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10665         et seq.
10666         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10667         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10668         a macro.
10669         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10670
10671 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10672
10673         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10674
10675 2011-04-25  Bruno Haible  <bruno@clisp.org>
10676
10677         strtol, strtoul: Mark modules as obsolete.
10678         * modules/strtol (Status, Notice): New sections.
10679         * modules/strtoul (Status, Notice): New sections.
10680
10681 2011-04-25  Bruno Haible  <bruno@clisp.org>
10682
10683         strtod: Remove check for strtod, unless supporting old platforms.
10684         * modules/strtod-obsolete: New file.
10685         * m4/strtod-obsolete.m4: New file.
10686         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10687         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10688         * modules/strtod (Depends-on): Add strtod-obsolete.
10689         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10690
10691 2011-04-25  Bruno Haible  <bruno@clisp.org>
10692
10693         strcase: Make module obsolete.
10694         * modules/strcase (Status, Notice): New sections.
10695
10696 2011-04-25  Bruno Haible  <bruno@clisp.org>
10697
10698         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10699         * modules/dup2-obsolete: New file.
10700         * m4/dup2-obsolete.m4: New file.
10701         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10702         gl_FUNC_DUP2_OBSOLETE is not also defined.
10703         * modules/dup2 (Depends-on): Add dup2-obsolete.
10704         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10705
10706 2011-04-25  Bruno Haible  <bruno@clisp.org>
10707
10708         strnlen: Avoid memchr related link error on old obsolete platforms.
10709         * modules/memchr-obsolete: New file.
10710         * m4/memchr-obsolete.m4: New file.
10711         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10712         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10713         * modules/memchr (Depends-on): Add memchr-obsolete.
10714         * modules/strnlen (Depends-on): Likewise.
10715         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10716
10717 2011-04-25  Jim Meyering  <meyering@redhat.com>
10718
10719         maint.mk: makefile_at_at_check extend and clean up
10720         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10721         in addition to */Makefile.am.
10722         Exempt legitimate uses of @VAR@ notation, e.g.,
10723         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10724         Remove obsolete coreutils-specific comment.
10725         Prompted by discussion here:
10726         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10727
10728 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10729
10730         strtoul: remove dependency on strtol
10731         This is so that 'configure' need not check for strtol merely because
10732         the application needs strtoul.
10733         * modules/strtoul (Files): Add lib/strtol.c.
10734         (Depends-on): Remove strtol.
10735
10736         strtoull: remove dependency on strtoul
10737         This is like the strtoll change.
10738         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10739         (Depends-on): Remove strtoul.
10740
10741         strtoll: remove dependency on strtol
10742         This is so that 'configure' need not check for strtol merely because
10743         the application needs strtoll.
10744         * modules/strtoll (Files): Add lib/strtol.c.
10745         (Depends-on): Remove strtol.
10746
10747 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10748
10749         inttypes: Move some configure check to module 'imaxdiv'.
10750         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10751         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10752         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10753
10754 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10755
10756         inttypes: Move some configure check to module 'imaxabs'.
10757         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10758         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10759         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10760
10761 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10762
10763         inttypes: Remove configure tests that are not needed since 2009-12-31.
10764         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10765         gl_cv_header_working_inttypes_h.
10766
10767 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10768
10769         * modules/strnlen (Depends-on): Remove memchr.
10770         The strnlen implementation doesn't need the memchr module's fixes; see
10771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10772
10773         strtol: remove dependency on wchar
10774         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10775         * modules/strtol (Depends-on): Remove wchar.
10776
10777 2011-04-21  Eric Blake  <eblake@redhat.com>
10778
10779         passfd: fix test regression on Linux
10780         * modules/passfd-tests (configure.ac): Correct socketpair check.
10781
10782         passfd: speed up configure and drop unused code
10783         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10784         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10785         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10786         Instead of probing at configure for unix_scm_rights_bsd44_way,
10787         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10788         check to a struct member probe.
10789         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10790         (sendfd, recvfd): Update preprocessor checks.
10791         * modules/passfd (Files): Reflect rename, and drop unused file.
10792         (Depends-on): Drop unused dependency.
10793
10794         passfd: allow compilation on mingw
10795         * modules/sys_socket (Depends-on): Add sys_uio.
10796         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10797         iovec and a minimal struct msghdr.
10798         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10799         * tests/test-sys_socket.c (main): Enhance test.
10800         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10801         guaranteed to provide what we need.
10802         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10803         * modules/passfd-tests (Depends-on): Add sys_wait.
10804         * tests/test-passfd.c (main): Skip test on mingw, for now.
10805         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10806         partial 'struct msghdr' implementation.
10807
10808         sys_uio: new module
10809         * modules/sys_uio: New module.
10810         * modules/sys_uio-tests: Likewise.
10811         * lib/sys_uio.in.h: New file.
10812         * m4/sys_uio_h.m4: Likewise.
10813         * tests/test-sys_uio.c: Likewise.
10814         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10815         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10816
10817 2011-04-20  Jim Meyering  <meyering@redhat.com>
10818
10819         useless-if-before-free: avoid false-positive
10820         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10821         disjunct so that it too requires a terminating ";".  Without that,
10822         this script would identify as useless one statement from gcc that
10823         was not:
10824           if (aligned_ptr)
10825             free (((void **) aligned_ptr) [-1]);
10826
10827 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10828
10829         doc: update users.txt.
10830         * users.txt: Add barcode.
10831
10832 2011-04-19  Bruno Haible  <bruno@clisp.org>
10833
10834         ioctl: Remove link dependency on native Windows.
10835         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10836         (gl_close_fn, gl_ioctl_fn): New types.
10837         (struct fd_hook): Renamed from struct close_hook. Change type of
10838         private_close_fn field. Add private_ioctl_fn field.
10839         (close_hook_fn): Add parameter for primary close method.
10840         (execute_close_hooks, execute_all_close_hooks): Likewise.
10841         (ioctl_hook_fn): New type.
10842         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10843         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10844         argument.
10845         (unregister_fd_hook): Renamed from unregister_close_hook.
10846         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10847         Don't include <unistd.h>.
10848         (close): Remove undef.
10849         (anchor): Update.
10850         (execute_close_hooks): Add argument for primary close method.
10851         (execute_all_close_hooks): Likewise.
10852         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10853         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10854         argument. Allow each argument to be NULL.
10855         (unregister_fd_hook): Renamed from unregister_close_hook.
10856         * lib/close.c (rpl_close): Pass 'close' function pointer to
10857         execute_all_close_hooks.
10858         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10859         (primary_ioctl): New function.
10860         (ioctl): Don't call ioctlsocket here. Instead, call
10861         execute_all_ioctl_hooks.
10862         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10863         close method.
10864         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10865         (fd_sockets_hook): Renamed from close_sockets_hook.
10866         (gl_sockets_startup, gl_sockets_cleanup): Update.
10867         * modules/fd-hook: Renamed from modules/close-hook. Update.
10868         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10869         * modules/sockets (Depends-on): Likewise.
10870         * modules/ioctl (Depends-on): Add fd-hook.
10871         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10872         GNULIB_SOCKET.
10873
10874 2011-04-19  Bruno Haible  <bruno@clisp.org>
10875
10876         Move the support of O_NONBLOCK in open() to the 'open' module.
10877         * modules/nonblocking (Depends-on): Remove 'open'.
10878         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10879         gl_cv_have_open_O_NONBLOCK.
10880         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10881         O_NONBLOCK support.
10882         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10883
10884 2011-04-17  Bruno Haible  <bruno@clisp.org>
10885
10886         pipe2: Simplify code.
10887         * lib/pipe2.c (pipe2): Reduce code duplication.
10888
10889 2011-04-17  Bruno Haible  <bruno@clisp.org>
10890
10891         nonblocking: Add comment.
10892         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10893
10894 2011-04-17  Bruno Haible  <bruno@clisp.org>
10895
10896         nonblocking: Add tests for sockets.
10897         * tests/test-nonblocking-socket.sh: New file.
10898         * tests/test-nonblocking-socket-main.c: New file.
10899         * tests/test-nonblocking-socket-child.c: New file.
10900         * tests/test-nonblocking-socket.h: New file.
10901         * tests/socket-server.h: New file.
10902         * tests/socket-client.h: New file.
10903         * modules/nonblocking-socket-tests: New file.
10904         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10905
10906 2011-04-17  Bruno Haible  <bruno@clisp.org>
10907
10908         nonblocking: Add tests for pipes.
10909         * tests/test-nonblocking-pipe.sh: New file.
10910         * tests/test-nonblocking-pipe-main.c: New file.
10911         * tests/test-nonblocking-pipe-child.c: New file.
10912         * tests/test-nonblocking-pipe.h: New file.
10913         * tests/test-nonblocking-writer.h: New file.
10914         * tests/test-nonblocking-reader.h: New file.
10915         * tests/test-nonblocking-misc.h: New file.
10916         * modules/nonblocking-pipe-tests: New file.
10917         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10918
10919 2011-04-16  Bruno Haible  <bruno@clisp.org>
10920
10921         gettext: Clarify the needed programmer actions.
10922         * modules/gettext (Notice): New field.
10923         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10924
10925 2011-04-16  Bruno Haible  <bruno@clisp.org>
10926
10927         strchrnul: Tweak last commit.
10928         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10929         bug.
10930         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10931         as in _GL_FUNCDECL_SYS.
10932         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10933         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10934
10935 2011-04-15  Eric Blake  <eblake@redhat.com>
10936
10937         strchrnul: work around cygwin bug
10938         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10939         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10941         * modules/string (Makefile.am): Substitute it.
10942         * lib/string.in.h (strchrnul): Use it.
10943
10944 2011-04-15  Bruno Haible  <bruno@clisp.org>
10945
10946         Don't require lib/stdio-write.c when only module 'stdio' is used.
10947         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10948         invocation.
10949         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10950
10951 2011-04-14  Bruno Haible  <bruno@clisp.org>
10952
10953         Support non-blocking pipe I/O in read() on native Windows.
10954         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10955         (read): New declaration.
10956         * lib/read.c: New file.
10957         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10958         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10959         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10960         vscanf): New declarations.
10961         * lib/stdio-read.c: New file.
10962         * m4/read.m4: New file.
10963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10964         REPLACE_READ.
10965         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10966         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10967         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10968         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10969         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10970         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10971         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10972         * modules/read: New file.
10973         * modules/nonblocking (Files): Add lib/stdio-read.c.
10974         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10975         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10976         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10977         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10978         * modules/pread (Depends-on): Add read.
10979         * modules/safe-read (Depends-on): Likewise.
10980         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10981         gets, scanf, vfscanf, vscanf): Verify signatures.
10982         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10983         problem with non-blocking pipes.
10984         * doc/posix-functions/fgetc.texi: Likewise.
10985         * doc/posix-functions/fgets.texi: Likewise.
10986         * doc/posix-functions/fread.texi: Likewise.
10987         * doc/posix-functions/fscanf.texi: Likewise.
10988         * doc/posix-functions/getc.texi: Likewise.
10989         * doc/posix-functions/getchar.texi: Likewise.
10990         * doc/posix-functions/gets.texi: Likewise.
10991         * doc/posix-functions/scanf.texi: Likewise.
10992         * doc/posix-functions/vfscanf.texi: Likewise.
10993         * doc/posix-functions/vscanf.texi: Likewise.
10994
10995 2011-04-14  Bruno Haible  <bruno@clisp.org>
10996
10997         Support non-blocking pipe I/O in write() on native Windows.
10998         * lib/write.c (rpl_write): Split a write request that failed merely
10999         because the byte count was larger than the pipe buffer's size.
11000         * doc/posix-functions/write.texi: Mention the problem with large byte
11001         counts.
11002
11003 2011-04-14  Bruno Haible  <bruno@clisp.org>
11004
11005         wchar: Ensure that wchar_t gets defined on uClibc.
11006         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11007         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11008
11009 2011-04-13  Bruno Haible  <bruno@clisp.org>
11010
11011         safe-write, full-read: Avoid unnecessary compilation units.
11012         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11013         (Depends-on): Remove safe-read. Add ssize_t.
11014         * modules/full-read (Files): Add lib/full-write.c.
11015         (Depends-on): Add full-write.
11016
11017 2011-04-13  Bruno Haible  <bruno@clisp.org>
11018
11019         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11020         * modules/pwrite (Depends-on): Add 'write'.
11021
11022 2011-04-13  Bruno Haible  <bruno@clisp.org>
11023
11024         Support non-blocking pipe I/O in write() on native Windows.
11025         * lib/unistd.in.h (write): Enable replacement also if
11026         GNULIB_UNISTD_H_NONBLOCKING is 1.
11027         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11028         (rpl_write): When failing to write on a non-blocking pipe, change
11029         errno from ENOSPC to EAGAIN.
11030         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11031         putchar, puts, vfprintf, vprintf): Enable replacement also if
11032         GNULIB_STDIO_H_NONBLOCKING is 1.
11033         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11034         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11035         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11036         CALL_WITH_SIGPIPE_EMULATION.
11037         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11038         * m4/nonblocking.m4: New file.
11039         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11040         for non-blocking I/O support.
11041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11042         GNULIB_UNISTD_H_NONBLOCKING.
11043         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11044         required for non-blocking I/O support.
11045         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11046         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11047         lib/stdio-write.c, m4/asm-underscore.m4.
11048         (Depends-on): Add stdio, unistd.
11049         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11050         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11051         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11052         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11053         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11054         problem with non-blocking pipes.
11055         * doc/posix-functions/fputc.texi: Likewise.
11056         * doc/posix-functions/fputs.texi: Likewise.
11057         * doc/posix-functions/fwrite.texi: Likewise.
11058         * doc/posix-functions/printf.texi: Likewise.
11059         * doc/posix-functions/putc.texi: Likewise.
11060         * doc/posix-functions/putchar.texi: Likewise.
11061         * doc/posix-functions/puts.texi: Likewise.
11062         * doc/posix-functions/vfprintf.texi: Likewise.
11063         * doc/posix-functions/vprintf.texi: Likewise.
11064         * doc/posix-functions/write.texi: Likewise.
11065
11066 2011-04-10  Jim Meyering  <meyering@redhat.com>
11067
11068         maint.mk: prohibit doubled words
11069         Detect them also when they're separated by a newline.
11070         There are 3 ways to customize it:
11071           - disable the test on a per file basis, as usual with rules using
11072             $(VC_LIST_EXCEPT)
11073           - replace the default doubled-word-selecting regexp (affects all files)
11074           - ignore a particular file-vs-doubled-word match
11075         I nearly used that last one to ignore the "is is" match in
11076         coreutils' NEWS file, since the text was "ls -is is ..."
11077         To do that, I would have added this line to cfg.mk:
11078           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11079         but it would have ignored any "is is" match in NEWS.
11080         Low probability, but still...
11081         Instead, I changed the text, slightly:
11082           -  ls -is is now consistent with ls -lis in ignoring values returned
11083           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11084         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11085         (prohibit_doubled_word_): Define.
11086         (sc_prohibit_doubled_word): New rule.
11087         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11088
11089 2011-04-10  Jim Meyering  <meyering@redhat.com>
11090
11091         maint: fix doubled-word typo in comment
11092         * m4/gethostname.m4: s/is is/it is/
11093         * m4/getdomainname.m4: Likewise.
11094
11095 2011-04-10  Jim Meyering  <meyering@redhat.com>
11096
11097         maint: remove doubled word: s/it it/it/
11098         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11099
11100 2011-04-10  Jim Meyering  <meyering@redhat.com>
11101
11102         maint.mk: remove useless semicolon and backslash
11103         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11104         semicolon and backslash.
11105
11106 2011-04-10  Bruno Haible  <bruno@clisp.org>
11107
11108         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11109         * modules/stdint-tests (Depends-on): Add wchar.
11110
11111 2011-04-10  Jim Meyering  <meyering@redhat.com>
11112
11113         maint: remove doubled words in comments, e.g., s/a a/a/
11114         * lib/strptime.c (day_of_the_week): s/the the/the/
11115         * tests/test-chown.h (test_chown): s/a a/a/
11116
11117         test-chown.h: correct a cast
11118         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11119         when the destination is a stat.st_gid.
11120
11121 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11122
11123         getaddrinfo: Fix test for sa_len member.
11124         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11125         include <sys/types.h> before <sys/socket.h>.
11126
11127 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11128
11129         maint: change "can not" to "cannot"
11130         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11131         boundaries.
11132
11133 2011-04-09  Jim Meyering  <meyering@redhat.com>
11134
11135         maint: change "a a" to "a"
11136         * tests/test-lchown.h (test_lchown): s/a a/a/
11137
11138         maint.mk: prohibit \<the the\>
11139         * top/maint.mk (sc_prohibit_the_the): New rule.
11140
11141         maint: fix "the the" in comment
11142         * lib/count-one-bits.h: s/the the/the/
11143
11144         maint: change "can not" to "cannot"
11145         But do not change the occurrences in maintain.texi or in
11146         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11147         * doc/gnulib-tool.texi: s/can not/cannot/
11148         * doc/posix-functions/accept.texi (accept): Likewise.
11149         * doc/posix-functions/socket.texi (socket): Likewise.
11150         * lib/mbrtowc.c: Likewise.
11151
11152         maint.mk: prohibit use of "can not"
11153         * top/maint.mk (sc_prohibit_can_not): New rule.
11154         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11155
11156 2011-04-09  Bruno Haible  <bruno@clisp.org>
11157
11158         careadlinkat: Guard against misuse of careadlinkatcwd.
11159         * lib/careadlinkat.c: Include <stdlib.h>.
11160         (careadlinkatcwd): Check that the fd argument is as expected.
11161
11162 2011-04-09  Bruno Haible  <bruno@clisp.org>
11163
11164         careadlinkat: Use common coding style.
11165         * lib/careadlinkat.c: Move gnulib includes after system includes.
11166
11167 2011-04-09  Bruno Haible  <bruno@clisp.org>
11168
11169         careadlinkat: Clarify specification.
11170         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11171         (careadlinkatcwd): Add comment.
11172         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11173
11174 2011-04-09  Bruno Haible  <bruno@clisp.org>
11175
11176         areadlinkat: Avoid link error on many platforms.
11177         * modules/areadlinkat (Depends-on): Add areadlink.
11178
11179 2011-04-09  Bruno Haible  <bruno@clisp.org>
11180
11181         allocator, careadlinkat: Fix double-inclusion guard.
11182         * lib/allocator.h: Fix double-inclusion guard.
11183         * lib/careadlinkat.h: Likewise.
11184
11185 2011-04-09  Bruno Haible  <bruno@clisp.org>
11186
11187         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11188         * lib/relocwrapper.c: Update dependencies hierarchy.
11189         * build-aux/install-reloc: Update list of files to be compiled.
11190         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11191         lib/allocator.[hc].
11192
11193 2011-04-08  Eric Blake  <eblake@redhat.com>
11194
11195         strftime: silence gnulib-tool warning
11196         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11197
11198 2011-04-08  Bruno Haible  <bruno@clisp.org>
11199
11200         verify: Fix syntax error with GCC 4.6 in C++ mode.
11201         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11202         (HAVE_STATIC_ASSERT): New macro.
11203         (verify_true, verify): Use 'static_assert' if it is supported and
11204         '_Static_assert' is not supported.
11205
11206 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11207
11208         allocator: New module.
11209         * modules/allocator, lib/allocator.c: New files.
11210         * lib/allocator.h (stdlib_allocator): New decl.
11211         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11212         Remove.  Do not include <stdlib.h>.
11213         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11214         * modules/careadlinkat (Files): Remove lib/allocator.h.
11215         (Depends-on): Add allocator.
11216
11217         stdlib: let modules use system malloc, realloc
11218         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11219         if !_GL_USE_STDLIB_ALLOC.
11220         (malloc, realloc): Limit this change to a smaller scope.
11221
11222         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11223         (malloc, realloc): Don't #undef; no longer needed.
11224         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11225         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11226         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11227         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11228         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11229         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11230         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11231         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11232
11233         careadlinkat: rename members to avoid problem
11234         * lib/allocator.h (struct allocator): Rename members from
11235         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11236         and realloc are #define'd.  Reported by Eric Blake in
11237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11238         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11239
11240 2011-04-08  Eric Blake  <eblake@redhat.com>
11241
11242         nonblocking: reduce dependency
11243         * tests/test-nonblocking.c: Only test sockets when in use.
11244         * modules/nonblocking-tests (Depends-on): Drop socket.
11245         (Makefile.am): Link even if sockets are not present.
11246         * modules/pipe2-tests (Makefile.am): Likewise.
11247         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11248
11249         pipe2: fix O_NONBLOCK support on mingw
11250         * modules/pipe2 (Depends-on): Add nonblocking.
11251         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11252         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11253         * tests/test-nonblocking.c (main): Likewise.
11254         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11255
11256         fcntl-h: fix O_ACCMODE on cygwin
11257         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11258         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11259
11260         pipe-filter: drop O_NONBLOCK workarounds
11261         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11262         * modules/pipe-filter-ii (Depends-on): Likewise.
11263         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11264
11265         nonblocking: provide O_NONBLOCK for mingw
11266         * modules/nonblocking (Depends-on): Add open.
11267         (configure.ac): Set new witness macro.
11268         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11269         * modules/fcntl-h (Makefile.am): Substitute it.
11270         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11271         nonblocking module is in use.
11272         * lib/nonblocking.c: Adjust portability test.
11273         * lib/open.c (open): Don't let native open see gnulib flag.
11274         * tests/test-fcntl-h.c (main): Enhance test.
11275         * tests/test-open.h (test_open): Likewise.
11276         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11277
11278         careadlinkat: fix compilation error on mingw
11279         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11280         within struct allocator.
11281
11282 2011-04-06  Eric Blake  <eblake@redhat.com>
11283
11284         binary-io: relicense under LGPLv2+
11285         * modules/binary-io (License): Relax to LGPLv2+.
11286         Requested for libvirt, and required by pipe2.
11287
11288 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11289
11290         verify: use _Static_assert if available
11291         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11292         (verify_true, verify): Use it if available.  This generates better
11293         diagnostics with GCC 4.6.0 and later.
11294
11295 2011-04-05  Bruno Haible  <bruno@clisp.org>
11296
11297         Remove leftover generated .h files after config.status changed.
11298
11299         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11300         GL_GENERATE_ALLOCA_H.
11301         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11302         GL_GENERATE_ALLOCA_H evaluates to false.
11303
11304         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11305         GL_GENERATE_ARGZ_H.
11306         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11307         evaluates to false.
11308
11309         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11310         GL_GENERATE_BYTESWAP_H.
11311         * modules/byteswap (Makefile.am): Remove byteswap.h if
11312         GL_GENERATE_BYTESWAP_H evaluates to false.
11313
11314         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11315         GL_GENERATE_ERRNO_H.
11316         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11317         evaluates to false.
11318
11319         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11320         GL_GENERATE_FLOAT_H.
11321         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11322         evaluates to false.
11323
11324         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11325         GL_GENERATE_FNMATCH_H.
11326         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11327         GL_GENERATE_FNMATCH_H evaluates to false.
11328
11329         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11330         GL_GENERATE_GLOB_H.
11331         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11332         evaluates to false.
11333
11334         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11335         automake conditional GL_GENERATE_ICONV_H.
11336         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11337         evaluates to false.
11338
11339         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11340         GL_GENERATE_NETINET_IN_H.
11341         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11342         GL_GENERATE_NETINET_IN_H evaluates to false.
11343
11344         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11345         conditional GL_GENERATE_PTHREAD_H.
11346         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11347         * modules/pthread (Makefile.am): Remove pthread.h if
11348         GL_GENERATE_PTHREAD_H evaluates to false.
11349
11350         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11351         GL_GENERATE_SCHED_H.
11352         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11353         evaluates to false.
11354
11355         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11356         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11357         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11358         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11359
11360         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11361         GL_GENERATE_STDARG_H.
11362         * modules/stdarg (Makefile.am): Remove stdarg.h if
11363         GL_GENERATE_STDARG_H evaluates to false.
11364
11365         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11366         GL_GENERATE_STDBOOL_H.
11367         * modules/stdbool (Makefile.am): Remove stdbool.h if
11368         GL_GENERATE_STDBOOL_H evaluates to false.
11369
11370         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11371         conditional GL_GENERATE_STDDEF_H.
11372         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11373         * modules/stddef (Makefile.am): Remove stddef.h if
11374         GL_GENERATE_STDDEF_H evaluates to false.
11375
11376         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11377         GL_GENERATE_STDINT_H.
11378         * modules/stdint (Makefile.am): Remove stdint.h if
11379         GL_GENERATE_STDINT_H evaluates to false.
11380
11381         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11382         GL_GENERATE_SYSEXITS_H.
11383         * modules/sysexits (Makefile.am): Remove sysexits.h if
11384         GL_GENERATE_SYSEXITS_H evaluates to false.
11385
11386         Reported by Karl Berry and Ralf Wildenhues.
11387
11388 2011-04-05  Bruno Haible  <bruno@clisp.org>
11389
11390         Ensure to rebuild generated .h files when config.status has changed.
11391         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11392         config.status.
11393         * modules/ctype (Makefile.am): Likewise.
11394         * modules/dirent (Makefile.am): Likewise.
11395         * modules/errno (Makefile.am): Likewise.
11396         * modules/fcntl-h (Makefile.am): Likewise.
11397         * modules/float (Makefile.am): Likewise.
11398         * modules/getopt-posix (Makefile.am): Likewise.
11399         * modules/glob (Makefile.am): Likewise.
11400         * modules/iconv-h (Makefile.am): Likewise.
11401         * modules/inttypes (Makefile.am): Likewise.
11402         * modules/langinfo (Makefile.am): Likewise.
11403         * modules/locale (Makefile.am): Likewise.
11404         * modules/math (Makefile.am): Likewise.
11405         * modules/netdb (Makefile.am): Likewise.
11406         * modules/netinet_in (Makefile.am): Likewise.
11407         * modules/poll-h (Makefile.am): Likewise.
11408         * modules/pthread (Makefile.am): Likewise.
11409         * modules/pty (Makefile.am): Likewise.
11410         * modules/sched (Makefile.am): Likewise.
11411         * modules/search (Makefile.am): Likewise.
11412         * modules/selinux-h (Makefile.am): Likewise.
11413         * modules/signal (Makefile.am): Likewise.
11414         * modules/spawn (Makefile.am): Likewise.
11415         * modules/stdarg (Makefile.am): Likewise.
11416         * modules/stdbool (Makefile.am): Likewise.
11417         * modules/stddef (Makefile.am): Likewise.
11418         * modules/stdint (Makefile.am): Likewise.
11419         * modules/stdio (Makefile.am): Likewise.
11420         * modules/stdlib (Makefile.am): Likewise.
11421         * modules/string (Makefile.am): Likewise.
11422         * modules/strings (Makefile.am): Likewise.
11423         * modules/sys_file (Makefile.am): Likewise.
11424         * modules/sys_ioctl (Makefile.am): Likewise.
11425         * modules/sys_select (Makefile.am): Likewise.
11426         * modules/sys_socket (Makefile.am): Likewise.
11427         * modules/sys_stat (Makefile.am): Likewise.
11428         * modules/sys_time (Makefile.am): Likewise.
11429         * modules/sys_times (Makefile.am): Likewise.
11430         * modules/sys_utsname (Makefile.am): Likewise.
11431         * modules/sys_wait (Makefile.am): Likewise.
11432         * modules/sysexits (Makefile.am): Likewise.
11433         * modules/termios (Makefile.am): Likewise.
11434         * modules/time (Makefile.am): Likewise.
11435         * modules/unistd (Makefile.am): Likewise.
11436         * modules/wchar (Makefile.am): Likewise.
11437         * modules/wctype-h (Makefile.am): Likewise.
11438         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11439
11440 2011-04-05  Bruno Haible  <bruno@clisp.org>
11441
11442         pipe2: Relicense under LGPLv2+.
11443         * modules/pipe2 (License): Change to LGPLv2+.
11444         Requested by Eric Blake, for libvirt.
11445
11446 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11447
11448         bootstrap: compute gnulib_extra_files after updating build_aux
11449         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11450         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11451
11452 2011-04-05  Eric Blake  <eblake@redhat.com>
11453
11454         bootstrap: preserve git whitelist item sorting
11455         * build-aux/bootstrap (sort_patterns): New function.
11456         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11457
11458 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11459
11460         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11461         sc_space_tab check.
11462
11463 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11464
11465         areadlink, areadlinkat: rewrite in terms of careadlinkat
11466         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11467         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11468         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11469         (malloc, realloc): Remove #undefs.
11470         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11471         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11472         readlink, ssize_t, stdint, unistd.
11473         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11474         areadlink, stdint.
11475
11476         careadlinkat: new module
11477         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11478         * modules/careadlinkat: New files, written by me with
11479         a review and feedback from Ben Pfaff in
11480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11481
11482 2011-04-01  Bruno Haible  <bruno@clisp.org>
11483
11484         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11485         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11486         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11487         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11488         Reported by Bruce Korb <bruce.korb@gmail.com>.
11489
11490 2011-04-01  Bruno Haible  <bruno@clisp.org>
11491
11492         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11493         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11494         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11495         * modules/wcpcpy (Depends-on): Add extensions.
11496         * modules/wcpncpy (Depends-on): Likewise.
11497         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11498         systems.
11499         * doc/posix-functions/wcpncpy.texi: Likewise.
11500         * doc/posix-functions/wcwidth.texi: Likewise.
11501
11502 2011-03-31  Eric Blake  <eblake@redhat.com>
11503
11504         nonblocking: fix mingw test failures
11505         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11506         non-blocking flag on regular file.
11507         (get_nonblocking_flag): Set errno on invalid fd.
11508         * tests/test-nonblocking.c (main): Avoid test failure on
11509         directories if fchdir is not active.
11510         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11511
11512 2011-03-31  Bruno Haible  <bruno@clisp.org>
11513
11514         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11515         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11516         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11517         Reported by Simon Josefsson <simon@josefsson.org>.
11518
11519 2011-03-31  Bruno Haible  <bruno@clisp.org>
11520         and Eric Blake  <eblake@redhat.com>
11521
11522         nonblocking: new module
11523         * modules/nonblocking: New module.
11524         * modules/nonblocking-tests: Likewise.
11525         * lib/nonblocking.h: New file.
11526         * lib/nonblocking.c: Likewise.
11527         * tests/test-nonblocking.c: New test.
11528         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11529
11530 2011-03-30  Bruno Haible  <bruno@clisp.org>
11531
11532         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11533         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11534         instead of 'printf' format for GCC >= 4.4.
11535         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11536         (fprintf, printf, vfprintf, vprintf): Declare with
11537         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11538         the system's vfprintf() function.
11539         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11540
11541 2011-03-30  Eric Blake  <eblake@redhat.com>
11542
11543         passfd: fix scoping bug
11544         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11545         before sendmsg/recvmsg.
11546
11547         passfd: standardize coding conventions
11548         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11549         can be learned at compile time.
11550         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11551         ifdefs.
11552         (sendfd, recvfd): Follow gnulib code conventions.
11553
11554         passfd: fix incorrect sendmsg arguments
11555         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11556         incorrect msg_controllen value.
11557         * modules/passfd-tests (Depends-on): Check for alarm.
11558         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11559         Reported by Bastien ROUCARIES.
11560
11561 2011-03-30  Bruno Haible  <bruno@clisp.org>
11562
11563         c-strcasestr: Relicense under LGPLv2+.
11564         * modules/c-strcasestr (License): Change to LGPLv2+.
11565         Requested by Eric Blake, for libvirt.
11566
11567 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11568
11569         * users.txt: Add libidn2.  Fix libtasn1 link.
11570
11571 2011-03-30  Jim Meyering  <meyering@redhat.com>
11572
11573         tests: readlink* ("",... fails with EINVAL on newer kernels
11574         readlink and readlinkat have typically failed with ENOENT for
11575         the invalid, empty file name,  "".  However, with the advent
11576         of linux-2.6.39, they fail with EINVAL.
11577         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11578         when operating on the empty file name.
11579         * tests/test-readlink.h (test_readlink): Likewise.
11580
11581 2011-03-29  Bruno Haible  <bruno@clisp.org>
11582
11583         Relicense some modules under LGPLv2+, for libidn2.
11584         * modules/array-mergesort (License): Change to LGPLv2+.
11585         * modules/c-strcaseeq (License): Likewise.
11586         * modules/striconveh (License): Likewise.
11587         * modules/striconveha (License): Likewise.
11588         * modules/uniconv/base (License): Likewise.
11589         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11590         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11591         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11592         * modules/unictype/base (License): Likewise.
11593         * modules/unictype/bidiclass-of (License): Likewise.
11594         * modules/unictype/category-M (License): Likewise.
11595         * modules/unictype/category-none (License): Likewise.
11596         * modules/unictype/category-of (License): Likewise.
11597         * modules/unictype/category-test (License): Likewise.
11598         * modules/unictype/category-test-withtable (License): Likewise.
11599         * modules/unictype/combining-class (License): Likewise.
11600         * modules/unictype/joiningtype-of (License): Likewise.
11601         * modules/unictype/scripts (License): Likewise.
11602         * modules/uninorm/base (License): Likewise.
11603         * modules/uninorm/canonical-decomposition (License): Likewise.
11604         * modules/uninorm/composition (License): Likewise.
11605         * modules/uninorm/decompose-internal (License): Likewise.
11606         * modules/uninorm/decomposition-table (License): Likewise.
11607         * modules/uninorm/nfc (License): Likewise.
11608         * modules/uninorm/nfd (License): Likewise.
11609         * modules/uninorm/u32-normalize (License): Likewise.
11610         * modules/unistr/base (License): Likewise.
11611         * modules/unistr/u32-cpy (License): Likewise.
11612         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11613         * modules/unistr/u32-to-u8 (License): Likewise.
11614         * modules/unistr/u32-uctomb (License): Likewise.
11615         * modules/unistr/u8-check (License): Likewise.
11616         * modules/unistr/u8-mblen (License): Likewise.
11617         * modules/unistr/u8-mbtouc (License): Likewise.
11618         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11619         * modules/unistr/u8-mbtoucr (License): Likewise.
11620         * modules/unistr/u8-prev (License): Likewise.
11621         * modules/unistr/u8-strlen (License): Likewise.
11622         * modules/unistr/u8-to-u32 (License): Likewise.
11623         * modules/unistr/u8-uctomb (License): Likewise.
11624         * modules/unitypes (License): Likewise.
11625         Requested by Simon Josefsson.
11626
11627 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11628
11629         lib-symbol-visibility: Add a notice.
11630         * modules/lib-symbol-visibility (Notice): New field.
11631
11632 2011-03-29  Bruno Haible  <bruno@clisp.org>
11633
11634         getaddrinfo: Doc fix.
11635         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11636         section "fixed in Gnulib".
11637
11638 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11639
11640         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11641         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11642
11643 2011-03-26  Bruno Haible  <bruno@clisp.org>
11644
11645         unictype/property-byname: Reduce the number of load-time relocations.
11646         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11647         (UC_PROPERTY_INDEX_*): New enumeration values.
11648         (uc_property_byname): Convert an index from the lookup table to an
11649         uc_property_t.
11650         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11651         values.
11652
11653 2011-03-26  Bruno Haible  <bruno@clisp.org>
11654
11655         unictype/property-byname: Allow omitted word separators and aliases.
11656         * lib/unictype/pr_byname.gperf: Add property names without word
11657         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11658         for 'space'.
11659
11660 2011-03-26  Bruno Haible  <bruno@clisp.org>
11661
11662         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11663         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11664         also hyphens to space.
11665         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11666         without spaces.
11667         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11668
11669 2011-03-26  Bruno Haible  <bruno@clisp.org>
11670
11671         unictype/joiningtype-byname: Recognize long names as well.
11672         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11673         a long name.
11674         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11675         unictype/joiningtype_byname.h.
11676         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11677         * lib/unictype/joiningtype_byname.gperf: New file.
11678         * modules/unictype/joiningtype-byname (Files): Add
11679         lib/unictype/joiningtype_byname.gperf.
11680         (Depends-on): Add gperf.
11681         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11682         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11683         long names.
11684
11685         Tests for module 'unictype/joiningtype-longname'.
11686         * modules/unictype/joiningtype-longname-tests: New file.
11687         * tests/unictype/test-joiningtype_longname.c: New file.
11688
11689         New module 'unictype/joiningtype-longname'.
11690         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11691         * lib/unictype/joiningtype_longname.c: New file.
11692         * modules/unictype/joiningtype-longname: New file.
11693         * modules/unictype/joiningtype-all (Depends-on): Add
11694         unictype/joiningtype-longname.
11695
11696 2011-03-26  Bruno Haible  <bruno@clisp.org>
11697
11698         unictype/bidiclass-byname: Recognize long names as well.
11699         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11700         name.
11701         * lib/unictype/bidi_byname.c: Include <string.h>,
11702         unictype/bidi_byname.h.
11703         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11704         * lib/unictype/bidi_byname.gperf: New file.
11705         * modules/unictype/bidiclass-byname (Files): Add
11706         lib/unictype/bidi_byname.gperf.
11707         (Depends-on): Add gperf.
11708         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11709         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11710         long names.
11711
11712         Tests for module 'unictype/bidiclass-longname'.
11713         * modules/unictype/bidiclass-longname-tests: New file.
11714         * tests/unictype/test-bidi_longname.c: New file.
11715
11716         New module 'unictype/bidiclass-longname'.
11717         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11718         * lib/unictype/bidi_longname.c: New file.
11719         * modules/unictype/bidiclass-longname: New file.
11720         * modules/unictype/bidiclass-all (Depends-on): Add
11721         unictype/bidiclass-longname.
11722
11723 2011-03-26  Bruno Haible  <bruno@clisp.org>
11724
11725         unictype/bidi*: Rename modules.
11726         * modules/unictype/bidiclass-all: Renamed from
11727         modules/unictype/bidicategory-all.
11728         * modules/unictype/bidiclass-name: Renamed from
11729         modules/unictype/bidiclass-name.
11730         (Description): Update.
11731         * modules/unictype/bidiclass-name-tests: Renamed from
11732         modules/unictype/bidicategory-name-tests.
11733         * modules/unictype/bidiclass-byname: Renamed from
11734         modules/unictype/bidicategory-byname.
11735         (Description): Update.
11736         * modules/unictype/bidiclass-byname-tests: Renamed from
11737         modules/unictype/bidicategory-byname-tests.
11738         * modules/unictype/bidiclass-of: Renamed from
11739         modules/unictype/bidicategory-of.
11740         (Description): Update.
11741         * modules/unictype/bidiclass-of-tests: Renamed from
11742         modules/unictype/bidicategory-of-tests.
11743         * modules/unictype/bidiclass-test: Renamed from
11744         modules/unictype/bidicategory-test.
11745         (Description): Update.
11746         * modules/unictype/bidiclass-test-tests: Renamed from
11747         modules/unictype/bidicategory-test-tests.
11748         * modules/unictype/bidicategory-all: New file, a simple redirection.
11749         * modules/unictype/bidicategory-name: Likewise.
11750         * modules/unictype/bidicategory-byname: Likewise.
11751         * modules/unictype/bidicategory-of: Likewise.
11752         * modules/unictype/bidicategory-test: Likewise.
11753         * modules/unictype/property-bidi-* (Dependencies): Update.
11754         * lib/unictype/bidi_*.c: Update comment.
11755
11756 2011-03-26  Bruno Haible  <bruno@clisp.org>
11757
11758         unictype/bidi*: Rename functions, part 2.
11759         * modules/unictype/bidicategory-name (configure.ac): Update required
11760         libunistring version.
11761         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11762
11763 2011-03-25  Bruno Haible  <bruno@clisp.org>
11764
11765         New module 'unictype/combining-class-all'.
11766         * modules/unictype/combining-class-all: New file.
11767
11768         Tests for module 'unictype/combining-class-byname'.
11769         * modules/unictype/combining-class-byname-tests: New file.
11770         * tests/unictype/test-combiningclass_byname.c: New file.
11771
11772         New module 'unictype/combining-class-byname'.
11773         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11774         * lib/unictype/combiningclass_byname.c: New file.
11775         * lib/unictype/combiningclass_byname.gperf: New file.
11776         * modules/unictype/combining-class-byname: New file.
11777
11778         Tests for module 'unictype/combining-class-longname'.
11779         * modules/unictype/combining-class-longname-tests: New file.
11780         * tests/unictype/test-combiningclass_longname.c: New file.
11781
11782         New module 'unictype/combining-class-longname'.
11783         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11784         * lib/unictype/combiningclass_longname.c: New file.
11785         * modules/unictype/combining-class-longname: New file.
11786
11787         Tests for module 'unictype/combining-class-name'.
11788         * modules/unictype/combining-class-name-tests: New file.
11789         * tests/unictype/test-combiningclass_name.c: New file.
11790
11791         New module 'unictype/combining-class-name'.
11792         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11793         * lib/unictype/combiningclass_name.c: New file.
11794         * modules/unictype/combining-class-name: New file.
11795
11796 2011-03-25  Bruno Haible  <bruno@clisp.org>
11797
11798         unictype/combining-class: Rename source files.
11799         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11800         of unictype/combining.h.
11801         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11802         Update.
11803         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11804         * modules/unictype/combining-class (Description): Fix.
11805         (Files, Makefile.am): Update.
11806         * tests/unictype/test-combiningclass.c: Renamed from
11807         tests/unictype/test-combining.c.
11808         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11809
11810 2011-03-25  Bruno Haible  <bruno@clisp.org>
11811
11812         unictype: Update list of canonical combining classes.
11813         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11814
11815 2011-03-25  Bruno Haible  <bruno@clisp.org>
11816
11817         unictype/category-byname: Recognize long names as well.
11818         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11819         a long name.
11820         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11821         unictype/categ_byname.h.
11822         (UC_CATEGORY_INDEX_*): New enumeration values.
11823         (uc_general_category_byname): Use uc_general_category_lookup and
11824         convert from index to value.
11825         * lib/unictype/categ_byname.gperf: New file.
11826         * modules/unictype/category-byname (Files): Add
11827         lib/unictype/categ_byname.gperf.
11828         (Depends-on): Add gperf.
11829         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11830         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11831         long names.
11832
11833         Tests for module 'unictype/category-longname'.
11834         * modules/unictype/category-longname-tests: New file.
11835         * tests/unictype/test-categ_longname.c: New file.
11836
11837         New module 'unictype/category-longname'.
11838         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11839         * lib/unictype/categ_longname.c: New file.
11840         * modules/unictype/category-longname: New file.
11841         * modules/unictype/category-all (Depends-on): Add it.
11842
11843 2011-03-25  Bruno Haible  <bruno@clisp.org>
11844
11845         Tests for module 'unictype/category-LC'.
11846         * modules/unictype/category-LC-tests: New file.
11847         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11848
11849         New module 'unictype/category-LC'.
11850         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11851         (UC_CATEGORY_LC): New declaration.
11852         (UC_CASED_LETTER): New macro.
11853         * lib/gen-uni-tables.c (is_category_LC): New function.
11854         (output_categories): Also handle category LC.
11855         (UC_CATEGORY_MASK_LC): New enumeration value.
11856         (general_category_byname): Also handle category LC.
11857         * lib/unictype/categ_LC.c: New file.
11858         * lib/unictype/categ_LC.h: New file, automatically generated.
11859         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11860         category LC.
11861         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11862         * modules/unictype/category-LC: New file.
11863         * modules/unictype/category-byname (Depends-on): Add
11864         unictype/category-LC.
11865         * modules/unictype/category-all (Depends-on): Likewise.
11866
11867 2011-03-25  Eric Blake  <eblake@redhat.com>
11868
11869         xmalloc: revert yesterday's regression
11870         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11871         realloc's underlying behavior (allowing allocation of zero-size
11872         objects, especially if malloc-gnu is also in use).
11873
11874 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11875
11876         maint.mk: add missing version to VC-tag
11877         * top/maint.mk: git tag was missing actual tag name; add it.
11878
11879         valgrind: do leak checking, and exit with code 1 on error (not 0)
11880         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11881         to VALGRIND.
11882
11883 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11884
11885         posix-modules: say what it does.
11886         * posix-modules: Add a line to the --help output saying what it does.
11887
11888 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11889
11890         xmalloc: Do not leak if underlying realloc is C99 compatible.
11891         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11892         This avoids a leak on C99-based systems.  See
11893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11894
11895 2011-03-24  Eric Blake  <eblake@redhat.com>
11896
11897         realloc: document portability problem
11898         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11899         passing 0 size to realloc.
11900
11901 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11902
11903         doc: update users.txt
11904         * users.txt: Add cvsps, tmpwatch
11905
11906 2011-03-23  Matt Rice  <ratmice@gmail.com>
11907
11908         doc: update users.txt
11909         * users.txt: Add gdb.
11910
11911 2011-03-23  Jim Meyering  <meyering@redhat.com>
11912
11913         doc: update users.txt
11914         Looking through matches up to the following URL (there are still
11915         several more pages), I found several projects that use gnulib:
11916         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11917         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11918         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11919
11920 2011-03-22  Bruno Haible  <bruno@clisp.org>
11921
11922         unictype/bidi*: Rename functions.
11923         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11924         uc_bidi_class, uc_is_bidi_class): New declarations.
11925         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11926         uc_bidi_category_byname.
11927         (uc_bidi_category_byname): New function.
11928         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11929         u_bidi_category_name.
11930         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11931         (uc_bidi_category_name): New function.
11932         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11933         uc_bidi_category.
11934         (uc_bidi_category): New function.
11935         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11936         uc_is_bidi_category. Invoke uc_bidi_class.
11937         (uc_is_bidi_category): New function.
11938         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11939         instead of uc_bidi_category_byname.
11940         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11941         instead of uc_bidi_category_name.
11942         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11943         uc_bidi_category.
11944         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11945         instead of uc_is_bidi_category.
11946
11947 2011-03-21  Bruno Haible  <bruno@clisp.org>
11948
11949         New module 'unictype/joininggroup-all'.
11950         * modules/unictype/joininggroup-all: New file.
11951
11952         Tests for module 'unictype/joininggroup-of'.
11953         * modules/unictype/joininggroup-of-tests: New file.
11954         * tests/unictype/test-joininggroup_of.c: New file.
11955         * tests/unictype/test-joininggroup_of.h: New file, automatically
11956         generated by gen-uni-tables.
11957
11958         New module 'unictype/joininggroup-of'.
11959         * modules/unictype/joininggroup-of: New file.
11960         * lib/unictype/joininggroup_of.c: New file.
11961         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11962         gen-uni-tables.
11963
11964         Tests for module 'unictype/joininggroup-byname'.
11965         * modules/unictype/joininggroup-byname-tests: New file.
11966         * tests/unictype/test-joininggroup_byname.c: New file.
11967
11968         New module 'unictype/joininggroup-byname'.
11969         * modules/unictype/joininggroup-byname: New file.
11970         * lib/unictype/joininggroup_byname.c: New file.
11971         * lib/unictype/joininggroup_byname.gperf: New file.
11972
11973         Tests for module 'unictype/joininggroup-name'.
11974         * modules/unictype/joininggroup-name-tests: New file.
11975         * tests/unictype/test-joininggroup_name.c: New file.
11976
11977         New module 'unictype/joininggroup-name'.
11978         * modules/unictype/joininggroup-name: New file.
11979         * lib/unictype/joininggroup_name.c: New file.
11980         * lib/unictype/joininggroup_name.h: New file.
11981
11982         New module 'unictype/joiningtype-all'.
11983         * modules/unictype/joiningtype-all: New file.
11984
11985         Tests for module 'unictype/joiningtype-of'.
11986         * modules/unictype/joiningtype-of-tests: New file.
11987         * tests/unictype/test-joiningtype_of.c: New file.
11988         * tests/unictype/test-joiningtype_of.h: New file, automatically
11989         generated by gen-uni-tables.
11990
11991         New module 'unictype/joiningtype-of'.
11992         * modules/unictype/joiningtype-of: New file.
11993         * lib/unictype/joiningtype_of.c: New file.
11994         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11995         gen-uni-tables.
11996
11997         Tests for module 'unictype/joiningtype-byname'.
11998         * modules/unictype/joiningtype-byname-tests: New file.
11999         * tests/unictype/test-joiningtype_byname.c: New file.
12000
12001         New module 'unictype/joiningtype-byname'.
12002         * modules/unictype/joiningtype-byname: New file.
12003         * lib/unictype/joiningtype_byname.c: New file.
12004
12005         Tests for module 'unictype/joiningtype-name'.
12006         * modules/unictype/joiningtype-name-tests: New file.
12007         * tests/unictype/test-joiningtype_name.c: New file.
12008
12009         New module 'unictype/joiningtype-name'.
12010         * modules/unictype/joiningtype-name: New file.
12011         * lib/unictype/joiningtype_name.c: New file.
12012
12013         unictype: Add support for Arabic shaping properties.
12014         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12015         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12016         declarations.
12017         (UC_JOINING_GROUP_*): New enumeration values.
12018         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12019         declarations.
12020         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12021         (unicode_joining_type): New variable.
12022         (UC_JOINING_GROUP_*): New enumeration values.
12023         (unicode_joining_group): New variable.
12024         (fill_arabicshaping, joining_type_as_c_identifier,
12025         output_joining_type_test, output_joining_type,
12026         joining_group_as_c_identifier, output_joining_group_test,
12027         output_joining_group): New functions.
12028         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12029         fill_arabicshaping and output_joining_type_test, output_joining_type,
12030         output_joining_group_test, output_joining_group.
12031         Reported by Simon Josefsson.
12032
12033 2011-03-21  Jim Meyering  <meyering@redhat.com>
12034
12035         strftime: fix a bug in yesterday's change
12036         * lib/strftime.c (add): Accommodate width's initial value of -1.
12037         Otherwise, nstrftime would copy uninitialized data into
12038         the result buffer.
12039
12040 2011-03-21  Jim Meyering  <meyering@redhat.com>
12041
12042         tests: add strftime-tests module
12043         * tests/test-strftime.c: New file.
12044         * modules/strftime-tests: New module.
12045
12046 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12047
12048         strftime: don't assume a byte count fits in 'int'
12049         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12050         found this problem by static analysis, using gcc -Wstrict-overflow
12051         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12052         on an integer overflow having undefined behavior, but it turns out
12053         that the argument is a size, which might not fit in 'int' anyway,
12054
12055 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12056
12057         stdio: don't require ignore_value around fwrite
12058
12059         This patch works around libc bug 11959
12060         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12061         Without this patch, applications must often write
12062         ignore_value (fwrite (...)) even though the ignore_value is
12063         not helpful here.  It's common to write many objects, using
12064         fwrite/printf/etc., and then use ferror to detect output error.
12065
12066         I considered making this patch optional, but decided against it,
12067         because libc is obviously being inconsistent here: there is no
12068         reason libc should insist that user code must inspect fwrite
12069         return's value without also insisting that it inspect printf's,
12070         putchar's, etc.  If user code wants to have a strict style where
12071         all these functions' values are checked (so that ferror need not
12072         be checked), we could add support for that style in a new gnulib
12073         module, but in the meantime it's better to be consistent and to
12074         support common usage.
12075
12076         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12077         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12078         that we are compiling in checking mode, and if not C++, and
12079         if not already wrapping fwrite for some other reason.
12080         (fwrite): #define to rpl_fwrite if the latter is defined.
12081
12082 2011-03-20  Bruno Haible  <bruno@clisp.org>
12083
12084         verror: Fix compilation error introduced on 2011-02-13.
12085         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12086         instead of __attribute__.
12087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12088
12089 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12090             Bruno Haible  <bruno@clisp.org>
12091
12092         socklen: do not depend on sys_socket
12093         While trying to modify Emacs to use gnulib's socklen module,
12094         I discovered a circular dependency: socklen depends on sys_socket
12095         and vice versa.  Emacs can use socklen, but it does not need
12096         sys_socket because it has its own substitute for sys/socket.h.
12097         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12098         gl_TYPE_SOCKLEN_T.
12099         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12100         gl_PREREQ_SYS_H_SOCKET.
12101         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12102         gl_PREREQ_SYS_H_SOCKET.
12103         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12104         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12105         * modules/socklen (Depends-on): Do not depend on sys_socket.
12106         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12107
12108 2011-03-20  Jim Meyering  <meyering@redhat.com>
12109
12110         maint.mk: sort file names *after* new transformation
12111         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12112         prefix would have led to an unwarranted failure in GNU parted.
12113         Sort after that transformation.
12114
12115 2011-03-19  Jim Meyering  <meyering@redhat.com>
12116
12117         maint.mk: fix po-file syntax-check rule
12118         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12119         Patch by Bruno Haible.
12120
12121 2011-03-19  Bruno Haible  <bruno@clisp.org>
12122
12123         socklen: Update comment.
12124         * m4/socklen.m4: Update comment about platforms.
12125
12126 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12127             Bruno Haible  <bruno@clisp.org>
12128
12129         inet_ntop, inet_pton: Simplify.
12130         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12131         documented to provide socklen_t and we already depend on sys_socket.
12132         * modules/inet_pton (Depends-on): Likewise.
12133         * lib/arpa_inet.in.h: Adjust comment.
12134
12135 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12136             Bruno Haible  <bruno@clisp.org>
12137
12138         netdb: Simplify.
12139         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12140         documented to provide socklen_t and we already depend on sys_socket.
12141         * lib/netdb.in.h: Adjust comment.
12142
12143 2011-03-19  Bruno Haible  <bruno@clisp.org>
12144
12145         sys_socket, netdb: Document problem with socklen_t.
12146         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12147         platforms.
12148         * doc/posix-headers/netdb.texi: Likewise.
12149
12150 2011-03-18  Eric Blake  <eblake@redhat.com>
12151
12152         maint.mk: let po check work in VPATH build
12153         * top/maint.mk (po_file): Allow cfg.mk override.
12154         (sc_po_check): Allow VPATH use.
12155         Reported by Jiri Denemark.
12156
12157 2011-03-16  Jim Meyering  <meyering@redhat.com>
12158
12159         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12160         Before, you would have had to create one .x-sc_ file per rule in order
12161         to exempt offending files.  Now, you may instead use a Make variable --
12162         usually defined in cfg.mk -- whose name identifies the affected rule.
12163         * top/maint.mk (_sc_excl): Define.
12164         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12165         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12166
12167 2011-03-13  Bruno Haible  <bruno@clisp.org>
12168
12169         ignore-value tests: Avoid warnings.
12170         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12171         empty for gcc < 3.4.
12172
12173 2011-03-13  Bruno Haible  <bruno@clisp.org>
12174
12175         passfd: Fix link error on Solaris.
12176         * modules/passfd (Description): Correct.
12177         (Depends-on): Add socketlib.
12178         (Link): New section.
12179         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12180
12181 2011-03-13  Bruno Haible  <bruno@clisp.org>
12182
12183         passfd: Fix link error on AIX 5.2.
12184         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12185
12186 2011-03-13  Bruno Haible  <bruno@clisp.org>
12187
12188         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12189         * lib/sys_socket.in.h: Include <stddef.h>.
12190         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12191         CMSG_FIRSTHDR. Remove unused variable.
12192
12193 2011-03-13  Bruno Haible  <bruno@clisp.org>
12194
12195         passfd: Fix compilation error on OpenBSD.
12196         * lib/passfd.c: Include <sys/uio.h>.
12197
12198 2011-03-13  Bruno Haible  <bruno@clisp.org>
12199
12200         passfd test: Fix warnings.
12201         * tests/test-passfd.c: Include <sys/wait.h>.
12202         (main): Fix typo.
12203
12204 2011-03-13  Bruno Haible  <bruno@clisp.org>
12205
12206         passfd module, part 4, tweaks.
12207         * tests/test-passfd.c: Reorder includes.
12208         (main): Fix perror and printf calls.
12209
12210 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12211
12212         passfd module, part 4.
12213         * modules/passfd-tests: New file.
12214         * tests/test-passfd.c: New file.
12215
12216 2011-03-13  Jim Meyering  <meyering@redhat.com>
12217
12218         Makefile: rely on GNU make; derive syntax-check rule names
12219         Rather than requiring that each sc_ rule be listed as a dependent
12220         of "check", use features of GNU make to derive the list.
12221         * Makefile (syntax-check-rules): Define.
12222         (check): Depend on the new variable, not the hard-coded list.
12223
12224 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12225             Bruno Haible  <bruno@clisp.org>
12226
12227         passfd module, part 3.
12228         * lib/passfd.h (recvfd): Add a flags argument.
12229         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12230         (recvfd): Add a flags argument.
12231         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12232         exists.
12233         * modules/passfd (Depends-on): Add cloexec.
12234         Suggested by Eric Blake.
12235
12236 2011-03-13  Bruno Haible  <bruno@clisp.org>
12237
12238         passfd module, part 2, tweaks.
12239         * modules/passfd (Files): Reorder.
12240         (Depends-on): Remove errno.
12241         (Include): Remove <sys/socket.h>, <sys/un.h>.
12242         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12243         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12244         specification header. Include <sys/socket.h> always. Don't include
12245         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12246         (sendfd): Clarify that it sets errno when it fails.
12247         (recvfd): Fix specification.
12248
12249 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12250
12251         passfd module, part 2.
12252         * modules/passfd: New file.
12253         * lib/passfd.h: New file.
12254         * lib/passfd.c: New file.
12255
12256 2011-03-12  Bruno Haible  <bruno@clisp.org>
12257
12258         wcswidth, mbswidth: Avoid integer overflow.
12259         * lib/wcswidth.c: Include <limits.h>.
12260         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12261         * lib/mbswidth.c: Include <limits.h>.
12262         (mbsnwidth): Avoid 'int' overflow.
12263         Reported by Jim Meyering.
12264
12265 2011-03-12  Bruno Haible  <bruno@clisp.org>
12266
12267         futimens, utimensat: Avoid endless recursion on Solaris 10.
12268         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12269         Solaris.
12270         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12271         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12272
12273 2011-03-11  Jim Meyering  <meyering@redhat.com>
12274
12275         maint.mk: relax a regexp to accommodate other formatting styles
12276         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12277         between "ngettext" and the following "(".
12278
12279 2011-03-11  Pádraig Brady <P@draigBrady.com>
12280
12281         maint.mk: suppress a false positive warning
12282         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12283         diagnostics are marked with ngettext.
12284
12285 2011-03-10  Eric Blake  <eblake@redhat.com>
12286
12287         wchar: add explicit dependencies, for Tru64
12288         * modules/mbmemcasecoll (Depends-on): Add wchar.
12289         * modules/mbtowc (Depends-on): Likewise.
12290         * modules/vasnprintf (Depends-on): Likewise.
12291         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12292         * modules/wctomb (Depends-on): Likewise.
12293         Reported by Peter O'Gorman.
12294
12295 2011-03-08  Bruno Haible  <bruno@clisp.org>
12296
12297         passfd module, part 1, tweaks.
12298         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12299         Improve indentation. Improve AC_MSG_CHECKING messages.
12300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12301         gl_SOCKET_FAMILIES.
12302
12303 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12304
12305         passfd module, part 1.
12306         * m4/afunix.m4: New file.
12307         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12308         sockets.
12309
12310 2011-03-08  Bruno Haible  <bruno@clisp.org>
12311
12312         regex-quote: New API.
12313         * lib/regex-quote.h: Include <stdbool.h>.
12314         (struct regex_quote_spec): New type.
12315         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12316         New declarations.
12317         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12318         'const struct regex_quote_spec *' argument.
12319         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12320         (pcre_special): New constant.
12321         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12322         New functions.
12323         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12324         'const struct regex_quote_spec *' argument.
12325         * modules/regex-quote (Depends-on): Add stdbool.
12326         * tests/test-regex-quote.c (check): Update for new API. Add test for
12327         anchored results.
12328         * NEWS: Mention the API change.
12329         Reported by Reuben Thomas and Eric Blake.
12330
12331 2011-03-06  Bruno Haible  <bruno@clisp.org>
12332
12333         regex-quote: Fix creation of POSIX extended regular expressions.
12334         * lib/regex-quote.c (ere_special): Add grouping and alternation
12335         operators.
12336
12337 2011-03-05  Bruno Haible  <bruno@clisp.org>
12338
12339         doc: Improve doc regarding autopoint vs. gnulib.
12340         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12341         disable autopoint while running autoreconf.
12342         Suggested by Ralf Wildenhues.
12343
12344 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12345
12346         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12347         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12348
12349 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12350
12351         parse-duration: remove xalloc.h dependency
12352         * lib/parse-duration.c (parse_period): handle NULL return from
12353         strdup instead of calling xstrdup().
12354         * modules/parse-duration: remove "xalloc" dependency
12355
12356 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12357
12358         bootstrap: honor m4_base when running aclocal
12359         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12360
12361 2011-03-02  Jim Meyering  <meyering@redhat.com>
12362
12363         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12364         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12365         on request from Matt Booth.
12366
12367 2011-03-01  Eric Blake  <eblake@redhat.com>
12368
12369         test-link: work on Hurd
12370         * tests/test-link.h (test_link): Hurd rejects linking directories
12371         with EISDIR instead of the POSIX-mandated EPERM.
12372
12373 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12374
12375         stdio: simplify by moving files to printf-posix, sigpipe
12376         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12377         since this symbol is needed only if printf is replaced.
12378         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12379         Require gl_ASM_SYMBOL_PREFIX.
12380         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12381         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12382         (Depends-on): Add 'raise'.
12383         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12384         * modules/stdio (Files): Remove lib/stdio-write.c,
12385         m4/asm-underscore.m4.
12386         (Depends-on): Remove 'raise'.
12387
12388         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12389         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12390         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12391         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12392
12393 2011-02-28  Bruno Haible  <bruno@clisp.org>
12394
12395         localcharset: Assume ANSI C behaviour of free().
12396         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12397         calling free().
12398         Suggested by Simon Josefsson <simon@josefsson.org>.
12399
12400 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12401             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12402             Bruno Haible  <bruno@clisp.org>  (tiny change)
12403
12404         On Cygwin, use /proc file system instead of win32 API.
12405         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12406         Win32 file names.
12407         (DllMain): Simplify by removing Cygwin specific code.
12408         (find_shared_library_fullname): Use Linux specific implementation also
12409         for Cygwin.
12410         (get_shared_library_fullname): Update accordingly.
12411         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12412         Win32 file names.
12413         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12414         Cygwin specific code.
12415
12416 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12417             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12418
12419         Fix OpenMP flag detection for various Fortran compilers.
12420         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12421         OpenMP-conditional compilation construct, to force compile
12422         failure with missing OpenMP flag.
12423         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12424
12425 2011-02-25  Eric Blake  <eblake@redhat.com>
12426
12427         strstr: expand test coverage
12428         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12429         compilation.
12430         * tests/test-memmem.c (main): Duplicate tests.
12431         * tests/test-strcasestr.c (main): Likewise.
12432         * tests/test-c-strcasestr.c (main): Likewise.
12433
12434 2011-02-25  Jim Meyering  <meyering@redhat.com>
12435
12436         maint.mk: detect missing-NL-at-EOF, too
12437         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12438         it also detects when a file lacks a newline at EOF.
12439         (require_exactly_one_NL_at_EOF_): Renamed from
12440         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12441         since people may well have .x-sc_... file names tied to the
12442         existing name.  Suggested by Eric Blake.
12443
12444 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12445
12446         dirname: move m4/dos.m4 functionality into lib/dosname.h
12447
12448         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12449         extracts symbols from it, puts them into config.h; but it's much
12450         easier to use the symbols directly.  filename.h already does this,
12451         but it disagrees with dos.m4 in some respects.  This patch
12452         introduces a different include file dosname.h that packages up
12453         dos.m4, and then later we can work on merging filename.h and
12454         dosname.h.  Applications that need only the easy-to-configure
12455         symbols should consider including dosname.h rather than dirname.h.
12456         * NEWS: Mention incompatible changes.
12457         * m4/dos.m4: Remove.
12458         * lib/dosname.h, modules/dosname: New files.
12459         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12460         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12461         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12462         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12463         Include dosname.h, not dirname.h.
12464         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12465         Include dosname.h, for definitions of symbols like ISSLASH
12466         that used to be in config.h.
12467         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12468         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12469         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12470         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12471         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12472         * modules/rmdir (Files): Likewise.
12473         * modules/stat (Files): Likewise.
12474         * modules/unlink (Files): Likewise.
12475         * modules/dirname-lgpl (Depends-on): Add dosname.
12476         * modules/lstat (Depends-on): Likewise.
12477         * modules/openat (Depends-on): Likewise.
12478         * modules/rmdir (Depends-on): Likewise.
12479         * modules/savewd (Depends-on): Likewise.
12480         * modules/stat (Depends-on): Likewise.
12481         * modules/unlink (Depends-on): Likewise.
12482         * modules/openat (Depends-on): Remove dirname-lgpl.
12483         * modules/savewd (Depends-on): Likewise.
12484         * tests/test-dirname.c: Do not use removed symbols like
12485         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12486         the remaining symbols, e.g., ISSLASH ('\\').
12487
12488 2011-02-25  Eric Blake  <eblake@redhat.com>
12489
12490         strstr: revert patches that introduced bug and pessimization
12491         * lib/str-two-way.h: Add another reference.
12492         (two_way_short_needle, two_way_long_needle): Revert changes from
12493         2011-02-24; they pessimize search speed.
12494         (critical_factorization): Partially revert changes from
12495         2010-06-22; they violate the requirement that the left half of the
12496         needle be smaller than the period of the needle.
12497
12498 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12499
12500         filenamecat: remove unnecessary dependency on dirname-lgpl
12501         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12502         is no direct dependency, just an indirect one via filenamecat-lgpl.
12503
12504         remove: remove unnecessary use of m4/dos.m4
12505         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12506         * modules/remove (FILES): Remove m4/dos.m4.
12507
12508         * lib/openat-proc.c: Don't include dirname.h; not needed.
12509
12510         backupfile: remove unnecessary use of m4/dos.m4
12511         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12512         of its symbols are used by the backupfile code.  backupfile.c does
12513         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12514         for the rare case of programs that want all their backup file
12515         names to live within 8+3 limits, and dos.m4 doesn't address that.
12516         * modules/backupfile (Files): Remove m4/dos.m4.
12517
12518 2011-02-24  Jim Meyering  <meyering@redhat.com>
12519
12520         strstr: fix a bug whereby strstr would mistakenly return NULL
12521         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12522         in period calculation.
12523         (two_way_long_needle): Likewise.
12524         The original problem was reported by Mike Stump in
12525         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12526         Ralf Wildenhues provided the short needle and haystack.
12527         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12528         Add a more involved test to trigger the bug in two_way_long_needle.
12529
12530 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12531
12532         gnulib-tool: remove use of bold display in help screen
12533         * gnulib-tool (func_usage): Do not use bold display anymore in the
12534         help screen.  That was just meant to be a temporary emphasis for a
12535         backward-incompatible change.
12536
12537 2011-02-23  Bruno Haible  <bruno@clisp.org>
12538
12539         Fix misindentation of preprocessor directives.
12540         * lib/argp-namefrob.h: Reindent preprocessor directives.
12541         * lib/getopt_int.h (struct _getopt_data): Likewise.
12542         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12543         * lib/vasnprintf.c (decode_long_double): Likewise.
12544         * tests/test-argmatch.c: Insert blank lines, for clarity.
12545         * tests/test-exclude.c: Likewise.
12546
12547 2011-02-22  Bruno Haible  <bruno@clisp.org>
12548
12549         ioctl: Fix for MacOS X in 64-bit mode.
12550         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12551         value.
12552         Suggested by Eric Blake.
12553         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12554
12555 2011-02-22  Jim Meyering  <meyering@redhat.com>
12556
12557         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12558         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12559         in lib/.
12560
12561 2011-02-22  Eric Blake  <eblake@redhat.com>
12562
12563         maint: avoid any CDPATH issue
12564         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12565
12566         maint: adjust cpp indentation for my modules, as well
12567         * Makefile (sc_cpp_indent_check): Add my name.
12568         * lib/fbufmode.c: Filter through cppi.
12569         * lib/fpurge.c: Likewise.
12570         * lib/freadable.c: Likewise.
12571         * lib/freading.c: Likewise.
12572         * lib/fwritable.c: Likewise.
12573         * lib/fwriting.c: Likewise.
12574         * lib/sigaction.c: Likewise.
12575
12576 2011-02-22  Jim Meyering  <meyering@redhat.com>
12577
12578         maint: adjust cpp indentation to reflect nesting depth
12579         I.e., in a block of code that begins with an unnested "#if",
12580         put one space between the "#" in column 1 and following token.
12581         For example,
12582         -#include <sys/vfs.h>
12583         +# include <sys/vfs.h>
12584         Do this only in .c files that are part of a module I maintain.
12585         * lib/linkat.c: Filter through cppi.
12586         * lib/nanosleep.c: Likewise.
12587         * lib/openat.c: Likewise.
12588         * lib/openat-die.c: Likewise.
12589         * lib/dup3.c: Likewise.
12590         * lib/fchownat.c: Likewise.
12591         * lib/flock.c: Likewise.
12592         * lib/fsync.c: Likewise.
12593         * lib/fts.c: Likewise.
12594         * lib/getpass.c: Likewise.
12595         * lib/gettimeofday.c: Likewise.
12596         * lib/userspec.c: Likewise.
12597         * Makefile (sc_cpp_indent_check): New rule, to check this.
12598
12599 2011-02-22  Bruno Haible  <bruno@clisp.org>
12600
12601         New module 'wctomb'.
12602         * lib/stdlib.in.h (wctomb): New declaration.
12603         * lib/wctomb.c: New file.
12604         * lib/wctomb-impl.h: New file.
12605         * m4/wctomb.m4: New file.
12606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12607         REPLACE_WCTOMB.
12608         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12609         REPLACE_WCTOMB.
12610         * modules/wctomb: New file.
12611         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12612         * doc/posix-functions/wctomb.texi: Mention the new module.
12613         * modules/wctob (Depends-on): Add wctomb.
12614
12615 2011-02-22  Bruno Haible  <bruno@clisp.org>
12616
12617         New module 'mbtowc'.
12618         * lib/stdlib.in.h (mbtowc): New declaration.
12619         * lib/mbtowc.c: New file.
12620         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12621         * m4/mbtowc.m4: New file.
12622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12623         REPLACE_MBTOWC.
12624         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12625         REPLACE_MBTOWC.
12626         * modules/mbtowc: New file.
12627         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12628         * doc/posix-functions/mbtowc.texi: Mention the new module.
12629         * modules/btowc (Depends-on): Add mbtowc.
12630
12631 2011-02-22  Bruno Haible  <bruno@clisp.org>
12632
12633         wcrtomb: Add more tests for native Windows platforms.
12634         * tests/test-wcrtomb-w32-1.sh: New file.
12635         * tests/test-wcrtomb-w32-2.sh: New file.
12636         * tests/test-wcrtomb-w32-3.sh: New file.
12637         * tests/test-wcrtomb-w32-4.sh: New file.
12638         * tests/test-wcrtomb-w32-5.sh: New file.
12639         * tests/test-wcrtomb-w32.c: New file.
12640         * modules/wcrtomb-tests (Files): Add them.
12641         (Makefile.am): Arrange to run these tests.
12642         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12643         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12644
12645 2011-02-20  Bruno Haible  <bruno@clisp.org>
12646
12647         wcrtomb: Enhance test.
12648         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12649
12650 2011-02-20  Bruno Haible  <bruno@clisp.org>
12651
12652         mbrtowc: Tiny optimization.
12653         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12654
12655 2011-02-20  Jim Meyering  <meyering@redhat.com>
12656
12657         test-exclude.c: remove unmatched #endif
12658         * tests/test-exclude.c: Remove stray #endif, left over from
12659         the change of a week ago.
12660
12661 2011-02-19  Jim Meyering  <meyering@redhat.com>
12662
12663         git-version-gen: skip "-dirty" check when appropriate
12664         * build-aux/git-version-gen: Don't run any git commands when the
12665         version string comes from .tarball-version.  Prior to this, we
12666         would run git update-index --refresh even from a just-unpacked
12667         tarball directory, and that could affect a .git/ directory in a
12668         parent of the build directory.  Reported by Mike Frysinger.
12669
12670 2011-02-19  Bruno Haible  <bruno@clisp.org>
12671
12672         unictype/property-byname: Reduce the size of the 'data' segment.
12673         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12674
12675 2011-02-19  Bruno Haible  <bruno@clisp.org>
12676
12677         unictype/scripts: Reduce the size of the 'data' segment.
12678         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12679         '%pic'.
12680         * lib/unictype/scripts_byname.gperf: Regenerated.
12681
12682 2011-02-19  Bruno Haible  <bruno@clisp.org>
12683
12684         stdint: Update documentation.
12685         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12686
12687 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12688
12689         stdint: omit redundant check for wchar.h
12690         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12691         always tests whether wchar.h exists, so remove the now-redundant test.
12692
12693 2011-02-18  Bruno Haible  <bruno@clisp.org>
12694
12695         stdint: Cut dependency to module 'wchar'.
12696         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12697         include the necessary prerequisites.
12698         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12699         * modules/stdint (Depends-on): Remove wchar.
12700         (Makefile.am): Substitute HAVE_WCHAR_H.
12701         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12702
12703 2011-02-18  Eric Blake  <eblake@redhat.com>
12704
12705         longlong: skip, rather than fail, on cross-compilation
12706         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12707         when cross-compiling; regression from 2011-02-16.
12708
12709 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12710
12711         * NEWS: Mention 2011-02-08 change to stdlib.
12712
12713 2011-02-17  Bruno Haible  <bruno@clisp.org>
12714
12715         getloadavg: Add comments about platforms.
12716         * m4/getloadavg.m4: Add comment.
12717         * lib/getloadavg.c: Likewise.
12718
12719 2011-02-17  Bruno Haible  <bruno@clisp.org>
12720
12721         getloadavg: Fix link error on Solaris 2.6.
12722         * modules/getloadavg (Link): New section.
12723         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12724         linking test-getloadavg.
12725         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12726         getloadavg.
12727
12728 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12729
12730         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12731         It was 'int', but this doesn't match the IRIX 6.5 manual.
12732         Suggested by Bruno Haible in
12733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12734
12735 2011-02-17  Bruno Haible  <bruno@clisp.org>
12736
12737         havelib: Fix comments.
12738         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12739         change.
12740
12741 2011-02-17  Bruno Haible  <bruno@clisp.org>
12742
12743         havelib: Update config.rpath.
12744         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12745
12746 2011-02-17  Bruno Haible  <bruno@clisp.org>
12747
12748         getloadavg test: Add some plausibility checks.
12749         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12750         is improbable.
12751
12752 2011-02-16  Eric Blake  <eblake@redhat.com>
12753
12754         maintainer-makefile: make syntax-check a no-op from tarballs
12755         * top/maint.mk (no-vc-detected): New rule.
12756         (local-checks-available): Use it to avoid hanging if someone tries
12757         'make syntax-check' from a tarball.  Also append to any non-syntax
12758         checks already defined in cfg.mk.
12759
12760 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12761
12762         longlong: tune, particularly for common case of c99
12763
12764         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12765         or running anything if c99, or if unsigned long long int does not
12766         work.  In either case, we know the answer without further tests.
12767         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12768         it at most once, and use its results for both long long int and
12769         unsigned long long int.  This is more likely to be efficient in
12770         the common case where the program wants to check for both long
12771         long int and unsigned long long int.
12772         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12773         since the answer is already known.
12774
12775 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12776
12777         getloadavg: set errno
12778         * lib/getloadavg.c: Set errno when returning -1.  If no other
12779         error number looks appropriate, set it to ENOSYS if the getloadavg
12780         looks like it can't possibly ever work, ENOTSUP otherwise.
12781         Suggested by Bruno Haible in
12782         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12783
12784         getloadavg: trim unused parts and speed up 'configure'
12785         * NEWS: Document this.
12786         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12787         always compiled if getloadavg is absent.
12788         Move test code to ...
12789         * tests/test-getloadavg.c: New file, containing previous
12790         contents of test from lib/getloadavg.c.  It also contains
12791         suggestions by Bruno Haible in
12792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12793         * modules/getloadavg-tests: New file.
12794         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12795         Do tests in the same order as they're needed for getloadavg.c.
12796         Omit setgid-related tests that generate symbols KMEM_GROUP,
12797         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12798         Do only the tests that are needed to see whether the system has
12799         getloadavg, moving the other tests into ...
12800         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12801         NLIST_NAME_UNION; nobody should be using it.  Do not define
12802         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12803         relevant, as the user of this module shouldn't care how getloadavg
12804         is implemented.
12805
12806         getloadavg: omit unused var
12807         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12808
12809 2011-02-15  Jim Meyering  <meyering@redhat.com>
12810
12811         doc: update users.txt
12812         * users.txt: Update iwhd's URL.
12813
12814 2011-02-13  Bruno Haible  <bruno@clisp.org>
12815
12816         Consistent macro naming for macros that use GCC __attribute__.
12817         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12818         _ATTRIBUTE_NONNULL_.
12819         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12820         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12821         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12822         ATTRIBUTE_DEPRECATED.
12823         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12824         ATTRIBUTE_NORETURN.
12825         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12826         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12827         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12828         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12829         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12830         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12831         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12832         ATTRIBUTE_SENTINEL.
12833         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12834         ATTRIBUTE_RETURN_CHECK.
12835         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12836         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12837         ATTRIBUTE_NORETURN.
12838         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12839         Reported by Paul Eggert.
12840
12841 2011-02-13  Bruno Haible  <bruno@clisp.org>
12842
12843         Don't interfere with a program's definition of __attribute__.
12844         * lib/argp.h (__attribute__): Remove definition.
12845         (_GL_ATTRIBUTE_FORMAT): New macro.
12846         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12847         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12848         (_GL_ATTRIBUTE_FORMAT): New macro.
12849         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12850         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12851         GCC 3 or newer.
12852         * lib/error.h (__attribute__): Remove definition.
12853         (_GL_ATTRIBUTE_FORMAT): New macro.
12854         (error, error_at_line): Use it.
12855         * lib/hash.h (__attribute__): Remove definition.
12856         (ATTRIBUTE_WUR): Update definition. Define always.
12857         * lib/openat.h (__attribute__): Remove definition.
12858         (ATTRIBUTE_NORETURN): Update definition. Define always.
12859         * lib/sigpipe-die.h (__attribute__): Remove definition.
12860         (ATTRIBUTE_NORETURN): Update definition. Define always.
12861         * lib/vasnprintf.h (__attribute__): Remove definition.
12862         (_GL_ATTRIBUTE_FORMAT): New macro.
12863         (asnprintf, vasnprintf): Use it.
12864         * lib/xalloc.h (__attribute__): Remove definition.
12865         (ATTRIBUTE_NORETURN): Update definition. Define always.
12866         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12867         * lib/xmemdup0.h (__attribute__): Remove definition.
12868         (ATTRIBUTE_NORETURN): Update definition. Define always.
12869         * lib/xprintf.h (__attribute__): Remove definition.
12870         (_GL_ATTRIBUTE_FORMAT): New macro.
12871         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12872         * lib/xstrtol.h (__attribute__): Remove definition.
12873         (ATTRIBUTE_NORETURN): Update definition. Define always.
12874         * lib/xvasprintf.h (__attribute__): Remove definition.
12875         (_GL_ATTRIBUTE_FORMAT): New macro.
12876         (xasprintf, xvasprintf): Use it.
12877         * tests/test-argmatch.c (__attribute__): Remove definition.
12878         (ATTRIBUTE_NORETURN): Update definition. Define always.
12879         * tests/test-exclude.c (__attribute__): Remove definition.
12880         (ATTRIBUTE_NORETURN): Update definition. Define always.
12881         Reported by Paul Eggert.
12882
12883 2011-02-13  Bruno Haible  <bruno@clisp.org>
12884
12885         mbrtowc: Add more tests for native Windows platforms.
12886         * tests/test-mbrtowc-w32-1.sh: New file.
12887         * tests/test-mbrtowc-w32-2.sh: New file.
12888         * tests/test-mbrtowc-w32-3.sh: New file.
12889         * tests/test-mbrtowc-w32-4.sh: New file.
12890         * tests/test-mbrtowc-w32-5.sh: New file.
12891         * tests/test-mbrtowc-w32.c: New file.
12892         * modules/mbrtowc-tests (Files): Add them.
12893         (Makefile.am): Arrange to run these tests.
12894         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12895         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12896
12897 2011-02-13  Bruno Haible  <bruno@clisp.org>
12898
12899         mbrtowc: Work around native Windows bug.
12900         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12901         guess when no suitable locale for testing was found.
12902         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12903
12904 2011-02-13  Bruno Haible  <bruno@clisp.org>
12905
12906         mbsinit: Work around mingw bug.
12907         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12908         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12909         Windows.
12910         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12911
12912 2011-02-13  Bruno Haible  <bruno@clisp.org>
12913
12914         mbsinit: Don't crash for a NULL argument.
12915         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12916         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12917
12918 2011-02-13  Bruno Haible  <bruno@clisp.org>
12919
12920         Don't interfere with a program's definition of __attribute__.
12921         * lib/stdio.in.h (__attribute__): Remove definition.
12922         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12923         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12924         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12925         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12926         * lib/string.in.h (__attribute__): Remove definition.
12927         Reported by Paul Eggert.
12928
12929 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12930
12931         stdlib: don't get in the way of non-GCC __attribute__
12932         See thread starting at
12933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12934         Revert previous stdlib change, installing the following instead:
12935         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12936         to get in the way of a non-GCC compiler that supports __attribute__.
12937         (_GL_ATTRIBUTE_RETURN): New macro.
12938         (_Exit): Use it instead of __attribute__.
12939
12940 2011-02-12  Bruno Haible  <bruno@clisp.org>
12941
12942         quotearg test: Avoid test failure on mingw.
12943         * tests/test-quotearg.sh: Convert the locale identifier from native
12944         Windows syntax to Unix syntax.
12945
12946 2011-02-12  Bruno Haible  <bruno@clisp.org>
12947
12948         setlocale: Prefer gnulib's override over libintl's override.
12949         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12950         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12951         GNULIB_defined_setlocale is set.
12952
12953 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12954
12955         stdlib: support non-GCC __attribute__
12956
12957         Fix a serious and tricky problem encountered when attempting to
12958         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12959         5.5, but it crashed due to memory corruption on Solaris 10 with
12960         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12961         bits that are otherwise zero.  This tagging is optional inside
12962         Emacs but is preferred and is used when __attribute__ ((__aligned
12963         (8))) works, as it does with both recent-enough GCC and with Sun C
12964         5.11.  However, Sun C 5.11 is not GCC and does not #define
12965         __GNUC__ and __GNUC_MINOR__.
12966
12967         When I added the getloadavg module to Emacs, it brought in
12968         stdlib.in.h, which contained this fragment:
12969
12970            #ifndef __attribute__
12971            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12972            #  define __attribute__(Spec)   /* empty */
12973            # endif
12974            #endif
12975
12976         When files that include <stdlib.h> were compiled with Sun C 5.11,
12977         the above code disabled __attribute__ ((__aligned (8))), which
12978         caused variables to not be properly aligned, which eventually led
12979         to the pointer corruption mentioned above.  (This was a bit hard
12980         to diagnose, unfortunately.)
12981
12982         Several "#define __attribute__(X) /* empty */" code snippets need
12983         to be eradicated from Gnulib to work with non-GCC compilers that
12984         support __attribute__.  The Autoconf way to do this is to test for
12985         each kind of attribute that we want support for, and selectively
12986         enable that in source code.
12987
12988         Fix this problem just for stdlib.h, by adding a test for the
12989         __noreturn__ attribute, and change stdlib.in.h to use that test
12990         when needed.  This technique can be easily generalized to the
12991         other *.in.h files and attributes, and a similar technique can be
12992         used for *.h and *.c files.  This patch is enough to solve the
12993         problem for Emacs + getloadavg, and I thought I'd publish it for
12994         feedback before undertaking further, similar fixes in other
12995         modules.
12996
12997         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12998         because it's not needed for stdlib.h.  It merely substitutes the
12999         value directly into stdlib.h.  We may well need to #define it, or
13000         similar symbols, for other modules, but it's nice to also have an
13001         option to not #define it for applications like Emacs that do not
13002         need it.
13003
13004         * lib/stdlib.in.h (__attribute__): Do not #define.
13005         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13006         be defined only if the _Exit module is also used.
13007         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13009         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13010         platforms.
13011         * modules/_Exit (Files): Add m4/attribute.m4.
13012         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13013         * m4/attribute.m4: New file.
13014
13015 2011-02-12  Bruno Haible  <bruno@clisp.org>
13016
13017         wcsrtombs: Work around bug on native Windows.
13018         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13019         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13020         instead of len.
13021         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13022
13023 2011-02-12  Bruno Haible  <bruno@clisp.org>
13024
13025         mbsrtowcs: Work around bug on native Windows.
13026         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13027         against mingw bug.
13028         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13029
13030 2011-02-12  Bruno Haible  <bruno@clisp.org>
13031
13032         Avoid setlocale bugs in tests.
13033         * modules/btowc (Dependencies): Add setlocale.
13034         * modules/c-strcase (Dependencies): Likewise.
13035         * modules/mbmemcasecmp (Dependencies): Likewise.
13036         * modules/mbmemcasecoll (Dependencies): Likewise.
13037         * modules/mbrtowc (Dependencies): Likewise.
13038         * modules/mbscasecmp (Dependencies): Likewise.
13039         * modules/mbscasestr (Dependencies): Likewise.
13040         * modules/mbschr (Dependencies): Likewise.
13041         * modules/mbscspn (Dependencies): Likewise.
13042         * modules/mbsinit (Dependencies): Likewise.
13043         * modules/mbsncasecmp (Dependencies): Likewise.
13044         * modules/mbsnrtowcs (Dependencies): Likewise.
13045         * modules/mbspbrk (Dependencies): Likewise.
13046         * modules/mbspcasecmp (Dependencies): Likewise.
13047         * modules/mbsrchr (Dependencies): Likewise.
13048         * modules/mbsrtowcs (Dependencies): Likewise.
13049         * modules/mbsspn (Dependencies): Likewise.
13050         * modules/mbsstr (Dependencies): Likewise.
13051         * modules/nl_langinfo (Dependencies): Likewise.
13052         * modules/quotearg (Dependencies): Likewise.
13053         * modules/unicase/locale-language (Dependencies): Likewise.
13054         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13055         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13056         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13057         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13058         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13059         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13060         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13061         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13062         * modules/vasnprintf-posix (Dependencies): Likewise.
13063         * modules/wcrtomb (Dependencies): Likewise.
13064         * modules/wcsnrtombs (Dependencies): Likewise.
13065         * modules/wcsrtombs (Dependencies): Likewise.
13066
13067 2011-02-12  Bruno Haible  <bruno@clisp.org>
13068
13069         setlocale: Workaround native Windows bug.
13070         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13071         succeeds but sets LC_CTYPE to "C", report a failure.
13072         * tests/test-setlocale2.sh: New file.
13073         * tests/test-setlocale2.c: New file.
13074         * modules/setlocale-tests (Files): Add the new files.
13075         (Makefile.am): Enable test-setlocale2.sh test.
13076         * doc/posix-functions/setlocale.texi: Mention workaround.
13077
13078 2011-02-11  Bruno Haible  <bruno@clisp.org>
13079
13080         Tests for module 'setlocale'.
13081         * modules/setlocale-tests: New file.
13082         * tests/test-setlocale1.sh: New file.
13083         * tests/test-setlocale1.c: New file.
13084
13085         New module 'setlocale'.
13086         * lib/locale.in.h (setlocale): New declaration.
13087         * lib/setlocale.c: New file, based on
13088         gettext/gettext-runtime/intl/setlocale.c.
13089         * m4/setlocale.m4: New file.
13090         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13091         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13092         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13093         REPLACE_SETLOCALE.
13094         * modules/setlocale: New file.
13095         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13096         * doc/posix-functions/setlocale.texi: Mention the new module.
13097
13098 2011-02-11  Bruno Haible  <bruno@clisp.org>
13099
13100         Prepare for locale dependent tests on mingw.
13101         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13102         because it has the wrong locale encoding.
13103         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13104         French_France.1252 instead of "fr".
13105         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13106         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13107         because it has the wrong locale encoding.
13108         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13109         native Windows, try Turkish_Turkey.65001.
13110         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13111         Chinese_China.54936.
13112
13113         Prepare for locale dependent tests on mingw.
13114         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13115         differently.
13116         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13117         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13119         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13120
13121 2011-02-11  Eric Blake  <eblake@redhat.com>
13122
13123         strptime: avoid compiler warnings
13124         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13125         compiler warnings about dead code.
13126         Reported by Daniel P. Berrange.
13127
13128 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13129
13130         doc: update users.txt
13131         * users.txt: Add rcs.
13132
13133 2011-02-10  John W. Eaton  <jwe@gnu.org>
13134
13135         doc: update users.txt
13136         * users.txt: Add octave.
13137
13138 2011-02-10  Jim Meyering  <meyering@redhat.com>
13139
13140         doc: update users.txt
13141         * users.txt: Add iwhd.
13142
13143 2011-02-09  Bruno Haible  <bruno@clisp.org>
13144
13145         gnulib-tool: Make copyright notice adjustment more robust.
13146         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13147         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13148         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13149         License".
13150         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13151
13152 2011-02-06  Bruno Haible  <bruno@clisp.org>
13153
13154         New module 'towctrans'.
13155         * modules/towctrans: New file.
13156         * lib/wctype.in.h (towctrans): New declaration.
13157         * lib/towctrans.c: New file.
13158         * lib/towctrans-impl.h: New file.
13159         * m4/towctrans.m4: New file.
13160         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13161         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13162         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13163         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13164         * doc/posix-functions/towctrans.texi: Mention the new module.
13165
13166 2011-02-06  Bruno Haible  <bruno@clisp.org>
13167
13168         New module 'wctrans'.
13169         * modules/wctrans: New file.
13170         * lib/wctype.in.h (wctrans): New declaration.
13171         * lib/wctrans.c: New file.
13172         * lib/wctrans-impl.h: New file.
13173         * m4/wctrans.m4: New file.
13174         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13175         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13176         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13177         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13178         * doc/posix-functions/wctrans.texi: Mention the new module.
13179
13180 2011-02-06  Bruno Haible  <bruno@clisp.org>
13181
13182         New module 'iswctype'.
13183         * modules/iswctype: New file.
13184         * lib/wctype.in.h (iswctype): New declaration.
13185         * lib/iswctype.c: New file.
13186         * lib/iswctype-impl.h: New file.
13187         * m4/iswctype.m4: New file.
13188         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13189         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13190         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13191         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13192         * doc/posix-functions/iswctype.texi: Mention the new module and the
13193         HP-UX 11.00 problem.
13194
13195 2011-02-06  Bruno Haible  <bruno@clisp.org>
13196
13197         New module 'wctype'.
13198         * modules/wctype: Change to represent the wctype() substitute.
13199         * lib/wctype.in.h (wctype): New declaration.
13200         * lib/wctype.c: New file.
13201         * lib/wctype-impl.h: New file.
13202         * m4/wctype.m4: New file.
13203         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13204         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13205         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13206         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13207         * doc/posix-functions/wctype.texi: Mention the new module and the
13208         HP-UX 11.00 problem.
13209
13210 2011-02-06  Bruno Haible  <bruno@clisp.org>
13211
13212         wctype-h: Ensure wctype_t and wctrans_t are defined.
13213         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13214         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13215         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13216         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13217         HAVE_WCTRANS_T.
13218         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13219
13220 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         flock: fix license typo
13223
13224         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13225         omitted.
13226
13227 2011-02-08  Bruno Haible  <bruno@clisp.org>
13228
13229         Split large sed scripts, for HP-UX sed.
13230         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13231         to avoid HP-UX limit of 99 commands, in the near future.
13232         * modules/stdlib (Makefile.am): Likewise.
13233         * modules/unistd (Makefile.am): Likewise.
13234         * modules/wchar (Makefile.am): Likewise.
13235         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13236         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13237         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13238
13239 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13240             Bruno Haible  <bruno@clisp.org>
13241
13242         stdlib: improve random_r modularization
13243         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13244         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13245         you also need the random_r module to get this material right.
13246         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13247         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13248         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13249
13250 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13251
13252         stdlib: don't depend on stdint
13253         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13254         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13255         be independent of whether stdint.h is needed.
13256         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13257         here, instead of ...
13258         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13259         struct random_data should be using the random_r module, not just
13260         the stdlib module (which wouldn't make sense: what package needs
13261         just struct random_data without also needing random_r?).
13262         * modules/stdlib (Depends-on): Remove stdint.
13263
13264         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13265         See the thread rooted at
13266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13267         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13268         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13269         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13270         __VMS)); previously it was always included (via fcntl--.h).
13271         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13272         hand; this is good enough for load averages.  Also, do not use
13273         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13274         flags directly if available and don't bother otherwise.  (Packages
13275         that need the extra reliability should use the modules that define
13276         these flags on older platforms that lack them.)
13277         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13278         fcntl-safer.
13279
13280 2011-02-08  Jim Meyering  <meyering@redhat.com>
13281
13282         di-set.h, ino-map.h: add multiple-inclusion guard
13283         Technically, the guard is required only for ino-map.h, due to its
13284         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13285         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13286         * lib/ino-map.h: Likewise.
13287
13288 2011-02-06  Bruno Haible  <bruno@clisp.org>
13289
13290         iswblank: Ensure declaration on glibc systems.
13291         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13292         * modules/iswblank (Dependencies): Add 'extensions'.
13293         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13294
13295 2011-02-06  Bruno Haible  <bruno@clisp.org>
13296
13297         New module 'iswblank'.
13298         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13299         * modules/iswblank: New file.
13300         * modules/wctype-h (Files): Remove lib/iswblank.c.
13301         (Makefile.am): Substitute GNULIB_ISWBLANK.
13302         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13303         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13304         (gl_WCTYPE_H_DEFAULTS): New macro.
13305         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13306         * modules/iswblank-tests: New file.
13307         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13308         * tests/test-wctype-h.c (main): Remove iswblank tests.
13309         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13310         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13311         of 'wctype-h'.
13312         * NEWS: Mention the change.
13313         * modules/mbchar (Depends-on): Add iswblank.
13314
13315 2011-02-08  Bruno Haible  <bruno@clisp.org>
13316
13317         di-set tests: Refactor.
13318         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13319         unnecessary includes.
13320         (ASSERT): Remove macro.
13321         (main): Make C90 compliant by avoiding variable declaration after
13322         statement.
13323         * modules/di-set-tests (Files): Add tests/macros.h.
13324
13325 2011-02-08  Bruno Haible  <bruno@clisp.org>
13326
13327         ino-map tests: Refactor.
13328         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13329         unnecessary includes.
13330         (ASSERT): Remove macro.
13331         (main): Make C90 compliant by avoiding variable declaration after
13332         statement.
13333         * modules/ino-map-tests (Files): Add tests/macros.h.
13334
13335 2011-02-08  Jim Meyering  <meyering@redhat.com>
13336
13337         di-set: add "const" to a cast
13338         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13339         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13340
13341 2011-02-06  Bruno Haible  <bruno@clisp.org>
13342
13343         Rename module 'wctype' to 'wctype-h'.
13344         * modules/wctype-h: Renamed from modules/wctype.
13345         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13346         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13347         (Files, Depends-on, Makefile.am): Update.
13348         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13349         (Files, Makefile.am): Update.
13350         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13351         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13352         * doc/posix-headers/wctype.texi: Update.
13353         * doc/posix-functions/iswalnum.texi: Update.
13354         * doc/posix-functions/iswalpha.texi: Update.
13355         * doc/posix-functions/iswblank.texi: Update.
13356         * doc/posix-functions/iswcntrl.texi: Update.
13357         * doc/posix-functions/iswdigit.texi: Update.
13358         * doc/posix-functions/iswgraph.texi: Update.
13359         * doc/posix-functions/iswlower.texi: Update.
13360         * doc/posix-functions/iswprint.texi: Update.
13361         * doc/posix-functions/iswpunct.texi: Update.
13362         * doc/posix-functions/iswspace.texi: Update.
13363         * doc/posix-functions/iswupper.texi: Update.
13364         * doc/posix-functions/iswxdigit.texi: Update.
13365         * doc/posix-functions/towlower.texi: Update.
13366         * doc/posix-functions/towupper.texi: Update.
13367         * NEWS: Mention the change.
13368         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13369         * modules/mbchar (Dependencies): Likewise.
13370         * modules/mbswidth (Dependencies): Likewise.
13371         * modules/quotearg (Dependencies): Likewise.
13372         * modules/regex (Dependencies): Likewise.
13373         * modules/wcscasecmp (Dependencies): Likewise.
13374         * modules/wcsncasecmp (Dependencies): Likewise.
13375         * modules/wcwidth (Dependencies): Likewise.
13376
13377 2011-02-06  Bruno Haible  <bruno@clisp.org>
13378
13379         New module 'wcswidth'.
13380         * modules/wcswidth: New file.
13381         * lib/wchar.in.h (wcswidth): New declaration.
13382         * lib/wcswidth.c: New file.
13383         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13384         * m4/wcswidth.m4: New file.
13385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13387         REPLACE_WCSWIDTH.
13388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13389         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13390         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13391         * doc/posix-functions/wcswidth.texi: Mention the new module.
13392
13393 2011-02-06  Bruno Haible  <bruno@clisp.org>
13394
13395         New module 'wcstok'.
13396         * modules/wcstok: New file.
13397         * lib/wchar.in.h (wcstok): New declaration.
13398         * lib/wcstok.c: New file.
13399         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13400         * m4/wcstok.m4: New file.
13401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13403         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13404         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13405         * doc/posix-functions/wcstok.texi: Mention the new module.
13406
13407 2011-02-06  Bruno Haible  <bruno@clisp.org>
13408
13409         New module 'wcsstr'.
13410         * modules/wcsstr: New file.
13411         * lib/wchar.in.h (wcsstr): New declaration.
13412         * lib/wcsstr.c: New file.
13413         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13414         * m4/wcsstr.m4: New file.
13415         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13416         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13418         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13419         * doc/posix-functions/wcsstr.texi: Mention the new module.
13420
13421 2011-02-06  Bruno Haible  <bruno@clisp.org>
13422
13423         New module 'wcspbrk'.
13424         * modules/wcspbrk: New file.
13425         * lib/wchar.in.h (wcspbrk): New declaration.
13426         * lib/wcspbrk.c: New file.
13427         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13428         * m4/wcspbrk.m4: New file.
13429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13432         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13433         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13434
13435 2011-02-06  Bruno Haible  <bruno@clisp.org>
13436
13437         New module 'wcsspn'.
13438         * modules/wcsspn: New file.
13439         * lib/wchar.in.h (wcsspn): New declaration.
13440         * lib/wcsspn.c: New file.
13441         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13442         * m4/wcsspn.m4: New file.
13443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13446         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13447         * doc/posix-functions/wcsspn.texi: Mention the new module.
13448
13449 2011-02-06  Bruno Haible  <bruno@clisp.org>
13450
13451         New module 'wcscspn'.
13452         * modules/wcscspn: New file.
13453         * lib/wchar.in.h (wcscspn): New declaration.
13454         * lib/wcscspn.c: New file.
13455         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13456         * m4/wcscspn.m4: New file.
13457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13460         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13461         * doc/posix-functions/wcscspn.texi: Mention the new module.
13462
13463 2011-02-06  Bruno Haible  <bruno@clisp.org>
13464
13465         New module 'wcsrchr'.
13466         * modules/wcsrchr: New file.
13467         * lib/wchar.in.h (wcsrchr): New declaration.
13468         * lib/wcsrchr.c: New file.
13469         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13470         * m4/wcsrchr.m4: New file.
13471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13474         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13475         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13476
13477 2011-02-06  Bruno Haible  <bruno@clisp.org>
13478
13479         New module 'wcschr'.
13480         * modules/wcschr: New file.
13481         * lib/wchar.in.h (wcschr): New declaration.
13482         * lib/wcschr.c: New file.
13483         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13484         * m4/wcschr.m4: New file.
13485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13488         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13489         * doc/posix-functions/wcschr.texi: Mention the new module.
13490
13491 2011-02-06  Bruno Haible  <bruno@clisp.org>
13492
13493         New module 'wcsdup'.
13494         * modules/wcsdup: New file.
13495         * lib/wchar.in.h (wcsdup): New declaration.
13496         * lib/wcsdup.c: New file.
13497         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13498         * m4/wcsdup.m4: New file.
13499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13502         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13503         * doc/posix-functions/wcsdup.texi: Mention the new module.
13504
13505 2011-02-06  Bruno Haible  <bruno@clisp.org>
13506
13507         New module 'wcsxfrm'.
13508         * modules/wcsxfrm: New file.
13509         * lib/wchar.in.h (wcsxfrm): New declaration.
13510         * lib/wcsxfrm.c: New file.
13511         * lib/wcsxfrm-impl.h: New file.
13512         * m4/wcsxfrm.m4: New file.
13513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13516         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13517         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13518
13519 2011-02-06  Bruno Haible  <bruno@clisp.org>
13520
13521         New module 'wcscoll'.
13522         * modules/wcscoll: New file.
13523         * lib/wchar.in.h (wcscoll): New declaration.
13524         * lib/wcscoll.c: New file.
13525         * lib/wcscoll-impl.h: New file.
13526         * m4/wcscoll.m4: New file.
13527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13530         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13531         * doc/posix-functions/wcscoll.texi: Mention the new module.
13532
13533 2011-02-06  Bruno Haible  <bruno@clisp.org>
13534
13535         New module 'wcsncasecmp'.
13536         * modules/wcsncasecmp: New file.
13537         * lib/wchar.in.h (wcsncasecmp): New declaration.
13538         * lib/wcsncasecmp.c: New file.
13539         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13540         * m4/wcsncasecmp.m4: New file.
13541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13544         HAVE_WCSNCASECMP.
13545         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13546         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13547
13548 2011-02-06  Bruno Haible  <bruno@clisp.org>
13549
13550         New module 'wcscasecmp'.
13551         * modules/wcscasecmp: New file.
13552         * lib/wchar.in.h (wcscasecmp): New declaration.
13553         * lib/wcscasecmp.c: New file.
13554         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13555         * m4/wcscasecmp.m4: New file.
13556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13559         HAVE_WCSCASECMP.
13560         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13561         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13562
13563 2011-02-05  Bruno Haible  <bruno@clisp.org>
13564
13565         New module 'wcsncmp'.
13566         * modules/wcsncmp: New file.
13567         * lib/wchar.in.h (wcsncmp): New declaration.
13568         * lib/wcsncmp.c: New file.
13569         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13570         * m4/wcsncmp.m4: New file.
13571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13574         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13575         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13576
13577 2011-02-05  Bruno Haible  <bruno@clisp.org>
13578
13579         New module 'wcscmp'.
13580         * modules/wcscmp: New file.
13581         * lib/wchar.in.h (wcscmp): New declaration.
13582         * lib/wcscmp.c: New file.
13583         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13584         * m4/wcscmp.m4: New file.
13585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13588         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13589         * doc/posix-functions/wcscmp.texi: Mention the new module.
13590
13591 2011-02-05  Bruno Haible  <bruno@clisp.org>
13592
13593         New module 'wcsncat'.
13594         * modules/wcsncat: New file.
13595         * lib/wchar.in.h (wcsncat): New declaration.
13596         * lib/wcsncat.c: New file.
13597         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13598         * m4/wcsncat.m4: New file.
13599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13602         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13603         * doc/posix-functions/wcsncat.texi: Mention the new module.
13604
13605 2011-02-05  Bruno Haible  <bruno@clisp.org>
13606
13607         New module 'wcscat'.
13608         * modules/wcscat: New file.
13609         * lib/wchar.in.h (wcscat): New declaration.
13610         * lib/wcscat.c: New file.
13611         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13612         * m4/wcscat.m4: New file.
13613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13616         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13617         * doc/posix-functions/wcscat.texi: Mention the new module.
13618
13619 2011-02-05  Bruno Haible  <bruno@clisp.org>
13620
13621         New module 'wcpncpy'.
13622         * modules/wcpncpy: New file.
13623         * lib/wchar.in.h (wcpncpy): New declaration.
13624         * lib/wcpncpy.c: New file.
13625         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13626         * m4/wcpncpy.m4: New file.
13627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13629         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13630         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13631         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13632
13633 2011-02-05  Bruno Haible  <bruno@clisp.org>
13634
13635         New module 'wcsncpy'.
13636         * modules/wcsncpy: New file.
13637         * lib/wchar.in.h (wcsncpy): New declaration.
13638         * lib/wcsncpy.c: New file.
13639         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13640         * m4/wcsncpy.m4: New file.
13641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13644         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13645         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13646
13647 2011-02-05  Bruno Haible  <bruno@clisp.org>
13648
13649         New module 'wcpcpy'.
13650         * modules/wcpcpy: New file.
13651         * lib/wchar.in.h (wcpcpy): New declaration.
13652         * lib/wcpcpy.c: New file.
13653         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13654         * m4/wcpcpy.m4: New file.
13655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13657         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13658         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13659         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13660
13661 2011-02-05  Bruno Haible  <bruno@clisp.org>
13662
13663         New module 'wcscpy'.
13664         * modules/wcscpy: New file.
13665         * lib/wchar.in.h (wcscpy): New declaration.
13666         * lib/wcscpy.c: New file.
13667         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13668         * m4/wcscpy.m4: New file.
13669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13672         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13673         * doc/posix-functions/wcscpy.texi: Mention the new module.
13674
13675 2011-02-05  Bruno Haible  <bruno@clisp.org>
13676
13677         New module 'wcsnlen'.
13678         * modules/wcsnlen: New file.
13679         * lib/wchar.in.h (wcsnlen): New declaration.
13680         * lib/wcsnlen.c: New file.
13681         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13682         * m4/wcsnlen.m4: New file.
13683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13686         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13687         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13688
13689 2011-02-05  Bruno Haible  <bruno@clisp.org>
13690
13691         New module 'wcslen'.
13692         * modules/wcslen: New file.
13693         * lib/wchar.in.h (wcslen): New declaration.
13694         * lib/wcslen.c: New file.
13695         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13696         * m4/wcslen.m4: New file.
13697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13700         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13701         * doc/posix-functions/wcslen.texi: Mention the new module.
13702
13703 2011-02-05  Bruno Haible  <bruno@clisp.org>
13704
13705         New module 'wmemset'.
13706         * modules/wmemset: New file.
13707         * lib/wchar.in.h (wmemset): New declaration.
13708         * lib/wmemset.c: New file.
13709         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13710         * m4/wmemset.m4: New file.
13711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13713         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13714         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13715         * doc/posix-functions/wmemset.texi: Mention the new module.
13716
13717 2011-02-05  Bruno Haible  <bruno@clisp.org>
13718
13719         New module 'wmemmove'.
13720         * modules/wmemmove: New file.
13721         * lib/wchar.in.h (wmemmove): New declaration.
13722         * lib/wmemmove.c: New file.
13723         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13724         * m4/wmemmove.m4: New file.
13725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13727         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13728         HAVE_WMEMMOVE.
13729         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13730         * doc/posix-functions/wmemmove.texi: Mention the new module.
13731
13732 2011-02-05  Bruno Haible  <bruno@clisp.org>
13733
13734         New module 'wmemcpy'.
13735         * modules/wmemcpy: New file.
13736         * lib/wchar.in.h (wmemcpy): New declaration.
13737         * lib/wmemcpy.c: New file.
13738         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13739         * m4/wmemcpy.m4: New file.
13740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13742         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13743         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13744         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13745
13746 2011-02-05  Bruno Haible  <bruno@clisp.org>
13747
13748         New module 'wmemcmp'.
13749         * modules/wmemcmp: New file.
13750         * lib/wchar.in.h (wmemcmp): New declaration.
13751         * lib/wmemcmp.c: New file.
13752         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13753         * m4/wmemcmp.m4: New file.
13754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13756         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13757         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13758         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13759
13760 2011-02-07  Jim Meyering  <meyering@redhat.com>
13761
13762         di-set, ino-map: new modules, from coreutils
13763         * lib/di-set.c: New file.
13764         * lib/di-set.h: Likewise.
13765         * lib/ino-map.c: Likewise.
13766         * lib/ino-map.h: Likewise.
13767         * modules/di-set: Likewise.
13768         * modules/di-set-tests: Likewise.
13769         * modules/ino-map: Likewise.
13770         * modules/ino-map-tests: Likewise.
13771         * tests/test-di-set.c: Likewise.
13772         * tests/test-ino-map.c: Likewise.
13773
13774 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13775
13776         getloadavg: merge minor changes from Emacs
13777
13778         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13779         (getloadavg): Use memset, not bzero.
13780
13781         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13782         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13783         clash (bug#86).
13784
13785 2010-11-14  Bruno Haible  <bruno@clisp.org>
13786
13787         Allow multiple gnulib generated replacements to coexist.
13788         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13789         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13790         * lib/langinfo.in.h (nl_item): Likewise.
13791         * lib/math.in.h (_NaN, NAN): Likewise.
13792         * lib/netdb.in.h (struct addrinfo): Likewise.
13793         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13794         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13795         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13796         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13797         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13798         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13799         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13800         pthread_mutexattr_init, pthread_mutexattr_settype,
13801         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13802         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13803         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13804         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13805         * lib/sched.in.h (struct sched_param): Likewise.
13806         * lib/se-selinux.in.h (security_class_t, security_context_t,
13807         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13808         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13809         lsetfilecon, fsetfilecon, security_check_context,
13810         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13811         Likewise.
13812         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13813         Likewise.
13814         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13815         _gl_function_taking_int_returning_void_t, union sigval,
13816         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13817         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13818         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13819         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13820         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13821         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13822         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13823         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13824         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13825         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13826         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13827         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13828         socklen_t, rpl_fd_isset): Likewise.
13829         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13830         * lib/sys_time.in.h (struct timeval): Likewise.
13831         * lib/sys_times.in.h (struct tms): Likewise.
13832         * lib/sys_utsname.in.h (struct utsname):
13833         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13834         * lib/unistd.in.h (getpagesize): Likewise.
13835         * lib/wchar.in.h (mbstate_t): Likewise.
13836         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13837         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13838         towlower, towupper): Likewise.
13839         Reported by Sam Steingold <sds@gnu.org>.
13840
13841 2011-02-05  Eric Blake  <eblake@redhat.com>
13842
13843         unsetenv: work around Haiku issues
13844         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13845         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13846
13847 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13848
13849         libposix: avoid calling error() within libposix
13850         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13851         is defined.
13852
13853 2011-02-05  Eric Blake  <eblake@redhat.com>
13854
13855         strerror_r-posix: port to cygwin
13856         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13857         implementation.
13858         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13859         * tests/test-strerror_r.c (main): Fix test.
13860         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13861         issue.
13862
13863 2011-02-05  Bruno Haible  <bruno@clisp.org>
13864
13865         New module 'wmemchr'.
13866         * modules/wmemchr: New file.
13867         * lib/wchar.in.h (wmemchr): New declaration.
13868         * lib/wmemchr.c: New file.
13869         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13870         * m4/wmemchr.m4: New file.
13871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13873         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13874         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13875         * doc/posix-functions/wmemchr.texi: Mention the new module.
13876
13877 2011-02-04  Eric Blake  <eblake@redhat.com>
13878
13879         fdopendir: detect FreeBSD bug
13880         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13881         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13882
13883 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13884
13885         stdbool: do not define HAVE_STDBOOL_H
13886         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13887         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13888         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13889         imported from the latest Autoconf git.  It was motivated by Emacs,
13890         which uses gnulib but does not need HAVE_STDBOOL_H.
13891
13892 2011-02-04  Bruno Haible  <bruno@clisp.org>
13893
13894         wcsnrtombs: Prepare for new module wwcsnrtombs.
13895         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13896         * lib/wcsnrtombs.c: Include it.
13897         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13898
13899         wcsrtombs: Prepare for new module wwcsrtombs.
13900         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13901         * lib/wcsrtombs.c: Include it.
13902         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13903
13904         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13905         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13906         * lib/mbsnrtowcs.c: Include it.
13907         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13908
13909         mbsrtowcs: Prepare for new module mbsrtowwcs.
13910         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13911         * lib/mbsrtowcs.c: Include it.
13912         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13913
13914 2011-02-04  Bruno Haible  <bruno@clisp.org>
13915
13916         vasnprintf: Reduce use of malloc for small format strings.
13917         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13918         (arguments): Add room for the first 7 arguments.
13919         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13920         (char_directives, u8_directives, u16_directives, u32_directives): Add
13921         room for the first 7 directives.
13922         * lib/printf-parse.c: Include <string.h>.
13923         (PRINTF_PARSE): Change memory handling code so that it uses the first
13924         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13925         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13926         Reported by Pádraig Brady <P@draigbrady.com>.
13927
13928 2011-01-31  Eric Blake  <eblake@redhat.com>
13929
13930         dup2: work around Haiku bug
13931         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13932         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13933         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13934         * tests/test-dup2.c (main): Enhance test.
13935
13936 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13937
13938         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13939         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13940         declared by eglibc 2.11.2.
13941         * lib/stdio.in.h: Likewise.
13942
13943 2011-01-31  Eric Blake  <eblake@redhat.com>
13944
13945         ignore-value: add missing test dependency
13946         * tests/test-ignore-value.c: Revert previous change; stdio.h
13947         provides off_t.
13948         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13949
13950 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13951
13952         mktime: clarify long_int width checking
13953         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13954         the top level, to make it clearer that the assumption about
13955         long_int width is being checked.  See
13956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13957
13958 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13959
13960         ignore-value: Fix self-test.
13961         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13962
13963 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13964
13965         TYPE_MAXIMUM: avoid theoretically undefined behavior
13966         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13967         negative number, which the C Standard says has undefined behavior.
13968         In practice this is not a problem, but might as well do it by the book.
13969         Reported by Rich Felker and Eric Blake; see
13970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13971         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13972         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13974         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13975         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13976         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13977
13978         mktime: #undef mktime before #defining it
13979         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13980
13981         mktime: systematically normalize tm_isdst comparisons
13982         * lib/mktime.c (isdst_differ): New function.
13983         (__mktime_internal): Use it systematically for all isdst comparisons.
13984         This completes the fix for libc BZ #6723, and removes the need for
13985         normalizing tm_isdst.  See
13986         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13987         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13988
13989         mktime: fix some integer overflow issues and sidestep the rest
13990
13991         This was prompted by a bug report by Benjamin Lindner for MinGW
13992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13993         His bug is due to signed integer overflow (0 - INT_MIN), and I
13994         I scanned through mktime.c looking for other integer overflow
13995         problems, fixing all the bugs I found.
13996
13997         Although the C Standard says the resulting code is still not safe
13998         in the presence of integer overflow, in practice it should be good
13999         enough for all real-world two's-complement implementations, except
14000         for debugging environments that deliberately trap on integer
14001         overflow (e.g., gcc -ftrapv).
14002
14003         * lib/mktime.c (WRAPV): New macro.
14004         (SHR): Also check that long_int and time_t shift right in the
14005         usual way, before using the fast-but-unportable method.
14006         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14007         used.  The code already assumed two's complement, so there's
14008         no need to test for alternatives.  All uses removed.
14009         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14010         the C standard.  Problem reported by Rich Felker in
14011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14012         (twos_complement_arithmetic): Also check long_int and time_t.
14013         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14014         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14015         (__mktime_internal): Avoid integer overflow with unary subtraction
14016         in two instances where -1 - X is an adequate replacement for -X,
14017         since the calculations are approximate.
14018
14019 2011-01-29  Eric Blake  <eblake@redhat.com>
14020
14021         mktime: avoid infinite loop
14022         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14023         type; behavior is still undefined but portable to all known targets.
14024         Reported by Rich Felker.
14025
14026 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14027
14028         rename, unlink, same-inode: Relicense.
14029         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14030         * modules/unlink (License): Likewise.
14031         * modules/same-inode (License): Likewise.
14032
14033 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14034
14035         mktime: avoid problems on NetBSD 5 / i386
14036         * lib/mktime.c (long_int): New type.  This works around a problem
14037         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14038         but time_t is 64 bits, and where I expect the existing code is
14039         wrong in some cases.
14040         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14041         (ydhms_diff): Bring back the compile-time check for wide-enough
14042         year and yday.
14043
14044         mktime: fix misspelling in comment
14045         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14046         This merges all recent glibc changes of importance.
14047
14048 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14049
14050         move-if-change: cope with concurrent mv of identical file.
14051         * build-aux/move-if-change (CMPPROG): Accept environment
14052         variable as an override for `cmp'.
14053         (usage): Document CMPPROG.
14054         Adjust comparison to drop stdout.  Cope with failure of mv if
14055         the target file exists and is identical to the source, for
14056         parallel builds.
14057         Report from H.J. Lu against binutils in PR binutils/12283.
14058
14059 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14060
14061         * users.txt: Mention sharutils.
14062
14063 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14064
14065         * users.txt: Mention OATH Toolkit.
14066
14067 2011-01-27  Bruno Haible  <bruno@clisp.org>
14068
14069         Prepare for supporting FreeBSD 10.
14070         * build-aux/config.libpath: Remove handling of freebsd1*.
14071
14072 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14073
14074         Prepare for supporting FreeBSD 10.
14075         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14076         match FreeBSD 10.0.
14077
14078 2011-01-27  Bruno Haible  <bruno@clisp.org>
14079
14080         vma-iter, get-rusage-as: Add OpenBSD support.
14081         * modules/vma-iter (configure.ac): Test for mquery.
14082         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14083         * lib/vma-iter.c: Include <sys/mman.h>.
14084         (vma_iterate): Add an implementation based on mquery().
14085         * lib/resource-ext.h (get_rusage_as): Update comments.
14086         * lib/get-rusage-as.c: Likewise.
14087         * lib/get-rusage-data.c: Likewise.
14088
14089 2011-01-26  Karl Berry  <karl@gnu.org>
14090
14091         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14092         variables to make it easier to override the makeinfo program used.
14093
14094 2011-01-26  Eric Blake  <eblake@redhat.com>
14095
14096         fcntl: work around Haiku F_DUPFD bugs
14097         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14098         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14099         cloexec bit on duplication.
14100         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14101
14102 2011-01-26  Bruno Haible  <bruno@clisp.org>
14103
14104         Enable memory leak tests on AIX.
14105         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14106         * tests/test-fprintf-posix3.c (main): Likewise.
14107
14108 2011-01-26  Bruno Haible  <bruno@clisp.org>
14109
14110         Tests for module 'get-rusage-data'.
14111         * modules/get-rusage-data-tests: New file.
14112         * tests/test-get-rusage-data.c: New file.
14113
14114         New module 'get-rusage-data'.
14115         * lib/resource-ext.h (get_rusage_data): New declaration.
14116         * lib/get-rusage-data.c: New file.
14117         * modules/get-rusage-data: New file.
14118
14119 2011-01-25  Bruno Haible  <bruno@clisp.org>
14120
14121         get-rusage-as: Allow for easier testing.
14122         * lib/resource-ext.h (get_rusage_as): Add comment.
14123         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14124         (main): New function for interactive testing.
14125
14126 2011-01-25  Bruno Haible  <bruno@clisp.org>
14127
14128         vma-iter: Treat Haiku like BeOS.
14129         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14130         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14131
14132 2011-01-25  Eric Blake  <eblake@redhat.com>
14133
14134         c-stack: fix regression on cygwin when libsigsegv is present
14135         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14136
14137 2011-01-24  Bruno Haible  <bruno@clisp.org>
14138
14139         vma-iter: Avoid empty intervals.
14140         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14141         on an empty interval.
14142
14143 2011-01-24  Jim Meyering  <meyering@redhat.com>
14144
14145         u64: remove unnecessary #include
14146         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14147
14148 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14149
14150         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14151         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14152
14153 2011-01-23  Bruno Haible  <bruno@clisp.org>
14154
14155         New module 'vma-iter'.
14156         * lib/vma-iter.h: New file.
14157         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14158         * modules/vma-iter: New file.
14159         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14160         for get_rusage_as_via_iterator.
14161         (vma_iterate_callback): New function.
14162         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14163         * modules/get-rusage-as (Depends-on): Add vma-iter.
14164
14165 2011-01-23  Bruno Haible  <bruno@clisp.org>
14166
14167         uninorm: Tweak includes.
14168         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14169         Reported by Jim Meyering.
14170
14171 2011-01-23  Bruno Haible  <bruno@clisp.org>
14172
14173         get-rusage-as: Improve on NetBSD.
14174         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14175         /proc, like on FreeBSD.
14176
14177 2011-01-23  Jim Meyering  <meyering@redhat.com>
14178
14179         xreadlink.h: remove unnecessary #include
14180         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14181
14182         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14183         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14184
14185 2011-01-23  Bruno Haible  <bruno@clisp.org>
14186
14187         get-rusage-as: Fix bug.
14188         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14189         original limit when aborting the first loop.
14190
14191 2011-01-23  Bruno Haible  <bruno@clisp.org>
14192
14193         wctype: Ensure valid C syntax.
14194         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14195         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14196
14197 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14198
14199         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14201         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14202         as they are needed only for configure's test case.
14203         This removes two unnecessary symbols from config.h.
14204
14205         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14206         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14208         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14209         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14210         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14211         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14212         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14213         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14214         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14215         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14216         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14217         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14218         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14219         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14220         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14221         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14222         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14223
14224 2011-01-21  Eric Blake  <eblake@redhat.com>
14225
14226         maintainer-makefile: work with older git for submodule check
14227         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14228         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14229         Reported by Matthias Bolte.
14230
14231         bootstrap: minor portability fixes
14232         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14233         (usage): Omit leading capital and trailing . on help phrases, per
14234         GNU Coding Standards.
14235         (check_versions, top level): Prefix messages with script name.
14236
14237 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14238
14239         bootstrap: support --no-git option
14240         * build-aux/bootstrap: Add --no-git option, to be used when
14241         --gnulib-srcdir points to the exact desired checkout.
14242
14243 2011-01-21  Eric Blake  <eblake@redhat.com>
14244
14245         strerror_r-posix: work with glibc 2.13
14246         * lib/strerror_r.c (strerror_r): Fix return type.
14247
14248 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14249             Bruno Haible  <bruno@clisp.org>
14250
14251         uN_strstr: New unit tests.
14252         * modules/unistr/u8-strstr-tests: New file.
14253         * modules/unistr/u16-strstr-tests: New file.
14254         * modules/unistr/u32-strstr-tests: New file.
14255         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14256         * tests/unistr/test-u8-strstr.c: New file.
14257         * tests/unistr/test-u16-strstr.c: New file.
14258         * tests/unistr/test-u32-strstr.c: New file.
14259
14260 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14261             Bruno Haible  <bruno@clisp.org>
14262
14263         Make uN_strstr functions O(n) worst-case.
14264         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14265         16-bit and 32-bit unit cases, use the unibyte algorithm from
14266         lib/mbsstr.c.
14267         * lib/unistr/u8-strstr.c: Include <string.h>.
14268         (UNIT_IS_UINT8_T): New macro.
14269         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14270         (U_STRLEN, U_STRNLEN): New macros.
14271         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14272         (U_STRLEN, U_STRNLEN): New macros.
14273         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14274         (configure.ac): Update required libunistring version.
14275         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14276         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14277         malloca.
14278         (configure.ac): Update required libunistring version.
14279         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14280         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14281         malloca.
14282         (configure.ac): Update required libunistring version.
14283
14284 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14285             Bruno Haible  <bruno@clisp.org>
14286
14287         Prepare for faster uN_strstr functions.
14288         * lib/str-kmp.h: Support definable UNITs.
14289         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14290         needle_len argument.
14291         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14292         * lib/mbscasestr.c (mbscasestr): Likewise.
14293
14294 2011-01-21  Pádraig Brady <P@draigBrady.com>
14295
14296         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14297         * tests/test-malloca.c (main): Unset the environment variable
14298         to greatly speed up the test.
14299         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14300         * modules/malloca-tests: Depend on unsetenv.
14301
14302 2011-01-21  Pádraig Brady <P@draigBrady.com>
14303
14304         ignore-value: remove stdint dependency
14305         * lib/ignore-value.h: Remove <stdint.h>
14306         * modules/ignore-value: Remove stdint dependency.
14307
14308 2011-01-21  Jim Meyering  <meyering@redhat.com>
14309
14310         maint.mk: adjust variable name to be consistent with other gl_ vars
14311         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14312         to be lower case.
14313
14314 2011-01-20  Jim Meyering  <meyering@redhat.com>
14315
14316         maint.mk: make "check" depend on public-submodule-commit by default
14317         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14318
14319 2011-01-20  Bruno Haible  <bruno@clisp.org>
14320
14321         mbfile, mbiter: Complete change from 2008-12-21.
14322         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14323         * m4/mbiter.m4 (gl_MBITER): Likewise.
14324
14325 2011-01-20  Jim Meyering  <meyering@redhat.com>
14326
14327         init.sh: insert space between each function name and "()"
14328         * tests/init.sh: Make it a little easier to see that a function's
14329         name is "warn_", and not "warn" when looking at the first part of
14330         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14331
14332 2011-01-20  Jim Meyering  <meyering@redhat.com>
14333
14334         mountlist: clean up code formatting
14335         * lib/mountlist.c (read_file_system_list): Split a long line,
14336         correct bracing style, use NULL in place of "(struct statfs *)0",
14337         don't parenthesize return value, add spaces around "=" and after
14338         ";-in-for-stmt".
14339
14340 2011-01-14  Markus Duft <mduft@gentoo.org>
14341
14342         mountlist: add support for Interix
14343         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14344         Apply statvfs to all entries of /dev/fs.
14345         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14346         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14347
14348 2011-01-20  Jim Meyering  <meyering@redhat.com>
14349
14350         maint.mk: improve the public-submodule-commit rule
14351         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14352         to suppress printing of its commands... unless V=1.
14353         Add git submodule's --quiet option to suppress printing of e.g.,
14354         "Entering gnulib" output.
14355         "cd" into $(srcdir) before running git submodule.
14356
14357 2011-01-20  Bruno Haible  <bruno@clisp.org>
14358
14359         include_next: Fix bug introduced on 2011-01-18.
14360         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14361         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14362         ac_cv_header_... variable if the second argument is not 'check'.
14363         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14364         gl_NEXT_HEADERS_INTERNAL.
14365
14366 2011-01-20  Bruno Haible  <bruno@clisp.org>
14367
14368         Allow the user to avoid the GNULIB_TEST_* macros.
14369         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14370         Suggested by Paul Eggert.
14371
14372 2011-01-14  Jim Meyering  <meyering@redhat.com>
14373
14374         bootstrap: avoid failure when there is no .gitmodules file
14375         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14376         has been assigned to, even when its value is the empty string.
14377         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14378         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14379         Reported by John W. Eaton <jwe@gnu.org>.
14380
14381 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14382
14383         assume <ctype.h>, ..., <time.h> exist
14384         For years gnulib has been assuming the existence of the headers
14385         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14386         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14387         them, since they don't appear to be needed.
14388         * README (Portability guidelines): Document this.
14389         * lib/flock.c: Assume <fcntl.h> exists.
14390         * lib/regex_internal.h: Assume <locale.h> exists.
14391         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14392         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14393         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14394         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14395         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14396         * m4/regex.m4 (gl_REGEX): Likewise.
14397         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14398         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14399         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14400         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14401         * tests/test-argp.c: Likewise.
14402         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14403
14404         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14405         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14406         AA_APPLE_UNIVERSAL_BUILD.  See
14407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14408         * NEWS: Document this.
14409
14410 2011-01-19  Eric Blake  <eblake@redhat.com>
14411
14412         c-stack: assume stack overflow if SA_SIGINFO unsupported
14413         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14414         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14415         sigaction will work.
14416         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14417         behavior match Linux.
14418         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14419
14420         stdbool-tests: accomodate Haiku
14421         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14422
14423         binary-io: fix O_TEXT on Haiku
14424         * modules/binary-io (Depends-on): Add fcntl-h.
14425         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14426         than blindly undefining O_TEXT.
14427         Reported by Scott McCreary.
14428
14429 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14430
14431         include_next: do not check for standard headers like stddef.h
14432
14433         I found this problem when modifying Emacs to use gnulib.
14434         I noticed that it added HAVE_STDDEF_H to config.h, even though
14435         gnulib always assumes <stddef.h> exists as per README and this
14436         symbol is unnecessary.
14437         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14438         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14439         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14440         faster for headers like stddef.h that are known to exist.
14441         (gl_CHECK_NEXT_HEADERS): Use it.
14442         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14443         rather than gl_CHECK_NEXT_HEADERS.
14444         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14445         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14446
14447 2011-01-18  Eric Blake  <eblake@redhat.com>
14448
14449         ansi-c++-opt: skip C++ dependency style if C++ is unused
14450         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14451         tests when we know C++ compilation is not desired.
14452         Reported by Scott McCreary.
14453
14454 2011-01-18  Bruno Haible  <bruno@clisp.org>
14455
14456         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14457         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14458         (main): Perform test also when getrlimit and setrlimit don't exist or
14459         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14460         limiting the address space size using setrlimit, compare the address
14461         space size before and after the the test.
14462         * tests/test-dprintf-posix2.c: Likewise.
14463         * tests/test-fprintf-posix3.sh: Update skip messages.
14464         * tests/test-dprintf-posix2.sh: Likewise.
14465         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14466         * modules/dprintf-posix-tests (Depends-on): Likewise.
14467         Reported by Bruce Korb <bkorb@gnu.org> and
14468         Gary V. Vaughan <gary@gnu.org>.
14469
14470 2011-01-18  Bruno Haible  <bruno@clisp.org>
14471
14472         get-rusage-as: Improvement for Cygwin.
14473         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14474         areas that are merely reserved.
14475
14476 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14477
14478         strftime: remove dependencies on multibyte modules
14479
14480         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14481         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14482         only if __osf__ is defined, and I suspect OSF doesn't need these
14483         other modules.  If my guess is wrong, we'll need to come up with a
14484         variant of strftime that doesn't need the multibyte modules.
14485
14486         I discovered this problem when attempting modify Emacs to use the
14487         strftime module.  With the previous gnulib, this caused Emacs to
14488         need 31 new files, ranging from lib/config.charset to
14489         m4/wint_t.m4.  This was overkill and I expect would be offputting
14490         to the Emacs maintainers.  After this change, only 6 new files are
14491         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14492         stdbool.m4, and tm_gmtoff.m4.
14493
14494         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14495         Suggested by Bruno Haible in
14496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14497         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14498         and do not check for wchar.h.
14499         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14500         (Depends-on): Remove mbrlen, mbsinit, wchar.
14501
14502 2011-01-18  Bruno Haible  <bruno@clisp.org>
14503
14504         Tests for module 'get-rusage-as'.
14505         * modules/get-rusage-as-tests: New file.
14506         * tests/test-get-rusage-as.c: New file.
14507
14508         New module 'get-rusage-as'.
14509         * modules/get-rusage-as: New file.
14510         * lib/resource-ext.h: New file.
14511         * lib/get-rusage-as.c: New file.
14512
14513 2011-01-17  Eric Blake  <eblake@redhat.com>
14514
14515         sigaction: relax license from LGPLv3+ to LGPLv2+
14516         * modules/sigaction (License): Relax to LGPLv2+.
14517
14518 2011-01-14  Bruno Haible  <bruno@clisp.org>
14519
14520         filemode: Make function declarations usable in C++ mode.
14521         * lib/filemode.h: Enclose function declarations in extern "C" block.
14522         Reported by John W. Eaton <jwe@gnu.org>.
14523
14524 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14525
14526         save-cwd: no longer include "xgetcwd.h"
14527         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14528         This avoids a compilation failure in projects that use save-cwd
14529         without also using the xgetcwd module.
14530
14531 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14532
14533         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14534         This is so that a program like Emacs, which needs only dtoastr,
14535         does not have to bother with distributing and compiling ftoastr
14536         and ldtoastr.
14537         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14538         * modules/dtoastr, modules/ldtoastr: New files.
14539         * modules/ftoastr: Now works just for 'float'.
14540         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14541         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14542         dtoastr.c, ldtoastr.c.
14543
14544 2011-01-11  Jim Meyering  <meyering@redhat.com>
14545
14546         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14547         There is no need to work around the lack of the fchdir function,
14548         since gnulib can now provide a replacement when required.
14549         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14550         * modules/save-cwd (Depends-on): Add fchdir.
14551
14552 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14553
14554         openat, save-cwd: avoid xmalloc
14555
14556         This removes a direct (but undocumented) dependency of openat on
14557         xalloc, along with an indirect dependency via save-cwd.  It also
14558         removes a dependency of save-cwd on xgetcwd, and thereby
14559         indirectly on xalloc.  This change causes the openat substitute
14560         to fall back on save_cwd when memory is tight, and for save_cwd to
14561         fail instead of dying when memory is tight, but that's good enough.
14562         Problem and initial idea for fix reported by Bastien Roucaries in
14563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14564
14565         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14566         xalloc.h (for xmalloc).
14567         (openat_proc_name): Use malloc, not xmalloc.
14568         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14569         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14570
14571         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14572         This avoids heap allocation for file names whose lengths are in
14573         the range 512..1023, with the upper bound increasing to at most
14574         4031 depending on the platform's PATH_MAX.  (We do not want
14575         pathmax.h here as it might supply a non-constant PATH_MAX.)
14576         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14577         Perhaps they should be moved to malloca.h?
14578         (OPENAT_BUFFER_SIZE): Use them.
14579
14580 2011-01-10  Bruno Haible  <bruno@clisp.org>
14581
14582         doc: Update users.txt.
14583         * users.txt: Add recutils.
14584
14585 2011-01-09  Karl Berry  <karl@gnu.org>
14586
14587         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14588
14589         * doc/configmake.texi: New file.
14590         * doc/gnulib.texi: Include it.
14591         * modules/configmake: Move documentation from here.
14592
14593 2011-01-09  Bruno Haible  <bruno@clisp.org>
14594
14595         Update to Unicode 6.0.0.
14596         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14597         (get_lbp): Update for Unicode 6.0.0.
14598         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14599         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14600         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14601         U+11001, U+11038..U+11046. Remove U+06DE.
14602         (uc_width): Fix bounds of planes.
14603         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14604         lib/uniwidth/width.c.
14605         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14606         trailing whitespace removed.
14607         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14608         without comments, but with the original copyright notice.
14609         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14610         * lib/unicase/ignorable.h: Likewise.
14611         * lib/unicase/tocasefold.h: Likewise.
14612         * lib/unicase/tolower.h: Likewise.
14613         * lib/unicase/totitle.h: Likewise.
14614         * lib/unicase/toupper.h: Likewise.
14615         * lib/unictype/bidi_of.h: Likewise.
14616         * lib/unictype/blocks.h: Likewise.
14617         * lib/unictype/categ_C.h: Likewise.
14618         * lib/unictype/categ_Cn.h: Likewise.
14619         * lib/unictype/categ_L.h: Likewise.
14620         * lib/unictype/categ_Ll.h: Likewise.
14621         * lib/unictype/categ_Lm.h: Likewise.
14622         * lib/unictype/categ_Lo.h: Likewise.
14623         * lib/unictype/categ_Lu.h: Likewise.
14624         * lib/unictype/categ_M.h: Likewise.
14625         * lib/unictype/categ_Mc.h: Likewise.
14626         * lib/unictype/categ_Me.h: Likewise.
14627         * lib/unictype/categ_Mn.h: Likewise.
14628         * lib/unictype/categ_N.h: Likewise.
14629         * lib/unictype/categ_Nd.h: Likewise.
14630         * lib/unictype/categ_No.h: Likewise.
14631         * lib/unictype/categ_P.h: Likewise.
14632         * lib/unictype/categ_Po.h: Likewise.
14633         * lib/unictype/categ_S.h: Likewise.
14634         * lib/unictype/categ_Sc.h: Likewise.
14635         * lib/unictype/categ_Sk.h: Likewise.
14636         * lib/unictype/categ_Sm.h: Likewise.
14637         * lib/unictype/categ_So.h: Likewise.
14638         * lib/unictype/categ_of.h: Likewise.
14639         * lib/unictype/combining.h: Likewise.
14640         * lib/unictype/ctype_alnum.h: Likewise.
14641         * lib/unictype/ctype_alpha.h: Likewise.
14642         * lib/unictype/ctype_graph.h: Likewise.
14643         * lib/unictype/ctype_lower.h: Likewise.
14644         * lib/unictype/ctype_print.h: Likewise.
14645         * lib/unictype/ctype_punct.h: Likewise.
14646         * lib/unictype/ctype_upper.h: Likewise.
14647         * lib/unictype/decdigit.h: Likewise.
14648         * lib/unictype/digit.h: Likewise.
14649         * lib/unictype/numeric.h: Likewise.
14650         * lib/unictype/pr_alphabetic.h: Likewise.
14651         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14652         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14653         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14654         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14655         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14656         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14657         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14658         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14659         * lib/unictype/pr_case_ignorable.h: Likewise.
14660         * lib/unictype/pr_cased.h: Likewise.
14661         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14662         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14663         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14664         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14665         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14666         * lib/unictype/pr_combining.h: Likewise.
14667         * lib/unictype/pr_composite.h: Likewise.
14668         * lib/unictype/pr_currency_symbol.h: Likewise.
14669         * lib/unictype/pr_decimal_digit.h: Likewise.
14670         * lib/unictype/pr_deprecated.h: Likewise.
14671         * lib/unictype/pr_format_control.h: Likewise.
14672         * lib/unictype/pr_grapheme_base.h: Likewise.
14673         * lib/unictype/pr_grapheme_extend.h: Likewise.
14674         * lib/unictype/pr_grapheme_link.h: Likewise.
14675         * lib/unictype/pr_id_continue.h: Likewise.
14676         * lib/unictype/pr_id_start.h: Likewise.
14677         * lib/unictype/pr_ideographic.h: Likewise.
14678         * lib/unictype/pr_lowercase.h: Likewise.
14679         * lib/unictype/pr_math.h: Likewise.
14680         * lib/unictype/pr_numeric.h: Likewise.
14681         * lib/unictype/pr_other_alphabetic.h: Likewise.
14682         * lib/unictype/pr_other_id_continue.h: Likewise.
14683         * lib/unictype/pr_other_math.h: Likewise.
14684         * lib/unictype/pr_punctuation.h: Likewise.
14685         * lib/unictype/pr_sentence_terminal.h: Likewise.
14686         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14687         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14688         * lib/unictype/pr_unified_ideograph.h: Likewise.
14689         * lib/unictype/pr_uppercase.h: Likewise.
14690         * lib/unictype/pr_xid_continue.h: Likewise.
14691         * lib/unictype/pr_xid_start.h: Likewise.
14692         * lib/unictype/scripts.h: Likewise.
14693         * lib/unictype/scripts_byname.gperf: Likewise.
14694         * lib/unictype/sy_java_ident.h: Likewise.
14695         * lib/unigbrk/gbrkprop.h: Likewise.
14696         * lib/unilbrk/lbrkprop1.h: Likewise.
14697         * lib/unilbrk/lbrkprop2.h: Likewise.
14698         * lib/uninorm/decomposition-table2.h: Likewise.
14699         * lib/uniwbrk/wbrkprop.h: Likewise.
14700         * tests/unicase/test-cased.c: Likewise.
14701         * tests/unicase/test-ignorable.c: Likewise.
14702         * tests/unicase/test-uc_tolower.c: Likewise.
14703         * tests/unicase/test-uc_totitle.c: Likewise.
14704         * tests/unicase/test-uc_toupper.c: Likewise.
14705         * tests/unictype/test-categ_C.c: Likewise.
14706         * tests/unictype/test-categ_Cn.c: Likewise.
14707         * tests/unictype/test-categ_L.c: Likewise.
14708         * tests/unictype/test-categ_Ll.c: Likewise.
14709         * tests/unictype/test-categ_Lm.c: Likewise.
14710         * tests/unictype/test-categ_Lo.c: Likewise.
14711         * tests/unictype/test-categ_Lu.c: Likewise.
14712         * tests/unictype/test-categ_M.c: Likewise.
14713         * tests/unictype/test-categ_Mc.c: Likewise.
14714         * tests/unictype/test-categ_Me.c: Likewise.
14715         * tests/unictype/test-categ_Mn.c: Likewise.
14716         * tests/unictype/test-categ_N.c: Likewise.
14717         * tests/unictype/test-categ_Nd.c: Likewise.
14718         * tests/unictype/test-categ_No.c: Likewise.
14719         * tests/unictype/test-categ_P.c: Likewise.
14720         * tests/unictype/test-categ_Po.c: Likewise.
14721         * tests/unictype/test-categ_S.c: Likewise.
14722         * tests/unictype/test-categ_Sc.c: Likewise.
14723         * tests/unictype/test-categ_Sk.c: Likewise.
14724         * tests/unictype/test-categ_Sm.c: Likewise.
14725         * tests/unictype/test-categ_So.c: Likewise.
14726         * tests/unictype/test-ctype_alnum.c: Likewise.
14727         * tests/unictype/test-ctype_alpha.c: Likewise.
14728         * tests/unictype/test-ctype_graph.c: Likewise.
14729         * tests/unictype/test-ctype_lower.c: Likewise.
14730         * tests/unictype/test-ctype_print.c: Likewise.
14731         * tests/unictype/test-ctype_punct.c: Likewise.
14732         * tests/unictype/test-ctype_upper.c: Likewise.
14733         * tests/unictype/test-decdigit.h: Likewise.
14734         * tests/unictype/test-digit.h: Likewise.
14735         * tests/unictype/test-numeric.h: Likewise.
14736         * tests/unictype/test-pr_alphabetic.c: Likewise.
14737         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14738         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14739         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14740         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14741         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14742         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14743         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14744         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14745         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14746         * tests/unictype/test-pr_cased.c: Likewise.
14747         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14748         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14749         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14750         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14751         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14752         * tests/unictype/test-pr_combining.c: Likewise.
14753         * tests/unictype/test-pr_composite.c: Likewise.
14754         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14755         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14756         * tests/unictype/test-pr_deprecated.c: Likewise.
14757         * tests/unictype/test-pr_format_control.c: Likewise.
14758         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14759         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14760         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14761         * tests/unictype/test-pr_id_continue.c: Likewise.
14762         * tests/unictype/test-pr_id_start.c: Likewise.
14763         * tests/unictype/test-pr_ideographic.c: Likewise.
14764         * tests/unictype/test-pr_lowercase.c: Likewise.
14765         * tests/unictype/test-pr_math.c: Likewise.
14766         * tests/unictype/test-pr_numeric.c: Likewise.
14767         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14768         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14769         * tests/unictype/test-pr_other_math.c: Likewise.
14770         * tests/unictype/test-pr_punctuation.c: Likewise.
14771         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14772         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14773         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14774         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14775         * tests/unictype/test-pr_uppercase.c: Likewise.
14776         * tests/unictype/test-pr_xid_continue.c: Likewise.
14777         * tests/unictype/test-pr_xid_start.c: Likewise.
14778         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14779         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14780         changes.
14781         * lib/unictype/categ_Cc.h: Likewise.
14782         * lib/unictype/categ_Cf.h: Likewise.
14783         * lib/unictype/categ_Co.h: Likewise.
14784         * lib/unictype/categ_Cs.h: Likewise.
14785         * lib/unictype/categ_Lt.h: Likewise.
14786         * lib/unictype/categ_Nl.h: Likewise.
14787         * lib/unictype/categ_Pc.h: Likewise.
14788         * lib/unictype/categ_Pd.h: Likewise.
14789         * lib/unictype/categ_Pe.h: Likewise.
14790         * lib/unictype/categ_Pf.h: Likewise.
14791         * lib/unictype/categ_Pi.h: Likewise.
14792         * lib/unictype/categ_Ps.h: Likewise.
14793         * lib/unictype/categ_Z.h: Likewise.
14794         * lib/unictype/categ_Zl.h: Likewise.
14795         * lib/unictype/categ_Zp.h: Likewise.
14796         * lib/unictype/categ_Zs.h: Likewise.
14797         * lib/unictype/ctype_blank.h: Likewise.
14798         * lib/unictype/ctype_cntrl.h: Likewise.
14799         * lib/unictype/ctype_digit.h: Likewise.
14800         * lib/unictype/ctype_space.h: Likewise.
14801         * lib/unictype/ctype_xdigit.h: Likewise.
14802         * lib/unictype/mirror.h: Likewise.
14803         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14804         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14805         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14806         * lib/unictype/pr_bidi_control.h: Likewise.
14807         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14808         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14809         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14810         * lib/unictype/pr_bidi_pdf.h: Likewise.
14811         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14812         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14813         * lib/unictype/pr_dash.h: Likewise.
14814         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14815         * lib/unictype/pr_diacritic.h: Likewise.
14816         * lib/unictype/pr_extender.h: Likewise.
14817         * lib/unictype/pr_hex_digit.h: Likewise.
14818         * lib/unictype/pr_hyphen.h: Likewise.
14819         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14820         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14821         * lib/unictype/pr_ignorable_control.h: Likewise.
14822         * lib/unictype/pr_iso_control.h: Likewise.
14823         * lib/unictype/pr_join_control.h: Likewise.
14824         * lib/unictype/pr_left_of_pair.h: Likewise.
14825         * lib/unictype/pr_line_separator.h: Likewise.
14826         * lib/unictype/pr_logical_order_exception.h: Likewise.
14827         * lib/unictype/pr_non_break.h: Likewise.
14828         * lib/unictype/pr_not_a_character.h: Likewise.
14829         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14830         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14831         * lib/unictype/pr_other_id_start.h: Likewise.
14832         * lib/unictype/pr_other_lowercase.h: Likewise.
14833         * lib/unictype/pr_other_uppercase.h: Likewise.
14834         * lib/unictype/pr_paired_punctuation.h: Likewise.
14835         * lib/unictype/pr_paragraph_separator.h: Likewise.
14836         * lib/unictype/pr_pattern_syntax.h: Likewise.
14837         * lib/unictype/pr_pattern_white_space.h: Likewise.
14838         * lib/unictype/pr_private_use.h: Likewise.
14839         * lib/unictype/pr_quotation_mark.h: Likewise.
14840         * lib/unictype/pr_radical.h: Likewise.
14841         * lib/unictype/pr_soft_dotted.h: Likewise.
14842         * lib/unictype/pr_space.h: Likewise.
14843         * lib/unictype/pr_titlecase.h: Likewise.
14844         * lib/unictype/pr_variation_selector.h: Likewise.
14845         * lib/unictype/pr_white_space.h: Likewise.
14846         * lib/unictype/pr_zero_width.h: Likewise.
14847         * lib/unictype/sy_c_ident.h: Likewise.
14848         * lib/unictype/sy_c_whitespace.h: Likewise.
14849         * lib/unictype/sy_java_whitespace.h: Likewise.
14850         * lib/uninorm/composition-table.gperf: Likewise.
14851         * lib/uninorm/decomposition-table1.h: Likewise.
14852         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14853         LB8.
14854         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14855         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14856         * modules/unictype/*: Bump version number of expected libunistring
14857         version.
14858
14859 2011-01-09  Bruno Haible  <bruno@clisp.org>
14860
14861         Update to Unicode 5.2.0.
14862         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14863         trailing whitespace removed.
14864
14865 2011-01-09  Bruno Haible  <bruno@clisp.org>
14866
14867         New Unicode character properties, from Unicode 5.2.0.
14868         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14869         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14870         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14871         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14872         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14873         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14874         uc_is_property_cased, uc_is_property_case_ignorable,
14875         uc_is_property_changes_when_lowercased,
14876         uc_is_property_changes_when_uppercased,
14877         uc_is_property_changes_when_titlecased,
14878         uc_is_property_changes_when_casefolded,
14879         uc_is_property_changes_when_casemapped): New declarations.
14880         * lib/unictype/pr_byname.gperf: Add the new properties.
14881         * modules/unictype/property-byname (Depends-on): Depend on the new
14882         properties modules.
14883         * modules/unictype/property-all (Depends-on): Likewise.
14884         * MODULES.html.sh (Unicode string functions): Add
14885         unictype/property-case-ignorable, unictype/property-cased,
14886         unictype/property-changes-when-casefolded,
14887         unictype/property-changes-when-casemapped,
14888         unictype/property-changes-when-lowercased,
14889         unictype/property-changes-when-titlecased,
14890         unictype/property-changes-when-uppercased.
14891
14892         New module 'unictype/property-changes-when-casemapped'.
14893         * modules/unictype/property-changes-when-casemapped: New file.
14894         * lib/unictype/pr_changes_when_casemapped.c: New file.
14895         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14896         generated by gen-uni-tables.
14897         * modules/unictype/property-changes-when-casemapped-tests: New file.
14898         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14899         automatically generated by gen-uni-tables.
14900
14901         New module 'unictype/property-changes-when-casefolded'.
14902         * modules/unictype/property-changes-when-casefolded: New file.
14903         * lib/unictype/pr_changes_when_casefolded.c: New file.
14904         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14905         generated by gen-uni-tables.
14906         * modules/unictype/property-changes-when-casefolded-tests: New file.
14907         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14908         automatically generated by gen-uni-tables.
14909
14910         New module 'unictype/property-changes-when-titlecased'.
14911         * modules/unictype/property-changes-when-titlecased: New file.
14912         * lib/unictype/pr_changes_when_titlecased.c: New file.
14913         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14914         generated by gen-uni-tables.
14915         * modules/unictype/property-changes-when-titlecased-tests: New file.
14916         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14917         automatically generated by gen-uni-tables.
14918
14919         New module 'unictype/property-changes-when-uppercased'.
14920         * modules/unictype/property-changes-when-uppercased: New file.
14921         * lib/unictype/pr_changes_when_uppercased.c: New file.
14922         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14923         generated by gen-uni-tables.
14924         * modules/unictype/property-changes-when-uppercased-tests: New file.
14925         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14926         automatically generated by gen-uni-tables.
14927
14928         New module 'unictype/property-changes-when-lowercased'.
14929         * modules/unictype/property-changes-when-lowercased: New file.
14930         * lib/unictype/pr_changes_when_lowercased.c: New file.
14931         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14932         generated by gen-uni-tables.
14933         * modules/unictype/property-changes-when-lowercased-tests: New file.
14934         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14935         automatically generated by gen-uni-tables.
14936
14937         New module 'unictype/property-case-ignorable'.
14938         * modules/unictype/property-case-ignorable: New file.
14939         * lib/unictype/pr_case_ignorable.c: New file.
14940         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14941         by gen-uni-tables.
14942         * modules/unictype/property-case-ignorable-tests: New file.
14943         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14944         generated by gen-uni-tables.
14945
14946         New module 'unictype/property-cased'.
14947         * modules/unictype/property-cased: New file.
14948         * lib/unictype/pr_cased.c: New file.
14949         * lib/unictype/pr_cased.h: New file, automatically generated by
14950         gen-uni-tables.
14951         * modules/unictype/property-cased-tests: New file.
14952         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14953         gen-uni-tables.
14954
14955 2011-01-09  Bruno Haible  <bruno@clisp.org>
14956
14957         Update to Unicode 5.2.0.
14958         * lib/gen-uni-tables.c (output_predicate, output_category,
14959         output_combclass, output_bidi_category, output_decimal_digit_test,
14960         output_decimal_digit, output_digit_test, output_digit,
14961         output_numeric_test, output_numeric, output_mirror, output_scripts,
14962         output_scripts_byname, output_blocks, output_ident_category): Fix
14963         comment header.
14964         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14965         get_wbp.
14966         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14967         items.
14968         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14969         Changes_When_Lowercased, Changes_When_Uppercased,
14970         Changes_When_Titlecased, Changes_When_Casefolded,
14971         Changes_When_Casemapped.
14972         (is_property_alphabetic, is_property_default_ignorable_code_point):
14973         Update for Unicode 5.2.0.
14974         (is_property_cased, is_property_case_ignorable,
14975         is_property_changes_when_lowercased,
14976         is_property_changes_when_uppercased,
14977         is_property_changes_when_titlecased,
14978         is_property_changes_when_casefolded,
14979         is_property_changes_when_casemapped): New functions.
14980         (output_properties): Output also the properties cased, case_ignorable,
14981         changes_when_lowercased, changes_when_uppercased,
14982         changes_when_titlecased, changes_when_casefolded,
14983         changes_when_casemapped.
14984         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14985         Unicode TR#11 revision 17 -> 19.
14986         (LBP_CP): New enumeration value.
14987         (LBP_*): Adjust values accordingly.
14988         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14989         TR#14 revision 22 -> 24.
14990         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14991         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14992         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14993         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14994         is_WBP_MIDLETTER.
14995         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14996         the code1 and code2 of each composition rule.
14997         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14998         * lib/unicase/ignorable.h: Likewise.
14999         * lib/unicase/tocasefold.h: Likewise.
15000         * lib/unicase/tolower.h: Likewise.
15001         * lib/unicase/totitle.h: Likewise.
15002         * lib/unicase/toupper.h: Likewise.
15003         * lib/unictype/bidi_of.h: Likewise.
15004         * lib/unictype/blocks.h: Likewise.
15005         * lib/unictype/categ_C.h: Likewise.
15006         * lib/unictype/categ_Cf.h: Likewise.
15007         * lib/unictype/categ_Cn.h: Likewise.
15008         * lib/unictype/categ_L.h: Likewise.
15009         * lib/unictype/categ_Ll.h: Likewise.
15010         * lib/unictype/categ_Lm.h: Likewise.
15011         * lib/unictype/categ_Lo.h: Likewise.
15012         * lib/unictype/categ_Lu.h: Likewise.
15013         * lib/unictype/categ_M.h: Likewise.
15014         * lib/unictype/categ_Mc.h: Likewise.
15015         * lib/unictype/categ_Mn.h: Likewise.
15016         * lib/unictype/categ_N.h: Likewise.
15017         * lib/unictype/categ_Nd.h: Likewise.
15018         * lib/unictype/categ_Nl.h: Likewise.
15019         * lib/unictype/categ_No.h: Likewise.
15020         * lib/unictype/categ_P.h: Likewise.
15021         * lib/unictype/categ_Pd.h: Likewise.
15022         * lib/unictype/categ_Po.h: Likewise.
15023         * lib/unictype/categ_S.h: Likewise.
15024         * lib/unictype/categ_Sc.h: Likewise.
15025         * lib/unictype/categ_So.h: Likewise.
15026         * lib/unictype/categ_of.h: Likewise.
15027         * lib/unictype/combining.h: Likewise.
15028         * lib/unictype/ctype_alnum.h: Likewise.
15029         * lib/unictype/ctype_alpha.h: Likewise.
15030         * lib/unictype/ctype_graph.h: Likewise.
15031         * lib/unictype/ctype_lower.h: Likewise.
15032         * lib/unictype/ctype_print.h: Likewise.
15033         * lib/unictype/ctype_punct.h: Likewise.
15034         * lib/unictype/ctype_upper.h: Likewise.
15035         * lib/unictype/decdigit.h: Likewise.
15036         * lib/unictype/digit.h: Likewise.
15037         * lib/unictype/numeric.h: Likewise.
15038         * lib/unictype/pr_alphabetic.h: Likewise.
15039         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15040         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15041         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15042         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15043         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15044         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15045         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15046         * lib/unictype/pr_combining.h: Likewise.
15047         * lib/unictype/pr_composite.h: Likewise.
15048         * lib/unictype/pr_currency_symbol.h: Likewise.
15049         * lib/unictype/pr_dash.h: Likewise.
15050         * lib/unictype/pr_decimal_digit.h: Likewise.
15051         * lib/unictype/pr_deprecated.h: Likewise.
15052         * lib/unictype/pr_diacritic.h: Likewise.
15053         * lib/unictype/pr_extender.h: Likewise.
15054         * lib/unictype/pr_grapheme_base.h: Likewise.
15055         * lib/unictype/pr_grapheme_extend.h: Likewise.
15056         * lib/unictype/pr_grapheme_link.h: Likewise.
15057         * lib/unictype/pr_id_continue.h: Likewise.
15058         * lib/unictype/pr_id_start.h: Likewise.
15059         * lib/unictype/pr_ideographic.h: Likewise.
15060         * lib/unictype/pr_ignorable_control.h: Likewise.
15061         * lib/unictype/pr_logical_order_exception.h: Likewise.
15062         * lib/unictype/pr_lowercase.h: Likewise.
15063         * lib/unictype/pr_numeric.h: Likewise.
15064         * lib/unictype/pr_other_alphabetic.h: Likewise.
15065         * lib/unictype/pr_punctuation.h: Likewise.
15066         * lib/unictype/pr_sentence_terminal.h: Likewise.
15067         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15068         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15069         * lib/unictype/pr_unified_ideograph.h: Likewise.
15070         * lib/unictype/pr_uppercase.h: Likewise.
15071         * lib/unictype/pr_xid_continue.h: Likewise.
15072         * lib/unictype/pr_xid_start.h: Likewise.
15073         * lib/unictype/pr_zero_width.h: Likewise.
15074         * lib/unictype/scripts.h: Likewise.
15075         * lib/unictype/scripts_byname.gperf: Likewise.
15076         * lib/unictype/sy_java_ident.h: Likewise.
15077         * lib/unigbrk/gbrkprop.h: Likewise.
15078         * lib/unilbrk/lbrkprop1.h: Likewise.
15079         * lib/unilbrk/lbrkprop2.h: Likewise.
15080         * lib/unilbrk/lbrktables.h: Likewise.
15081         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15082         LBP_CP. Implement rule LB30.
15083         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15084         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15085         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15086         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15087         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15088         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15089         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15090         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15091         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15092         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15093         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15094         bits instead of 16 bits in the code1 and code2 of each composition
15095         rule.
15096         (uc_composition): Update for Unicode 5.2.0.
15097         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15098         * lib/uninorm/decomposition-table2.h: Likewise.
15099         * lib/uniwbrk/wbrkprop.h: Likewise.
15100         * tests/unicase/test-cased.c: Likewise.
15101         * tests/unicase/test-ignorable.c: Likewise.
15102         * tests/unicase/test-uc_tolower.c: Likewise.
15103         * tests/unicase/test-uc_totitle.c: Likewise.
15104         * tests/unicase/test-uc_toupper.c: Likewise.
15105         * tests/unictype/test-categ_C.c: Likewise.
15106         * tests/unictype/test-categ_Cf.c: Likewise.
15107         * tests/unictype/test-categ_Cn.c: Likewise.
15108         * tests/unictype/test-categ_L.c: Likewise.
15109         * tests/unictype/test-categ_Ll.c: Likewise.
15110         * tests/unictype/test-categ_Lm.c: Likewise.
15111         * tests/unictype/test-categ_Lo.c: Likewise.
15112         * tests/unictype/test-categ_Lu.c: Likewise.
15113         * tests/unictype/test-categ_M.c: Likewise.
15114         * tests/unictype/test-categ_Mc.c: Likewise.
15115         * tests/unictype/test-categ_Mn.c: Likewise.
15116         * tests/unictype/test-categ_N.c: Likewise.
15117         * tests/unictype/test-categ_Nd.c: Likewise.
15118         * tests/unictype/test-categ_Nl.c: Likewise.
15119         * tests/unictype/test-categ_No.c: Likewise.
15120         * tests/unictype/test-categ_P.c: Likewise.
15121         * tests/unictype/test-categ_Pd.c: Likewise.
15122         * tests/unictype/test-categ_Po.c: Likewise.
15123         * tests/unictype/test-categ_S.c: Likewise.
15124         * tests/unictype/test-categ_Sc.c: Likewise.
15125         * tests/unictype/test-categ_So.c: Likewise.
15126         * tests/unictype/test-ctype_alnum.c: Likewise.
15127         * tests/unictype/test-ctype_alpha.c: Likewise.
15128         * tests/unictype/test-ctype_graph.c: Likewise.
15129         * tests/unictype/test-ctype_lower.c: Likewise.
15130         * tests/unictype/test-ctype_print.c: Likewise.
15131         * tests/unictype/test-ctype_punct.c: Likewise.
15132         * tests/unictype/test-ctype_upper.c: Likewise.
15133         * tests/unictype/test-decdigit.h: Likewise.
15134         * tests/unictype/test-digit.h: Likewise.
15135         * tests/unictype/test-numeric.h: Likewise.
15136         * tests/unictype/test-pr_alphabetic.c: Likewise.
15137         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15138         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15139         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15140         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15141         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15142         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15143         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15144         * tests/unictype/test-pr_combining.c: Likewise.
15145         * tests/unictype/test-pr_composite.c: Likewise.
15146         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15147         * tests/unictype/test-pr_dash.c: Likewise.
15148         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15149         * tests/unictype/test-pr_deprecated.c: Likewise.
15150         * tests/unictype/test-pr_diacritic.c: Likewise.
15151         * tests/unictype/test-pr_extender.c: Likewise.
15152         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15153         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15154         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15155         * tests/unictype/test-pr_id_continue.c: Likewise.
15156         * tests/unictype/test-pr_id_start.c: Likewise.
15157         * tests/unictype/test-pr_ideographic.c: Likewise.
15158         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15159         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15160         * tests/unictype/test-pr_lowercase.c: Likewise.
15161         * tests/unictype/test-pr_numeric.c: Likewise.
15162         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15163         * tests/unictype/test-pr_punctuation.c: Likewise.
15164         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15165         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15166         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15167         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15168         * tests/unictype/test-pr_uppercase.c: Likewise.
15169         * tests/unictype/test-pr_xid_continue.c: Likewise.
15170         * tests/unictype/test-pr_xid_start.c: Likewise.
15171         * tests/unictype/test-pr_zero_width.c: Likewise.
15172         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15173         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15174         changed behaviour: line breaking is now disallowed between a letter
15175         or '=' and '('.
15176         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15177         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15178         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15179         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15180         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15181         lib/uniwidth/width.c.
15182         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15183         without comments, but with the original copyright notice.
15184         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15185         changes.
15186         * lib/unictype/categ_Cc.h: Likewise.
15187         * lib/unictype/categ_Co.h: Likewise.
15188         * lib/unictype/categ_Cs.h: Likewise.
15189         * lib/unictype/categ_Lt.h: Likewise.
15190         * lib/unictype/categ_Me.h: Likewise.
15191         * lib/unictype/categ_Pc.h: Likewise.
15192         * lib/unictype/categ_Pe.h: Likewise.
15193         * lib/unictype/categ_Pf.h: Likewise.
15194         * lib/unictype/categ_Pi.h: Likewise.
15195         * lib/unictype/categ_Ps.h: Likewise.
15196         * lib/unictype/categ_Sk.h: Likewise.
15197         * lib/unictype/categ_Sm.h: Likewise.
15198         * lib/unictype/categ_Z.h: Likewise.
15199         * lib/unictype/categ_Zl.h: Likewise.
15200         * lib/unictype/categ_Zp.h: Likewise.
15201         * lib/unictype/categ_Zs.h: Likewise.
15202         * lib/unictype/ctype_blank.h: Likewise.
15203         * lib/unictype/ctype_cntrl.h: Likewise.
15204         * lib/unictype/ctype_digit.h: Likewise.
15205         * lib/unictype/ctype_space.h: Likewise.
15206         * lib/unictype/ctype_xdigit.h: Likewise.
15207         * lib/unictype/mirror.h: Likewise.
15208         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15209         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15210         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15211         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15212         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15213         * lib/unictype/pr_bidi_control.h: Likewise.
15214         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15215         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15216         * lib/unictype/pr_bidi_pdf.h: Likewise.
15217         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15218         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15219         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15220         * lib/unictype/pr_format_control.h: Likewise.
15221         * lib/unictype/pr_hex_digit.h: Likewise.
15222         * lib/unictype/pr_hyphen.h: Likewise.
15223         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15224         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15225         * lib/unictype/pr_iso_control.h: Likewise.
15226         * lib/unictype/pr_join_control.h: Likewise.
15227         * lib/unictype/pr_left_of_pair.h: Likewise.
15228         * lib/unictype/pr_line_separator.h: Likewise.
15229         * lib/unictype/pr_math.h: Likewise.
15230         * lib/unictype/pr_non_break.h: Likewise.
15231         * lib/unictype/pr_not_a_character.h: Likewise.
15232         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15233         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15234         * lib/unictype/pr_other_id_continue.h: Likewise.
15235         * lib/unictype/pr_other_id_start.h: Likewise.
15236         * lib/unictype/pr_other_lowercase.h: Likewise.
15237         * lib/unictype/pr_other_math.h: Likewise.
15238         * lib/unictype/pr_other_uppercase.h: Likewise.
15239         * lib/unictype/pr_paired_punctuation.h: Likewise.
15240         * lib/unictype/pr_paragraph_separator.h: Likewise.
15241         * lib/unictype/pr_pattern_syntax.h: Likewise.
15242         * lib/unictype/pr_pattern_white_space.h: Likewise.
15243         * lib/unictype/pr_private_use.h: Likewise.
15244         * lib/unictype/pr_quotation_mark.h: Likewise.
15245         * lib/unictype/pr_radical.h: Likewise.
15246         * lib/unictype/pr_soft_dotted.h: Likewise.
15247         * lib/unictype/pr_space.h: Likewise.
15248         * lib/unictype/pr_titlecase.h: Likewise.
15249         * lib/unictype/pr_variation_selector.h: Likewise.
15250         * lib/unictype/pr_white_space.h: Likewise.
15251         * lib/unictype/sy_c_ident.h: Likewise.
15252         * lib/unictype/sy_c_whitespace.h: Likewise.
15253         * lib/unictype/sy_java_whitespace.h: Likewise.
15254         * modules/uni*/*: Bump version number of expected libunistring version.
15255         Reported by Simon Josefsson.
15256
15257 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15258
15259         useless-if-before-free: fix typo in --help and make the internal,
15260         automatic version date update process work once again.
15261         --help output contained a NUL character instead of the
15262         backslash-zero that was intended.  Also, the "must lie within
15263         the first 8 lines" line is on line 9, and hence not getting
15264         automatically updated.
15265         * build-aux/useless-if-before-free: Fix the former by adding a
15266         backslash, and the latter by condensing the three lines of what-it-does
15267         to a single line, leaving one line of slack for the future.
15268
15269 2011-01-09  Bruno Haible  <bruno@clisp.org>
15270
15271         uniwidth/width: Fix width of U+1D173..U+1D17A.
15272         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15273         symbolic_width, output_width_property_test): New functions.
15274         (main): Invoke output_nonspacing_property, output_width_property_test.
15275         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15276         U+1D173..U+1D17A.
15277         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15278         1.
15279         * modules/uniwidth/*: Bump version number of expected libunistring
15280         version.
15281         * modules/unilbrk/*: Likewise.
15282
15283 2011-01-08  Bruno Haible  <bruno@clisp.org>
15284
15285         uninorm tests: Preserve copyright of Unicode data file.
15286         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15287         Mention modifications.
15288
15289 2011-01-08  Bruno Haible  <bruno@clisp.org>
15290
15291         gen-uni-tables: Prepare for Unicode 5.2.0.
15292         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15293         (debug_output_lbp, output_lbp): Update.
15294
15295 2011-01-08  Bruno Haible  <bruno@clisp.org>
15296
15297         unilbrk: Clarify gen-uni-tables.c code.
15298         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15299         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15300         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15301
15302 2011-01-07  Bruno Haible  <bruno@clisp.org>
15303
15304         strtod: Restore errno when successfully parsing Infinity or NaN.
15305         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15306         restore the original errno.
15307
15308 2011-01-07  Bruno Haible  <bruno@clisp.org>
15309
15310         remove test: Avoid failure on HP-UX 11.
15311         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15312
15313 2011-01-07  Bruno Haible  <bruno@clisp.org>
15314
15315         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15316         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15317         error code.
15318
15319 2011-01-07  Pádraig Brady <P@draigBrady.com>
15320
15321         ignore-value: fixup comments, and add Eric Blake
15322         as an author since he rewrote the macros.
15323         * lib/ignore-value.h (ignore_value):  State that
15324         we now support aggregates.  Also specify exactly
15325         when the GCC warn_unused_result feature was added.
15326
15327 2011-01-06  Eric Blake  <eblake@redhat.com>
15328
15329         ignore-value: support aggregate types
15330         * lib/ignore-value.h (ignore_value): Provide separate gcc
15331         definition.
15332         * modules/ignore-value-tests: New test module.
15333         * tests/test-ignore-value.c: New test.
15334
15335         maint.mk: improve sc_prohibit_strcmp regex
15336         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15337         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15338         definition of STRNEQ.
15339
15340         signal: work around Haiku issue with SIGBUS
15341         * lib/siglist.h: Add comment.
15342         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15343         strsignal's favoring of SIGSEGV.
15344         * tests/test-signal.c (main): Avoid test failure.
15345         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15346         Reported by Scott McCreary.
15347
15348         maint.mk: add pre-release check to ensure submodule commits are public
15349         * top/maint.mk (public-submodule-commit): New rule.
15350         (submodule-checks): New variable.
15351         (alpha beta stable): Depend on the variable.
15352
15353 2011-01-05  Pádraig Brady <P@draigBrady.com>
15354         and Jim Meyering  <meyering@redhat.com>
15355
15356         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15357         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15358         (ATTRIBUTE_DEPRECATED): Define.
15359         (_ignore_case): New function.
15360         (ignore_value): New macro, to replace the old function.
15361         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15362         * modules/ignore-value (Depends-on): Add stdint.
15363
15364 2011-01-04  Eric Blake  <eblake@redhat.com>
15365
15366         doc: regenerate INSTALL
15367         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15368         @firstparagraphindent support, now that autoconf dropped it.
15369         (INSTALL_PRELUDE): Reinstate old macro.
15370         * doc/install.texi: Resync from autoconf.
15371         * doc/INSTALL: Reflect recent autoconf update.
15372         * doc/INSTALL.ISO: Likewise.
15373         * doc/INSTALL.UTF-8: Likewise.
15374         Reported by Karl Berry.
15375
15376 2011-01-04  Bruce Korb  <address@hidden>
15377
15378         git-version-gen: avoid a sub-shell
15379         * build-aux/git-version-gen: Redirect stderr in `...` via
15380         "exec 2>...", rather than via an added sub-shell.
15381
15382 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15383
15384         git-version-gen: use (...) rather than sh -c '...'
15385         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15386         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15387
15388 2011-01-03  Jim Meyering  <meyering@redhat.com>
15389
15390         git-version-gen: convert leading TABs to spaces
15391         * build-aux/git-version-gen: Expand leading TABs.
15392
15393         git-version-gen: handle failed "git rev-list"
15394         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15395         from git and proceeding as if it had succeeded but printed no SHA1
15396         checksums, suppress the diagnostic and handle the failure.
15397         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15398
15399         git-version-gen: include command name in one more diagnostic
15400         * build-aux/git-version-gen: When the required .tarball-version file
15401         was missing or unreadable, you might see the diagnostic from "cat",
15402         but no trace of the name of the invoking script.  Now, you still see
15403         the diagnostic from cat, but also get one from "git-version-gen: ".
15404         Inspired by a patch from Bruce Korb.
15405
15406         update-copyright: adjust test to match changed code
15407         * tests/test-update-copyright.sh: Change test's expected output
15408         to match new actual output.
15409
15410 2011-01-02  Bruno Haible  <bruno@clisp.org>
15411
15412         getlogin_r: Avoid test failure on HP-UX 11.
15413         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15414         ERANGE when the second argument is zero.
15415         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15416         portability problem.
15417
15418 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15419
15420         * build-aux/update-copyright: doc Simon's changes
15421
15422 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15423
15424         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15425         environment variable.
15426
15427 2011-01-02  Bruno Haible  <bruno@clisp.org>
15428
15429         unigbrk: Avoid gcc warnings.
15430         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15431         unused variable.
15432         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15433         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15434         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15435         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15436         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15437         Change type of first argument to 'const char *'.
15438         (main): Remove unused variable.
15439         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15440         type of first argument to 'const char *'.
15441         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15442         Likewise.
15443         (main): Change type of variable 's'.
15444         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15445         to 'int'.
15446
15447 2011-01-02  Bruno Haible  <bruno@clisp.org>
15448
15449         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15450         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15451         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15452         bug.
15453         * lib/pwrite.c: Undo 2010-12-31 patch.
15454         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15455
15456 2011-01-02  Bruno Haible  <bruno@clisp.org>
15457
15458         pread: Fix test whether it works.
15459         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15460
15461 2011-01-02  Bruno Haible  <bruno@clisp.org>
15462
15463         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15464         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15465         ends in "6". Don't require a specific month name. Try also the locale
15466         names found on HP-UX 11 and Solaris 7.
15467
15468 2011-01-02  Bruno Haible  <bruno@clisp.org>
15469
15470         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15471         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15472         C linkage.
15473         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15474
15475 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15476
15477         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15478         for consistency, since the "cluster" term is not used elsewhere.
15479         * lib/unigbrk.in.h: Update name.
15480         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15481         * lib/unigbrk/u16-grapheme-next.c: Update name.
15482         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15483         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15484         * lib/unigbrk/u32-grapheme-next.c: Update name.
15485         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15486         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15487         * lib/unigbrk/u8-grapheme-next.c: Update name.
15488         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15489         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15490         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15491         Suggested by Bruno Haible.
15492
15493 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15494
15495         Remove module 'u8-grapheme-len' as too redundant with
15496         'u8-grapheme-next'.
15497         * modules/unigbrk/u8-grapheme-len: Delete file.
15498         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15499         * lib/unigbrk.in.h: Remove prototype for deleted function.
15500         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15501         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15502
15503         Remove module 'u16-grapheme-len' as too redundant with
15504         'u16-grapheme-next'.
15505         * modules/unigbrk/u16-grapheme-len: Delete file.
15506         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15507         * lib/unigbrk.in.h: Remove prototype for deleted function.
15508         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15509         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15510
15511         Remove module 'u32-grapheme-len' as too redundant with
15512         'u32-grapheme-next'.
15513         * modules/unigbrk/u32-grapheme-len: Delete file.
15514         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15515         * lib/unigbrk.in.h: Remove prototype for deleted function.
15516         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15517         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15518
15519         Suggested by Bruno Haible.
15520
15521 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15522
15523         * unigbrk.in.h: Fix typo: "ben" => "been".
15524         Reported by Bruno Haible.
15525
15526 2011-01-01  Jim Meyering  <meyering@redhat.com>
15527
15528         maint: update almost all copyright ranges to include 2011
15529         Run the new "make update-copyright" rule.
15530
15531 2011-01-01  Jim Meyering  <meyering@redhat.com>
15532
15533         maint: update-copyright: exempt doc/INSTALL*
15534         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15535         since they are generated.  Suggested by Bruno Haible.
15536
15537 2011-01-01  Jim Meyering  <meyering@redhat.com>
15538
15539         maint: refine the update-copyright rule
15540         * Makefile (update-copyright): Also exclude any file that includes
15541         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15542         code that merely generates the comment.
15543
15544 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15545
15546         New module 'u8-grapheme-len'.
15547         * modules/unigbrk/u8-grapheme-len: New file.
15548         * modules/unigbrk/u8-grapheme-len-tests: New file.
15549         * lib/unigbrk.in.h: Add prototype for new function.
15550         * lib/unigbrk/u8-grapheme-len.c: New file.
15551         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15552
15553         New module 'u16-grapheme-len'.
15554         * modules/unigbrk/u16-grapheme-len: New file.
15555         * modules/unigbrk/u16-grapheme-len-tests: New file.
15556         * lib/unigbrk.in.h: Add prototype for new function.
15557         * lib/unigbrk/u16-grapheme-len.c: New file.
15558         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15559
15560         New module 'u32-grapheme-len'.
15561         * modules/unigbrk/u32-grapheme-len: New file.
15562         * modules/unigbrk/u32-grapheme-len-tests: New file.
15563         * lib/unigbrk.in.h: Add prototype for new function.
15564         * lib/unigbrk/u32-grapheme-len.c: New file.
15565         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15566
15567         New module 'u8-grapheme-next'.
15568         * modules/unigbrk/u8-grapheme-next: New file.
15569         * modules/unigbrk/u8-grapheme-next-tests: New file.
15570         * lib/unigbrk.in.h: Add prototype for new function.
15571         * lib/unigbrk/u8-grapheme-next.c: New file.
15572         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15573
15574         New module 'u16-grapheme-next'.
15575         * modules/unigbrk/u16-grapheme-next: New file.
15576         * modules/unigbrk/u16-grapheme-next-tests: New file.
15577         * lib/unigbrk.in.h: Add prototype for new function.
15578         * lib/unigbrk/u16-grapheme-next.c: New file.
15579         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15580
15581         New module 'u32-grapheme-next'.
15582         * modules/unigbrk/u32-grapheme-next: New file.
15583         * modules/unigbrk/u32-grapheme-next-tests: New file.
15584         * lib/unigbrk.in.h: Add prototype for new function.
15585         * lib/unigbrk/u32-grapheme-next.c: New file.
15586         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15587
15588         New module 'u8-grapheme-prev'.
15589         * modules/unigbrk/u8-grapheme-prev: New file.
15590         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15591         * lib/unigbrk.in.h: Add prototype for new function.
15592         * lib/unigbrk/u8-grapheme-prev.c: New file.
15593         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15594
15595         New module 'u16-grapheme-prev'.
15596         * modules/unigbrk/u16-grapheme-prev: New file.
15597         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15598         * lib/unigbrk.in.h: Add prototype for new function.
15599         * lib/unigbrk/u16-grapheme-prev.c: New file.
15600         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15601
15602         New module 'u32-grapheme-prev'.
15603         * modules/unigbrk/u32-grapheme-prev: New file.
15604         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15605         * lib/unigbrk.in.h: Add prototype for new function.
15606         * lib/unigbrk/u32-grapheme-prev.c: New file.
15607         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15608
15609         New module 'u8-grapheme-breaks'.
15610         * modules/unigbrk/u8-grapheme-breaks: New file.
15611         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15612         * lib/unigbrk.in.h: Add prototype for new function.
15613         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15614         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15615
15616         New module 'u16-grapheme-breaks'.
15617         * modules/unigbrk/u16-grapheme-breaks: New file.
15618         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15619         * lib/unigbrk.in.h: Add prototype for new function.
15620         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15621         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15622
15623         New module 'u32-grapheme-breaks'.
15624         * modules/unigbrk/u32-grapheme-breaks: New file.
15625         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15626         * lib/unigbrk.in.h: Add prototype for new function.
15627         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15628         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15629
15630         New module 'ulc-grapheme-breaks'.
15631         * modules/unigbrk/ulc-grapheme-breaks: New file.
15632         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15633         * m4/locale-ar.m4: New file.
15634         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15635         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15636         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15637
15638 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15639
15640         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15641         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15642         modified how this file was generated before I initially submitted
15643         the module, but failed to regenerate it.  This meant that several
15644         of the level2 entries were wrong.
15645         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15646         Remove the division-by-2 that is folded into the table now that
15647         gbrkprop.h has been regenerated properly.  Now -1 entries are
15648         handled correctly.
15649
15650         New module 'unigbrk/uc-gbrk-prop-tests'.
15651         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15652         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15653         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15654         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15655
15656 2011-01-01  Bruno Haible  <bruno@clisp.org>
15657
15658         Avoid use of hexadecimal escapes.
15659         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15660         instead of hexadecimal escapes.
15661
15662 2011-01-01  Jim Meyering  <meyering@redhat.com>
15663
15664         maint: new rule to update copyright year ranges
15665         * Makefile (update-copyright): New rule.
15666
15667         maint: indent with TABs in Makefile
15668         * Makefile: Expand leading sequences of spaces to TABs
15669
15670         version-etc: update the copyright year it reports
15671         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15672
15673 2010-12-31  Bruno Haible  <bruno@clisp.org>
15674
15675         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15676         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15677         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15678         zero.
15679
15680 2010-12-31  Bruno Haible  <bruno@clisp.org>
15681
15682         pwrite: Work around HP-UX 11.11 bug.
15683         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15684         works and set REPLACE_PWRITE if not.
15685         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15686         function.
15687         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15688
15689 2010-12-31  Bruno Haible  <bruno@clisp.org>
15690
15691         pread: Work around HP-UX 11 bugs.
15692         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15693         and set REPLACE_PREAD if not.
15694         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15695
15696 2010-12-31  Eric Blake  <eblake@redhat.com>
15697
15698         nl_langinfo: fix YESEXPR on Irix 6.5
15699         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15700         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15701         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15702         it.
15703
15704 2010-12-31  Bruno Haible  <bruno@clisp.org>
15705
15706         iconv: Document HP-UX 11 bug.
15707         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15708
15709 2010-12-31  Bruno Haible  <bruno@clisp.org>
15710
15711         ldexpl: Fix link error on HP-UX 11.
15712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15713         LDEXPL_LIBM, using $ISNANL_LIBM.
15714
15715 2010-12-31  Eric Blake  <eblake@redhat.com>
15716
15717         ftello: avoid compilation failure with SunStudio c89
15718         * lib/ftello.c (ftello): Use lseek, not llseek.
15719
15720         tests: avoid failing coreutils tests on cygwin
15721         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15722         (create_exe_shims_): Return 0 when skipping.
15723
15724 2010-12-31  Bruno Haible  <bruno@clisp.org>
15725
15726         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15727         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15728
15729 2010-12-31  Bruno Haible  <bruno@clisp.org>
15730
15731         waitpid: Fix link error in C++ mode.
15732         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15733
15734 2010-12-31  Bruno Haible  <bruno@clisp.org>
15735
15736         isnan: Use GCC built-ins when possible.
15737         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15738         __builtin_isnan.
15739         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15740         (isnan): Define using GCC built-ins for GCC >= 4.0.
15741
15742 2010-12-31  Bruno Haible  <bruno@clisp.org>
15743
15744         isnand: Fix mistake.
15745         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15746         __builtin_isnand.
15747
15748 2010-12-31  Bruno Haible  <bruno@clisp.org>
15749
15750         open: Avoid C++ error on HP-UX 11.
15751         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15752
15753 2010-12-31  Bruno Haible  <bruno@clisp.org>
15754
15755         time_r: Add missing declarations on HP-UX 11.
15756         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15757         instead of HAVE_LOCALTIME_R.
15758         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15759         HAVE_LOCALTIME_R always.
15760         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15761         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15762         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15763         HAVE_LOCALTIME_R.
15764         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15765         * doc/posix-functions/localtime_r.texi: Likewise.
15766
15767 2010-12-29  Eric Blake  <eblake@redhat.com>
15768
15769         mountlist: tweak previous commit
15770         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15771         Reported by Paul Eggert.
15772
15773         mountlist: fix local drive detection on cygwin
15774         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15775         that works for cygwin.
15776
15777 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15778
15779         ftoastr, snprintf: ftoastr + snprintf module
15780         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15781         since the snprintf module now should be good enough here.
15782         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15783         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15784         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15785         GNULIB_SNPRINTF only for the test directory, and the latter
15786         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15787         seems to suffice by itself.
15788
15789 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15790
15791         alloca: one step towards thread-safety
15792         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15793         need for a static variable.  All callers changed.  This does not
15794         make the alloca replacement thread-safe, but it's one step.
15795
15796         tests: minor indenting change
15797         * tests/init.sh: Sync from coreutils housekeeping patch
15798         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15799         to keep lines within 80 columns.
15800
15801 2010-12-28  Jim Meyering  <meyering@redhat.com>
15802
15803         regex: don't infloop on persistent failing calloc
15804         * lib/regexec.c (build_trtable): Return failure indication upon
15805         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15806         In glibc, this was fixed for version 2.13:
15807         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15808
15809 2010-12-28  Bruno Haible  <bruno@clisp.org>
15810             Paul Eggert <eggert@cs.ucla.edu>
15811
15812         linkat: Make implementation robust against system behaviour variations.
15813         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15814         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15815         way, and to -2 if it needs a generic runtime test.
15816         * lib/linkat.c (solaris_optimized_link_immediate,
15817         solaris_optimized_link_follow): New functions.
15818         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15819         (check_same_link): Use it.
15820
15821 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15822
15823         New module 'unigbrk/base'.
15824         * modules/unigbrk/base: New file.
15825         * lib/unigbrk.in.h: New file.
15826
15827         New module 'unigbrk/uc-gbrk-prop'.
15828         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15829         * modules/unigbrk/uc-gbrk-prop: New file.
15830         * lib/unigbrk/gbrkprop.h: New file.
15831         * lib/unigbrk/uc-gbrk-prop.c: New file.
15832
15833         New module 'unigbrk/uc-is-grapheme-break'.
15834         * modules/unigbrk/uc-is-grapheme-break: New file.
15835         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15836         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15837         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15838         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15839         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15840
15841         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15842
15843 2010-12-27  Bruno Haible  <bruno@clisp.org>
15844
15845         linkat test: Avoid failure on Solaris 11 2010-11.
15846         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15847
15848 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15849
15850         utimens: work around glibc rounding bug on more platforms
15851         * lib/utimens.c (fdutimens): Work around rounding bug even if
15852         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15853         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15854
15855 2010-12-27  Bruno Haible  <bruno@clisp.org>
15856
15857         select tests: Improve comments.
15858         * tests/test-select.c (do_select): Add comments.
15859
15860 2010-12-27  Bruno Haible  <bruno@clisp.org>
15861
15862         select tests: Safer way of handling timeout.
15863         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15864         at every invocation.
15865
15866 2010-12-27  Bruno Haible  <bruno@clisp.org>
15867
15868         select tests: Use 'bool' where appropriate.
15869         * tests/test-select.c (connect_to_socket): Change argument type to
15870         'bool'.
15871
15872 2010-12-27  Bruno Haible  <bruno@clisp.org>
15873
15874         select tests: Use existing modules.
15875         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15876         (configure.ac): Don't test for unistd.h.
15877         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15878         declared in <unistd.h>.
15879
15880 2010-12-27  Bruno Haible  <bruno@clisp.org>
15881
15882         mbrtowc: Work around a Solaris 7 bug.
15883         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15884         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15885         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15886         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15887         MBRTOWC_NULL_ARG1_BUG.
15888         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15889         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15890         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15891         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15892
15893 2010-12-27  Jim Meyering  <meyering@redhat.com>
15894
15895         read-file.c: tweak syntax
15896         * lib/read-file.c (fread_file): Remove space after "*" in function
15897         definitions.
15898
15899 2010-12-27  Bruno Haible  <bruno@clisp.org>
15900
15901         times test: Avoid gcc warnings on OSF/1.
15902         * tests/test-times.c (main): Cast printf arguments from clock_t to
15903         'long int'.
15904
15905 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15906
15907         utimens: work around glibc rounding bug on older Linux kernels
15908         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15909         on Linux with a glibc whose utimes might not work, then work
15910         around a longstanding glibc bug involving rounding rather than
15911         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15913
15914 2010-12-26  Bruno Haible  <bruno@clisp.org>
15915
15916         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15917         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15918         _GL_CXXALIAS_SYS.
15919         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15920
15921 2010-12-26  Bruno Haible  <bruno@clisp.org>
15922
15923         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15924         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15925         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15926         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15927         looking for the declaration.
15928         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15929         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15930         problem.
15931         * doc/posix-functions/inet_pton.texi: Likewise.
15932
15933 2010-12-26  Bruno Haible  <bruno@clisp.org>
15934
15935         arpa_inet: Use the common idioms with C++ support.
15936         * lib/arpa_inet.in.h: Include c++defs.h.
15937         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15938         support.
15939         * modules/arpa_inet (Depends-on): Add c++defs.
15940         (Makefile.am): Substitute the contents of c++defs.h.
15941         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15942         * modules/arpa_inet-c++-tests: New file.
15943         * tests/test-arpa_inet-c++.cc: New file.
15944
15945 2010-12-25  Bruno Haible  <bruno@clisp.org>
15946
15947         Fix more C++ link errors on Solaris 8.
15948         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15949         $(LIB_EACCESS).
15950         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15951         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15952         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15953         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15954         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15955
15956 2010-12-25  Bruno Haible  <bruno@clisp.org>
15957
15958         printf-posix: Fix link error when a non-GCC compiler is used.
15959         * lib/stdio.in.h (printf): When not using GCC, override printf
15960         correctly.
15961         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15962
15963 2010-12-25  Bruno Haible  <bruno@clisp.org>
15964
15965         strerror_r-posix: Update doc.
15966         * doc/posix-functions/strerror_r.texi: Update doc about the return
15967         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15968
15969 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15970
15971         utimens: simplify the logic of the previous change
15972         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15973         This should not affect whether the test succeeds or fails.
15974
15975         utimens: configure better on hosts with NFS clock skew
15976         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15977         uses the clock of the local host.  It might use the clock of the
15978         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15979         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15980
15981 2010-12-25  Bruno Haible  <bruno@clisp.org>
15982
15983         ptsname test: Avoid failure on Solaris.
15984         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15985         open a pseudo-terminal; don't use BSD-style ptys.
15986         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15987
15988 2010-12-25  Bruno Haible  <bruno@clisp.org>
15989
15990         ptsname: Avoid ERANGE failure on some systems.
15991         * lib/ptsname.c (buffer): Increase size.
15992
15993 2010-12-25  Bruno Haible  <bruno@clisp.org>
15994
15995         rename, renameat: Avoid test failures at NFS mounted locations.
15996         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15997         so that subsequent mkdir calls succeed.
15998
15999 2010-12-25  Bruno Haible  <bruno@clisp.org>
16000
16001         iswblank: Fix C++ link error on Solaris 8.
16002         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16003         _GL_FUNCDECL_SYS.
16004
16005 2010-12-25  Bruno Haible  <bruno@clisp.org>
16006
16007         unistd: Fix C++ link error on Solaris 8.
16008         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16009
16010 2010-12-25  Bruno Haible  <bruno@clisp.org>
16011
16012         readlink doc: Mention an old glibc bug.
16013         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16014
16015 2010-12-25  Bruno Haible  <bruno@clisp.org>
16016
16017         fcntl-h: Fix for use of C++ on glibc systems.
16018         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16019         also on glibc systems in C++ mode.
16020         Reported by Gary V. Vaughan <gary@gnu.org>.
16021
16022 2010-12-25  Bruno Haible  <bruno@clisp.org>
16023
16024         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16025         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16026
16027 2010-12-25  Bruno Haible  <bruno@clisp.org>
16028
16029         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16030         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16031         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16032         test whether truncl works according to ISO C 99 with IEC 60559.
16033         * m4/truncl-ieee.m4: New file.
16034         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16035         m4/signbit.m4.
16036         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16037
16038 2010-12-25  Bruno Haible  <bruno@clisp.org>
16039
16040         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16041         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16042         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16043         test whether ceill works according to ISO C 99 with IEC 60559.
16044         * m4/ceill-ieee.m4: New file.
16045         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16046         m4/signbit.m4.
16047         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16048
16049 2010-12-25  Bruno Haible  <bruno@clisp.org>
16050
16051         Ensure all prerequisites of <wchar.h> are included.
16052         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16053         before <wchar.h>.
16054         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16055         gl_MBRLEN_NUL_RETVAL): Likewise.
16056         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16057         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16058         AC_FUNC_MBRTOWC): Likewise.
16059         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16060         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16061         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16062         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16063         Likewise.
16064         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16065         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16066         (gl_WCHAR_H): Improve comments.
16067         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16068
16069 2010-12-25  Bruno Haible  <bruno@clisp.org>
16070
16071         strtok_r: Fix C syntax error in autoconf macro.
16072         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16073         characters in test program.
16074
16075 2010-12-24  Bruno Haible  <bruno@clisp.org>
16076
16077         ceil, trunc, round: Fix gcc warnings.
16078         * lib/ceil.c (MIN): Undefine before redefining.
16079         * lib/trunc.c (MIN): Likewise.
16080         * lib/round.c (MIN): Likewise.
16081         Include <math.h> first.
16082
16083 2010-12-24  Bruno Haible  <bruno@clisp.org>
16084
16085         select tests: Avoid failures on OSF/1 5.1.
16086         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16087         failure of closing the last socket; it may fail with ECONNRESET.
16088
16089 2010-12-24  Eric Blake  <eblake@redhat.com>
16090
16091         stdint: avoid HP-UX 10.20 preprocessor bug
16092         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16093         than #if.
16094         * tests/test-floor2.c (main): Likewise.
16095         Reported by Peter O'Gorman.
16096
16097         pipe: make obsoletion transition easier
16098         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16099         * modules/pipe (Files): Include revived file.
16100         (Include): Drop reference, to mirror getdate's behavior.
16101
16102 2010-12-24  Bruno Haible  <bruno@clisp.org>
16103
16104         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16105         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16106         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16107         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16108
16109 2010-12-24  Bruno Haible  <bruno@clisp.org>
16110
16111         gethostname: Ensure declaration on NonStop Kernel.
16112         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16113         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16114
16115 2010-12-24  Bruno Haible  <bruno@clisp.org>
16116
16117         sys_select: Ensure all necessary types on NonStop Kernel.
16118         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16119         include <sys/time.h>.
16120         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16121         NonStop Kernel.
16122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16123
16124 2010-12-24  Bruno Haible  <bruno@clisp.org>
16125
16126         sys_select: Remove unneeded include.
16127         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16128         have <sys/select.h>.
16129
16130 2010-12-24  Bruno Haible  <bruno@clisp.org>
16131
16132         gethostname: Provide a fallback for HOST_NAME_MAX.
16133         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16134         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16135         instead.
16136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16137
16138 2010-12-24  Bruno Haible  <bruno@clisp.org>
16139
16140         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16141         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16142         (SA_RESTART): Likewise.
16143         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16144
16145 2010-12-24  Bruno Haible  <bruno@clisp.org>
16146
16147         signal: Define NSIG.
16148         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16149         * tests/test-signal.c (nsig): New variable.
16150         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16151
16152 2010-12-24  Bruno Haible  <bruno@clisp.org>
16153
16154         rename, renameat: Avoid test failures on OSF/1 5.1.
16155         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16156         alternative error codes.
16157         * tests/test-renameat.c (main): Likewise.
16158
16159 2010-12-24  Bruno Haible  <bruno@clisp.org>
16160
16161         *printf: Detect large precisions bug on Solaris 10/SPARC.
16162         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16163         by Paul Eggert.
16164         * tests/test-snprintf-posix.h (test_function): Add this test code here
16165         too.
16166         * tests/test-sprintf-posix.h (test_function): Likewise.
16167         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16168         * tests/test-vasprintf-posix.c (test_function): Likewise.
16169         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16170         around by gnulib.
16171         * doc/posix-functions/printf.texi: Likewise.
16172         * doc/posix-functions/snprintf.texi: Likewise.
16173         * doc/posix-functions/sprintf.texi: Likewise.
16174         * doc/posix-functions/vfprintf.texi: Likewise.
16175         * doc/posix-functions/vprintf.texi: Likewise.
16176         * doc/posix-functions/vsnprintf.texi: Likewise.
16177         * doc/posix-functions/vsprintf.texi: Likewise.
16178         * doc/posix-functions/dprintf.texi: Undo last commit.
16179         * doc/posix-functions/vdprintf.texi: Likewise.
16180
16181 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16182
16183         tests: port test-fdutimensat.c to Solaris 8
16184         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16185         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16186         On Solaris 8, it fails with errno == ENOSYS, because there is no
16187         futimens (so it can't use the fd), and there is no lutimens (so it
16188         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16189
16190         vsnprintf: make more consistent with snprintf; doc fixes
16191
16192         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16193         the byte count return problem was promoted from the snprintf-posix
16194         to the snprintf module.
16195         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16196         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16197         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16198         * tests/test-snprintf.c (main): Check the byte count returned.
16199         * tests/test-vsnprintf.c (main): Likewise.
16200
16201 2010-12-23  Eric Blake  <eblake@redhat.com>
16202
16203         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16204         * modules/sigpipe (License): Relax license.
16205
16206 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16207
16208         doc: document Solaris printf bug with large float precisions
16209         * doc/posix-functions/dprintf.texi (dprintf):
16210         * doc/posix-functions/fprintf.texi (fprintf):
16211         * doc/posix-functions/printf.texi (printf):
16212         * doc/posix-functions/snprintf.texi (snprintf):
16213         * doc/posix-functions/sprintf.texi (sprintf):
16214         * doc/posix-functions/vdprintf.texi (vdprintf):
16215         * doc/posix-functions/vfprintf.texi (vfprintf):
16216         * doc/posix-functions/vprintf.texi (vprintf):
16217         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16218         * doc/posix-functions/vsprintf.texi (vsprintf):
16219         Mention that these functions mishandle large floating point
16220         precisions on Solaris 10.  The same bug is also present in Solaris
16221         8, and I assume earlier.  This causes "cd gnulib-tests; make
16222         check" to fail on Solaris 8 (and I assume, later) when building
16223         the latest coreutils, in test-vasprintf-posix's call to
16224         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16225         the wide flavors (e.g., wprintf) so this patch just updates the
16226         documentation for the narrow ones.
16227
16228         test-posixtm.c: add two tests
16229         * tests/test-posixtm.c: Add two tests, to highlight the
16230         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16231         around this bug; this is merely to document it.
16232
16233 2010-12-22  Bruno Haible  <bruno@clisp.org>
16234
16235         getlogin_r: Work around portability problem on OSF/1.
16236         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16237         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16238         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16239         test for a truncated result.
16240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16241         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16242         * modules/getlogin_r (Depends-on): Add memchr.
16243         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16244
16245 2010-12-22  Bruno Haible  <bruno@clisp.org>
16246
16247         ptsname: Avoid test failure on OSF/1 5.1.
16248         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16249         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16250         (same_slave): New function.
16251         (main): Use it to compare ptsname's result with the expected file name.
16252
16253 2010-12-22  Bruno Haible  <bruno@clisp.org>
16254
16255         Port extended stdio modules to HP NonStop Kernel.
16256         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16257         macros.
16258         * lib/fbufmode.c: Update comments.
16259         * lib/fflush.c: Likewise.
16260         * lib/fpurge.c: Likewise.
16261         * lib/freadable.c: Likewise.
16262         * lib/freadahead.c: Likewise.
16263         * lib/freading.c: Likewise.
16264         * lib/freadptr.c: Likewise.
16265         * lib/freadseek.c: Likewise.
16266         * lib/fseeko.c: Likewise.
16267         * lib/fseterr.c: Likewise.
16268         * lib/fwritable.c: Likewise.
16269         * lib/fwriting.c: Likewise.
16270         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16271
16272 2010-12-22  Bruno Haible  <bruno@clisp.org>
16273
16274         ttyname_r: Work around bug on OSF/1 5.1.
16275         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16276         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16277         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16278         present.
16279         * lib/ttyname_r.c (ttyname_r): Update comments.
16280
16281 2010-12-22  Bruno Haible  <bruno@clisp.org>
16282
16283         round: Implement result sign according to IEEE 754.
16284         * lib/round.c (MIN, MINUS_ZERO): New macros.
16285         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16286         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16287         * tests/test-round-ieee.c (main): Likewise.
16288         * tests/test-roundl-ieee.c (main): Likewise.
16289
16290         trunc: Implement result sign according to IEEE 754.
16291         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16292         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16293         * tests/test-trunc2.c: Include minus-zero.h.
16294         (MINUS_ZERO): New macro.
16295         (trunc_reference): Keep in sync with lib/trunc.c.
16296         * tests/test-truncf2.c: Include minus-zero.h.
16297         (MINUS_ZERO): New macro.
16298         (truncf_reference): Keep in sync with lib/trunc.c.
16299         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16300         * tests/test-trunc-ieee.c (main): Likewise.
16301         * tests/test-truncl-ieee.c (main): Likewise.
16302
16303         ceil: Implement result sign according to IEEE 754.
16304         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16305         (FUNC): Return -0.0 for -1 < x < 0.
16306         * tests/test-ceil2.c: Include minus-zero.h.
16307         (MINUS_ZERO): New macro.
16308         (ceil_reference): Keep in sync with lib/ceil.c.
16309         * tests/test-ceilf2.c: Include minus-zero.h.
16310         (MINUS_ZERO): New macro.
16311         (ceilf_reference): Keep in sync with lib/ceil.c.
16312         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16313         * tests/test-ceil-ieee.c (main): Likewise.
16314         * tests/test-ceill-ieee.c (main): Likewise.
16315
16316         floor: Implement result sign according to IEEE 754.
16317         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16318         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16319         * tests/test-floorf2.c (floorf_reference): Likewise.
16320         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16321         * tests/test-floor-ieee.c (main): Likewise.
16322         * tests/test-floorl-ieee.c (main): Likewise.
16323
16324 2010-12-22  Bruno Haible  <bruno@clisp.org>
16325
16326         getaddrinfo: Update doc.
16327         * doc/posix-functions/gai_strerror.texi: Return type is also different
16328         on AIX and HP-UX.
16329
16330 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16331
16332         getaddrinfo, inet_ntop: Update doc for Solaris.
16333         * doc/posix-functions/gai_strerror.texi: Return type is also an
16334         issue on Solaris 9 and earlier.
16335         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16336         on Solaris 10 and earlier.
16337
16338 2010-12-21  Bruno Haible  <bruno@clisp.org>
16339
16340         New module 'roundl-ieee'.
16341         * modules/roundl-ieee: New file.
16342         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16343         test whether roundl works according to ISO C 99 with IEC 60559.
16344         * m4/roundl-ieee.m4: New file.
16345         * modules/roundl-ieee-tests: New file.
16346         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16347         * tests/test-roundl.c (main): Remove signbit tests.
16348         * modules/roundl-tests (Depends-on): Remove signbit.
16349         * doc/posix-functions/roundl.texi: Mention the new module.
16350
16351 2010-12-21  Bruno Haible  <bruno@clisp.org>
16352
16353         New module 'truncl-ieee'.
16354         * modules/truncl-ieee: New file.
16355         * modules/truncl-ieee-tests: New file.
16356         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16357         * tests/test-truncl.c (main): Remove signbit tests.
16358         * modules/truncl-tests (Depends-on): Remove signbit.
16359         * doc/posix-functions/truncl.texi: Mention the new module.
16360
16361 2010-12-21  Bruno Haible  <bruno@clisp.org>
16362
16363         New module 'ceill-ieee'.
16364         * modules/ceill-ieee: New file.
16365         * modules/ceill-ieee-tests: New file.
16366         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16367         * tests/test-ceill.c (main): Remove signbit tests.
16368         * modules/ceill-tests (Depends-on): Remove signbit.
16369         * doc/posix-functions/ceill.texi: Mention the new module.
16370
16371 2010-12-21  Bruno Haible  <bruno@clisp.org>
16372
16373         New module 'floorl-ieee'.
16374         * modules/floorl-ieee: New file.
16375         * modules/floorl-ieee-tests: New file.
16376         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16377         * tests/test-floorl.c (main): Remove signbit tests.
16378         * modules/floorl-tests (Depends-on): Remove signbit.
16379         * doc/posix-functions/floorl.texi: Mention the new module.
16380
16381 2010-12-21  Bruno Haible  <bruno@clisp.org>
16382
16383         New module 'round-ieee'.
16384         * modules/round-ieee: New file.
16385         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16386         whether round works according to ISO C 99 with IEC 60559.
16387         * m4/round-ieee.m4: New file.
16388         * modules/round-ieee-tests: New file.
16389         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16390         * tests/test-round1.c (main): Remove signbit tests.
16391         * modules/round-tests (Depends-on): Remove 'signbit'.
16392         * doc/posix-functions/round.texi: Mention the new module.
16393
16394 2010-12-21  Bruno Haible  <bruno@clisp.org>
16395
16396         New module 'trunc-ieee'.
16397         * modules/trunc-ieee: New file.
16398         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16399         whether trunc works according to ISO C 99 with IEC 60559.
16400         * m4/trunc-ieee.m4: New file.
16401         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16403         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16404         * modules/trunc-ieee-tests: New file.
16405         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16406         * tests/test-trunc1.c (main): Remove signbit tests.
16407         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16408         * doc/posix-functions/trunc.texi: Mention the new module.
16409
16410 2010-12-21  Bruno Haible  <bruno@clisp.org>
16411
16412         New module 'ceil-ieee'.
16413         * modules/ceil-ieee: New file.
16414         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16415         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16416         ISO C 99 with IEC 60559.
16417         * m4/ceil-ieee.m4: New file.
16418         * modules/ceil (Files): Add lib/ceil.c.
16419         (Depends-on): Add 'float'.
16420         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16421         * lib/math.in.h (ceil): New declaration.
16422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16423         REPLACE_CEIL.
16424         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16425         * modules/ceil-ieee-tests: New file.
16426         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16427         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16428         * doc/posix-functions/ceil.texi: Mention the new module.
16429
16430 2010-12-21  Bruno Haible  <bruno@clisp.org>
16431
16432         New module 'floor-ieee'.
16433         * modules/floor-ieee: New file.
16434         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16435         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16436         ISO C 99 with IEC 60559.
16437         * m4/floor-ieee.m4: New file.
16438         * modules/floor (Files): Add lib/floor.c.
16439         (Depends-on): Add 'float'.
16440         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16441         * lib/math.in.h (floor): New declaration.
16442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16443         REPLACE_FLOOR.
16444         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16445         * modules/floor-ieee-tests: New file.
16446         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16447         * tests/test-math-c++.cc: Check the signature of 'floor'.
16448         * doc/posix-functions/floor.texi: Mention the new module.
16449
16450 2010-12-21  Bruno Haible  <bruno@clisp.org>
16451
16452         New module 'roundf-ieee'.
16453         * modules/roundf-ieee: New file.
16454         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16455         test whether roundf works according to ISO C 99 with IEC 60559.
16456         * m4/roundf-ieee.m4: New file.
16457         * modules/roundf-ieee-tests: New file.
16458         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16459         * tests/test-roundf1.c (main): Remove signbit tests.
16460         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16461         * doc/posix-functions/roundf.texi: Mention the new module.
16462
16463 2010-12-21  Bruno Haible  <bruno@clisp.org>
16464
16465         New module 'truncf-ieee'.
16466         * modules/truncf-ieee: New file.
16467         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16468         test whether truncf works according to ISO C 99 with IEC 60559.
16469         * m4/truncf-ieee.m4: New file.
16470         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16472         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16473         * modules/truncf-ieee-tests: New file.
16474         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16475         * tests/test-truncf1.c (main): Remove signbit tests.
16476         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16477         * doc/posix-functions/truncf.texi: Mention the new module.
16478
16479 2010-12-21  Bruno Haible  <bruno@clisp.org>
16480
16481         New module 'ceilf-ieee'.
16482         * modules/ceilf-ieee: New file.
16483         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16484         test whether ceilf works according to ISO C 99 with IEC 60559.
16485         * m4/ceilf-ieee.m4: New file.
16486         * modules/ceilf-ieee-tests: New file.
16487         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16488         * tests/test-ceilf1.c (main): Remove signbit tests.
16489         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16490         * doc/posix-functions/ceilf.texi: Mention the new module.
16491
16492 2010-12-21  Bruno Haible  <bruno@clisp.org>
16493
16494         New module 'floorf-ieee'.
16495         * modules/floorf-ieee: New file.
16496         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16497         test whether floorf works according to ISO C 99 with IEC 60559.
16498         * m4/floorf-ieee.m4: New file.
16499         * modules/floorf-ieee-tests: New file.
16500         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16501         * tests/test-floorf1.c (main): Remove signbit tests.
16502         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16503         * doc/posix-functions/floorf.texi: Mention the new module.
16504
16505 2010-12-21  Bruno Haible  <bruno@clisp.org>
16506
16507         Support for minus zero in autoconf macros.
16508         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16509         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16510         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16511         * tests/minus-zero.h: Update comments.
16512
16513 2010-12-21  Bruno Haible  <bruno@clisp.org>
16514
16515         Tests for module 'ceil'.
16516         * modules/ceil-tests: New file.
16517         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16518         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16519
16520 2010-12-21  Bruno Haible  <bruno@clisp.org>
16521
16522         Tests for module 'floor'.
16523         * modules/floor-tests: New file.
16524         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16525         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16526
16527 2010-12-21  Bruno Haible  <bruno@clisp.org>
16528
16529         math: Fix indentation.
16530         * lib/math.in.h (floorf): Fix indentation.
16531
16532 2010-12-21  Bruno Haible  <bruno@clisp.org>
16533
16534         Fix cross-compilation guesses on Solaris.
16535         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16536         not match "solaris2.10".
16537         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16538         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16539         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16540
16541 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16542
16543         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16544         This fixes a problem observed with the latest coreutils snapshot
16545         that caused a test to fail on Solaris 8.  src/csplit.c's call
16546         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16547         earlier, instead of returning the number of bytes that would have
16548         been generated; this causes csplit to incorrectly report memory
16549         exhaustion.
16550         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16551         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16552         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16553         comments to match.
16554         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16555         Fix typo in matching older versions of Solaris: "solaris2.10"
16556         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16557         only for guessing while cross-compiling.
16558         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16559
16560 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16561
16562         ftoastr: fix comment again
16563         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16565         Also, simplify example a bit by using flags = 0.
16566
16567 2010-12-20  Bruno Haible  <bruno@clisp.org>
16568
16569         round*, trunc*: Update documentation regarding glibc.
16570         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16571         * doc/posix-functions/round.texi: Likewise.
16572         * doc/posix-functions/roundl.texi: Likewise.
16573         * doc/posix-functions/truncf.texi: Likewise.
16574         * doc/posix-functions/trunc.texi: Likewise.
16575         * doc/posix-functions/truncl.texi: Likewise.
16576
16577 2010-12-20  Bruno Haible  <bruno@clisp.org>
16578
16579         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16580         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16581         * doc/posix-functions/round.texi: Likewise.
16582         * doc/posix-functions/roundl.texi: Likewise.
16583
16584 2010-12-20  Bruno Haible  <bruno@clisp.org>
16585
16586         ttyname_r: Add missing declaration on HP-UX 11.
16587         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16588         HAVE_TTYNAME_R.
16589         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16590         declared. Set HAVE_TTYNAME_R always.
16591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16592         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16593         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16594         HAVE_TTYNAME_R.
16595         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16596
16597 2010-12-20  Bruno Haible  <bruno@clisp.org>
16598
16599         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16600         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16601         * doc/posix-functions/getlogin_r.texi: Likewise.
16602         * tests/test-getlogin.c: Include <errno.h>.
16603         (main): Avoid test failure on HP-UX 11.11.
16604         * tests/test-getlogin_r.c (main): Likewise.
16605
16606 2010-12-20  Bruno Haible  <bruno@clisp.org>
16607
16608         getlogin_r: Add missing declaration on HP-UX 11.
16609         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16610         declared also when it exists as a function.
16611         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16612
16613 2010-12-20  Bruno Haible  <bruno@clisp.org>
16614
16615         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16616         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16617         through wcrtomb.
16618
16619 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16620
16621         ftoastr: fix comment
16622         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16623         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16624
16625 2010-12-19  Bruno Haible  <bruno@clisp.org>
16626
16627         isnan: Ensure it is a macro.
16628         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16629         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16630         Solaris.
16631
16632 2010-12-19  Bruno Haible  <bruno@clisp.org>
16633
16634         ldexpl test: Fix link error on OSF/1 5.1.
16635         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16636
16637 2010-12-19  Bruno Haible  <bruno@clisp.org>
16638
16639         wctype: Make it work in C++ mode on OSF/1 5.1.
16640         * lib/wctype.in.h (iswblank): Declare but not define here.
16641         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16642         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16643         * modules/wctype (Files): Add lib/iswblank.c.
16644
16645 2010-12-19  Bruno Haible  <bruno@clisp.org>
16646
16647         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16648         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16649         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16650
16651 2010-12-19  Bruno Haible  <bruno@clisp.org>
16652
16653         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16654         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16655         _POSIX_PII_SOCKET.
16656         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16657         * doc/posix-functions/recvfrom.texi: Likewise.
16658         * doc/posix-functions/send.texi: Likewise.
16659         * doc/posix-functions/sendto.texi: Likewise.
16660
16661 2010-12-19  Bruno Haible  <bruno@clisp.org>
16662
16663         tcgetsid: Add missing declaration on OSF/1 5.1.
16664         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16665         HAVE_TCGETSID.
16666         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16667         Don't set HAVE_TCGETSID.
16668         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16669         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16670         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16671         HAVE_TCGETSID.
16672         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16673
16674 2010-12-19  Bruno Haible  <bruno@clisp.org>
16675
16676         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16677         * lib/stdio.in.h: During the include_next statement, let recursive
16678         includes of this file include only the system header file.
16679
16680 2010-12-19  Bruno Haible  <bruno@clisp.org>
16681
16682         iconv_open: Fix regression from 2010-12-04.
16683         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16684         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16685
16686 2010-12-19  Bruno Haible  <bruno@clisp.org>
16687
16688         stdbool test: Avoid a gcc warning.
16689         * tests/test-stdbool.c (main): Fail if e1 is false.
16690         Reported by Jim Meyering.
16691
16692 2010-12-19  Jim Meyering  <meyering@redhat.com>
16693
16694         setenv: restore to working order
16695         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16696         mistakenly removed.
16697         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16698         HAVE_SETENV.
16699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16700         HAVE_SETENV.
16701
16702 2010-12-19  Bruno Haible  <bruno@clisp.org>
16703
16704         Document some different function declarations on OSF/1 5.1.
16705         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16706         * doc/posix-functions/inet_ntop.texi: Likewise.
16707         * doc/posix-functions/gethostname.texi: Likewise.
16708         * lib/unistd.in.h (gethostname): Update comment.
16709
16710 2010-12-19  Bruno Haible  <bruno@clisp.org>
16711
16712         doc: Mention vasprintf-posix module.
16713         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16714         the 'vasprintf-posix' module.
16715         * doc/glibc-functions/vasprintf.texi: Likewise.
16716
16717 2010-12-19  Bruno Haible  <bruno@clisp.org>
16718
16719         unsetenv: Add missing declaration on OSF/1 5.1.
16720         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16721         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16722         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16724         not HAVE_UNSETENV.
16725         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16726         HAVE_UNSETENV.
16727         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16728
16729 2010-12-19  Bruno Haible  <bruno@clisp.org>
16730
16731         setenv: Add missing declaration on OSF/1 5.1.
16732         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16733         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16734         declared. Don't set HAVE_SETENV.
16735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16736         not HAVE_SETENV.
16737         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16738         HAVE_SETENV.
16739         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16740
16741 2010-12-19  Bruno Haible  <bruno@clisp.org>
16742
16743         nl_langinfo tests: Avoid gcc warning.
16744         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16745
16746 2010-12-19  Bruno Haible  <bruno@clisp.org>
16747
16748         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16749         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16750         _GL_CXXALIAS_SYS.
16751
16752 2010-12-19  Bruno Haible  <bruno@clisp.org>
16753
16754         stdbool: Relax test.
16755         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16756         address to 'bool' work in static initializer, for compilers other than
16757         GCC.
16758
16759 2010-12-19  Bruno Haible  <bruno@clisp.org>
16760
16761         ftello: Add missing declaration on OSF/1 5.1.
16762         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16763         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16765         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16766         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16767
16768 2010-12-19  Bruno Haible  <bruno@clisp.org>
16769
16770         fseeko: Add missing declaration on OSF/1 5.1.
16771         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16772         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16774         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16775         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16776
16777 2010-12-19  Bruno Haible  <bruno@clisp.org>
16778
16779         fchdir: Add missing declaration on OSF/1 5.1.
16780         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16783         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16784         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16785
16786 2010-12-19  Bruno Haible  <bruno@clisp.org>
16787
16788         relocatable-prog-wrapper: Separate from relocatable-prog.
16789         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16790         uninstall-relocwrapper rule here.
16791         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16792         Reported by Ian Beckwith <ianb@erislabs.net>.
16793
16794 2010-12-19  Bruno Haible  <bruno@clisp.org>
16795
16796         unistr/u8-mbsnlen: Add missing dependency.
16797         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16798         Reported by Ian Beckwith <ianb@erislabs.net>.
16799
16800 2010-12-19  Bruno Haible  <bruno@clisp.org>
16801
16802         iconv: Make it possible again to use this module without 'iconv-h'.
16803         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16804         if it is not defined.
16805         Reported by Ian Beckwith <ianb@erislabs.net>.
16806
16807 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16808
16809         acl: port to Solaris 8 when copying from tmpfs to ufs
16810         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16811         error number.  Problem observed on Solaris 8 with latest
16812         coreutils, with "mv A B", where A is on a tmpfs file system and B
16813         is on a ufs file system.  This caused coreutils' mv/part-symlink
16814         test to fail.
16815
16816         tests: set fail=0 at start
16817         * tests/init.sh (setup_): Move fail=0 initialization here ...
16818         (mktempd_): ... from here, so that tests can rely on fail being
16819         set to 0 initially.  This fixes a problem in coreutils; see:
16820         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16821
16822 2010-12-18  Bruno Haible  <bruno@clisp.org>
16823
16824         memmem-simple: Stylistic changes.
16825         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16826         Fix preprocessor directive indentation.
16827
16828 2010-12-15  Pádraig Brady <P@draigBrady.com>
16829
16830         memmem, memmem-simple: reorganize and expand empty needle check
16831         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16832         functional checks to memmem-simple so that one has a fully functional
16833         memmem by using just this module.
16834         Restrict the performance only check to the memmem module.
16835         Also expand the empty needle check to ensure the correct
16836         pointer is returned, not just a non NULL pointer.
16837         * doc/glibc-functions/memmem.texi: Rearrange the portability
16838         documentation to correlate with the rearranged checks.
16839         Clarify exactly how the memmem and memmem-simple modules
16840         relate to each other.
16841
16842 2010-12-15  Pádraig Brady <P@draigBrady.com>
16843             Bruno Haible  <bruno@clisp.org>
16844
16845         Improve cross-compilation guesses for uClibc.
16846         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16847         that uClibc does not have the glibc bug.
16848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16849         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16850
16851 2010-12-14  Eric Blake  <eblake@redhat.com>
16852
16853         configmake: provide fallbacks for oldest supported autotools
16854         * m4/configmake.m4: New file.
16855         * modules/configmake (Files): Ship it.
16856         (configure.ac): Use it to guarantee fallbacks.
16857
16858 2010-12-13  Pádraig Brady <P@draigBrady.com>
16859
16860         read-file: Improve handling of large files
16861         * lib/read-file.c (fread_file): Minimize realloc()s
16862         for regular files, and better manage sizes around SIZE_MAX.
16863
16864 2010-12-13  Eric Blake  <eblake@redhat.com>
16865
16866         cloexec, fcntl: relax license
16867         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16868         consent from all contributors.
16869         * modules/fcntl (License): Likewise.
16870
16871 2010-12-10  Bruno Haible  <bruno@clisp.org>
16872
16873         Tests for module 'pipe-posix'.
16874         * modules/pipe-posix-tests: New file.
16875         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16876
16877 2010-12-10  Bruno Haible  <bruno@clisp.org>
16878
16879         pipe-posix: Make it work in C++ mode.
16880         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16881         (pipe): Use common idiom, not a macro definition.
16882         * lib/pipe.c: New file.
16883         * m4/pipe.m4: New file.
16884         * modules/pipe-posix (Description): Enhance.
16885         (Files): Add lib/pipe.c, m4/pipe.m4.
16886         (configure.ac): Invoke gl_FUNC_PIPE.
16887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16888         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16889         * tests/test-unistd-c++.cc: Check the signature of pipe.
16890
16891 2010-12-10  Bruno Haible  <bruno@clisp.org>
16892
16893         Rename module 'pipe' to 'spawn-pipe'.
16894         * modules/spawn-pipe: New file, renamed from modules/pipe.
16895         (Files, configure.ac, Makefile.am): Update.
16896         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16897         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16898         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16899         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16900         "spawn-pipe.h" instead of "pipe.h".
16901         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16902         to gl_SPAWN_PIPE.
16903         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16904         (Files, Makefile.am): Update.
16905         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16906         Update.
16907         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16908         Include "spawn-pipe.h" instead of "pipe.h".
16909         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16910         * lib/javacomp.c: Likewise.
16911         * lib/javaversion.c: Likewise.
16912         * lib/pipe-filter-gi.c: Likewise.
16913         * lib/pipe-filter-ii.c: Likewise.
16914         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16915         * modules/javacomp (Depends-on): Likewise.
16916         * modules/javaversion (Depends-on): Likewise.
16917         * modules/pipe-filter-gi (Depends-on): Likewise.
16918         * modules/pipe-filter-ii (Depends-on): Likewise.
16919         * MODULES.html.sh (Executing programs): Update.
16920         * NEWS: Mention the change.
16921
16922 2010-12-10  Eric Blake  <eblake@redhat.com>
16923
16924         pipe-posix: new module
16925         * modules/pipe-posix: New file.
16926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16927         (gl_UNISTD_H): Check for declaration.
16928         * modules/unistd (Makefile.am): Substitute it.
16929         * lib/unistd.in.h (pipe): Provide it for mingw.
16930         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16931         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16932
16933 2010-12-07  Bruno Haible  <bruno@clisp.org>
16934
16935         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16936         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16937         u8_strcmp_gnu.
16938         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16939
16940 2010-12-06  Bruno Haible  <bruno@clisp.org>
16941
16942         Update internal documentation.
16943         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16944
16945 2010-12-04  Bruno Haible  <bruno@clisp.org>
16946
16947         Put more information about failed tests into the test return codes.
16948         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16949         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16950         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16951         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16952         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16953         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16954         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16955         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16956         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16958         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16959         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16960         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16961         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16962         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16963         returns a bit mask.
16964         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16965         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16966         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16967         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16968         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16969         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16970         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16972         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16973         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16974         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16975         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16976         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16977         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16978         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16979         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16980         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16981         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16982         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16983         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16984         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16985         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16986         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16987         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16988         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16989         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16990         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16991         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16992         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16993         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16994         gl_PRINTF_PRECISION): Likewise.
16995         * m4/regex.m4 (gl_REGEX): Likewise.
16996         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16997         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16998         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16999         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17000         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17003         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17004         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17005         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17006         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17007         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17008         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17009         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17010         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17011         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17012         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17013         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17015         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17016         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17017         enumerated value.
17018         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17019
17020 2010-12-04  Bruno Haible  <bruno@clisp.org>
17021
17022         Update for Solaris 11 2010-11.
17023         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17024         Express, released in November 2010.
17025
17026 2010-12-04  Bruno Haible  <bruno@clisp.org>
17027
17028         nproc: Relax license.
17029         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17030         and Paul Eggert.
17031         Requested by Ludovic Courtès <ludo@gnu.org>.
17032
17033 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17034
17035         utimecmp: fine-grained src to nearby coarse-grained dest
17036
17037         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17038         and the source is on a file system with higher-resolution time
17039         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17040         not work, and the time stamps are close together, the algorithm to
17041         determine the exact resolution from the read-back mtime was buggy:
17042         it had a "!=" where it should have had an "==".  This bug has been
17043         in the code ever since it was introduced to gnulib.
17044         Problem reported by Dan Jacobson in
17045         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17046
17047 2010-11-30  Bruno Haible  <bruno@clisp.org>
17048
17049         strerror_r-posix: Fix autoconf test.
17050         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17051
17052 2010-11-28  Bruno Haible  <bruno@clisp.org>
17053             Paul Eggert  <eggert@cs.ucla.edu>
17054
17055         Tests for module 'getdomainname'.
17056         * modules/getdomainname-tests: New file.
17057         * tests/test-getdomainname.c: New file, based on
17058         tests/test-gethostname.c.
17059
17060 2010-11-28  Bruno Haible  <bruno@clisp.org>
17061             Paul Eggert  <eggert@cs.ucla.edu>
17062
17063         getdomainname: Use the system function when possible.
17064         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17065         (getdomainname): Replace if needed. Provide the declaration if it is
17066         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17067         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17068         (getdomainname): When the system has getdomainname, call the system
17069         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17070         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17071         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17072         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17073         the function if its second argument is of type 'int' or if it is found
17074         in libnsl.
17075         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17076         <sys/systeminfo.h> and sysinfo().
17077         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17079         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17080         HAVE_GETDOMAINNAME.
17081         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17082         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17083         * doc/glibc-functions/getdomainname.texi: Document the problems with
17084         the getdomainname declaration.
17085
17086 2010-11-28  Bruno Haible  <bruno@clisp.org>
17087
17088         sys_socket: Ensure ss_family field on AIX.
17089         * lib/sys_socket.in.h (ss_family): New macro definition.
17090         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17091         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17092         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17093         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17094         * modules/sys_socket (Makefile.am): Substitute
17095         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17096         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17097
17098 2010-11-27  Bruno Haible  <bruno@clisp.org>
17099
17100         readline: Improve configure output.
17101         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17102         "checking for readline..." result understandable.
17103
17104 2010-11-27  Bruno Haible  <bruno@clisp.org>
17105
17106         *printf-posix: Detect a bug on Solaris 10/x86.
17107         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17108         for floating-point output.
17109         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17110         directive.
17111         * tests/test-snprintf-posix.h (test_function): Likewise.
17112         * tests/test-sprintf-posix.h (test_function): Likewise.
17113         * tests/test-vasprintf-posix.c (test_function): Likewise.
17114         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17115         * doc/posix-functions/printf.texi: Likewise.
17116         * doc/posix-functions/snprintf.texi: Likewise.
17117         * doc/posix-functions/sprintf.texi: Likewise.
17118         * doc/posix-functions/vfprintf.texi: Likewise.
17119         * doc/posix-functions/vprintf.texi: Likewise.
17120         * doc/posix-functions/vsnprintf.texi: Likewise.
17121         * doc/posix-functions/vsprintf.texi: Likewise.
17122         * doc/glibc-functions/obstack_printf.texi: Likewise.
17123         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17124
17125 2010-11-27  Bruno Haible  <bruno@clisp.org>
17126
17127         Fix link error when module libunistring-optional is in use.
17128         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17129         * modules/striconveha-tests (Makefile.am): Likewise.
17130
17131 2010-11-27  Bruno Haible  <bruno@clisp.org>
17132
17133         regex: Mention link dependencies.
17134         * modules/regex (Link): New section.
17135         * modules/rpmatch (Link): Likewise.
17136         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17137
17138 2010-11-27  Bruno Haible  <bruno@clisp.org>
17139
17140         ftoastr: Fix compilation error on Solaris.
17141         * lib/ftoastr.c: Include <config.h>.
17142
17143 2010-11-27  Bruno Haible  <bruno@clisp.org>
17144
17145         getloadavg: Update documentation.
17146         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17147
17148 2010-11-27  Bruno Haible  <bruno@clisp.org>
17149
17150         sys_socket: Fix test whether the functions are declared.
17151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17152         not <sys/select.h>.
17153
17154 2010-11-27  Bruno Haible  <bruno@clisp.org>
17155
17156         getpass: Make sure to get system declaration on some platforms.
17157         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17158         gl_USE_SYSTEM_EXTENSIONS.
17159         * modules/getpass (Depends-on): Add extensions.
17160
17161 2010-11-26  Bruno Haible  <bruno@clisp.org>
17162
17163         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17164         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17165         'iconv' module is present.
17166         (ICONV_CONST): New macro.
17167         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17168         ICONV_CONST.
17169         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17170         set ICONV_CONST.
17171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17172         here.
17173         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17174         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17175         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17176         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17177         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17178         present.
17179
17180 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17181
17182         ftoastr: comment fix
17183         * lib/ftoastr.c: "little" -> "little or no" in comment
17184
17185 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17186
17187         stdint: port to GCC 4.3 + OSX + Octave
17188         On this platform, stdint.h is buggy and defines int64_t to long
17189         long int.  The replacement defined it to long int, causing
17190         problems with C++ style name mangling.  Instead, trust the system
17191         definition if INT64_MAX is defined, and likewise for the unsigned
17192         variant.   Problem reported by Jarno Rajahalme in
17193         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17194         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17195         and don't mess with int64_t and INT64_MAX in this case.
17196         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17197
17198 2010-11-24  Bruno Haible  <bruno@clisp.org>
17199
17200         doc: Corrections regarding MacOS X 10.4 and 10.5.
17201         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17202         MacOS X.
17203         Reported by Simon Josefsson.
17204
17205 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17206
17207         Uninstall ".bin" files installed by relocwrapper.
17208         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17209         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17210         unless it is already there.
17211
17212 2010-11-21  Bruno Haible  <bruno@clisp.org>
17213
17214         Update for NetBSD 5.0.
17215         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17216         NetBSD; the test fails on NetBSD 5.0.
17217         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17218         about NetBSD.
17219
17220 2010-11-21  Bruno Haible  <bruno@clisp.org>
17221
17222         Update for HP-UX 11.23 and HP-UX 11.31.
17223         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17224         HP-UX.
17225
17226 2010-11-21  Bruno Haible  <bruno@clisp.org>
17227
17228         Update for MacOS X 10.5.
17229         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17230         MacOS X; the test fails on MacOS X 10.5.8.
17231         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17232         about MacOS X.
17233
17234 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17235
17236         bootstrap: add bootstrap_sync option.
17237         See discussion at
17238         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17239         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17240         * build-aux/bootstrap: Accept --bootstrap-sync to update
17241         bootstrap if it is not identical to the local gnulib's
17242         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17243         enable this by default.  Accept --no-bootstrap-sync to disable
17244         it.
17245
17246 2010-11-20  Bruno Haible  <bruno@clisp.org>
17247
17248         Ensure that <features.h> is included before __GLIBC__ is tested.
17249         * lib/printf-parse.h: Include <features.h>.
17250         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17251         Reported by Mike Frysinger <vapier@gentoo.org>.
17252
17253         Ensure that <features.h> is included before __GLIBC__ is tested.
17254         * lib/wchar.in.h: Include <features.h>.
17255         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17256         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17257         Reported by Mike Frysinger <vapier@gentoo.org>.
17258
17259         Ensure that <features.h> is included before __GLIBC__ is tested.
17260         * lib/arpa_inet.in.h: Include <features.h>.
17261         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17262         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17263         Reported by Mike Frysinger <vapier@gentoo.org>.
17264
17265         Ensure that <features.h> is included before __GLIBC__ is tested.
17266         * build-aux/link-warning.h: Include <features.h>.
17267         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17268         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17269         Reported by Mike Frysinger <vapier@gentoo.org>.
17270
17271         Ensure that <features.h> is included before __GLIBC__ is tested.
17272         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17273         Reported by Mike Frysinger <vapier@gentoo.org>.
17274
17275 2010-11-20  Bruno Haible  <bruno@clisp.org>
17276
17277         memmem: Fix autoconf test.
17278         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17279
17280 2010-11-20  Bruno Haible  <bruno@clisp.org>
17281
17282         Port to uClibc.
17283         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17284         * lib/fcntl.in.h: Likewise.
17285         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17286         * lib/mbrtowc.c (mbrtowc): Likewise.
17287         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17288         * lib/strerror_r.c: Likewise.
17289         * lib/unistr/u8-strnlen.c: Likewise.
17290         * lib/vasnprintf.c (decimal_point_char): Likewise.
17291         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17292         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17294         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17295         * tests/test-sigaction.c (handler, main): Likewise.
17296         * lib/freading.h: Treat uClibc like a non-glibc platform.
17297         * lib/freading.c: Likewise.
17298         * lib/gettext.h: Likewise.
17299         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17300         Likewise.
17301         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17302         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17303         * lib/propername.c (proper_name_utf8): Likewise.
17304         * lib/spawn.in.h: Likewise.
17305         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17306         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17307         mem_cd_iconveh_internal): Likewise.
17308         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17309         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17310         strstr, strcasestr): Likewise.
17311         * lib/unicodeio.c (unicode_to_mb): Likewise.
17312         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17313         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17314         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17315         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17316         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17317         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17318         * lib/unistr/u8-stpncpy.c: Likewise.
17319         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17320         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17321         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17322         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17323         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17324         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17325         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17328         Likewise.
17329         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17330         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17331         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17333         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17334         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17335         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17336         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17337         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17338         * tests/test-striconveha.c (main): Likewise.
17339         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17340         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17341         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17342         * doc/posix-functions/getline.texi: Likewise.
17343         Reported by Mike Frysinger <vapier@gentoo.org>.
17344
17345 2010-11-20  Bruno Haible  <bruno@clisp.org>
17346
17347         nproc: Fix condition.
17348         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17349         HAVE_PTHREAD_AFFINITY_NP.
17350
17351 2010-11-20  Bruno Haible  <bruno@clisp.org>
17352
17353         Fix a comment.
17354         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17355
17356 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17357
17358         ftoastr: don't assume snprintf
17359         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17360         Implement a subset of snprintf here, by using sprintf safely.
17361         * modules/ftoastr (Depends-on): Remove snprintf.
17362
17363 2010-11-19  Jim Meyering  <meyering@redhat.com>
17364
17365         test-rename.h: fix compilation failure
17366         * tests/test-rename.h (test_rename): Add omitted "}".
17367
17368 2010-11-17  Jim Meyering  <meyering@redhat.com>
17369
17370         maint.mk: add a URL discussing the no-@acronym policy
17371         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17372
17373 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17374
17375         ftoastr: depend on snprintf, improve comments
17376         * lib/ftoastr.c: Also mention Loitsch's draft.
17377         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17378         needed in the current implementation, but it might simplify
17379         speeding up the code later.
17380         * modules/ftoastr: Depend on snprintf; this improves portability.
17381         Suggested by Bruno Haible in the same email.
17382
17383         ftoastr: port to hosts lacking strtof and strtold
17384         Problem reported by Bruno Haible in
17385         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17386         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17387         environment and strtold (and presumably strtof) are not available.
17388         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17389         (configure.ac): Require gl_C99_STRTOLD.
17390
17391 2010-11-18  Bruno Haible  <bruno@clisp.org>
17392
17393         c-strtold: Avoid link error on AIX 7.
17394         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17395         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17396         (gl_C_STRTOLD): Test whether strtold_l exists.
17397         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17398
17399 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17400
17401         intprops: new macro INT_BITS_STRLEN_BOUND
17402         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17403         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17404         not exposed.  Also, it uses a slightly tighter bound than before;
17405         though this makes no practical difference, we might as well be as
17406         tight as we easily can.
17407
17408         ftoastr: new module, for lossless conversion of floats to short strings
17409         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17410         * modules/ftoastr: New files.
17411
17412 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17413
17414         bootstrap: port to Solaris sed
17415         * build-aux/bootstrap (get_version): Port to Solaris sed.
17416         See Ralf Wildenhues's note in
17417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17418
17419 2010-11-14  Jim Meyering  <meyering@redhat.com>
17420
17421         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17422         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17423         and move definition closer to sole use.
17424
17425 2010-11-13  Jim Meyering  <meyering@redhat.com>
17426
17427         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17428         Now we require at least autoconf-2.59, which means the work-around
17429         is no longer needed.
17430         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17431         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17432         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17433         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17434         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17435
17436 2010-11-13  Bruno Haible  <bruno@clisp.org>
17437
17438         rename, renameat: Avoid test failures at NFS mounted locations.
17439         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17440         functions.
17441         (test_rename): Use assert_nonexistent.
17442         * tests/test-rename.c: Include <dirent.h>.
17443         * tests/test-renameat.c: Likewise.
17444         Reported by Gary V. Vaughan <gary@gnu.org>.
17445
17446         rename, renameat: Document Linux bug with NFS
17447         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17448         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17449         * doc/posix-functions/renameat.texi: Likewise.
17450         Suggested by Eric Blake.
17451
17452 2010-11-13  Bruno Haible  <bruno@clisp.org>
17453
17454         rename test: Add comments.
17455         * tests/test-rename.h (test_rename): Add structure and comments.
17456
17457 2010-11-13  Eric Blake  <eblake@redhat.com>
17458
17459         maintainer-makefile: cover a few more files
17460         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17461         scripts generated within C files, for libvirt.
17462
17463 2010-11-13  Bruno Haible  <bruno@clisp.org>
17464
17465         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17466         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17467         character, return the number of bytes that belong together, not always
17468         1.
17469         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17470         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17471         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17472         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17473         number of bytes of an invalid character.
17474         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17475         (main): Invoke it.
17476         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17477         results.
17478         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17479         malformed byte sequences.
17480         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17481         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17482         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17483         Reported by Ben Pfaff and Paolo Bonzini.
17484
17485 2010-11-13  Bruno Haible  <bruno@clisp.org>
17486
17487         openat: Work around glibc bug with fchownat() and empty file names.
17488         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17489         (gl_FUNC_FCHOWNAT): Invoke it.
17490         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17491         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17492         Reported by Gary V. Vaughan <gary@gnu.org>.
17493
17494 2010-11-13  Bruno Haible  <bruno@clisp.org>
17495
17496         openat: Ensure autoconf macro ordering.
17497         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17498         gl_USE_SYSTEM_EXTENSIONS.
17499         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17500
17501 2010-11-13  Bruno Haible  <bruno@clisp.org>
17502
17503         Update comments.
17504         * lib/unistr/u8-check.c: Update file name in comments.
17505         * lib/unistr/u8-mblen.c: Likewise.
17506         * lib/unistr/u8-prev.c: Likewise.
17507         * lib/unistr/u8-strmblen.c: Likewise.
17508         * lib/unistr/u8-strmbtouc.c: Likewise.
17509
17510 2010-11-13  Jim Meyering  <meyering@redhat.com>
17511
17512         tests: avoid test failure on Solaris 10 due to lack of PATH export
17513         * tests/test-update-copyright.sh: Don't forget to export PATH.
17514
17515         init.sh: ensure that IFS is defined, just in case...
17516         * tests/init.sh (setup_): Ensure that IFS is defined,
17517         so that saving and restoring it works as expected.  This
17518         appears to be useful at least for an old version of dash
17519         from a long time ago (RH 6).  See here for details:
17520         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17521
17522         maint.mk: tighten "test a == b" check
17523         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17524         test to files that contain something like #!/bin/sh.
17525         Without this, coreutils would get two false positives in
17526         the comments of C source files.
17527
17528 2010-11-12  Eric Blake  <eblake@redhat.com>
17529
17530         bootstrap: fix typo in previous attempt
17531         * build-aux/bootstrap (buildreq): Correct the grouping.
17532         Reported by Paul Eggert.
17533
17534         maintainer-makefile: prohibit test x == x
17535         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17536         Based on a report by Matthias Bolte.
17537
17538         bootstrap: allow FreeBSD gzip
17539         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17540         which has no '.' and goes to stderr.
17541         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17542         Reported by Matthias Bolte.
17543
17544         maintainer-makefile: check for i18n setup
17545         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17546         will likely work.
17547
17548 2010-11-12  Bruno Haible  <bruno@clisp.org>
17549
17550         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17551         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17552         * lib/nanosleep.c (nanosleep): Likewise.
17553
17554 2010-11-11  Bruno Haible  <bruno@clisp.org>
17555
17556         fcntl-h: Fix for use of C++ on glibc systems.
17557         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17558         also on glibc systems in C++ mode.
17559         Reported by Gary V. Vaughan <gary@gnu.org>.
17560
17561 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17562
17563         mknod: avoid false failure with dash
17564         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17565
17566 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17567
17568         unlink: Fix "is it should" typo in diagnostic.
17569         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17571
17572 2010-11-11  Bruno Haible  <bruno@clisp.org>
17573
17574         Tests for module 'strerror_r-posix'.
17575         * modules/strerror_r-posix-tests: New file.
17576         * tests/test-strerror_r.c: New file.
17577         * tests/test-string-c++.cc: Check the signature of strerror_r.
17578
17579         New module 'strerror_r-posix'.
17580         * lib/string.in.h (strerror_r): New declaration.
17581         * lib/strerror_r.c: New file.
17582         * m4/strerror_r.m4: New file.
17583         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17584         of strerror_r.
17585         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17586         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17587         * modules/strerror_r-posix: New file.
17588         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17589         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17590         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17591         portability problems.
17592
17593 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17594
17595         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17596         line is also considered for output. Quoted function name in shell
17597         command, so temporary files for functions like MyClass::operator()
17598         are removed correctly without errors.
17599
17600 2010-11-09  Bruno Haible  <bruno@clisp.org>
17601
17602         * doc/posix-functions/strerror.texi: List more failing platforms.
17603
17604         * doc/posix-functions/strerror.texi: Add a comment.
17605
17606 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17607
17608         fdopendir: fix bug on MacOS X when low on file descriptors
17609
17610         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17611         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17612         All callers changed.
17613         (fdopendir): Invoke save_cwd at the top level, not after using
17614         multiple dup() calls to use up file descriptors.  Then retry
17615         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17616         less than the maximum number of open file descriptors, because
17617         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17618         on Mac OS X 10.6.4 for tar 1.24
17619         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17620         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17621         and for tar 1.25
17622         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17623
17624 2010-11-07  Bruno Haible  <bruno@clisp.org>
17625
17626         vasnprintf: Support I flag on glibc systems.
17627         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17628         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17629         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17630         snprintf function.
17631         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17632         glibc systems.
17633         * tests/test-vasnprintf-posix3.c: New file.
17634         * modules/vasnprintf-posix-tests (Files): Add it.
17635         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17636
17637 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17638
17639         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17640         * MODULES.html.sh: For compiler warnings, use name
17641         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17642
17643 2010-11-05  Eric Blake  <eblake@redhat.com>
17644
17645         ceil, floor: avoid spurious failure with icc
17646         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17647         [denormals-as-zero] when optimizing without -mieee-fp option.
17648         * tests/test-floorf2.c (floorf_reference): Likewise.
17649         * tests/test-ceilf1.c (dummy): New function.
17650         (main): Use it to outsmart icc's optimization.
17651         * tests/test-floorf1.c (dummy, main): Likewise.
17652
17653         tests: require working signbit
17654         * modules/ceilf-tests (Depends-on): Add signbit.
17655         * modules/ceill-tests (Depends-on): Likewise.
17656         * modules/floorf-tests (Depends-on): Likewise.
17657         * modules/floorl-tests (Depends-on): Likewise.
17658         * modules/round-tests (Depends-on): Likewise.
17659         * modules/roundf-tests (Depends-on): Likewise.
17660         * modules/roundl-tests (Depends-on): Likewise.
17661         * modules/trunc-tests (Depends-on): Likewise.
17662         * modules/truncf-tests (Depends-on): Likewise.
17663         * modules/truncl-tests (Depends-on): Likewise.
17664
17665         strtod: work around icc bug
17666         * lib/strtod.c (minus_zero): Define to working value.
17667         (strtod): Use it to avoid icc bug.
17668
17669         copysign: enhance tests
17670         * modules/copysign-tests (Files): Add minus-zero.h.
17671         * tests/test-copysign.c (main): Also test zeros.
17672
17673 2010-11-04  Eric Blake  <eblake@redhat.com>
17674
17675         ceil, floor, round, trunc: enhance tests of -0
17676         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17677         * tests/test-ceill.c (main): Likewise.
17678         * tests/test-floorf1.c (main): Likewise.
17679         * tests/test-floorl.c (main): Likewise.
17680         * tests/test-round1.c (main): Likewise.
17681         * tests/test-roundf1.c (main): Likewise.
17682         * tests/test-roundl.c (main): Likewise.
17683         * tests/test-trunc1.c (main): Likewise.
17684         * tests/test-truncf1.c (main): Likewise.
17685         * tests/test-truncl.c (main): Likewise.
17686
17687 2010-11-04  Eric Blake  <eblake@redhat.com>
17688
17689         frexp, tests: work around ICC bug with -zero
17690         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17691         works with more compilers.
17692         * tests/minus-zero.h: New file.
17693         * modules/ceilf-tests (Files): Include it.
17694         * modules/ceill-tests (Files): Likewise.
17695         * modules/floorf-tests (Files): Likewise.
17696         * modules/floorl-tests (Files): Likewise.
17697         * modules/frexp-nolibm-tests (Files): Likewise.
17698         * modules/frexp-tests (Files): Likewise.
17699         * modules/frexpl-nolibm-tests (Files): Likewise.
17700         * modules/frexpl-tests (Files): Likewise.
17701         * modules/isnan-tests (Files): Likewise.
17702         * modules/isnand-nolibm-tests (Files): Likewise.
17703         * modules/isnand-tests (Files): Likewise.
17704         * modules/isnanf-nolibm-tests (Files): Likewise.
17705         * modules/isnanf-tests (Files): Likewise.
17706         * modules/isnanl-nolibm-tests (Files): Likewise.
17707         * modules/isnanl-tests (Files): Likewise.
17708         * modules/round-tests (Files): Likewise.
17709         * modules/roundf-tests (Files): Likewise.
17710         * modules/roundl-tests (Files): Likewise.
17711         * modules/ldexpl-tests (Files): Likewise.
17712         * modules/signbit-tests (Files): Likewise.
17713         * modules/snprintf-posix-tests (Files): Likewise.
17714         * modules/sprintf-posix-tests (Files): Likewise.
17715         * modules/strtod-tests (Files): Likewise.
17716         * modules/trunc-tests (Files): Likewise.
17717         * modules/truncf-tests (Files): Likewise.
17718         * modules/truncl-tests (Files): Likewise.
17719         * modules/vsnprintf-posix-tests (Files): Likewise.
17720         * modules/vsprintf-posix-tests (Files): Likewise.
17721         * modules/vasnprintf-posix-tests (Files): Likewise.
17722         * modules/vasprintf-posix-tests (Files): Likewise.
17723         * tests/test-ceilf1.c (main): Use it.
17724         * tests/test-ceill.c (main): Likewise.
17725         * tests/test-floorf1.c (main): Likewise.
17726         * tests/test-floorl.c (main): Likewise.
17727         * tests/test-frexp.c (main): Likewise.
17728         * tests/test-frexpl.c (main): Likewise.
17729         * tests/test-isnan.c (main): Likewise.
17730         * tests/test-isnand.h (main): Likewise.
17731         * tests/test-isnanf.h (main): Likewise.
17732         * tests/test-isnanl.h (main): Likewise.
17733         * tests/test-ldexpl.c (main): Likewise.
17734         * tests/test-round.c (main): Likewise.
17735         * tests/test-roundf.c (main): Likewise.
17736         * tests/test-roundl.c (main): Likewise.
17737         * tests/test-signbit.c (test_signbitf, test_signbitd)
17738         (test_signbitl): Likewise.
17739         * tests/test-snprintf-posix.h (test_function): Likewise.
17740         * tests/test-sprintf-posix.h (test_function): Likewise.
17741         * tests/test-strtod.c (main): Likewise.
17742         * tests/test-trunc1.c (main): Likewise.
17743         * tests/test-truncf1.c (main): Likewise.
17744         * tests/test-truncl.c (main): Likewise.
17745
17746         isnanl: work around icc bug
17747         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17748
17749 2010-11-03  Eric Blake  <eblake@redhat.com>
17750
17751         tests: fix compiler warnings
17752         * tests/test-getopt.h (test_getopt): Fix condition.
17753         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17754         * tests/test-pipe2.c (main): Likewise.
17755         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17756
17757         utimens: fix broken m4 test
17758         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17759
17760 2010-10-28  Bruno Haible  <bruno@clisp.org>
17761
17762         posix_spawn*, getdtablesize: Relax license.
17763         * modules/posix_spawn (License): Change to LGPLv2+.
17764         * modules/posix_spawnp (License): Likewise.
17765         * modules/posix_spawn-internal (License): Likewise.
17766         * modules/posix_spawnattr_init (License): Likewise.
17767         * modules/posix_spawnattr_getflags (License): Likewise.
17768         * modules/posix_spawnattr_setflags (License): Likewise.
17769         * modules/posix_spawnattr_getpgroup (License): Likewise.
17770         * modules/posix_spawnattr_setpgroup (License): Likewise.
17771         * modules/posix_spawnattr_getschedparam (License): Likewise.
17772         * modules/posix_spawnattr_setschedparam (License): Likewise.
17773         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17774         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17775         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17776         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17777         * modules/posix_spawnattr_getsigmask (License): Likewise.
17778         * modules/posix_spawnattr_setsigmask (License): Likewise.
17779         * modules/posix_spawnattr_destroy (License): Likewise.
17780         * modules/posix_spawn_file_actions_init (License): Likewise.
17781         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17782         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17783         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17784         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17785         * modules/getdtablesize (License): Likewise.
17786         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17787
17788 2010-10-26  Bruno Haible  <bruno@clisp.org>
17789
17790         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17791         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17792         Cygwin and mingw.
17793         Suggested by Eric Blake.
17794
17795 2010-10-26  Bruno Haible  <bruno@clisp.org>
17796
17797         stdio: Work around compilation error due to renameat() on Solaris 10.
17798         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17799         * lib/renameat.c: Don't include <unistd.h> here.
17800         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17801         Reported by Paul Eggert and Eric Blake.
17802
17803 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17804
17805         renameat: port to Solaris 10, which declares renameat in unistd.h
17806
17807         * lib/renameat.c: Include unistd.h before stdio.h, because
17808         Solaris 10 declares renameat in unistd.h.  Problem encountered
17809         when building GNU tar 1.24 on Solaris 10.
17810
17811 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17812
17813         fdopendir: fix C89 compilation
17814         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17815         compilers.
17816
17817 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17818
17819         inttostr: simplify by removing unnecessary redundancy
17820         * lib/anytostr.c: Don't include verify.h.
17821         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17822         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17823         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17824         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17825         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17826         Likewise.
17827         * modules/inttostr (Depends-on): Remove 'verify'.
17828
17829 2010-10-23  Bruno Haible  <bruno@clisp.org>
17830
17831         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17832         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17833         Reported by Eric Blake.
17834
17835 2010-10-23  Bruno Haible  <bruno@clisp.org>
17836
17837         Tests: Fix LOCALE_JA on MirBSD 10.
17838         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17839         to an UTF-8 locale.
17840         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17841         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17842         Reported by Eric Blake.
17843
17844 2010-10-21  Bruno Haible  <bruno@clisp.org>
17845
17846         nl_langinfo test: Avoid test failure on NetBSD 5.
17847         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17848         Reported by Eric Blake.
17849
17850 2010-10-21  Eric Blake  <eblake@redhat.com>
17851
17852         c-stack: work around libsigsegv 2.8 bug
17853         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17854         overflow on at least PowerPC64.
17855
17856 2010-10-17  Bruno Haible  <bruno@clisp.org>
17857
17858         userspec: Drop redundant file.
17859         * modules/userspec (Files): Remove lib/inttostr.h.
17860
17861 2010-10-17  Bruno Haible  <bruno@clisp.org>
17862
17863         nl_langinfo tests: Silence some warnings.
17864         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17865         Reported by Jim Meyering.
17866
17867 2010-10-17  Bruno Haible  <bruno@clisp.org>
17868
17869         Make use of GCC's attribute __alloc_size__.
17870         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17871         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17872         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17873         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17874         __alloc_size__.
17875         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17876         Suggested by Jim Meyering.
17877
17878 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17879
17880         bootstrap: anchor .gitignore entries.
17881         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17882         with...
17883         (insert_vc_ignore): ... this new function, which prepends `/' to
17884         all .gitignore entries before passing them to
17885         insert_sorted_if_absent.
17886
17887 2010-10-16  Bruno Haible  <bruno@clisp.org>
17888
17889         nextafter: Fix configure check.
17890         * modules/nextafter (configure.ac): Correct expected prototype.
17891
17892 2010-10-16  Bruno Haible  <bruno@clisp.org>
17893
17894         termios: Update documentation.
17895         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17896
17897 2010-10-16  Bruno Haible  <bruno@clisp.org>
17898
17899         tests: Make them compile with TinyCC.
17900         * tests/test-strstr.c (main): Remove parentheses around array
17901         initializer.
17902
17903 2010-10-15  Eric Blake  <eblake@redhat.com>
17904
17905         ignore-value: make header idempotent
17906         * lib/ignore-value.h: Add double-inclusion guards.
17907         Reported by Stefan Berger.
17908
17909 2010-10-15  Jim Meyering  <meyering@redhat.com>
17910
17911         GNUmakefile: handle "stable" target, not "major"
17912         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17913         lists in maint.mk and announce-gen.  Without this, "make stable"
17914         would fail to ensure that $(VERSION) is up to date.
17915
17916 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17917
17918         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17919         & co.
17920
17921 2010-10-14  Bruno Haible  <bruno@clisp.org>
17922
17923         vasnprintf: Don't set errno to 0.
17924         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17925         block that sets it to 0.
17926         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17927
17928 2010-10-14  Bruno Haible  <bruno@clisp.org>
17929
17930         socketlib: Fix.
17931         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17932         gl_PREREQ_SYS_H_WINSOCK2.
17933         Reported by Ian Beckwith <ianb@erislabs.net>.
17934
17935 2010-10-13  Jim Meyering  <meyering@redhat.com>
17936
17937         test-select-stdin.c: avoid warn_unused_result warnings
17938         * tests/test-select-stdin.c: Include "macros.h".
17939         ASSERT that read and fflush succeed.
17940
17941 2010-10-13  Jim Meyering  <meyering@redhat.com>
17942
17943         git-version-gen: do require git-VC'd files in cwd
17944         * build-aux/git-version-gen: Reject a git version string
17945         if there are no commits associated with the current directory.
17946         This avoids an unlikely false-positive (unrelated dir whose parent
17947         repository also contains a tag matching v*), as pointed out
17948         by Giuseppe Scrivano in
17949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17950
17951 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17952
17953         argv-iter: omit nonconforming declaration
17954         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17955         enum arg_iter_err declaration, which doesn't conform to C99.
17956         Solaris 10 cc warns about this.
17957
17958 2010-10-13  Eric Blake  <eblake@redhat.com>
17959
17960         termios: fix compilation on mingw
17961         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17962         (gl_TERMIOS_H): Adjust it on mingw.
17963         * modules/termios (Makefile.am): Substitute new key.
17964         * lib/termios.in.h (includes): Make include_next conditional.
17965         * doc/posix-headers/termios.texi (termios.h): Update
17966         documentation.
17967         Reported by Daniel P. Berrange.
17968
17969 2010-10-13  Jim Meyering  <meyering@redhat.com>
17970
17971         git-version-gen: don't require that .git/ be in the current dir
17972         * build-aux/git-version-gen: Adjust this script so that it works
17973         when run from any working directory beneath the top-level .git/-
17974         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17975         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17976
17977         test-select: avoid warn_unused_result warnings
17978         * tests/test-select.c: Include "macros.h".
17979         ASSERT that each call to read, write, and pipe succeeds.
17980         While not technically required, also check each "close".
17981         * modules/select-tests (Files): Add tests/macros.h.
17982
17983         test-symlinkat: remove declaration of unused local
17984         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17985
17986         test-inttostr: avoid shadowing warnings
17987         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17988         and use malloc rather than the stack for the same reason as
17989         mentioned in the comment justifying the other allocation.
17990
17991 2010-10-11  Bruno Haible  <bruno@clisp.org>
17992
17993         stdlib: Allow multiple gnulib generated replacements to coexist.
17994         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17995         Reported by Sam Steingold <sds@gnu.org>.
17996
17997 2010-10-11  Jim Meyering  <meyering@redhat.com>
17998
17999         fix a documentation typo
18000         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18001
18002 2010-10-11  Eric Blake  <eblake@redhat.com>
18003
18004         futimens: work around Solaris 11 bug
18005         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18006         * tests/test-futimens.h (test_futimens): Enhance, rather than
18007         weaken test.
18008         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18009
18010 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18011
18012         Indentation.
18013         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18014         higher-level operators more to the left.
18015
18016 2010-10-11  Jim Meyering  <meyering@redhat.com>
18017
18018         test-futimens: avoid unwarranted test failure on Solaris 5.11
18019         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18020         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18021         because it tries to dereference the NULL name argument.
18022
18023 2010-10-11  Bruno Haible  <bruno@clisp.org>
18024
18025         Indentation.
18026         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18027         indentation.
18028
18029 2010-10-11  Jim Meyering  <meyering@redhat.com>
18030
18031         spawn.in.h: make indentation consistent with parentheses
18032         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18033         Make indentation consistent with parentheses.
18034
18035 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18036
18037         Fix mismatched parens in previous commit
18038         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18039         parens.
18040
18041 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18042
18043         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18044
18045         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18046         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18047         * lib/malloca.c: Include "verify.h".
18048         (verify1): Remove, replacing with a verify call.
18049         * lib/relocwrapper.c (verify1): Likewise.
18050         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18051         Likewise.
18052         * modules/malloca (Depends-on): Add 'verify'.
18053         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18054         * modules/vasnprintf (Depends-on): Add 'verify'.
18055         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18056         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18057         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18058         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18059         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18060         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18061         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18062
18063         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18064
18065         Formerly the style was sometimes 2*X - 1, because the C standard
18066         was wrongly thought to disallow ?: in integral constant expressions.
18067         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18068         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18069         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18070         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18071         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18072         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18073         verify that time_t cannot be floating.
18074
18075 2010-10-08  Eric Blake  <eblake@redhat.com>
18076
18077         time: enforce recent POSIX ruling that time_t is integral
18078         * lib/time.in.h (__time_t_must_be_integral): Detect any
18079         problematic systems, allowing the rest of gnulib to assume POSIX.
18080
18081 2010-10-08  Jim Meyering  <meyering@redhat.com>
18082
18083         fdopendir: fix a bug on systems lacking openat and /proc support
18084         OpenBSD 4.7 is one such system.  The most noticeable effect was
18085         failure of any application making nontrivial use of fts: rm, du,
18086         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18087           ./rm: traversal failed: `a': Bad file descriptor
18088         Debugging that, you see that even though FD 6 was closed just
18089         prior to the opendir call in fd_clone_opendir, its resulting
18090         dir->dd_fd was 8, rather than the expected value of 6:
18091
18092         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18093         93                close (fd);
18094         (gdb) n
18095         94                dir = fd_clone_opendir (dupfd);
18096         (gdb) n
18097         95                saved_errno = errno;
18098         (gdb) p dir->dd_fd
18099         $11 = 8
18100
18101         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18102         The problem is that on OpenBSD, fd_clone_opendir has to resort
18103         to using the old-style save/restore CWD mechanism, due to its
18104         lack of openat/proc support, and *that* would steal the FD (6)
18105         that opendir was supposed to use.
18106
18107         The fix is to squirrel away the desired FD so that save_cwd uses a
18108         different one, and then free the dest FD right before calling opendir.
18109         That guarantees opendir will use the required file descriptor.
18110
18111         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18112
18113 2010-10-08  Bruno Haible  <bruno@clisp.org>
18114
18115         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18116         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18117
18118 2010-10-08  Bruno Haible  <bruno@clisp.org>
18119
18120         nanosleep: Make replacement POSIX compliant.
18121         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18122         is out of range.
18123         Reported by Jim Meyering.
18124
18125 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18126
18127         bootstrap: add hook for altering gnulib.mk, for Bison
18128         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18129         the Bison bootstrapping process can rewrite file names and variables
18130         in this file before later parts of 'bootstrap' use the file.
18131         Bison wants to include lib/gnulib.mk from the top-level makefile,
18132         so it needs the file names in this file to be relative to the top
18133         level, not relative to lib; plus it needs variable names to be
18134         rewritten.
18135         (slurp): Use the new function.
18136
18137         bootstrap: reformat for readability
18138         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18139
18140 2010-10-08  Eric Blake  <eblake@redhat.com>
18141
18142         docs: update cygwin progress
18143         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18144         1.7.7.
18145         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18146         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18147         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18148         * doc/posix-functions/carg.texi (carg): Likewise.
18149         * doc/posix-functions/cargf.texi (cargf): Likewise.
18150         * doc/posix-functions/casin.texi (casin): Likewise.
18151         * doc/posix-functions/casinf.texi (casinf): Likewise.
18152         * doc/posix-functions/casinh.texi (casinh): Likewise.
18153         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18154         * doc/posix-functions/catan.texi (catan): Likewise.
18155         * doc/posix-functions/catanf.texi (catanf): Likewise.
18156         * doc/posix-functions/catanh.texi (catanh): Likewise.
18157         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18158         * doc/posix-functions/ccos.texi (ccos): Likewise.
18159         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18160         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18161         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18162         * doc/posix-functions/cexp.texi (cexp): Likewise.
18163         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18164         * doc/posix-functions/cimag.texi (cimag): Likewise.
18165         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18166         * doc/posix-functions/clog.texi (clog): Likewise.
18167         * doc/posix-functions/clogf.texi (clogf): Likewise.
18168         * doc/posix-functions/conj.texi (conj): Likewise.
18169         * doc/posix-functions/conjf.texi (conjf): Likewise.
18170         * doc/posix-functions/cpow.texi (cpow): Likewise.
18171         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18172         * doc/posix-functions/cproj.texi (cproj): Likewise.
18173         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18174         * doc/posix-functions/creal.texi (creal): Likewise.
18175         * doc/posix-functions/crealf.texi (crealf): Likewise.
18176         * doc/posix-functions/csin.texi (csin): Likewise.
18177         * doc/posix-functions/csinf.texi (csinf): Likewise.
18178         * doc/posix-functions/csinh.texi (csinh): Likewise.
18179         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18180         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18181         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18182         * doc/posix-functions/ctan.texi (ctan): Likewise.
18183         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18184         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18185         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18186         * doc/posix-headers/complex.texi (complex.h): Likewise.
18187
18188 2010-10-07  Jim Meyering  <meyering@redhat.com>
18189
18190         parse-datetime: avoid compilation failure on OpenBSD 4.7
18191         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18192         This works around a compilation failure on OpenBSD 4.7:
18193         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18194
18195 2010-10-07  Eric Blake  <eblake@redhat.com>
18196
18197         docs: update cygwin progress
18198         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18199         1.7.6.
18200         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18201         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18202         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18203         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18204         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18205         Likewise.
18206         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18207         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18208         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18209         Likewise.
18210         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18211         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18212         Likewise.
18213         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18214         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18215         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18216         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18217         Likewise.
18218         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18219         Likewise.
18220         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18221
18222         docs: update parse-datetime history
18223         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18224         documentation of this function's history and alternatives.
18225
18226         cygwin: use more robust version check
18227         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18228         exclude an eventual cygwin 1.9.1.
18229         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18231         (gl_FUNC_STRCASESTR): Likewise.
18232         Reported by Bruno Haible.
18233
18234 2010-10-06  Bruno Haible  <bruno@clisp.org>
18235
18236         string, sys_select: Avoid #including large headers unless necessary.
18237         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18238         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18239         OSF/1, BeOS, Haiku.
18240         Reported by Jim Meyering.
18241
18242 2010-10-05  Eric Blake  <eblake@redhat.com>
18243
18244         memmem, strstr, strcasestr: fix bug with long periodic needle
18245         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18246         periodic needle having false positive.
18247         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18248         and cygwin 1.7.7.
18249         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18250         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18251         (gl_FUNC_STRCASESTR): Likewise.
18252         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18253         * tests/test-memmem.c (main): Expose the bug.
18254         * tests/test-strcasestr.c (main): Likewise.
18255         * tests/test-strstr.c (main): Likewise.
18256         * tests/test-c-strcasestr.c (main): Likewise.
18257         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18258         * doc/posix-functions/strstr.texi (strstr): Likewise.
18259         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18260         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18261
18262 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18263
18264         parse-datetime: do some more renaming
18265         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18266         parse_datetime, not get_date.  Mention the renaming.
18267         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18268         in comments.
18269         * m4/bison.m4: Likewise.
18270
18271 2010-10-05  Eric Blake  <eblake@redhat.com>
18272
18273         parse-datetime: better name than get_date
18274         * NEWS: Reword the deprecation notice.
18275         * modules/get_date: Rename to modules/parse-datetime.
18276         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18277         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18278         * lib/get_date.y: Rename to lib/parse-datetime.y.
18279         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18280         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18281         * doc/getdate.texi: Provide fallback wrapper.
18282         * lib/getdate.h: Move guts, and wrap...
18283         * lib/parse-datetime.h: ...new file.
18284         * lib/parse-datetime.y (get_date): Rename...
18285         (parse_datetime): ...to this.
18286         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18287         (gl_PARSE_DATETIME): ...to this.
18288         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18289         documentation.
18290         * modules/getdate (Files): Provide fallback docs and header.
18291         (Notice, Depends-on): Update references.
18292         * tests/test-parse-datetime.c: Likewise.
18293         * DEPENDENCIES: Likewise.
18294         * MODULES.html.sh (Date and time <time.h>): Likewise.
18295         * doc/parse-datetime.texi (Date input formats)
18296         (Authors of parse_datetime): Likewise.
18297         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18298         (Include): Likewise.
18299         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18300         * gnulib-tool: Likewise.
18301         * m4/bison.m4 (gl_BISON): Likewise.
18302         Suggested by Bruno Haible.
18303
18304 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18305
18306         more ports to Solaris tr, which needs [] around ranges
18307         * gnulib-tool: Solaris tr needs [] around ranges.
18308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18309         * tests/test-pipe-filter-gi1.c (main): Likewise.
18310         * tests/test-pipe-filter-ii1.c (main): Likewise.
18311
18312 2010-10-05  Eric Blake  <eblake@redhat.com>
18313
18314         bootstrap: fix Solaris regression
18315         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18316         around ranges.
18317         Reported by Pádraig Brady.
18318
18319         bootstrap: work with pkg-config
18320         * build-aux/bootstrap (check_versions): Also transliterate - in
18321         prerequisite name.
18322         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18323         prerequisites that were already found, to avoid confusion.
18324         Reported by Justin Clift.
18325
18326         faccessat: remove unused wrappers
18327         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18328         presence of these wrappers dragged in -lgen on Solaris.
18329         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18330
18331 2010-10-05  Jim Meyering  <meyering@redhat.com>
18332
18333         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18334         * Makefile (sc_pragma_columns): New syntax-check rule.
18335
18336 2010-10-04  Bruno Haible  <bruno@clisp.org>
18337
18338         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18339         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18340         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18341         Reported by Bruce Korb and Eric Blake.
18342
18343 2010-10-04  Bruno Haible  <bruno@clisp.org>
18344
18345         threadlib: Make option --with-libpth-prefix work.
18346         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18347         use $LIBPTH, not just -lpth.
18348
18349 2010-10-04  Bruno Haible  <bruno@clisp.org>
18350
18351         Avoid line length limitation from HP NonStop system header files.
18352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18353         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18354         * lib/ctype.in.h: Likewise.
18355         * lib/dirent.in.h: Likewise.
18356         * lib/errno.in.h: Likewise.
18357         * lib/fcntl.in.h: Likewise.
18358         * lib/float.in.h: Likewise.
18359         * lib/getopt.in.h: Likewise.
18360         * lib/iconv.in.h: Likewise.
18361         * lib/inttypes.in.h: Likewise.
18362         * lib/langinfo.in.h: Likewise.
18363         * lib/locale.in.h: Likewise.
18364         * lib/math.in.h: Likewise.
18365         * lib/netdb.in.h: Likewise.
18366         * lib/netinet_in.in.h: Likewise.
18367         * lib/poll.in.h: Likewise.
18368         * lib/pthread.in.h: Likewise.
18369         * lib/pty.in.h: Likewise.
18370         * lib/sched.in.h: Likewise.
18371         * lib/se-selinux.in.h: Likewise.
18372         * lib/search.in.h: Likewise.
18373         * lib/signal.in.h: Likewise.
18374         * lib/spawn.in.h: Likewise.
18375         * lib/stdarg.in.h: Likewise.
18376         * lib/stddef.in.h: Likewise.
18377         * lib/stdint.in.h: Likewise.
18378         * lib/stdio.in.h: Likewise.
18379         * lib/stdlib.in.h: Likewise.
18380         * lib/string.in.h: Likewise.
18381         * lib/strings.in.h: Likewise.
18382         * lib/sys_file.in.h: Likewise.
18383         * lib/sys_ioctl.in.h: Likewise.
18384         * lib/sys_select.in.h: Likewise.
18385         * lib/sys_socket.in.h: Likewise.
18386         * lib/sys_stat.in.h: Likewise.
18387         * lib/sys_time.in.h: Likewise.
18388         * lib/sys_times.in.h: Likewise.
18389         * lib/sys_utsname.in.h: Likewise.
18390         * lib/sys_wait.in.h: Likewise.
18391         * lib/sysexits.in.h: Likewise.
18392         * lib/termios.in.h: Likewise.
18393         * lib/time.in.h: Likewise.
18394         * lib/unistd.in.h: Likewise.
18395         * lib/wchar.in.h: Likewise.
18396         * lib/wctype.in.h: Likewise.
18397         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18398         * modules/ctype (Makefile.am): Likewise.
18399         * modules/dirent (Makefile.am): Likewise.
18400         * modules/errno (Makefile.am): Likewise.
18401         * modules/fcntl-h (Makefile.am): Likewise.
18402         * modules/float (Makefile.am): Likewise.
18403         * modules/getopt-posix (Makefile.am): Likewise.
18404         * modules/iconv-h (Makefile.am): Likewise.
18405         * modules/inttypes (Makefile.am): Likewise.
18406         * modules/langinfo (Makefile.am): Likewise.
18407         * modules/locale (Makefile.am): Likewise.
18408         * modules/math (Makefile.am): Likewise.
18409         * modules/netdb (Makefile.am): Likewise.
18410         * modules/netinet_in (Makefile.am): Likewise.
18411         * modules/poll-h (Makefile.am): Likewise.
18412         * modules/pthread (Makefile.am): Likewise.
18413         * modules/pty (Makefile.am): Likewise.
18414         * modules/sched (Makefile.am): Likewise.
18415         * modules/search (Makefile.am): Likewise.
18416         * modules/selinux-h (Makefile.am): Likewise.
18417         * modules/signal (Makefile.am): Likewise.
18418         * modules/spawn (Makefile.am): Likewise.
18419         * modules/stdarg (Makefile.am): Likewise.
18420         * modules/stddef (Makefile.am): Likewise.
18421         * modules/stdint (Makefile.am): Likewise.
18422         * modules/stdio (Makefile.am): Likewise.
18423         * modules/stdlib (Makefile.am): Likewise.
18424         * modules/string (Makefile.am): Likewise.
18425         * modules/strings (Makefile.am): Likewise.
18426         * modules/sys_file (Makefile.am): Likewise.
18427         * modules/sys_ioctl (Makefile.am): Likewise.
18428         * modules/sys_select (Makefile.am): Likewise.
18429         * modules/sys_socket (Makefile.am): Likewise.
18430         * modules/sys_stat (Makefile.am): Likewise.
18431         * modules/sys_time (Makefile.am): Likewise.
18432         * modules/sys_times (Makefile.am): Likewise.
18433         * modules/sys_utsname (Makefile.am): Likewise.
18434         * modules/sys_wait (Makefile.am): Likewise.
18435         * modules/sysexits (Makefile.am): Likewise.
18436         * modules/termios (Makefile.am): Likewise.
18437         * modules/time (Makefile.am): Likewise.
18438         * modules/unistd (Makefile.am): Likewise.
18439         * modules/wchar (Makefile.am): Likewise.
18440         * modules/wctype (Makefile.am): Likewise.
18441
18442 2010-10-04  Bruno Haible  <bruno@clisp.org>
18443
18444         read-file tests: Avoid a test failure on NonStop Kernel.
18445         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18446         a regular file.
18447         Reported by Joachim Schmitz <schmitz@hp.com>.
18448
18449 2010-10-03  Bruno Haible  <bruno@clisp.org>
18450
18451         gnulib-tool: Fixes for --create-testdir with --libtool.
18452         * gnulib-tool (func_get_automake_snippet): Don't augment
18453         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18454         an executable.
18455         (func_create_testdir): Handle module 'alloca' like func_import.
18456         Reported by Bruce Korb <bruce.korb@gmail.com>.
18457
18458 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18459
18460         Avoid some lines longer than 80 characters.
18461         * lib/stdint.in.h: Break long comment lines.
18462         * lib/math.in.h: Likewise.
18463         (_GL_NUM_UINT_WORDS): New macro, for readability.
18464         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18465         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18466         * lib/stdlib.in.h: Likewise.
18467         * lib/spawn.in.h: Likewise.
18468         * lib/sys_socket.in.h: Update an URL.
18469         * lib/sys_stat.in.h: Break long line.
18470
18471 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18472
18473         Improve pmccabe2html.
18474         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18475         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18476         when the sources change. Remove the line in the HTML about "Used
18477         ranges" (which implied that there might be other unused ranges),
18478         rename "Resume" to "Summary" (easier to understand for more users).
18479         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18480         styles, and some unnecessary blank lines.
18481
18482 2010-10-03  Bruno Haible  <bruno@clisp.org>
18483             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18484
18485         acl: Add support for ACLs on NonStop Kernel.
18486         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18487         Check whether the function aclsort() exists.
18488         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18489         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18490         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18491         (acl_nontrivial [HAVE_ACLSORT]: New function.
18492         (file_has_acl): Implement for NonStop Kernel.
18493         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18494         (qset_acl): Implement for NonStop Kernel.
18495         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18496         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18497         (main): Implement for NonStop Kernel.
18498         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18499         Kernel. Handle this flavor.
18500         * tests/test-set-mode-acl.sh: Likewise.
18501         * tests/test-copy-acl.sh: Likewise.
18502         * tests/test-copy-file.sh: Likewise.
18503
18504 2010-10-03  Bruno Haible  <bruno@clisp.org>
18505
18506         Info about ACLs on NonStop Kernel.
18507         * doc/acl-resources.txt: Add info about NonStop Kernel.
18508         References by Joachim Schmitz <schmitz@hp.com>.
18509
18510 2010-10-02  Bruno Haible  <bruno@clisp.org>
18511
18512         Define missing EDQUOT on NonStop Kernel.
18513         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18514         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18515         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18516         missing.
18517         * doc/posix-headers/errno.texi: Mention the NSK bug.
18518         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18519         Reported by Joachim Schmitz <schmitz@hp.com>.
18520
18521 2010-10-02  Bruno Haible  <bruno@clisp.org>
18522
18523         Update doc for POSIX:2008.
18524         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18525         Update URL of POSIX specification.
18526
18527 2010-10-02  Bruno Haible  <bruno@clisp.org>
18528
18529         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18530         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18531         from gnulib, not from Automake.
18532
18533 2010-10-02  Bruno Haible  <bruno@clisp.org>
18534
18535         New module 'system-posix'.
18536         * modules/system-posix: New file.
18537         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18538         module is present.
18539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18540         GNULIB_SYSTEM_POSIX.
18541         * modules/stdlib (Depends-on): Remove sys_wait.
18542         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18543         * doc/posix-functions/system.texi: Mention the new module.
18544         * doc/posix-headers/stdlib.texi: Likewise.
18545         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18546         define test_sys_wait_macros to a no-op.
18547         Reported by Sam Steingold <sds@gnu.org>.
18548
18549 2010-09-30  Bruno Haible  <bruno@clisp.org>
18550
18551         More renaming from 'getdate' to 'get_date'.
18552         * doc/get_date.texi: Renamed from doc/getdate.texi.
18553         * modules/get_date (Files): Update.
18554         * MODULES.html.sh (Date and time <time.h>): Update.
18555         * DEPENDENCIES: Update.
18556         * gnulib-tool: Update comment.
18557         * m4/bison.m4 (gl_BISON): Likewise.
18558         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18559
18560 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18561
18562         bootstrap: support ACLOCAL_FLAGS during aclocal
18563         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18564         can add additional -I dir for third-party .m4 files.
18565
18566 2010-09-30  Eric Blake  <eblake@redhat.com>
18567
18568         bootstrap: use glibtoolize on MacOS
18569         * build-aux/bootstrap (check_versions): Convert libtool into
18570         libtoolize.
18571         (tool search): Move libtool check earlier, and look for
18572         glibtoolize for MacOS.
18573         (gnulib_tool_options): Auto-add --libtool when appropriate.
18574         Reported by Justin Clift.
18575
18576         poll: fix typo that broke test on MacOS
18577         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18578         Reported by Justin Clift.
18579
18580         getdate: rename to get_date
18581         Note: getdate.h is not renamed, to minimize client impact.
18582         * modules/getdate: Mark obsolete.  Move old contents...
18583         * modules/get_date: ...to new module name.
18584         * modules/getdate-tests: Move...
18585         * modules/get_date-tests: ...here.
18586         * m4/getdate.m4: Move...
18587         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18588         * lib/getdate.y: Move...
18589         * lib/get_date.y: ...here.
18590         * tests/test-getdate.c: Move...
18591         * tests/test-get_date.c: ...here.
18592         * doc/posix-functions/getdate.texi (getdate): Update name.
18593         * NEWS: Mention the change.
18594
18595 2010-09-29  Bruno Haible  <bruno@clisp.org>
18596
18597         Separate the module 'waitpid' from the module 'sys_wait'.
18598         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18599         present.
18600         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18601         gl_MODULE_INDICATOR_FOR_TESTS.
18602         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18603         * modules/sys_wait (Depends-on): Remove waitpid.
18604         (Makefile.am): Substitute GNULIB_WAITPID.
18605         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18606         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18607         signature only if the 'waitpid' module is present.
18608         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18609         * NEWS: Mention the change.
18610         * modules/grantpt (Depends-on): Add waitpid.
18611         * modules/wait-process (Depends-on): Likewise.
18612
18613 2010-09-29  Bruno Haible  <bruno@clisp.org>
18614
18615         More tests for module 'sys_wait'.
18616         * modules/sys_wait-c++-tests: New file.
18617         * tests/test-sys_wait-c++.cc: New file.
18618         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18619         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18620
18621 2010-09-29  Bruno Haible  <bruno@clisp.org>
18622
18623         New module 'waitpid'.
18624         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18625         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18626         Don't include <process.h>.
18627         (waitpid): Declare only, using modern idiom.
18628         * m4/waitpid.m4: New file.
18629         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18630         * modules/waitpid: New file.
18631         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18632         (Makefile.am): Update.
18633         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18634
18635 2010-09-28  Bruno Haible  <bruno@clisp.org>
18636
18637         poll: Assume ANSI C.
18638         * lib/poll.c (poll): Use an ANSI C declaration.
18639
18640 2010-09-28  Bruno Haible  <bruno@clisp.org>
18641
18642         poll-h: Create poll.h on all platforms.
18643         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18644         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18645         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18646         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18647         (gl_REPLACE_POLL_H): Don't set POLL_H.
18648         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18649         * modules/poll-h (Depends-on): Add include_next.
18650         (Makefile.am): Create poll.h unconditionally. Substitute also
18651         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18652
18653 2010-09-28  Bruno Haible  <bruno@clisp.org>
18654
18655         Tests for module 'poll-h'.
18656         * modules/poll-h-c++-tests: New file.
18657         * tests/test-poll-h-c++.cc: New file.
18658
18659         Tests for module 'poll-h'.
18660         * modules/poll-h-tests: New file.
18661         * tests/test-poll-h.c: New file.
18662
18663 2010-09-28  Bruno Haible  <bruno@clisp.org>
18664
18665         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18666         * modules/poll-h (Depends-on): Add 'extensions'.
18667
18668 2010-09-28  Bruno Haible  <bruno@clisp.org>
18669
18670         New module 'poll-h'.
18671         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18672         (poll): Use modern idiom.
18673         * modules/poll-h: New file.
18674         * modules/poll (Files): Remove lib/poll.in.h.
18675         (Depends-on): Add poll-h.
18676         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18677         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18678         * m4/poll_h.m4: New file.
18679         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18680         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18681         and invoke gl_REPLACE_POLL_H.
18682         * lib/poll.c: Use common idiom.
18683         * tests/test-poll.c: Likewise.
18684         * doc/posix-headers/poll.texi: Mention the poll-h module.
18685         Suggested by Eric Blake.
18686
18687 2010-09-26  Bruno Haible  <bruno@clisp.org>
18688
18689         sys_wait: Implement WSTOPSIG.
18690         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18691         Reported by Simon Josefsson.
18692
18693 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18694
18695         stdlib, sys_wait: Avoid compilation error on mingw.
18696         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18697
18698 2010-09-26  Bruno Haible  <bruno@clisp.org>
18699
18700         stdlib tests: Avoid code duplication.
18701         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18702         * modules/sys_wait-tests (Files): Likewise.
18703         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18704         * tests/test-stdlib.c: Include test-sys_wait.h.
18705         (main): Invoke test_sys_wait_macros.
18706         * tests/test-sys_wait.c: Include test-sys_wait.h.
18707         (main): Invoke test_sys_wait_macros.
18708
18709 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18710
18711         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18712         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18713         sure Windows sockets are working before calling getaddrinfo.
18714         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18715         * doc/gnulib.texi (Windows sockets): Fix typo.
18716
18717 2010-09-25  Bruno Haible  <bruno@clisp.org>
18718
18719         Tests for module 'regex-quote'.
18720         * modules/regex-quote-tests: New file.
18721         * tests/test-regex-quote.c: New file.
18722
18723         New module 'regex-quote'.
18724         * lib/regex-quote.h: New file.
18725         * lib/regex-quote.c: New file.
18726         * modules/regex-quote: New file.
18727         Suggested by Reuben Thomas <rrt@sc3d.org>.
18728
18729 2010-09-24  Bruno Haible  <bruno@clisp.org>
18730
18731         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18732         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18733
18734 2010-09-23  Bruno Haible  <bruno@clisp.org>
18735
18736         setenv: Relax license.
18737         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18738         Blake.
18739         Requested by Eric Blake.
18740
18741 2010-09-22  Bruno Haible  <bruno@clisp.org>
18742
18743         termios: Relax license.
18744         * modules/termios (License): Change to LGPLv2+.
18745         Requested by Eric Blake.
18746
18747 2010-09-22  Bruno Haible  <bruno@clisp.org>
18748
18749         threadlib: Allow the package to change the default to 'no'.
18750         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18751         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18752         Reported by Paul Eggert.
18753
18754 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18755             Bruno Haible  <bruno@clisp.org>
18756
18757         Fix endless loop in mbmemcasecoll.
18758         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18759         byte.
18760         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18761
18762 2010-09-22  Bruno Haible  <bruno@clisp.org>
18763
18764         Tests for module 'memcoll'.
18765         * modules/memcoll-tests: New file.
18766         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18767
18768         memcoll, xmemcoll: Clarify size vs. length.
18769         * modules/memcoll.c (memcoll0): Clarify specification.
18770         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18771         passed to collate_error.
18772
18773 2010-09-22  Bruno Haible  <bruno@clisp.org>
18774
18775         Tests for module 'memcasecmp'.
18776         * modules/memcasecmp-tests: New file.
18777         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18778
18779 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18780
18781         * lib/pthread.in.h: Add split double-inclusion guard, and include
18782         system <pthread.h> if there is one.  Use @@-style as in other
18783         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18784         pthread.h doesn't.
18785         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18786         (pthread_mutexattr_settype, pthread_mutex_trylock):
18787         New static inline functions, if there's no system <pthread.h>.
18788         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18789         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18790         Approximate with mutexes if the system lacks spinlocks, as in
18791         MacOS.
18792         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18793         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18794         @@-style.  Check for spinlocks separately.
18795         (gl_PTHREAD_DEFAULTS): New macro.
18796         * modules/pthread: Redo to use a more typical style for in.h files.
18797
18798 2010-09-21  Eric Blake  <eblake@redhat.com>
18799
18800         net_if: enhance tests
18801         * tests/test-net_if.c (main): Move signature checks earlier.
18802         Print failures to stderr.
18803         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18804         Document the bug that we do not yet fix.
18805
18806 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18807
18808         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18809         about gnulib, not GSS.
18810
18811 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18812
18813         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18814         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18815         for Emacs.
18816         * build-aux/pmccabe2html: Make Makefile.am example code more
18817         cut-and-paste friendly.
18818
18819 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18820
18821         * tests/test-net_if.c: New file.
18822         * modules/net_if-tests: New file.
18823
18824 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18825
18826         pthread: add pthread_spin_destroy
18827         * lib/pthread.in.h (pthread_spin_destroy): New function.
18828
18829 2010-09-19  Bruno Haible  <bruno@clisp.org>
18830
18831         gnulib-tool: Fix --help output.
18832         * gnulib-tool (func_usage): Fix help message.
18833         Reported by Reuben Thomas <rrt@sc3d.org>.
18834
18835 2010-09-18  Jim Meyering  <meyering@redhat.com>
18836
18837         maint.mk: avoid unexpanded \n in two diagnostics
18838         * top/maint.mk (sc_prohibit_always_true_header_tests):
18839         Don't use a literal \n in a halt=... assignment.  It would not be
18840         expanded, and the two \n bytes would appear in the diagnostic output
18841         rather than the desired newline.  Use halt=$$(printf ... instead.
18842         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18843
18844 2010-09-18  Bruno Haible  <bruno@clisp.org>
18845
18846         netinet_in: Doc tweak.
18847         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18848         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18849
18850 2010-09-18  Jim Meyering  <meyering@redhat.com>
18851
18852         init.sh: correct an outdated comment
18853         * tests/init.sh (create_exe_shims_):  s/function/alias/
18854
18855         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18856         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18857         a file named "*.exe" is removed between the glob expansion and the
18858         processing of that oddly named file.
18859
18860 2010-09-17  Eric Blake  <eblake@redhat.com>
18861
18862         mirbsd: add some more support
18863         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18864         in BSD family.
18865         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18866         devices as OpenBSD.
18867         * m4/host-os.m4 (mirbsd): Add MirBSD.
18868
18869         tests: fix unportable assumption on sys/wait.h
18870         * tests/test-sys_wait.c (main): Relax test.
18871         * tests/test-stdlib.c (main): Likewise.
18872
18873         init.sh: accomodate directory with no .exes
18874         * tests/init.sh: Accomodate directory containing only scripts.
18875
18876         tests: avoid compiler warning
18877         * tests/test-stdlib.c (main): Use the variable.
18878
18879         fdutimens, fdutimensat: update signature, again
18880         * lib/utimens.h (gl_futimens): Delete, and move signature...
18881         (fdutimens): ...here.
18882         (fdutimensat): Rearrange signature.
18883         (lutimensat): Rename variable for clarity.
18884         * lib/fdutimensat.c (fdutimensat): Update signature.
18885         * lib/utimens.c (fdutimens): Likewise.
18886         (gl_futimens): Delete.
18887         (utimens, lutimens): Update callers.
18888         * lib/futimens.c (futimens): Likewise.
18889         * tests/test-fdutimensat.c: Likewise.
18890         * tests/test-utimens.c: Likewise.
18891         * tests/test-futimens.h: Update comment.
18892         * NEWS: Mention this.
18893         Suggested by Paul Eggert.
18894
18895 2010-09-17  Bruno Haible  <bruno@clisp.org>
18896
18897         Take over the maintenance of some older macros from Autoconf.
18898         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18899         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18900         GNU Autoconf.
18901         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18902         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18903
18904 2010-09-17  Eric Blake  <eblake@redhat.com>
18905
18906         fdutimensat: drop atflag validation
18907         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18908         with valid fd, to close a race scenario where futimens is
18909         unsupported and FILE was replaced by a symlink.
18910         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18911         accordingly.
18912         Suggested by Paul Eggert.
18913
18914 2010-09-16  Bruno Haible  <bruno@clisp.org>
18915
18916         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18917         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18918
18919 2010-09-16  Bruno Haible  <bruno@clisp.org>
18920
18921         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18922         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18923         login_tty exists.
18924         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18925
18926 2010-09-16  Bruno Haible  <bruno@clisp.org>
18927
18928         login_tty: Make the replacement code work on BSD systems.
18929         * lib/login_tty.c: Include <sys/ioctl.h>.
18930         (login_tty): Use ioctl TIOCSCTTY when available.
18931         * modules/login_tty (Depends-on): Add sys_ioctl.
18932         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18933
18934 2010-09-16  Bruno Haible  <bruno@clisp.org>
18935
18936         login_tty: Stricter unit test.
18937         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18938         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18939         and tcgetsid() after login_tty.
18940         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18941
18942 2010-09-16  Bruno Haible  <bruno@clisp.org>
18943
18944         New module 'tcgetsid'.
18945         * lib/tcgetsid.c: New file.
18946         * m4/tcgetsid.m4: New file.
18947         * modules/tcgetsid: New file.
18948         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18949         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18950         GNULIB_TCGETSID, HAVE_TCGETSID.
18951         * lib/termios.in.h: Include <sys/types.h>.
18952         (tcgetsid): New declaration.
18953         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18954         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18955         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18956         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18957
18958 2010-09-16  Bruno Haible  <bruno@clisp.org>
18959
18960         Tests for module 'termios'.
18961         * modules/termios-c++-tests: New file.
18962         * modules/termios-tests: New file.
18963         * tests/test-termios-c++.cc: New file.
18964         * tests/test-termios.c: New file.
18965
18966         New module 'termios'.
18967         * modules/termios: New file.
18968         * lib/termios.in.h: New file.
18969         * m4/termios_h.m4: New file.
18970         * doc/posix-headers/termios.texi: Mention the new module.
18971
18972 2010-09-16  Eric Blake  <eblake@redhat.com>
18973
18974         fdutimensat: add an atflag parameter
18975         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18976         * lib/utimens.h (fdutimensat): Update prototype.
18977         * tests/test-fdutimensat.c: Adjust test to match.
18978         * NEWS: Document the change.
18979         Suggested by Paul Eggert.
18980
18981 2010-09-16  Bruno Haible  <bruno@clisp.org>
18982
18983         Fix typos in comments.
18984         * lib/striconveh.h: Fix typo in comment.
18985         * lib/login_tty.c (login_tty): Likewise.
18986
18987 2010-09-15  Bruno Haible  <bruno@clisp.org>
18988
18989         stdlib: clarify MirBSD WEXITSTATUS bug
18990         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18991         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18992
18993 2010-09-15  Eric Blake  <eblake@redhat.com>
18994
18995         stdlib: work around MirBSD WEXITSTATUS bug
18996         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18997         * modules/stdlib (Depends-on): Add sys_wait.
18998         * tests/test-sys_wait.c (main): Enhance test.
18999         * tests/test-stdlib.c (main): Likewise.
19000         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19001
19002         docs: mention MacOS issue with WEXITSTATUS(constant)
19003         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19004         issue.
19005         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19006
19007         strnlen: add tests
19008         * modules/strnlen-tests: New file.
19009         * tests/test-strnlen.c: Likewise.
19010
19011 2010-09-14  Bruno Haible  <bruno@clisp.org>
19012
19013         unistr/base: Avoid link errors when module 'libunistring' is also used.
19014         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19015         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19016         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19017         Declare also when HAVE_LIBUNISTRING is set.
19018         Reported by Pádraig Brady <P@draigbrady.com>.
19019
19020 2010-09-14  Eric Blake  <eblake@redhat.com>
19021
19022         test-rawmemchr: make more robust
19023         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19024         (Depends-on, configure.ac): Add needed prerequisites to use it.
19025         * modules/memchr-tests (Files, Depends-on, configure.ac):
19026         Likewise, to avoid implicit reliance on memchr module prereqs.
19027         * tests/test-memchr.c (main): Ensure proper masking.
19028         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19029         reads.
19030
19031         memchr: detect glibc Alpha bug
19032         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19033         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19034         Alpha.
19035         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19036         * tests/test-memchr.c (main): Enhance test.
19037         Reported by Nelson H. F. Beebe.
19038
19039 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19040
19041         fts, getcwd, glob: audit for dirfd returning -1
19042         * lib/fts.c (opendir): Remove #define; no longer used.
19043         (opendirat): New arg PDIR_FD.  All callers changed.
19044         (fts_build, _opendir2): Use new opendirat to avoid the need for
19045         dirfd, or for checking whether dirfd returns a negative value.
19046         Don't use opendir; always use openat followed by fdopendir.
19047         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19048         it.
19049         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19050         returns -1 here.
19051         * modules/fts (Depends-on): Remove dirfd.
19052         * modules/getcwd (Depends-on): Likewise.
19053
19054 2010-09-13  Eric Blake  <eblake@redhat.com>
19055
19056         float: fix broken MirBSD header
19057         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19058         * doc/posix-headers/float.texi (float.h): Document it.
19059
19060 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19061
19062         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19063         * lib/fts.c (opendirat): New arg extra_flags.
19064         (__opendir2): Use it to avoid following symlinks when opening
19065         a directory, if symlinks are not supposed to be followed.  See
19066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19067
19068         fdopendir: preserve argument fd before returning
19069         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19070         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19071         (fdopendir): Use them, arranging for FD to be open to the same
19072         directory that it was when it started.  (It might be temporarily
19073         closed while fdopendir is running, so this not thread- or
19074         signal-safe.)  Be careful to do the right thing even when file
19075         descriptors are scarce and dup fails with errno == EMFILE.  See
19076         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19077
19078 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19079
19080         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19081         * NEWS: Document change.
19082         * m4/regex.m4: Disable test for regoff_t size.
19083
19084 2010-09-13  Jim Meyering  <meyering@redhat.com>
19085
19086         fts: don't operate on an invalid file descriptor after failed dup
19087         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19088         negative file descriptor.
19089
19090 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19091
19092         savedir: add streamsavedir, deprecate fdsavedir
19093         * NEWS: Mention deprecation of fdsavedir.
19094         * lib/savedir.c (streamsavedir): New extern function, whose name
19095         ends in "savedir" to be consistent with the others.  This differs
19096         from savedirstream in that it doesn't close its argument.  The
19097         next version of GNU tar will use this instead of fdsavedir, to
19098         avoid some race conditions and conserve file descriptors.
19099         (savedirstream): Reimplement as a wrapper around streamsavedir.
19100         (fdsavedir): Add a comment deprecating this function.  As far as
19101         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19102         * lib/savedir.h (streamsavedir): New decl.
19103         (fdsavedir): Add a comment deprecating this.
19104
19105 2010-09-10  Bruno Haible  <bruno@clisp.org>
19106
19107         langinfo: Fix last commit.
19108         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19109         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19111
19112 2010-09-10  Bruno Haible  <bruno@clisp.org>
19113
19114         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19115         * lib/progreloc.c (O_EXEC): Define fallback.
19116
19117 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19118
19119         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19120         * NEWS: Document recent changes to fcntl-h.
19121         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19122         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19123         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19124         Similarly for O_SEARCH; this last was already true, but not documented.
19125         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19126         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19127         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19128         Likewise.
19129         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19130         is zero, not whether it is defined.
19131         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19132         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19133         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19134
19135 2010-09-10  Bruno Haible  <bruno@clisp.org>
19136
19137         langinfo, nl_langinfo: Fix for IRIX 5.3.
19138         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19139         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19140         HAVE_LANGINFO_YESEXPR.
19141         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19142         HAVE_LANGINFO_YESEXPR.
19143         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19144         HAVE_LANGINFO_T_FMT_AMPM is 0.
19145         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19146         HAVE_LANGINFO_YESEXPR is 0.
19147         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19148         NOEXPR.
19149         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19150         * doc/posix-functions/nl_langinfo.texi: Likewise.
19151         Reported by Eric Blake.
19152
19153 2010-09-10  Bruno Haible  <bruno@clisp.org>
19154
19155         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19156         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19157         on FreeBSD 8.0 and OpenBSD 4.6.
19158         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19159         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19160         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19161         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19162         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19163         ac_includes_default.
19164         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19165
19166 2010-09-09  Eric Blake  <eblake@redhat.com>
19167
19168         strsignal: work around NetBSD bug
19169         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19170         * lib/string.in.h (includes): Likewise.
19171         * doc/posix-functions/strsignal.texi (strsignal): Document the
19172         bug.
19173         Reported by Nelson H. F. Beebe.
19174
19175         gnulib-tool: work with NetBSD /bin/sh
19176         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19177         (func_get_description, func_get_comment, func_get_status)
19178         (func_get_notice, func_get_applicability, func_get_filelist)
19179         (func_get_dependencies, func_get_autoconf_early_snippet)
19180         (func_get_autoconf_snippet, func_get_automake_snippet)
19181         (func_get_include_directive, func_get_link_directive)
19182         (func_get_license, func_get_maintainer, func_import): Avoid
19183         shell syntax errors from parsing syntax extensions.
19184
19185 2010-09-09  Bruno Haible  <bruno@clisp.org>
19186
19187         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19188         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19189         a reliable way to determine whether the 'alias' command works.
19190
19191 2010-09-08  Jim Meyering  <meyering@redhat.com>
19192
19193         init.sh: penalize a set-x-impaired shell; don't disqualify it
19194         * tests/init.sh: Too many shells corrupt application stderr when
19195         you set -x, so we can't afford to disqualify them, since at least
19196         on Irix-6.5, that would disqualify all bourne shells.
19197         Instead, use a two-pass approach.
19198         On the first pass, try to find a shell that meets the stricter
19199         condition that set -x does not corrupt stderr.
19200         If no shell meets the stricter condition, retest each candidate
19201         shell, but without that extra condition.  Finally, when
19202         VERBOSE=yes is requested and set -x might cause trouble, simply
19203         issue a warning and refrain from enabling debug output.
19204
19205 2010-09-08  Eric Blake  <eblake@redhat.com>
19206
19207         unsetenv: fix OpenBSD bug
19208         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19209         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19210         documentation.
19211         Reported by Jim Meyering.
19212
19213         strtod: work around IRIX 6.5 bug
19214         * lib/strtod.c (strtod): Reparse number on shorter string if
19215         exponent parse was invalid.
19216         * tests/test-strtod.c (main): Add check for "0x1p 2".
19217         Reported by Tom G. Christensen.
19218
19219         getopt: optimize previous patch
19220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19221         empty variable.  Speed up awk script.
19222         Reported by Paolo Bonzini.
19223
19224 2010-09-08  Jim Meyering  <meyering@redhat.com>
19225
19226         test.sh: disqualify shells for which set -x corrupts stderr
19227         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19228         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19229         appear in stderr output.  For example, this command:
19230             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19231         prints "P=1" on those two systems:
19232
19233 2010-09-08  Bruno Haible  <bruno@clisp.org>
19234
19235         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19236         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19237         commands, because some shells ignore redirections when there is an
19238         error in the command lookup.
19239         Reported by Eric Blake.
19240
19241 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19242
19243         * lib/regex.h: Fix a mention of `regex_compile' (should be
19244         `re_compile_pattern').
19245         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19246         (re_set_registers): Correct name of parameter in comment.
19247
19248         * doc/regex.texi: Add documentation for missing syntax flags.
19249         Remove commented-out documentation of defunct syntax option
19250         RE_NO_EMPTY_ALTS.
19251         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19252         Add documentation of re_set_registers.
19253         Document trick to re-use a pattern buffer by setting fastmap manually.
19254         Update documentation of struct re_pattern_buffer per public members.
19255         Uncomment documentation of equivalence class operators and
19256         collating symbol operators, since they are now implemented,
19257         Explain leftmost-longest matching in relation to alternatives.
19258         Tidy documentation of substring matching.
19259         Remove POSIX documentation, which is done better in
19260         glibc, and refer the reader there. Keep BSD API documentation, as
19261         that is not readily available elsewhere.
19262
19263 2010-09-07  Eric Blake  <eblake@redhat.com>
19264
19265         getopt: handle POSIXLY_CORRECT set but not exported
19266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19267         export state of POSIXLY_CORRECT, due to bash set -o posix.
19268         Reported by Dustin J. Mitchell.
19269
19270 2010-09-05  Bruno Haible  <bruno@clisp.org>
19271
19272         gnulib-tool: Highlight the changed options.
19273         * gnulib-tool (func_usage): Display the --import, --add-import,
19274         --remove-import explanations in bold font.
19275
19276 2010-09-06  Karl Berry  <karl@gnu.org>
19277
19278         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19279
19280 2010-09-05  Bruno Haible  <bruno@clisp.org>
19281
19282         uniwidth/width: Update comment.
19283         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19284         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19285
19286 2010-09-05  Bruno Haible  <bruno@clisp.org>
19287
19288         isinf, isnan: Relax license.
19289         * modules/isinf (License): Change from GPL to LGPL, with consent from
19290         Ben Pfaff.
19291         * modules/isnan (License): Likewise.
19292         Requested by Ludovic Courtès.
19293
19294 2010-09-04  Bruno Haible  <bruno@clisp.org>
19295
19296         gnulib-tool: Help migration from --import to --add-import or --update.
19297         * gnulib-tool: Emit a verbose error message when --import is used
19298         without any module name.
19299
19300 2010-09-04  Bruno Haible  <bruno@clisp.org>
19301
19302         Update doc about gnulib-tool.
19303         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19304         'gnulib-tool --update' in more detail.
19305         Reported by Eric Blake.
19306
19307 2010-09-04  Bruno Haible  <bruno@clisp.org>
19308
19309         gnulib-tool: Change --import. New options --add/remove-import.
19310         * gnulib-tool: New options --add-import, --remove-import.
19311         (func_usage): Document them.
19312         (have_associative): Define always.
19313         (func_import): In import mode, don't merge the specified settings with
19314         the cached settings. Implement remove-import mode.
19315         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19316         Explain when to use them versus --import.
19317         (Simple update): Use --add-import instead of --import.
19318         * NEWS: Mention the change.
19319
19320 2010-09-04  Bruno Haible  <bruno@clisp.org>
19321
19322         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19323         separate gnulib.mk.
19324
19325 2010-09-04  Bruno Haible  <bruno@clisp.org>
19326
19327         gnulib-tool: Don't talk about CVS any more.
19328         * gnulib-tool (func_usage, func_import): Write "version control"
19329         instead of CVS.
19330
19331 2010-09-04  Jim Meyering  <meyering@redhat.com>
19332
19333         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19334         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19335         false positives (whose names may be ill-chosen) when searching
19336         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19337         would cause a false-positive.
19338
19339         avoid coreutils "make distcheck" failure
19340         Coreutils tests with an absolute build directory name that contains
19341         a space.  Not quoting this directory name caused a failure.
19342         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19343         * tests/test-vc-list-files-cvs.sh: Likewise.
19344
19345 2010-09-04  Bruno Haible  <bruno@clisp.org>
19346
19347         gnulib-tool: Avoid error when run in a package without Makefile.am.
19348         * gnulib-tool: When collecting the m4dirs in a package that does not
19349         have a Makefile.am, eliminate those directories that contain no
19350         gnulib-cache.m4. Fix expression that counts these directories.
19351
19352 2010-09-04  Bruno Haible  <bruno@clisp.org>
19353
19354         update-copyright test: Improve output when perl is missing or too old.
19355         * tests/test-update-copyright.sh: Move test of Perl version down after
19356         the test whether Perl exists. Provide an explanation relating Perl's
19357         error message to Automake's SKIP: message.
19358
19359 2010-09-04  Bruno Haible  <bruno@clisp.org>
19360
19361         Don't augment PATH in TESTS_ENVIRONMENT.
19362         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19363         set abs_aux_dir instead of augmenting PATH.
19364         * modules/vc-list-files-tests (Makefile.am): Likewise.
19365         * tests/test-update-copyright.sh: Augment PATH here.
19366         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19367         path_prepend_.
19368         * tests/test-vc-list-files-git.sh: Likewise.
19369
19370 2010-09-04  Jim Meyering  <meyering@redhat.com>
19371
19372         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19373         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19374
19375 2010-09-04  Bruno Haible  <bruno@clisp.org>
19376
19377         strdup: Fix compilation error in C++ mode.
19378         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19379         the macro.
19380
19381 2010-09-04  Bruno Haible  <bruno@clisp.org>
19382
19383         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19384         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19385         macro into a function.
19386         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19387
19388 2010-09-04  Bruno Haible  <bruno@clisp.org>
19389
19390         Set PATH_SEPARATOR the same way autoconf does.
19391         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19392         the value of PATH_SEPARATOR the same way autoconf-generated configure
19393         scripts do.
19394         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19395         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19396
19397 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19398
19399         Set PATH_SEPARATOR the same way autoconf does.
19400         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19401         the same way autoconf-generated configure scripts do.
19402         * posix-modules: Likewise.
19403
19404 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19405
19406         hash: fix safe_hasher const typo
19407         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19408         const; otherwise, there is a type error later.
19409
19410 2010-09-02  Jim Meyering  <meyering@redhat.com>
19411
19412         test-update-copyright.sh: require perl 5.8.0
19413         * tests/test-update-copyright.sh: Require 5.8.0,
19414         which Tom G. Christensen has confirmed is adequate,
19415         while 5.6.1 is not.
19416
19417 2010-09-02  Eric Blake  <eblake@redhat.com>
19418
19419         tests: init.sh improvements for re-exec'ing with zsh
19420         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19421         -vx through shell re-exec.
19422         Reported by Tom G. Christensen.
19423
19424         wctype: fix typo in previous commit
19425         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19426         Reported by Ludovic Courtès.
19427
19428 2010-09-02  Jim Meyering  <meyering@redhat.com>
19429
19430         test-update-copyright.sh: skip test if Perl is too old
19431         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19432         Reported by Tom G. Christensen.
19433
19434 2010-09-02  Bruno Haible  <bruno@clisp.org>
19435
19436         wctype: Avoid compilation error on IRIX 6.5.30.
19437         * lib/wctype.in.h (iswblank): Declare with a replacement if
19438         REPLACE_ISWBLANK is set.
19439         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19440         declared. Set REPLACE_ISWBLANK.
19441         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19442         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19443         * doc/posix-headers/wctype.texi: Likewise.
19444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19445
19446 2010-09-01  Bruno Haible  <bruno@clisp.org>
19447
19448         New module 'socketlib'.
19449         * modules/socketlib: New file.
19450         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19451         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19452         * modules/sockets (Depends-on): Add socketlib.
19453         Suggested by Sam Steingold <sds@gnu.org>.
19454
19455 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19456
19457         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19458
19459         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19460         when one needs search access to a directory but not read access.
19461         On systems where it is available, it works in some cases where
19462         O_RDONLY does not, namely on directories that are searchable but
19463         not readable, and which need only to be searchable.  If O_SEARCH
19464         is not available, fall back to the traditional method of using
19465         O_RDONLY.
19466
19467         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19468         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19469         when opening a directory that needs only to be searchable.
19470         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19471         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19472         * lib/openat-proc.c (openat_proc_name): Likewise.
19473         * lib/openat.c (openat_needs_fchdir): Likewise.
19474         * lib/save-cwd.c (save_cwd): Likewise.
19475         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19476
19477 2010-08-28  Bruno Haible  <bruno@clisp.org>
19478
19479         New module 'host-cpu-c-abi'.
19480         * modules/host-cpu-c-abi: New file.
19481         * m4/host-cpu-c-abi.m4: New file, based on part of
19482         clisp/src/m4/general.m4.
19483         Requested by Sam Steingold <sds@gnu.org>.
19484
19485 2010-08-31  Eric Blake  <eblake@redhat.com>
19486         and Jim Meyering  <meyering@redhat.com>
19487
19488         hash: factor, and guard against misbehaving hasher function
19489         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19490         of table->hasher's return value.  Also protect against a hash value
19491         so large that adding it to table->bucket results in a NULL pointer.
19492         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19493         Use it in place of open-coded check-and-abort.
19494
19495 2010-08-30  Bruno Haible  <bruno@clisp.org>
19496
19497         hash: silence spurious clang warning
19498         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19499         Reported by Eric Blake.
19500
19501 2010-08-30  Eric Blake  <eblake@redhat.com>
19502
19503         strstr, memmem, strcasestr: avoid leaked shell message
19504         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19505         FreeBSD.
19506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19507         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19508
19509         tests: silence clang warning
19510         * tests/test-malloca.c (do_allocation): Avoid dead store.
19511
19512 2010-08-29  Bruno Haible  <bruno@clisp.org>
19513
19514         gettext: Fix recent mistake.
19515         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19516
19517 2010-08-29  Bruno Haible  <bruno@clisp.org>
19518
19519         selinux-h: Offer a --without-selinux option.
19520         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19521         --without-selinux was specified, skip all tests and define
19522         HAVE_SELINUX_SELINUX_H to 0.
19523         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19524         set LIB_SELINUX to empty.
19525         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19526         gl_LIBSELINUX. If --without-selinux was specified, replace
19527         selinux/context.h.
19528         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19529
19530 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19531             Bruno Haible  <bruno@clisp.org>
19532
19533         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19534         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19535         of HAVE_REALLOC.
19536         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19537         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19538         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19539         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19540
19541 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19542             Bruno Haible  <bruno@clisp.org>
19543
19544         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19545         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19546         HAVE_CALLOC.
19547         * lib/xmalloc.c: Update accordingly.
19548         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19549         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19550         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19551
19552 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19553             Bruno Haible  <bruno@clisp.org>
19554
19555         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19556         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19557         HAVE_MALLOC.
19558         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19559         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19560         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19561
19562 2010-08-29  Bruno Haible  <bruno@clisp.org>
19563
19564         Update modules list.
19565         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19566         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19567         (String handling <string.h>): Add astrxfrm.
19568         (File system functions): Add readlinkat.
19569
19570 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19571
19572         Tests for module 'realloc-gnu'.
19573         * modules/realloc-gnu-tests: New file.
19574         * tests/test-realloc-gnu.c: New file.
19575
19576         Tests for module 'calloc-gnu'.
19577         * modules/calloc-gnu-tests: New file.
19578         * tests/test-calloc-gnu.c: New file.
19579
19580         Tests for module 'malloc-gnu'.
19581         * modules/malloc-gnu-tests: New file.
19582         * tests/test-malloc-gnu.c: New file.
19583
19584 2010-08-28  Bruno Haible  <bruno@clisp.org>
19585
19586         Rename module 'realloc' -> 'realloc-gnu'.
19587         * modules/realloc-gnu: New file, copied from modules/realloc.
19588         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19589         obsolete.
19590         * modules/mgetgroups (Depends-on): Update.
19591         * doc/posix-functions/realloc.texi: Update.
19592         * NEWS: Mention the change.
19593
19594         Rename module 'calloc' -> 'calloc-gnu'.
19595         * modules/calloc-gnu: New file, copied from modules/calloc.
19596         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19597         obsolete.
19598         * doc/posix-functions/calloc.texi: Update.
19599         * NEWS: Mention the change.
19600
19601         Rename module 'malloc' -> 'malloc-gnu'.
19602         * modules/malloc-gnu: New file, copied from modules/malloc.
19603         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19604         obsolete.
19605         * modules/argp (Depends-on): Update.
19606         * modules/regex (Depends-on): Update.
19607         * doc/posix-functions/malloc.texi: Update.
19608         * NEWS: Mention the change.
19609
19610 2010-08-28  Eric Blake  <eblake@redhat.com>
19611
19612         pread, pwrite: add missing dependency
19613         * modules/pread (Depends-on): Add extensions.
19614         * modules/pwrite (Depends-on): Likewise.
19615
19616 2010-08-28  Bruno Haible  <bruno@clisp.org>
19617
19618         unistr/u*-strchr: Fix tests dependencies.
19619         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19620         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19621         Reported by Ian Beckwith <ianb@erislabs.net>.
19622
19623 2010-08-28  Bruno Haible  <bruno@clisp.org>
19624
19625         read-file: Don't occupy too much unused memory.
19626         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19627
19628 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19629             Eric Blake  <eblake@redhat.com>
19630             Bruno Haible  <bruno@clisp.org>
19631
19632         read-file: Avoid memory reallocations with regular files.
19633         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19634         (fread_file): With regular files, use the remaining length as the
19635         initial buffer size.  Check against overflow.
19636         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19637         sys_stat.
19638
19639 2010-08-28  Bruno Haible  <bruno@clisp.org>
19640
19641         ftello: Relax license.
19642         * modules/ftello (License): Relax to LGPLv2+.
19643         Reported by Eric Blake.
19644
19645 2010-08-28  Bruno Haible  <bruno@clisp.org>
19646
19647         Avoid relocwrapper link errors due to gnulib replacement functions.
19648         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19649         function.
19650         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19651
19652 2010-08-28  Bruno Haible  <bruno@clisp.org>
19653
19654         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19655         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19656         defined.
19657         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19658         Suggested by Eric Blake.
19659
19660 2010-08-28  Bruno Haible  <bruno@clisp.org>
19661
19662         sys_socket, netdb: Ensure socklen_t gets defined.
19663         * modules/sys_socket (Depends-on): Add socklen.
19664         * modules/netdb (Depends-on): Likewise.
19665         * modules/getaddrinfo (Depends-on): Remove socklen.
19666         * modules/getsockopt (Depends-on): Likewise.
19667         * modules/setsockopt (Depends-on): Likewise.
19668         * tests/test-sys_socket.c: Check that socklen_t is defined.
19669         * tests/test-netdb.c: Likewise.
19670         * m4/socklen.m4: Update comments.
19671         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19672
19673 2010-08-27  Eric Blake  <eblake@redhat.com>
19674
19675         login_tty: add missing dependency
19676         * modules/login_tty (Depends-on): Add pty.
19677
19678 2010-08-26  Eric Blake  <eblake@redhat.com>
19679
19680         lib-symbol-versions: fix m4 quoting
19681         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19682         format for AC_LINK_IFELSE.
19683
19684         glob: fix compile test
19685         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19686
19687         btowc: fix missing file
19688         * modules/btowc (Files): Also ship locale-fr.m4.
19689
19690         lseek: fix link test
19691         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19692         AC_LINK_IFELSE.
19693
19694         include_next: silence autoconf 2.68 warning
19695         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19696         AC_COMPILE_IFELSE as special.
19697         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19698         autoconf < 2.68.
19699
19700         acl: fix compilation test
19701         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19702         AC_COMPILE_IFELSE.
19703
19704 2010-08-26  Bruno Haible  <bruno@clisp.org>
19705
19706         Modernize AC_TRY_RUN invocations.
19707         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19708         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19709         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19710         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19711         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19712         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19713         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19714         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19715         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19716         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19717         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19718         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19719         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19720         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19722         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19723         gl_MBRLEN_NUL_RETVAL): Likewise.
19724         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19725         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19726         Likewise.
19727         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19728         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19729         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19730         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19731         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19732         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19733         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19734         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19735         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19736         Likewise.
19737         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19738         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19739         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19740         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19741         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19742         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19743         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19744         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19745         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19746         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19747
19748 2010-08-26  Bruno Haible  <bruno@clisp.org>
19749
19750         Modernize AC_TRY_LINK invocations.
19751         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19752         AC_TRY_LINK.
19753         * m4/argp.m4 (gl_ARGP): Likewise.
19754         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19755         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19756         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19757         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19758         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19759         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19760         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19761         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19762         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19763         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19764         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19765         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19766         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19767         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19768         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19769         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19770         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19771         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19772         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19773         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19774         Likewise.
19775         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19776         Likewise.
19777         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19778         Likewise.
19779         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19780         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19781         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19782         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19783         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19784         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19785         * m4/servent.m4 (gl_SERVENT): Likewise.
19786         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19787         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19788         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19789         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19790         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19791         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19792         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19793         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19794         * modules/tsearch-tests (configure.ac): Likewise.
19795
19796 2010-08-26  Bruno Haible  <bruno@clisp.org>
19797
19798         Modernize AC_TRY_COMPILE invocations.
19799         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19800         AC_TRY_COMPILE.
19801         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19802         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19803         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19804         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19805         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19806         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19807         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19808         * m4/lock.m4 (gl_LOCK): Likewise.
19809         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19810         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19811         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19812         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19813         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19814         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19815         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19817         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19818         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19819         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19820         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19821         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19822         extraneous semicolon.
19823
19824 2010-08-26  Jim Meyering  <meyering@redhat.com>
19825
19826         stat-time: relax license LGPL
19827         * modules/stat-time (License): Change from GPL to LGPL,
19828         with consent from all contributors, for use in libguile.
19829         Requested by Ludovic Courtès.
19830
19831 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19832
19833         poll: return immediately on POLLHUP.
19834         * lib/poll.c (poll): Always set timeout before wait_timeout is
19835         computed.
19836
19837 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19838
19839         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19840         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19841         rmdir ("dir/.//"), unlinkat.
19842
19843 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19844
19845         stdbool: avoid spurious failure with modern xlc
19846         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19847
19848 2010-08-24  Bruno Haible  <bruno@clisp.org>
19849
19850         getloadavg: simplify code
19851         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19852         gl_have_func. Update comments.
19853
19854 2010-08-24  Eric Blake  <eblake@redhat.com>
19855
19856         getloadavg: don't define SVR4 on cygwin
19857         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19858         only define SVR4 when -lkvm is required.
19859         Reported by Yaakov Selkowitz.
19860
19861 2010-08-24  Bruno Haible  <bruno@clisp.org>
19862
19863         priv-set: fix comment
19864         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19865
19866 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19867
19868         priv-set: fix comments
19869         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19870         to match code, as suggested by David Bartley in:
19871         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19872
19873 2010-08-23  Eric Blake  <eblake@redhat.com>
19874
19875         stdbool: avoid rejecting clang
19876         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19877         * tests/test-stdbool.c: Enable more tests if using the system
19878         <stdbool.h> instead of the gnulib replacement.
19879         (main): Move xlc bug test to a runtime test for all compilers.
19880         Reported by Anders Kaseorg.
19881
19882         argz: fix shell quoting issue
19883         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19884         Reported by Charles Wilson.
19885
19886 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19887             Erik Faye-Lund <kusmabite@gmail.com>
19888
19889         poll, select: handle ERROR_BROKEN_PIPE.
19890         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19891         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19892         * lib/select.c (win32_compute_revents): Do not mark a pipe
19893         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19894
19895 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19896
19897         fts: allow compilation with C++
19898         * lib/fts_.h: Specify extern "C" linkage with C++.
19899
19900 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19901
19902         Fix gnulib-tool sed script de-commentation for AIX sed.
19903         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19904         sed.
19905
19906 2010-08-17  Eric Blake  <eblake@redhat.com>
19907
19908         test-stddef: test for (some) offsetof bugs
19909         * tests/test-stddef.c: Enhance test to ensure correct type of
19910         offsetof.
19911         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19912         that we are not fixing at this time.
19913
19914 2010-08-15  Bruno Haible  <bruno@clisp.org>
19915
19916         stpncpy: Allow stpncpy to be defined as a macro.
19917         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19918         if it's already correctly declared.
19919         * lib/string.in.h (stpncpy): Undefine before redefining.
19920         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19921
19922 2010-08-14  Bruno Haible  <bruno@clisp.org>
19923
19924         Rename module 'memxfrm' to 'amemxfrm'.
19925         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19926         (amemxfrm): Renamed from memxfrm.
19927         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19928         (amemxfrm): Renamed from memxfrm.
19929         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19930         * NEWS: Mention the change.
19931         * MODULES.html.sh (String handling <string.h>): Update.
19932         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19933         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19934         * lib/unicase/u16-casexfrm.c: Likewise.
19935         * lib/unicase/u32-casexfrm.c: Likewise.
19936         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19937         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19938         * lib/uninorm/u16-normxfrm.c: Likewise.
19939         * lib/uninorm/u32-normxfrm.c: Likewise.
19940         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19941         memxfrm.
19942         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19943         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19944         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19945         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19946         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19947         Suggested by Paul Eggert.
19948
19949 2010-08-14  Bruno Haible  <bruno@clisp.org>
19950
19951         Tests for module 'astrxfrm'.
19952         * modules/astrxfrm-tests: New file.
19953         * tests/test-astrxfrm.c: New file.
19954
19955         New module 'astrxfrm'.
19956         * lib/astrxfrm.h: New file.
19957         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19958         * modules/astrxfrm: New file.
19959
19960 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19961
19962         regex: Tweak doc.
19963         * doc/regex.texi (Overview): Don't mention regex.c.
19964         (GNU Regular Expression Compiling): Likewise.
19965         (Match-end-of-line Operator): Mention 'not_eol'.
19966
19967 2010-08-14  Brian Gough  <bjg@gnu.org>
19968             Bruno Haible  <bruno@clisp.org>
19969
19970         git-merge-changelog: add doc relating to use with bzr and hg.
19971         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19972
19973 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19974
19975         pthread: fix pthread.h creation for srcdir != builddir
19976         * modules/pthread (Makefile.am): Fix the rule to work also in a
19977         non-srcdir build.
19978
19979 2010-08-13  Karl Berry  <karl@gnu.org>
19980
19981         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19982         * doc/posix-*/*: force line break before @url of POSIX
19983         specifications.
19984         Suggested by Werner Lemberg.
19985
19986 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19987
19988         strtod: fix const diagnostic
19989         * lib/strtod.c (strtod): Don't assign const char * to char *,
19990         as this elicits a warning from GCC when warnings are enabled.
19991
19992 2010-08-10  Pádraig Brady <P@draigbrady.com>
19993         and Eric Blake  <eblake@redhat.com>
19994
19995         copy-acl: ignore ENOTSUP on HP-UX
19996         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19997         so that it is available for HP-UX.
19998         * lib/copy-acl.c (qcopy_acl): Use it.
19999         Reported by Patrick M. Callahan.
20000
20001 2010-08-10  Eric Blake  <eblake@redhat.com>
20002
20003         open, chown: relax license
20004         * modules/open (License): Change to LGPLv2+, with consent by all
20005         authors, for use in augeas.
20006         * modules/chown (License): Likewise.
20007         * modules/lchown (Likewise): Likewise.
20008         Requested by Adam Stokes.
20009
20010 2010-08-09  Karl Berry  <karl@gnu.org>
20011
20012         * build-aux/ar-lib: new file, import from Automake.
20013         * config/srclist.txt: autocheck for updates.
20014
20015 2010-08-09  Eric Blake  <eblake@redhat.com>
20016
20017         readlinkat: adjust client modules
20018         * modules/areadlinkat (Depends-on): Use readlinkat, not
20019         symlinkat.
20020         * modules/areadlinkat-with-size (Depends-on): Likewise.
20021
20022         mknod: be more vocal about danger of running tests as root
20023         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20024         root, since that is just asking for problems.
20025         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20026
20027         readlinkat: split into its own module
20028         * modules/symlinkat: Split readlinkat...
20029         * modules/readlinkat: ...into separate module.
20030         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20031         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20032         * lib/symlinkat.c (readlinkat): Move...
20033         * lib/readlinkat.c: ...into new file.
20034         * modules/symlinkat-tests: Split readlinkat test...
20035         * modules/readlinkat-tests: ...into separate module.
20036         * tests/test-symlinkat.c: Split...
20037         * tests/test-readlinkat.c: ...into new file.
20038         * NEWS: Document the split.
20039         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20040         * lib/unistd.in.h (readlinkat): Likewise.
20041         Suggested by Bruno Haible.
20042
20043 2010-08-08  Bruno Haible  <bruno@clisp.org>
20044
20045         memxfrm: Speed up.
20046         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20047         that usually only one call to strxfrm is necessary for each string
20048         part.
20049         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20050
20051 2010-08-07  Karl Berry  <karl@gnu.org>
20052
20053         * doc/posix-headers/limits.texi,
20054         * doc/posix-functions/malloc.texi,
20055         * doc/posix-functions/strsignal.texi: missing @item.
20056         * doc/ld-version-script.texi: spurious leading i.
20057         * doc/regex.texi (Interval Operators): no commas inside @var.
20058
20059 2010-08-01  Bruno Haible  <bruno@clisp.org>
20060
20061         Integrate the regex documentation.
20062         * doc/gnulib.texi: Define 'cn' index.
20063         (Regular expressions): New a chapter that includes regex.texi and
20064         regexprops-generic.texi.
20065         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20066         syntax.
20067
20068         Whitespace cleanup.
20069         * doc/regex.texi: Remove trailing spaces.
20070
20071         Add regex documentation.
20072         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20073         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20074         Written by Kathy A. Hargreaves and Karl Berry.
20075
20076 2010-08-01  Bruno Haible  <bruno@clisp.org>
20077
20078         link: Update documentation.
20079         * doc/posix-functions/link.texi: Update regarding Solaris.
20080
20081 2010-07-31  Bruno Haible  <bruno@clisp.org>
20082
20083         Update modules list.
20084         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20085         (String handling <string.h>): Add memcmp2, memxfrm.
20086         (Container data structures): Add xlist, xsublist, xoset.
20087         (Core language properties): Add alignof, unused-parameter.
20088         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20089         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20090         (Unibyte characters <ctype.h>): New section.
20091         (String handling <string.h>): New section.
20092         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20093         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20094         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20095         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20096         tan, tanh, tanl, y0, y1, yn.
20097         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20098         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20099         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20100         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20101         unlockpt, vdprintf, vdprintf-posix.
20102         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20103         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20104         xconcat-filename.
20105         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20106         getdtablesize, pipe2, pipe2-safer.
20107         (Security): New section.
20108         (Networking functions): Add accept4.
20109         (Signal handling): Add sigpipe.
20110         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20111         mbmemcasecoll.
20112         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20113         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20114         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20115         pipe-filter-ii.
20116         (Misc): Add argp-version-etc, login_tty, parse-duration.
20117
20118 2010-07-31  Bruno Haible  <bruno@clisp.org>
20119
20120         Improve doc in MODULES.html.
20121         * modules/linkat (Description): Add the word "function".
20122         * modules/mkfifo (Description): Likewise.
20123         * modules/mknod (Description): Likewise.
20124         * modules/remove (Description): Likewise.
20125         * modules/renameat (Description): Likewise.
20126         * modules/stat (Description): Likewise.
20127         * modules/symlink (Description): Likewise.
20128         * modules/unlink (Description): Likewise.
20129
20130 2010-07-31  Bruno Haible  <bruno@clisp.org>
20131
20132         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20133         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20134         option --enable/disable-c++ instead of --enable/disable-cxx.
20135         * NEWS: Mention the change.
20136
20137 2010-07-31  Bruno Haible  <bruno@clisp.org>
20138
20139         readlink, areadlink: Relax test a bit.
20140         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20141         alternative to ENOTDIR.
20142         * tests/test-areadlink.h (test_areadlink): Likewise.
20143         Reported by Rainer Tammer.
20144
20145 2010-07-31  Bruno Haible  <bruno@clisp.org>
20146
20147         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20148         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20149         character, perform the search using U_STRCHR.
20150         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20151         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20152         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20153         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20154         Suggested by Paolo Bonzini.
20155
20156 2010-07-31  Bruno Haible  <bruno@clisp.org>
20157
20158         unistr/u*-strstr: Fix dependencies.
20159         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20160         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20161         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20162
20163 2010-07-31  Bruno Haible  <bruno@clisp.org>
20164
20165         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20166         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20167         the beginning of the loop.
20168         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20169         cases in 'switch' statement.
20170
20171         unistr/u8-strchr: Fix several bugs.
20172         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20173         the string. When not found, return NULL, not a pointer near the end.
20174
20175         More tests for unistr/u8-strchr.
20176         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20177         that the function does not read past the first occurrence of the byte
20178         being searched.
20179         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20180         * tests/unistr/test-u16-strchr.c (main): New function.
20181         * tests/unistr/test-u32-strchr.c (main): New function.
20182
20183 2010-07-31  Bruno Haible  <bruno@clisp.org>
20184
20185         posix-modules: Ignore backup files of documentation files.
20186         * posix-modules: grep only through files named *.texi.
20187
20188 2010-07-31  Bruno Haible  <bruno@clisp.org>
20189
20190         symlinkat: Fix documentation.
20191         * doc/posix-functions/readlinkat.texi: Fix module name.
20192
20193 2010-07-31  Bruno Haible  <bruno@clisp.org>
20194
20195         fchownat: Replace also when chown has the trailing slash bug.
20196         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20197         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20198         introduced on 2010-04-10.
20199         Reported by Rainer Tammer.
20200
20201 2010-07-31  Bruno Haible  <bruno@clisp.org>
20202
20203         linkat: Work around AIX 7.1 bug.
20204         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20205         whether linkat handles trailing slash correctly. If not, replace linkat
20206         and define LINKAT_TRAILING_SLASH_BUG.
20207         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20208         check whether (fd1,file1) points to a directory if file1 or file2 ends
20209         in a slash. Code taken from lib/link.c.
20210         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20211         Reported by Rainer Tammer.
20212
20213 2010-07-31  Bruno Haible  <bruno@clisp.org>
20214
20215         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20216         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20217         This disables an xlc optimization that was causing wrong test results.
20218         Reported by Rainer Tammer.
20219
20220 2010-07-31  Bruno Haible  <bruno@clisp.org>
20221
20222         iconv: Work around AIX 6.1..7.1 bug.
20223         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20224         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20225         cross-compiling, guess no on all versions of AIX.
20226         Reported by Rainer Tammer.
20227
20228 2010-07-31  Bruno Haible  <bruno@clisp.org>
20229
20230         readlink: Relax test a bit.
20231         * tests/test-readlink.h (test_readlink): Allow different errno value
20232         when readlink is called with a file name that ends in / and refers to
20233         a file.
20234         Suggested by Eric Blake.
20235         Reported by Rainer Tammer.
20236
20237 2010-07-31  Bruno Haible  <bruno@clisp.org>
20238
20239         copysign: Does not require -lm on glibc systems.
20240         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20241         gl_COMMON_DOUBLE_MATHFUNC.
20242         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20243
20244 2010-07-31  Bruno Haible  <bruno@clisp.org>
20245
20246         duplocale: Work around AIX 7.1 bug.
20247         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20248         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20249         * lib/duplocale.c (rpl_duplocale): Update comment.
20250         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20251         Reported by Rainer Tammer.
20252
20253 2010-07-30  Bruno Haible  <bruno@clisp.org>
20254
20255         dirfd: Avoid link error on AIX 7.1.
20256         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20257         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20258         exist, set REPLACE_DIRFD.
20259         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20260         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20261         * doc/posix-functions/dirfd.texi: Update.
20262         Reported by Rainer Tammer.
20263
20264 2010-07-30  Eric Blake  <eblake@redhat.com>
20265
20266         strtod: next round of AIX fixes
20267         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20268         exponent.
20269         * tests/test-strtod.c (main): Enhance tests.
20270         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20271         Reported by Rainer Tammer.
20272
20273         futimens: fix configure check
20274         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20275         Reported by Bruno Haible.
20276
20277 2010-07-30  Bruno Haible  <bruno@clisp.org>
20278
20279         getline: Update regarding AIX.
20280         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20281         Reported by Rainer Tammer.
20282
20283 2010-07-30  Bruno Haible  <bruno@clisp.org>
20284
20285         wcwidth: Drop replacement on AIX 7.
20286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20287         AIX 7.
20288         Reported by Rainer Tammer.
20289
20290 2010-07-30  Bruno Haible  <bruno@clisp.org>
20291
20292         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20293         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20294         a 'char *'.
20295         Reported by Rainer Tammer.
20296
20297 2010-07-30  Bruno Haible  <bruno@clisp.org>
20298
20299         unlink: Update regarding AIX.
20300         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20301         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20302         Reported by Rainer Tammer.
20303
20304 2010-07-30  Bruno Haible  <bruno@clisp.org>
20305
20306         symlink: Update regarding AIX.
20307         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20308         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20309         Reported by Rainer Tammer.
20310
20311 2010-07-30  Bruno Haible  <bruno@clisp.org>
20312
20313         strndup: Update regarding AIX.
20314         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20315         AIX 7.
20316         Reported by Rainer Tammer.
20317
20318 2010-07-30  Bruno Haible  <bruno@clisp.org>
20319
20320         stat: Update regarding AIX.
20321         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20322         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20323         Reported by Rainer Tammer.
20324
20325 2010-07-30  Bruno Haible  <bruno@clisp.org>
20326
20327         truncl: Fix autoconf test.
20328         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20329         whether truncl works.
20330         Reported by Rainer Tammer.
20331
20332 2010-07-30  Bruno Haible  <bruno@clisp.org>
20333
20334         round: Update regarding AIX.
20335         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20336         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20337         Reported by Rainer Tammer.
20338
20339 2010-07-30  Bruno Haible  <bruno@clisp.org>
20340
20341         rename: Update regarding AIX.
20342         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20343         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20344         Reported by Rainer Tammer.
20345
20346 2010-07-30  Bruno Haible  <bruno@clisp.org>
20347
20348         printf.m4: Update regarding AIX.
20349         * m4/printf.m4: Update comments regarding AIX.
20350         Reported by Rainer Tammer.
20351
20352 2010-07-30  Bruno Haible  <bruno@clisp.org>
20353
20354         iconv: Update regarding AIX.
20355         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20356         AIX 7.
20357         Reported by Rainer Tammer.
20358
20359 2010-07-30  Bruno Haible  <bruno@clisp.org>
20360
20361         getopt: Update regarding AIX.
20362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20363         no on AIX.
20364         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20365         Reported by Rainer Tammer.
20366
20367 2010-07-30  Bruno Haible  <bruno@clisp.org>
20368
20369         ldexpl; Update regarding AIX.
20370         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20371         on AIX 7.
20372         Reported by Rainer Tammer.
20373
20374 2010-07-30  Bruno Haible  <bruno@clisp.org>
20375
20376         frexpl: Update regarding AIX.
20377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20378         on AIX 7.
20379         Reported by Rainer Tammer.
20380
20381 2010-07-30  Bruno Haible  <bruno@clisp.org>
20382
20383         open, fopen: Update regarding AIX.
20384         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20385         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20386         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20387         * doc/posix-functions/fopen.texi: Likewise.
20388         Reported by Rainer Tammer.
20389
20390 2010-07-30  Bruno Haible  <bruno@clisp.org>
20391
20392         chown: Update doc regarding AIX.
20393         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20394         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20395         Reported by Rainer Tammer.
20396
20397 2010-07-30  Eric Blake  <eblake@redhat.com>
20398
20399         strtod: fix bug in replacement function on AIX
20400         * lib/strtod.c (strtod): Special case broken "0x" parse in
20401         underlying strtod.
20402         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20403         * doc/posix-functions/strtod.texi (strtod): Likewise.
20404         Reported by Rainer Tammer.
20405
20406 2010-07-30  Bruno Haible  <bruno@clisp.org>
20407
20408         mbrlen: Fix cross-compilation guess for AIX.
20409         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20410         guess. Leftover from 2008-12-22.
20411
20412 2010-07-30  Bruno Haible  <bruno@clisp.org>
20413
20414         mbrtowc: Fix cross-compilation guess for AIX.
20415         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20416         guess. Leftover from 2008-12-21.
20417
20418 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20419
20420         init.sh: work around trap limitation of some shells
20421         * tests/init.sh (setup_): Move exit trap outside of shell function.
20422
20423 2010-07-29  Eric Blake  <eblake@redhat.com>
20424
20425         strtod: aid debugging
20426         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20427         understanding why strtod is rejected.
20428
20429 2010-07-28  Bruno Haible  <bruno@clisp.org>
20430
20431         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20432         * lib/unistr/u8-chr.c: Include <string.h>.
20433         * tests/unistr/test-u8-chr.c: Likewise.
20434         * tests/unistr/test-u16-chr.c: Likewise.
20435         * tests/unistr/test-u32-chr.c: Likewise.
20436         * tests/unistr/test-u8-strchr.c: Likewise.
20437         * tests/unistr/test-u16-strchr.c: Likewise.
20438         * tests/unistr/test-u32-strchr.c: Likewise.
20439         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20440         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20441         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20442         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20443
20444 2010-07-28  Bruno Haible  <bruno@clisp.org>
20445
20446         Use spaces for indentation, not tabs.
20447         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20448
20449 2010-07-27  Bruno Haible  <bruno@clisp.org>
20450
20451         mbspcasecmp: Fix function specification.
20452         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20453         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20454         Reported by Eric Blake <eblake@redhat.com>.
20455
20456 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20457
20458         timespec: use cast and not conditional, as truncation isn't possible
20459         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20460         instead of a conditional.  Comment about the situation in more detail.
20461         This undoes most of the 2009-10-29 patch.
20462
20463 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20464
20465         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20466         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20467         * lib/unistr/u8-strchr.c: Likewise.
20468         * modules/unistr/u8-chr: Depend on memchr.
20469
20470         unistr/u*-strchr: add tests
20471         * modules/unistr/u8-strchr-tests: New file.
20472         * modules/unistr/u16-strchr-tests: New file.
20473         * modules/unistr/u32-strchr-tests: New file.
20474         * tests/unistr/test-strchr.h: New file.
20475         * tests/unistr/test-u8-strchr.c: New file.
20476         * tests/unistr/test-u16-strchr.c: New file.
20477         * tests/unistr/test-u32-strchr.c: New file.
20478
20479         unistr/u*-chr: test multibyte sequences more
20480         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20481         test vector.
20482         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20483         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20484         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20485
20486         unistr/u*-chr: test multibyte sequences
20487         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20488
20489         unistr/u*-chr: prepare for multibyte tests
20490         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20491         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20492         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20493         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20494         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20495         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20496
20497 2010-07-18  Bruno Haible  <bruno@clisp.org>
20498
20499         unistr/u8-strchr: Optimize non-ASCII argument case.
20500         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20501         because the first byte often matches anyway.
20502         Reported by Pádraig Brady <P@draigbrady.com>.
20503
20504 2010-07-15  Karl Berry  <karl@gnu.org>
20505
20506         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20507
20508 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20509
20510         getcwd: on Solaris, work better if ancestors are inaccessible
20511         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20512         buffer and size, try again with a large buffer.  This works better
20513         on Solaris, since its getcwd succeeds even if the path to the root
20514         is inaccessible, and this is helpful in common cases such as .zfs
20515         hidden directories.  Problem reported by J Chapman Flack in
20516         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20517         Use system getcwd if it's declared, not merely if it's partly
20518         working; use the partly-working test only to avoid needless effort
20519         if the system getcwd fails.
20520         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20521         comment that was already obsolete and is now even more obsolete.
20522         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20523         now might call strdup.
20524
20525 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20526
20527         pthread: Add enough so that coreutils/src/sort.c compiles.
20528         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20529         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20530         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20531         Include <sys/types.h>, in case it defines pthread_t.
20532         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20533         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20534         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20535         (pthread_rwlockattr_t, pthread_spinlock_t):
20536         New typedefs, if HAVE_PTHREAD_T is not defined.
20537         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20538         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20539         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20540         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20541         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20542         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20543         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20544         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20545         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20546         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20547         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20548         New macros.
20549         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20550         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20551         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20552         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20553         (pthread_spin_unlock): New dummy functions.
20554         (pthread_create): Return EAGAIN; don't set errno.
20555         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20556         require AC_C_INLINE.
20557         * modules/pthread (Depends-on): Add sched, time.
20558         (pthread.h): Use AM_V_GEN.
20559
20560 2010-07-13  Bruno Haible  <bruno@clisp.org>
20561
20562         striconveh: Don't malloc memory if the result buffer is sufficient.
20563         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20564         buffer if its size is sufficient.
20565         Reported by Ludovic Courtès <ludo@gnu.org>.
20566
20567 2010-07-13  Bruno Haible  <bruno@clisp.org>
20568
20569         strtod: Add safety check.
20570         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20571
20572 2010-07-12  Bruno Haible  <bruno@clisp.org>
20573
20574         Unify tests that set gl_cv_func_ldexpl_no_libm.
20575         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20576         gl_FUNC_LDEXPL.
20577         (gl_FUNC_LDEXPL): Invoke it.
20578         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20579
20580 2010-07-12  Bruno Haible  <bruno@clisp.org>
20581
20582         Unify tests that set gl_cv_func_ldexp_no_libm.
20583         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20584         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20585         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20586         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20587         * modules/strtod (Files): Add m4/ldexp.m4.
20588
20589 2010-07-12  Bruno Haible  <bruno@clisp.org>
20590
20591         Unify tests that set gl_cv_func_frexpl_no_libm.
20592         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20593         gl_FUNC_FREXPL_NO_LIBM.
20594         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20595         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20596
20597 2010-07-12  Bruno Haible  <bruno@clisp.org>
20598
20599         Unify tests that set gl_cv_func_frexp_no_libm.
20600         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20601         gl_FUNC_FREXP_NO_LIBM.
20602         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20603         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20604
20605 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20606
20607         memcoll: clarify sizes versus lengths, document better, and tweak perf
20608         * lib/memcoll.c (strcoll_loop, memcoll0):
20609         Improve quality of descriptive comments.  Name variables
20610         consistently as to whether they are lengths (which do not include
20611         terminating null) versus sizes (which do).
20612         * lib/xmemcoll.c (xmemcoll0): Likewise.
20613         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20614         returned when s1size == 0; this is easier to compile and saves
20615         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20616
20617 2010-07-12  Bruno Haible  <bruno@clisp.org>
20618
20619         Tests for module '_Exit'.
20620         * modules/_Exit-tests: New file.
20621         * tests/test-_Exit.sh: New file.
20622         * tests/test-_Exit.c: New file.
20623
20624         New module '_Exit'.
20625         * lib/stdlib.in.h (__attribute__): New macro.
20626         (_Exit): New declaration.
20627         * lib/_Exit.c: New file.
20628         * m4/_Exit.m4: New file.
20629         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20630         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20631         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20632         * modules/_Exit: New file.
20633         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20634         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20635
20636 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20637
20638         strtod: make it more-accurate typically, and don't require libm
20639         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20640         Include limits.h.  Don't include string.h.
20641         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20642         (locale_isspace): New function, so that no casts are needed to
20643         check whether *s is a space.
20644         (ldexp): Provide an unused dummy if not available.
20645         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20646         (strtod): Use them.  This implementation prefers to use the
20647         underlying strtod if available, falling back on our own code
20648         only to fix known bugs.  This is more likely to produce an
20649         accurate result.  Also, it avoids the use of libm functions.
20650         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20651         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20652         was absent, but it caused a test failure with coreutils.
20653         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20654         with libm.
20655         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20656         * modules/strtod-tests (Makefile.am): Likewise.
20657
20658 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20659             Bruno Haible  <bruno@clisp.org>
20660
20661         unistr/u8-strchr: Optimize ASCII argument case.
20662         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20663
20664 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20665
20666         (x)memcoll: minor tweaks
20667         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20668         is after the type that it qualifies.
20669         (memcoll0): Likewise.
20670         * lib/memcoll.h (memcoll0): Likewise.
20671         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20672         * lib/xmemcoll.h (xmemcoll0): Likewise.
20673         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20674         differs from memcoll in that the NUL byte is part of the argument.
20675         Omit the abort-checks, as performance is a real issue here.  Plus,
20676         the checks were wrong anyway (an off-by-one error).  Omit local
20677         variable 'diff', as it's a bit clearer that way.
20678         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20679         no longer needed.
20680
20681 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20682
20683         (x)memcoll: speedup when input is known to be NUL delimited
20684         * lib/memcoll.c: Include stdlib.
20685         (memcoll0): New function.
20686         (strcoll_loop): New function, refactored for use in both memcoll
20687         and memcoll0.
20688         * lib/memcoll.h (memcoll0): Add prototype.
20689         * lib/xmemcoll.c (xmemcoll0): New function.
20690         (collate_error): New function, refactored for use in both xmemcoll
20691         and xmemcoll0.
20692         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20693         * m4/memcoll.m4: add inline invocation.
20694
20695 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20696
20697         * build-aux/bootstrap: Remove any local translations
20698         from the translation project synchronization directory,
20699         so that local only translations are not distributed.
20700
20701 2010-07-04  Bruno Haible  <bruno@clisp.org>
20702
20703         fsusage: Clarify which code applies to which platforms.
20704         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20705         platform.
20706         * lib/fsusage.c (get_fs_usage): Likewise.
20707
20708 2010-07-04  Bruno Haible  <bruno@clisp.org>
20709
20710         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20711         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20712         Reported by Martin Lambers <marlam@marlam.de>.
20713
20714 2010-07-04  Jim Meyering  <meyering@redhat.com>
20715
20716         hash: once again explicitly disallow insertion of NULL
20717         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20718         inserting a NULL pointer cannot work with these functions.
20719         Add a comment with details.
20720         This reverts part of the 2010-07-01 commit, 5bef1a35
20721         "hash: extend module to deal with non-pointer keys".
20722
20723 2010-07-01  Bruno Haible  <bruno@clisp.org>
20724
20725         stdbool: Update doc.
20726         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20727         Info from Christian Weisgerber <naddy@mips.inka.de>.
20728
20729 2010-07-01  Jim Meyering  <meyering@redhat.com>
20730
20731         hash: extend module to deal with non-pointer keys
20732         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20733         but that allows insertion of non-pointer entries.
20734         Do not disallow an ENTRY value of NULL.
20735         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20736         * lib/hash.h (hash_insert0): Declare.
20737
20738 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20739
20740         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20741         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20742         not present (i.e. with autoconf 2.59 and when using gettextize, not
20743         gnulib), require AC_GNU_SOURCE instead.
20744
20745 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20746
20747         idpriv-drop: Fix tests.
20748         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20749         not to the test-idpriv-droptemp program.
20750
20751 2010-06-29  Bruno Haible  <bruno@clisp.org>
20752
20753         string: Fix syntax error with g++ 2.96.
20754         * lib/string.in.h (__pure__): Remove definition.
20755         (_GL_ATTRIBUTE_PURE): New macro.
20756         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20757         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20758         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20759
20760 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20761
20762         unitypes: Fix bug introduced on 2010-05-18.
20763         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20764
20765 2010-06-22  Eric Blake  <eblake@redhat.com>
20766
20767         memmem: slight optimization
20768         * lib/str-two-way.h (critical_factorization): Update comments.
20769         Reduce work during factorization phase.
20770         Reported by Carlos Bueno <carlos@bueno.org>.
20771
20772 2010-06-21  Bruno Haible  <bruno@clisp.org>
20773
20774         Fix HAVE_CALLOC_POSIX misnomer.
20775         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20776         !HAVE_CALLOC_POSIX.
20777         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20778         HAVE_CALLOC_POSIX.
20779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20780         instead of HAVE_CALLOC_POSIX.
20781         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20782         HAVE_CALLOC_POSIX.
20783
20784         Use modern idiom for calloc() replacement.
20785         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20786         AC_FUNC_CALLOC.
20787         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20788         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20789         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20790         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20791         (gl_REPLACE_CALLOC): New macro.
20792
20793 2010-06-21  Bruno Haible  <bruno@clisp.org>
20794
20795         Fix HAVE_REALLOC_POSIX misnomer.
20796         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20797         !HAVE_REALLOC_POSIX.
20798         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20799         HAVE_REALLOC_POSIX.
20800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20801         instead of HAVE_REALLOC_POSIX.
20802         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20803         HAVE_REALLOC_POSIX.
20804
20805         Use modern idiom for realloc() replacement.
20806         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20807         AC_FUNC_REALLOC.
20808         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20809         Autoconf's AC_FUNC_REALLOC.
20810         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20811         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20812         (gl_REPLACE_REALLOC): New macro.
20813         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20814
20815 2010-06-21  Bruno Haible  <bruno@clisp.org>
20816
20817         Fix HAVE_MALLOC_POSIX misnomer.
20818         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20819         !HAVE_MALLOC_POSIX.
20820         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20821         HAVE_MALLOC_POSIX.
20822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20823         instead of HAVE_MALLOC_POSIX.
20824         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20825         HAVE_MALLOC_POSIX.
20826
20827         Use modern idiom for malloc() replacement.
20828         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20829         AC_FUNC_MALLOC.
20830         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20831         Autoconf's AC_FUNC_MALLOC.
20832         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20833         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20834         (gl_REPLACE_MALLOC): New macro.
20835         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20836
20837 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20838
20839         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20840         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20841         This macro takes 3 arguments, not 4.
20842
20843 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20844
20845         ipv6: fix detection under mingw
20846         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20847         in6_addr.
20848
20849 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20850
20851         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20852         that strtod() works when cross-compiling to a glibc version known
20853         to work.
20854
20855 2010-06-15  Bruno Haible  <bruno@clisp.org>
20856
20857         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20858
20859 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20860
20861         select: Correct timeout.
20862         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20863
20864 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20865
20866         git-version-gen: init shell var to avoid env var influence
20867         * build-aux/git-version-gen (v): Init shell var to empty.
20868
20869 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20870
20871         priv-set: Don't assume that priv.h exists merely because getppriv does.
20872         See Jan Andersen's bug report about AIX 5L in
20873         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20874         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20875         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20876         * lib/priv-set.h: Likewise.
20877         * tests/test-priv-set.c: Likewise.
20878
20879 2010-06-13  Bruno Haible  <bruno@clisp.org>
20880
20881         relocatable: Make it easier to test whether to install wrappers.
20882         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20883         RELOCATABLE_VIA_WRAPPER.
20884
20885 2010-06-13  Bruno Haible  <bruno@clisp.org>
20886
20887         gnulib-tool: Display specified modules and dependencies differently.
20888         * gnulib-tool (func_show_module_list): New function.
20889         (func_import, func_create_testdir): Invoke it.
20890         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20891
20892 2010-06-13  Bruno Haible  <bruno@clisp.org>
20893
20894         gnulib-tool: Align code of func_import and func_create_testdir.
20895         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20896         specified_modules.
20897
20898 2010-06-12  Jim Meyering  <meyering@redhat.com>
20899
20900         test-inttostr: avoid spurious failure on Solaris 9
20901         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20902         to accept "%ju".  Reported by Bruno Haible.
20903
20904 2010-06-11  Jim Meyering  <meyering@redhat.com>
20905
20906         test-sys_socket: mark variables as used more readably
20907         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20908         as "used" explicitly via (void) statement casts.  This is more
20909         readable than using them in an artificial return expression.
20910         Suggestion from Bruno Haible.
20911
20912 2010-06-11  Bruno Haible  <bruno@clisp.org>
20913
20914         Avoid some more warnings from "gcc -Wwrite-strings".
20915         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20916         to 'const char *'.
20917         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20918         * tests/test-c-strcasestr.c (main): Likewise.
20919         * tests/test-mbscasestr1.c (main): Likewise.
20920         * tests/test-mbscasestr2.c (main): Likewise.
20921         * tests/test-memmem.c (main): Likewise.
20922         * tests/test-strstr.c (main): Likewise.
20923         * tests/test-strcasestr.c (main): Likewise.
20924
20925 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20926
20927         init.sh: change framework_failure_ to fail with status 99, not 1
20928         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20929         automake's parallel-tests rule that this is an unexpected failure,
20930         even if the test is listed in XFAIL_TESTS.
20931
20932 2010-06-11  Jim Meyering  <meyering@redhat.com>
20933
20934         test-inttostr: avoid warnings about 4-6KB literal strings
20935         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20936         Include "macros.h", for its definition of ASSERT.
20937         (CK): s/assert/ASSERT/
20938         * modules/inttostr-tests (Files): Add macros.h.
20939
20940         init.sh: don't use $ME_ or skip_ before they are defined
20941         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20942         their first uses.  Also hoist their companions: warn_, fail_,
20943         framework_failure_, $stderr_fileno.  Prompted by a patch from
20944         Stefano Lattarini.
20945
20946         test-sys_socket: avoid set-but-not-used warnings from gcc
20947         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20948         avoid warning about set-but-not-used variables.
20949
20950         test-xvasprintf: avoid 'const' discard warnings
20951         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20952         "const" when assigning from literal strings.
20953         (test_xasprintf): Add "void" in function argument list to placate
20954         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20955
20956         tests: avoid compilation warnings in argmatch and exclude tests...
20957         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20958         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20959         Since it always exits, declare with the "noreturn" attribute.
20960         * tests/test-argmatch.c: Likewise.
20961
20962         tests: avoid 'const' discard warnings in mbsstr tests
20963         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20964         * tests/test-mbsstr2.c (main): Likewise.
20965
20966         test-verify: avoid warning from gcc's -Wmissing-declarations
20967         * tests/test-verify.c (function): Declare to be static.
20968
20969         test-inttostr.c: include <string.h> for use of strcmp
20970         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20971
20972         test-linkat: avoid failed assertion on "other" architectures
20973         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20974         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20975         sparc: https://bugs.launchpad.net/bugs/591968
20976
20977 2010-06-11  Jim Meyering  <meyering@redhat.com>
20978
20979         printf.m4: avoid autoconf's "Expanded Before Required" warning
20980         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20981         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20982         autoconf warning.
20983
20984 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20985
20986         Replacement header templates are now named with ".in", not "_".
20987         * doc/gnulib-intro.texi: Correct.
20988
20989 2010-06-10  Jim Meyering  <meyering@redhat.com>
20990
20991         inttostr-tests: depend on snprintf, not snprintf-posix
20992         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20993         snprintf-posix, to avoid this aclocal failure:
20994           missing file gnulib-tests/vasnprintf.c
20995           configure.ac:45: error: expected source file, required through \
20996           AC_LIBSOURCES, not found
20997
20998 2010-06-10  Jim Meyering  <meyering@redhat.com>
20999
21000         inttostr: add a new function, inttostr, and tests
21001         The namesake function was not available.  The existence of the
21002         template file, inttostr.c makes its addition nontrivial.
21003         * lib/anytostr.c: Rename from inttostr.c.
21004         (anytostr): Rename from inttostr.
21005         * lib/inttostr.c: New file.
21006         * modules/inttostr (Files): Add anytostr.c.
21007         (Makefile.am): Set lib_SOURCES instead of ...
21008         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21009         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21010         * lib/offtostr.c: Likewise.
21011         * lib/uinttostr.c: Likewise.
21012         * lib/umaxtostr.c: Likewise.
21013         * modules/inttostr-tests: New file.
21014         * tests/test-inttostr.c: New file.  Test these functions.
21015
21016 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21017             Bruno Haible  <bruno@clisp.org>
21018
21019         Add "Extending Gnulib" chapter to manual.
21020         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21021         chapter.
21022         (Extending Gnulib): New chapter.
21023         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21024         chapter.
21025
21026 2010-06-09  Bruno Haible  <bruno@clisp.org>
21027
21028         Avoid relocwrapper link errors due to gnulib replacement functions.
21029         * lib/areadlink.c: Use the system's malloc, realloc functions.
21030         (areadlink): Set errno to ENOMEM explicitly.
21031         * modules/areadlink (Depends-on): Remove malloc-posix.
21032         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21033
21034 2010-06-09  Bruno Haible  <bruno@clisp.org>
21035
21036         Avoid relocwrapper link errors due to gnulib replacement functions.
21037         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21038         * lib/malloca.c: Likewise.
21039         * lib/relocatable.c: Likewise.
21040         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21041         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21042         * lib/setenv.c: Use the system's malloc, realloc functions.
21043         * lib/strerror.c: Use the system's sprintf function.
21044         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21045
21046 2010-06-04  Bruno Haible  <bruno@clisp.org>
21047
21048         Prefer documented low-level autoconf macro names.
21049         * m4/lib-link.m4: Use m4_translit instead of translit.
21050         * m4/environ.m4: Likewise.
21051         * m4/mathfunc.m4: Likewise.
21052         * m4/onceonly.m4: Likewise.
21053         * m4/stdint.m4: Likewise.
21054         Suggested by Eric Blake.
21055
21056 2010-06-04  Martin Lambers  <marlam@marlam.de>
21057             Bruno Haible  <bruno@clisp.org>
21058
21059         havelib: Allow library names with '+' characters.
21060         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21061         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21062
21063 2010-06-09  Bruno Haible  <bruno@clisp.org>
21064
21065         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21066         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21067         realloc failed.
21068
21069 2010-06-08  Peter Simons  <simons@cryp.to>
21070
21071         maint.mk: make the news-check rule more configurable
21072         * top/maint.mk (news-check-lines-spec): New variable.
21073         (news-check): Use "sed -n 1,10p" in place of "head".
21074
21075 2010-06-07  Jim Meyering  <meyering@redhat.com>
21076
21077         do-release-commit-and-tag: fix typo in --help
21078         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21079
21080         regex: avoid new dead-code warning with gcc-4.6.0
21081         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21082         if-block containing a while-loop.  It's been unused for at least
21083         5 years.
21084
21085 2010-06-05  Bruno Haible  <bruno@clisp.org>
21086
21087         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21088         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21089
21090 2010-06-04  Bruno Haible  <bruno@clisp.org>
21091
21092         Update to GNU gettext 0.18.1.
21093         * modules/gettext (configure.ac): Require gettext infrastructure from
21094         version 0.18.1.
21095
21096 2010-06-03  Bruno Haible  <bruno@clisp.org>
21097
21098         Don't use AC_LIBOBJ with file names in subdirectories.
21099         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21100         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21101         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21102         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21103         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21104         gl_LIBUNISTRING_LIBSOURCE.
21105         (Makefile.am): Augment lib_SOURCES here, conditionally.
21106         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21107
21108 2010-06-03  Bruno Haible  <bruno@clisp.org>
21109
21110         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21111         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21112         expansion does not end with a newline.
21113         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21114         unnecessary newline.
21115
21116 2010-06-03  Bruno Haible  <bruno@clisp.org>
21117
21118         Reduce dependencies.
21119         * tests/test-quotearg.h: New file, extracted from
21120         tests/test-quotearg.c.
21121         * tests/test-quotearg-simple.c: New file, extracted from
21122         tests/test-quotearg.c.
21123         * tests/test-quotearg.c: Don't include <ctype.h>.
21124         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21125         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21126         use_quote_double_quotes, use_quotearg_colon): Moved to
21127         tests/test-quotearg.h.
21128         (results_g, flag_results, custom_quotes, custom_results): Moved
21129         to tests/test-quotearg-simple.c.
21130         (main): Moved the part that does not depend on gettext to
21131         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21132         performed.
21133         * modules/quotearg-simple: New file.
21134         * modules/quotearg-simple-tests: New file.
21135         * modules/quotearg (Depends-on): Add quotearg-simple.
21136         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21137         (Files): Add tests/test-quotearg.h.
21138         Reported by Paolo Bonzini.
21139
21140 2010-06-03  Bruno Haible  <bruno@clisp.org>
21141
21142         Reduce dependencies.
21143         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21144
21145 2010-06-03  Bruno Haible  <bruno@clisp.org>
21146
21147         time: Undefine more broken macros.
21148         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21149         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21150         Reported by Eric Blake.
21151
21152 2010-06-03  Bruno Haible  <bruno@clisp.org>
21153
21154         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21155         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21156         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21157         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21158         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21159         Reported by Ludovic Courtès <ludo@gnu.org>.
21160
21161 2010-06-02  Eric Blake  <eblake@redhat.com>
21162
21163         time: work with mingw + pthreads-win32 library
21164         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21165         if timespec is defined only in pthread.h.
21166         * modules/time (Makefile.am): Substitute it.
21167         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21168         <pthread.h>, when needed.
21169         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21170         from the library.
21171
21172 2010-05-31  Bruno Haible  <bruno@clisp.org>
21173
21174         Avoid expanding two macros in the wrong order.
21175         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21176         gl_LIBUNISTRING if it is defined.
21177         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21178         autoconf >= 2.64.
21179         Reported by Ludovic Courtès <ludo@gnu.org>.
21180
21181 2010-05-27  Jim Meyering  <meyering@redhat.com>
21182
21183         maint.mk: also prohibit "#undef" of always-defined symbols
21184         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21185         Allow more than one space before the symbol name.
21186         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21187         the regexp uses alternation.
21188
21189 2010-05-26  Eric Blake  <eblake@redhat.com>
21190
21191         maint.mk: avoid echo -e
21192         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21193         Convert all uses of echo -* to printf.
21194         Reported by Matthias Bolte.
21195
21196 2010-05-25  Bruno Haible  <bruno@clisp.org>
21197
21198         Update to GNU gettext 0.18, part 2.
21199         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21200         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21201
21202 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21203
21204         Add missing include in test-pwrite.c.
21205         * tests/test-pwrite.c: Include string.h, for strcmp.
21206
21207 2010-05-24  Bruno Haible  <bruno@clisp.org>
21208
21209         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21210
21211 2010-05-24  Bruno Haible  <bruno@clisp.org>
21212
21213         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21214         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21215         iconveh_error argument.
21216         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21217         U_STRCONV_TO_LOCALE.
21218         * lib/unistr/u16-strcoll.c: Likewise.
21219         * lib/unistr/u32-strcoll.c: Likewise.
21220         * modules/unistr/u8-strcoll (Depends-on): Add
21221         uniconv/u8-strconv-to-enc, localcharset. Remove
21222         uniconv/u8-strconv-to-locale.
21223         (configure.ac): Bump version number.
21224         * modules/unistr/u16-strcoll (Depends-on): Add
21225         uniconv/u16-strconv-to-enc, localcharset. Remove
21226         uniconv/u16-strconv-to-locale.
21227         (configure.ac): Bump version number.
21228         * modules/unistr/u32-strcoll (Depends-on): Add
21229         uniconv/u32-strconv-to-enc, localcharset. Remove
21230         uniconv/u32-strconv-to-locale.
21231         (configure.ac): Bump version number.
21232
21233 2010-05-24  Bruno Haible  <bruno@clisp.org>
21234
21235         Avoid a test failure on NetBSD 5.0.
21236         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21237         an iconv() bug.
21238
21239 2010-05-24  Bruno Haible  <bruno@clisp.org>
21240
21241         Adjust #include directive style.
21242         * modules/regex (Includes): Recommend to write <regex.h>.
21243
21244 2010-05-24  Bruno Haible  <bruno@clisp.org>
21245
21246         regex: Don't require alloca.
21247         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21248         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21249         only inside if (0).
21250
21251 2010-05-23  Jim Meyering  <meyering@redhat.com>
21252
21253         test-renameat.c: include <sys/stat.h>
21254         * tests/test-renameat.c: Include <sys/stat.h>; required for
21255         definition of S_IS* macros.
21256
21257 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21258
21259         Update maintainer documentation for 'relocatable-prog' module.
21260         * doc/relocatable-maint.texi: Update.
21261         Comments by Bruno Haible.
21262
21263 2010-05-23  Bruno Haible  <bruno@clisp.org>
21264
21265         git-merge-changelog: Enable --split-merged-entry by default.
21266         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21267         (usage): Don't mention this option any more.
21268         Reported by Ralf Wildenhues.
21269
21270 2010-05-23  Jim Meyering  <meyering@redhat.com>
21271
21272         test-pwrite: do not leave behind a test file named "out"
21273         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21274         The trivial-looking use of init.sh is really necessary.
21275         It ensures that the temporary file, "out", is created in
21276         a temporary directory, and removed upon termination.
21277         * tests/test-pwrite.sh: Re-add file.
21278         * modules/pwrite-tests: Reference it.
21279
21280 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21281
21282         Fix output redirection buglet in init.sh.
21283         * tests/init.sh: Fix redirection of stderr.
21284
21285 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21286
21287         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21288
21289 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21290
21291         * modules/valgrind-tests: New file.
21292         * m4/valgrind-tests.m4: New file.
21293         * doc/valgrind-tests.texi: New file.
21294         * doc/gnulib.texi (Running self-tests under valgrind): New
21295         section.
21296
21297 2010-05-19  Bruno Haible  <bruno@clisp.org>
21298
21299         Clean up dead code in recent commit.
21300         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21301         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21302         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21303         Suggested by Paolo Bonzini.
21304
21305 2010-05-19  Bruno Haible  <bruno@clisp.org>
21306
21307         Avoid valgrind error reports from libunistring.
21308         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21309         * modules/libunistring (Files): Add it.
21310         * modules/libunistring-optional (Files): Likewise.
21311
21312 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21313             Bruno Haible  <bruno@clisp.org>
21314
21315         New module 'libunistring-optional'.
21316         * modules/libunistring-optional: New file.
21317         * m4/libunistring-base.m4: New file.
21318         * m4/libunistring-optional.m4: New file.
21319         * lib/unicase.in.h: Renamed from lib/unicase.h.
21320         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21321         * lib/unictype.in.h: Renamed from lib/unictype.h.
21322         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21323         * lib/uniname.in.h: Renamed from lib/uniname.h.
21324         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21325         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21326         * lib/unistr.in.h: Renamed from lib/unistr.h.
21327         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21328         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21329         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21330         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21331         gl_LIBUNISTRING. If the library was found, determine the installed
21332         version and set LIBUNISTRING_VERSION.
21333         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21334         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21335         handle a configuration option --with-included-libunistring.
21336         * modules/libunistring (Files): Add m4/absolute-header.m4.
21337         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21338         Add m4/libunistring-base.m4.
21339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21340         (Makefile.am): Build unicase.h from unicase.in.h.
21341         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21342         Add m4/libunistring-base.m4.
21343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21344         (Makefile.am): Build uniconv.h from uniconv.in.h.
21345         * modules/unictype/base (Files): Use unictype.in.h instead of
21346         unictype.h. Add m4/libunistring-base.m4.
21347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21348         (Makefile.am): Build unictype.h from unictype.in.h.
21349         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21350         Add m4/libunistring-base.m4.
21351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21352         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21353         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21354         Add m4/libunistring-base.m4.
21355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21356         (Makefile.am): Build uniname.h from uniname.in.h.
21357         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21358         Add m4/libunistring-base.m4.
21359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21360         (Makefile.am): Build uninorm.h from uninorm.in.h.
21361         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21362         unistdio.h. Add m4/libunistring-base.m4.
21363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21364         (Makefile.am): Build unistdio.h from unistdio.in.h.
21365         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21366         Add m4/libunistring-base.m4.
21367         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21368         (Makefile.am): Build unistr.h from unistr.in.h.
21369         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21370         Add m4/libunistring-base.m4.
21371         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21372         (Makefile.am): Build unitypes.h from unitypes.in.h.
21373         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21374         Add m4/libunistring-base.m4.
21375         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21376         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21377         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21378         uniwidth.h. Add m4/libunistring-base.m4.
21379         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21380         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21381         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21382         instead of augmenting lib_SOURCES.
21383         * modules/unicase/empty-suffix-context: Likewise.
21384         * modules/unicase/locale-language: Likewise.
21385         * modules/unicase/tolower: Likewise.
21386         * modules/unicase/totitle: Likewise.
21387         * modules/unicase/toupper: Likewise.
21388         * modules/unicase/u8-casecmp: Likewise.
21389         * modules/unicase/u8-casecoll: Likewise.
21390         * modules/unicase/u8-casefold: Likewise.
21391         * modules/unicase/u8-casexfrm: Likewise.
21392         * modules/unicase/u8-ct-casefold: Likewise.
21393         * modules/unicase/u8-ct-tolower: Likewise.
21394         * modules/unicase/u8-ct-totitle: Likewise.
21395         * modules/unicase/u8-ct-toupper: Likewise.
21396         * modules/unicase/u8-is-cased: Likewise.
21397         * modules/unicase/u8-is-casefolded: Likewise.
21398         * modules/unicase/u8-is-lowercase: Likewise.
21399         * modules/unicase/u8-is-titlecase: Likewise.
21400         * modules/unicase/u8-is-uppercase: Likewise.
21401         * modules/unicase/u8-prefix-context: Likewise.
21402         * modules/unicase/u8-suffix-context: Likewise.
21403         * modules/unicase/u8-tolower: Likewise.
21404         * modules/unicase/u8-totitle: Likewise.
21405         * modules/unicase/u8-toupper: Likewise.
21406         * modules/unicase/u16-casecmp: Likewise.
21407         * modules/unicase/u16-casecoll: Likewise.
21408         * modules/unicase/u16-casefold: Likewise.
21409         * modules/unicase/u16-casexfrm: Likewise.
21410         * modules/unicase/u16-ct-casefold: Likewise.
21411         * modules/unicase/u16-ct-tolower: Likewise.
21412         * modules/unicase/u16-ct-totitle: Likewise.
21413         * modules/unicase/u16-ct-toupper: Likewise.
21414         * modules/unicase/u16-is-cased: Likewise.
21415         * modules/unicase/u16-is-casefolded: Likewise.
21416         * modules/unicase/u16-is-lowercase: Likewise.
21417         * modules/unicase/u16-is-titlecase: Likewise.
21418         * modules/unicase/u16-is-uppercase: Likewise.
21419         * modules/unicase/u16-prefix-context: Likewise.
21420         * modules/unicase/u16-suffix-context: Likewise.
21421         * modules/unicase/u16-tolower: Likewise.
21422         * modules/unicase/u16-totitle: Likewise.
21423         * modules/unicase/u16-toupper: Likewise.
21424         * modules/unicase/u32-casecmp: Likewise.
21425         * modules/unicase/u32-casecoll: Likewise.
21426         * modules/unicase/u32-casefold: Likewise.
21427         * modules/unicase/u32-casexfrm: Likewise.
21428         * modules/unicase/u32-ct-casefold: Likewise.
21429         * modules/unicase/u32-ct-tolower: Likewise.
21430         * modules/unicase/u32-ct-totitle: Likewise.
21431         * modules/unicase/u32-ct-toupper: Likewise.
21432         * modules/unicase/u32-is-cased: Likewise.
21433         * modules/unicase/u32-is-casefolded: Likewise.
21434         * modules/unicase/u32-is-lowercase: Likewise.
21435         * modules/unicase/u32-is-titlecase: Likewise.
21436         * modules/unicase/u32-is-uppercase: Likewise.
21437         * modules/unicase/u32-prefix-context: Likewise.
21438         * modules/unicase/u32-suffix-context: Likewise.
21439         * modules/unicase/u32-tolower: Likewise.
21440         * modules/unicase/u32-totitle: Likewise.
21441         * modules/unicase/u32-toupper: Likewise.
21442         * modules/unicase/ulc-casecmp: Likewise.
21443         * modules/unicase/ulc-casecoll: Likewise.
21444         * modules/unicase/ulc-casexfrm: Likewise.
21445         * modules/uniconv/u8-conv-from-enc: Likewise.
21446         * modules/uniconv/u8-conv-to-enc: Likewise.
21447         * modules/uniconv/u8-strconv-from-enc: Likewise.
21448         * modules/uniconv/u8-strconv-from-locale: Likewise.
21449         * modules/uniconv/u8-strconv-to-enc: Likewise.
21450         * modules/uniconv/u8-strconv-to-locale: Likewise.
21451         * modules/uniconv/u16-conv-from-enc: Likewise.
21452         * modules/uniconv/u16-conv-to-enc: Likewise.
21453         * modules/uniconv/u16-strconv-from-enc: Likewise.
21454         * modules/uniconv/u16-strconv-from-locale: Likewise.
21455         * modules/uniconv/u16-strconv-to-enc: Likewise.
21456         * modules/uniconv/u16-strconv-to-locale: Likewise.
21457         * modules/uniconv/u32-conv-from-enc: Likewise.
21458         * modules/uniconv/u32-conv-to-enc: Likewise.
21459         * modules/uniconv/u32-strconv-from-enc: Likewise.
21460         * modules/uniconv/u32-strconv-from-locale: Likewise.
21461         * modules/uniconv/u32-strconv-to-enc: Likewise.
21462         * modules/uniconv/u32-strconv-to-locale: Likewise.
21463         * modules/unictype/bidicategory-byname: Likewise.
21464         * modules/unictype/bidicategory-name: Likewise.
21465         * modules/unictype/bidicategory-of: Likewise.
21466         * modules/unictype/bidicategory-test: Likewise.
21467         * modules/unictype/block-list: Likewise.
21468         * modules/unictype/block-test: Likewise.
21469         * modules/unictype/category-C: Likewise.
21470         * modules/unictype/category-Cc: Likewise.
21471         * modules/unictype/category-Cf: Likewise.
21472         * modules/unictype/category-Cn: Likewise.
21473         * modules/unictype/category-Co: Likewise.
21474         * modules/unictype/category-Cs: Likewise.
21475         * modules/unictype/category-L: Likewise.
21476         * modules/unictype/category-Ll: Likewise.
21477         * modules/unictype/category-Lm: Likewise.
21478         * modules/unictype/category-Lo: Likewise.
21479         * modules/unictype/category-Lt: Likewise.
21480         * modules/unictype/category-Lu: Likewise.
21481         * modules/unictype/category-M: Likewise.
21482         * modules/unictype/category-Mc: Likewise.
21483         * modules/unictype/category-Me: Likewise.
21484         * modules/unictype/category-Mn: Likewise.
21485         * modules/unictype/category-N: Likewise.
21486         * modules/unictype/category-Nd: Likewise.
21487         * modules/unictype/category-Nl: Likewise.
21488         * modules/unictype/category-No: Likewise.
21489         * modules/unictype/category-P: Likewise.
21490         * modules/unictype/category-Pc: Likewise.
21491         * modules/unictype/category-Pd: Likewise.
21492         * modules/unictype/category-Pe: Likewise.
21493         * modules/unictype/category-Pf: Likewise.
21494         * modules/unictype/category-Pi: Likewise.
21495         * modules/unictype/category-Po: Likewise.
21496         * modules/unictype/category-Ps: Likewise.
21497         * modules/unictype/category-S: Likewise.
21498         * modules/unictype/category-Sc: Likewise.
21499         * modules/unictype/category-Sk: Likewise.
21500         * modules/unictype/category-Sm: Likewise.
21501         * modules/unictype/category-So: Likewise.
21502         * modules/unictype/category-Z: Likewise.
21503         * modules/unictype/category-Zl: Likewise.
21504         * modules/unictype/category-Zp: Likewise.
21505         * modules/unictype/category-Zs: Likewise.
21506         * modules/unictype/category-and: Likewise.
21507         * modules/unictype/category-and-not: Likewise.
21508         * modules/unictype/category-byname: Likewise.
21509         * modules/unictype/category-name: Likewise.
21510         * modules/unictype/category-none: Likewise.
21511         * modules/unictype/category-of: Likewise.
21512         * modules/unictype/category-or: Likewise.
21513         * modules/unictype/category-test: Likewise.
21514         * modules/unictype/combining-class: Likewise.
21515         * modules/unictype/ctype-alnum: Likewise.
21516         * modules/unictype/ctype-alpha: Likewise.
21517         * modules/unictype/ctype-blank: Likewise.
21518         * modules/unictype/ctype-cntrl: Likewise.
21519         * modules/unictype/ctype-digit: Likewise.
21520         * modules/unictype/ctype-graph: Likewise.
21521         * modules/unictype/ctype-lower: Likewise.
21522         * modules/unictype/ctype-print: Likewise.
21523         * modules/unictype/ctype-punct: Likewise.
21524         * modules/unictype/ctype-space: Likewise.
21525         * modules/unictype/ctype-upper: Likewise.
21526         * modules/unictype/ctype-xdigit: Likewise.
21527         * modules/unictype/decimal-digit: Likewise.
21528         * modules/unictype/digit: Likewise.
21529         * modules/unictype/mirror: Likewise.
21530         * modules/unictype/numeric: Likewise.
21531         * modules/unictype/property-alphabetic: Likewise.
21532         * modules/unictype/property-ascii-hex-digit: Likewise.
21533         * modules/unictype/property-bidi-arabic-digit: Likewise.
21534         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21535         * modules/unictype/property-bidi-block-separator: Likewise.
21536         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21537         * modules/unictype/property-bidi-common-separator: Likewise.
21538         * modules/unictype/property-bidi-control: Likewise.
21539         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21540         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21541         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21542         * modules/unictype/property-bidi-european-digit: Likewise.
21543         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21544         * modules/unictype/property-bidi-left-to-right: Likewise.
21545         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21546         * modules/unictype/property-bidi-other-neutral: Likewise.
21547         * modules/unictype/property-bidi-pdf: Likewise.
21548         * modules/unictype/property-bidi-segment-separator: Likewise.
21549         * modules/unictype/property-bidi-whitespace: Likewise.
21550         * modules/unictype/property-byname: Likewise.
21551         * modules/unictype/property-combining: Likewise.
21552         * modules/unictype/property-composite: Likewise.
21553         * modules/unictype/property-currency-symbol: Likewise.
21554         * modules/unictype/property-dash: Likewise.
21555         * modules/unictype/property-decimal-digit: Likewise.
21556         * modules/unictype/property-default-ignorable-code-point: Likewise.
21557         * modules/unictype/property-deprecated: Likewise.
21558         * modules/unictype/property-diacritic: Likewise.
21559         * modules/unictype/property-extender: Likewise.
21560         * modules/unictype/property-format-control: Likewise.
21561         * modules/unictype/property-grapheme-base: Likewise.
21562         * modules/unictype/property-grapheme-extend: Likewise.
21563         * modules/unictype/property-grapheme-link: Likewise.
21564         * modules/unictype/property-hex-digit: Likewise.
21565         * modules/unictype/property-hyphen: Likewise.
21566         * modules/unictype/property-id-continue: Likewise.
21567         * modules/unictype/property-id-start: Likewise.
21568         * modules/unictype/property-ideographic: Likewise.
21569         * modules/unictype/property-ids-binary-operator: Likewise.
21570         * modules/unictype/property-ids-trinary-operator: Likewise.
21571         * modules/unictype/property-ignorable-control: Likewise.
21572         * modules/unictype/property-iso-control: Likewise.
21573         * modules/unictype/property-join-control: Likewise.
21574         * modules/unictype/property-left-of-pair: Likewise.
21575         * modules/unictype/property-line-separator: Likewise.
21576         * modules/unictype/property-logical-order-exception: Likewise.
21577         * modules/unictype/property-lowercase: Likewise.
21578         * modules/unictype/property-math: Likewise.
21579         * modules/unictype/property-non-break: Likewise.
21580         * modules/unictype/property-not-a-character: Likewise.
21581         * modules/unictype/property-numeric: Likewise.
21582         * modules/unictype/property-other-alphabetic: Likewise.
21583         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21584         * modules/unictype/property-other-grapheme-extend: Likewise.
21585         * modules/unictype/property-other-id-continue: Likewise.
21586         * modules/unictype/property-other-id-start: Likewise.
21587         * modules/unictype/property-other-lowercase: Likewise.
21588         * modules/unictype/property-other-math: Likewise.
21589         * modules/unictype/property-other-uppercase: Likewise.
21590         * modules/unictype/property-paired-punctuation: Likewise.
21591         * modules/unictype/property-paragraph-separator: Likewise.
21592         * modules/unictype/property-pattern-syntax: Likewise.
21593         * modules/unictype/property-pattern-white-space: Likewise.
21594         * modules/unictype/property-private-use: Likewise.
21595         * modules/unictype/property-punctuation: Likewise.
21596         * modules/unictype/property-quotation-mark: Likewise.
21597         * modules/unictype/property-radical: Likewise.
21598         * modules/unictype/property-sentence-terminal: Likewise.
21599         * modules/unictype/property-soft-dotted: Likewise.
21600         * modules/unictype/property-space: Likewise.
21601         * modules/unictype/property-terminal-punctuation: Likewise.
21602         * modules/unictype/property-test: Likewise.
21603         * modules/unictype/property-titlecase: Likewise.
21604         * modules/unictype/property-unassigned-code-value: Likewise.
21605         * modules/unictype/property-unified-ideograph: Likewise.
21606         * modules/unictype/property-uppercase: Likewise.
21607         * modules/unictype/property-variation-selector: Likewise.
21608         * modules/unictype/property-white-space: Likewise.
21609         * modules/unictype/property-xid-continue: Likewise.
21610         * modules/unictype/property-xid-start: Likewise.
21611         * modules/unictype/property-zero-width: Likewise.
21612         * modules/unictype/scripts: Likewise.
21613         * modules/unictype/syntax-c-ident: Likewise.
21614         * modules/unictype/syntax-c-whitespace: Likewise.
21615         * modules/unictype/syntax-java-ident: Likewise.
21616         * modules/unictype/syntax-java-whitespace: Likewise.
21617         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21618         * modules/unilbrk/u8-width-linebreaks: Likewise.
21619         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21620         * modules/unilbrk/u16-width-linebreaks: Likewise.
21621         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21622         * modules/unilbrk/u32-width-linebreaks: Likewise.
21623         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21624         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21625         * modules/uniname/uniname: Likewise.
21626         * modules/uninorm/canonical-decomposition: Likewise.
21627         * modules/uninorm/composition: Likewise.
21628         * modules/uninorm/decomposing-form: Likewise.
21629         * modules/uninorm/decomposition: Likewise.
21630         * modules/uninorm/filter: Likewise.
21631         * modules/uninorm/nfc: Likewise.
21632         * modules/uninorm/nfd: Likewise.
21633         * modules/uninorm/nfkc: Likewise.
21634         * modules/uninorm/nfkd: Likewise.
21635         * modules/uninorm/u8-normalize: Likewise.
21636         * modules/uninorm/u8-normcmp: Likewise.
21637         * modules/uninorm/u8-normcoll: Likewise.
21638         * modules/uninorm/u8-normxfrm: Likewise.
21639         * modules/uninorm/u16-normalize: Likewise.
21640         * modules/uninorm/u16-normcmp: Likewise.
21641         * modules/uninorm/u16-normcoll: Likewise.
21642         * modules/uninorm/u16-normxfrm: Likewise.
21643         * modules/uninorm/u32-normalize: Likewise.
21644         * modules/uninorm/u32-normcmp: Likewise.
21645         * modules/uninorm/u32-normcoll: Likewise.
21646         * modules/uninorm/u32-normxfrm: Likewise.
21647         * modules/unistdio/u8-asnprintf: Likewise.
21648         * modules/unistdio/u8-asprintf: Likewise.
21649         * modules/unistdio/u8-snprintf: Likewise.
21650         * modules/unistdio/u8-sprintf: Likewise.
21651         * modules/unistdio/u8-u8-asnprintf: Likewise.
21652         * modules/unistdio/u8-u8-asprintf: Likewise.
21653         * modules/unistdio/u8-u8-snprintf: Likewise.
21654         * modules/unistdio/u8-u8-sprintf: Likewise.
21655         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21656         * modules/unistdio/u8-u8-vasprintf: Likewise.
21657         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21658         * modules/unistdio/u8-u8-vsprintf: Likewise.
21659         * modules/unistdio/u8-vasnprintf: Likewise.
21660         * modules/unistdio/u8-vasprintf: Likewise.
21661         * modules/unistdio/u8-vsnprintf: Likewise.
21662         * modules/unistdio/u8-vsprintf: Likewise.
21663         * modules/unistdio/u16-asnprintf: Likewise.
21664         * modules/unistdio/u16-asprintf: Likewise.
21665         * modules/unistdio/u16-snprintf: Likewise.
21666         * modules/unistdio/u16-sprintf: Likewise.
21667         * modules/unistdio/u16-u16-asnprintf: Likewise.
21668         * modules/unistdio/u16-u16-asprintf: Likewise.
21669         * modules/unistdio/u16-u16-snprintf: Likewise.
21670         * modules/unistdio/u16-u16-sprintf: Likewise.
21671         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21672         * modules/unistdio/u16-u16-vasprintf: Likewise.
21673         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21674         * modules/unistdio/u16-u16-vsprintf: Likewise.
21675         * modules/unistdio/u16-vasnprintf: Likewise.
21676         * modules/unistdio/u16-vasprintf: Likewise.
21677         * modules/unistdio/u16-vsnprintf: Likewise.
21678         * modules/unistdio/u16-vsprintf: Likewise.
21679         * modules/unistdio/u32-asnprintf: Likewise.
21680         * modules/unistdio/u32-asprintf: Likewise.
21681         * modules/unistdio/u32-snprintf: Likewise.
21682         * modules/unistdio/u32-sprintf: Likewise.
21683         * modules/unistdio/u32-u32-asnprintf: Likewise.
21684         * modules/unistdio/u32-u32-asprintf: Likewise.
21685         * modules/unistdio/u32-u32-snprintf: Likewise.
21686         * modules/unistdio/u32-u32-sprintf: Likewise.
21687         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21688         * modules/unistdio/u32-u32-vasprintf: Likewise.
21689         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21690         * modules/unistdio/u32-u32-vsprintf: Likewise.
21691         * modules/unistdio/u32-vasnprintf: Likewise.
21692         * modules/unistdio/u32-vasprintf: Likewise.
21693         * modules/unistdio/u32-vsnprintf: Likewise.
21694         * modules/unistdio/u32-vsprintf: Likewise.
21695         * modules/unistdio/ulc-asnprintf: Likewise.
21696         * modules/unistdio/ulc-asprintf: Likewise.
21697         * modules/unistdio/ulc-fprintf: Likewise.
21698         * modules/unistdio/ulc-snprintf: Likewise.
21699         * modules/unistdio/ulc-sprintf: Likewise.
21700         * modules/unistdio/ulc-vasnprintf: Likewise.
21701         * modules/unistdio/ulc-vasprintf: Likewise.
21702         * modules/unistdio/ulc-vfprintf: Likewise.
21703         * modules/unistdio/ulc-vsnprintf: Likewise.
21704         * modules/unistdio/ulc-vsprintf: Likewise.
21705         * modules/unistr/u8-check: Likewise.
21706         * modules/unistr/u8-chr: Likewise.
21707         * modules/unistr/u8-cmp: Likewise.
21708         * modules/unistr/u8-cmp2: Likewise.
21709         * modules/unistr/u8-cpy: Likewise.
21710         * modules/unistr/u8-cpy-alloc: Likewise.
21711         * modules/unistr/u8-endswith: Likewise.
21712         * modules/unistr/u8-mblen: Likewise.
21713         * modules/unistr/u8-mbsnlen: Likewise.
21714         * modules/unistr/u8-mbtouc: Likewise.
21715         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21716         * modules/unistr/u8-mbtoucr: Likewise.
21717         * modules/unistr/u8-move: Likewise.
21718         * modules/unistr/u8-next: Likewise.
21719         * modules/unistr/u8-prev: Likewise.
21720         * modules/unistr/u8-set: Likewise.
21721         * modules/unistr/u8-startswith: Likewise.
21722         * modules/unistr/u8-stpcpy: Likewise.
21723         * modules/unistr/u8-stpncpy: Likewise.
21724         * modules/unistr/u8-strcat: Likewise.
21725         * modules/unistr/u8-strchr: Likewise.
21726         * modules/unistr/u8-strcmp: Likewise.
21727         * modules/unistr/u8-strcoll: Likewise.
21728         * modules/unistr/u8-strcpy: Likewise.
21729         * modules/unistr/u8-strcspn: Likewise.
21730         * modules/unistr/u8-strdup: Likewise.
21731         * modules/unistr/u8-strlen: Likewise.
21732         * modules/unistr/u8-strmblen: Likewise.
21733         * modules/unistr/u8-strmbtouc: Likewise.
21734         * modules/unistr/u8-strncat: Likewise.
21735         * modules/unistr/u8-strncmp: Likewise.
21736         * modules/unistr/u8-strncpy: Likewise.
21737         * modules/unistr/u8-strnlen: Likewise.
21738         * modules/unistr/u8-strpbrk: Likewise.
21739         * modules/unistr/u8-strrchr: Likewise.
21740         * modules/unistr/u8-strspn: Likewise.
21741         * modules/unistr/u8-strstr: Likewise.
21742         * modules/unistr/u8-strtok: Likewise.
21743         * modules/unistr/u8-to-u16: Likewise.
21744         * modules/unistr/u8-to-u32: Likewise.
21745         * modules/unistr/u8-uctomb: Likewise.
21746         * modules/unistr/u16-check: Likewise.
21747         * modules/unistr/u16-chr: Likewise.
21748         * modules/unistr/u16-cmp: Likewise.
21749         * modules/unistr/u16-cmp2: Likewise.
21750         * modules/unistr/u16-cpy: Likewise.
21751         * modules/unistr/u16-cpy-alloc: Likewise.
21752         * modules/unistr/u16-endswith: Likewise.
21753         * modules/unistr/u16-mblen: Likewise.
21754         * modules/unistr/u16-mbsnlen: Likewise.
21755         * modules/unistr/u16-mbtouc: Likewise.
21756         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21757         * modules/unistr/u16-mbtoucr: Likewise.
21758         * modules/unistr/u16-move: Likewise.
21759         * modules/unistr/u16-next: Likewise.
21760         * modules/unistr/u16-prev: Likewise.
21761         * modules/unistr/u16-set: Likewise.
21762         * modules/unistr/u16-startswith: Likewise.
21763         * modules/unistr/u16-stpcpy: Likewise.
21764         * modules/unistr/u16-stpncpy: Likewise.
21765         * modules/unistr/u16-strcat: Likewise.
21766         * modules/unistr/u16-strchr: Likewise.
21767         * modules/unistr/u16-strcmp: Likewise.
21768         * modules/unistr/u16-strcoll: Likewise.
21769         * modules/unistr/u16-strcpy: Likewise.
21770         * modules/unistr/u16-strcspn: Likewise.
21771         * modules/unistr/u16-strdup: Likewise.
21772         * modules/unistr/u16-strlen: Likewise.
21773         * modules/unistr/u16-strmblen: Likewise.
21774         * modules/unistr/u16-strmbtouc: Likewise.
21775         * modules/unistr/u16-strncat: Likewise.
21776         * modules/unistr/u16-strncmp: Likewise.
21777         * modules/unistr/u16-strncpy: Likewise.
21778         * modules/unistr/u16-strnlen: Likewise.
21779         * modules/unistr/u16-strpbrk: Likewise.
21780         * modules/unistr/u16-strrchr: Likewise.
21781         * modules/unistr/u16-strspn: Likewise.
21782         * modules/unistr/u16-strstr: Likewise.
21783         * modules/unistr/u16-strtok: Likewise.
21784         * modules/unistr/u16-to-u32: Likewise.
21785         * modules/unistr/u16-to-u8: Likewise.
21786         * modules/unistr/u16-uctomb: Likewise.
21787         * modules/unistr/u32-check: Likewise.
21788         * modules/unistr/u32-chr: Likewise.
21789         * modules/unistr/u32-cmp: Likewise.
21790         * modules/unistr/u32-cmp2: Likewise.
21791         * modules/unistr/u32-cpy: Likewise.
21792         * modules/unistr/u32-cpy-alloc: Likewise.
21793         * modules/unistr/u32-endswith: Likewise.
21794         * modules/unistr/u32-mblen: Likewise.
21795         * modules/unistr/u32-mbsnlen: Likewise.
21796         * modules/unistr/u32-mbtouc: Likewise.
21797         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21798         * modules/unistr/u32-mbtoucr: Likewise.
21799         * modules/unistr/u32-move: Likewise.
21800         * modules/unistr/u32-next: Likewise.
21801         * modules/unistr/u32-prev: Likewise.
21802         * modules/unistr/u32-set: Likewise.
21803         * modules/unistr/u32-startswith: Likewise.
21804         * modules/unistr/u32-stpcpy: Likewise.
21805         * modules/unistr/u32-stpncpy: Likewise.
21806         * modules/unistr/u32-strcat: Likewise.
21807         * modules/unistr/u32-strchr: Likewise.
21808         * modules/unistr/u32-strcmp: Likewise.
21809         * modules/unistr/u32-strcoll: Likewise.
21810         * modules/unistr/u32-strcpy: Likewise.
21811         * modules/unistr/u32-strcspn: Likewise.
21812         * modules/unistr/u32-strdup: Likewise.
21813         * modules/unistr/u32-strlen: Likewise.
21814         * modules/unistr/u32-strmblen: Likewise.
21815         * modules/unistr/u32-strmbtouc: Likewise.
21816         * modules/unistr/u32-strncat: Likewise.
21817         * modules/unistr/u32-strncmp: Likewise.
21818         * modules/unistr/u32-strncpy: Likewise.
21819         * modules/unistr/u32-strnlen: Likewise.
21820         * modules/unistr/u32-strpbrk: Likewise.
21821         * modules/unistr/u32-strrchr: Likewise.
21822         * modules/unistr/u32-strspn: Likewise.
21823         * modules/unistr/u32-strstr: Likewise.
21824         * modules/unistr/u32-strtok: Likewise.
21825         * modules/unistr/u32-to-u16: Likewise.
21826         * modules/unistr/u32-to-u8: Likewise.
21827         * modules/unistr/u32-uctomb: Likewise.
21828         * modules/uniwbrk/u8-wordbreaks: Likewise.
21829         * modules/uniwbrk/u16-wordbreaks: Likewise.
21830         * modules/uniwbrk/u32-wordbreaks: Likewise.
21831         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21832         * modules/uniwbrk/wordbreak-property: Likewise.
21833         * modules/uniwidth/u8-strwidth: Likewise.
21834         * modules/uniwidth/u8-width: Likewise.
21835         * modules/uniwidth/u16-strwidth: Likewise.
21836         * modules/uniwidth/u16-width: Likewise.
21837         * modules/uniwidth/u32-strwidth: Likewise.
21838         * modules/uniwidth/u32-width: Likewise.
21839         * modules/uniwidth/width: Likewise.
21840         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21841         with $(LIBUNISTRING).
21842         * modules/unicase/ignorable-tests: Likewise.
21843         * modules/unicase/locale-language-tests: Likewise.
21844         * modules/unicase/tolower-tests: Likewise.
21845         * modules/unicase/totitle-tests: Likewise.
21846         * modules/unicase/toupper-tests: Likewise.
21847         * modules/unicase/u8-casecmp-tests: Likewise.
21848         * modules/unicase/u8-casecoll-tests: Likewise.
21849         * modules/unicase/u8-casefold-tests: Likewise.
21850         * modules/unicase/u8-is-cased-tests: Likewise.
21851         * modules/unicase/u8-is-casefolded-tests: Likewise.
21852         * modules/unicase/u8-is-lowercase-tests: Likewise.
21853         * modules/unicase/u8-is-titlecase-tests: Likewise.
21854         * modules/unicase/u8-is-uppercase-tests: Likewise.
21855         * modules/unicase/u8-tolower-tests: Likewise.
21856         * modules/unicase/u8-totitle-tests: Likewise.
21857         * modules/unicase/u8-toupper-tests: Likewise.
21858         * modules/unicase/u16-casecmp-tests: Likewise.
21859         * modules/unicase/u16-casecoll-tests: Likewise.
21860         * modules/unicase/u16-casefold-tests: Likewise.
21861         * modules/unicase/u16-is-cased-tests: Likewise.
21862         * modules/unicase/u16-is-casefolded-tests: Likewise.
21863         * modules/unicase/u16-is-lowercase-tests: Likewise.
21864         * modules/unicase/u16-is-titlecase-tests: Likewise.
21865         * modules/unicase/u16-is-uppercase-tests: Likewise.
21866         * modules/unicase/u16-tolower-tests: Likewise.
21867         * modules/unicase/u16-totitle-tests: Likewise.
21868         * modules/unicase/u16-toupper-tests: Likewise.
21869         * modules/unicase/u32-casecmp-tests: Likewise.
21870         * modules/unicase/u32-casecoll-tests: Likewise.
21871         * modules/unicase/u32-casefold-tests: Likewise.
21872         * modules/unicase/u32-is-cased-tests: Likewise.
21873         * modules/unicase/u32-is-casefolded-tests: Likewise.
21874         * modules/unicase/u32-is-lowercase-tests: Likewise.
21875         * modules/unicase/u32-is-titlecase-tests: Likewise.
21876         * modules/unicase/u32-is-uppercase-tests: Likewise.
21877         * modules/unicase/u32-tolower-tests: Likewise.
21878         * modules/unicase/u32-totitle-tests: Likewise.
21879         * modules/unicase/u32-toupper-tests: Likewise.
21880         * modules/unicase/ulc-casecmp-tests: Likewise.
21881         * modules/unicase/ulc-casecoll-tests: Likewise.
21882         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21883         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21884         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21885         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21886         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21887         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21888         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21889         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21890         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21891         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21892         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21893         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21894         * modules/unictype/bidicategory-byname-tests: Likewise.
21895         * modules/unictype/bidicategory-name-tests: Likewise.
21896         * modules/unictype/bidicategory-of-tests: Likewise.
21897         * modules/unictype/bidicategory-test-tests: Likewise.
21898         * modules/unictype/block-list-tests: Likewise.
21899         * modules/unictype/block-of-tests: Likewise.
21900         * modules/unictype/block-test-tests: Likewise.
21901         * modules/unictype/category-C-tests: Likewise.
21902         * modules/unictype/category-Cc-tests: Likewise.
21903         * modules/unictype/category-Cf-tests: Likewise.
21904         * modules/unictype/category-Cn-tests: Likewise.
21905         * modules/unictype/category-Co-tests: Likewise.
21906         * modules/unictype/category-Cs-tests: Likewise.
21907         * modules/unictype/category-L-tests: Likewise.
21908         * modules/unictype/category-Ll-tests: Likewise.
21909         * modules/unictype/category-Lm-tests: Likewise.
21910         * modules/unictype/category-Lo-tests: Likewise.
21911         * modules/unictype/category-Lt-tests: Likewise.
21912         * modules/unictype/category-Lu-tests: Likewise.
21913         * modules/unictype/category-M-tests: Likewise.
21914         * modules/unictype/category-Mc-tests: Likewise.
21915         * modules/unictype/category-Me-tests: Likewise.
21916         * modules/unictype/category-Mn-tests: Likewise.
21917         * modules/unictype/category-N-tests: Likewise.
21918         * modules/unictype/category-Nd-tests: Likewise.
21919         * modules/unictype/category-Nl-tests: Likewise.
21920         * modules/unictype/category-No-tests: Likewise.
21921         * modules/unictype/category-P-tests: Likewise.
21922         * modules/unictype/category-Pc-tests: Likewise.
21923         * modules/unictype/category-Pd-tests: Likewise.
21924         * modules/unictype/category-Pe-tests: Likewise.
21925         * modules/unictype/category-Pf-tests: Likewise.
21926         * modules/unictype/category-Pi-tests: Likewise.
21927         * modules/unictype/category-Po-tests: Likewise.
21928         * modules/unictype/category-Ps-tests: Likewise.
21929         * modules/unictype/category-S-tests: Likewise.
21930         * modules/unictype/category-Sc-tests: Likewise.
21931         * modules/unictype/category-Sk-tests: Likewise.
21932         * modules/unictype/category-Sm-tests: Likewise.
21933         * modules/unictype/category-So-tests: Likewise.
21934         * modules/unictype/category-Z-tests: Likewise.
21935         * modules/unictype/category-Zl-tests: Likewise.
21936         * modules/unictype/category-Zp-tests: Likewise.
21937         * modules/unictype/category-Zs-tests: Likewise.
21938         * modules/unictype/category-and-not-tests: Likewise.
21939         * modules/unictype/category-and-tests: Likewise.
21940         * modules/unictype/category-byname-tests: Likewise.
21941         * modules/unictype/category-name-tests: Likewise.
21942         * modules/unictype/category-none-tests: Likewise.
21943         * modules/unictype/category-of-tests: Likewise.
21944         * modules/unictype/category-or-tests: Likewise.
21945         * modules/unictype/category-test-withtable-tests: Likewise.
21946         * modules/unictype/combining-class-tests: Likewise.
21947         * modules/unictype/ctype-alnum-tests: Likewise.
21948         * modules/unictype/ctype-alpha-tests: Likewise.
21949         * modules/unictype/ctype-blank-tests: Likewise.
21950         * modules/unictype/ctype-cntrl-tests: Likewise.
21951         * modules/unictype/ctype-digit-tests: Likewise.
21952         * modules/unictype/ctype-graph-tests: Likewise.
21953         * modules/unictype/ctype-lower-tests: Likewise.
21954         * modules/unictype/ctype-print-tests: Likewise.
21955         * modules/unictype/ctype-punct-tests: Likewise.
21956         * modules/unictype/ctype-space-tests: Likewise.
21957         * modules/unictype/ctype-upper-tests: Likewise.
21958         * modules/unictype/ctype-xdigit-tests: Likewise.
21959         * modules/unictype/decimal-digit-tests: Likewise.
21960         * modules/unictype/digit-tests: Likewise.
21961         * modules/unictype/mirror-tests: Likewise.
21962         * modules/unictype/numeric-tests: Likewise.
21963         * modules/unictype/property-alphabetic-tests: Likewise.
21964         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21965         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21966         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21967         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21968         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21969         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21970         * modules/unictype/property-bidi-control-tests: Likewise.
21971         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21972         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21973         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21974         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21975         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21976         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21977         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21978         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21979         * modules/unictype/property-bidi-pdf-tests: Likewise.
21980         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21981         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21982         * modules/unictype/property-byname-tests: Likewise.
21983         * modules/unictype/property-combining-tests: Likewise.
21984         * modules/unictype/property-composite-tests: Likewise.
21985         * modules/unictype/property-currency-symbol-tests: Likewise.
21986         * modules/unictype/property-dash-tests: Likewise.
21987         * modules/unictype/property-decimal-digit-tests: Likewise.
21988         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21989         * modules/unictype/property-deprecated-tests: Likewise.
21990         * modules/unictype/property-diacritic-tests: Likewise.
21991         * modules/unictype/property-extender-tests: Likewise.
21992         * modules/unictype/property-format-control-tests: Likewise.
21993         * modules/unictype/property-grapheme-base-tests: Likewise.
21994         * modules/unictype/property-grapheme-extend-tests: Likewise.
21995         * modules/unictype/property-grapheme-link-tests: Likewise.
21996         * modules/unictype/property-hex-digit-tests: Likewise.
21997         * modules/unictype/property-hyphen-tests: Likewise.
21998         * modules/unictype/property-id-continue-tests: Likewise.
21999         * modules/unictype/property-id-start-tests: Likewise.
22000         * modules/unictype/property-ideographic-tests: Likewise.
22001         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22002         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22003         * modules/unictype/property-ignorable-control-tests: Likewise.
22004         * modules/unictype/property-iso-control-tests: Likewise.
22005         * modules/unictype/property-join-control-tests: Likewise.
22006         * modules/unictype/property-left-of-pair-tests: Likewise.
22007         * modules/unictype/property-line-separator-tests: Likewise.
22008         * modules/unictype/property-logical-order-exception-tests: Likewise.
22009         * modules/unictype/property-lowercase-tests: Likewise.
22010         * modules/unictype/property-math-tests: Likewise.
22011         * modules/unictype/property-non-break-tests: Likewise.
22012         * modules/unictype/property-not-a-character-tests: Likewise.
22013         * modules/unictype/property-numeric-tests: Likewise.
22014         * modules/unictype/property-other-alphabetic-tests: Likewise.
22015         * modules/unictype/property-other-default-ignorable-code-point-tests:
22016         Likewise.
22017         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22018         * modules/unictype/property-other-id-continue-tests: Likewise.
22019         * modules/unictype/property-other-id-start-tests: Likewise.
22020         * modules/unictype/property-other-lowercase-tests: Likewise.
22021         * modules/unictype/property-other-math-tests: Likewise.
22022         * modules/unictype/property-other-uppercase-tests: Likewise.
22023         * modules/unictype/property-paired-punctuation-tests: Likewise.
22024         * modules/unictype/property-paragraph-separator-tests: Likewise.
22025         * modules/unictype/property-pattern-syntax-tests: Likewise.
22026         * modules/unictype/property-pattern-white-space-tests: Likewise.
22027         * modules/unictype/property-private-use-tests: Likewise.
22028         * modules/unictype/property-punctuation-tests: Likewise.
22029         * modules/unictype/property-quotation-mark-tests: Likewise.
22030         * modules/unictype/property-radical-tests: Likewise.
22031         * modules/unictype/property-sentence-terminal-tests: Likewise.
22032         * modules/unictype/property-soft-dotted-tests: Likewise.
22033         * modules/unictype/property-space-tests: Likewise.
22034         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22035         * modules/unictype/property-test-tests: Likewise.
22036         * modules/unictype/property-titlecase-tests: Likewise.
22037         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22038         * modules/unictype/property-unified-ideograph-tests: Likewise.
22039         * modules/unictype/property-uppercase-tests: Likewise.
22040         * modules/unictype/property-variation-selector-tests: Likewise.
22041         * modules/unictype/property-white-space-tests: Likewise.
22042         * modules/unictype/property-xid-continue-tests: Likewise.
22043         * modules/unictype/property-xid-start-tests: Likewise.
22044         * modules/unictype/property-zero-width-tests: Likewise.
22045         * modules/unictype/scripts-tests: Likewise.
22046         * modules/unictype/syntax-c-ident-tests: Likewise.
22047         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22048         * modules/unictype/syntax-java-ident-tests: Likewise.
22049         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22050         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22051         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22052         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22053         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22054         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22055         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22056         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22057         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22058         * modules/uniname/uniname-tests: Likewise.
22059         * modules/uninorm/canonical-decomposition-tests: Likewise.
22060         * modules/uninorm/compat-decomposition-tests: Likewise.
22061         * modules/uninorm/composition-tests: Likewise.
22062         * modules/uninorm/decomposing-form-tests: Likewise.
22063         * modules/uninorm/decomposition-tests: Likewise.
22064         * modules/uninorm/filter-tests: Likewise.
22065         * modules/uninorm/nfc-tests: Likewise.
22066         * modules/uninorm/nfd-tests: Likewise.
22067         * modules/uninorm/nfkc-tests: Likewise.
22068         * modules/uninorm/nfkd-tests: Likewise.
22069         * modules/uninorm/u8-normcmp-tests: Likewise.
22070         * modules/uninorm/u8-normcoll-tests: Likewise.
22071         * modules/uninorm/u16-normcmp-tests: Likewise.
22072         * modules/uninorm/u16-normcoll-tests: Likewise.
22073         * modules/uninorm/u32-normcmp-tests: Likewise.
22074         * modules/uninorm/u32-normcoll-tests: Likewise.
22075         * modules/unistdio/u8-asnprintf-tests: Likewise.
22076         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22077         * modules/unistdio/u8-vasprintf-tests: Likewise.
22078         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22079         * modules/unistdio/u8-vsprintf-tests: Likewise.
22080         * modules/unistdio/u16-asnprintf-tests: Likewise.
22081         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22082         * modules/unistdio/u16-vasprintf-tests: Likewise.
22083         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22084         * modules/unistdio/u16-vsprintf-tests: Likewise.
22085         * modules/unistdio/u32-asnprintf-tests: Likewise.
22086         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22087         * modules/unistdio/u32-vasprintf-tests: Likewise.
22088         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22089         * modules/unistdio/u32-vsprintf-tests: Likewise.
22090         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22091         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22092         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22093         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22094         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22095         * modules/unistr/u8-check-tests: Likewise.
22096         * modules/unistr/u8-chr-tests: Likewise.
22097         * modules/unistr/u8-cmp-tests: Likewise.
22098         * modules/unistr/u8-cmp2-tests: Likewise.
22099         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22100         * modules/unistr/u8-cpy-tests: Likewise.
22101         * modules/unistr/u8-mblen-tests: Likewise.
22102         * modules/unistr/u8-mbsnlen-tests: Likewise.
22103         * modules/unistr/u8-mbtouc-tests: Likewise.
22104         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22105         * modules/unistr/u8-mbtoucr-tests: Likewise.
22106         * modules/unistr/u8-move-tests: Likewise.
22107         * modules/unistr/u8-next-tests: Likewise.
22108         * modules/unistr/u8-prev-tests: Likewise.
22109         * modules/unistr/u8-set-tests: Likewise.
22110         * modules/unistr/u8-stpcpy-tests: Likewise.
22111         * modules/unistr/u8-stpncpy-tests: Likewise.
22112         * modules/unistr/u8-strcat-tests: Likewise.
22113         * modules/unistr/u8-strcmp-tests: Likewise.
22114         * modules/unistr/u8-strcoll-tests: Likewise.
22115         * modules/unistr/u8-strcpy-tests: Likewise.
22116         * modules/unistr/u8-strdup-tests: Likewise.
22117         * modules/unistr/u8-strlen-tests: Likewise.
22118         * modules/unistr/u8-strmblen-tests: Likewise.
22119         * modules/unistr/u8-strmbtouc-tests: Likewise.
22120         * modules/unistr/u8-strncat-tests: Likewise.
22121         * modules/unistr/u8-strncmp-tests: Likewise.
22122         * modules/unistr/u8-strncpy-tests: Likewise.
22123         * modules/unistr/u8-strnlen-tests: Likewise.
22124         * modules/unistr/u8-to-u16-tests: Likewise.
22125         * modules/unistr/u8-to-u32-tests: Likewise.
22126         * modules/unistr/u8-uctomb-tests: Likewise.
22127         * modules/unistr/u16-check-tests: Likewise.
22128         * modules/unistr/u16-chr-tests: Likewise.
22129         * modules/unistr/u16-cmp-tests: Likewise.
22130         * modules/unistr/u16-cmp2-tests: Likewise.
22131         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22132         * modules/unistr/u16-cpy-tests: Likewise.
22133         * modules/unistr/u16-mblen-tests: Likewise.
22134         * modules/unistr/u16-mbsnlen-tests: Likewise.
22135         * modules/unistr/u16-mbtouc-tests: Likewise.
22136         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22137         * modules/unistr/u16-mbtoucr-tests: Likewise.
22138         * modules/unistr/u16-move-tests: Likewise.
22139         * modules/unistr/u16-next-tests: Likewise.
22140         * modules/unistr/u16-prev-tests: Likewise.
22141         * modules/unistr/u16-set-tests: Likewise.
22142         * modules/unistr/u16-stpcpy-tests: Likewise.
22143         * modules/unistr/u16-stpncpy-tests: Likewise.
22144         * modules/unistr/u16-strcat-tests: Likewise.
22145         * modules/unistr/u16-strcmp-tests: Likewise.
22146         * modules/unistr/u16-strcoll-tests: Likewise.
22147         * modules/unistr/u16-strcpy-tests: Likewise.
22148         * modules/unistr/u16-strdup-tests: Likewise.
22149         * modules/unistr/u16-strlen-tests: Likewise.
22150         * modules/unistr/u16-strmblen-tests: Likewise.
22151         * modules/unistr/u16-strmbtouc-tests: Likewise.
22152         * modules/unistr/u16-strncat-tests: Likewise.
22153         * modules/unistr/u16-strncmp-tests: Likewise.
22154         * modules/unistr/u16-strncpy-tests: Likewise.
22155         * modules/unistr/u16-strnlen-tests: Likewise.
22156         * modules/unistr/u16-to-u32-tests: Likewise.
22157         * modules/unistr/u16-to-u8-tests: Likewise.
22158         * modules/unistr/u16-uctomb-tests: Likewise.
22159         * modules/unistr/u32-check-tests: Likewise.
22160         * modules/unistr/u32-chr-tests: Likewise.
22161         * modules/unistr/u32-cmp-tests: Likewise.
22162         * modules/unistr/u32-cmp2-tests: Likewise.
22163         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22164         * modules/unistr/u32-cpy-tests: Likewise.
22165         * modules/unistr/u32-mblen-tests: Likewise.
22166         * modules/unistr/u32-mbsnlen-tests: Likewise.
22167         * modules/unistr/u32-mbtouc-tests: Likewise.
22168         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22169         * modules/unistr/u32-mbtoucr-tests: Likewise.
22170         * modules/unistr/u32-move-tests: Likewise.
22171         * modules/unistr/u32-next-tests: Likewise.
22172         * modules/unistr/u32-prev-tests: Likewise.
22173         * modules/unistr/u32-set-tests: Likewise.
22174         * modules/unistr/u32-stpcpy-tests: Likewise.
22175         * modules/unistr/u32-stpncpy-tests: Likewise.
22176         * modules/unistr/u32-strcat-tests: Likewise.
22177         * modules/unistr/u32-strcmp-tests: Likewise.
22178         * modules/unistr/u32-strcoll-tests: Likewise.
22179         * modules/unistr/u32-strcpy-tests: Likewise.
22180         * modules/unistr/u32-strdup-tests: Likewise.
22181         * modules/unistr/u32-strlen-tests: Likewise.
22182         * modules/unistr/u32-strmblen-tests: Likewise.
22183         * modules/unistr/u32-strmbtouc-tests: Likewise.
22184         * modules/unistr/u32-strncat-tests: Likewise.
22185         * modules/unistr/u32-strncmp-tests: Likewise.
22186         * modules/unistr/u32-strncpy-tests: Likewise.
22187         * modules/unistr/u32-strnlen-tests: Likewise.
22188         * modules/unistr/u32-to-u16-tests: Likewise.
22189         * modules/unistr/u32-to-u8-tests: Likewise.
22190         * modules/unistr/u32-uctomb-tests: Likewise.
22191         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22192         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22193         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22194         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22195         * modules/uniwidth/u8-strwidth-tests: Likewise.
22196         * modules/uniwidth/u8-width-tests: Likewise.
22197         * modules/uniwidth/u16-strwidth-tests: Likewise.
22198         * modules/uniwidth/u16-width-tests: Likewise.
22199         * modules/uniwidth/u32-strwidth-tests: Likewise.
22200         * modules/uniwidth/u32-width-tests: Likewise.
22201         * modules/uniwidth/width-tests: Likewise.
22202
22203 2010-05-18  Richard Jones  <rjones@redhat.com>
22204
22205         doc: users.txt: list hivex
22206         * users.txt: Add hivex.
22207
22208 2010-05-18  Richard Jones  <rjones@redhat.com>
22209
22210         doc: users.txt: list febootstrap
22211         * users.txt: Add febootstrap.
22212
22213 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22214
22215         bootstrap: fix an error when gnulib is not used as a git submodule
22216         * build-aux/bootstrap (gnulib_path): If its length is zero then
22217         assign "gnulib" to it.
22218         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22219
22220 2010-05-16  Bruno Haible  <bruno@clisp.org>
22221
22222         Avoid autoconf warnings about AM_ICONV.
22223         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22224         2.64.
22225
22226 2010-05-16  Bruno Haible  <bruno@clisp.org>
22227
22228         absolute-header: Make the macro usable in more situations.
22229         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22230         from gl_ABSOLUTE_HEADER.
22231         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22232
22233 2010-05-16  James Youngman  <jay@gnu.org>
22234
22235         doc: update users.txt
22236         * users.txt: Add CSSC.
22237
22238 2010-05-16  Jim Meyering  <meyering@redhat.com>
22239
22240         init.sh: fix an error in the previous change; add more comments
22241         * tests/init.sh: Compare exit code in loop against 9, not 2.
22242         Patch by Bruno Haible.
22243         Make the two tests more similar by adding an empty "then" clause.
22244         Add comments.
22245
22246         init.sh: avoid unnecessary shell re-exec
22247         * tests/init.sh: Improve the re-exec-required check to first test the
22248         current shell.  If it passes the test, do not search for a shell that
22249         does pass, and do not re-exec.  This test is particularly contorted to
22250         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22251         of $(...) evokes a syntax error and causes immediate shell exit with
22252         status 2.  Bruno Haible reported that the re-exec made it impossible
22253         to single-step through any init.sh-using script.
22254
22255 2010-05-16  Bruno Haible  <bruno@clisp.org>
22256
22257         Fix collision between gnulib's and libintl's printf replacements.
22258         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22259         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22260         (printf): When using GNU C, map the __printf__ function to rpl_printf
22261         via __asm__. When not using GNU C, define rpl_printf instead of
22262         __printf__.
22263         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22264         commit.
22265         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22266         commit.
22267         * m4/asm-underscore.m4: New file.
22268         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22269         * modules/stdio (Files): Add m4/asm-underscore.m4.
22270         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22271         Reported by Ben Pfaff.
22272
22273 2010-05-16  Bruno Haible  <bruno@clisp.org>
22274
22275         verify: Avoid skipping the test on openSUSE 11.0.
22276         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22277
22278 2010-05-13  Bruno Haible  <bruno@clisp.org>
22279
22280         Avoid useless warnings from G++.
22281         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22282         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22283         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22284
22285 2010-05-11  Jim Meyering  <meyering@redhat.com>
22286
22287         maint.mk: tweak preceding change
22288         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22289         regexps tighter by anchoring at EOL, and make the new group "shy"
22290         for slightly decreased overhead.
22291
22292 2010-05-11  Eric Blake  <eblake@redhat.com>
22293
22294         maint.mk: gnulib doesn't guarantee NSIG
22295         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22296
22297 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22298
22299         test-pwrite.c: Remove unused variable declaration.
22300         * tests/test-pwrite.c (main): Remove read_buf declaration.
22301
22302         Remove useless test-pwrite.sh file.
22303         * tests/test-pwrite.sh: Delete file.
22304         * modules/pwrite-tests: Remove references.
22305         Reported by Bruno Haible.
22306
22307 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22308
22309         init.sh: fix a typo
22310         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22311
22312 2010-05-10  Jim Meyering  <meyering@redhat.com>
22313
22314         maint.mk: avoid using a temporary file in the always-defined-macros check
22315         * top/maint.mk (.re-defmac): Remove rule.
22316         (gl_trap_): Remove definition.
22317         (sc_prohibit_always-defined_macros): Rewrite not to create and
22318         depend on a temporary file.  Instead, depend on GNU grep's ability
22319         to read a list of regular expressions from stdin when given "-f -".
22320
22321 2010-05-09  Bruno Haible  <bruno@clisp.org>
22322
22323         Update to GNU gettext 0.18, part 1.
22324         * m4/gettext.m4: Update to GNU gettext 0.18.
22325         * m4/intl.m4: Likewise.
22326         * m4/po.m4: Likewise.
22327         * modules/gettext (Files): Add m4/fcntl-o.m4.
22328         (configure.ac): Require gettext infrastructure from version 0.18.
22329
22330 2010-05-09  Jim Meyering  <meyering@redhat.com>
22331
22332         init.sh: enable MALLOC_PERTURB_
22333         * tests/init.sh: Enable glibc's malloc-perturbing option.
22334
22335         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22336         With my recent change in init.sh from the two-line form:
22337             -#   : ${srcdir=.}
22338             -#   . "$srcdir/init.sh"; path_prepend_ .
22339             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22340         I noticed that using the one-line form would cause this test
22341         to fail with a false-positive, or to stop working altogether,
22342         depending on whether help-version changed or all the tests did.
22343         * top/maint.mk (_hv_regex): Remove this definition.
22344         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22345         (_hv_regex_strong): Use a stronger regex to check for conformance.
22346         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22347         Give a separate diagnostic for lack of conforming use.
22348
22349         maint.mk: prohibit definition of symbols defined by gnulib
22350         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22351         definition of symbols defined by gnulib.
22352
22353 2010-05-09  Bruno Haible  <bruno@clisp.org>
22354
22355         acl: Avoid test failure on Cygwin-hosted mingw.
22356         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22357
22358 2010-05-09  Bruno Haible  <bruno@clisp.org>
22359
22360         error: Use system's fcntl function.
22361         * lib/error.c (fcntl): Undefine.
22362
22363 2010-05-09  Jim Meyering  <meyering@redhat.com>
22364
22365         verify: adjust formatting to be more consistent
22366         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22367         argument-list '('s, and after one comma.
22368
22369 2010-05-09  Bruno Haible  <bruno@clisp.org>
22370
22371         error: More reliable output on mingw.
22372         * lib/error.c: Include <windows.h>.
22373         (is_open): New function.
22374         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22375         defined.
22376
22377 2010-05-09  Bruno Haible  <bruno@clisp.org>
22378
22379         vasnprintf: Fix syntax errors in libintl build on mingw.
22380         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22381         pad_ourselves and prec_ourselves after use.
22382
22383 2010-05-08  Bruno Haible  <bruno@clisp.org>
22384
22385         * lib/config.charset: Update comments for Cygwin 1.7.
22386         * lib/localcharset.c: Likewise.
22387
22388 2010-05-07  Jim Meyering  <meyering@redhat.com>
22389
22390         init.sh: improve comments
22391         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22392         . "${srcdir=.}/init.sh"; path_prepend_ .
22393         Add a note about path_prepend_ and the alternative of using
22394         TESTS_ENVIRONMENT.
22395
22396 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22397
22398         exclude: Unescape hashed patterns in wildcard mode.
22399         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22400         to the hash list.
22401         * tests/test-exclude8.sh: New test case.
22402         * modules/exclude-tests: Add new test.
22403
22404 2010-05-05  Eric Blake  <eblake@redhat.com>
22405
22406         verify: automate tests
22407         * modules/verify-tests: New module.
22408         * tests/test-verify.sh: New file.
22409         * tests/test-verify.c: Guard each negative test with a unique id.
22410         Also avoid warning about unused left hand of comma expressions.
22411
22412 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22413
22414         Further improvements to verify.h, suggested by Eric Blake.
22415         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22416         the GL_* versions, to avoid collision with OpenGL.
22417         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22418         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22419         than testing merely whether it's defined.
22420
22421         Modify verify.h to pacify gcc -Wredundant_decls.
22422         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22423         These use the prefix "GL_" since they're likely to be useful elsewhere.
22424         We may need to break them out into a different .h file.
22425         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22426         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22427         of verify_function__.
22428
22429 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22430
22431         Tests for module pwrite.
22432         * modules/pwrite-tests: New file.
22433         * tests/test-pwrite.sh: New file.
22434         * tests/test-pwrite.c: New file.
22435
22436         New module pwrite.
22437         * lib/unistd.in.h (pwrite): New declaration.
22438         * lib/pwrite.c: New file, from glibc with modifications.
22439         * m4/pwrite.m4: New file.
22440         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22441         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22442         REPLACE_PWRITE.
22443         * modules/pwrite: New file.
22444         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22445         REPLACE_PWRITE.
22446         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22447         * doc/posix-functions/pwrite.texi: Mention the new module.
22448
22449 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22450
22451         pread: Update documentation.
22452         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22453
22454 2010-05-04  Eric Blake  <eblake@redhat.com>
22455
22456         docs: update cygwin progress
22457         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22458         this bug.
22459         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22460         Added in cygwin 1.7.2.
22461         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22462         Likewise.
22463         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22464         Likewise.
22465         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22466         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22467         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22468         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22469         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22470         Mention nproc module.
22471         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22472         bug in cygwin 1.7.5 addition.
22473         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22474         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22475         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22476         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22477         1.7.5.
22478         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22479         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22480         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22481         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22482         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22483         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22484         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22485         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22486         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22487         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22488         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22489         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22490         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22491         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22492         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22493         Likewise.
22494         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22495         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22496         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22497         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22498         Likewise.
22499         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22500         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22501         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22502         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22503         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22504         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22505         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22506         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22507         Likewise.
22508         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22509         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22510         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22511         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22512         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22513         Likewise.
22514         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22515         Likewise.
22516         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22517         Likewise.
22518         * doc/glibc-functions/xdrrec_endofrecord.texi
22519         (xdrrec_endofrecord): Likewise.
22520         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22521         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22522         Likewise.
22523         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22524         Likewise.
22525
22526 2010-05-04  Jim Meyering  <meyering@redhat.com>
22527
22528         gendocs.sh: make its "-s FILE" option more useful
22529         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22530         $PACKAGE to reflect the probably-different basename of "FILE".
22531
22532 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22533
22534         bootstrap: don't ignore download_po_files failure
22535         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22536         failure.
22537
22538 2010-05-03  Jim Meyering  <meyering@redhat.com>
22539
22540         maint.mk: allow to pass options to gendocs.sh
22541         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22542         (gendocs_options_): New overridable variable.
22543
22544         gnu-web-doc-update: don't ignore configure or build failure
22545         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22546
22547         announce-gen: backslash-escape '@'s in --help output
22548         * build-aux/announce-gen: Fix syntax errors.
22549
22550         maint.mk, announce-gen: allow project-specific announcement mail headers
22551         * top/maint.mk (translation_project_): Define default.
22552         (announcement_Cc_, announcement_mail_headers_): Likewise.
22553         (announcement): Invoke announce-gen with new --mail-headers option.
22554         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22555
22556         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22557         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22558         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22559         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22560         line in the "err2" output file when running "make check" in verbose
22561         mode (i.e., with set -x enabled).
22562
22563 2010-05-03  Bruno Haible  <bruno@clisp.org>
22564
22565         wctob: Fix for weird platforms.
22566         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22567         argument value.
22568
22569 2010-05-03  Jim Meyering  <meyering@redhat.com>
22570
22571         maint.mk: prohibit unwarranted use of <strings.h>
22572         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22573         strings.h in a file that does not also use strcasecmp, strncasecmp,
22574         ffs or ffsll.
22575
22576         maint.mk: remove obsolete comments
22577         * top/maint.mk: Remove stale, commented-out rules.
22578
22579 2010-05-02  Bruno Haible  <bruno@clisp.org>
22580
22581         wcwidth: Declare also when it's aliased.
22582         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22583         macro.
22584
22585 2010-05-02  Bruno Haible  <bruno@clisp.org>
22586
22587         Fix regression from 2010-04-25.
22588         * gnulib-tool (func_modules_transitive_closure): Check the status of
22589         all modules, not only of the tests that are of the form foo-tests where
22590         foo is a module.
22591
22592 2010-05-02  Bruno Haible  <bruno@clisp.org>
22593
22594         wctob: Work around nasty Cygwin 1.7.2 bug.
22595         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22596         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22597
22598 2010-05-01  Bruno Haible  <bruno@clisp.org>
22599
22600         fpurge: Sharper test.
22601         * tests/test-fpurge.c (main): Add one more ftell check.
22602         * modules/fpurge-tests (Depends-on): Add ftell.
22603         Suggested by Eric Blake.
22604
22605 2010-05-01  Bruno Haible  <bruno@clisp.org>
22606
22607         ftello: Another test.
22608         * tests/test-ftello3.c: New file.
22609         * modules/ftello-tests (Files): Add it.
22610         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22611         MOSTLYCLEANFILES.
22612
22613         ftell: Another test.
22614         * tests/test-ftell3.c: New file.
22615         * modules/ftell-tests (Files): Add it.
22616         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22617         MOSTLYCLEANFILES.
22618
22619 2010-05-01  Bruno Haible  <bruno@clisp.org>
22620
22621         ftell, ftello: Work around Solaris bug.
22622         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22623         * lib/ftello.c: Include stdio-impl.h.
22624         (ftello): On Solaris, when _IOWRT is set, compute the result without
22625         looking at _IOREAD.
22626         * modules/ftello (Files): Add lib/stdio-impl.h.
22627         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22628         * doc/posix-functions/ftello.texi: Likewise.
22629         Reported by Eric Blake.
22630
22631 2010-05-01  Bruno Haible  <bruno@clisp.org>
22632
22633         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22634         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22635         the _IOWRT flag is also set.
22636
22637 2010-05-01  Bruno Haible  <bruno@clisp.org>
22638
22639         Fix doc about a HP-UX stdio bug.
22640         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22641         * doc/posix-functions/ftello.texi: Likewise.
22642
22643 2010-05-01  Bruno Haible  <bruno@clisp.org>
22644
22645         lseek test: Fix failure on Solaris.
22646         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22647         output.
22648
22649 2010-04-30  Jim Meyering  <meyering@redhat.com>
22650
22651         bootstrap: don't ignore failure to generate po*/Makevars
22652         * build-aux/bootstrap (with_gettext): Don't ignore failure
22653         to create po/Makevars or runtime-po/Makevars.
22654
22655 2010-04-29  Eric Blake  <eblake@redhat.com>
22656
22657         headers: relax license to LGPLv2+
22658         * modules/fcntl-h (License): Relax license.
22659         * modules/getopt-posix (License): Likewise.
22660         * modules/locale (License): Likewise.
22661         * modules/math (License): Likewise.
22662         * modules/pty (License): Likewise.
22663         * modules/sched (License): Likewise.
22664         * modules/search (License): Likewise.
22665         * modules/spawn (License): Likewise.
22666         * modules/stdarg (License): Likewise.
22667         * modules/sysexits (License): Likewise.
22668
22669 2010-04-29  Jim Meyering  <meyering@redhat.com>
22670
22671         inttypes: relax license to LGPLv2+
22672         * modules/inttypes (License): Relax license.
22673
22674 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22675
22676         * top/maint.mk (indent): Run twice to produce idempotent results.
22677
22678 2010-04-28  Bruno Haible  <bruno@clisp.org>
22679
22680         getdate: Generate getdate.c in the source directory.
22681         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22682         MOSTLYCLEANFILES.
22683         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22684
22685 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22686
22687         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22688         is not declared as a const *; avoid warnings in that case.
22689
22690 2010-04-28  Eric Blake  <eblake@redhat.com>
22691
22692         canonicalize-lgpl: avoid compiler warning
22693         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22694         declaration' / 'extraneous semicolon' warning with some compilers.
22695         Reported by Andreas Gruenbacher.
22696
22697 2010-04-28  Jim Meyering  <meyering@redhat.com>
22698
22699         init.sh: ensure a more reliable exit status when exiting via trap
22700         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22701         Inspired by patches from Dmitry V. Levin.
22702         Also trap on signal 3 (SIGQUIT).
22703
22704 2010-04-27  Bruno Haible  <bruno@clisp.org>
22705
22706         Update doc about utimes().
22707         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22708         'utimens' module.
22709         Reported by Andreas Gruenbacher <agruen@suse.de>.
22710
22711 2010-04-27  Eric Blake  <eblake@redhat.com>
22712
22713         full-read, full-write: relax license
22714         * modules/full-read (License): Drop to LGPLv2+.
22715         * modules/full-write (License): Likewise.
22716         * modules/safe-read (License): Likewise.
22717         * modules/safe-write (License): Likewise.
22718
22719         pthread: mention library for linking
22720         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22721
22722 2010-04-27  Jim Meyering  <meyering@redhat.com>
22723
22724         maint.mk: fix a bug introduced in last change
22725         * top/maint.mk (gl_assured_headers_): Now that all names are on
22726         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22727         is not anchored to end of word, it should be adequate.
22728
22729         maint.mk: avoid side-effect in latest syntax-check
22730         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22731         to run commands via $(shell...), and hence to incur cost only when
22732         the new rule is actually run.
22733
22734         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22735         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22736         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22737         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22738         (gl_assured_headers_, az_, AZ_): Define.
22739         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22740
22741 2010-04-26  Jim Meyering  <jim@meyering.net>
22742             Bruno Haible  <bruno@clisp.org>
22743
22744         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22745         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22746         Prompted by an exchange with Gilles Espinasse.
22747
22748 2010-04-26  Jim Meyering  <meyering@redhat.com>
22749
22750         git-version-gen: aesthetic tweak
22751         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22752         so that the command remains on a single line.
22753
22754 2010-04-26  Eric Blake  <eblake@redhat.com>
22755
22756         git-version-gen: allow use on EBCDIC hosts
22757         * build-aux/git-version-gen (dirty): Use literal rather than tying
22758         ourselves to ascii.
22759         Reported by Steve Goetze.
22760
22761 2010-04-25  Bruno Haible  <bruno@clisp.org>
22762
22763         netdb: Add support for GNULIB_POSIXCHECK.
22764         * lib/netdb.in.h: Include warn-on-use.h.
22765         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22766         functions are used when GNULIB_POSIXCHECK is defined and the
22767         getaddrinfo module is not in use.
22768         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22769         freeaddrinfo, gai_strerror, getnameinfo are declared.
22770         * modules/netdb (Depends-on): Add warn-on-use.
22771         (Makefile.am): Include warn-on-use.h in netdb.h.
22772
22773 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22774
22775         build: avoid "make check" failure without .git/ directory
22776         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22777         there is no .git/ directory.
22778
22779 2010-04-25  Bruno Haible  <bruno@clisp.org>
22780
22781         ptsname: Fix misuse of ttyname_r.
22782         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22783         of errno.
22784
22785 2010-04-25  Bruno Haible  <bruno@clisp.org>
22786
22787         ttyname_r: Make it work on Solaris 10.
22788         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22789         if the system function has the POSIX declaration. Test whether the
22790         function fails if the buffer is less than 128 bytes large.
22791         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22792         system's ttyname_r function. Provide a reasonably large buffer.
22793         * modules/ttyname_r (Depends-on): Add extensions.
22794         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22795
22796 2010-04-25  Bruno Haible  <bruno@clisp.org>
22797
22798         Use the 'extensions' module for some more functions on Solaris.
22799         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22800         module.
22801         * doc/posix-functions/ctime_r.texi: Likewise.
22802         * doc/posix-functions/getgrgid_r.texi: Likewise.
22803         * doc/posix-functions/getgrnam_r.texi: Likewise.
22804         * doc/posix-functions/getpwnam_r.texi: Likewise.
22805         * doc/posix-functions/getpwuid_r.texi: Likewise.
22806         * doc/posix-functions/readdir_r.texi: Likewise.
22807         * doc/posix-functions/sigwait.texi: Likewise.
22808         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22809         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22810
22811 2010-04-25  Bruno Haible  <bruno@clisp.org>
22812
22813         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22814         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22815         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22816         * lib/ttyname_r.c: Include <limits.h>.
22817         (ttyname_r): Define using the system's ttyname_r function, if it exists
22818         and not on Solaris.
22819         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22820         set.
22821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22822         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22823         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22824         Reported by Simon Josefsson.
22825
22826 2010-04-25  Bruno Haible  <bruno@clisp.org>
22827
22828         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22829         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22830         * doc/posix-functions/ctime_r.texi: Likewise.
22831         * doc/posix-functions/getgrgid_r.texi: Likewise.
22832         * doc/posix-functions/getgrnam_r.texi: Likewise.
22833         * doc/posix-functions/getlogin_r.texi: Likewise.
22834         * doc/posix-functions/getpwnam_r.texi: Likewise.
22835         * doc/posix-functions/getpwuid_r.texi: Likewise.
22836         * doc/posix-functions/readdir_r.texi: Likewise.
22837         * doc/posix-functions/sigwait.texi: Likewise.
22838         * doc/posix-functions/ttyname_r.texi: Likewise.
22839         Reported by Simon Josefsson.
22840
22841 2010-04-25  Bruno Haible  <bruno@clisp.org>
22842
22843         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22844         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22845         also to --create-testdir.
22846         (func_acceptable): Don't consider the status of *-tests modules here.
22847         (func_modules_transitive_closure): Consider it here, before including a
22848         test module.
22849         (func_import, func_create_testdir): Set inc_all_direct_tests,
22850         inc_all_indirect_tests.
22851         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22852         --create-testdir and --create-megatestdir.
22853
22854 2010-04-25  Bruno Haible  <bruno@clisp.org>
22855
22856         gnulib-tool: Add --without-*-tests options.
22857         * gnulib-tool (func_usage): Document the --without-*-tests options.
22858         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22859         excl_unportable_tests): New variables.
22860         Fail if they are specified with --import or --update.
22861         (func_acceptable): Respect the excl_*_tests variables.
22862         (func_import): Set the excl_*_tests variables to empty.
22863
22864 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22865             Bruno Haible  <bruno@clisp.org>
22866
22867         Work around a MacOS X 10.4 bug with openpty.
22868         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22869         * tests/test-openpty.c (main): Close the master side explicitly.
22870
22871 2010-04-25  Bruno Haible  <bruno@clisp.org>
22872
22873         strnlen: Fix a C++ test error on MacOS X and Solaris.
22874         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22875         the function is not declared.
22876         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22877         Simon Josefsson.
22878
22879 2010-04-24  Bruno Haible  <bruno@clisp.org>
22880
22881         Avoid a gcc warning.
22882         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22883         of correct type for %08lx directive.
22884         Reported by Eric Blake.
22885
22886 2010-04-24  Bruno Haible  <bruno@clisp.org>
22887
22888         vasnprintf: Correct errno value in case of out-of-memory.
22889         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22890         or sprintf. Use the errno value from SNPRINTF or sprintf.
22891         Reported by Ian Beckwith <ianb@erislabs.net>.
22892
22893 2010-04-24  Bruno Haible  <bruno@clisp.org>
22894
22895         ansi-c++-opt: Find correct compiler when cross-compiling.
22896         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22897         AC_CHECK_PROGS.
22898         Reported by Simon Josefsson.
22899
22900 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22901
22902         vc-list-files: Add support for subversion
22903         * build-aux/vc-list-files: Use "svn list" to generate the list of
22904         files controlled by subversion.
22905
22906 2010-04-23  Jim Meyering  <meyering@redhat.com>
22907
22908         vc-list-files tests: convert to use init.sh
22909         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22910         path_prepend_.
22911         Use Exit, not exit.
22912         Use skip_ rather than open coding it.
22913         Remove trap set-up and compare definitions.
22914         * tests/test-vc-list-files-git.sh: Likewise.
22915         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22916
22917 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22918
22919         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22920         backup files.
22921
22922 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22923
22924         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22925
22926 2010-04-20  Eric Blake  <eblake@redhat.com>
22927
22928         tests: be robust to ignored SIGPIPE
22929         * tests/test-select-in.sh: Consume all output.
22930         * tests/test-lseek.sh: Check correct exit status, while avoiding
22931         EPIPE.
22932
22933 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22934             Bruno Haible  <bruno@clisp.org>
22935
22936         visibility: Don't use -fvisibility if it leads to a warning.
22937         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22938         yes, don't pretend that visibility works if it leads to a warning.
22939         Reported by Mike Gran <spk121@yahoo.com>.
22940
22941 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22942
22943         * build-aux/bootstrap: Use "git -h" for testing for supported options
22944         instead of "git --help".  The short-form option only shows a summary,
22945         and doesn't layout the full man page.  Grep for the full option name
22946         in the summary, too.
22947
22948 2010-04-19  Bruno Haible  <bruno@clisp.org>
22949
22950         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22951         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22952         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22953         mention of RELOCATABLE_STRIP.
22954         Reported by Sylvain Beucler <beuc@beuc.net>.
22955
22956 2010-04-19  Bruno Haible  <bruno@clisp.org>
22957
22958         * lib/diffseq.h: Fix typo in comment.
22959         Reported by Eric Blake.
22960
22961 2010-04-19  Bruno Haible  <bruno@clisp.org>
22962
22963         ioctl: Move autoconf macro to a .m4 file.
22964         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22965         * modules/ioctl (Files): Add it.
22966         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22967         Reported by Ian Beckwith <ianb@erislabs.net>.
22968
22969 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22970             Bruno Haible  <bruno@clisp.org>
22971
22972         diffseq: Accommodate use-case with abstract arrays.
22973         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22974         is not defined.
22975         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22976         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22977
22978 2010-04-18  Bruno Haible  <bruno@clisp.org>
22979
22980         * doc/posix-headers/stdbool.texi: More precise wording.
22981
22982 2010-04-17  Jim Meyering  <meyering@redhat.com>
22983
22984         maint.mk: use gnu-style indentation in an embedded perl script
22985         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22986         Rename variable: s/two/last_two_bytes/
22987
22988 2010-04-16  Eric Blake  <eblake@redhat.com>
22989
22990         test-stdbool: skip test that fails with Solaris CC
22991         * tests/test-stdbool.c (f): Skip test that causes compilation
22992         error under buggy C++ compiler.
22993         * lib/stdbool.in.h: Document the limitation.
22994         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22995
22996         setenv: allow compilation with C++
22997         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22998         register keyword.
22999
23000         stdint: allow test to pass with C++
23001         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23002
23003         getopt: allow compilation with C++
23004         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23005         struct.
23006         * lib/getopt.c (_getopt_internal_r): Use correct type.
23007         Reported by Dagobert Michelson, via Joel E. Denny.
23008
23009 2010-04-16  Bruno Haible  <bruno@clisp.org>
23010
23011         Override netdb.h always.
23012         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23013         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23014         Reported by Ludovic Courtès <ludo@gnu.org>.
23015
23016 2010-04-15  Bruno Haible  <bruno@clisp.org>
23017
23018         openpty: Fix mistake from 2010-03-21.
23019         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23020         Reported by Simon Josefsson.
23021
23022 2010-04-15  Eric Blake  <eblake@redhat.com>
23023
23024         test-forkpty: fix expected signature
23025         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23026         Reported by Simon Josefsson.
23027
23028 2010-04-15  Jim Meyering  <meyering@redhat.com>
23029
23030         maint.mk: texinfo_suffix_re_: correct the default regexp
23031         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23032
23033         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23034         make it configurable via texinfo_suffix_re_.
23035
23036 2010-04-14  Eric Blake  <eblake@redhat.com>
23037
23038         strtok_r: relax license to LGPLv2+
23039         * modules/strtok_r (License): Relax license.
23040         Reported by Matthias Bolte.
23041
23042 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23043
23044         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23045         version 1.4.4 by default instead of requiring the libgcrypt
23046         version used during build.  This makes it possible to use the
23047         application with older but still binary compatible libgcrypt
23048         versions.
23049
23050 2010-04-13  Eric Blake  <eblake@redhat.com>
23051
23052         getopt-gnu: match recent glibc fixes and posix ruling
23053         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23054         '+' handling, when requesting extensions.
23055         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23056         'W;' handling.
23057         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23058         * doc/posix-functions/getopt.texi (getopt): Document this.
23059         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23060         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23061         Likewise.
23062
23063         getopt: merge bug fixes from glibc
23064         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23065         diagnostics.  Honor '+:' correctly.  Reject ';'.
23066
23067         getopt-posix: detect MacOS bug
23068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23069         optind when missing a required argument.
23070         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23071         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23072         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23073         Likewise.
23074
23075         getopt-posix: avoid spurious failure on Solaris
23076         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23077         an indicator that setting optind=1 is sufficient for reset.
23078
23079         getopt-posix: avoid spurious failure on FreeBSD
23080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23081         in POSIX mode, since the m4 test uses it.
23082
23083         gnulib-tool: silence warning on BSD sh
23084         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23085
23086 2010-04-13  Jim Meyering  <meyering@redhat.com>
23087
23088         doc: users.txt: GNU patch now uses gnulib
23089         * users.txt: Add patch.
23090
23091 2010-04-12  Jim Meyering  <meyering@redhat.com>
23092
23093         maint.mk: generate more concise timing data for syntax-check rules
23094         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23095         " done" from each line that reports a syntax-check test duration.
23096
23097 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23098
23099         git-version-gen: use "git update-index..." rather than "git status"
23100         * build-aux/git-version-gen: Use git update-index --refresh, not
23101         "git status".  With some versions of git, "git status" would fail
23102         to update the index and result in an unwarranted "-dirty" suffix.
23103
23104 2010-04-11  Jim Meyering  <meyering@redhat.com>
23105
23106         openat: correct formatting (no semantic change)
23107         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23108         Suggested by Bruno Haible.
23109
23110 2010-04-11  Bruno Haible  <bruno@clisp.org>
23111
23112         Stricter declaration checking in testdirs.
23113         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23114         If for_tests is true, augment AM_CPPFLAGS to define
23115         GNULIB_STRICT_CHECKING.
23116         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23117         GNULIB_STRICT_CHECKING is defined, verify that the function is
23118         declared.
23119
23120 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23121             Bruno Haible  <bruno@clisp.org>
23122
23123         libunistring: Improve configure output.
23124         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23125         Don't say "consider installing GNU libunistring" when checking again
23126         with libiconv.
23127
23128 2010-04-11  Bruno Haible  <bruno@clisp.org>
23129
23130         libunistring: Correct value of $LTLIBUNISTRING.
23131         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23132         correct the value of $LTLIBUNISTRING.
23133
23134 2010-04-11  Bruno Haible  <bruno@clisp.org>
23135
23136         havelib: Add static libraries to LIBS in the right order.
23137         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23138         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23139
23140 2010-04-11  Bruno Haible  <bruno@clisp.org>
23141
23142         libunistring: Detect libunistring also when it depends on libiconv.
23143         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23144         the second AC_LIB_HAVE_LINKFLAGS invocation.
23145
23146 2010-04-11  James Youngman  <jay@gnu.org>
23147
23148         close-stream: declare local scalars to be "const"
23149         * lib/close-stream.c (close_stream): Make boolean variables const
23150         to document the fact that we set but do not change them.
23151
23152 2010-04-11  Bruno Haible  <bruno@clisp.org>
23153
23154         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23155
23156 2010-04-11  Jim Meyering  <meyering@redhat.com>
23157
23158         maint.mk: don't include dist-check.mk
23159         * top/maint.mk: Remove bogus include directive.
23160
23161         maint.mk: improve empty-line-at-EOF check
23162         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23163         solution, rather than tail+Perl-based one.  The latter would read
23164         a few kilobytes from the end of each file, and did not handle empty
23165         files properly.
23166
23167         maint.mk: print the elapsed time for each syntax-check rule
23168         * top/maint.mk (sc_m_rules_): Save start time in a file.
23169         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23170         (local-check): Interpose the .z rules
23171
23172 2010-04-11  Jim Meyering  <meyering@redhat.com>
23173
23174         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23175         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23176         empty file with one that ends in an empty line.
23177
23178 2010-04-10  Bruno Haible  <bruno@clisp.org>
23179
23180         mkdir: Make it work on mingw64.
23181         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23182         * lib/mkdir.c: Update comment.
23183         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23184
23185 2010-04-10  Bruno Haible  <bruno@clisp.org>
23186
23187         Don't override improved macro from newer autoconf.
23188         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23189         autoconf >= 2.62.
23190         Reported by Joel E. Denny <jdenny@clemson.edu>.
23191
23192 2010-04-10  Jim Meyering  <meyering@redhat.com>
23193
23194         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23195         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23196
23197         maint.mk: correct a diagnostic
23198         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23199         in diagnostic; now use $prohibit.
23200
23201 2010-04-10  Bruno Haible  <address@hidden>
23202
23203         fchownat: Fix a C++ test error on Solaris 8.
23204         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23205         the function does not exist.
23206
23207 2010-04-10  Bruno Haible  <bruno@clisp.org>
23208
23209         vasnprintf: Add more tests.
23210         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23211         (test_function): Test converting an invalid wide string.
23212
23213         vasnprintf: Correct handling of unconvertible wide string arguments.
23214         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23215         VASNPRINTF.
23216         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23217         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23218         smaller than the expected maximum need for the directive. Set errno to
23219         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23220         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23222         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23223         * modules/vasnprintf (Files): Add m4/printf.m4.
23224         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23225
23226 2010-04-10  Bruno Haible  <bruno@clisp.org>
23227
23228         vasnprintf: Fix crash in %ls directive.
23229         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23230         string is passed as argument to %ls, with no precision and no width.
23231         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23232
23233 2010-04-10  Bruno Haible  <bruno@clisp.org>
23234
23235         vasnprintf: Fix multiple test failures on mingw.
23236         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23237         _snprintf, or snwprintf, not _snwprintf.
23238
23239 2010-04-10  Bruno Haible  <bruno@clisp.org>
23240
23241         write: Fix a C++ test error on mingw.
23242         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23243
23244 2010-04-10  Bruno Haible  <bruno@clisp.org>
23245
23246         vasnprintf test: Reduce code duplication.
23247         * tests/test-vasnprintf.c (test_function): New function, extracted from
23248         test_vasnprintf.
23249         (test_vasnprintf, test_asnprintf): Invoke it.
23250
23251 2010-04-10  Bruno Haible  <bruno@clisp.org>
23252
23253         strnlen: Fix warning in C++ mode on MacOS X.
23254         * lib/string.in.h (strnlen): Use the modern idiom.
23255         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23256         defining strnlen as a macro already in <config.h>.
23257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23258         REPLACE_STRNLEN.
23259         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23260         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23261
23262 2010-04-08  James Youngman  <jay@gnu.org>
23263
23264         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23265         the example.
23266
23267 2010-04-09  Jim Meyering  <meyering@redhat.com>
23268
23269         maint.mk: print better diagnostic when there is no $(_hv_file)
23270         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23271         announce that when $(_hv_file) (aka help-version) does not exist.
23272
23273         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23274         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23275         not try to interpret its random input bytes.  Jarno Rajahalme reported
23276         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23277         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23278         (mktempd_): Likewise, just in case.
23279
23280         ftruncate: add two years to projected module removal date: 2012
23281         * m4/ftruncate.m4: Adjust comments.
23282
23283         ftruncate: mark module as obsolete; even MinGW provides it, now
23284         * modules/ftruncate (Status): Obsolete.
23285         (Notice): Say that.
23286         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23287         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23288
23289 2010-04-08  Bruno Haible  <bruno@clisp.org>
23290
23291         Fix side effects from tests-related modules.
23292         * modules/dprintf-posix (Comment): New section.
23293         * modules/fprintf-posix (Comment): Likewise.
23294         * modules/obstack-printf-posix (Comment): Likewise.
23295         * modules/printf-posix (Comment): Likewise.
23296         * modules/snprintf-posix (Comment): Likewise.
23297         * modules/sprintf-posix (Comment): Likewise.
23298         * modules/vasnprintf-posix (Comment): Likewise.
23299         * modules/vasprintf-posix (Comment): Likewise.
23300         * modules/vdprintf-posix (Comment): Likewise.
23301         * modules/vfprintf-posix (Comment): Likewise.
23302         * modules/vprintf-posix (Comment): Likewise.
23303         * modules/vsnprintf-posix (Comment): Likewise.
23304         * modules/vsprintf-posix (Comment): Likewise.
23305         * modules/xprintf-posix (Comment): Likewise.
23306         * modules/xvasprintf-posix (Comment): Likewise.
23307         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23308         * modules/floorf-tests (Depends-on): Likewise.
23309         * modules/round-tests (Depends-on): Likewise.
23310         * modules/roundf-tests (Depends-on): Likewise.
23311         * modules/trunc-tests (Depends-on): Likewise.
23312         * modules/truncf-tests (Depends-on): Likewise.
23313         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23314         'fprintf-posix' module is not present.
23315         * tests/test-floorf2.c (check): Likewise.
23316         * tests/test-trunc2.c (check): Likewise.
23317         * tests/test-truncf2.c (check): Likewise.
23318         * tests/test-round2.c (equal): Likewise.
23319         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23320
23321 2010-04-07  Karl Berry  <karl@gnu.org>
23322
23323         * config/srclist.txt,
23324         * config/srclistvars.sh,
23325         * config/srclist-update: doc fixes.
23326
23327 2010-04-07  Jim Meyering  <meyering@redhat.com>
23328
23329         maint.mk: add a PATH crosschecking syntax-check rule
23330         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23331         Useful if you use a test like the one in help-version (coreutils,
23332         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23333         printed by prog --version.
23334
23335 2010-04-06  Bruno Haible  <bruno@clisp.org>
23336
23337         Fix link error on mingw.
23338         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23339         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23340
23341 2010-04-06  Bruno Haible  <bruno@clisp.org>
23342
23343         Assume rmdir exists.
23344         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23345
23346 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23347
23348         doc: update users.txt
23349         * users.txt: Add gcal.
23350
23351 2010-04-06  Jim Meyering  <meyering@redhat.com>
23352
23353         init.sh: simply unset TMPDIR rather than risking env -i
23354         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23355         although it probably works fine on all Unix-based systems, some
23356         systems (Cygwin?) cannot tolerate a totally cleared environment.
23357         Suggestion from Eric Blake.
23358
23359 2010-04-06  Jim Meyering  <meyering@redhat.com>
23360
23361         init.sh: portability fix: use env's POSIX-specified -i option not -u
23362         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23363         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23364
23365 2010-04-05  Bruno Haible  <bruno@clisp.org>
23366
23367         btowc: Work around Cygwin 1.7.2 bug.
23368         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23369         does not map NUL to 0.
23370         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23371
23372 2010-04-05  Bruno Haible  <bruno@clisp.org>
23373
23374         Make the multithread modules work on Cygwin 1.7.2.
23375         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23376         imported symbols can be declared weak, so that it returns "no" on
23377         Cygwin 1.7.2.
23378
23379 2010-04-05  Bruno Haible  <bruno@clisp.org>
23380
23381         Use the module 'strncat'.
23382         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23383
23384         Tests for module 'strncat'.
23385         * modules/strncat-tests: New file.
23386         * tests/test-strncat.c: New file.
23387
23388         New module 'strncat'.
23389         * lib/string.in.h (strncat): New declaration.
23390         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23391         * m4/strncat.m4: New file, based on m4/memchr.m4.
23392         * modules/strncat: New file.
23393         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23394         is declared.
23395         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23396         REPLACE_STRNCAT.
23397         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23398         REPLACE_STRNCAT.
23399         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23400         module.
23401         * tests/test-string-c++.cc: Check signature of strncat.
23402
23403 2010-04-05  Jim Meyering  <meyering@redhat.com>
23404
23405         xstrtoumax-tests: convert to use init.sh
23406         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23407         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23408         Use Exit, not exit.
23409         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23410
23411         xstrtoimax-tests: convert to use init.sh
23412         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23413         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23414         Use Exit, not exit.
23415         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23416
23417 2010-04-05  Bruno Haible  <bruno@clisp.org>
23418
23419         sys_socket: Avoid #define replacements in C++ mode.
23420         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23421         warning to the function if possible, rather than #defining the symbol
23422         to a dysfunctional alias.
23423
23424 2010-04-05  Bruno Haible  <bruno@clisp.org>
23425
23426         fseeko: Fix C++ test error on mingw.
23427         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23428         gl_FUNC_FSEEKO.
23429         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23430         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23431         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23432         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23433
23434 2010-04-05  Bruno Haible  <bruno@clisp.org>
23435
23436         duplocale: Improve test output.
23437         * tests/test-duplocale.c (main): Print reason for skipped test.
23438
23439 2010-04-05  Bruno Haible  <bruno@clisp.org>
23440
23441         Assume rmdir exists.
23442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23443         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23444
23445 2010-04-05  Bruno Haible  <bruno@clisp.org>
23446
23447         Fix link error on Solaris 8 with cc.
23448         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23449
23450 2010-04-05  Bruno Haible  <bruno@clisp.org>
23451
23452         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23453         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23454
23455 2010-04-05  Bruno Haible  <bruno@clisp.org>
23456
23457         vasprintf: Update documentation.
23458         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23459
23460 2010-04-05  Bruno Haible  <bruno@clisp.org>
23461
23462         ptsname: Improve test.
23463         * tests/test-ptsname.c (main): Also try the various master names of BSD
23464         systems.
23465
23466 2010-04-05  Bruno Haible  <bruno@clisp.org>
23467
23468         memchr: Avoid a possible C++ test error.
23469         * lib/string.in.h (memchr): Provide declaration if function is missing.
23470         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23471         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23473         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23474
23475 2010-04-05  Bruno Haible  <bruno@clisp.org>
23476
23477         strtok_r: Improve idiom.
23478         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23479         AC_LIBOBJ is used.
23480
23481 2010-04-05  Bruno Haible  <bruno@clisp.org>
23482
23483         strdup: Improve idiom.
23484         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23485         AC_LIBOBJ is used.
23486         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23487         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23488         when AC_LIBOBJ is used.
23489
23490 2010-04-05  Bruno Haible  <bruno@clisp.org>
23491
23492         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23493         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23494         don't set REPLACE_MBSINIT to 1.
23495         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23496         don't set REPLACE_MBRTOWC to 1.
23497         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23498         exist, don't set REPLACE_MBSRTOWCS to 1.
23499         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23500         exist, don't set REPLACE_MBSNRTOWCS to 1.
23501         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23502         don't set REPLACE_WCRTOMB to 1.
23503         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23504         exist, don't set REPLACE_WCSRTOMBS to 1.
23505         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23506         exist, don't set REPLACE_WCSNRTOMBS to 1.
23507
23508 2010-04-05  Bruno Haible  <bruno@clisp.org>
23509
23510         ldexpl: Improve idiom.
23511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23512         make sure to set HAVE_DECL_LDEXPL to 0.
23513
23514 2010-04-05  Jim Meyering  <meyering@redhat.com>
23515
23516         xstrtol-tests: convert to use init.sh
23517         * modules/xstrtol-tests (Files): Add tests/init.sh.
23518         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23519         Use Exit, not exit.
23520         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23521
23522         atexit-tests: convert to use init.sh
23523         * modules/atexit-tests (Files): Add tests/init.sh.
23524         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23525         Use Exit, not exit.
23526         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23527
23528         init.sh: fix typo
23529         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23530
23531         init.sh: make it easier for a test script to write to the tty, ...
23532         when using automake's parallel-tests mode.
23533         * tests/init.sh (stderr_fileno_): Define overridable variable.
23534         (warn_): New function, to use it.
23535         (fail_, skip_, framework_failure_): Use warn_.
23536
23537 2010-04-04  Bruno Haible  <bruno@clisp.org>
23538
23539         btowc: Avoid warning.
23540         * lib/btowc.c: Include <stdlib.h>.
23541         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23542
23543 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23544             Bruno Haible  <bruno@clisp.org>
23545
23546         wchar: Port to NetBSD 1.5.
23547         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23548         * lib/wctype.in.h (WEOF): Likewise.
23549
23550 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23551             Bruno Haible  <bruno@clisp.org>
23552
23553         Port extended stdio to NetBSD 1.5.
23554         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23555         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23556         older.
23557
23558 2010-04-04  Bruno Haible  <bruno@clisp.org>
23559
23560         string: Remove unused substitution.
23561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23562         HAVE_DECL_STRERROR.
23563         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23564
23565 2010-04-04  Bruno Haible  <bruno@clisp.org>
23566
23567         strtod: Avoid a possible C++ test error.
23568         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23569         set REPLACE_STRTOD.
23570
23571 2010-04-04  Bruno Haible  <bruno@clisp.org>
23572
23573         strerror: Update documentation.
23574         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23575
23576 2010-04-04  Bruno Haible  <bruno@clisp.org>
23577
23578         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23579         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23580         _GL_CXXALIAS_SYS_CAST.
23581
23582 2010-04-04  Bruno Haible  <bruno@clisp.org>
23583
23584         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23585         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23586         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23587         REPLACE_FREXPL to 1.
23588         * doc/posix-functions/frexpl.texi: Update documentation.
23589
23590 2010-04-04  Bruno Haible  <bruno@clisp.org>
23591
23592         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23593         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23594
23595 2010-04-04  Bruno Haible  <bruno@clisp.org>
23596
23597         Implement nanosleep for native Windows.
23598         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23599
23600 2010-04-04  Bruno Haible  <bruno@clisp.org>
23601
23602         math: Fix some C++ test errors on Solaris 8.
23603         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23604
23605 2010-04-04  Bruno Haible  <bruno@clisp.org>
23606
23607         math: Fix some C++ test errors on Cygwin.
23608         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23609         truncl): Provide declaration if the system does not have it.
23610         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23611         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23612         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23613         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23614         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23615         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23616         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23617         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23618         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23619         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23620         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23621         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23622         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23623         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23624         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23625         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23627         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23628         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23629         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23630         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23631         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23632
23633 2010-04-04  Bruno Haible  <bruno@clisp.org>
23634
23635         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23636         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23637         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23638         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23639         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23640         * m4/isinf.m4 (gl_ISINF): Likewise.
23641         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23642
23643 2010-04-04  Bruno Haible  <bruno@clisp.org>
23644
23645         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23646         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23647
23648 2010-04-04  Bruno Haible  <bruno@clisp.org>
23649
23650         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23651         * modules/tmpfile (configure.ac): Update.
23652
23653         tmpfile: Fix C++ test error on mingw.
23654         * lib/stdio.in.h (tmpfile): New declaration.
23655         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23656         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23657         * modules/tmpfile (Depends-on): Add stdio.
23658         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23659         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23660         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23661         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23662         REPLACE_TMPFILE.
23663         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23664
23665 2010-04-04  Bruno Haible  <bruno@clisp.org>
23666
23667         ioctl: Fix C++ test error on mingw.
23668         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23669         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23670         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23671
23672 2010-04-03  Bruno Haible  <bruno@clisp.org>
23673
23674         wcwidth: Fix C++ test error on mingw.
23675         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23677         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23678
23679 2010-04-03  Bruno Haible  <bruno@clisp.org>
23680
23681         nanosleep: Fix C++ test error on mingw.
23682         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23683         * lib/time.in.h (nanosleep): Use modern idiom.
23684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23685         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23686         REPLACE_NANOSLEEP to 1.
23687         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23688         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23689
23690 2010-04-03  Bruno Haible  <bruno@clisp.org>
23691
23692         strptime: Fix C++ test error on mingw.
23693         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23694         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23695         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23696         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23697         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23698         not REPLACE_STRPTIME.
23699         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23700         REPLACE_STRPTIME.
23701
23702 2010-04-03  Bruno Haible  <bruno@clisp.org>
23703
23704         timegm: Fix C++ test error on mingw.
23705         * lib/time.in.h (timegm): Use modern idiom.
23706         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23707         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23708         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23709         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23710
23711 2010-04-03  Bruno Haible  <bruno@clisp.org>
23712
23713         timegm: Assume declaration if function exists.
23714         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23715         if it exists. Don't clobber ac_cv_func_timegm.
23716
23717 2010-04-03  Bruno Haible  <bruno@clisp.org>
23718
23719         time_r: Fix C++ test error on mingw.
23720         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23721         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23722         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23723         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23724         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23725
23726 2010-04-03  Bruno Haible  <bruno@clisp.org>
23727
23728         time_r: Minor updates.
23729         * modules/time_r (Description): Mention the provided functions.
23730         * lib/time_r.c: Don't include <string.h>.
23731         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23732         * doc/posix-functions/localtime_r.texi: Likewise.
23733
23734 2010-04-03  Bruno Haible  <bruno@clisp.org>
23735
23736         time: Fix regression introduced on 2010-03-08.
23737         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23738         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23739
23740 2010-04-03  Jim Meyering  <meyering@redhat.com>
23741
23742         maint.mk: don't silently disable project-specific syntax-check rules
23743         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23744         that they need to convert their project-specific syntax-check rules
23745         to use the new _sc_search_regexp.
23746
23747 2010-04-03  Bruno Haible  <bruno@clisp.org>
23748
23749         fchdir: Fix regression introduced on 2010-03-08.
23750         * lib/unistd.in.h (fchdir): Fix declaration.
23751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23753         REPLACE_FCHDIR.
23754         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23755         REPLACE_FCHDIR.
23756
23757 2010-04-03  Bruno Haible  <bruno@clisp.org>
23758
23759         getpagesize: Fix C++ test error on mingw.
23760         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23761         system does not declare the function.
23762         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23763         declared.
23764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23765         HAVE_DECL_GETPAGESIZE.
23766         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23767
23768 2010-04-03  Bruno Haible  <bruno@clisp.org>
23769
23770         stdio: Make C++ tests work on mingw.
23771         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23772         does not declare the function.
23773
23774 2010-04-03  Bruno Haible  <bruno@clisp.org>
23775
23776         ftello: Fix C++ test error on mingw.
23777         * lib/stdio.in.h (ftello): Use modern idiom.
23778         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23779         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23780         is missing and that it needs to be replaced.
23781         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23783         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23784
23785 2010-04-03  Bruno Haible  <bruno@clisp.org>
23786
23787         fseeko: Fix C++ test error on mingw.
23788         * lib/stdio.in.h (fseeko): Use modern idiom.
23789         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23790         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23791         is missing and that it needs to be replaced.
23792         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23794         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23795
23796 2010-04-03  Bruno Haible  <bruno@clisp.org>
23797
23798         mkstemp: Fix C++ test error on mingw.
23799         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23800         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23801         function is missing and that it needs to be replaced.
23802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23803         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23804
23805 2010-04-03  Bruno Haible  <bruno@clisp.org>
23806
23807         stpncpy: Fix C++ test error on mingw.
23808         * lib/string.in.h (stpncpy): Use modern idiom.
23809         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23810         function is missing and that it needs to be replaced.
23811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23812         REPLACE_STPNCPY.
23813         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23814
23815 2010-04-03  Bruno Haible  <bruno@clisp.org>
23816
23817         sys_stat: Fix C++ test error on mingw.
23818         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23819         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23820
23821 2010-04-03  Bruno Haible  <bruno@clisp.org>
23822
23823         pty: Update doc.
23824         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23825
23826 2010-04-03  Bruno Haible  <bruno@clisp.org>
23827
23828         unistd: Fix C++ test error on mingw.
23829         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23830
23831 2010-04-03  Bruno Haible  <bruno@clisp.org>
23832
23833         Update doc regarding mingw.
23834         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23835         * doc/glibc-functions/login_tty.texi: Likewise.
23836         * doc/glibc-functions/forkpty.texi: Likewise.
23837
23838 2010-04-03  Bruno Haible  <bruno@clisp.org>
23839
23840         stdlib: Avoid compilation failure of c-strtold on mingw.
23841         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23842
23843 2010-04-03  Bruno Haible  <bruno@clisp.org>
23844
23845         locale: Make C++ tests work on Cygwin and mingw.
23846         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23847         cannot provide the function.
23848         Reported by Simon Josefsson.
23849
23850 2010-04-03  Bruno Haible  <bruno@clisp.org>
23851
23852         localename: Port to MacOS X 10.6.
23853         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23854         memory layout of the locales in MacOS X 10.6 as well.
23855         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23856
23857 2010-04-02  Bruno Haible  <bruno@clisp.org>
23858
23859         gnulib-tool: Ensure that long-running tests are executed last.
23860         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23861         running tests after the one for the other tests.
23862
23863 2010-04-02  Bruno Haible  <bruno@clisp.org>
23864
23865         gnulib-tool: Ensure the tests in the main directory are executed first.
23866         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23867         start with the current directory.
23868
23869 2010-04-02  Bruno Haible  <bruno@clisp.org>
23870
23871         Tests for module 'havelib', moved here from GNU gettext.
23872         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23873         modifications.
23874         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23875         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23876         with modifications.
23877         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23878         modifications.
23879         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23880         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23881         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23882         with modifications.
23883         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23884         with modifications.
23885         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23886         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23887         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23888         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23889         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23890         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23891         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23892         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23893         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23894         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23895         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23896         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23897         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23898         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23899         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23900         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23901         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23902         with modifications.
23903         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23904         with modifications.
23905         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23906         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23907         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23908         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23909         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23910         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23911         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23912         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23913         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23914         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23915         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23916         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23917         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23918         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23919         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23920         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23921         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23922         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23923         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23924         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23925         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23926         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23927         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23928         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23929         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23930         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23931         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23932         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23933         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23934         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23935         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23936         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23937         * tests/havelib/rpathx/rpathx.c: New file, from
23938         gettext/autoconf-lib-link.
23939         * tests/havelib/rpathx/Makefile.am: New file, from
23940         gettext/autoconf-lib-link.
23941         * tests/havelib/rpathx/configure.ac: New file, from
23942         gettext/autoconf-lib-link with modifications.
23943         * tests/havelib/rpathy/rpathy.c: New file, from
23944         gettext/autoconf-lib-link.
23945         * tests/havelib/rpathy/Makefile.am: New file, from
23946         gettext/autoconf-lib-link.
23947         * tests/havelib/rpathy/configure.ac: New file, from
23948         gettext/autoconf-lib-link with modifications.
23949         * tests/havelib/rpathz/rpathz.c: New file, from
23950         gettext/autoconf-lib-link.
23951         * tests/havelib/rpathz/Makefile.am: New file, from
23952         gettext/autoconf-lib-link.
23953         * tests/havelib/rpathz/configure.ac: New file, from
23954         gettext/autoconf-lib-link with modifications.
23955         * tests/havelib/rpathlx/usex.c: New file, from
23956         gettext/autoconf-lib-link.
23957         * tests/havelib/rpathlx/Makefile.am: New file, from
23958         gettext/autoconf-lib-link.
23959         * tests/havelib/rpathlx/configure.ac: New file, from
23960         gettext/autoconf-lib-link with modifications.
23961         * tests/havelib/rpathly/usey.c: New file, from
23962         gettext/autoconf-lib-link.
23963         * tests/havelib/rpathly/Makefile.am: New file, from
23964         gettext/autoconf-lib-link.
23965         * tests/havelib/rpathly/configure.ac: New file, from
23966         gettext/autoconf-lib-link with modifications.
23967         * tests/havelib/rpathlz/usez.c: New file, from
23968         gettext/autoconf-lib-link.
23969         * tests/havelib/rpathlz/Makefile.am: New file, from
23970         gettext/autoconf-lib-link.
23971         * tests/havelib/rpathlz/configure.ac: New file, from
23972         gettext/autoconf-lib-link with modifications.
23973         * tests/havelib/rpathlyx/usey.c: New file, from
23974         gettext/autoconf-lib-link.
23975         * tests/havelib/rpathlyx/Makefile.am: New file, from
23976         gettext/autoconf-lib-link.
23977         * tests/havelib/rpathlyx/configure.ac: New file, from
23978         gettext/autoconf-lib-link with modifications.
23979         * tests/havelib/rpathlzyx/usez.c: New file, from
23980         gettext/autoconf-lib-link.
23981         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23982         gettext/autoconf-lib-link.
23983         * tests/havelib/rpathlzyx/configure.ac: New file, from
23984         gettext/autoconf-lib-link with modifications.
23985         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23986         with modifications.
23987
23988 2010-04-02  Bruno Haible  <bruno@clisp.org>
23989
23990         gnulib-tool: Create distributed built sources also for the tests.
23991         * gnulib-tool (func_create_testdir): Also generate distributed built
23992         sources in the tests directory.
23993
23994 2010-04-02  Bruno Haible  <bruno@clisp.org>
23995
23996         gnulib-tool: Obey user's environment variables.
23997         * gnulib-tool (func_create_testdir): When creating built sources,
23998         respect the environment variables for autoconf, automake, etc. given by
23999         the user.
24000
24001 2010-04-02  Bruno Haible  <bruno@clisp.org>
24002
24003         gnulib-tool: Provide the value of --m4-base to modules.
24004         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24005         of gl_m4_base.
24006
24007 2010-04-02  Eric Blake  <eblake@redhat.com>
24008
24009         maint.mk: fix some fallout
24010         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24011         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24012
24013 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24014
24015         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24016         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24017         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24018         (sc_cast_of_x_alloc_return_value): Likewise.
24019         (sc_cast_of_alloca_return_value): Likewise.
24020         (sc_space_tab): Likewise.
24021         (sc_prohibit_atoi_atof): Likewise.
24022         (sc_prohibit_magic_number_exit): Likewise.
24023         (sc_error_exit_success): Likewise.
24024         (sc_file_system): Likewise.
24025         (sc_prohibit_have_config_h): Likewise.
24026         (sc_require_config_h): Likewise.
24027         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24028         (sc_obsolete_symbols): Likewise.
24029         (sc_changelog): Likewise.
24030         (sc_program_name): Likewise.
24031         (sc_the_the): Likewise.
24032         (sc_trailing_blank): Likewise.
24033         (sc_two_space_separator_in_usage): Likewise.
24034         (sc_useless_cpp_parens): Likewise.
24035         (sc_GPL_version): Likewise.
24036         (sc_GFDL_version): Likewise.
24037         (sc_texinfo_acronym): Likewise.
24038         (sc_prohibit_cvs_keyword): Likewise.
24039         (sc_prohibit_stat_st_blocks): Likewise.
24040         (sc_prohibit_S_IS_definition): Likewise.
24041         (sc_redundant_const): Likewise.
24042         (sc_makefile_TAB_only_indentation): Likewise.
24043         (sc_m4_quote_check): Likewise.
24044         (sc_makefile_path_separator_check): Likewise.
24045         (sc_copyright_check): Likewise.
24046         (sc_Wundef_boolean): Likewise.
24047         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24048
24049         maint.mk: match 0 or more whitespace-before-function-call '('
24050         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24051         that have zero or two-and-more spaces between the function name
24052         and the open parenthesis.
24053         (sc_error_message_warn_fatal): Likewise.
24054         (sc_error_message_uppercase): Likewise.
24055         (sc_error_message_period): Likewise.
24056
24057 2010-03-31  Eric Blake  <eblake@redhat.com>
24058
24059         maint.mk: check for [ as well as test
24060         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24061         Based on a libvirt report by Matthias Bolte.
24062
24063         gnumakefile: don't squelch _version output
24064         * top/GNUmakefile (_version): Create one-shot dependency rather
24065         than using $(shell) when version must be regenerated.
24066         (_autoreconf): Run verbosely, by default.
24067
24068         sys_time: avoid compiler warnings
24069         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24070         unconditional, fixing regression from 2010-03-29.
24071         Reported by Simon Josefsson.
24072
24073 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24074
24075         maint.mk: s/_header_without_use/_sc_header_without_use/
24076         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24077         (sc_prohibit_assert_without_use): Use the new name.
24078         (sc_prohibit_close_stream_without_use): Likewise.
24079         (sc_prohibit_getopt_without_use): Likewise.
24080         (sc_prohibit_quotearg_without_use): Likewise.
24081         (sc_prohibit_quote_without_use): Likewise.
24082         (sc_prohibit_long_options_without_use): Likewise.
24083         (sc_prohibit_inttostr_without_use): Likewise.
24084         (sc_prohibit_ignore_value_without_use): Likewise.
24085         (sc_prohibit_error_without_use): Likewise.
24086         (sc_prohibit_xalloc_without_use): Likewise.
24087         (sc_prohibit_hash_without_use): Likewise.
24088         (sc_prohibit_hash_pjw_without_use): Likewise.
24089         (sc_prohibit_safe_read_without_use): Likewise.
24090         (sc_prohibit_argmatch_without_use): Likewise.
24091         (sc_prohibit_canonicalize_without_use): Likewise.
24092         (sc_prohibit_root_dev_ino_without_use): Likewise.
24093         (sc_prohibit_openat_without_use): Likewise.
24094         (sc_prohibit_c_ctype_without_use): Likewise.
24095         (sc_prohibit_signal_without_use): Likewise.
24096         (sc_prohibit_intprops_without_use): Likewise.
24097
24098 2010-03-30  Eric Blake  <eblake@redhat.com>
24099
24100         maint: improve module indicators
24101         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24102         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24103         columns, and avoid extra macro expansion.
24104
24105         fdopendir: work around FreeBSD bug
24106         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24107         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24108         * modules/dirent (Makefile.am): Substitute it.
24109         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24110         declaration.
24111         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24112         fix.
24113         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24114
24115 2010-03-29  Bruno Haible  <bruno@clisp.org>
24116
24117         Emit #pragma system_header after the inclusion guard, not before.
24118         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24119         guard that spans the entire file, not before. This enables an
24120         optimization in GCC's preprocessor.
24121         * lib/ctype.in.h: Likewise.
24122         * lib/dirent.in.h: Likewise.
24123         * lib/errno.in.h: Likewise.
24124         * lib/float.in.h: Likewise.
24125         * lib/getopt.in.h: Likewise.
24126         * lib/iconv.in.h: Likewise.
24127         * lib/langinfo.in.h: Likewise.
24128         * lib/locale.in.h: Likewise.
24129         * lib/math.in.h: Likewise.
24130         * lib/netdb.in.h: Likewise.
24131         * lib/netinet_in.in.h: Likewise.
24132         * lib/pty.in.h: Likewise.
24133         * lib/sched.in.h: Likewise.
24134         * lib/se-selinux.in.h: Likewise.
24135         * lib/search.in.h: Likewise.
24136         * lib/spawn.in.h: Likewise.
24137         * lib/stdarg.in.h: Likewise.
24138         * lib/stdint.in.h: Likewise.
24139         * lib/string.in.h: Likewise.
24140         * lib/strings.in.h: Likewise.
24141         * lib/sys_file.in.h: Likewise.
24142         * lib/sys_ioctl.in.h: Likewise.
24143         * lib/sys_time.in.h: Likewise.
24144         * lib/sys_times.in.h: Likewise.
24145         * lib/sys_utsname.in.h: Likewise.
24146         * lib/sys_wait.in.h: Likewise.
24147         * lib/sysexits.in.h: Likewise.
24148         * lib/wctype.in.h: Likewise.
24149
24150 2010-03-28  James Youngman  <jay@gnu.org>
24151
24152         save-cwd: don't leak a file descriptor when the caller execs.
24153         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24154         saved file descriptor.
24155         * modules/save-cwd (Depends-on): Depend on cloexec.
24156
24157 2010-03-29  Bruno Haible  <bruno@clisp.org>
24158
24159         Remove vestiges of fts-lgpl module.
24160         * lib/fts_.h: Assume GNULIB_FTS is 1.
24161         * lib/fts.c: Likewise.
24162         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24163
24164 2010-03-28  Bruno Haible  <bruno@clisp.org>
24165
24166         Fix definition of tests witness macro.
24167         * gnulib-tool (func_import): Fix definition of witness macro.
24168
24169 2010-03-28  Bruno Haible  <bruno@clisp.org>
24170
24171         Fix ioctl's protoype on glibc systems.
24172         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24173         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24174         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24175         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24176         signature. If not, arrange to replace the ioctl function.
24177         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24178         REPLACE_IOCTL.
24179         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24180         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24181         Reported by Ludovic Courtès <ludo@gnu.org>.
24182
24183 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24184
24185         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24186         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24187         made it so grep -r --include=GLOB* ... did not work.
24188
24189 2010-03-26  Jim Meyering  <meyering@redhat.com>
24190             Eric Blake  <eblake@redhat.com>
24191
24192         maint.mk: prohibit use of test's -o and -a operators
24193         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24194
24195 2010-03-28  Bruno Haible  <bruno@clisp.org>
24196
24197         Remove unused GNULIB_XYZ macro definitions.
24198         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24199         invocation.
24200
24201 2010-03-28  Bruno Haible  <bruno@clisp.org>
24202
24203         Mark privileged tests modules.
24204         * modules/idpriv-drop-tests (Status): New section.
24205         * modules/idpriv-droptemp-tests (Status): New section.
24206
24207 2010-03-28  Bruno Haible  <bruno@clisp.org>
24208
24209         Split C++ tests into separate tests modules.
24210         * modules/dirent-c++-tests: New file, extracted from
24211         modules/dirent-tests.
24212         * modules/dirent-tests: Depend on it.
24213         * modules/fcntl-h-c++-tests: New file, extracted from
24214         modules/fcntl-h-tests.
24215         * modules/fcntl-h-tests: Depend on it.
24216         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24217         * modules/glob-tests: Depend on it.
24218         * modules/iconv-h-c++-tests: New file, extracted from
24219         modules/iconv-h-tests.
24220         * modules/iconv-h-tests: Depend on it.
24221         * modules/langinfo-c++-tests: New file, extracted from
24222         modules/langinfo-tests.
24223         * modules/langinfo-tests: Depend on it.
24224         * modules/locale-c++-tests: New file, extracted from
24225         modules/locale-tests.
24226         * modules/locale-tests: Depend on it.
24227         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24228         * modules/math-tests: Depend on it.
24229         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24230         * modules/pty-tests: Depend on it.
24231         * modules/search-c++-tests: New file, extracted from
24232         modules/search-tests.
24233         * modules/search-tests: Depend on it.
24234         * modules/signal-c++-tests: New file, extracted from
24235         modules/signal-tests.
24236         * modules/signal-tests: Depend on it.
24237         * modules/spawn-c++-tests: New file, extracted from
24238         modules/spawn-tests.
24239         * modules/spawn-tests: Depend on it.
24240         * modules/stdio-c++-tests: New file, extracted from
24241         modules/stdio-tests.
24242         * modules/stdio-tests: Depend on it.
24243         * modules/stdlib-c++-tests: New file, extracted from
24244         modules/stdlib-tests.
24245         * modules/stdlib-tests: Depend on it.
24246         * modules/string-c++-tests: New file, extracted from
24247         modules/string-tests.
24248         * modules/string-tests: Depend on it.
24249         * modules/sys_ioctl-c++-tests: New file, extracted from
24250         modules/sys_ioctl-tests.
24251         * modules/sys_ioctl-tests: Depend on it.
24252         * modules/sys_select-c++-tests: New file, extracted from
24253         modules/sys_select-tests.
24254         * modules/sys_select-tests: Depend on it.
24255         * modules/sys_socket-c++-tests: New file, extracted from
24256         modules/sys_socket-tests.
24257         * modules/sys_socket-tests: Depend on it.
24258         * modules/sys_stat-c++-tests: New file, extracted from
24259         modules/sys_stat-tests.
24260         * modules/sys_stat-tests: Depend on it.
24261         * modules/sys_time-c++-tests: New file, extracted from
24262         modules/sys_time-tests.
24263         * modules/sys_time-tests: Depend on it.
24264         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24265         * modules/time-tests: Depend on it.
24266         * modules/unistd-c++-tests: New file, extracted from
24267         modules/unistd-tests.
24268         * modules/unistd-tests: Depend on it.
24269         * modules/wchar-c++-tests: New file, extracted from
24270         modules/wchar-tests.
24271         * modules/wchar-tests: Depend on it.
24272         * modules/wctype-c++-tests: New file, extracted from
24273         modules/wctype-tests.
24274         * modules/wctype-tests: Depend on it.
24275         Reported by Simon Josefsson.
24276
24277 2010-03-28  Bruno Haible  <bruno@clisp.org>
24278
24279         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24280         * gnulib-tool (func_exists_module): New function, extracted from
24281         func_verify_module.
24282         (func_verify_module): Use it.
24283         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24284         'foo' only if 'foo' exists.
24285         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24286         module.
24287
24288 2010-03-28  Bruno Haible  <bruno@clisp.org>
24289
24290         gnulib-tool: Add support for special categories of tests.
24291         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24292         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24293         (func_usage): Document them.
24294         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24295         inc_unportable_tests, inc_all_tests): New variables.
24296         (func_acceptable): Consider these variables.
24297         (func_modules_transitive_closure): Make it work when the 'Status' field
24298         consists of multiple words.
24299         (func_import): Store and restore the values of inc_cxx_tests,
24300         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24301         inc_all_tests in gnulib-comp.m4.
24302         (func_create_testdir): Set inc_all_tests to true.
24303         * doc/gnulib.texi (Extra tests modules): New section.
24304         Suggested by Jim Meyering.
24305
24306 2010-03-28  Bruno Haible  <bruno@clisp.org>
24307
24308         ansi-c++-opt: Allow turning off the C++ build by default.
24309         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24310         gl_CXX_CHOICE_DEFAULT_NO is defined.
24311         Requested by Eric Blake.
24312
24313 2010-03-28  Bruno Haible  <bruno@clisp.org>
24314
24315         unistd: Avoid #define replacements in C++ mode.
24316         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24317         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24318         setsockopt, shutdown, select): In C++, attach a warning to the function
24319         if possible, rather than #defining the symbol to a dysfunctional alias.
24320         Reported by John W. Eaton <jwe@gnu.org>.
24321
24322 2010-03-28  Bruno Haible  <bruno@clisp.org>
24323
24324         Fix link errors on mingw.
24325         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24326         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24327         $(LIBSOCKET).
24328         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24329         $(LIBSOCKET).
24330
24331 2010-03-28  Bruno Haible  <bruno@clisp.org>
24332             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24333
24334         lib-ignore: Determine different options for different compilers.
24335         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24336         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24337         Add comments.
24338         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24339         * NEWS: Mention the change.
24340
24341 2010-03-27  Bruno Haible  <bruno@clisp.org>
24342
24343         Remove unused GNULIB_XYZ macro definitions.
24344         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24345         * modules/fseek (configure.ac): Likewise.
24346         * modules/ioctl (configure.ac): Likewise.
24347         * modules/open (configure.ac): Likewise.
24348         * modules/stdlib-safer (configure.ac): Likewise.
24349
24350 2010-03-27  Bruno Haible  <bruno@clisp.org>
24351
24352         Add a remark about certain modules.
24353         * modules/malloc (Comment): New section.
24354         * modules/realloc (Comment): Likewise.
24355         * modules/sigpipe (Comment): Likewise.
24356
24357 2010-03-27  Bruno Haible  <bruno@clisp.org>
24358
24359         Resolve conflict between the two kinds of module indicators.
24360         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24361         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24362         * modules/canonicalize (configure.ac): Invoke
24363         gl_MODULE_INDICATOR_FOR_TESTS.
24364         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24365         GNULIB_XYZ.
24366         * tests/test-dirent-c++.cc: Likewise.
24367         * tests/test-dirent-safer.c: Likewise.
24368         * tests/test-dup2.c: Likewise.
24369         * tests/test-fchdir.c: Likewise.
24370         * tests/test-fcntl-h-c++.cc: Likewise.
24371         * tests/test-getopt.c: Likewise.
24372         * tests/test-getopt.h: Likewise.
24373         * tests/test-langinfo-c++.cc: Likewise.
24374         * tests/test-locale-c++.cc: Likewise.
24375         * tests/test-math-c++.cc: Likewise.
24376         * tests/test-pty-c++.cc: Likewise.
24377         * tests/test-search-c++.cc: Likewise.
24378         * tests/test-signal-c++.cc: Likewise.
24379         * tests/test-spawn-c++.cc: Likewise.
24380         * tests/test-stdio-c++.cc: Likewise.
24381         * tests/test-stdlib-c++.cc: Likewise.
24382         * tests/test-string-c++.cc: Likewise.
24383         * tests/test-sys_ioctl-c++.cc: Likewise.
24384         * tests/test-sys_select-c++.cc: Likewise.
24385         * tests/test-sys_socket-c++.cc: Likewise.
24386         * tests/test-sys_stat-c++.cc: Likewise.
24387         * tests/test-sys_time-c++.cc: Likewise.
24388         * tests/test-time-c++.cc: Likewise.
24389         * tests/test-unistd-c++.cc: Likewise.
24390         * tests/test-wchar-c++.cc: Likewise.
24391         * tests/uninorm/test-u8-nfc.c: Likewise.
24392         * tests/uninorm/test-u8-nfd.c: Likewise.
24393         * tests/uninorm/test-u8-nfkc.c: Likewise.
24394         * tests/uninorm/test-u8-nfkd.c: Likewise.
24395         * tests/uninorm/test-u16-nfc.c: Likewise.
24396         * tests/uninorm/test-u16-nfd.c: Likewise.
24397         * tests/uninorm/test-u16-nfkc.c: Likewise.
24398         * tests/uninorm/test-u16-nfkd.c: Likewise.
24399         * tests/uninorm/test-u32-nfc.c: Likewise.
24400         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24401         * tests/uninorm/test-u32-nfd.c: Likewise.
24402         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24403         * tests/uninorm/test-u32-nfkc.c: Likewise.
24404         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24405         * tests/uninorm/test-u32-nfkd.c: Likewise.
24406         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24407         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24408
24409 2010-03-27  Bruno Haible  <bruno@clisp.org>
24410
24411         Distinguish two kinds of module indicators.
24412         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24413         gl_MODULE_INDICATOR.
24414         (gl_MODULE_INDICATOR): New macro.
24415         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24416         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24417         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24418         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24419         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24420         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24421         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24422         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24423         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24424         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24425         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24426         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24428         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24429         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24430         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24431         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24432         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24433         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24434         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24435         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24436         * modules/cloexec (configure.ac): Likewise.
24437         * modules/getopt-gnu (configure.ac): Likewise.
24438         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24439         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24440         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24441         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24442
24443 2010-03-27  Bruno Haible  <bruno@clisp.org>
24444
24445         New module description field 'Comment'.
24446         * gnulib-tool: New option --extract-comment.
24447         (func_usage): Document it.
24448         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24449         (func_get_comment): New function.
24450         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24451
24452 2010-03-27  Bruno Haible  <bruno@clisp.org>
24453
24454         Addendum to 2010-02-07 commit.
24455         * gnulib-tool (func_usage): Document --extract-applicability option.
24456
24457 2010-03-27  Bruno Haible  <bruno@clisp.org>
24458
24459         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24460         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24461         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24462         rather than link errors.
24463
24464 2010-03-27  Bruno Haible  <bruno@clisp.org>
24465
24466         Avoid side effects from tests-related modules on the compilation of lib.
24467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24468         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24469         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24470         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24471         macro.
24472         (func_import): Define a witness macro. Assign it a value that depends
24473         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24474         tests-related modules.
24475         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24476         Reported by Jim Meyering.
24477
24478 2010-03-27  Bruno Haible  <bruno@clisp.org>
24479
24480         Factorize common .m4 code.
24481         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24482         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24483         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24484         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24485         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24486         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24487         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24488         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24489         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24490         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24491         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24492         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24493         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24494         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24495         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24496         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24497         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24498         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24499         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24500         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24501         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24502         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24503         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24504         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24505         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24506         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24507         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24508         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24509         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24510         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24511         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24512         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24513
24514 2010-03-27  Bruno Haible  <bruno@clisp.org>
24515
24516         Fix a compilation error on Cygwin with g++ >= 4.3.
24517         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24518         if it is undefined or if we alias it to chmod.
24519         (lstat): Don't warn about the use of this function if it is undefined
24520         or if we alias it to stat.
24521         Reported by Simon Josefsson.
24522
24523 2010-03-27  Bruno Haible  <bruno@clisp.org>
24524
24525         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24526         * modules/getlogin (configure.ac): Update.
24527
24528         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24529         * modules/getlogin_r (configure.ac): Update.
24530
24531         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24533         * modules/inet_ntop (configure.ac): Update.
24534
24535         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24536         * modules/inet_pton (configure.ac): Update.
24537
24538         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24539         * modules/mbslen (configure.ac): Update.
24540
24541         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24542         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24543         * modules/forkpty (configure.ac): Update.
24544         * modules/openpty (configure.ac): Update.
24545
24546 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24547
24548         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24549         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24550
24551 2010-03-25  Eric Blake  <eblake@redhat.com>
24552
24553         maint: use pragma consistently across replacement headers
24554         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24555         * lib/dirent.in.h (system_header): Likewise.
24556         * lib/errno.in.h (system_header): Likewise.
24557         * lib/float.in.h (system_header): Likewise.
24558         * lib/getopt.in.h (system_header): Likewise.
24559         * lib/iconv.in.h (system_header): Likewise.
24560         * lib/inttypes.in.h (system_header): Likewise.
24561         * lib/langinfo.in.h (system_header): Likewise.
24562         * lib/locale.in.h (system_header): Likewise.
24563         * lib/math.in.h (system_header): Likewise.
24564         * lib/netdb.in.h (system_header): Likewise.
24565         * lib/netinet_in.in.h (system_header): Likewise.
24566         * lib/pty.in.h (system_header): Likewise.
24567         * lib/sched.in.h (system_header): Likewise.
24568         * lib/se-selinux.in.h (system_header): Likewise.
24569         * lib/search.in.h (system_header): Likewise.
24570         * lib/spawn.in.h (system_header): Likewise.
24571         * lib/stdarg.in.h (system_header): Likewise.
24572         * lib/stdint.in.h (system_header): Likewise.
24573         * lib/string.in.h (system_header): Likewise.
24574         * lib/strings.in.h (system_header): Likewise.
24575         * lib/sys_file.in.h (system_header): Likewise.
24576         * lib/sys_ioctl.in.h (system_header): Likewise.
24577         * lib/sys_socket.in.h (system_header): Likewise.
24578         * lib/sys_times.in.h (system_header): Likewise.
24579         * lib/sys_utsname.in.h (system_header): Likewise.
24580         * lib/sys_wait.in.h (system_header): Likewise.
24581         * lib/sysexits.in.h (system_header): Likewise.
24582         * lib/unistd.in.h (system_header): Likewise.
24583         * lib/wctype.in.h (system_header): Likewise.
24584
24585         arpa/inet: fix mingw compilation warning
24586         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24587         Reported by Matthew Bolte.
24588
24589 2010-03-25  Bruno Haible  <bruno@clisp.org>
24590
24591         Avoid collision between gnulib wrapper and libintl wrapper.
24592         * lib/printf.c (printf): Don't define if a printf wrapper is already
24593         defined in intl/printf.c.
24594         Reported by Michel Boaventura <michel@michelboaventura.com>.
24595
24596 2010-03-25  Bruno Haible  <bruno@clisp.org>
24597
24598         Use ANSI C.
24599         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24600
24601 2010-03-25  Bruno Haible  <bruno@clisp.org>
24602
24603         Minor formatting changes.
24604         * lib/acosl.c: Insert space before function argument list.
24605         * lib/argz.c: Likewise.
24606         * lib/asinl.c: Likewise.
24607         * lib/expl.c: Likewise.
24608         * lib/gen-uni-tables.c: Likewise.
24609         * lib/gettext.h: Likewise.
24610         * lib/glthread/lock.h: Likewise.
24611         * lib/tanl.c: Likewise.
24612         * lib/uniname/uniname.c: Likewise.
24613         * tests/test-idpriv-drop.c: Likewise.
24614         * tests/test-idpriv-droptemp.c: Likewise.
24615         * tests/test-lock.c: Likewise.
24616         * tests/test-tls.c: Likewise.
24617         * lib/argp-help.c: Insert space before function-like macro argument
24618         list.
24619         * lib/memcmp.c: Likewise.
24620         * tests/test-base64.c: Likewise.
24621         * lib/localename.c: Insert space before sizeof's argument list.
24622         * lib/safe-alloc.h: Likewise.
24623         * lib/file-set.h: Insert space before macro argument list.
24624         * tests/test-argp.c: Likewise.
24625         * lib/argp-namefrob.h: Insert space before function parameter list.
24626         * lib/getaddrinfo.c: Likewise.
24627         * lib/netdb.in.h: Likewise.
24628         * lib/parse-duration.h: Likewise.
24629         * lib/parse-duration.c: Likewise.
24630         * lib/poll.c: Likewise.
24631         * lib/select.c: Likewise.
24632         * lib/trim.h: Likewise.
24633         * tests/test-usleep.c: Likewise.
24634         * lib/ldexpl.c: Insert space before function parameter list and before
24635         function argument list.
24636         * lib/logl.c: Likewise.
24637         * lib/sqrtl.c: Likewise.
24638         * lib/trim.c: Likewise.
24639         * lib/cosl.c: Use GNU style indentation. Insert space before function
24640         argument list.
24641         * lib/sinl.c: Likewise.
24642         * lib/tsearch.c: Insert space after 'for'.
24643         Reported by Jim Meyering.
24644
24645 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24646
24647         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24648         config header before grepping, as it's not present before
24649         autoreconf/configure are run.  Reported by Simon Josefsson.
24650
24651 2010-03-23  Bruno Haible  <bruno@clisp.org>
24652
24653         pt_chown: Make it work with automake < 1.11.
24654         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24655         Reported by Simon Josefsson.
24656
24657 2010-03-23  Bruno Haible  <bruno@clisp.org>
24658
24659         pt_chown: Don't depend on GPLed modules.
24660         * lib/pt_chown.c: Don't include idpriv.h.
24661         (main): Don't drop privileges.
24662         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24663         Reported by Simon Josefsson.
24664
24665 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24666
24667         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24668         suggestions from karl@freefriends.org (Karl Berry).
24669
24670 2010-03-22  Eric Blake  <eblake@redhat.com>
24671
24672         gethostname: further tweaks
24673         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24674         are overriding gethostname.
24675         Suggested by Bruno Haible.
24676
24677 2010-03-21  Bruno Haible  <bruno@clisp.org>
24678
24679         Fix comments.
24680         * lib/forkpty.c (rpl_forkpty): Fix comment.
24681         * lib/openpty.c (rpl_openpty): Likewise.
24682         Reported by Eric Blake.
24683
24684 2010-03-22  Eric Blake  <eblake@redhat.com>
24685
24686         gethostname: fix build on mingw
24687         * lib/unistd.in.h (includes): Work around fact that mingw
24688         <winsock2.h> re-includes <unistd.h>, by avoiding any
24689         redeclarations if we are being included by <winsock2.h>.
24690         Reported by Matthias Bolte.
24691
24692 2010-03-21  Bruno Haible  <bruno@clisp.org>
24693
24694         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24695         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24696         modifications.
24697         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24698         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24699         provide the replacement.
24700         * modules/forkpty (Depends-on): Add openpty, login_tty.
24701         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24702         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24703         * doc/glibc-functions/forkpty.texi: More supported platforms.
24704         * config/srclist.txt: Add forkpty.c (commented).
24705
24706 2010-03-21  Bruno Haible  <bruno@clisp.org>
24707
24708         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24709         (Makefile.am): Verify that PTY_LIB is defined.
24710
24711         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24712
24713 2010-03-21  Bruno Haible  <bruno@clisp.org>
24714
24715         Tests for module 'login_tty'.
24716         * modules/login_tty-tests: New file.
24717         * tests/test-login_tty.c: New file.
24718
24719         New module 'login_tty'.
24720         * lib/login_tty.c: New file.
24721         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24722         * modules/login_tty: New file.
24723         * doc/glibc-functions/login_tty.texi: Mention the new module.
24724
24725 2010-03-21  Bruno Haible  <bruno@clisp.org>
24726
24727         login_tty: Documentation.
24728         * doc/glibc-functions/login_tty.texi: New file.
24729         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24730
24731 2010-03-21  Bruno Haible  <bruno@clisp.org>
24732
24733         pty: Consistent macro naming.
24734         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24735         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24736         * modules/pty (configure.ac): Update.
24737
24738 2010-03-21  Bruno Haible  <bruno@clisp.org>
24739
24740         Tests for openpty: Make stricter.
24741         * tests/test-openpty.c (main): Add test of canonical processing and
24742         erase.
24743         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24744
24745         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24746         * lib/openpty.c (openpty): New replacement function.
24747         * lib/pty.in.h: Include <termios.h>.
24748         (openpty): Update declaration. Add comments.
24749         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24750         is not declared, arrange to provide the replacement. Check for _getpty
24751         and posix_openpt.
24752         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24753         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24754         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24755         * modules/pty-tests (test_pty_c___LDADD): New variable.
24756         * doc/glibc-functions/openpty.texi: More supported platforms.
24757
24758 2010-03-21  Bruno Haible  <bruno@clisp.org>
24759
24760         setenv: Tweaks.
24761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24762         the test program.
24763         * doc/posix-functions/setenv.texi: Update platforms list.
24764
24765 2010-03-21  Bruno Haible  <bruno@clisp.org>
24766
24767         New module 'unlockpt'.
24768         * lib/unlockpt.c: New file, from glibc with modifications.
24769         * m4/unlockpt.m4: New file.
24770         * modules/unlockpt: New file.
24771         * lib/stdlib.in.h (unlockpt): New declaration.
24772         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24773         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24774         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24775         HAVE_UNLOCKPT.
24776         * doc/posix-functions/unlockpt.texi: Mention the new module.
24777         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24778         * config/srclist.txt: Add unlockpt.c (commented).
24779
24780 2010-03-21  Jim Meyering  <meyering@redhat.com>
24781
24782         maint.mk: prohibit inclusion of "intprops.h" without use
24783         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24784
24785 2010-03-21  Bruno Haible  <bruno@clisp.org>
24786
24787         New module 'grantpt'.
24788         * lib/grantpt.c: New file, from glibc with modifications.
24789         * m4/grantpt.m4: New file.
24790         * modules/grantpt: New file.
24791         * lib/stdlib.in.h (grantpt): New declaration.
24792         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24793         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24794         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24795         HAVE_GRANTPT.
24796         * doc/posix-functions/grantpt.texi: Mention the new module.
24797         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24798         * config/srclist.txt: Add grantpt.c (commented).
24799
24800 2010-03-21  Bruno Haible  <bruno@clisp.org>
24801
24802         New module 'pt_chown'.
24803         * lib/pt_chown.c: New file, from glibc with modifications.
24804         * lib/pty-private.h: New file, from glibc with modifications.
24805         * modules/pt_chown: New file.
24806         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24807
24808 2010-03-21  Bruno Haible  <bruno@clisp.org>
24809
24810         Tests for module 'ptsname'.
24811         * modules/ptsname-tests: New file.
24812         * tests/test-ptsname.c: New file.
24813
24814         New module 'ptsname'.
24815         * lib/ptsname.c: New file, from glibc with modifications.
24816         * m4/ptsname.m4: New file.
24817         * modules/ptsname: New file.
24818         * lib/stdlib.in.h (ptsname): New declaration.
24819         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24820         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24821         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24822         HAVE_PTSNAME.
24823         * doc/posix-functions/ptsname.texi: Mention the new module.
24824         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24825         * config/srclist.txt: Add ptsname.c (commented).
24826
24827 2010-03-21  Bruno Haible  <bruno@clisp.org>
24828
24829         Tests for module 'ttyname_r'.
24830         * modules/ttyname_r-tests: New file.
24831         * tests/test-ttyname_r.c: New file.
24832
24833         New module 'ttyname_r'.
24834         * lib/ttyname_r.c: New file.
24835         * m4/ttyname_r.m4: New file.
24836         * modules/ttyname_r: New file.
24837         * lib/unistd.in.h (ttyname_r): New declaration.
24838         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24839         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24840         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24841         HAVE_TTYNAME_R.
24842         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24843         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24844
24845 2010-03-20  Bruno Haible  <bruno@clisp.org>
24846
24847         signal: Undefine macro definitions in C++ mode.
24848         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24849         sigfillset): Undefine macro definitions from the system header in C++
24850         mode.
24851         Reported by John W. Eaton <jwe@gnu.org>.
24852
24853 2010-03-20  Bruno Haible  <bruno@clisp.org>
24854
24855         Ensure no #include statements inside extern "C" { ... }.
24856         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24857         contain #include statements.
24858         * lib/time.in.h: Likewise.
24859
24860 2010-03-20  Bruno Haible  <bruno@clisp.org>
24861
24862         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24863         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24864         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24865         Reported by John W. Eaton <jwe@gnu.org>.
24866
24867 2010-03-20  Bruno Haible  <bruno@clisp.org>
24868
24869         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24870         Reported by Jim Meyering.
24871
24872 2010-03-20  Bruno Haible  <bruno@clisp.org>
24873
24874         pipe: Set errno upon failure.
24875         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24876         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24877         errno value in error message.
24878
24879 2010-03-20  Bruno Haible  <bruno@clisp.org>
24880             Jim Meyering  <meyering@redhat.com>
24881
24882         lchown: Avoid "unused variable" warning.
24883         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24884
24885 2010-03-20  Bruno Haible  <bruno@clisp.org>
24886
24887         Work around unlink() bug on MacOS X 10.5.6.
24888         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24889         attempting to unlink a parent directory.
24890         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24891         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24892         activate for the replacement function.
24893         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24894
24895 2010-03-20  Bruno Haible  <bruno@clisp.org>
24896
24897         Fix link errors on Solaris 8.
24898         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24899         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24900
24901 2010-03-19  Jim Meyering  <meyering@redhat.com>
24902
24903         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24904         The _LIBC implementation of build_range_exp correctly honors the
24905         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24906         However, the non-_LIBC implementation would ignore that syntax-bit
24907         flag and return REG_ERANGE unconditionally.
24908         This change makes it honor that flag.
24909         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24910         Make two pointer parameters "const".
24911         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24912         (parse_bracket_exp): Update caller.
24913
24914         regex.m4: correct the reversed range endpoint ([b-a]) test
24915         * m4/regex.m4: When requiring that [b-a] evoke failure,
24916         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24917         test pass once again for x86-based systems.
24918
24919 2010-03-19  Bruno Haible  <bruno@clisp.org>
24920
24921         scandir: Fix link error on Solaris 8.
24922         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24923         macros.
24924
24925 2010-03-19  Bruno Haible  <bruno@clisp.org>
24926
24927         getusershell: Fix documentation.
24928         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24929         module.
24930         * doc/glibc-functions/setusershell.texi: Likewise.
24931
24932         getusershell: Provide declaration, missing on Solaris 9.
24933         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24934         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24935         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24936         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24938         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24939         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24940         HAVE_GETUSERSHELL.
24941         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24942
24943 2010-03-19  Bruno Haible  <bruno@clisp.org>
24944
24945         wctype: Provide iswblank function.
24946         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24947         exists and is fine.
24948         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24949         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24950         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24951         * doc/posix-functions/iswblank.texi: Update.
24952
24953 2010-03-19  Bruno Haible  <bruno@clisp.org>
24954
24955         Tests of module 'pty' in C++ mode.
24956         * modules/pty-tests: New file.
24957         * tests/test-pty-c++.cc: New file.
24958         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24959
24960 2010-03-19  Eric Blake  <eblake@redhat.com>
24961
24962         logb: fix documentation
24963         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24964         1.5 declaration bug.
24965
24966         forkpty, openpty: prefer glibc's const-safe prototype
24967         * lib/forkpty.c (rpl_forkpty): New file.
24968         * lib/openpty.c (rpl_openpty): Likewise.
24969         * modules/forkpty (Files): Distribute it.
24970         * modules/openpty (Files): Likewise.
24971         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24972         check...
24973         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24974         replacement for for non-const BSD signature.
24975         * modules/pty (Makefile.am): Substitute witnesses.
24976         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24977         * tests/test-forkpty.c: Update signature check.
24978         * tests/test-openpty.c: Likewise.
24979         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24980         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24981
24982         forkpty, openpty: split functions into new modules
24983         * modules/pty (Makefile.am): Substitute new witnesses.
24984         (Libraries): Move library detection...
24985         * modules/forkpty: ...into new module.
24986         * modules/openpty: Another new module.
24987         * modules/pty-tests: Rename and split...
24988         * modules/forkpty-tests: ...to this...
24989         * modules/openpty-tests: ...and this.
24990         * tests/test-pty.c: Rename and split...
24991         * tests/test-forkpty.c: ...to this...
24992         * tests/test-openpty.c: ...and this.
24993         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24994         (gl_PTY): Split library searching...
24995         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24996         (gl_FORKPTY, gl_OPENPTY): New macros.
24997         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24998         * NEWS: Mention the split.
24999         * MODULES.html.sh (Misc): Document the modules.
25000         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25001         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25002
25003         pty: improve replacement header
25004         * lib/pty.in.h: New file.
25005         * modules/pty (Files): Ship it.
25006         (Makefile.am): Always build replacement.
25007         * m4/pty.m4: Rename...
25008         * m4/pty_h.m4: ...to this.
25009         (gl_PTY): Modernize setting of witness macros; update check of
25010         forkpty to take proper advantage of cache.
25011         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25012
25013         getopt: avoid compiler warning
25014         * lib/getopt.c (attribute_hidden): Remove unused macro.
25015
25016 2010-03-18  Bruno Haible  <bruno@clisp.org>
25017
25018         Fix link errors on Solaris 8.
25019         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25020         * modules/search-tests (test_search_c___LDADD): Likewise.
25021         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25022         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25023         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25024         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25025         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25026         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25027         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25028
25029 2010-03-18  Bruno Haible  <bruno@clisp.org>
25030
25031         Fix bug introduced on 2010-03-14.
25032         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25033         (gl_SPAWN_H): Require it.
25034         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25035         Reported by Simon Josefsson.
25036
25037 2010-03-18  Bruno Haible  <bruno@clisp.org>
25038
25039         Fix typo introduced on 2009-12-31.
25040         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25041         posix_spawn_file_actions_adddup2.
25042
25043 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25044         and Eric Blake  <eblake@redhat.com>
25045
25046         test-vc-list-files-git: make more robust
25047         * tests/test-vc-list-files-git.sh: Unset problematic environment
25048         variables.  Chain commands together.
25049
25050 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25051
25052         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25053         `AC_CHECK_DECL' invocation.
25054
25055 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25056
25057         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25058         appears before executable statements. Suggested by Petr Sumbera
25059         <Petr.Sumbera@Sun.COM>.
25060
25061 2010-03-14  Bruno Haible  <bruno@clisp.org>
25062
25063         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25064         portability problems. Instead use a simpler test.
25065         (main): Check that invalid arguments are rejected only on Linux.
25066
25067 2010-03-14  Bruno Haible  <bruno@clisp.org>
25068
25069         Fix bug introduced on 2009-12-31.
25070         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25071         gl_PREREQ_SYS_H_WINSOCK2 always.
25072         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25073         SYS_SOCKET_H variable.
25074         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25075         Update comments.
25076         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25077         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25078         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25079         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25080         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25081
25082 2010-03-14  Bruno Haible  <bruno@clisp.org>
25083
25084         Fix values returned by sinl, cosl.
25085         * lib/trigl.h: Add specification comments.
25086         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25087         that combines the values from the precomputed table with the values of
25088         the Chebyshev polynomials.
25089
25090 2010-03-14  Bruno Haible  <bruno@clisp.org>
25091
25092         Fix compilation error when modules 'posix_spawn[p]' are not used.
25093         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25094         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25095
25096 2010-03-14  Bruno Haible  <bruno@clisp.org>
25097
25098         Fix compilation error on mingw when module 'time_r' is not used.
25099         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25100         is 1.
25101         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25102         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25103         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25104         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25105
25106 2010-03-14  Bruno Haible  <bruno@clisp.org>
25107
25108         Fix compilation error with Sun C.
25109         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25110         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25111         instead of GCC specific ULONG_LONG_MAX.
25112         * lib/xstrtoll.c: Likewise.
25113         * lib/xstrtoull.c: Likewise.
25114
25115 2010-03-13  Bruno Haible  <bruno@clisp.org>
25116
25117         Allow the user to disable C++ code and tests.
25118         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25119         (gl_PROG_ANSI_CXX): Require it.
25120
25121 2010-03-13  Bruno Haible  <bruno@clisp.org>
25122
25123         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25124         cases.
25125
25126 2010-03-13  Bruno Haible  <bruno@clisp.org>
25127
25128         Test that gnulib does not break the standard C++ headers.
25129         * tests/test-locale-c++2.cc: New file.
25130         * modules/locale-tests (Files): Add it.
25131         (Makefile.am): Compile it for test-locale-c++.
25132         * tests/test-math-c++2.cc: New file.
25133         * modules/math-tests (Files): Add it.
25134         (Makefile.am): Compile it for test-math-c++.
25135         * tests/test-signal-c++2.cc: New file.
25136         * modules/signal-tests (Files): Add it.
25137         (Makefile.am): Compile it for test-signal-c++.
25138         * tests/test-stdio-c++2.cc: New file.
25139         * modules/stdio-tests (Files): Add it.
25140         (Makefile.am): Compile it for test-stdio-c++.
25141         * tests/test-stdlib-c++2.cc: New file.
25142         * modules/stdlib-tests (Files): Add it.
25143         (Makefile.am): Compile it for test-stdlib-c++.
25144         * tests/test-string-c++2.cc: New file.
25145         * modules/string-tests (Files): Add it.
25146         (Makefile.am): Compile it for test-string-c++.
25147         * tests/test-time-c++2.cc: New file.
25148         * modules/time-tests (Files): Add it.
25149         (Makefile.am): Compile it for test-time-c++.
25150         Reported by John W. Eaton <jwe@gnu.org>.
25151
25152 2010-03-13  Bruno Haible  <bruno@clisp.org>
25153
25154         * gnulib-tool (func_usage): Clarify which options are available for
25155         --create-testdir and --create-megatestdir.
25156
25157 2010-03-13  Bruno Haible  <bruno@clisp.org>
25158
25159         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25160         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25161         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25162         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25163         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25164         when appropriate.
25165         Reported by Jim Meyering.
25166
25167 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25168
25169         * gnulib-tool (func_import): Explain origin of code.
25170
25171 2010-03-12  Bruno Haible  <bruno@clisp.org>
25172
25173         Fix problem with automake's definition of CXXLINK.
25174         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25175         Reported by Simon Josefsson and Ludovic Courtès.
25176
25177 2010-03-12  Bruno Haible  <bruno@clisp.org>
25178
25179         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25180         stable releases.
25181
25182 2010-03-11  Bruno Haible  <bruno@clisp.org>
25183
25184         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25185         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25186         whether the system provides one variant or multiple variants of the
25187         function.
25188         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25189         C++ compilers.
25190         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25191         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25192         Reported by Jim Meyering.
25193
25194 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25195
25196         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25197
25198 2010-03-08  Bruno Haible  <bruno@clisp.org>
25199
25200         gnulib-tool: Add support for --libtool in --create-testdir.
25201         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25202         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25203
25204 2010-03-08  Eric Blake  <eblake@redhat.com>
25205
25206         gnulib-tool.texi: mention possibility of git submodule
25207         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25208         submodules.
25209         * doc/.gitignore: Ignore another generated file.
25210
25211 2010-03-08  Karl Berry  <karl@gnu.org>
25212
25213         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25214         of committing gnulib files while skipping others.
25215
25216 2010-03-07  Bruno Haible  <bruno@clisp.org>
25217
25218         Tests of module 'wctype' in C++ mode.
25219         * tests/test-wctype-c++.cc: New file.
25220         * modules/wctype-tests (Files): Add it and tests/signature.h.
25221         (Depends-on): Add ansi-c++-opt.
25222         (Makefile.am): Arrange to compile and run test-wctype-c++.
25223
25224         Tests of module 'wchar' in C++ mode.
25225         * tests/test-wchar-c++.cc: New file.
25226         * modules/wchar-tests (Files): Add it and tests/signature.h.
25227         (Depends-on): Add ansi-c++-opt.
25228         (Makefile.am): Arrange to compile and run test-wchar-c++.
25229         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25230         gl_MODULE_INDICATOR.
25231
25232         Tests of module 'unistd' in C++ mode.
25233         * tests/test-unistd-c++.cc: New file.
25234         * modules/unistd-tests (Files): Add it and tests/signature.h.
25235         (Depends-on): Add ansi-c++-opt.
25236         (Makefile.am): Arrange to compile and run test-unistd-c++.
25237         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25238         gl_MODULE_INDICATOR.
25239
25240         Tests of module 'time' in C++ mode.
25241         * tests/test-time-c++.cc: New file.
25242         * modules/time-tests (Files): Add it and tests/signature.h.
25243         (Depends-on): Add ansi-c++-opt.
25244         (Makefile.am): Arrange to compile and run test-time-c++.
25245         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25246
25247         Tests of module 'sys_time' in C++ mode.
25248         * tests/test-sys_time-c++.cc: New file.
25249         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25250         (Depends-on): Add ansi-c++-opt.
25251         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25252         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25253         gl_MODULE_INDICATOR.
25254
25255         Tests of module 'sys_stat' in C++ mode.
25256         * tests/test-sys_stat-c++.cc: New file.
25257         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25258         (Depends-on): Add ansi-c++-opt.
25259         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25260         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25261         gl_MODULE_INDICATOR.
25262
25263         Tests of module 'sys_socket' in C++ mode.
25264         * tests/test-sys_socket-c++.cc: New file.
25265         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25266         (Depends-on): Add ansi-c++-opt.
25267         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25268         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25269         gl_MODULE_INDICATOR.
25270
25271         Tests of module 'sys_select' in C++ mode.
25272         * tests/test-sys_select-c++.cc: New file.
25273         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25274         (Depends-on): Add ansi-c++-opt.
25275         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25276         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25277         gl_MODULE_INDICATOR.
25278
25279         Tests of module 'sys_ioctl' in C++ mode.
25280         * tests/test-sys_ioctl-c++.cc: New file.
25281         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25282         (Depends-on): Add ansi-c++-opt.
25283         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25284         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25285         gl_MODULE_INDICATOR.
25286
25287         Tests of module 'string' in C++ mode.
25288         * tests/test-string-c++.cc: New file.
25289         * modules/string-tests (Files): Add it and tests/signature.h.
25290         (Depends-on): Add ansi-c++-opt.
25291         (Makefile.am): Arrange to compile and run test-string-c++.
25292         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25293         gl_MODULE_INDICATOR.
25294
25295         Tests of module 'stdlib' in C++ mode.
25296         * tests/test-stdlib-c++.cc: New file.
25297         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25298         (Depends-on): Add ansi-c++-opt.
25299         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25300         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25301         gl_MODULE_INDICATOR.
25302
25303         Tests of module 'stdio' in C++ mode.
25304         * tests/test-stdio-c++.cc: New file.
25305         * modules/stdio-tests (Files): Add it and tests/signature.h.
25306         (Depends-on): Add ansi-c++-opt.
25307         (Makefile.am): Arrange to compile and run test-stdio-c++.
25308         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25309         gl_MODULE_INDICATOR.
25310
25311         Tests of module 'spawn' in C++ mode.
25312         * tests/test-spawn-c++.cc: New file.
25313         * modules/spawn-tests (Files): Add it and tests/signature.h.
25314         (Depends-on): Add ansi-c++-opt.
25315         (Makefile.am): Arrange to compile and run test-spawn-c++.
25316         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25317         gl_MODULE_INDICATOR.
25318
25319         Tests of module 'signal' in C++ mode.
25320         * tests/test-signal-c++.cc: New file.
25321         * modules/signal-tests (Files): Add it and tests/signature.h.
25322         (Depends-on): Add ansi-c++-opt.
25323         (Makefile.am): Arrange to compile and run test-signal-c++.
25324         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25325         gl_MODULE_INDICATOR.
25326
25327         Tests of module 'search' in C++ mode.
25328         * tests/test-search-c++.cc: New file.
25329         * modules/search-tests (Files): Add it and tests/signature.h.
25330         (Depends-on): Add ansi-c++-opt.
25331         (Makefile.am): Arrange to compile and run test-search-c++.
25332         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25333         gl_MODULE_INDICATOR.
25334
25335         Tests of module 'math' in C++ mode.
25336         * tests/test-math-c++.cc: New file.
25337         * modules/math-tests (Files): Add it and tests/signature.h.
25338         (Depends-on): Add ansi-c++-opt.
25339         (Makefile.am): Arrange to compile and run test-math-c++.
25340         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25341
25342         Tests of module 'locale' in C++ mode.
25343         * tests/test-locale-c++.cc: New file.
25344         * modules/locale-tests (Files): Add it and tests/signature.h.
25345         (Depends-on): Add ansi-c++-opt.
25346         (Makefile.am): Arrange to compile and run test-locale-c++.
25347         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25348         gl_MODULE_INDICATOR.
25349
25350         Tests of module 'langinfo' in C++ mode.
25351         * tests/test-langinfo-c++.cc: New file.
25352         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25353         (Depends-on): Add ansi-c++-opt.
25354         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25355         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25356         gl_MODULE_INDICATOR.
25357
25358         Tests of module 'iconv-h' in C++ mode.
25359         * tests/test-iconv-h-c++.cc: New file.
25360         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25361         (Depends-on): Add ansi-c++-opt.
25362         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25363
25364         Tests of module 'glob' in C++ mode.
25365         * tests/test-glob-c++.cc: New file.
25366         * modules/glob-tests (Files): Add it.
25367         (Depends-on): Add ansi-c++-opt.
25368         (Makefile.am): Arrange to compile and run test-glob-c++.
25369
25370         Tests of module 'fcntl-h' in C++ mode.
25371         * tests/test-fcntl-h-c++.cc: New file.
25372         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25373         (Depends-on): Add ansi-c++-opt.
25374         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25375         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25376         gl_MODULE_INDICATOR.
25377
25378         Tests of module 'dirent' in C++ mode.
25379         * tests/test-dirent-c++.cc: New file.
25380         * modules/dirent-tests (Files): Add it and tests/signature.h.
25381         (Depends-on): Add ansi-c++-opt.
25382         (Makefile.am): Arrange to compile and run test-dirent-c++.
25383         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25384         gl_MODULE_INDICATOR.
25385
25386         New module 'ansi-c++-opt'.
25387         * modules/ansi-c++-opt: New file.
25388         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25389
25390         Document C++ namespace mode.
25391         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25392
25393         wctype: Avoid #define replacements in C++ mode.
25394         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25395         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25396         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25397         In C++, define a namespaced alias symbol.
25398         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25399         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25400         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25401         rule.
25402
25403         wchar: Avoid #define replacements in C++ mode.
25404         * lib/wchar.in.h: Include c++defs.h.
25405         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25406         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25407         symbol.
25408         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25409         * modules/wchar (Depends-on): Add c++defs.
25410         (Makefile.am): Update wchar.h rule.
25411
25412         unistd: Avoid #define replacements in C++ mode.
25413         * lib/unistd.in.h: Include c++defs.h.
25414         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25415         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25416         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25417         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25418         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25419         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25420         symbol.
25421         (environ): Update.
25422         * modules/unistd (Depends-on): Add c++defs.
25423         (Makefile.am): Update unistd.h rule.
25424
25425         time: Avoid #define replacements in C++ mode.
25426         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25427         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25428         define a namespaced alias symbol.
25429         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25430         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25431         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25432         * modules/time (Depends-on): Add c++defs, warn-on-use.
25433         (Makefile.am): Update time.h rule.
25434         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25435         * modules/nanosleep (configure.ac): Likewise.
25436         * modules/strptime (configure.ac): Likewise.
25437         * modules/timegm (configure.ac): Likewise.
25438
25439         sys_time: Avoid #define replacements in C++ mode.
25440         * lib/sys_time.in.h: Include c++defs.h.
25441         (gettimeofday): In C++, define a namespaced alias symbol.
25442         * modules/sys_time (Depends-on): Add c++defs.
25443         (Makefile.am): Update sys/time.h rule.
25444
25445         sys_stat: Avoid #define replacements in C++ mode.
25446         * lib/sys_stat.in.h: Include c++defs.h.
25447         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25448         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25449         namespaced alias symbol.
25450         In C++, define a namespaced alias symbol.
25451         * modules/sys_stat (Depends-on): Add c++defs.
25452         (Makefile.am): Update sys/stat.h rule.
25453
25454         sys_socket: Avoid #define replacements in C++ mode.
25455         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25456         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25457         definitions also when the system has a <sys/socket.h>.
25458         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25459         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25460         In C++, define a namespaced alias symbol.
25461         * modules/sys_socket (Depends-on): Add c++defs.
25462         (Makefile.am): Update sys/socket.h rule.
25463
25464         sys_select: Avoid #define replacements in C++ mode.
25465         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25466         definitions also when the system has a <sys/select.h>.
25467         (select): In C++, define a namespaced alias symbol.
25468         * modules/sys_select (Depends-on): Add c++defs.
25469         (Makefile.am): Update sys/select.h rule.
25470
25471         sys_ioctl: Avoid #define replacements in C++ mode.
25472         * lib/sys_ioctl.in.h: Include c++defs.h.
25473         (ioctl): In C++, define a namespaced alias symbol.
25474         * modules/sys_ioctl (Depends-on): Add c++defs.
25475         (Makefile.am): Update sys/ioctl.h rule.
25476
25477         string: Avoid #define replacements in C++ mode.
25478         * lib/string.in.h: Include c++defs.h.
25479         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25480         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25481         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25482         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25483         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25484         * modules/string (Depends-on): Add c++defs.
25485         (Makefile.am): Update string.h rule.
25486
25487         stdlib: Avoid #define replacements in C++ mode.
25488         * lib/stdlib.in.h: Include c++defs.h.
25489         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25490         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25491         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25492         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25493         symbol.
25494         * modules/stdlib (Depends-on): Add c++defs.
25495         (Makefile.am): Update stdlib.h rule.
25496
25497         stdio: Avoid #define replacements in C++ mode.
25498         * lib/stdio.in.h: Include c++defs.h.
25499         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25500         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25501         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25502         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25503         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25504         namespaced alias symbol.
25505         * modules/stdio (Depends-on): Add c++defs.
25506         (Makefile.am): Update stdio.h rule.
25507
25508         spawn: Avoid #define replacements in C++ mode.
25509         * lib/spawn.in.h: Include c++defs.h.
25510         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25511         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25512         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25513         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25514         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25515         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25516         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25517         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25518         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25519         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25520         In C++, define a namespaced alias symbol.
25521         * modules/spawn (Depends-on): Add c++defs.
25522         (Makefile.am): Update spawn.h rule.
25523
25524         signal: Avoid #define replacements in C++ mode.
25525         * lib/signal.in.h: Include c++defs.h.
25526         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25527         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25528         namespaced alias symbol.
25529         * modules/signal (Depends-on): Add c++defs.
25530         (Makefile.am): Update signal.h rule.
25531
25532         search: Avoid #define replacements in C++ mode.
25533         * lib/search.in.h: Include c++defs.h.
25534         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25535         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25536         symbol.
25537         * modules/search (Depends-on): Add c++defs.
25538         (Makefile.am): Update search.h rule.
25539
25540         math: Avoid #define replacements in C++ mode.
25541         * lib/math.in.h: Include c++defs.h.
25542         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25543         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25544         trunc, truncl): In C++, define a namespaced alias symbol.
25545         * modules/math (Depends-on): Add c++defs.
25546         (Makefile.am): Update math.h rule.
25547
25548         locale: Avoid #define replacements in C++ mode.
25549         * lib/locale.in.h: Include c++defs.h.
25550         (duplocale): In C++, define a namespaced alias symbol.
25551         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25552         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25553         * modules/locale (Depends-on): Add c++defs.
25554         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25555
25556         langinfo: Avoid #define replacements in C++ mode.
25557         * lib/langinfo.in.h: Include c++defs.h.
25558         (nl_langinfo): In C++, define a namespaced alias symbol.
25559         * modules/langinfo (Depends-on): Add c++defs.
25560         (Makefile.am): Update langinfo.h rule.
25561
25562         iconv-h: Avoid #define replacements in C++ mode.
25563         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25564         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25565         symbol.
25566         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25567         whenever iconv is present.
25568         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25569         (Makefile.am): Update iconv.h rule.
25570
25571         glob: Avoid #define replacements in C++ mode.
25572         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25573         (_gl_glob_errfunc_fn): New type.
25574         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25575         symbol.
25576         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25577         (Makefile.am): Update glob.h rule.
25578
25579         fcntl-h: Avoid #define replacements in C++ mode.
25580         * lib/fcntl.in.h: Include c++defs.h.
25581         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25582         * modules/fcntl-h (Depends-on): Add c++defs.
25583         (Makefile.am): Update fcntl.h rule.
25584
25585         dirent: Avoid #define replacements in C++ mode.
25586         * lib/dirent.in.h: Include c++defs.h.
25587         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25588         namespaced alias symbol.
25589         (dirfd): Update declaration.
25590         * modules/dirent (Depends-on): Add c++defs.
25591         (Makefile.am): Update dirent.h rule.
25592
25593         ctype: Make it usable in C++ code.
25594         * lib/ctype.in.h: Include c++defs.h.
25595         (isblank): Declare as extern "C".
25596         * modules/ctype (Depends-on): Add c++defs.
25597         (Makefile.am): Update ctype.h rule.
25598
25599         New module 'c++defs'.
25600         * modules/c++defs: New file.
25601         * build-aux/c++defs.h: New file.
25602         Reported by John W. Eaton <jwe@gnu.org>.
25603
25604 2010-03-07  Bruno Haible  <bruno@clisp.org>
25605
25606         logb: Provide missing declaration for Cygwin.
25607         * lib/math.in.h (logb): New declaration.
25608         * m4/logb.m4: New file.
25609         * modules/logb (Files): Add m4/logb.m4.
25610         (Depends-on): Add math.
25611         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25612         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25614         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25615         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25616
25617 2010-03-07  Bruno Haible  <bruno@clisp.org>
25618
25619         Fix test-cond link error.
25620         * tests/test-cond.c: Include <stdio.h>.
25621
25622 2010-03-07  Bruno Haible  <bruno@clisp.org>
25623
25624         Fix test-dirent-safer link error.
25625         * modules/dirent-safer-tests (Makefile.am): Define
25626         test_dirent_safer_LDADD.
25627
25628 2010-03-07  Bruno Haible  <bruno@clisp.org>
25629
25630         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25631         among default module list.
25632
25633 2010-03-07  Bruno Haible  <bruno@clisp.org>
25634
25635         Fix link error on platforms with GNU libiconv.
25636         * modules/unistr/u8-strcoll-tests (Makefile): Define
25637         test_u8_strcoll_LDADD.
25638         * modules/unistr/u16-strcoll-tests (Makefile): Define
25639         test_u16_strcoll_LDADD.
25640         * modules/unistr/u32-strcoll-tests (Makefile): Define
25641         test_u32_strcoll_LDADD.
25642
25643 2010-03-07  Bruno Haible  <bruno@clisp.org>
25644
25645         Use POSIX declarations for socket functions.
25646         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25647         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25648         rpl_sendto): Change declaration to match POSIX.
25649         * lib/connect.c (rpl_connect): Likewise.
25650         * lib/accept.c (rpl_accept): Likewise.
25651         * lib/bind.c (rpl_bind): Likewise.
25652         * lib/getpeername.c (rpl_getpeername): Likewise.
25653         * lib/getsockname.c (rpl_getsockname): Likewise.
25654         * lib/recv.c (rpl_recv): Likewise.
25655         * lib/send.c (rpl_send): Likewise.
25656         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25657         * lib/sendto.c (rpl_sendto): Likewise.
25658
25659 2010-03-06  Bruno Haible  <bruno@clisp.org>
25660
25661         Clarify access, euidaccess, faccessat.
25662         * doc/posix-functions/faccessat.texi: Mention security problem under
25663         "Other problems", not "Portability problems".
25664         * doc/posix-functions/access.texi: Likewise. Mention a related security
25665         problem.
25666         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25667         * lib/euidaccess.c: Add comments about platforms.
25668         * lib/unistd.in.h (access, euidaccess): Add warnings.
25669
25670 2010-03-07  Bruno Haible  <bruno@clisp.org>
25671
25672         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25673         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25674         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25675         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25676         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25677         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25678         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25679         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25680         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25681         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25682         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25683         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25684         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25685         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25686         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25687         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25688         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25689         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25690         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25691         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25692         Likewise.
25693         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25694         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25695         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25696         Likewise.
25697         * tests/test-spawn.c (main): Make it work when
25698         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25699
25700 2010-03-07  Bruno Haible  <bruno@clisp.org>
25701
25702         Fix incorrect Makefile.am generation in German locale.
25703         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25704         Execute sed command with character range in C locale.
25705
25706 2010-03-06  Bruno Haible  <bruno@clisp.org>
25707
25708         Tests for module 'iconv-h'.
25709         * modules/iconv-h-tests: New file.
25710         * tests/test-iconv-h.c: New file.
25711
25712         New module 'iconv-h'.
25713         * modules/iconv-h: New file.
25714         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25715         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25716         (configure.ac): Remove gl_ICONV_H.
25717         (Makefile.am): Remove rule for iconv.h.
25718
25719 2010-03-06  Bruno Haible  <bruno@clisp.org>
25720
25721         More consistent naming of *.m4 files.
25722         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25723         * modules/wctype (Files): Update.
25724
25725         More consistent naming of *.m4 files.
25726         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25727         * modules/wchar (Files): Update.
25728
25729 2010-03-06  Jim Meyering  <meyering@redhat.com>
25730
25731         euidaccess: relax license to LGPLv2+
25732         * modules/euidaccess (License): Relax to LGPLv2+.
25733
25734 2010-03-06  Bruno Haible  <bruno@clisp.org>
25735
25736         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25737         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25738         (Makefile.am): Augment lib_SOURCES instead.
25739
25740 2010-03-04  Jim Meyering  <meyering@redhat.com>
25741
25742         utime: remove obsolete module
25743         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25744         unnecessary for years, and has been marked as obsolete for 10 months.
25745         * modules/utime: Remove file.
25746         * lib/utime.c: Remove file.
25747         * m4/utime.m4: Remove file.
25748         * m4/utimes-null.m4: Remove file.
25749         * doc/posix-functions/utime.texi (utime): Remove reference to
25750         the module.  Move the sole "fixed by gnulib" item into the
25751         "problems not fixed by Gnulib" list.
25752         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25753
25754 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25755
25756         * modules/exit (License): Relax license to LGPLv2+.
25757         (Status): Mark as obsolete.
25758         * NEWS: Mention deprecated 'exit' module.
25759         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25760         of now obsolete 'exit'.
25761
25762 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25763
25764         fts-lgpl: remove unused module
25765         * modules/fts-lgpl: Remove.
25766         * MODULES.html.sh (func_all_modules): Adjust.
25767         * check-module (find_included_lib_files): Adjust.
25768         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25769
25770 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25771
25772         copy-acl: enhance Solaris ACL error handling
25773         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25774         * lib/set-mode-acl.c (qset_acl): Likewise.
25775
25776 2010-03-02  Bruno Haible  <bruno@clisp.org>
25777
25778         spawn: Don't override the system defined values on FreeBSD 8.
25779         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25780         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25781         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25782         if HAVE_POSIX_SPAWN is 1.
25783         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25784
25785 2010-03-01  Bruno Haible  <bruno@clisp.org>
25786
25787         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25788         regarding Automake.
25789
25790 2010-02-25  Bruno Haible  <bruno@clisp.org>
25791
25792         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25793         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25794         setting, not afterwards.
25795         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25796
25797 2010-02-24  Eric Blake  <eblake@redhat.com>
25798
25799         bootstrap, git-version-gen: use timestamp
25800         * build-aux/git-version-gen (scriptversion): Force UTC.
25801         * build-aux/bootstrap (scriptversion): New variable.
25802
25803         bootstrap: allow older git
25804         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25805         older than 1.6.4.  Requested by the libvirt project.
25806
25807 2010-02-23  Eric Blake  <eblake@redhat.com>
25808
25809         warn-on-use: work with old autoconf
25810         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25811         AS_VAR semantics of autoconf 2.60.
25812         Reported by Bruno Haible.
25813
25814         bootstrap: improve some comments
25815         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25816         clarification comments.
25817
25818         gettimeofday: provide correct function
25819         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25820         when replacement is declared, otherwise provide gettimeofday.
25821         Reported by Michael Goffioul.
25822
25823 2010-02-23  Jim Meyering  <meyering@redhat.com>
25824
25825         lib-ignore: relax license to "unlimited", not LGPLv2+
25826         * modules/lib-ignore (License): Relax to "unlimited".
25827
25828 2010-02-23  Jim Meyering  <meyering@redhat.com>
25829
25830         lib-ignore: relax license to LGPLv2+
25831         * modules/lib-ignore (License): Relax to LGPLv2+.
25832
25833 2010-02-22  Eric Blake  <eblake@redhat.com>
25834
25835         lseek: avoid bash 3.2 broken pipe bug
25836         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25837         warning from bash 3.2.
25838         Reported by Ben Pfaff, with analysis from Bruno Haible.
25839
25840         bootstrap: support non-FSF copyright holder
25841         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25842         bootstrap.conf override of COPYRIGHT_HOLDER.
25843         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25844
25845         bootstrap: interoperate with gettext 0.14.1
25846         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25847
25848         bootstrap: allow for alternate submodule location
25849         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25850         hardcoding submodule location.
25851         (gnulib_mk): Allow direct use of Makefile.am.
25852
25853         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25854         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25855         rather than reconfiguring where the submodule points.
25856
25857         gettimeofday: restore support for platforms that lack function
25858         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25859         replacement if function is missing.
25860         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25861         * modules/sys_time (Makefile.am): Substitute it.
25862         * lib/sys_time.in.h (gettimeofday): Check it.
25863         Reported by Michael Goffioul.
25864
25865 2010-02-21  Bruno Haible  <bruno@clisp.org>
25866
25867         * lib/stdio.in.h (obstack_printf): Fix typo.
25868
25869 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25870
25871         vc-list-files: use bzr ls's -R option
25872         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25873         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25874
25875 2010-02-21  Jim Meyering  <meyering@redhat.com>
25876
25877         init.sh: fix EXEEXT shims to work also for names like test-prog
25878         * tests/init.sh: Re-exec a better shell, when needed.
25879         If the current shell lacks support for posix $(...), an init.sh-using
25880         test will now try to find a shell that supports that.  If EXEEXT is
25881         nonempty, we also require support for hyphen-in-alias-name and shell
25882         substitutions like ${var#glob}.  Failure to find such a shell results
25883         in a skipped test.
25884
25885 2010-02-21  Bruno Haible  <bruno@clisp.org>
25886
25887         Really work around around "broken pipe" error message from bash 3.2.
25888         * gnulib-tool (func_reset_sigpipe): Remove function.
25889         (echo): In bash 3.2, define to a function that uses printf.
25890         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25891
25892 2010-02-20  Bruno Haible  <bruno@clisp.org>
25893
25894         Restore support for automake 1.9.6 with autoconf 2.61.
25895         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25896         Reported by James Youngman <jay@gnu.org>.
25897
25898 2010-02-20  Bruno Haible  <bruno@clisp.org>
25899
25900         Improve *printf warning condition.
25901         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25902         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25903         and the function is overridden due to SIGPIPE emulation.
25904
25905 2010-02-20  Bruno Haible  <bruno@clisp.org>
25906
25907         * lib/stdio.in.h: Tweak comments.
25908
25909 2010-02-19  Bruno Haible  <bruno@clisp.org>
25910
25911         Make it easier to find modules. New gnulib-tool option '--find'.
25912         * gnulib-tool: New option --find.
25913         (func_usage): Document it.
25914         (func_sanitize_modulelist): New function, extracted from
25915         func_all_modules.
25916         (func_all_modules): Invoke it.
25917         * doc/gnulib-tool.texi (Which modules?): New node.
25918
25919 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25920
25921         * lib/sys_select.in.h: Provide select replacement even if
25922         sys/select.h exists on a system, for Interix.
25923
25924 2010-02-18  Jim Meyering  <meyering@redhat.com>
25925
25926         init.sh: don't use $(...) just yet
25927         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25928         to accommodate e.g., Solaris' /bin/sh.
25929
25930 2010-02-17  Bruno Haible  <bruno@clisp.org>
25931
25932         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25933         Reported by Ludovic Courtès <ludo@gnu.org>.
25934
25935 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25936
25937         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25938         linking with -lintl.
25939
25940 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25941
25942         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25943         if not provided by the system's netdb.h.  Reported by
25944         ludo@gnu.org (Ludovic Courtès).
25945
25946 2010-02-15  Jim Meyering  <meyering@redhat.com>
25947
25948         init.sh: improve portability and efficiency
25949         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25950         "dummy" in a for loop.
25951         Use '!', not '^' to select the complement of a character set used
25952         in a "case" statement.
25953         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25954         Suggestions from Eric Blake.
25955
25956         init.sh: automatically accommodate programs with the .exe suffix
25957         Automatically arrange for an invocation of "prog" to execute the
25958         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25959         may use the simpler "prog", yet still work when built on a system
25960         that requires specifying the added suffix.
25961         Do this by constructing a function named "prog" that invokes
25962         "prog.exe" for each .exe file in selected directories.
25963         * tests/init.sh (find_exe_basenames_): New function.
25964         (create_exe_shim_functions_): New function.
25965         (path_prepend_): Use it.
25966
25967         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25968         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25969         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25970
25971 2010-02-14  Jim Meyering  <meyering@redhat.com>
25972
25973         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25974         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25975         (sc_prohibit_hash_pjw_without_use): New rule.
25976
25977         maint.mk: allow the default upload destination dir to be overridden
25978         * top/maint.mk (upload_dest_dir_): Define with a default that
25979         preserves the status quo.
25980         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25981         Reported by Peter Simons.
25982
25983         maint.mk: prohibit inclusion of "hash.h" without_use
25984         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25985
25986 2010-02-10  Jim Meyering  <meyering@redhat.com>
25987
25988         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25989         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25990
25991 2010-02-09  Eric Blake  <ebb9@byu.net>
25992         and Bruno Haible  <bruno@clisp.org>
25993
25994         obstack-printf-posix: ensure declaration
25995         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25996         extracted from gl_FUNC_OBSTACK_PRINTF.
25997         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25998         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25999         Likewise.
26000         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26001         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26002         0.
26003
26004 2010-02-08  Bruno Haible  <bruno@clisp.org>
26005
26006         gnulib-tool: Fix typo in 2010-02-07 commit.
26007         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26008         Reported by Eric Blake.
26009
26010 2010-02-07  Bruno Haible  <bruno@clisp.org>
26011
26012         gnulib-tool: Fix up caching patches.
26013         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26014         option --no-cache. Use associative arrays when supported by the shell.
26015         (sed_comments): New variable.
26016         (modcache): Renamed from do_cache.
26017         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26018         abbreviate unnecessarily.
26019         (have_associative): New variable.
26020         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26021         way also for ksh and zsh.
26022         (func_init_sed_convert_to_cache_statements): New function, extracted
26023         from func_cache_lookup_module. Add support for associative arrays.
26024         Don't set the c_MODULE_cached variable here. Ignore all lines before
26025         the first field header. Remove only the final newline, not all trailing
26026         newlines. Support empty fields correctly. Limit the use of 'eval' to
26027         assignments.
26028         (func_get_description, func_get_status, func_get_notice,
26029         func_get_applicability, func_get_filelist, func_get_dependencies,
26030         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26031         func_get_automake_snippet, func_get_include_directive,
26032         func_get_link_directive, func_get_license, func_get_maintainer):
26033         Update documentation. List the unoptimized code first. Add support for
26034         associative arrays. Limit the use of 'eval' to assignments.
26035         (func_get_applicability): Undo stylistic pessimisations.
26036         (func_get_automake_snippet, func_get_include_directive): Reduce code
26037         duplication.
26038         (func_modules_transitive_closure, func_modules_add_dummy,
26039         func_modules_notice, func_modules_to_filelist, func_add_file,
26040         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26041         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26042         func_create_testdir, func_create_megatestdir): Update documentation.
26043
26044 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26045
26046         * gnulib-tool (func_cache_lookup_module): Store the module name
26047         belonging to the cache variable; error out if two different
26048         module names map to the same cache variable name.
26049
26050 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26051
26052         gnulib-tool: Make caching optional.
26053         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26054         Update matching short versions of --no-changelog.
26055         (func_usage): Update.
26056         (sed_extract_cache_prog): Renamed from ...
26057         (sed_extract_prog): ... this; revert to old extraction script.
26058         (func_get_description, func_get_status)
26059         (func_get_notice, func_get_applicability, func_get_filelist)
26060         (func_get_dependencies, func_get_autoconf_early_snippet)
26061         (func_get_autoconf_snippet, func_get_automake_snippet)
26062         (func_get_include_directive, func_get_link_directive)
26063         (func_get_license, func_get_maintainer): If $do_cache is false,
26064         use old, non-caching extraction scripts.
26065         Suggestion by Bruno Haible.
26066
26067 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26068
26069         gnulib-tool: cache module metainformation.
26070         * gnulib-tool (sed_extract_prog): Match newline before each
26071         header, and rewrite header to a shell variable suffix.
26072         (func_cache_var, func_cache_lookup_module): New functions,
26073         to turn a module name into a cache variable prefix, and to
26074         look up and cache module metainformation.
26075         (func_get_description, func_get_status)
26076         (func_get_notice, func_get_applicability, func_get_filelist)
26077         (func_get_dependencies, func_get_autoconf_early_snippet)
26078         (func_get_autoconf_snippet, func_get_automake_snippet)
26079         (func_get_include_directive, func_get_link_directive)
26080         (func_get_license, func_get_maintainer): Use
26081         func_cache_lookup_module.
26082
26083 2010-02-07  Bruno Haible  <bruno@clisp.org>
26084
26085         fnctl: Fix missing dependency.
26086         * modules/fcntl (Depends-on): Add getdtablesize.
26087         Reported by John W. Eaton <jwe@gnu.org>.
26088
26089 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26090
26091         Argp: fix recognition of short alias options.
26092
26093         * lib/argp-parse.c (convert_options): Fix improper use of
26094         `|' between character values.
26095         * tests/test-argp.c (group1_option): New alias option
26096         --read (-r).
26097         (group1_parser): Special handling for 'r'.
26098         (test15): New test case.
26099         (test_fun): Add test15.
26100         * tests/test-argp-2.sh: Update expected --help and --usage
26101         outputs.
26102
26103 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26104
26105         * tests/test-argp.c: Fix indentation.
26106
26107 2010-02-04  Eric Blake  <ebb9@byu.net>
26108
26109         gettimeofday: expose type of second argument
26110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26111         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26112         * tests/test-gettimeofday.c: Use it to silence warning.
26113         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26114         the issue.
26115
26116 2010-02-03  Jim Meyering  <meyering@redhat.com>
26117
26118         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26119         * lib/regcomp.c (TYPE_SIGNED): Define.
26120         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26121
26122         regcomp.c: avoid a new -Wshadow warning
26123         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26124
26125 2010-02-01  Jim Meyering  <meyering@redhat.com>
26126
26127         removing useless parentheses in cpp #define directives
26128         For motivation, see commit c0221df4, "define STREQ(a,b)
26129         consistently, removing useless parentheses"
26130         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26131         * lib/mountlist.c (MNT_IGNORE): Likewise.
26132         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26133
26134 2010-02-01  Eric Blake  <ebb9@byu.net>
26135
26136         sys_time: use link-warning
26137         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26138         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26139         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26140         * modules/sys_time (Depends-on): Add warn-on-use.
26141         (Makefile.am): Always build replacement.
26142         (configure.ac): Update substitutions.
26143         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26144         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26145         bother with SYS_TIME_H.
26146         * modules/gettimeofday (configure.ac): Declare indicator.
26147         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26148         in use.
26149
26150         closein-tests: silence compiler warning
26151         * tests/test-closein.c (main): Ignore fread result.
26152         * modules/closein-tests (Depends-on): Add ignore-value.
26153
26154         tests: silence warning about system return
26155         * tests/test-areadlink-with-size.c (main): Ignore system result.
26156         * tests/test-areadlink.c (main): Likewise.
26157         * tests/test-areadlinkat-with-size.c (main): Likewise.
26158         * tests/test-areadlinkat.c (main): Likewise.
26159         * tests/test-canonicalize-lgpl.c (main): Likewise.
26160         * tests/test-canonicalize.c (main): Likewise.
26161         * tests/test-chown.c (main): Likewise.
26162         * tests/test-fchownat.c (main): Likewise.
26163         * tests/test-fdutimensat.c (main): Likewise.
26164         * tests/test-fstatat.c (main): Likewise.
26165         * tests/test-futimens.c (main): Likewise.
26166         * tests/test-lchown.c (main): Likewise.
26167         * tests/test-link.c (main): Likewise.
26168         * tests/test-linkat.c (main): Likewise.
26169         * tests/test-lstat.c (main): Likewise.
26170         * tests/test-mkdir.c (main): Likewise.
26171         * tests/test-mkdirat.c (main): Likewise.
26172         * tests/test-mkfifo.c (main): Likewise.
26173         * tests/test-mkfifoat.c (main): Likewise.
26174         * tests/test-mknod.c (main): Likewise.
26175         * tests/test-readlink.c (main): Likewise.
26176         * tests/test-remove.c (main): Likewise.
26177         * tests/test-rename.c (main): Likewise.
26178         * tests/test-renameat.c (main): Likewise.
26179         * tests/test-rmdir.c (main): Likewise.
26180         * tests/test-symlink.c (main): Likewise.
26181         * tests/test-symlinkat.c (main): Likewise.
26182         * tests/test-unlink.c (main): Likewise.
26183         * tests/test-unlinkat.c (main): Likewise.
26184         * tests/test-utimens.c (main): Likewise.
26185         * tests/test-utimensat.c (main): Likewise.
26186         * modules/areadlink-tests (Depends-on): Add ignore-value.
26187         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26188         * modules/areadlinkat-tests (Depends-on): Likewise.
26189         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26190         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26191         * modules/canonicalize-tests (Depends-on): Likewise.
26192         * modules/chown-tests (Depends-on): Likewise.
26193         * modules/fdutimensat-tests (Depends-on): Likewise.
26194         * modules/futimens-tests (Depends-on): Likewise.
26195         * modules/lchown-tests (Depends-on): Likewise.
26196         * modules/link-tests (Depends-on): Likewise.
26197         * modules/linkat-tests (Depends-on): Likewise.
26198         * modules/lstat-tests (Depends-on): Likewise.
26199         * modules/mkdir-tests (Depends-on): Likewise.
26200         * modules/mkfifo-tests (Depends-on): Likewise.
26201         * modules/mkfifoat-tests (Depends-on): Likewise.
26202         * modules/mknod-tests (Depends-on): Likewise.
26203         * modules/openat-tests (Depends-on): Likewise.
26204         * modules/readlink-tests (Depends-on): Likewise.
26205         * modules/remove-tests (Depends-on): Likewise.
26206         * modules/rename-tests (Depends-on): Likewise.
26207         * modules/renameat-tests (Depends-on): Likewise.
26208         * modules/rmdir-tests (Depends-on): Likewise.
26209         * modules/symlink-tests (Depends-on): Likewise.
26210         * modules/symlinkat-tests (Depends-on): Likewise.
26211         * modules/unlink-tests (Depends-on): Likewise.
26212         * modules/utimens-tests (Depends-on): Likewise.
26213         * modules/utimensat-tests (Depends-on): Likewise.
26214
26215 2010-01-31  Bruno Haible  <bruno@clisp.org>
26216
26217         Perform the same test for many <math.h> functions.
26218         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26219         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26220         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26221         of gl_MATHFUNC.
26222         * modules/acos (configure.ac): Likewise.
26223         * modules/asin (configure.ac): Likewise.
26224         * modules/atan (configure.ac): Likewise.
26225         * modules/atan2 (configure.ac): Likewise.
26226         * modules/cbrt (configure.ac): Likewise.
26227         * modules/copysign (configure.ac): Likewise.
26228         * modules/cos (configure.ac): Likewise.
26229         * modules/cosh (configure.ac): Likewise.
26230         * modules/erf (configure.ac): Likewise.
26231         * modules/erfc (configure.ac): Likewise.
26232         * modules/exp (configure.ac): Likewise.
26233         * modules/fmod (configure.ac): Likewise.
26234         * modules/hypot (configure.ac): Likewise.
26235         * modules/j0 (configure.ac): Likewise.
26236         * modules/j1 (configure.ac): Likewise.
26237         * modules/jn (configure.ac): Likewise.
26238         * modules/lgamma (configure.ac): Likewise.
26239         * modules/log (configure.ac): Likewise.
26240         * modules/log10 (configure.ac): Likewise.
26241         * modules/log1p (configure.ac): Likewise.
26242         * modules/pow (configure.ac): Likewise.
26243         * modules/remainder (configure.ac): Likewise.
26244         * modules/sin (configure.ac): Likewise.
26245         * modules/sinh (configure.ac): Likewise.
26246         * modules/tan (configure.ac): Likewise.
26247         * modules/tanh (configure.ac): Likewise.
26248         * modules/y0 (configure.ac): Likewise.
26249         * modules/y1 (configure.ac): Likewise.
26250         * modules/yn (configure.ac): Likewise.
26251         Suggested by Paolo Bonzini.
26252
26253 2010-01-31  Bruno Haible  <bruno@clisp.org>
26254
26255         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26256
26257 2010-01-31  Bruno Haible  <bruno@clisp.org>
26258
26259         Work around getdelim() bug on FreeBSD 8.0.
26260         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26261         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26262         not work.
26263         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26264         is 1.
26265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26266         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26267         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26268         a non-zero size.
26269         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26270
26271 2010-01-31  Bruno Haible  <bruno@clisp.org>
26272
26273         Work around getline() bug on FreeBSD 8.0.
26274         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26275         and a non-zero size.
26276         * tests/test-getline.c (main): Likewise.
26277         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26278         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26279
26280 2010-01-28  Eric Blake  <ebb9@byu.net>
26281
26282         regex: fix build failure
26283         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26284         platforms.
26285
26286 2010-01-28  Jim Meyering  <meyering@redhat.com>
26287
26288         regex: do not ignore memory allocation failure
26289         * lib/regex_internal.c (create_cd_newstate): Detect
26290         re_node_set_init_copy failure.   Extracted from glibc commit
26291         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26292
26293         regex: sync more white-space changes from libc
26294         * lib/regex_internal.c: White-space only changes.
26295         * lib/regexec.c: Likewise.
26296
26297         regex: add many uses of __attribute_warn_unused_result__
26298         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26299         * lib/regexec.c: Likewise.
26300         Extracted from a messy glibc commit.
26301
26302         regcomp.c: spelling and merge-artifact from glibc
26303         * lib/regcomp.c: Merge remainder of glibc's
26304         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26305
26306         regcomp.c: sync white-space changes from glibc
26307         * lib/regcomp.c: Merge to accommodate white space
26308         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26309
26310         regcomp.c: do not ignore internal return values
26311         * lib/regcomp.c: Do not ignore internal return values.
26312         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26313         but without its white-space changes and spelling fixes.
26314
26315         regex_internal.h: define __attribute_warn_unused_result__
26316         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26317
26318         maint: add a syntax-check rule to check for vulnerable Makefile.in
26319         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26320
26321 2010-01-27  Jim Meyering  <meyering@redhat.com>
26322
26323         ncftpput-ftp: clean up spaces
26324         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26325         Remove trailing blanks.
26326
26327 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26328
26329         * build-aux/git-version-gen: Fix copyright statement.
26330         * build-aux/gnupload: Likewise.
26331         * tests/test-arcfour.c: Likewise.
26332         * tests/test-arctwo.c: Likewise.
26333         * tests/test-count-one-bits.c: Likewise.
26334         * tests/test-crc.c: Likewise.
26335         * tests/test-des.c: Likewise.
26336         * tests/test-gc-arcfour.c: Likewise.
26337         * tests/test-gc-arctwo.c: Likewise.
26338         * tests/test-gc-des.c: Likewise.
26339         * tests/test-gc-hmac-md5.c: Likewise.
26340         * tests/test-gc-hmac-sha1.c: Likewise.
26341         * tests/test-gc-md2.c: Likewise.
26342         * tests/test-gc-md4.c: Likewise.
26343         * tests/test-gc-md5.c: Likewise.
26344         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26345         * tests/test-gc-rijndael.c: Likewise.
26346         * tests/test-gc-sha1.c: Likewise.
26347         * tests/test-gc.c: Likewise.
26348         * tests/test-gethostname.c: Likewise.
26349         * tests/test-gettimeofday.c: Likewise.
26350         * tests/test-hash.c: Likewise.
26351         * tests/test-hmac-md5.c: Likewise.
26352         * tests/test-hmac-sha1.c: Likewise.
26353         * tests/test-md2.c: Likewise.
26354         * tests/test-md4.c: Likewise.
26355         * tests/test-md5.c: Likewise.
26356         * tests/test-memchr.c: Likewise.
26357         * tests/test-memchr2.c: Likewise.
26358         * tests/test-memcmp.c: Likewise.
26359         * tests/test-memmem.c: Likewise.
26360         * tests/test-memrchr.c: Likewise.
26361         * tests/test-rawmemchr.c: Likewise.
26362         * tests/test-read-file.c: Likewise.
26363         * tests/test-rijndael.c: Likewise.
26364         * tests/test-sockets.c: Likewise.
26365         * tests/test-strchrnul.c: Likewise.
26366         * tests/test-strstr.c: Likewise.
26367         * tests/test-strtod.c: Likewise.
26368         * build-aux/ncftpput-ftp: Likewise.
26369
26370 2010-01-26  Eric Blake  <ebb9@byu.net>
26371
26372         ignore-value: update recommended header name
26373         * modules/ignore-value (Include): Only use <> for headers that
26374         exist in glibc.
26375
26376 2010-01-26  Jim Meyering  <meyering@redhat.com>
26377
26378         test-userspec.c: avoid compiler warnings
26379         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26380         and "initialization discards qualifiers..." warnings.
26381         Put the first "uid" in its own scope, and make char* members "const".
26382
26383 2010-01-25  Bruno Haible  <bruno@clisp.org>
26384
26385         gnulib-tool: Make warning diagnostics consistent.
26386         * gnulib-tool (func_warning): New function.
26387         Use it everywhere where gnulib-tool produces output to stderr and it is
26388         not a fatal error.
26389
26390 2010-01-25  Bruno Haible  <bruno@clisp.org>
26391
26392         Fix test dependencies.
26393         * modules/xstrtol-tests (Depends-on): Add inttypes.
26394         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26395
26396 2010-01-25 Pádraig Brady <P@draigBrady.com>
26397
26398         syntax-check: detect incorrect boolean macro values in config.h
26399         * modules/maintainer-makefile (configure.ac): Parameterize the location
26400         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26401         The logic is from Eric Blake and the location indicated by Jim Meyering.
26402         Note the more natural CONFIG_HEADER name is prohibited by automake
26403         for backwards compatibility reasons.
26404         * top/maint.mk (sc_Wundef_boolean): New rule.
26405
26406 2010-01-25  Jim Meyering  <meyering@redhat.com>
26407
26408         bootstrap: detect MacOS 10.6's shasum, too
26409         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26410         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26411
26412 2010-01-23  Jim Meyering  <meyering@redhat.com>
26413
26414         xstrtoll: new module
26415         * modules/xstrtoll: New file.
26416         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26417         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26418         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26419         ./configure fails if you use this module and lack "long long".
26420         * modules/xstrtoll-tests: New module.
26421         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26422         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26423         new init.sh-based test framework.
26424
26425 2010-01-24  Bruno Haible  <bruno@clisp.org>
26426
26427         Tests for module 'yn'.
26428         * modules/yn-tests: New file.
26429         * tests/test-yn.c: New file.
26430
26431         Tests for module 'y1'.
26432         * modules/y1-tests: New file.
26433         * tests/test-y1.c: New file.
26434
26435         Tests for module 'y0'.
26436         * modules/y0-tests: New file.
26437         * tests/test-y0.c: New file.
26438
26439         Tests for module 'tanh'.
26440         * modules/tanh-tests: New file.
26441         * tests/test-tanh.c: New file.
26442
26443         Tests for module 'tan'.
26444         * modules/tan-tests: New file.
26445         * tests/test-tan.c: New file.
26446
26447         Tests for module 'sqrt'.
26448         * modules/sqrt-tests: New file.
26449         * tests/test-sqrt.c: New file.
26450
26451         Tests for module 'sinh'.
26452         * modules/sinh-tests: New file.
26453         * tests/test-sinh.c: New file.
26454
26455         Tests for module 'sin'.
26456         * modules/sin-tests: New file.
26457         * tests/test-sin.c: New file.
26458
26459         Tests for module 'rint'.
26460         * modules/rint-tests: New file.
26461         * tests/test-rint.c: New file.
26462
26463         Tests for module 'remainder'.
26464         * modules/remainder-tests: New file.
26465         * tests/test-remainder.c: New file.
26466
26467         Tests for module 'pow'.
26468         * modules/pow-tests: New file.
26469         * tests/test-pow.c: New file.
26470
26471         Tests for module 'nextafter'.
26472         * modules/nextafter-tests: New file.
26473         * tests/test-nextafter.c: New file.
26474
26475         Tests for module 'modf'.
26476         * modules/modf-tests: New file.
26477         * tests/test-modf.c: New file.
26478
26479         Tests for module 'logb'.
26480         * modules/logb-tests: New file.
26481         * tests/test-logb.c: New file.
26482
26483         Tests for module 'log1p'.
26484         * modules/log1p-tests: New file.
26485         * tests/test-log1p.c: New file.
26486
26487         Tests for module 'log10'.
26488         * modules/log10-tests: New file.
26489         * tests/test-log10.c: New file.
26490
26491         Tests for module 'log'.
26492         * modules/log-tests: New file.
26493         * tests/test-log.c: New file.
26494
26495         Tests for module 'lgamma'.
26496         * modules/lgamma-tests: New file.
26497         * tests/test-lgamma.c: New file.
26498
26499         Tests for module 'ldexp'.
26500         * modules/ldexp-tests: New file.
26501         * tests/test-ldexp.c: New file.
26502
26503         Tests for module 'jn'.
26504         * modules/jn-tests: New file.
26505         * tests/test-jn.c: New file.
26506
26507         Tests for module 'j1'.
26508         * modules/j1-tests: New file.
26509         * tests/test-j1.c: New file.
26510
26511         Tests for module 'j0'.
26512         * modules/j0-tests: New file.
26513         * tests/test-j0.c: New file.
26514
26515         Tests for module 'hypot'.
26516         * modules/hypot-tests: New file.
26517         * tests/test-hypot.c: New file.
26518
26519         Tests for module 'fmod'.
26520         * modules/fmod-tests: New file.
26521         * tests/test-fmod.c: New file.
26522
26523         Tests for module 'fabs'.
26524         * modules/fabs-tests: New file.
26525         * tests/test-fabs.c: New file.
26526
26527         Tests for module 'exp'.
26528         * modules/exp-tests: New file.
26529         * tests/test-exp.c: New file.
26530
26531         Tests for module 'erfc'.
26532         * modules/erfc-tests: New file.
26533         * tests/test-erfc.c: New file.
26534
26535         Tests for module 'erf'.
26536         * modules/erf-tests: New file.
26537         * tests/test-erf.c: New file.
26538
26539         Tests for module 'cosh'.
26540         * modules/cosh-tests: New file.
26541         * tests/test-cosh.c: New file.
26542
26543         Tests for module 'cos'.
26544         * modules/cos-tests: New file.
26545         * tests/test-cos.c: New file.
26546
26547         Tests for module 'copysign'.
26548         * modules/copysign-tests: New file.
26549         * tests/test-copysign.c: New file.
26550
26551         Tests for module 'cbrt'.
26552         * modules/cbrt-tests: New file.
26553         * tests/test-cbrt.c: New file.
26554
26555         Tests for module 'atan2'.
26556         * modules/atan2-tests: New file.
26557         * tests/test-atan2.c: New file.
26558
26559         Tests for module 'atan'.
26560         * modules/atan-tests: New file.
26561         * tests/test-atan.c: New file.
26562
26563         Tests for module 'asin'.
26564         * modules/asin-tests: New file.
26565         * tests/test-asin.c: New file.
26566
26567         Tests for module 'acos'.
26568         * modules/acos-tests: New file.
26569         * tests/test-acos.c: New file.
26570
26571 2010-01-24  Bruno Haible  <bruno@clisp.org>
26572
26573         Fix tests for common <math.h> functions.
26574         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26575         code snippet that references the function pointer, rather than merely
26576         calling the function. Substitute the FUNC_LIBM variable.
26577         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26578         * modules/acos (configure.ac): Likewise.
26579         * modules/asin (configure.ac): Likewise.
26580         * modules/atan (configure.ac): Likewise.
26581         * modules/atan2 (configure.ac): Likewise.
26582         * modules/cbrt (configure.ac): Likewise.
26583         * modules/copysign (configure.ac): Likewise.
26584         * modules/cos (configure.ac): Likewise.
26585         * modules/cosh (configure.ac): Likewise.
26586         * modules/erf (configure.ac): Likewise.
26587         * modules/erfc (configure.ac): Likewise.
26588         * modules/exp (configure.ac): Likewise.
26589         * modules/fabs (configure.ac): Likewise.
26590         * modules/fmod (configure.ac): Likewise.
26591         * modules/hypot (configure.ac): Likewise.
26592         * modules/j0 (configure.ac): Likewise.
26593         * modules/j1 (configure.ac): Likewise.
26594         * modules/jn (configure.ac): Likewise.
26595         * modules/ldexp (configure.ac): Likewise.
26596         * modules/lgamma (configure.ac): Likewise.
26597         * modules/log (configure.ac): Likewise.
26598         * modules/log10 (configure.ac): Likewise.
26599         * modules/log1p (configure.ac): Likewise.
26600         * modules/logb (configure.ac): Likewise.
26601         * modules/modf (configure.ac): Likewise.
26602         * modules/nextafter (configure.ac): Likewise.
26603         * modules/pow (configure.ac): Likewise.
26604         * modules/remainder (configure.ac): Likewise.
26605         * modules/rint (configure.ac): Likewise.
26606         * modules/sin (configure.ac): Likewise.
26607         * modules/sinh (configure.ac): Likewise.
26608         * modules/tan (configure.ac): Likewise.
26609         * modules/tanh (configure.ac): Likewise.
26610         * modules/y0 (configure.ac): Likewise.
26611         * modules/y1 (configure.ac): Likewise.
26612         * modules/yn (configure.ac): Likewise.
26613
26614 2010-01-24  Bruno Haible  <bruno@clisp.org>
26615
26616         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26617         * tests/test-acosl.c (x): New variable.
26618         (main): Store argument in x and fetch it from x.
26619         * tests/test-asinl.c (x): New variable.
26620         (main): Store argument in x and fetch it from x.
26621         * tests/test-atanl.c (x): New variable.
26622         (main): Store argument in x and fetch it from x.
26623         * tests/test-cosl.c (x): New variable.
26624         (main): Store argument in x and fetch it from x.
26625         * tests/test-expl.c (x): New variable.
26626         (main): Store argument in x and fetch it from x.
26627         * tests/test-logl.c (x): New variable.
26628         (main): Store argument in x and fetch it from x.
26629         * tests/test-sinl.c (x): New variable.
26630         (main): Store argument in x and fetch it from x.
26631         * tests/test-sqrtl.c (x): New variable.
26632         (main): Store argument in x and fetch it from x.
26633         * tests/test-tanl.c (x): New variable.
26634         (main): Store argument in x and fetch it from x.
26635
26636 2010-01-24  Bruno Haible  <bruno@clisp.org>
26637
26638         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26639         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26640         assignments to the initial TESTS_ENVIRONMENT.
26641         * doc/gnulib.texi (Unit test modules): Document it.
26642         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26643         TESTS_ENVIRONMENT.
26644         * modules/btowc-tests (Makefile.am): Likewise.
26645         * modules/c-stack-tests (Makefile.am): Likewise.
26646         * modules/c-strcase-tests (Makefile.am): Likewise.
26647         * modules/copy-file-tests (Makefile.am): Likewise.
26648         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26649         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26650         * modules/mbrtowc-tests (Makefile.am): Likewise.
26651         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26652         * modules/mbscasestr-tests (Makefile.am): Likewise.
26653         * modules/mbschr-tests (Makefile.am): Likewise.
26654         * modules/mbscspn-tests (Makefile.am): Likewise.
26655         * modules/mbsinit-tests (Makefile.am): Likewise.
26656         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26657         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26658         * modules/mbspbrk-tests (Makefile.am): Likewise.
26659         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26660         * modules/mbsrchr-tests (Makefile.am): Likewise.
26661         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26662         * modules/mbsspn-tests (Makefile.am): Likewise.
26663         * modules/mbsstr-tests (Makefile.am): Likewise.
26664         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26665         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26666         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26667         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26668         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26669         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26670         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26671         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26672         * modules/wcrtomb-tests (Makefile.am): Likewise.
26673         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26674         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26675         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26676         assignments from TESTS_ENVIRONMENT.
26677         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26678         augmentation.
26679         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26680         * modules/atexit-tests (Makefile.am): Likewise.
26681         * modules/binary-io-tests (Makefile.am): Likewise.
26682         * modules/closein-tests (Makefile.am): Likewise.
26683         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26684         * modules/exclude-tests (Makefile.am): Likewise.
26685         * modules/fflush-tests (Makefile.am): Likewise.
26686         * modules/fpending-tests (Makefile.am): Likewise.
26687         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26688         * modules/freadahead-tests (Makefile.am): Likewise.
26689         * modules/freadptr-tests (Makefile.am): Likewise.
26690         * modules/freadseek-tests (Makefile.am): Likewise.
26691         * modules/fseek-tests (Makefile.am): Likewise.
26692         * modules/fseeko-tests (Makefile.am): Likewise.
26693         * modules/ftell-tests (Makefile.am): Likewise.
26694         * modules/ftello-tests (Makefile.am): Likewise.
26695         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26696         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26697         * modules/lseek-tests (Makefile.am): Likewise.
26698         * modules/parse-duration-tests (Makefile.am): Likewise.
26699         * modules/perror-tests (Makefile.am): Likewise.
26700         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26701         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26702         * modules/pipe-tests (Makefile.am): Likewise.
26703         * modules/pread-tests (Makefile.am): Likewise.
26704         * modules/printf-posix-tests (Makefile.am): Likewise.
26705         * modules/select-tests (Makefile.am): Likewise.
26706         * modules/sigpipe-tests (Makefile.am): Likewise.
26707         * modules/tsearch-tests (Makefile.am): Likewise.
26708         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26709         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26710         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26711         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26712         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26713         * modules/version-etc-tests (Makefile.am): Likewise.
26714         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26715         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26716         * modules/xalloc-die-tests (Makefile.am): Likewise.
26717         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26718         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26719         * modules/xstrtol-tests (Makefile.am): Likewise.
26720         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26721         * modules/yesno-tests (Makefile.am): Likewise.
26722         Suggested by Jim Meyering.
26723
26724 2010-01-24  Bruno Haible  <bruno@clisp.org>
26725
26726         More documentation.
26727         * doc/gnulib.texi (Writing modules): New chapter.
26728         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26729         the new chapter.
26730
26731 2010-01-24  Jim Meyering  <meyering@redhat.com>
26732
26733         maint.mk: do not prepend "./" after filtering
26734         * top/maint.mk (_prepend_srcdir_prefix): New variable
26735         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26736         "./" when $(srcdir) is ".".
26737
26738         define STREQ(a,b) consistently, removing useless parentheses
26739         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26740         since the only risk is that "a" or "b" contains an unparenthesized
26741         comma, but if either did that, STREQ would have 3 or more arguments.
26742         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26743         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26744         * lib/hash-triple.c (STREQ): Likewise.
26745         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26746         * lib/getugroups.c (STREQ): Likewise.
26747
26748 2010-01-23  Jim Meyering  <meyering@redhat.com>
26749
26750         maint.mk: fix syntax-check in a non-srcdir build directory
26751         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26752         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26753
26754 2010-01-22  Jim Meyering  <meyering@redhat.com>
26755
26756         userspec: add unit tests
26757         * tests/test-userspec.c: New file.
26758         * modules/userspec-tests: Likewise.
26759
26760 2010-01-21  Jim Meyering  <meyering@redhat.com>
26761
26762         maint.mk: handle source file names containing "." robustly
26763         * top/maint.mk (_dot_escaped_srcdir): Define.
26764         (VC_LIST): Use it in LHS of sed substitution.
26765
26766 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26767
26768         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26769         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26770         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26771         from a non-srcdir build.
26772
26773 2010-01-20  Eric Blake  <ebb9@byu.net>
26774
26775         warn-on-use: use instead of link-warning
26776         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26777         * modules/unistd (Depends-on, Makefile.am): Likewise.
26778         * modules/arpa_inet (Depends-on): Replace link-warning with
26779         warn-on-use.
26780         (Makefile.am): Update rules accordingly.
26781         * modules/ctype (Depends-on, Makefile.am): Likewise.
26782         * modules/dirent (Depends-on, Makefile.am): Likewise.
26783         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26784         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26785         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26786         * modules/locale (Depends-on, Makefile.am): Likewise.
26787         * modules/math (Depends-on, Makefile.am): Likewise.
26788         * modules/search (Depends-on, Makefile.am): Likewise.
26789         * modules/signal (Depends-on, Makefile.am): Likewise.
26790         * modules/spawn (Depends-on, Makefile.am): Likewise.
26791         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26792         * modules/string (Depends-on, Makefile.am): Likewise.
26793         * modules/strings (Depends-on, Makefile.am): Likewise.
26794         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26795         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26796         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26797         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26798         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26799         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26800         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26801         * modules/wchar (Depends-on, Makefile.am): Likewise.
26802         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26803         should be poisoned.
26804         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26805         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26806         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26807         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26808         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26809         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26810         * m4/math_h.m4 (gl_MATH_H): Likewise.
26811         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26812         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26813         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26814         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26815         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26816         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26817         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26818         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26819         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26820         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26821         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26822         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26823         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26824         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26825         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26826         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26827         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26828         GL_LINK_WARNING.
26829         * lib/ctype.in.h: Likewise.
26830         * lib/dirent.in.h: Likewise.
26831         * lib/fcntl.in.h: Likewise.
26832         * lib/inttypes.in.h: Likewise.
26833         * lib/langinfo.in.h: Likewise.
26834         * lib/locale.in.h: Likewise.
26835         * lib/math.in.h: Likewise.
26836         * lib/search.in.h: Likewise.
26837         * lib/signal.in.h: Likewise.
26838         * lib/spawn.in.h: Likewise.
26839         * lib/stdio.in.h: Likewise.
26840         * lib/stdlib.in.h: Likewise.
26841         * lib/string.in.h: Likewise.
26842         * lib/strings.in.h: Likewise.
26843         * lib/sys_file.in.h: Likewise.
26844         * lib/sys_ioctl.in.h: Likewise.
26845         * lib/sys_select.in.h: Likewise.
26846         * lib/sys_socket.in.h: Likewise.
26847         * lib/sys_stat.in.h: Likewise.
26848         * lib/sys_times.in.h: Likewise.
26849         * lib/sys_utsname.in.h: Likewise.
26850         * lib/unistd.in.h: Likewise.
26851         * lib/wchar.in.h: Likewise.
26852
26853 2010-01-20  Bruno Haible  <bruno@clisp.org>
26854
26855         Avoid duplicate -lm.
26856         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26857         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26858         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26859         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26860         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26861         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26862         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26863         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26864         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26865         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26866         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26867         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26868         Reported by Paolo Bonzini.
26869
26870 2010-01-19  Bruno Haible  <bruno@clisp.org>
26871
26872         langinfo, nl_langinfo: Relicense under LGPLv2+.
26873         * modules/langinfo (License): Change to LGPLv2+.
26874         * modules/nl_langinfo (License): Likewise.
26875         Patch by David Lutterkort <lutter@redhat.com>.
26876
26877 2010-01-19  Bruno Haible  <bruno@clisp.org>
26878
26879         Avoid compilation error with cc on OSF/1 5.1.
26880         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26881         statement, not before.
26882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26883
26884 2010-01-18  Bruno Haible  <bruno@clisp.org>
26885
26886         Avoid a link error due to the __printf__ symbol.
26887         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26888         and 2.6.x.
26889         (__format__, __printf__): Remove definitions.
26890         * lib/argp-fmtstream.h: Likewise.
26891         * lib/argp.h: Likewise.
26892         * lib/error.h: Likewise.
26893         * lib/vasnprintf.h: Likewise.
26894         * lib/xprintf.h: Likewise.
26895         * lib/xvasprintf.h: Likewise.
26896         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26897
26898 2010-01-18  Bruno Haible  <bruno@clisp.org>
26899
26900         Tests for module 'tanl'.
26901         * modules/tanl-tests: New file.
26902         * tests/test-tanl.c: New file.
26903
26904         Tests for module 'sqrtl'.
26905         * modules/sqrtl-tests: New file.
26906         * tests/test-sqrtl.c: New file.
26907
26908         Tests for module 'sinl'.
26909         * modules/sinl-tests: New file.
26910         * tests/test-sinl.c: New file.
26911
26912         Tests for module 'logl'.
26913         * modules/logl-tests: New file.
26914         * tests/test-logl.c: New file.
26915
26916         Tests for module 'expl'.
26917         * modules/expl-tests: New file.
26918         * tests/test-expl.c: New file.
26919
26920         Tests for module 'cosl'.
26921         * modules/cosl-tests: New file.
26922         * tests/test-cosl.c: New file.
26923
26924         Tests for module 'atanl'.
26925         * modules/atanl-tests: New file.
26926         * tests/test-atanl.c: New file.
26927
26928         Tests for module 'asinl'.
26929         * modules/asinl-tests: New file.
26930         * tests/test-asinl.c: New file.
26931
26932         Tests for module 'acosl'.
26933         * modules/acosl-tests: New file.
26934         * tests/test-acosl.c: New file.
26935
26936         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26937         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26938         tanl): Use the standard gnulib idiom.
26939         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26940         * lib/sinl.c: Likewise.
26941         * lib/tanl.c: Don't include trigl.c.
26942         (kernel_tanl): Make static.
26943         * lib/sincosl.c: Include trigl.h first.
26944         * lib/trigl.c: Likewise.
26945         * m4/acosl.m4: New file.
26946         * m4/asinl.m4: New file.
26947         * m4/atanl.m4: New file.
26948         * m4/cosl.m4: New file.
26949         * m4/expl.m4: New file.
26950         * m4/logl.m4: New file.
26951         * m4/sinl.m4: New file.
26952         * m4/sqrtl.m4: New file.
26953         * m4/tanl.m4: New file.
26954         * m4/mathl.m4: Remove file.
26955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26956         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26957         Don't initialize GNULIB_MATHL.
26958         * modules/acosl: New file.
26959         * modules/asinl: New file.
26960         * modules/atanl: New file.
26961         * modules/cosl: New file.
26962         * modules/expl: New file.
26963         * modules/logl: New file.
26964         * modules/sinl: New file.
26965         * modules/sqrtl: New file.
26966         * modules/tanl: New file.
26967         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26968         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26969         substitute GNULIB_MATHL.
26970         * modules/mathl: Rewritten.
26971         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26972         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26973         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26974         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26975         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26976         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26977         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26978         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26979         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26980
26981 2010-01-18  Bruno Haible  <bruno@clisp.org>
26982
26983         sqrt: Make gl_FUNC_SQRT requirable.
26984         * m4/sqrt.m4: New file.
26985         * modules/sqrt (Files): Add it.
26986         (configure.ac): Invoke gl_FUNC_SQRT.
26987
26988 2010-01-18  Bruno Haible  <bruno@clisp.org>
26989
26990         New modules for common <math.h> functions.
26991         * m4/mathfunc.m4: New file.
26992         * modules/acos: New file.
26993         * modules/asin: New file.
26994         * modules/atan: New file.
26995         * modules/atan2: New file.
26996         * modules/cbrt: New file.
26997         * modules/copysign: New file.
26998         * modules/cos: New file.
26999         * modules/cosh: New file.
27000         * modules/erf: New file.
27001         * modules/erfc: New file.
27002         * modules/exp: New file.
27003         * modules/fabs: New file.
27004         * modules/fmod: New file.
27005         * modules/hypot: New file.
27006         * modules/j0: New file.
27007         * modules/j1: New file.
27008         * modules/jn: New file.
27009         * modules/ldexp: New file.
27010         * modules/lgamma: New file.
27011         * modules/log: New file.
27012         * modules/log10: New file.
27013         * modules/log1p: New file.
27014         * modules/logb: New file.
27015         * modules/modf: New file.
27016         * modules/nextafter: New file.
27017         * modules/pow: New file.
27018         * modules/remainder: New file.
27019         * modules/rint: New file.
27020         * modules/sin: New file.
27021         * modules/sinh: New file.
27022         * modules/sqrt: New file.
27023         * modules/tan: New file.
27024         * modules/tanh: New file.
27025         * modules/y0: New file.
27026         * modules/y1: New file.
27027         * modules/yn: New file.
27028         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27029         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27030         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27031         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27032         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27033         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27034         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27035         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27036         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27037         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27038         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27039         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27040         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27041         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27042         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27043         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27044         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27045         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27046         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27047         * doc/posix-functions/log.texi: Mention the 'log' module.
27048         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27049         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27050         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27051         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27052         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27053         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27054         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27055         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27056         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27057         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27058         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27059         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27060         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27061         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27062         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27063         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27064
27065 2010-01-18  Jim Meyering  <meyering@redhat.com>
27066
27067         ignore-value: relax license to LGPLv2+
27068         * modules/ignore-value (License): Relax to LGPLv2+.
27069
27070         getdate: don't leak when TZ contains two or more '"'s
27071         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27072         double quote in TZ after the first one.
27073
27074         readtokens: do not leak internal token_lengths buffer
27075         * lib/readtokens.c (readtokens): Free the local, lengths,
27076         when the supplied "token_lengths" parameter is NULL.
27077
27078 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27079
27080         Fix a couple of missing LIBTHREAD link failures on AIX.
27081         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27082         $(LIBTHREAD).
27083         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27084
27085         Link test-poll against INET_PTON_LIB.
27086         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27087         for inet_pton on Solaris 10.
27088
27089 2010-01-17  Bruno Haible  <bruno@clisp.org>
27090
27091         unistdio/*-sprintf: Fix typo in module description.
27092         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27093         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27094         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27095         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27096         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27097         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27098         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27100
27101 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27102
27103         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27104         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27105         variables in shell case patterns, for AIX and HP-UX ksh.
27106
27107         Split large sed scripts, for HP-UX sed.
27108         * modules/stdio: Split sed scripts around 50 sed commands,
27109         to avoid HP-UX limit of 99 commands, in the near future.
27110         * modules/string: Likewise.
27111         * modules/unistd: Likewise.
27112
27113         gnulib-tool: avoid writing in the current directory.
27114         * gnulib-tool (func_emit_lib_Makefile_am)
27115         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27116         not in the current directory, so concurrent gnulib-tool
27117         instances do not interfere.
27118
27119 2010-01-16  Jim Meyering  <meyering@redhat.com>
27120
27121         doc: update users.txt
27122         * users.txt: Add grep.
27123         (diffutils, gzip): Update URLs.
27124
27125 2010-01-12  Bruno Haible  <bruno@clisp.org>
27126
27127         posix_spawn: Avoid test failure on Cygwin.
27128         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27129         characters.
27130         Reported by Simon Josefsson.
27131
27132 2010-01-12  Bruno Haible  <bruno@clisp.org>
27133
27134         * tests/test-cond.c (main): When skipping the test, show the reason.
27135
27136 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27137
27138         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27139
27140 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27141
27142         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27143         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27144
27145 2010-01-12  Eric Blake  <ebb9@byu.net>
27146
27147         build: guarantee AS_VAR_IF
27148         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27149         (gl_AS_VAR_IF): Move...
27150         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27151         Reported by Simon Josefsson.
27152
27153 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27154
27155         * lib/stdio.in.h: Fix typo.
27156
27157 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27158
27159         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27160         libgpg-error.
27161
27162 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27163
27164         * tests/test-xalloc-die.sh: Use $EXEEXT.
27165
27166 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27167             Bruno Haible  <bruno@clisp.org>
27168
27169         getlogin, getlogin_r: Avoid test failure.
27170         * tests/test-getlogin.c: Include <stdio.h>.
27171         (main): Skip the test when the function fails because stdin is not a
27172         tty.
27173         * tests/test-getlogin_r.c: Include <stdio.h>.
27174         (main): Skip the test when the function fails because stdin is not a
27175         tty.
27176
27177 2010-01-11  Eric Blake  <ebb9@byu.net>
27178
27179         tests: avoid more large file warnings
27180         * tests/test-fflush.c: Avoid warning about ftell use.
27181         * tests/test-fseek.c: Avoid warning about fseek use.
27182
27183 2010-01-10  Bruno Haible  <bruno@clisp.org>
27184
27185         nproc: Work better on Linux when /proc and /sys are not mounted.
27186         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27187         as lower bound when, on glibc/Linux systems,
27188         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27189         Suggested by Pádraig Brady <P@draigbrady.com>.
27190         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27191
27192         nproc: Refactor.
27193         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27194         extracted from num_processors.
27195         (num_processors): Call it.
27196
27197 2010-01-11  Jim Meyering  <meyering@redhat.com>
27198
27199         utimecmp: avoid new warning from upcoming gcc-4.5.0
27200         * lib/utimecmp.c (BILLION): Define using #define rather than an
27201         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27202
27203 2010-01-11  Eric Blake  <ebb9@byu.net>
27204
27205         math: add portability warnings for classification macros
27206         * modules/math (Depends-on): Add warn-on-use.
27207         (Makefile.am): Provide new substitutions.
27208         * m4/math_h.m4 (gl_MATH_H): Require inline.
27209         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27210         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27211         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27212         implement warnings.
27213
27214         unistd: warn on use of environ without module
27215         * modules/unistd (Depends-on): Add warn-on-use.
27216         (Makefile.am): Provide new substitutions.
27217         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27218         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27219
27220         stdio: warn on suspicious uses
27221         * modules/stdio (Depends-on): Add warn-on-use.
27222         (Makefile.am): Provide new substitutions.
27223         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27224         fseeko.
27225         * lib/stdio.in.h (gets): Always warn on use.
27226         (fseek, ftell): Adjust when warnings are issued, and honor
27227         _GL_NO_LARGE_FILES as a way to silence the warning.
27228         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27229         any warning about large file offsets.
27230         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27231         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27232         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27233         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27234         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27235         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27236         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27237         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27238
27239         warn-on-use: new module
27240         * modules/warn-on-use: New file.
27241         * build-aux/warn-on-use.h: Likewise.
27242         * m4/warn-on-use.m4: Likewise.
27243         * MODULES.html.sh (Support for building): Mention it.
27244
27245 2010-01-10  Bruno Haible  <bruno@clisp.org>
27246
27247         Tests for module 'unistr/u32-strdup'.
27248         * modules/unistr/u32-strdup-tests: New file.
27249         * tests/unistr/test-u32-strdup.c: New file.
27250
27251         Tests for module 'unistr/u16-strdup'.
27252         * modules/unistr/u16-strdup-tests: New file.
27253         * tests/unistr/test-u16-strdup.c: New file.
27254
27255         Tests for module 'unistr/u8-strdup'.
27256         * modules/unistr/u8-strdup-tests: New file.
27257         * tests/unistr/test-u8-strdup.c: New file.
27258         * tests/unistr/test-strdup.h: New file.
27259
27260         Tests for module 'unistr/u32-strncmp'.
27261         * modules/unistr/u32-strncmp-tests: New file.
27262         * tests/unistr/test-u32-strncmp.c: New file.
27263
27264         Tests for module 'unistr/u16-strncmp'.
27265         * modules/unistr/u16-strncmp-tests: New file.
27266         * tests/unistr/test-u16-strncmp.c: New file.
27267
27268         Tests for module 'unistr/u8-strncmp'.
27269         * modules/unistr/u8-strncmp-tests: New file.
27270         * tests/unistr/test-u8-strncmp.c: New file.
27271         * tests/unistr/test-strncmp.h: New file.
27272
27273         Tests for module 'unistr/u32-strcoll'.
27274         * modules/unistr/u32-strcoll-tests: New file.
27275         * tests/unistr/test-u32-strcoll.c: New file.
27276
27277         Tests for module 'unistr/u16-strcoll'.
27278         * modules/unistr/u16-strcoll-tests: New file.
27279         * tests/unistr/test-u16-strcoll.c: New file.
27280
27281         Tests for module 'unistr/u8-strcoll'.
27282         * modules/unistr/u8-strcoll-tests: New file.
27283         * tests/unistr/test-u8-strcoll.c: New file.
27284
27285         Tests for module 'unistr/u32-strcmp'.
27286         * modules/unistr/u32-strcmp-tests: New file.
27287         * tests/unistr/test-u32-strcmp.c: New file.
27288         * tests/unistr/test-u32-strcmp.h: New file.
27289
27290         Tests for module 'unistr/u16-strcmp'.
27291         * modules/unistr/u16-strcmp-tests: New file.
27292         * tests/unistr/test-u16-strcmp.c: New file.
27293         * tests/unistr/test-u16-strcmp.h: New file.
27294
27295         Tests for module 'unistr/u8-strcmp'.
27296         * modules/unistr/u8-strcmp-tests: New file.
27297         * tests/unistr/test-u8-strcmp.c: New file.
27298         * tests/unistr/test-u8-strcmp.h: New file.
27299         * tests/unistr/test-strcmp.h: New file.
27300
27301         Tests for module 'unistr/u32-strncat'.
27302         * modules/unistr/u32-strncat-tests: New file.
27303         * tests/unistr/test-u32-strncat.c: New file.
27304
27305         Tests for module 'unistr/u16-strncat'.
27306         * modules/unistr/u16-strncat-tests: New file.
27307         * tests/unistr/test-u16-strncat.c: New file.
27308
27309         Tests for module 'unistr/u8-strncat'.
27310         * modules/unistr/u8-strncat-tests: New file.
27311         * tests/unistr/test-u8-strncat.c: New file.
27312         * tests/unistr/test-strncat.h: New file.
27313
27314         Tests for module 'unistr/u32-strcat'.
27315         * modules/unistr/u32-strcat-tests: New file.
27316         * tests/unistr/test-u32-strcat.c: New file.
27317
27318         Tests for module 'unistr/u16-strcat'.
27319         * modules/unistr/u16-strcat-tests: New file.
27320         * tests/unistr/test-u16-strcat.c: New file.
27321
27322         Tests for module 'unistr/u8-strcat'.
27323         * modules/unistr/u8-strcat-tests: New file.
27324         * tests/unistr/test-u8-strcat.c: New file.
27325         * tests/unistr/test-strcat.h: New file.
27326
27327         Tests for module 'unistr/u32-stpncpy'.
27328         * modules/unistr/u32-stpncpy-tests: New file.
27329         * tests/unistr/test-u32-stpncpy.c: New file.
27330
27331         Tests for module 'unistr/u16-stpncpy'.
27332         * modules/unistr/u16-stpncpy-tests: New file.
27333         * tests/unistr/test-u16-stpncpy.c: New file.
27334
27335         Tests for module 'unistr/u8-stpncpy'.
27336         * modules/unistr/u8-stpncpy-tests: New file.
27337         * tests/unistr/test-u8-stpncpy.c: New file.
27338         * tests/unistr/test-stpncpy.h: New file.
27339
27340         Tests for module 'unistr/u32-strncpy'.
27341         * modules/unistr/u32-strncpy-tests: New file.
27342         * tests/unistr/test-u32-strncpy.c: New file.
27343
27344         Tests for module 'unistr/u16-strncpy'.
27345         * modules/unistr/u16-strncpy-tests: New file.
27346         * tests/unistr/test-u16-strncpy.c: New file.
27347
27348         Tests for module 'unistr/u8-strncpy'.
27349         * modules/unistr/u8-strncpy-tests: New file.
27350         * tests/unistr/test-u8-strncpy.c: New file.
27351         * tests/unistr/test-strncpy.h: New file.
27352
27353         Tests for module 'unistr/u32-stpcpy'.
27354         * modules/unistr/u32-stpcpy-tests: New file.
27355         * tests/unistr/test-u32-stpcpy.c: New file.
27356
27357         Tests for module 'unistr/u16-stpcpy'.
27358         * modules/unistr/u16-stpcpy-tests: New file.
27359         * tests/unistr/test-u16-stpcpy.c: New file.
27360
27361         Tests for module 'unistr/u8-stpcpy'.
27362         * modules/unistr/u8-stpcpy-tests: New file.
27363         * tests/unistr/test-u8-stpcpy.c: New file.
27364         * tests/unistr/test-stpcpy.h: New file.
27365
27366         Tests for module 'unistr/u32-strcpy'.
27367         * modules/unistr/u32-strcpy-tests: New file.
27368         * tests/unistr/test-u32-strcpy.c: New file.
27369
27370         Tests for module 'unistr/u16-strcpy'.
27371         * modules/unistr/u16-strcpy-tests: New file.
27372         * tests/unistr/test-u16-strcpy.c: New file.
27373
27374         Tests for module 'unistr/u8-strcpy'.
27375         * modules/unistr/u8-strcpy-tests: New file.
27376         * tests/unistr/test-u8-strcpy.c: New file.
27377         * tests/unistr/test-strcpy.h: New file.
27378
27379         Tests for module 'unistr/u32-strnlen'.
27380         * modules/unistr/u32-strnlen-tests: New file.
27381         * tests/unistr/test-u32-strnlen.c: New file.
27382
27383         Tests for module 'unistr/u16-strnlen'.
27384         * modules/unistr/u16-strnlen-tests: New file.
27385         * tests/unistr/test-u16-strnlen.c: New file.
27386
27387         Tests for module 'unistr/u8-strnlen'.
27388         * modules/unistr/u8-strnlen-tests: New file.
27389         * tests/unistr/test-u8-strnlen.c: New file.
27390         * tests/unistr/test-strnlen.h: New file.
27391
27392         Tests for module 'unistr/u32-strlen'.
27393         * modules/unistr/u32-strlen-tests: New file.
27394         * tests/unistr/test-u32-strlen.c: New file.
27395
27396         Tests for module 'unistr/u16-strlen'.
27397         * modules/unistr/u16-strlen-tests: New file.
27398         * tests/unistr/test-u16-strlen.c: New file.
27399
27400         Tests for module 'unistr/u8-strlen'.
27401         * modules/unistr/u8-strlen-tests: New file.
27402         * tests/unistr/test-u8-strlen.c: New file.
27403
27404         Tests for module 'unistr/u32-prev'.
27405         * modules/unistr/u32-prev-tests: New file.
27406         * tests/unistr/test-u32-prev.c: New file.
27407
27408         Tests for module 'unistr/u16-prev'.
27409         * modules/unistr/u16-prev-tests: New file.
27410         * tests/unistr/test-u16-prev.c: New file.
27411
27412         Tests for module 'unistr/u8-prev'.
27413         * modules/unistr/u8-prev-tests: New file.
27414         * tests/unistr/test-u8-prev.c: New file.
27415
27416         Tests for module 'unistr/u32-next'.
27417         * modules/unistr/u32-next-tests: New file.
27418         * tests/unistr/test-u32-next.c: New file.
27419
27420         Tests for module 'unistr/u16-next'.
27421         * modules/unistr/u16-next-tests: New file.
27422         * tests/unistr/test-u16-next.c: New file.
27423
27424         Tests for module 'unistr/u8-next'.
27425         * modules/unistr/u8-next-tests: New file.
27426         * tests/unistr/test-u8-next.c: New file.
27427
27428         Tests for module 'unistr/u32-strmbtouc'.
27429         * modules/unistr/u32-strmbtouc-tests: New file.
27430         * tests/unistr/test-u32-strmbtouc.c: New file.
27431
27432         Tests for module 'unistr/u16-strmbtouc'.
27433         * modules/unistr/u16-strmbtouc-tests: New file.
27434         * tests/unistr/test-u16-strmbtouc.c: New file.
27435
27436         Tests for module 'unistr/u8-strmbtouc'.
27437         * modules/unistr/u8-strmbtouc-tests: New file.
27438         * tests/unistr/test-u8-strmbtouc.c: New file.
27439
27440         Tests for module 'unistr/u32-strmblen'.
27441         * modules/unistr/u32-strmblen-tests: New file.
27442         * tests/unistr/test-u32-strmblen.c: New file.
27443
27444         Tests for module 'unistr/u16-strmblen'.
27445         * modules/unistr/u16-strmblen-tests: New file.
27446         * tests/unistr/test-u16-strmblen.c: New file.
27447
27448         Tests for module 'unistr/u8-strmblen'.
27449         * modules/unistr/u8-strmblen-tests: New file.
27450         * tests/unistr/test-u8-strmblen.c: New file.
27451
27452         Tests for module 'unistr/u32-cpy-alloc'.
27453         * modules/unistr/u32-cpy-alloc-tests: New file.
27454         * tests/unistr/test-u32-cpy-alloc.c: New file.
27455
27456         Tests for module 'unistr/u16-cpy-alloc'.
27457         * modules/unistr/u16-cpy-alloc-tests: New file.
27458         * tests/unistr/test-u16-cpy-alloc.c: New file.
27459
27460         Tests for module 'unistr/u8-cpy-alloc'.
27461         * modules/unistr/u8-cpy-alloc-tests: New file.
27462         * tests/unistr/test-u8-cpy-alloc.c: New file.
27463         * tests/unistr/test-cpy-alloc.h: New file.
27464
27465         Tests for module 'unistr/u32-mbsnlen'.
27466         * modules/unistr/u32-mbsnlen-tests: New file.
27467         * tests/unistr/test-u32-mbsnlen.c: New file.
27468
27469         Tests for module 'unistr/u16-mbsnlen'.
27470         * modules/unistr/u16-mbsnlen-tests: New file.
27471         * tests/unistr/test-u16-mbsnlen.c: New file.
27472
27473         Tests for module 'unistr/u8-mbsnlen'.
27474         * modules/unistr/u8-mbsnlen-tests: New file.
27475         * tests/unistr/test-u8-mbsnlen.c: New file.
27476
27477         Tests for module 'unistr/u32-chr'.
27478         * modules/unistr/u32-chr-tests: New file.
27479         * tests/unistr/test-u32-chr.c: New file.
27480
27481         Tests for module 'unistr/u16-chr'.
27482         * modules/unistr/u16-chr-tests: New file.
27483         * tests/unistr/test-u16-chr.c: New file.
27484
27485         Tests for module 'unistr/u8-chr'.
27486         * modules/unistr/u8-chr-tests: New file.
27487         * tests/unistr/test-u8-chr.c: New file.
27488         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27489
27490         Tests for module 'unistr/u32-cmp2'.
27491         * modules/unistr/u32-cmp2-tests: New file.
27492         * tests/unistr/test-u32-cmp2.c: New file.
27493
27494         Tests for module 'unistr/u16-cmp2'.
27495         * modules/unistr/u16-cmp2-tests: New file.
27496         * tests/unistr/test-u16-cmp2.c: New file.
27497
27498         Tests for module 'unistr/u8-cmp2'.
27499         * modules/unistr/u8-cmp2-tests: New file.
27500         * tests/unistr/test-u8-cmp2.c: New file.
27501         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27502
27503         Tests for module 'unistr/u32-cmp'.
27504         * modules/unistr/u32-cmp-tests: New file.
27505         * tests/unistr/test-u32-cmp.c: New file.
27506
27507         Tests for module 'unistr/u16-cmp'.
27508         * modules/unistr/u16-cmp-tests: New file.
27509         * tests/unistr/test-u16-cmp.c: New file.
27510
27511         Tests for module 'unistr/u8-cmp'.
27512         * modules/unistr/u8-cmp-tests: New file.
27513         * tests/unistr/test-u8-cmp.c: New file.
27514         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27515
27516         Tests for module 'unistr/u32-set'.
27517         * modules/unistr/u32-set-tests: New file.
27518         * tests/unistr/test-u32-set.c: New file.
27519
27520         Tests for module 'unistr/u16-set'.
27521         * modules/unistr/u16-set-tests: New file.
27522         * tests/unistr/test-u16-set.c: New file.
27523
27524         Tests for module 'unistr/u8-set'.
27525         * modules/unistr/u8-set-tests: New file.
27526         * tests/unistr/test-u8-set.c: New file.
27527         * tests/unistr/test-set.h: New file.
27528
27529         Tests for module 'unistr/u32-move'.
27530         * modules/unistr/u32-move-tests: New file.
27531         * tests/unistr/test-u32-move.c: New file.
27532
27533         Tests for module 'unistr/u16-move'.
27534         * modules/unistr/u16-move-tests: New file.
27535         * tests/unistr/test-u16-move.c: New file.
27536
27537         Tests for module 'unistr/u8-move'.
27538         * modules/unistr/u8-move-tests: New file.
27539         * tests/unistr/test-u8-move.c: New file.
27540         * tests/unistr/test-move.h: New file.
27541
27542         Tests for module 'unistr/u32-cpy'.
27543         * modules/unistr/u32-cpy-tests: New file.
27544         * tests/unistr/test-u32-cpy.c: New file.
27545
27546         Tests for module 'unistr/u16-cpy'.
27547         * modules/unistr/u16-cpy-tests: New file.
27548         * tests/unistr/test-u16-cpy.c: New file.
27549
27550         Tests for module 'unistr/u8-cpy'.
27551         * modules/unistr/u8-cpy-tests: New file.
27552         * tests/unistr/test-u8-cpy.c: New file.
27553         * tests/unistr/test-cpy.h: New file.
27554
27555 2010-01-09  Bruno Haible  <bruno@clisp.org>
27556
27557         Tests for module 'unistr/u32-uctomb'.
27558         * modules/unistr/u32-uctomb-tests: New file.
27559         * tests/unistr/test-u32-uctomb.c: New file.
27560
27561         Tests for module 'unistr/u16-uctomb'.
27562         * modules/unistr/u16-uctomb-tests: New file.
27563         * tests/unistr/test-u16-uctomb.c: New file.
27564
27565         Tests for module 'unistr/u8-uctomb'.
27566         * modules/unistr/u8-uctomb-tests: New file.
27567         * tests/unistr/test-u8-uctomb.c: New file.
27568
27569         Tests for module 'unistr/u32-mbtoucr'.
27570         * modules/unistr/u32-mbtoucr-tests: New file.
27571         * tests/unistr/test-u32-mbtoucr.c: New file.
27572
27573         Tests for module 'unistr/u16-mbtoucr'.
27574         * modules/unistr/u16-mbtoucr-tests: New file.
27575         * tests/unistr/test-u16-mbtoucr.c: New file.
27576
27577         Tests for module 'unistr/u8-mbtoucr'.
27578         * modules/unistr/u8-mbtoucr-tests: New file.
27579         * tests/unistr/test-u8-mbtoucr.c: New file.
27580
27581         Tests for module 'unistr/u32-mbtouc'.
27582         * modules/unistr/u32-mbtouc-tests: New file.
27583         * tests/unistr/test-u32-mbtouc.c: New file.
27584
27585         Tests for module 'unistr/u16-mbtouc'.
27586         * modules/unistr/u16-mbtouc-tests: New file.
27587         * tests/unistr/test-u16-mbtouc.c: New file.
27588
27589         Tests for module 'unistr/u8-mbtouc'.
27590         * modules/unistr/u8-mbtouc-tests: New file.
27591         * tests/unistr/test-u8-mbtouc.c: New file.
27592
27593         Tests for module 'unistr/u32-mbtouc-unsafe'.
27594         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27595         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27596         * tests/unistr/test-u32-mbtouc.h: New file.
27597
27598         Tests for module 'unistr/u16-mbtouc-unsafe'.
27599         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27600         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27601         * tests/unistr/test-u16-mbtouc.h: New file.
27602
27603         Tests for module 'unistr/u8-mbtouc-unsafe'.
27604         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27605         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27606         * tests/unistr/test-u8-mbtouc.h: New file.
27607
27608         Tests for module 'unistr/u32-mblen'.
27609         * modules/unistr/u32-mblen-tests: New file.
27610         * tests/unistr/test-u32-mblen.c: New file.
27611
27612         Tests for module 'unistr/u16-mblen'.
27613         * modules/unistr/u16-mblen-tests: New file.
27614         * tests/unistr/test-u16-mblen.c: New file.
27615
27616         Tests for module 'unistr/u8-mblen'.
27617         * modules/unistr/u8-mblen-tests: New file.
27618         * tests/unistr/test-u8-mblen.c: New file.
27619
27620         Tests for module 'unistr/u32-to-u16'.
27621         * modules/unistr/u32-to-u16-tests: New file.
27622         * tests/unistr/test-u32-to-u16.c: New file.
27623
27624         Tests for module 'unistr/u32-to-u8'.
27625         * modules/unistr/u32-to-u8-tests: New file.
27626         * tests/unistr/test-u32-to-u8.c: New file.
27627
27628         Tests for module 'unistr/u16-to-u32'.
27629         * modules/unistr/u16-to-u32-tests: New file.
27630         * tests/unistr/test-u16-to-u32.c: New file.
27631
27632         Tests for module 'unistr/u16-to-u8'.
27633         * modules/unistr/u16-to-u8-tests: New file.
27634         * tests/unistr/test-u16-to-u8.c: New file.
27635
27636         Tests for module 'unistr/u8-to-u32'.
27637         * modules/unistr/u8-to-u32-tests: New file.
27638         * tests/unistr/test-u8-to-u32.c: New file.
27639
27640         Tests for module 'unistr/u8-to-u16'.
27641         * modules/unistr/u8-to-u16-tests: New file.
27642         * tests/unistr/test-u8-to-u16.c: New file.
27643
27644         Tests for module 'unistr/u32-check'.
27645         * modules/unistr/u32-check-tests: New file.
27646         * tests/unistr/test-u32-check.c: New file.
27647
27648         Tests for module 'unistr/u16-check'.
27649         * modules/unistr/u16-check-tests: New file.
27650         * tests/unistr/test-u16-check.c: New file.
27651
27652         Tests for module 'unistr/u8-check'.
27653         * modules/unistr/u8-check-tests: New file.
27654         * tests/unistr/test-u8-check.c: New file.
27655
27656         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27657         (category_equals): New function.
27658         (main): Add more tests.
27659         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27660
27661         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27662
27663 2010-01-10  Bruno Haible  <bruno@clisp.org>
27664
27665         unistr/u*-strcoll: Try harder to distinguish different strings.
27666         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27667         compare s1 and s2 to see if they are different.
27668
27669 2010-01-10  Bruno Haible  <bruno@clisp.org>
27670
27671         unistr/u*-stpncpy: Fix the return value.
27672         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27673         description of the return value consistent with stpncpy in glibc.
27674         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27675         written non-NUL unit.
27676
27677 2010-01-10  Bruno Haible  <bruno@clisp.org>
27678
27679         unistr/u*-next: Add missing dependencies.
27680         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27681         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27682         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27683
27684 2010-01-10  Bruno Haible  <bruno@clisp.org>
27685
27686         unistr/u8-mbsnlen: Fix return value for incomplete character.
27687         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27688         u8_mblen.
27689         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27690         Remove unistr/u8-mblen.
27691         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27692         u16_mblen.
27693         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27694         Remove unistr/u16-mblen.
27695
27696 2010-01-10  Bruno Haible  <bruno@clisp.org>
27697
27698         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27699         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27700         Reported by Brian Gough <bjg@gnu.org> and
27701         Chris Clayton <chris2553@googlemail.com> via
27702         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27703
27704 2010-01-09  Bruno Haible  <bruno@clisp.org>
27705
27706         unistr/u16-to-u32: Reject invalid input.
27707         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27708         u16_mbtouc.
27709         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27710         Remove unistr/u16-mbtouc.
27711
27712         unistr/u16-to-u8: Reject invalid input.
27713         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27714         u16_mbtouc.
27715         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27716         Remove unistr/u16-mbtouc.
27717
27718         unistr/u8-to-u32: Reject invalid input.
27719         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27720         u8_mbtouc.
27721         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27722         Remove unistr/u8-mbtouc.
27723
27724         unistr/u8-to-u16: Reject invalid input.
27725         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27726         u8_mbtouc.
27727         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27728         Remove unistr/u8-mbtouc.
27729
27730 2010-01-09  Bruno Haible  <bruno@clisp.org>
27731
27732         Tests for module 'getlogin'.
27733         * modules/getlogin-tests: New file.
27734         * tests/test-getlogin.c: New file.
27735
27736         New module 'getlogin'.
27737         * lib/unistd.in.h (getlogin): New declaration.
27738         * lib/getlogin.c: New file.
27739         * m4/getlogin.m4: New file.
27740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27741         HAVE_GETLOGIN.
27742         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27743         HAVE_GETLOGIN.
27744         * modules/getlogin: New file.
27745         * doc/posix-functions/getlogin.texi: Mention the new module.
27746         Reported by John W. Eaton <jwe@gnu.org>.
27747
27748 2010-01-09  Bruno Haible  <bruno@clisp.org>
27749
27750         getlogin_r: Support for native Windows.
27751         * lib/getlogin_r.c: Include <windows.h>
27752         (getlogin_r): Implement for native Windows.
27753         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27754         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27755         via John W. Eaton <jwe@gnu.org>.
27756
27757 2010-01-09  Bruno Haible  <bruno@clisp.org>
27758
27759         getlogin_r: Small fixes.
27760         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27761         succeeds.
27762         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27763         before testing whether getlogin_r is declared. No need to set
27764         HAVE_DECL_GETLOGIN_R to 1.
27765         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27766
27767 2010-01-09  Bruno Haible  <bruno@clisp.org>
27768
27769         * lib/unistd.in.h (getlogin_r): Add comment.
27770
27771 2010-01-09  Bruno Haible  <bruno@clisp.org>
27772
27773         Tests for module 'getlogin_r'.
27774         * modules/getlogin_r-tests: New file.
27775         * tests/test-getlogin_r.c: New file.
27776
27777 2010-01-09  Jim Meyering  <meyering@redhat.com>
27778
27779         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27780         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27781         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27782
27783 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27784
27785         * lib/dup2.c (rpl_dup2): Improve comment.
27786
27787 2010-01-08  Eric Blake  <ebb9@byu.net>
27788
27789         maint.mk: allow packages to add makefile @@ exceptions
27790         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27791         (sc_makefile_check): Rename...
27792         (sc_makefile_at_at_check): ...to this, and use hook.
27793
27794         dup2: work around mingw bug
27795         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27796         Reported by Simon Josefsson.
27797
27798 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27799
27800         glob: Fix C++ compilation.
27801         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27802         C++.
27803
27804 2010-01-07  Bruno Haible  <bruno@clisp.org>
27805
27806         Fix indentation of wctype.in.h, broken since 2007-01-06.
27807         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27808
27809 2010-01-07  Bruno Haible  <bruno@clisp.org>
27810
27811         mbslen: Avoid collision with system function.
27812         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27813         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27814         * m4/mbslen.m4: New file.
27815         * modules/mbslen (Files): Add it.
27816         (configure.ac): Invoke gl_MBSLEN.
27817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27818         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27819         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27820         via Ian Beckwith <ianb@erislabs.net>.
27821
27822 2010-01-07  Bruno Haible  <bruno@clisp.org>
27823
27824         dirent: Document the last fix.
27825         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27826
27827 2010-01-07  Bruno Haible  <bruno@clisp.org>
27828
27829         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27830         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27831         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27832         va_list are defined.
27833         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27834         Reported by Eric Blake.
27835
27836 2010-01-07  Bruno Haible  <bruno@clisp.org>
27837
27838         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27839         * modules/xlist (Depends-on): Add 'list',
27840         * modules/xoset (Depends-on): Add 'oset'.
27841         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27842
27843 2010-01-07  Bruno Haible  <bruno@clisp.org>
27844
27845         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27846         * doc/posix-functions/strncasecmp.texi: Likewise.
27847
27848 2010-01-07  Bruno Haible  <bruno@clisp.org>
27849
27850         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27851
27852 2010-01-07  John W. Eaton  <jwe@octave.org>
27853
27854         wctype: allow C++ use
27855         * lib/wctype.in.h: Add extern "C" block for C++.
27856
27857 2010-01-06  Eric Blake  <ebb9@byu.net>
27858
27859         maint.mk: detect incorrect GFDL usage
27860         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27861
27862 2010-01-06  Jim Meyering  <meyering@redhat.com>
27863         and Eric Blake  <ebb9@byu.net>
27864
27865         maint.mk: ignore multi-line copyright in NEWS
27866         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27867
27868 2010-01-06  Eric Blake  <ebb9@byu.net>
27869
27870         select: add missing dependency
27871         * modules/select-tests (Depends-on): Move sockets dependency...
27872         * modules/select (Depends-on): ...here.
27873         Reported by Ian Beckwith.
27874
27875         doc: regenerate INSTALL
27876         * doc/INSTALL: Reflect recent autoconf update.
27877         * doc/INSTALL.ISO: Likewise.
27878         * doc/INSTALL.UTF-8: Likewise.
27879
27880         pread: fix compilation on glibc
27881         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27882         Reported by Ralf Wildenhues.
27883
27884         dirent: fix test failure
27885         * lib/dirent.in.h (includes): Guarantee ino_t.
27886         Reported by Ralf Wildenhues.
27887
27888 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27889
27890         linkat, renameat: avoid bad free
27891         * lib/at-func2.c (at_func2): Fix typo.
27892         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27893
27894 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27895
27896         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27897         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27898         to avoid failure of symlink test later.
27899
27900 2010-01-06  Eric Blake  <ebb9@byu.net>
27901
27902         stdio, unistd: guarantee ssize_t
27903         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27904         2008 are exposed when needed.
27905         * lib/stdio.in.h (includes): Likewise.
27906         Reported by Ralf Wildenhues.
27907
27908 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27909
27910         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27911         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27912         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27913
27914 2010-01-06  Jim Meyering  <meyering@redhat.com>
27915
27916         readtokens: this module *does* require xalloc.h
27917         It uses only functions that were omitted by the old syntax-check rule.
27918         * lib/readtokens.c: Include "xalloc.h" once again.
27919         * modules/readtokens (Depends-on): Add xalloc.
27920         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27921
27922 2010-01-05  Eric Blake  <ebb9@byu.net>
27923
27924         maint: support 'make announcement' from a VPATH build
27925         * top/maint.mk (announcement): Look for correct NEWS file.
27926
27927 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27928
27929         utimens (fdutimens): ignore a negative FD, per contract
27930         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27931         when we have a valid file descriptor.  Otherwise, using a brand
27932         new glibc (with just-patched futimens that now fails with EBADF)
27933         would cause this function to fail with ENOSYS.
27934         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27935         See also http://bugzilla.redhat.com/552320.
27936
27937 2010-01-05  Eric Blake  <ebb9@byu.net>
27938
27939         strcase: document what it provides
27940         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27941         gnulib module.
27942         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27943         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27944
27945 2010-01-05  Jim Meyering  <meyering@redhat.com>
27946
27947         maint: remove useless inclusions of "xalloc.h"
27948         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27949         * lib/readtokens.c: Likewise.
27950         * lib/same.c: Likewise.
27951         * modules/getloadavg (Depends-on): Remove xalloc.
27952         * modules/readtokens: Likewise.
27953         * modules/same: Likewise.
27954
27955         maint.mk: include 4 more function names in alloca.h-checking regexp
27956         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27957         regexp.  Before, we would give a false-positive (saying alloca.h
27958         is included unnecessarily) when the only uses involved omitted symbols.
27959
27960         xalloc.h: use consistent formatting
27961         * lib/xalloc.h: Move declarations to start in the first column.
27962
27963 2010-01-05  Eric Blake  <ebb9@byu.net>
27964
27965         mkdir: avoid xalloc
27966         * lib/mkdir.c (includes): Drop unused header.
27967         Reported by John W. Eaton.
27968
27969 2010-01-04  Jim Meyering  <meyering@redhat.com>
27970
27971         nl_langinfo: avoid configure-time syntax error
27972         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27973         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27974         the empty string.  Don't let that provoke a shell syntax error.
27975
27976         regcomp, regexec, fnmatch: avoid array bounds read error
27977         * lib/regcomp.c (build_equiv_class): From glibc:
27978         Use only the low 24 bits of a findidx return value as an index
27979         into the weights array.  Patch by Ulrich Drepper:
27980         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27981         * lib/regexec.c (check_node_accept_bytes): Likewise.
27982         * lib/fnmatch_loop.c (FCT): Likewise.
27983
27984         regcomp: skip collseq lookup when there are no rules
27985         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27986         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27987
27988         regcomp: recognize ill-formed { } expressions
27989         * lib/regcomp.c (parse_dup_op): From glibc:
27990         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27991
27992         regcomp: fix typo in comment
27993         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27994         s/satisfy/satisfies/.
27995
27996         regcomp: sync from glibc: remove dead store
27997         * lib/regcomp.c (duplicate_node_closure): Remove useless
27998         search_duplicated_node call and dead store.
27999
28000         regcomp: sync from glibc; always use nl_langinfo
28001         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28002         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28003         * modules/regex (Depends-on): Add nl_langinfo.
28004
28005 2010-01-04  Eric Blake  <ebb9@byu.net>
28006
28007         fdopendir: fix configure test
28008         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28009
28010 2010-01-01  Bruno Haible  <bruno@clisp.org>
28011
28012         wchar: Remove unused configure check.
28013         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28014
28015 2010-01-01  Eric Blake  <ebb9@byu.net>
28016
28017         headers: make check of system header explicit
28018         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28019         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28020         ourselves.
28021         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28023         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28024         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28025         internals.
28026         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28027         missing.
28028         Suggested by Bruno Haible.
28029
28030 2010-01-01  Jim Meyering  <meyering@redhat.com>
28031
28032         ChangeLog: tweak to eliminate unnecessary copyright line
28033         * ChangeLog: Remove a copyright line that was mistakenly updated
28034         by today's update-copyright run.  Reported by Eric Blake.
28035
28036         test-update-copyright: don't let envvar setting cause test failure
28037         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28038
28039 2010-01-01  Bruno Haible  <bruno@clisp.org>
28040
28041         localename: Avoid gcc warning.
28042         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28043         function if it is not used.
28044
28045 2010-01-01  Jim Meyering  <meyering@redhat.com>
28046
28047         update nearly all FSF copyright year lists to include 2010
28048         Use the same procedure as for 2009, outlined in
28049         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28050
28051         version-etc: set COPYRIGHT_YEAR to 2010
28052         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28053
28054 2009-12-31  Eric Blake  <ebb9@byu.net>
28055
28056         doc: correct availability of cygwin 1.5.x getopt
28057         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28058         variables.
28059         * doc/posix-functions/opterr.texi (opterr): Likewise.
28060         * doc/posix-functions/optind.texi (optind): Likewise.
28061         * doc/posix-functions/optopt.texi (optopt): Likewise.
28062         * doc/posix-functions/tzname.texi (tzname): Likewise.
28063
28064         openat: update maintainer
28065         * modules/openat (Maintainer): Add myself.
28066
28067         utimens: avoid shadowing warning
28068         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28069         buffers into one, to avoid shadowing, as well as avoiding a
28070         redundant stat.
28071         Reported by Jim Meyering.
28072
28073         test-dup2: avoid compiler warning
28074         * tests/test-dup2.c (is_inheritable): Only define if used.
28075
28076 2010-01-01  Bruno Haible  <bruno@clisp.org>
28077
28078         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28079         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28080         defined, use wctomb instead of wcrtomb.
28081
28082 2010-01-01  Bruno Haible  <bruno@clisp.org>
28083
28084         iconv: Reject native Solaris iconv.
28085         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28086         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28087
28088 2009-12-31  Bruno Haible  <bruno@clisp.org>
28089
28090         * tests/test-signal.c (main): Remove test of 'SIG'.
28091
28092 2009-12-31  Bruno Haible  <bruno@clisp.org>
28093
28094         spawn: Fix incomplete fix.
28095         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28096         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28097         warnings for GNULIB_POSIXCHECK again.
28098         Reported by Eric Blake.
28099
28100 2009-12-31  Bruno Haible  <bruno@clisp.org>
28101
28102         Avoid namespace pollution on glibc systems.
28103         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28104         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28105         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28106         glibc systems.
28107
28108 2009-12-31  Bruno Haible  <bruno@clisp.org>
28109
28110         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28111         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28112         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28113         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28114         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28115         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28116         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28117
28118 2009-12-31  Bruno Haible  <bruno@clisp.org>
28119
28120         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28121         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28122         afterwards.
28123
28124 2009-12-31  Bruno Haible  <bruno@clisp.org>
28125
28126         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28127         SYS_UTSNAME_H.
28128
28129 2009-12-31  Bruno Haible  <bruno@clisp.org>
28130
28131         spawn: Fix misapplied patch.
28132         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28133         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28134         warnings for GNULIB_POSIXCHECK.
28135
28136 2009-12-31  Bruno Haible  <bruno@clisp.org>
28137
28138         times: Update after sys_times changed.
28139         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28140         * modules/times (Files): Add it.
28141         (configure.ac): Invoke gl_FUNC_TIMES.
28142
28143 2009-12-31  Bruno Haible  <bruno@clisp.org>
28144
28145         Use AC_C_INLINE where necessary.
28146         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28147         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28148         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28149         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28150         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28151         * m4/mbiter.m4 (gl_MBITER): Likewise.
28152         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28153         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28154         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28155         * modules/u64 (configure.ac): Likewise.
28156
28157 2009-12-31  Bruno Haible  <bruno@clisp.org>
28158
28159         Use AC_C_INLINE instead of module 'inline' where possible.
28160         * modules/inline (Description): Clarify purpose.
28161         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28162         * modules/count-one-bits (Depends-on): Remove inline.
28163         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28164         * modules/openat (Depends-on): Remove inline.
28165         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28166         instead of depending on module 'inline'.
28167         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28168         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28169         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28170         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28171         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28172         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28173         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28174         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28175         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28176         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28177         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28178         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28179         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28180         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28181         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28182         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28183         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28184         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28185         Likewise.
28186         * modules/unictype/property-ascii-hex-digit (Depends-on,
28187         configure.ac): Likewise.
28188         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28189         configure.ac): Likewise.
28190         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28191         configure.ac): Likewise.
28192         * modules/unictype/property-bidi-block-separator (Depends-on,
28193         configure.ac): Likewise.
28194         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28195         configure.ac): Likewise.
28196         * modules/unictype/property-bidi-common-separator (Depends-on,
28197         configure.ac): Likewise.
28198         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28199         Likewise.
28200         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28201         configure.ac): Likewise.
28202         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28203         configure.ac): Likewise.
28204         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28205         configure.ac): Likewise.
28206         * modules/unictype/property-bidi-european-digit (Depends-on,
28207         configure.ac): Likewise.
28208         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28209         configure.ac): Likewise.
28210         * modules/unictype/property-bidi-left-to-right (Depends-on,
28211         configure.ac): Likewise.
28212         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28213         configure.ac): Likewise.
28214         * modules/unictype/property-bidi-other-neutral (Depends-on,
28215         configure.ac): Likewise.
28216         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28217         Likewise.
28218         * modules/unictype/property-bidi-segment-separator (Depends-on,
28219         configure.ac): Likewise.
28220         * modules/unictype/property-bidi-whitespace (Depends-on,
28221         configure.ac): Likewise.
28222         * modules/unictype/property-combining (Depends-on, configure.ac):
28223         Likewise.
28224         * modules/unictype/property-composite (Depends-on, configure.ac):
28225         Likewise.
28226         * modules/unictype/property-currency-symbol (Depends-on,
28227         configure.ac): Likewise.
28228         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28229         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28230         Likewise.
28231         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28232         configure.ac): Likewise.
28233         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28234         Likewise.
28235         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28236         Likewise.
28237         * modules/unictype/property-extender (Depends-on, configure.ac):
28238         Likewise.
28239         * modules/unictype/property-format-control (Depends-on, configure.ac):
28240         Likewise.
28241         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28242         Likewise.
28243         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28244         Likewise.
28245         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28246         Likewise.
28247         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28248         Likewise.
28249         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28250         Likewise.
28251         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28252         Likewise.
28253         * modules/unictype/property-id-start (Depends-on, configure.ac):
28254         Likewise.
28255         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28256         Likewise.
28257         * modules/unictype/property-ids-binary-operator (Depends-on,
28258         configure.ac): Likewise.
28259         * modules/unictype/property-ids-trinary-operator (Depends-on,
28260         configure.ac): Likewise.
28261         * modules/unictype/property-ignorable-control (Depends-on,
28262         configure.ac): Likewise.
28263         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28264         Likewise.
28265         * modules/unictype/property-join-control (Depends-on, configure.ac):
28266         Likewise.
28267         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28268         Likewise.
28269         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28270         Likewise.
28271         * modules/unictype/property-logical-order-exception (Depends-on,
28272         configure.ac): Likewise.
28273         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28274         Likewise.
28275         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28276         * modules/unictype/property-non-break (Depends-on, configure.ac):
28277         Likewise.
28278         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28279         Likewise.
28280         * modules/unictype/property-numeric (Depends-on, configure.ac):
28281         Likewise.
28282         * modules/unictype/property-other-alphabetic (Depends-on,
28283         configure.ac): Likewise.
28284         * modules/unictype/property-other-default-ignorable-code-point
28285         (Depends-on, configure.ac): Likewise.
28286         * modules/unictype/property-other-grapheme-extend (Depends-on,
28287         configure.ac): Likewise.
28288         * modules/unictype/property-other-id-continue (Depends-on,
28289         configure.ac): Likewise.
28290         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28291         Likewise.
28292         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28293         Likewise.
28294         * modules/unictype/property-other-math (Depends-on, configure.ac):
28295         Likewise.
28296         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28297         Likewise.
28298         * modules/unictype/property-paired-punctuation (Depends-on,
28299         configure.ac): Likewise.
28300         * modules/unictype/property-paragraph-separator (Depends-on,
28301         configure.ac): Likewise.
28302         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28303         Likewise.
28304         * modules/unictype/property-pattern-white-space (Depends-on,
28305         configure.ac): Likewise.
28306         * modules/unictype/property-private-use (Depends-on, configure.ac):
28307         Likewise.
28308         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28309         Likewise.
28310         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28311         Likewise.
28312         * modules/unictype/property-radical (Depends-on, configure.ac):
28313         Likewise.
28314         * modules/unictype/property-sentence-terminal (Depends-on,
28315         configure.ac): Likewise.
28316         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28317         Likewise.
28318         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28319         * modules/unictype/property-terminal-punctuation (Depends-on,
28320         configure.ac): Likewise.
28321         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28322         Likewise.
28323         * modules/unictype/property-unassigned-code-value (Depends-on,
28324         configure.ac): Likewise.
28325         * modules/unictype/property-unified-ideograph (Depends-on,
28326         configure.ac): Likewise.
28327         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28328         Likewise.
28329         * modules/unictype/property-variation-selector (Depends-on,
28330         configure.ac): Likewise.
28331         * modules/unictype/property-white-space (Depends-on, configure.ac):
28332         Likewise.
28333         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28334         Likewise.
28335         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28336         Likewise.
28337         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28338         Likewise.
28339         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28340         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28341         Likewise.
28342
28343 2009-12-31  Bruno Haible  <bruno@clisp.org>
28344
28345         Remove unnecessary AC_C_INLINE invocation.
28346         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28347         since 2009-08-21.
28348
28349 2009-12-31  Jim Meyering  <meyering@redhat.com>
28350
28351         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28352         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28353         With this change, we can all remove the gpg_key_ID = ... definition
28354         from our respective cfg.mk files.
28355
28356         maint.mk: create announcement template in ~/, not in /tmp
28357         * top/maint.mk (emit_upload_commands): Adjust.
28358         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28359         Remove temporary file, .ci-msg.
28360
28361 2009-12-31  Eric Blake  <ebb9@byu.net>
28362
28363         link-warning: always build headers with link warnings
28364         * modules/arpa_inet (Makefile.am): Always build replacement
28365         header.
28366         * modules/ctype (Makefile.am): Likewise.
28367         * modules/dirent (Makefile.am): Likewise.
28368         * modules/inttypes (Makefile.am): Likewise.
28369         * modules/langinfo (Makefile.am): Likewise.
28370         * modules/locale (Makefile.am): Likewise.
28371         * modules/spawn (Makefile.am): Likewise.
28372         * modules/sys_file (Makefile.am): Likewise.
28373         * modules/sys_ioctl (Makefile.am): Likewise.
28374         * modules/sys_select (Makefile.am): Likewise.
28375         * modules/sys_socket (Makefile.am): Likewise.
28376         * modules/sys_times (Makefile.am): Likewise.
28377         * modules/sys_utsname (Makefile.am): Likewise.
28378         * modules/sys_wait (Makefile.am): Likewise.
28379         * modules/wchar (Makefile.am): Likewise.
28380         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28381         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28382         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28383         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28384         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28385         Likewise.
28386         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28387         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28388         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28389         Likewise.
28390         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28391         Likewise.
28392         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28393         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28394         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28395         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28396         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28397         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28398         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28399         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28400         (gl_WCHAR_H_DEFAULTS): Likewise.
28401
28402 2009-12-31  Eric Blake  <ebb9@byu.net>
28403
28404         signal, spawn: use link warnings
28405         * lib/signal.in.h (sigset_t): Make unconditional.
28406         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28407         (sigpending, sigprocmask, sigaction): Add link warnings.
28408         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28409         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28410         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28411         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28412         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28413         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28414         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28415         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28416         (posix_spawn_file_actions_destroy)
28417         (posix_spawn_file_actions_addopen)
28418         (posix_spawn_file_actions_addclose)
28419         (posix_spawn_file_actions_adddup2): Likewise.
28420         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28421         * tests/test-signal.c (main): Enhance test.
28422
28423         spawn: improve wrapper support
28424         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28425         (gl_SPAWN_H_DEFAULTS): New defaults.
28426         * modules/spawn (Makefile.am): Substitute them.
28427         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28428         Only declare if missing or broken.
28429
28430         sys_times, sys_utsname: use include_next
28431         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28432         header.
28433         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28434         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28435         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28436         * modules/sys_times (Depends-on): Add include_next.
28437         (Makefile.am): Substitute additional values.
28438         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28439         * lib/sys_times.in.h (includes): Include native header, if
28440         available.
28441         * lib/sys_utsname.in.h (includes): Likewise.
28442         * tests/test-sys_times.c (main): Enhance test.
28443
28444         fdutimensat: revert prior patch
28445         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28446         utimens.h.
28447         Reported by Bruno Haible.
28448
28449 2009-12-30  Eric Blake  <ebb9@byu.net>
28450
28451         sys_wait: drop link-warning dependency
28452         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28453         link-warning efforts.
28454         * lib/sys_wait.in.h: Likewise.
28455
28456         fdutimensat: remove bogus dependency
28457         * modules/fdutimensat (Depends-on): Drop inline.
28458
28459         unistd: fix typo
28460         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28461
28462 2009-12-30  Bruno Haible  <bruno@clisp.org>
28463
28464         Fix compilation error with Solaris cc.
28465         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28466         * lib/unicase/u16-is-invariant.c: Likewise.
28467         * lib/unicase/u32-is-invariant.c: Likewise.
28468         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28469
28470 2009-12-30  Bruno Haible  <bruno@clisp.org>
28471
28472         Fix test crash.
28473         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28474         locales.
28475         Reported by Simon Josefsson <simon@josefsson.org>.
28476
28477 2009-12-30  Bruno Haible  <bruno@clisp.org>
28478
28479         Fix compilation error on most platforms.
28480         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28481         Reported by Simon Josefsson <simon@josefsson.org>
28482         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28483
28484 2009-12-30  Eric Blake  <ebb9@byu.net>
28485
28486         futimens, utimensat: work around ntfs-3g bug
28487         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28488         a ctime bug is present, and expand workaround to cover ntfs-3g.
28489         * lib/utimens.c (fdutimens, lutimens): Likewise.
28490         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28491         (validate_timespec): Adjust return value.
28492         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28493         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28494         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28495
28496 2009-12-29  Eric Blake  <ebb9@byu.net>
28497
28498         link-warning: make usage consistent
28499         * modules/ctype (Depends-on): Add link-warning.
28500         (Makefile.am): Update rules accordingly.
28501         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28502         * modules/locale (Depends-on, Makefile.am): Likewise.
28503         * modules/sys_file (Makefile.am): Likewise.
28504         * modules/getopt-posix (Makefile.am): Delete unused link warning
28505         efforts.
28506         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28507         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28508         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28509         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28510
28511         stdio: remove unused variables
28512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28513         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28514         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28515
28516         tests: test more substitute headers
28517         * modules/ctype-tests: New file.
28518         * modules/dirent-tests: Likewise.
28519         * modules/spawn-tests: Likewise.
28520         * modules/sys_file-tests: Likewise.
28521         * modules/sys_ioctl-tests: Likewise.
28522         * modules/sys_wait-tests: Likewise.
28523         * tests/test-ctype.c: Likewise.
28524         * tests/test-dirent.c: Likewise.
28525         * tests/test-spawn.c: Likewise.
28526         * tests/test-sys_file.c: Likewise.
28527         * tests/test-sys_ioctl.c: Likewise.
28528         * tests/test-sys_wait.c: Likewise.
28529         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28530         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28531         whether or not flock is in use.
28532
28533         tests: remove License section from module
28534         * modules/arpa_inet-tests: Remove unneeded section.
28535         * modules/byteswap-tests: Likewise.
28536         * modules/ceilf-tests: Likewise.
28537         * modules/ceill-tests: Likewise.
28538         * modules/crypto/des-tests: Likewise.
28539         * modules/crypto/gc-arcfour-tests: Likewise.
28540         * modules/crypto/gc-arctwo-tests: Likewise.
28541         * modules/crypto/gc-des-tests: Likewise.
28542         * modules/crypto/gc-hmac-md5-tests: Likewise.
28543         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28544         * modules/crypto/gc-md2-tests: Likewise.
28545         * modules/crypto/gc-md4-tests: Likewise.
28546         * modules/crypto/gc-md5-tests: Likewise.
28547         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28548         * modules/crypto/gc-rijndael-tests: Likewise.
28549         * modules/crypto/gc-sha1-tests: Likewise.
28550         * modules/crypto/gc-tests: Likewise.
28551         * modules/crypto/md2-tests: Likewise.
28552         * modules/crypto/md4-tests: Likewise.
28553         * modules/fcntl-h-tests: Likewise.
28554         * modules/floorf-tests: Likewise.
28555         * modules/floorl-tests: Likewise.
28556         * modules/frexp-nolibm-tests: Likewise.
28557         * modules/frexp-tests: Likewise.
28558         * modules/frexpl-nolibm-tests: Likewise.
28559         * modules/frexpl-tests: Likewise.
28560         * modules/getaddrinfo-tests: Likewise.
28561         * modules/inttypes-tests: Likewise.
28562         * modules/isfinite-tests: Likewise.
28563         * modules/isinf-tests: Likewise.
28564         * modules/ldexpl-tests: Likewise.
28565         * modules/locale-tests: Likewise.
28566         * modules/math-tests: Likewise.
28567         * modules/netdb-tests: Likewise.
28568         * modules/netinet_in-tests: Likewise.
28569         * modules/printf-frexp-tests: Likewise.
28570         * modules/printf-frexpl-tests: Likewise.
28571         * modules/priv-set-tests: Likewise.
28572         * modules/random_r-tests: Likewise.
28573         * modules/round-tests: Likewise.
28574         * modules/roundf-tests: Likewise.
28575         * modules/roundl-tests: Likewise.
28576         * modules/search-tests: Likewise.
28577         * modules/select-tests: Likewise.
28578         * modules/signal-tests: Likewise.
28579         * modules/stdbool-tests: Likewise.
28580         * modules/stddef-tests: Likewise.
28581         * modules/stdint-tests: Likewise.
28582         * modules/stdio-tests: Likewise.
28583         * modules/stdlib-tests: Likewise.
28584         * modules/string-tests: Likewise.
28585         * modules/strings-tests: Likewise.
28586         * modules/sys_select-tests: Likewise.
28587         * modules/sys_socket-tests: Likewise.
28588         * modules/sys_stat-tests: Likewise.
28589         * modules/sys_time-tests: Likewise.
28590         * modules/sys_utsname-tests: Likewise.
28591         * modules/sysexits-tests: Likewise.
28592         * modules/time-tests: Likewise.
28593         * modules/trunc-tests: Likewise.
28594         * modules/truncf-tests: Likewise.
28595         * modules/truncl-tests: Likewise.
28596         * modules/tsearch-tests: Likewise.
28597         * modules/unistd-tests: Likewise.
28598         * modules/wchar-tests: Likewise.
28599         * modules/wctype-tests: Likewise.
28600
28601         tests: fix license on several tests
28602         * tests/test-des.c: Update to GPLv3+.
28603         * tests/test-flock.c: Likewise.
28604         * tests/test-fsync.c: Likewise.
28605         * tests/test-futimens.h: Likewise.
28606         * tests/test-gc-arcfour.c: Likewise.
28607         * tests/test-gc-arctwo.c: Likewise.
28608         * tests/test-gc-des.c: Likewise.
28609         * tests/test-gc-hmac-md5.c: Likewise.
28610         * tests/test-gc-hmac-sha1.c: Likewise.
28611         * tests/test-gc-md2.c: Likewise.
28612         * tests/test-gc-md4.c: Likewise.
28613         * tests/test-gc-md5.c: Likewise.
28614         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28615         * tests/test-gc-rijndael.c: Likewise.
28616         * tests/test-gc-sha1.c: Likewise.
28617         * tests/test-gc.c: Likewise.
28618         * tests/test-getcwd.c: Likewise.
28619         * tests/test-link.c: Likewise.
28620         * tests/test-link.h: Likewise.
28621         * tests/test-lutimens.h: Likewise.
28622         * tests/test-md2.c: Likewise.
28623         * tests/test-md4.c: Likewise.
28624         * tests/test-mkdir.h: Likewise.
28625         * tests/test-rename.c: Likewise.
28626         * tests/test-rename.h: Likewise.
28627         * tests/test-safe-alloc.c: Likewise.
28628         * tests/test-utimens-common.h: Likewise.
28629         * tests/test-utimens.h: Likewise.
28630
28631         maint: sync license texts
28632         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28633         * doc/gpl-3.0.texi: Revert copyright year update.
28634         * doc/lgpl-3.0.texi: Likewise.
28635
28636 2009-12-29  Jim Meyering  <meyering@redhat.com>
28637
28638         update nearly all FSF copyright year lists to include 2009
28639         The files named by the following are exempted:
28640             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28641               test -f "$dst" && { echo "$dst"; continue; }
28642               test -d "$dst" || continue
28643               echo "$dst"/$(basename "$src")
28644             done > exempt
28645             git ls-files tests/unictype >> exempt
28646         In the remaining files, convert to all-interval notation if
28647         - there is already at least one year interval like 2000-2003
28648         - the file is maintained by me
28649         - the file is in lib/uni*/, where that style already prevails
28650         Otherwise, use update-copyright's default.
28651
28652 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28653         and Eric Blake  <ebb9@byu.net>
28654
28655         tests: don't require debug system() to pass
28656         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28657         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28658         * tests/test-unlink.h (test_unlink_func): Likewise.
28659         * tests/test-fstatat.c (main): ...into callers.
28660         * tests/test-lstat.c (main): Likewise.
28661         * tests/test-rmdir.c (main): Likewise.
28662         * tests/test-unlink.c (main): Likewise.
28663         * tests/test-unlinkat.c (main): Likewise.
28664         * tests/test-areadlink-with-size.c (main): Don't require a
28665         debug-only system call to pass, aiding cross-testing to mingw.
28666         * tests/test-areadlink.c (main): Likewise.
28667         * tests/test-areadlinkat-with-size.c (main): Likewise.
28668         * tests/test-areadlinkat.c (main): Likewise.
28669         * tests/test-canonicalize-lgpl.c (main): Likewise.
28670         * tests/test-canonicalize.c (main): Likewise.
28671         * tests/test-chown.c (main): Likewise.
28672         * tests/test-fchownat.c (main): Likewise.
28673         * tests/test-lchown.c (main): Likewise.
28674         * tests/test-fdutimensat.c (main): Likewise.
28675         * tests/test-futimens.c (main): Likewise.
28676         * tests/test-link.c (main): Likewise.
28677         * tests/test-linkat.c (main): Likewise.
28678         * tests/test-mkdir.c (main): Likewise.
28679         * tests/test-mkdirat.c (main): Likewise.
28680         * tests/test-mkfifo.c (main): Likewise.
28681         * tests/test-mkfifoat.c (main): Likewise.
28682         * tests/test-mknod.c (main): Likewise.
28683         * tests/test-readlink.c (main): Likewise.
28684         * tests/test-remove.c (main): Likewise.
28685         * tests/test-rename.c (main): Likewise.
28686         * tests/test-renameat.c (main): Likewise.
28687         * tests/test-symlink.c (main): Likewise.
28688         * tests/test-symlinkat.c (main): Likewise.
28689         * tests/test-utimens.c (main): Likewise.
28690         * tests/test-utimensat.c (main): Likewise.
28691
28692 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28693
28694         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28695         on $(UNUSED_PARAMETER_H) to avoid build failure.
28696
28697 2009-12-28  Jim Meyering  <meyering@redhat.com>
28698
28699         update-copyright: you may specify a max. line length other than 72
28700         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28701
28702         maint: use consistent FSF copyright line syntax
28703         * lib/posixtm.c: Add missing comma in FSF copyright line.
28704         * lib/posixtm.h: Likewise.
28705         * lib/getugroups.c: Add missing ", Inc.".
28706
28707         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28708         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28709         FSF copyright line.  Remove trailing blanks.
28710
28711 2009-12-28  Eric Blake  <ebb9@byu.net>
28712
28713         test-dup2: reduce dependencies
28714         * modules/cloexec (Configure.ac): Set witness.
28715         * modules/dup2-tests (Depends-on): Drop cloexec.
28716         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28717         not present.
28718         Suggested by Bruno Haible.
28719
28720 2009-12-26  Bruno Haible  <bruno@clisp.org>
28721
28722         Remove an unneeded dependency.
28723         * modules/fseterr (Depends-on): Remove dup2.
28724
28725 2009-12-26  Eric Blake  <ebb9@byu.net>
28726
28727         tests: use macros.h in more places
28728         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28729         (ASSERT_STREAM): Provide default of stderr.
28730         * tests/test-dirent-safer.c: Include macros.h, using alternate
28731         stream for assertions.
28732         * tests/test-dup-safer.c: Likewise.
28733         * tests/test-freopen-safer.c: Likewise.
28734         * tests/test-getopt.c: Likewise.
28735         * tests/test-openat-safer.c: Likewise.
28736         * tests/test-pipe.c: Likewise.
28737         * tests/test-popen-safer.c: Likewise.
28738         * modules/dirent-safer-tests (Files): Include macros.h.
28739         * modules/unistd-safer-tests (Files): Likewise.
28740         * modules/freopen-safer-tests (Files): Likewise.
28741         * modules/getopt-posix-tests (Files): Likewise.
28742         * modules/openat-safer-tests (Files): Likewise.
28743         * modules/pipe-tests (Files): Likewise.
28744
28745 2009-12-26  Bruno Haible  <bruno@clisp.org>
28746
28747         javacomp: Portability fix.
28748         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28749         that it also works on Solaris.
28750
28751 2009-12-26  Bruno Haible  <bruno@clisp.org>
28752
28753         localename: Fix storage allocation of gl_locale_name_thread's result.
28754         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28755         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28756         all platforms that have 'uselocale'.
28757         (gl_locale_name_thread_unsafe): New function, extracted from
28758         gl_locale_name_thread.
28759         (gl_locale_name_thread): Call struniq on all platforms that have
28760         'uselocale'.
28761         * tests/test-localename.c (test_locale_name_thread): Check that the
28762         resulting strings are permanently allocated.
28763         * modules/localename-tests (Depends-on): Add strdup.
28764
28765 2009-12-26  Bruno Haible  <bruno@clisp.org>
28766
28767         * tests/test-localename.c (categories): Fill in the strings.
28768
28769 2009-12-26  Jim Meyering  <meyering@redhat.com>
28770
28771         isdir: complete the removal of m4/isdir.m4
28772         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28773
28774         isdir: clean up, since at least grep still uses it
28775         * lib/isdir.c: Include "isdir.h".
28776         (S_ISDIR): Remove now-unneeded definition.
28777         * modules/isdir (Files): Add lib/isdir.h.
28778         * lib/isdir.h: New file, with declaration.
28779         * m4/isdir.m4: Remove file -- unneeded.
28780
28781 2009-12-25  Bruno Haible  <bruno@clisp.org>
28782
28783         selinux-h: Make generated .h files standalone.
28784         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28785         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28786         * lib/se-selinux.in.h: Likewise.
28787         * modules/selinux-h (Depends-on): Add unused-parameter.
28788         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28789         selinux/selinux.h and selinux/context.h.
28790         Suggested by Eric Blake.
28791
28792 2009-12-25  Bruno Haible  <bruno@clisp.org>
28793
28794         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28795         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28796         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28797         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28798         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28799
28800 2009-12-24  Bruno Haible  <bruno@clisp.org>
28801
28802         openat: Fix warning.
28803         * lib/openat-proc.c: Include <unistd.h>.
28804
28805 2009-12-24  Bruno Haible  <bruno@clisp.org>
28806
28807         New module 'unused-parameter'.
28808         * build-aux/unused-parameter.h: New file, extracted from earlier
28809         gnulib-common.m4.
28810         * modules/unused-parameter: New file.
28811         * lib/unistr.h: Include unused-parameter.h.
28812         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28813         _GL_UNUSED.
28814         * modules/unistr/base (Depends-on): Add unused-parameter.
28815
28816 2009-12-24  Bruno Haible  <bruno@clisp.org>
28817
28818         Add missing dependencies to 'extensions' module.
28819         * m4/extensions.m4: Add comment.
28820         * modules/accept4 (Depends-on): Add extensions.
28821         * modules/dup3 (Depends-on): Likewise.
28822         * modules/fcntl (Depends-on): Likewise.
28823         * modules/futimens (Depends-on): Likewise.
28824         * modules/mknod (Depends-on): Likewise.
28825         * modules/pipe2 (Depends-on): Likewise.
28826         * modules/stat-time (Depends-on): Likewise.
28827         * modules/strcasestr-simple (Depends-on): Likewise.
28828         * modules/strsignal (Depends-on): Likewise.
28829         * modules/utimensat (Depends-on): Likewise.
28830         * modules/localcharset (Depends-on): Likewise. Needed because of
28831         gl_FCNTL_O_FLAGS.
28832         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28833         AC_TYPE_MBSTATE_T.
28834         * modules/wcsnrtombs (Depends-on): Likewise.
28835         * modules/wcsrtombs (Depends-on): Likewise.
28836
28837 2009-12-24  Bruno Haible  <bruno@clisp.org>
28838
28839         binary-io: Avoid gcc warning due to SET_BINARY.
28840         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28841         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28842
28843 2009-12-24  Bruno Haible  <bruno@clisp.org>
28844
28845         Avoid future namespace pollution on glibc systems.
28846         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28847         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28848         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28849         glibc systems.
28850
28851 2009-12-24  Bruno Haible  <bruno@clisp.org>
28852
28853         Refactor common macros used in tests.
28854         * tests/macros.h: New file.
28855         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28856         and/or <stdlib.h>, if appropriate.
28857         (ASSERT, SIZEOF): Remove macros.
28858         * tests/test-areadlink-with-size.c: Likewise.
28859         * tests/test-areadlinkat.c: Likewise.
28860         * tests/test-areadlinkat-with-size.c: Likewise.
28861         * tests/test-argmatch.c: Likewise.
28862         * tests/test-argv-iter.c: Likewise.
28863         * tests/test-array-mergesort.c: Likewise.
28864         * tests/test-array_list.c: Likewise.
28865         * tests/test-array_oset.c: Likewise.
28866         * tests/test-avltree_list.c: Likewise.
28867         * tests/test-avltree_oset.c: Likewise.
28868         * tests/test-avltreehash_list.c: Likewise.
28869         * tests/test-base64.c: Likewise.
28870         * tests/test-binary-io.c: Likewise.
28871         * tests/test-bitrotate.c: Likewise.
28872         * tests/test-btowc.c: Likewise.
28873         * tests/test-byteswap.c: Likewise.
28874         * tests/test-c-ctype.c: Likewise.
28875         * tests/test-c-stack.c: Likewise.
28876         * tests/test-c-strcasecmp.c: Likewise.
28877         * tests/test-c-strcasestr.c: Likewise.
28878         * tests/test-c-strncasecmp.c: Likewise.
28879         * tests/test-c-strstr.c: Likewise.
28880         * tests/test-canonicalize-lgpl.c: Likewise.
28881         * tests/test-canonicalize.c: Likewise.
28882         * tests/test-carray_list.c: Likewise.
28883         * tests/test-ceilf1.c: Likewise.
28884         * tests/test-ceilf2.c: Likewise.
28885         * tests/test-ceill.c: Likewise.
28886         * tests/test-chown.c: Likewise.
28887         * tests/test-cloexec.c: Likewise.
28888         * tests/test-copy-acl.c: Likewise.
28889         * tests/test-copy-file.c: Likewise.
28890         * tests/test-count-one-bits.c: Likewise.
28891         * tests/test-dprintf-posix.c: Likewise.
28892         * tests/test-dup2.c: Likewise.
28893         * tests/test-dup3.c: Likewise.
28894         * tests/test-duplocale.c: Likewise.
28895         * tests/test-fbufmode.c: Likewise.
28896         * tests/test-fchdir.c: Likewise.
28897         * tests/test-fchownat.c: Likewise.
28898         * tests/test-fcntl-safer.c: Likewise.
28899         * tests/test-fcntl.c: Likewise.
28900         * tests/test-fdopendir.c: Likewise.
28901         * tests/test-fdutimensat.c: Likewise.
28902         * tests/test-fflush2.c: Likewise.
28903         * tests/test-file-has-acl.c: Likewise.
28904         * tests/test-filevercmp.c: Likewise.
28905         * tests/test-flock.c: Likewise.
28906         * tests/test-floorf1.c: Likewise.
28907         * tests/test-floorf2.c: Likewise.
28908         * tests/test-floorl.c: Likewise.
28909         * tests/test-fnmatch.c: Likewise.
28910         * tests/test-fopen.h: Likewise.
28911         * tests/test-fpending.c: Likewise.
28912         * tests/test-fprintf-posix.c: Likewise.
28913         * tests/test-fpurge.c: Likewise.
28914         * tests/test-freadable.c: Likewise.
28915         * tests/test-freadahead.c: Likewise.
28916         * tests/test-freading.c: Likewise.
28917         * tests/test-freadptr.c: Likewise.
28918         * tests/test-freadptr2.c: Likewise.
28919         * tests/test-freadseek.c: Likewise.
28920         * tests/test-freopen.c: Likewise.
28921         * tests/test-frexp.c: Likewise.
28922         * tests/test-frexpl.c: Likewise.
28923         * tests/test-fseek.c: Likewise.
28924         * tests/test-fseeko.c: Likewise.
28925         * tests/test-fstatat.c: Likewise.
28926         * tests/test-fstrcmp.c: Likewise.
28927         * tests/test-fsync.c: Likewise.
28928         * tests/test-ftell.c: Likewise.
28929         * tests/test-ftello.c: Likewise.
28930         * tests/test-func.c: Likewise.
28931         * tests/test-futimens.c: Likewise.
28932         * tests/test-fwritable.c: Likewise.
28933         * tests/test-fwriting.c: Likewise.
28934         * tests/test-getcwd.c: Likewise.
28935         * tests/test-getdate.c: Likewise.
28936         * tests/test-getdelim.c: Likewise.
28937         * tests/test-getdtablesize.c: Likewise.
28938         * tests/test-getgroups.c: Likewise.
28939         * tests/test-getline.c: Likewise.
28940         * tests/test-getndelim2.c: Likewise.
28941         * tests/test-glob.c: Likewise.
28942         * tests/test-hash.c: Likewise.
28943         * tests/test-i-ring.c: Likewise.
28944         * tests/test-iconv-utf.c: Likewise.
28945         * tests/test-iconv.c: Likewise.
28946         * tests/test-idpriv-drop.c: Likewise.
28947         * tests/test-idpriv-droptemp.c: Likewise.
28948         * tests/test-inet_ntop.c: Likewise.
28949         * tests/test-inet_pton.c: Likewise.
28950         * tests/test-isblank.c: Likewise.
28951         * tests/test-isfinite.c: Likewise.
28952         * tests/test-isinf.c: Likewise.
28953         * tests/test-isnan.c: Likewise.
28954         * tests/test-isnand.h: Likewise.
28955         * tests/test-isnanf.h: Likewise.
28956         * tests/test-isnanl.h: Likewise.
28957         * tests/test-lchown.c: Likewise.
28958         * tests/test-ldexpl.c: Likewise.
28959         * tests/test-link.c: Likewise.
28960         * tests/test-linkat.c: Likewise.
28961         * tests/test-linked_list.c: Likewise.
28962         * tests/test-linkedhash_list.c: Likewise.
28963         * tests/test-localename.c: Likewise.
28964         * tests/test-lseek.c: Likewise.
28965         * tests/test-lstat.c: Likewise.
28966         * tests/test-mbmemcasecmp.c: Likewise.
28967         * tests/test-mbmemcasecoll.c: Likewise.
28968         * tests/test-mbrtowc.c: Likewise.
28969         * tests/test-mbscasecmp.c: Likewise.
28970         * tests/test-mbscasestr1.c: Likewise.
28971         * tests/test-mbscasestr2.c: Likewise.
28972         * tests/test-mbscasestr3.c: Likewise.
28973         * tests/test-mbscasestr4.c: Likewise.
28974         * tests/test-mbschr.c: Likewise.
28975         * tests/test-mbscspn.c: Likewise.
28976         * tests/test-mbsinit.c: Likewise.
28977         * tests/test-mbsncasecmp.c: Likewise.
28978         * tests/test-mbsnrtowcs.c: Likewise.
28979         * tests/test-mbspbrk.c: Likewise.
28980         * tests/test-mbspcasecmp.c: Likewise.
28981         * tests/test-mbsrchr.c: Likewise.
28982         * tests/test-mbsrtowcs.c: Likewise.
28983         * tests/test-mbsspn.c: Likewise.
28984         * tests/test-mbsstr1.c: Likewise.
28985         * tests/test-mbsstr2.c: Likewise.
28986         * tests/test-mbsstr3.c: Likewise.
28987         * tests/test-memchr.c: Likewise.
28988         * tests/test-memchr2.c: Likewise.
28989         * tests/test-memcmp.c: Likewise.
28990         * tests/test-memmem.c: Likewise.
28991         * tests/test-memrchr.c: Likewise.
28992         * tests/test-mkdir.c: Likewise.
28993         * tests/test-mkdirat.c: Likewise.
28994         * tests/test-mkfifo.c: Likewise.
28995         * tests/test-mkfifoat.c: Likewise.
28996         * tests/test-mknod.c: Likewise.
28997         * tests/test-nanosleep.c: Likewise.
28998         * tests/test-nl_langinfo.c: Likewise.
28999         * tests/test-obstack-printf.c: Likewise.
29000         * tests/test-open.c: Likewise.
29001         * tests/test-openat.c: Likewise.
29002         * tests/test-pipe-filter-gi1.c: Likewise.
29003         * tests/test-pipe-filter-gi2-main.c: Likewise.
29004         * tests/test-pipe-filter-ii1.c: Likewise.
29005         * tests/test-pipe-filter-ii2-main.c: Likewise.
29006         * tests/test-pipe2.c: Likewise.
29007         * tests/test-popen.h: Likewise.
29008         * tests/test-posixtm.c: Likewise.
29009         * tests/test-pread.c: Likewise.
29010         * tests/test-printf-frexp.c: Likewise.
29011         * tests/test-printf-frexpl.c: Likewise.
29012         * tests/test-printf-posix.c: Likewise.
29013         * tests/test-priv-set.c: Likewise.
29014         * tests/test-quotearg.c: Likewise.
29015         * tests/test-random_r.c: Likewise.
29016         * tests/test-rawmemchr.c: Likewise.
29017         * tests/test-rbtree_list.c: Likewise.
29018         * tests/test-rbtree_oset.c: Likewise.
29019         * tests/test-rbtreehash_list.c: Likewise.
29020         * tests/test-readlink.c: Likewise.
29021         * tests/test-remove.c: Likewise.
29022         * tests/test-rename.c: Likewise.
29023         * tests/test-renameat.c: Likewise.
29024         * tests/test-rmdir.c: Likewise.
29025         * tests/test-round1.c: Likewise.
29026         * tests/test-roundf1.c: Likewise.
29027         * tests/test-roundl.c: Likewise.
29028         * tests/test-safe-alloc.c: Likewise.
29029         * tests/test-sameacls.c: Likewise.
29030         * tests/test-set-mode-acl.c: Likewise.
29031         * tests/test-setenv.c: Likewise.
29032         * tests/test-sigaction.c: Likewise.
29033         * tests/test-signbit.c: Likewise.
29034         * tests/test-sleep.c: Likewise.
29035         * tests/test-snprintf-posix.c: Likewise.
29036         * tests/test-snprintf.c: Likewise.
29037         * tests/test-sprintf-posix.c: Likewise.
29038         * tests/test-stat-time.c: Likewise.
29039         * tests/test-stat.c: Likewise.
29040         * tests/test-strcasestr.c: Likewise.
29041         * tests/test-strchrnul.c: Likewise.
29042         * tests/test-strerror.c: Likewise.
29043         * tests/test-striconv.c: Likewise.
29044         * tests/test-striconveh.c: Likewise.
29045         * tests/test-striconveha.c: Likewise.
29046         * tests/test-strsignal.c: Likewise.
29047         * tests/test-strstr.c: Likewise.
29048         * tests/test-strtod.c: Likewise.
29049         * tests/test-strverscmp.c: Likewise.
29050         * tests/test-symlink.c: Likewise.
29051         * tests/test-symlinkat.c: Likewise.
29052         * tests/test-trunc1.c: Likewise.
29053         * tests/test-trunc2.c: Likewise.
29054         * tests/test-truncf1.c: Likewise.
29055         * tests/test-truncf2.c: Likewise.
29056         * tests/test-truncl.c: Likewise.
29057         * tests/test-uname.c: Likewise.
29058         * tests/test-unlink.c: Likewise.
29059         * tests/test-unlinkat.c: Likewise.
29060         * tests/test-unsetenv.c: Likewise.
29061         * tests/test-usleep.c: Likewise.
29062         * tests/test-utimens.c: Likewise.
29063         * tests/test-utimensat.c: Likewise.
29064         * tests/test-vasnprintf-posix.c: Likewise.
29065         * tests/test-vasnprintf-posix2.c: Likewise.
29066         * tests/test-vasnprintf.c: Likewise.
29067         * tests/test-vasprintf-posix.c: Likewise.
29068         * tests/test-vasprintf.c: Likewise.
29069         * tests/test-vdprintf-posix.c: Likewise.
29070         * tests/test-vfprintf-posix.c: Likewise.
29071         * tests/test-vprintf-posix.c: Likewise.
29072         * tests/test-vsnprintf-posix.c: Likewise.
29073         * tests/test-vsnprintf.c: Likewise.
29074         * tests/test-vsprintf-posix.c: Likewise.
29075         * tests/test-wcrtomb.c: Likewise.
29076         * tests/test-wcsnrtombs.c: Likewise.
29077         * tests/test-wcsrtombs.c: Likewise.
29078         * tests/test-wctype.c: Likewise.
29079         * tests/test-wcwidth.c: Likewise.
29080         * tests/test-xfprintf-posix.c: Likewise.
29081         * tests/test-xmemdup0.c: Likewise.
29082         * tests/test-xprintf-posix.c: Likewise.
29083         * tests/test-xvasprintf.c: Likewise.
29084         * tests/unicase/test-locale-language.c: Likewise.
29085         * tests/unicase/test-mapping-part1.h: Likewise.
29086         * tests/unicase/test-predicate-part1.h: Likewise.
29087         * tests/unicase/test-u8-casecmp.c: Likewise.
29088         * tests/unicase/test-u8-casecoll.c: Likewise.
29089         * tests/unicase/test-u8-casefold.c: Likewise.
29090         * tests/unicase/test-u8-is-cased.c: Likewise.
29091         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29092         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29093         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29094         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29095         * tests/unicase/test-u8-tolower.c: Likewise.
29096         * tests/unicase/test-u8-totitle.c: Likewise.
29097         * tests/unicase/test-u8-toupper.c: Likewise.
29098         * tests/unicase/test-u16-casecmp.c: Likewise.
29099         * tests/unicase/test-u16-casecoll.c: Likewise.
29100         * tests/unicase/test-u16-casefold.c: Likewise.
29101         * tests/unicase/test-u16-is-cased.c: Likewise.
29102         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29103         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29104         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29105         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29106         * tests/unicase/test-u16-tolower.c: Likewise.
29107         * tests/unicase/test-u16-totitle.c: Likewise.
29108         * tests/unicase/test-u16-toupper.c: Likewise.
29109         * tests/unicase/test-u32-casecmp.c: Likewise.
29110         * tests/unicase/test-u32-casecoll.c: Likewise.
29111         * tests/unicase/test-u32-casefold.c: Likewise.
29112         * tests/unicase/test-u32-is-cased.c: Likewise.
29113         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29114         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29115         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29116         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29117         * tests/unicase/test-u32-tolower.c: Likewise.
29118         * tests/unicase/test-u32-totitle.c: Likewise.
29119         * tests/unicase/test-u32-toupper.c: Likewise.
29120         * tests/unicase/test-ulc-casecmp.c: Likewise.
29121         * tests/unicase/test-ulc-casecoll.c: Likewise.
29122         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29123         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29124         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29125         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29126         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29127         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29128         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29129         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29130         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29131         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29132         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29133         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29134         * tests/unictype/test-bidi_byname.c: Likewise.
29135         * tests/unictype/test-bidi_name.c: Likewise.
29136         * tests/unictype/test-bidi_of.c: Likewise.
29137         * tests/unictype/test-bidi_test.c: Likewise.
29138         * tests/unictype/test-block_list.c: Likewise.
29139         * tests/unictype/test-block_of.c: Likewise.
29140         * tests/unictype/test-block_test.c: Likewise.
29141         * tests/unictype/test-categ_and.c: Likewise.
29142         * tests/unictype/test-categ_and_not.c: Likewise.
29143         * tests/unictype/test-categ_byname.c: Likewise.
29144         * tests/unictype/test-categ_name.c: Likewise.
29145         * tests/unictype/test-categ_none.c: Likewise.
29146         * tests/unictype/test-categ_of.c: Likewise.
29147         * tests/unictype/test-categ_or.c: Likewise.
29148         * tests/unictype/test-categ_test_withtable.c: Likewise.
29149         * tests/unictype/test-combining.c: Likewise.
29150         * tests/unictype/test-decdigit.c: Likewise.
29151         * tests/unictype/test-digit.c: Likewise.
29152         * tests/unictype/test-mirror.c: Likewise.
29153         * tests/unictype/test-numeric.c: Likewise.
29154         * tests/unictype/test-pr_byname.c: Likewise.
29155         * tests/unictype/test-pr_test.c: Likewise.
29156         * tests/unictype/test-predicate-part1.h: Likewise.
29157         * tests/unictype/test-scripts.c: Likewise.
29158         * tests/unictype/test-sy_c_ident.c: Likewise.
29159         * tests/unictype/test-sy_java_ident.c: Likewise.
29160         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29161         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29162         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29163         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29164         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29165         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29166         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29167         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29168         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29169         * tests/uninorm/test-compat-decomposition.c: Likewise.
29170         * tests/uninorm/test-composition.c: Likewise.
29171         * tests/uninorm/test-decomposing-form.c: Likewise.
29172         * tests/uninorm/test-decomposition.c: Likewise.
29173         * tests/uninorm/test-u8-nfc.c: Likewise.
29174         * tests/uninorm/test-u8-nfd.c: Likewise.
29175         * tests/uninorm/test-u8-nfkc.c: Likewise.
29176         * tests/uninorm/test-u8-nfkd.c: Likewise.
29177         * tests/uninorm/test-u8-normcmp.c: Likewise.
29178         * tests/uninorm/test-u8-normcoll.c: Likewise.
29179         * tests/uninorm/test-u16-nfc.c: Likewise.
29180         * tests/uninorm/test-u16-nfd.c: Likewise.
29181         * tests/uninorm/test-u16-nfkc.c: Likewise.
29182         * tests/uninorm/test-u16-nfkd.c: Likewise.
29183         * tests/uninorm/test-u16-normcmp.c: Likewise.
29184         * tests/uninorm/test-u16-normcoll.c: Likewise.
29185         * tests/uninorm/test-u32-nfc.c: Likewise.
29186         * tests/uninorm/test-u32-nfd.c: Likewise.
29187         * tests/uninorm/test-u32-nfkc.c: Likewise.
29188         * tests/uninorm/test-u32-nfkd.c: Likewise.
29189         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29190         * tests/uninorm/test-u32-normcmp.c: Likewise.
29191         * tests/uninorm/test-u32-normcoll.c: Likewise.
29192         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29193         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29194         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29195         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29196         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29197         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29198         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29199         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29200         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29201         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29202         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29203         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29204         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29205         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29206         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29207         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29208         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29209         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29210         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29211         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29212         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29213         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29214         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29215         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29216         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29217         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29218         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29219         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29220         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29221         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29222         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29223         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29224         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29225         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29226         * tests/uniwidth/test-u8-width.c: Likewise.
29227         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29228         * tests/uniwidth/test-u16-width.c: Likewise.
29229         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29230         * tests/uniwidth/test-u32-width.c: Likewise.
29231         * tests/uniwidth/test-uc_width.c: Likewise.
29232         * tests/uniwidth/test-uc_width2.c: Likewise.
29233         * modules/acl-tests (Files): Add tests/macros.h.
29234         * modules/areadlink-tests (Files): Likewise.
29235         * modules/areadlink-with-size-tests (Files): Likewise.
29236         * modules/areadlinkat-tests (Files): Likewise.
29237         * modules/areadlinkat-with-size-tests (Files): Likewise.
29238         * modules/argmatch-tests (Files): Likewise.
29239         * modules/argv-iter-tests (Files): Likewise.
29240         * modules/array-list-tests (Files): Likewise.
29241         * modules/array-mergesort-tests (Files): Likewise.
29242         * modules/array-oset-tests (Files): Likewise.
29243         * modules/avltree-list-tests (Files): Likewise.
29244         * modules/avltree-oset-tests (Files): Likewise.
29245         * modules/avltreehash-list-tests (Files): Likewise.
29246         * modules/base64-tests (Files): Likewise.
29247         * modules/binary-io-tests (Files): Likewise.
29248         * modules/bitrotate-tests (Files): Likewise.
29249         * modules/btowc-tests (Files): Likewise.
29250         * modules/byteswap-tests (Files): Likewise.
29251         * modules/c-ctype-tests (Files): Likewise.
29252         * modules/c-stack-tests (Files): Likewise.
29253         * modules/c-strcase-tests (Files): Likewise.
29254         * modules/c-strcasestr-tests (Files): Likewise.
29255         * modules/c-strstr-tests (Files): Likewise.
29256         * modules/canonicalize-lgpl-tests (Files): Likewise.
29257         * modules/canonicalize-tests (Files): Likewise.
29258         * modules/carray-list-tests (Files): Likewise.
29259         * modules/ceilf-tests (Files): Likewise.
29260         * modules/ceill-tests (Files): Likewise.
29261         * modules/chown-tests (Files): Likewise.
29262         * modules/cloexec-tests (Files): Likewise.
29263         * modules/copy-file-tests (Files): Likewise.
29264         * modules/count-one-bits-tests (Files): Likewise.
29265         * modules/dprintf-posix-tests (Files): Likewise.
29266         * modules/dup2-tests (Files): Likewise.
29267         * modules/dup3-tests (Files): Likewise.
29268         * modules/duplocale-tests (Files): Likewise.
29269         * modules/fbufmode-tests (Files): Likewise.
29270         * modules/fchdir-tests (Files): Likewise.
29271         * modules/fcntl-safer-tests (Files): Likewise.
29272         * modules/fcntl-tests (Files): Likewise.
29273         * modules/fdopendir-tests (Files): Likewise.
29274         * modules/fdutimensat-tests (Files): Likewise.
29275         * modules/fflush-tests (Files): Likewise.
29276         * modules/filevercmp-tests (Files): Likewise.
29277         * modules/flock-tests (Files): Likewise.
29278         * modules/floorf-tests (Files): Likewise.
29279         * modules/floorl-tests (Files): Likewise.
29280         * modules/fnmatch-tests (Files): Likewise.
29281         * modules/fopen-safer-tests (Files): Likewise.
29282         * modules/fopen-tests (Files): Likewise.
29283         * modules/fpending-tests (Files): Likewise.
29284         * modules/fprintf-posix-tests (Files): Likewise.
29285         * modules/fpurge-tests (Files): Likewise.
29286         * modules/freadable-tests (Files): Likewise.
29287         * modules/freadahead-tests (Files): Likewise.
29288         * modules/freading-tests (Files): Likewise.
29289         * modules/freadptr-tests (Files): Likewise.
29290         * modules/freadseek-tests (Files): Likewise.
29291         * modules/freopen-tests (Files): Likewise.
29292         * modules/frexp-nolibm-tests (Files): Likewise.
29293         * modules/frexp-tests (Files): Likewise.
29294         * modules/frexpl-nolibm-tests (Files): Likewise.
29295         * modules/frexpl-tests (Files): Likewise.
29296         * modules/fseek-tests (Files): Likewise.
29297         * modules/fseeko-tests (Files): Likewise.
29298         * modules/fstrcmp-tests (Files): Likewise.
29299         * modules/fsync-tests (Files): Likewise.
29300         * modules/ftell-tests (Files): Likewise.
29301         * modules/ftello-tests (Files): Likewise.
29302         * modules/func-tests (Files): Likewise.
29303         * modules/futimens-tests (Files): Likewise.
29304         * modules/fwritable-tests (Files): Likewise.
29305         * modules/fwriting-tests (Files): Likewise.
29306         * modules/getcwd-tests (Files): Likewise.
29307         * modules/getdate-tests (Files): Likewise.
29308         * modules/getdelim-tests (Files): Likewise.
29309         * modules/getdtablesize-tests (Files): Likewise.
29310         * modules/getgroups-tests (Files): Likewise.
29311         * modules/getline-tests (Files): Likewise.
29312         * modules/getndelim2-tests (Files): Likewise.
29313         * modules/glob-tests (Files): Likewise.
29314         * modules/hash-tests (Files): Likewise.
29315         * modules/i-ring-tests (Files): Likewise.
29316         * modules/iconv-tests (Files): Likewise.
29317         * modules/iconv_open-utf-tests (Files): Likewise.
29318         * modules/idpriv-drop-tests (Files): Likewise.
29319         * modules/idpriv-droptemp-tests (Files): Likewise.
29320         * modules/inet_ntop-tests (Files): Likewise.
29321         * modules/inet_pton-tests (Files): Likewise.
29322         * modules/isblank-tests (Files): Likewise.
29323         * modules/isfinite-tests (Files): Likewise.
29324         * modules/isinf-tests (Files): Likewise.
29325         * modules/isnan-tests (Files): Likewise.
29326         * modules/isnand-nolibm-tests (Files): Likewise.
29327         * modules/isnand-tests (Files): Likewise.
29328         * modules/isnanf-nolibm-tests (Files): Likewise.
29329         * modules/isnanf-tests (Files): Likewise.
29330         * modules/isnanl-nolibm-tests (Files): Likewise.
29331         * modules/isnanl-tests (Files): Likewise.
29332         * modules/lchown-tests (Files): Likewise.
29333         * modules/ldexpl-tests (Files): Likewise.
29334         * modules/link-tests (Files): Likewise.
29335         * modules/linkat-tests (Files): Likewise.
29336         * modules/linked-list-tests (Files): Likewise.
29337         * modules/linkedhash-list-tests (Files): Likewise.
29338         * modules/localename-tests (Files): Likewise.
29339         * modules/lseek-tests (Files): Likewise.
29340         * modules/lstat-tests (Files): Likewise.
29341         * modules/mbmemcasecmp-tests (Files): Likewise.
29342         * modules/mbmemcasecoll-tests (Files): Likewise.
29343         * modules/mbrtowc-tests (Files): Likewise.
29344         * modules/mbscasecmp-tests (Files): Likewise.
29345         * modules/mbscasestr-tests (Files): Likewise.
29346         * modules/mbschr-tests (Files): Likewise.
29347         * modules/mbscspn-tests (Files): Likewise.
29348         * modules/mbsinit-tests (Files): Likewise.
29349         * modules/mbsncasecmp-tests (Files): Likewise.
29350         * modules/mbsnrtowcs-tests (Files): Likewise.
29351         * modules/mbspbrk-tests (Files): Likewise.
29352         * modules/mbspcasecmp-tests (Files): Likewise.
29353         * modules/mbsrchr-tests (Files): Likewise.
29354         * modules/mbsrtowcs-tests (Files): Likewise.
29355         * modules/mbsspn-tests (Files): Likewise.
29356         * modules/mbsstr-tests (Files): Likewise.
29357         * modules/memchr-tests (Files): Likewise.
29358         * modules/memchr2-tests (Files): Likewise.
29359         * modules/memcmp-tests (Files): Likewise.
29360         * modules/memmem-tests (Files): Likewise.
29361         * modules/memrchr-tests (Files): Likewise.
29362         * modules/mkdir-tests (Files): Likewise.
29363         * modules/mkfifo-tests (Files): Likewise.
29364         * modules/mkfifoat-tests (Files): Likewise.
29365         * modules/mknod-tests (Files): Likewise.
29366         * modules/nanosleep-tests (Files): Likewise.
29367         * modules/nl_langinfo-tests (Files): Likewise.
29368         * modules/obstack-printf-tests (Files): Likewise.
29369         * modules/open-tests (Files): Likewise.
29370         * modules/openat-tests (Files): Likewise.
29371         * modules/pipe-filter-gi-tests (Files): Likewise.
29372         * modules/pipe-filter-ii-tests (Files): Likewise.
29373         * modules/pipe2-tests (Files): Likewise.
29374         * modules/popen-safer-tests (Files): Likewise.
29375         * modules/popen-tests (Files): Likewise.
29376         * modules/posixtm-tests (Files): Likewise.
29377         * modules/pread-tests (Files): Likewise.
29378         * modules/printf-frexp-tests (Files): Likewise.
29379         * modules/printf-frexpl-tests (Files): Likewise.
29380         * modules/printf-posix-tests (Files): Likewise.
29381         * modules/priv-set-tests (Files): Likewise.
29382         * modules/quotearg-tests (Files): Likewise.
29383         * modules/random_r-tests (Files): Likewise.
29384         * modules/rawmemchr-tests (Files): Likewise.
29385         * modules/rbtree-list-tests (Files): Likewise.
29386         * modules/rbtree-oset-tests (Files): Likewise.
29387         * modules/rbtreehash-list-tests (Files): Likewise.
29388         * modules/readlink-tests (Files): Likewise.
29389         * modules/remove-tests (Files): Likewise.
29390         * modules/rename-tests (Files): Likewise.
29391         * modules/renameat-tests (Files): Likewise.
29392         * modules/rmdir-tests (Files): Likewise.
29393         * modules/round-tests (Files): Likewise.
29394         * modules/roundf-tests (Files): Likewise.
29395         * modules/roundl-tests (Files): Likewise.
29396         * modules/safe-alloc-tests (Files): Likewise.
29397         * modules/setenv-tests (Files): Likewise.
29398         * modules/sigaction-tests (Files): Likewise.
29399         * modules/signbit-tests (Files): Likewise.
29400         * modules/sleep-tests (Files): Likewise.
29401         * modules/snprintf-posix-tests (Files): Likewise.
29402         * modules/snprintf-tests (Files): Likewise.
29403         * modules/sprintf-posix-tests (Files): Likewise.
29404         * modules/stat-tests (Files): Likewise.
29405         * modules/stat-time-tests (Files): Likewise.
29406         * modules/strcasestr-tests (Files): Likewise.
29407         * modules/strchrnul-tests (Files): Likewise.
29408         * modules/strerror-tests (Files): Likewise.
29409         * modules/striconv-tests (Files): Likewise.
29410         * modules/striconveh-tests (Files): Likewise.
29411         * modules/striconveha-tests (Files): Likewise.
29412         * modules/strsignal-tests (Files): Likewise.
29413         * modules/strstr-tests (Files): Likewise.
29414         * modules/strtod-tests (Files): Likewise.
29415         * modules/strverscmp-tests (Files): Likewise.
29416         * modules/symlink-tests (Files): Likewise.
29417         * modules/symlinkat-tests (Files): Likewise.
29418         * modules/trunc-tests (Files): Likewise.
29419         * modules/truncf-tests (Files): Likewise.
29420         * modules/truncl-tests (Files): Likewise.
29421         * modules/uname-tests (Files): Likewise.
29422         * modules/unicase/cased-tests (Files): Likewise.
29423         * modules/unicase/ignorable-tests (Files): Likewise.
29424         * modules/unicase/locale-language-tests (Files): Likewise.
29425         * modules/unicase/tolower-tests (Files): Likewise.
29426         * modules/unicase/totitle-tests (Files): Likewise.
29427         * modules/unicase/toupper-tests (Files): Likewise.
29428         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29429         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29430         * modules/unicase/u8-casefold-tests (Files): Likewise.
29431         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29432         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29433         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29434         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29435         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29436         * modules/unicase/u8-tolower-tests (Files): Likewise.
29437         * modules/unicase/u8-totitle-tests (Files): Likewise.
29438         * modules/unicase/u8-toupper-tests (Files): Likewise.
29439         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29440         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29441         * modules/unicase/u16-casefold-tests (Files): Likewise.
29442         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29443         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29444         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29445         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29446         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29447         * modules/unicase/u16-tolower-tests (Files): Likewise.
29448         * modules/unicase/u16-totitle-tests (Files): Likewise.
29449         * modules/unicase/u16-toupper-tests (Files): Likewise.
29450         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29451         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29452         * modules/unicase/u32-casefold-tests (Files): Likewise.
29453         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29454         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29455         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29456         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29457         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29458         * modules/unicase/u32-tolower-tests (Files): Likewise.
29459         * modules/unicase/u32-totitle-tests (Files): Likewise.
29460         * modules/unicase/u32-toupper-tests (Files): Likewise.
29461         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29462         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29463         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29464         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29465         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29466         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29467         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29468         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29469         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29470         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29471         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29472         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29473         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29474         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29475         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29476         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29477         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29478         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29479         * modules/unictype/block-list-tests (Files): Likewise.
29480         * modules/unictype/block-of-tests (Files): Likewise.
29481         * modules/unictype/block-test-tests (Files): Likewise.
29482         * modules/unictype/category-C-tests (Files): Likewise.
29483         * modules/unictype/category-Cc-tests (Files): Likewise.
29484         * modules/unictype/category-Cf-tests (Files): Likewise.
29485         * modules/unictype/category-Cn-tests (Files): Likewise.
29486         * modules/unictype/category-Co-tests (Files): Likewise.
29487         * modules/unictype/category-Cs-tests (Files): Likewise.
29488         * modules/unictype/category-L-tests (Files): Likewise.
29489         * modules/unictype/category-Ll-tests (Files): Likewise.
29490         * modules/unictype/category-Lm-tests (Files): Likewise.
29491         * modules/unictype/category-Lo-tests (Files): Likewise.
29492         * modules/unictype/category-Lt-tests (Files): Likewise.
29493         * modules/unictype/category-Lu-tests (Files): Likewise.
29494         * modules/unictype/category-M-tests (Files): Likewise.
29495         * modules/unictype/category-Mc-tests (Files): Likewise.
29496         * modules/unictype/category-Me-tests (Files): Likewise.
29497         * modules/unictype/category-Mn-tests (Files): Likewise.
29498         * modules/unictype/category-N-tests (Files): Likewise.
29499         * modules/unictype/category-Nd-tests (Files): Likewise.
29500         * modules/unictype/category-Nl-tests (Files): Likewise.
29501         * modules/unictype/category-No-tests (Files): Likewise.
29502         * modules/unictype/category-P-tests (Files): Likewise.
29503         * modules/unictype/category-Pc-tests (Files): Likewise.
29504         * modules/unictype/category-Pd-tests (Files): Likewise.
29505         * modules/unictype/category-Pe-tests (Files): Likewise.
29506         * modules/unictype/category-Pf-tests (Files): Likewise.
29507         * modules/unictype/category-Pi-tests (Files): Likewise.
29508         * modules/unictype/category-Po-tests (Files): Likewise.
29509         * modules/unictype/category-Ps-tests (Files): Likewise.
29510         * modules/unictype/category-S-tests (Files): Likewise.
29511         * modules/unictype/category-Sc-tests (Files): Likewise.
29512         * modules/unictype/category-Sk-tests (Files): Likewise.
29513         * modules/unictype/category-Sm-tests (Files): Likewise.
29514         * modules/unictype/category-So-tests (Files): Likewise.
29515         * modules/unictype/category-Z-tests (Files): Likewise.
29516         * modules/unictype/category-Zl-tests (Files): Likewise.
29517         * modules/unictype/category-Zp-tests (Files): Likewise.
29518         * modules/unictype/category-Zs-tests (Files): Likewise.
29519         * modules/unictype/category-and-not-tests (Files): Likewise.
29520         * modules/unictype/category-and-tests (Files): Likewise.
29521         * modules/unictype/category-byname-tests (Files): Likewise.
29522         * modules/unictype/category-name-tests (Files): Likewise.
29523         * modules/unictype/category-none-tests (Files): Likewise.
29524         * modules/unictype/category-of-tests (Files): Likewise.
29525         * modules/unictype/category-or-tests (Files): Likewise.
29526         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29527         * modules/unictype/combining-class-tests (Files): Likewise.
29528         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29529         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29530         * modules/unictype/ctype-blank-tests (Files): Likewise.
29531         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29532         * modules/unictype/ctype-digit-tests (Files): Likewise.
29533         * modules/unictype/ctype-graph-tests (Files): Likewise.
29534         * modules/unictype/ctype-lower-tests (Files): Likewise.
29535         * modules/unictype/ctype-print-tests (Files): Likewise.
29536         * modules/unictype/ctype-punct-tests (Files): Likewise.
29537         * modules/unictype/ctype-space-tests (Files): Likewise.
29538         * modules/unictype/ctype-upper-tests (Files): Likewise.
29539         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29540         * modules/unictype/decimal-digit-tests (Files): Likewise.
29541         * modules/unictype/digit-tests (Files): Likewise.
29542         * modules/unictype/mirror-tests (Files): Likewise.
29543         * modules/unictype/numeric-tests (Files): Likewise.
29544         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29545         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29546         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29547         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29548         Likewise.
29549         * modules/unictype/property-bidi-block-separator-tests (Files):
29550         Likewise.
29551         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29552         Likewise.
29553         * modules/unictype/property-bidi-common-separator-tests (Files):
29554         Likewise.
29555         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29556         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29557         Likewise.
29558         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29559         Likewise.
29560         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29561         Likewise.
29562         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29563         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29564         Likewise.
29565         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29566         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29567         Likewise.
29568         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29569         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29570         * modules/unictype/property-bidi-segment-separator-tests (Files):
29571         Likewise.
29572         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29573         * modules/unictype/property-byname-tests (Files): Likewise.
29574         * modules/unictype/property-combining-tests (Files): Likewise.
29575         * modules/unictype/property-composite-tests (Files): Likewise.
29576         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29577         * modules/unictype/property-dash-tests (Files): Likewise.
29578         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29579         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29580         Likewise.
29581         * modules/unictype/property-deprecated-tests (Files): Likewise.
29582         * modules/unictype/property-diacritic-tests (Files): Likewise.
29583         * modules/unictype/property-extender-tests (Files): Likewise.
29584         * modules/unictype/property-format-control-tests (Files): Likewise.
29585         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29586         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29587         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29588         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29589         * modules/unictype/property-hyphen-tests (Files): Likewise.
29590         * modules/unictype/property-id-continue-tests (Files): Likewise.
29591         * modules/unictype/property-id-start-tests (Files): Likewise.
29592         * modules/unictype/property-ideographic-tests (Files): Likewise.
29593         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29594         * modules/unictype/property-ids-trinary-operator-tests (Files):
29595         Likewise.
29596         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29597         * modules/unictype/property-iso-control-tests (Files): Likewise.
29598         * modules/unictype/property-join-control-tests (Files): Likewise.
29599         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29600         * modules/unictype/property-line-separator-tests (Files): Likewise.
29601         * modules/unictype/property-logical-order-exception-tests (Files):
29602         Likewise.
29603         * modules/unictype/property-lowercase-tests (Files): Likewise.
29604         * modules/unictype/property-math-tests (Files): Likewise.
29605         * modules/unictype/property-non-break-tests (Files): Likewise.
29606         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29607         * modules/unictype/property-numeric-tests (Files): Likewise.
29608         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29609         * modules/unictype/property-other-default-ignorable-code-point-tests
29610         (Files): Likewise.
29611         * modules/unictype/property-other-grapheme-extend-tests (Files):
29612         Likewise.
29613         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29614         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29615         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29616         * modules/unictype/property-other-math-tests (Files): Likewise.
29617         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29618         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29619         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29620         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29621         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29622         * modules/unictype/property-private-use-tests (Files): Likewise.
29623         * modules/unictype/property-punctuation-tests (Files): Likewise.
29624         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29625         * modules/unictype/property-radical-tests (Files): Likewise.
29626         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29627         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29628         * modules/unictype/property-space-tests (Files): Likewise.
29629         * modules/unictype/property-terminal-punctuation-tests (Files):
29630         Likewise.
29631         * modules/unictype/property-test-tests (Files): Likewise.
29632         * modules/unictype/property-titlecase-tests (Files): Likewise.
29633         * modules/unictype/property-unassigned-code-value-tests (Files):
29634         Likewise.
29635         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29636         * modules/unictype/property-uppercase-tests (Files): Likewise.
29637         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29638         * modules/unictype/property-white-space-tests (Files): Likewise.
29639         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29640         * modules/unictype/property-xid-start-tests (Files): Likewise.
29641         * modules/unictype/property-zero-width-tests (Files): Likewise.
29642         * modules/unictype/scripts-tests (Files): Likewise.
29643         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29644         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29645         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29646         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29647         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29648         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29649         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29650         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29651         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29652         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29653         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29654         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29655         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29656         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29657         * modules/uninorm/composition-tests (Files): Likewise.
29658         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29659         * modules/uninorm/decomposition-tests (Files): Likewise.
29660         * modules/uninorm/filter-tests (Files): Likewise.
29661         * modules/uninorm/nfc-tests (Files): Likewise.
29662         * modules/uninorm/nfd-tests (Files): Likewise.
29663         * modules/uninorm/nfkc-tests (Files): Likewise.
29664         * modules/uninorm/nfkd-tests (Files): Likewise.
29665         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29666         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29667         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29668         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29669         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29670         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29671         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29672         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29673         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29674         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29675         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29676         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29677         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29678         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29679         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29680         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29681         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29682         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29683         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29684         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29685         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29686         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29687         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29688         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29689         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29690         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29691         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29692         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29693         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29694         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29695         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29696         * modules/uniwidth/u8-width-tests (Files): Likewise.
29697         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29698         * modules/uniwidth/u16-width-tests (Files): Likewise.
29699         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29700         * modules/uniwidth/u32-width-tests (Files): Likewise.
29701         * modules/uniwidth/width-tests (Files): Likewise.
29702         * modules/unlink-tests (Files): Likewise.
29703         * modules/unsetenv-tests (Files): Likewise.
29704         * modules/usleep-tests (Files): Likewise.
29705         * modules/utimens-tests (Files): Likewise.
29706         * modules/utimensat-tests (Files): Likewise.
29707         * modules/vasnprintf-posix-tests (Files): Likewise.
29708         * modules/vasnprintf-tests (Files): Likewise.
29709         * modules/vasprintf-posix-tests (Files): Likewise.
29710         * modules/vasprintf-tests (Files): Likewise.
29711         * modules/vdprintf-posix-tests (Files): Likewise.
29712         * modules/vfprintf-posix-tests (Files): Likewise.
29713         * modules/vprintf-posix-tests (Files): Likewise.
29714         * modules/vsnprintf-posix-tests (Files): Likewise.
29715         * modules/vsnprintf-tests (Files): Likewise.
29716         * modules/vsprintf-posix-tests (Files): Likewise.
29717         * modules/wcrtomb-tests (Files): Likewise.
29718         * modules/wcsnrtombs-tests (Files): Likewise.
29719         * modules/wcsrtombs-tests (Files): Likewise.
29720         * modules/wctype-tests (Files): Likewise.
29721         * modules/wcwidth-tests (Files): Likewise.
29722         * modules/xmemdup0-tests (Files): Likewise.
29723         * modules/xprintf-posix-tests (Files): Likewise.
29724         * modules/xvasprintf-tests (Files): Likewise.
29725
29726 2009-12-24  Eric Blake  <ebb9@byu.net>
29727
29728         test-nanosleep: fix typo
29729         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29730         patch.
29731         Reported by Bruno Haible.
29732
29733 2009-12-24  Bruno Haible  <bruno@clisp.org>
29734
29735         Reduce namespace pollution on glibc systems.
29736         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29737         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29738         systems.
29739         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29740         <getopt.h> on glibc systems.
29741         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29742         systems.
29743         * lib/fcntl.c: Include <unistd.h> here instead.
29744
29745 2009-12-24  Bruno Haible  <bruno@clisp.org>
29746
29747         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29748
29749 2009-12-24  Eric Blake  <ebb9@byu.net>
29750
29751         tests: add signature checks
29752         * tests/signature.h (SIGNATURE_CHECK): New file.
29753         * modules/atexit-tests (Files): Use it.
29754         * modules/btowc-tests (Files): Likewise.
29755         * modules/canonicalize-lgpl-tests (Files): Likewise.
29756         * modules/ceilf-tests (Files): Likewise.
29757         * modules/ceill-tests (Files): Likewise.
29758         * modules/chown-tests (Files): Likewise.
29759         * modules/dprintf-posix-tests (Files): Likewise.
29760         * modules/dup2-tests (Files): Likewise.
29761         * modules/dup3-tests (Files): Likewise.
29762         * modules/duplocale-tests (Files): Likewise.
29763         * modules/fchdir-tests (Files): Likewise.
29764         * modules/fcntl-tests (Files): Likewise.
29765         * modules/fdopendir-tests (Files): Likewise.
29766         * modules/fflush-tests (Files): Likewise.
29767         * modules/flock-tests (Files): Likewise.
29768         * modules/floorf-tests (Files): Likewise.
29769         * modules/floorl-tests (Files): Likewise.
29770         * modules/fnmatch-tests (Files): Likewise.
29771         * modules/fopen-tests (Files): Likewise.
29772         * modules/fprintf-posix-tests (Files): Likewise.
29773         * modules/freopen-tests (Files): Likewise.
29774         * modules/frexp-nolibm-tests (Files): Likewise.
29775         * modules/frexp-tests (Files): Likewise.
29776         * modules/frexpl-nolibm-tests (Files): Likewise.
29777         * modules/frexpl-tests (Files): Likewise.
29778         * modules/fseek-tests (Files): Likewise.
29779         * modules/fseeko-tests (Files): Likewise.
29780         * modules/fsync-tests (Files): Likewise.
29781         * modules/ftell-tests (Files): Likewise.
29782         * modules/ftello-tests (Files): Likewise.
29783         * modules/futimens-tests (Files): Likewise.
29784         * modules/getaddrinfo-tests (Files): Likewise.
29785         * modules/getcwd-tests (Files): Likewise.
29786         * modules/getdelim-tests (Files): Likewise.
29787         * modules/getdtablesize-tests (Files): Likewise.
29788         * modules/getgroups-tests (Files): Likewise.
29789         * modules/gethostname-tests (Files): Likewise.
29790         * modules/getline-tests (Files): Likewise.
29791         * modules/getopt-posix-tests (Files): Likewise.
29792         * modules/gettimeofday-tests (Files): Likewise.
29793         * modules/glob-tests (Files): Likewise.
29794         * modules/iconv-tests (Files): Likewise.
29795         * modules/inet_ntop-tests (Files): Likewise.
29796         * modules/inet_pton-tests (Files): Likewise.
29797         * modules/isblank-tests (Files): Likewise.
29798         * modules/lchown-tests (Files): Likewise.
29799         * modules/ldexpl-tests (Files): Likewise.
29800         * modules/link-tests (Files): Likewise.
29801         * modules/linkat-tests (Files): Likewise.
29802         * modules/lseek-tests (Files): Likewise.
29803         * modules/lstat-tests (Files): Likewise.
29804         * modules/mbrtowc-tests (Files): Likewise.
29805         * modules/mbsinit-tests (Files): Likewise.
29806         * modules/mbsnrtowcs-tests (Files): Likewise.
29807         * modules/mbsrtowcs-tests (Files): Likewise.
29808         * modules/memchr-tests (Files): Likewise.
29809         * modules/memcmp-tests (Files): Likewise.
29810         * modules/memmem-tests (Files): Likewise.
29811         * modules/memrchr-tests (Files): Likewise.
29812         * modules/mkdir-tests (Files): Likewise.
29813         * modules/mkfifo-tests (Files): Likewise.
29814         * modules/mkfifoat-tests (Files): Likewise.
29815         * modules/mknod-tests (Files): Likewise.
29816         * modules/nanosleep-tests (Files): Likewise.
29817         * modules/nl_langinfo-tests (Files): Likewise.
29818         * modules/obstack-printf-tests (Files): Likewise.
29819         * modules/open-tests (Files): Likewise.
29820         * modules/openat-tests (Files): Likewise.
29821         * modules/perror-tests (Files): Likewise.
29822         * modules/pipe2-tests (Files): Likewise.
29823         * modules/poll-tests (Files): Likewise.
29824         * modules/popen-tests (Files): Likewise.
29825         * modules/posix_spawn-tests (Files): Likewise.
29826         * modules/posix_spawnp-tests (Files): Likewise.
29827         * modules/pread-tests (Files): Likewise.
29828         * modules/printf-posix-tests (Files): Likewise.
29829         * modules/pty-tests (Files): Likewise.
29830         * modules/random_r-tests (Files): Likewise.
29831         * modules/rawmemchr-tests (Files): Likewise.
29832         * modules/readlink-tests (Files): Likewise.
29833         * modules/remove-tests (Files): Likewise.
29834         * modules/rename-tests (Files): Likewise.
29835         * modules/renameat-tests (Files): Likewise.
29836         * modules/rmdir-tests (Files): Likewise.
29837         * modules/round-tests (Files): Likewise.
29838         * modules/roundf-tests (Files): Likewise.
29839         * modules/roundl-tests (Files): Likewise.
29840         * modules/select-tests (Files): Likewise.
29841         * modules/setenv-tests (Files): Likewise.
29842         * modules/sigaction-tests (Files): Likewise.
29843         * modules/sleep-tests (Files): Likewise.
29844         * modules/snprintf-posix-tests (Files): Likewise.
29845         * modules/snprintf-tests (Files): Likewise.
29846         * modules/sprintf-posix-tests (Files): Likewise.
29847         * modules/stat-tests (Files): Likewise.
29848         * modules/strcasestr-tests (Files): Likewise.
29849         * modules/strchrnul-tests (Files): Likewise.
29850         * modules/strerror-tests (Files): Likewise.
29851         * modules/strsignal-tests (Files): Likewise.
29852         * modules/strstr-tests (Files): Likewise.
29853         * modules/strtod-tests (Files): Likewise.
29854         * modules/strverscmp-tests (Files): Likewise.
29855         * modules/symlink-tests (Files): Likewise.
29856         * modules/symlinkat-tests (Files): Likewise.
29857         * modules/times-tests (Files): Likewise.
29858         * modules/trunc-tests (Files): Likewise.
29859         * modules/truncf-tests (Files): Likewise.
29860         * modules/truncl-tests (Files): Likewise.
29861         * modules/tsearch-tests (Files): Likewise.
29862         * modules/uname-tests (Files): Likewise.
29863         * modules/unlink-tests (Files): Likewise.
29864         * modules/unsetenv-tests (Files): Likewise.
29865         * modules/usleep-tests (Files): Likewise.
29866         * modules/utimensat-tests (Files): Likewise.
29867         * modules/vasprintf-tests (Files): Likewise.
29868         * modules/vdprintf-posix-tests (Files): Likewise.
29869         * modules/vfprintf-posix-tests (Files): Likewise.
29870         * modules/vprintf-posix-tests (Files): Likewise.
29871         * modules/vsnprintf-posix-tests (Files): Likewise.
29872         * modules/vsnprintf-tests (Files): Likewise.
29873         * modules/vsprintf-posix-tests (Files): Likewise.
29874         * modules/wcrtomb-tests (Files): Likewise.
29875         * modules/wcsnrtombs-tests (Files): Likewise.
29876         * modules/wcsrtombs-tests (Files): Likewise.
29877         * modules/wcwidth-tests (Files): Likewise.
29878         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29879         * tests/test-isinf.c (isinf): Likewise.
29880         * tests/test-isnan.c (isnan): Likewise.
29881         * tests/test-signbit.c (signbit): Likewise.
29882         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29883         declaration, either as macro or with correct signature.
29884         (select): Ensure function under test is declared with correct
29885         signature in correct header.
29886         * tests/test-atexit.c (atexit): Likewise.
29887         * tests/test-btowc.c (btowc): Likewise.
29888         * tests/test-canonicalize-lgpl.c (realpath)
29889         (canonicalize_file_name): Likewise.
29890         * tests/test-ceilf1.c (ceilf): Likewise.
29891         * tests/test-ceill.c (ceill): Likewise.
29892         * tests/test-chown.c (chown): Likewise.
29893         * tests/test-dprintf-posix.c (dprintf): Likewise.
29894         * tests/test-dup2.c (dup2): Likewise.
29895         * tests/test-dup3.c (dup3): Likewise.
29896         * tests/test-duplocale.c (duplocale): Likewise.
29897         * tests/test-fchdir.c (fchdir): Likewise.
29898         * tests/test-fchownat.c (fchownat): Likewise.
29899         * tests/test-fcntl.c (fcntl): Likewise.
29900         * tests/test-fdopendir.c (fdopendir): Likewise.
29901         * tests/test-fflush.c (fflush): Likewise.
29902         * tests/test-flock.c (flock): Likewise.
29903         * tests/test-floorf1.c (floorf): Likewise.
29904         * tests/test-floorl.c (floorl): Likewise.
29905         * tests/test-fnmatch.c (fnmatch): Likewise.
29906         * tests/test-fopen.c (fopen): Likewise.
29907         * tests/test-fprintf-posix.c (fprintf): Likewise.
29908         * tests/test-freopen.c (freopen): Likewise.
29909         * tests/test-frexp.c (frexp): Likewise.
29910         * tests/test-frexpl.c (frexpl): Likewise.
29911         * tests/test-fseek.c (fseek): Likewise.
29912         * tests/test-fseeko.c (fseeko): Likewise.
29913         * tests/test-fstatat.c (fstatat): Likewise.
29914         * tests/test-fsync.c (fsync): Likewise.
29915         * tests/test-ftell.c (ftell): Likewise.
29916         * tests/test-ftello.c (ftello): Likewise.
29917         * tests/test-futimens.c (futimens): Likewise.
29918         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29919         (gai_strerror): Likewise.
29920         * tests/test-getcwd.c (getcwd): Likewise.
29921         * tests/test-getdelim.c (getdelim): Likewise.
29922         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29923         * tests/test-getgroups.c (getgroups): Likewise.
29924         * tests/test-gethostname.c (gethostname): Likewise.
29925         * tests/test-getline.c (getline): Likewise.
29926         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29927         Likewise.
29928         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29929         * tests/test-glob.c (glob, globfree): Likewise.
29930         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29931         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29932         * tests/test-inet_pton.c (inet_pton): Likewise.
29933         * tests/test-isblank.c (isblank): Likewise.
29934         * tests/test-lchown.c (lchown): Likewise.
29935         * tests/test-ldexpl.c (ldexpl): Likewise.
29936         * tests/test-link.c (link): Likewise.
29937         * tests/test-linkat.c (linkat): Likewise.
29938         * tests/test-lseek.c (lseek): Likewise.
29939         * tests/test-lstat.c (lstat): Likewise.
29940         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29941         * tests/test-mbsinit.c (mbsinit): Likewise.
29942         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29943         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29944         * tests/test-memchr.c (memchr): Likewise.
29945         * tests/test-memcmp.c (memcmp): Likewise.
29946         * tests/test-memmem.c (memmem): Likewise.
29947         * tests/test-memrchr.c (memrchr): Likewise.
29948         * tests/test-mkdir.c (mkdir): Likewise.
29949         * tests/test-mkdirat.c (mkdirat): Likewise.
29950         * tests/test-mkfifo.c (mkfifo): Likewise.
29951         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29952         * tests/test-mknod.c (mknod): Likewise.
29953         * tests/test-nanosleep.c (nanosleep): Likewise.
29954         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29955         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29956         Likewise.
29957         * tests/test-open.c (open): Likewise.
29958         * tests/test-openat.c (openat): Likewise.
29959         * tests/test-perror.c (perror): Likewise.
29960         * tests/test-pipe2.c (pipe2): Likewise.
29961         * tests/test-poll.c (poll): Likewise.
29962         * tests/test-popen.c (popen, pclose): Likewise.
29963         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29964         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29965         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29966         (posix_spawn_file_actions_destroy)
29967         (posix_spawn_file_actions_addclose)
29968         (posix_spawn_file_actions_addopen)
29969         (posix_spawn_file_actions_adddup2): Likewise.
29970         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29971         * tests/test-pread.c (pread): Likewise.
29972         * tests/test-printf-posix.c (printf): Likewise.
29973         * tests/test-pty.c (openpty, forkpty): Likewise.
29974         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29975         (random_r): Likewise.
29976         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29977         * tests/test-readlink.c (readlink): Likewise.
29978         * tests/test-remove.c (remove): Likewise.
29979         * tests/test-rename.c (rename): Likewise.
29980         * tests/test-renameat.c (renameat): Likewise.
29981         * tests/test-rmdir.c (rmdir): Likewise.
29982         * tests/test-round1.c (round): Likewise.
29983         * tests/test-roundf1.c (roundf): Likewise.
29984         * tests/test-roundl.c (roundl): Likewise.
29985         * tests/test-setenv.c (setenv): Likewise.
29986         * tests/test-sigaction.c (sigaction): Likewise.
29987         * tests/test-sleep.c (sleep): Likewise.
29988         * tests/test-snprintf.c (snprintf): Likewise.
29989         * tests/test-sprintf-posix.c (sprintf): Likewise.
29990         * tests/test-stat.c (stat): Likewise.
29991         * tests/test-stpncpy.c (stpncpy): Likewise.
29992         * tests/test-strcasestr.c (strcasestr): Likewise.
29993         * tests/test-strchrnul.c (strchrnul): Likewise.
29994         * tests/test-strerror.c (strerror): Likewise.
29995         * tests/test-strsignal.c (strsignal): Likewise.
29996         * tests/test-strstr.c (strstr): Likewise.
29997         * tests/test-strtod.c (strtod): Likewise.
29998         * tests/test-strverscmp.c (strverscmp): Likewise.
29999         * tests/test-symlink.c (symlink): Likewise.
30000         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30001         * tests/test-times.c (times): Likewise.
30002         * tests/test-trunc1.c (trunc): Likewise.
30003         * tests/test-truncf1.c (truncf): Likewise.
30004         * tests/test-truncl.c (truncl): Likewise.
30005         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30006         Likewise.
30007         * tests/test-uname.c (uname): Likewise.
30008         * tests/test-unlink.c (unlink): Likewise.
30009         * tests/test-unlinkat.c (unlinkat): Likewise.
30010         * tests/test-unsetenv.c (unsetenv): Likewise.
30011         * tests/test-usleep.c (usleep): Likewise.
30012         * tests/test-utimensat.c (utimensat): Likewise.
30013         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30014         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30015         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30016         * tests/test-vprintf-posix.c (vprintf): Likewise.
30017         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30018         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30019         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30020         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30021         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30022         * tests/test-wcwidth.c (wcwidth): Likewise.
30023
30024         build: pull in conditional headers during GNULIB_POSIXCHECK
30025         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30026         definitions from any conditionally-included headers.
30027         * lib/stdlib.in.h (includes): Likewise.
30028         * lib/unistd.in.h (includes): Likewise.
30029
30030 2009-12-24  Bruno Haible  <bruno@clisp.org>
30031
30032         * tests/test-argv-iter.c: Include header file being tested immediately
30033         after config.h.
30034         * tests/test-base64.c: Likewise.
30035         * tests/test-flock.c: Likewise.
30036         * tests/test-fsync.c: Likewise.
30037         * tests/test-getdate.c: Likewise.
30038         * tests/test-getndelim2.c: Likewise.
30039         * tests/test-isfinite.c: Likewise.
30040         * tests/test-isinf.c: Likewise.
30041         * tests/test-strerror.c: Likewise.
30042         * tests/test-strsignal.c: Likewise.
30043
30044 2009-12-23  Eric Blake  <ebb9@byu.net>
30045
30046         unistd: work around cygwin bug
30047         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30048         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30049         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30050
30051 2009-12-23  Bruno Haible  <bruno@clisp.org>
30052
30053         localename: More tests.
30054         * tests/test-localename.c (SIZEOF): New macro.
30055         (categories): New variable.
30056         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30057         test_locale_name_default): Add test w.r.t. thread locale.
30058         (test_locale_name_thread): New function.
30059         (main): Invoke it.
30060
30061         localename: Make aware of thread locale.
30062         * lib/localename.h (gl_locale_name_thread): New declaration.
30063         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30064         behaviour with respect to thread locale.
30065         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30066         <langinfo.h>, glthread/lock.h.
30067         (SIZE_BITS): New macro.
30068         (string_hash): New function.
30069         (struct hash_node): New type.
30070         (HASH_TABLE_SIZE): New macro.
30071         (struniq_hash_table, struniq_lock): New variables.
30072         (struniq): New function.
30073         (gl_locale_name_thread): New function.
30074         (gl_locale_name): Invoke it.
30075         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30076         * modules/localename (Depends-on): Add lock.
30077         Reported by Mike Gran <spk121@yahoo.com>.
30078
30079 2009-12-23  Eric Blake  <ebb9@byu.net>
30080
30081         va-args: new module
30082         * modules/va-args: New file.
30083         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30084         * MODULES.html.sh (Core language properties): Mention it.
30085
30086         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30087         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30088         named alias for __attribute__((__unused__)).
30089         * lib/chown.c: Update client.
30090         * lib/fchmodat.c: Likewise.
30091         * lib/fts.c: Likewise.
30092         * lib/getdate.y: Likewise.
30093         * lib/getgroups.c: Likewise.
30094         * lib/getopt.c: Likewise.
30095         * lib/getugroups.c: Likewise.
30096         * lib/mkdir.c: Likewise.
30097         * lib/mkfifo.c: Likewise.
30098         * lib/mkfifoat.c: Likewise.
30099         * lib/mknod.c: Likewise.
30100         * lib/mknodat.c: Likewise.
30101         * lib/readlink.c: Likewise.
30102         * lib/se-context.in.h: Likewise.
30103         * lib/se-selinux.in.h: Likewise.
30104         * lib/sockets.c: Likewise.
30105         * lib/symlink.c: Likewise.
30106         * lib/symlinkat.c: Likewise.
30107         * lib/unicodeio.c: Likewise.
30108         * lib/unistr.h: Likewise.
30109         * tests/test-areadlink.c: Likewise.
30110         * tests/test-areadlinkat.c: Likewise.
30111         * tests/test-filenamecat.c: Likewise.
30112         * tests/test-fseeko.c: Likewise.
30113         * tests/test-ftello.c: Likewise.
30114         * tests/test-getdate.c: Likewise.
30115         * tests/test-getgroups.c: Likewise.
30116         * tests/test-gethostname.c: Likewise.
30117         * tests/test-quotearg.c: Likewise.
30118         * tests/test-version-etc.c: Likewise.
30119         * tests/test-xalloc-die.c: Likewise.
30120         * tests/test-xfprintf-posix.c: Likewise.
30121         * tests/test-xprintf-posix.c: Likewise.
30122         * tests/test-xvasprintf.c: Likewise.
30123
30124         tests: avoid compiler warnings
30125         * tests/test-fcntl.c (main): Delete unused parameters.
30126         * tests/test-freopen-safer.c (main): Likewise.
30127         * tests/test-xalloc-die.c (main): Mark unused parameters.
30128         * tests/test-fseeko.c (main): Likewise.
30129         * tests/test-ftello.c (main): Likewise.
30130         * tests/test-nanosleep.c (main): Avoid declaration warning.
30131         * tests/test-sleep.c (main): Likewise.
30132         * tests/test-unsetenv.c (main): Silence warning about string
30133         literal.
30134         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30135
30136 2009-12-23  Bruno Haible  <bruno@clisp.org>
30137
30138         * tests/test-localename.c (test_locale_name): New function, extracted
30139         from main. Also test mixed situations.
30140         (test_locale_name_posix, test_locale_name_environ,
30141         test_locale_name_default): New functions.
30142         (main): Invoke them all.
30143         * modules/localename-tests (configure.ac): Test for newlocale.
30144
30145 2009-12-23  Bruno Haible  <bruno@clisp.org>
30146
30147         unistd: Ensure getcwd gets declared before being overridden.
30148         * lib/unistd.in.h: Conditionally include <io.h>.
30149
30150 2009-12-22  Bruno Haible  <bruno@clisp.org>
30151
30152         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30153         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30154         (gl_WCHAR_H): Invoke it.
30155         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30156         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30157         Reported by Karl Berry <karl@freefriends.org>.
30158
30159 2009-12-22  Eric Blake  <ebb9@byu.net>
30160
30161         math, unistd: avoid redundant includes
30162         * lib/math.in.h (isnan): No need to re-include <math.h>.
30163         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30164
30165         getsubopt: work around cygwin bug
30166         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30167         avoid conflicting with system getsubopt.
30168         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30169         bug.
30170
30171         getopt: synchronize from glibc
30172         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30173         parameter order.  Adjust all callers.
30174         (_getopt_internal_r, main): Adjust quoting in error messages.
30175         Drop considerations for outdated POSIX 1003.2 error message.
30176         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30177         callers.
30178         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30179
30180         test-getopt: test stderr behavior
30181         * modules/getopt-posix-tests (Depends-on): Add dup2.
30182         * tests/test-getopt.c (ASSERT): Avoid stderr.
30183         (main): Move stderr to a temporary file.
30184         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30185         Instead, add parameter to inform caller if output occurred.
30186         (test_getopt): Adjust all existing tests to expect silence, and
30187         add new tests of leading ":".
30188         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30189         glibc shortcomings with leading "-:" or "+:" in optstring.
30190         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30191         Likewise.
30192         * doc/posix-functions/getopt.texi (getopt): Likewise.
30193
30194         test-getopt: enhance test
30195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30196         supports optind=0.
30197         * tests/test-getopt.c (OPTIND_MIN): Move...
30198         * tests/test-getopt.h (OPTIND_MIN): ...here.
30199         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30200         Require that optind=0 works, since modern BSD supports it in
30201         addition to optreset, and since coreutils expects it.
30202         (test_getopt_long_only): New test.
30203         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30204         glibc shortcomings with 'W;', and enforcement of optind=0.
30205         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30206         Likewise.
30207
30208 2009-12-21  Bruno Haible  <bruno@clisp.org>
30209
30210         localename: Improvements for MacOS X and Cygwin.
30211         * lib/localename.h (gl_locale_name_environ): New declaration.
30212         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30213         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30214         (gl_locale_name_posix): Invoke it.
30215         (gl_locale_name_default): Add comments. Use Windows native API also on
30216         Cygwin.
30217
30218 2009-12-21  Bruno Haible  <bruno@clisp.org>
30219
30220         Update list of Win32 locale ids.
30221         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30222         (LANG_SAMI): Renamed from LANG_SAAMI.
30223         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30224         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30225         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30226         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30227         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30228         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30229         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30230         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30231         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30232         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30233         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30234         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30235         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30236         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30237         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30238         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30239         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30240         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30241         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30242         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30243         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30244         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30245         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30246         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30247         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30248         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30249         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30250         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30251         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30252         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30253         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30254         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30255         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30256         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30257         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30258         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30259         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30260         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30261         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30262         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30263         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30264         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30265         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30266         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30267         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30268         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30269         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30270         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30271         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30272         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30273         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30274         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30275         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30276         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30277         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30278         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30279         Add more languages and countries for Sami, Sorbian. Add more countries
30280         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30281         for Pashto. Change country for Syriac, Tswana.
30282
30283 2009-12-21  Eric Blake  <ebb9@byu.net>
30284
30285         test-utimens: avoid spurious failure
30286         * tests/test-chown.h (nap): Factor...
30287         * tests/nap.h: ...into new file.
30288         * tests/test-lchown.h (nap): Avoid duplication.
30289         * tests/test-utimens-common.h (nap): Use shared implementation,
30290         necessary on file systems with 1-second resolution.
30291         * modules/chown-tests (Files): Include new file.
30292         * modules/fdutimensat-tests (Files): Likewise.
30293         * modules/futimens-tests (Files): Likewise.
30294         * modules/lchown-tests (Files): Likewise.
30295         * modules/openat-tests (Files): Likewise.
30296         * modules/utimens-tests (Files): Likewise.
30297         * modules/utimensat-tests (Files): Likewise.
30298
30299 2009-12-19  Eric Blake  <ebb9@byu.net>
30300
30301         futimens, utimensat: work around Linux bug
30302         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30303         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30304         * lib/utimensat.c (rpl_utimensat): Work around it.
30305         * lib/futimens.c (rpl_futimens): Adjust comment.
30306
30307         utimens: work around Linux ctime bug
30308         * lib/utimens.c (detect_ctime_bug): New helper function.
30309         (update_timespec): Differentiate between workaround needed for
30310         this bug vs. what is needed for systems that lack utimensat.
30311         (fdutimens, lutimens): Work around bug.
30312
30313         utimens: check for ctime update
30314         * tests/test-utimens-common.h (check_ctime): Define.
30315         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30316         * tests/test-futimens.h (test_futimens): Likewise.
30317         * tests/test-lutimens.h (test_lutimens): Likewise.
30318         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30319         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30320
30321 2009-12-19  Bruno Haible  <bruno@clisp.org>
30322
30323         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30324         * tests/test-dprintf-posix2.sh: New file.
30325         * tests/test-dprintf-posix2.c: New file.
30326         * modules/dprintf-posix-tests (Files): Add them.
30327         (configure.ac): Check for getrlimit and setrlimit.
30328         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30329
30330 2009-12-19  Bruno Haible  <bruno@clisp.org>
30331
30332         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30333         * tests/test-fprintf-posix3.sh: New file.
30334         * tests/test-fprintf-posix3.c: New file.
30335         * modules/fprintf-posix-tests (Files): Add them.
30336         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30337
30338 2009-12-19  Eric Blake  <ebb9@byu.net>
30339
30340         dirfd: fix prototype
30341         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30342         * lib/dirfd.c (dirfd): Likewise.
30343
30344         canonicalize: reduce memory usage
30345         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30346         allocation to size.
30347         Reported by Solar Designer <solar@openwall.com>.
30348
30349 2009-12-19  Bruno Haible  <bruno@clisp.org>
30350
30351         New module attribute 'Applicability'.
30352         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30353         * gnulib-tool: New option --extract-applicability.
30354         (func_usage): Document it.
30355         (sed_extract_prog): Recognize it.
30356         (func_get_applicability): New function.
30357         (func_import): Generalize handling of 'link-warning' module.
30358         * modules/link-warning (Applicability): New section.
30359         * modules/arg-nonnull (Applicability): New section.
30360         Repoted by Simon Josefsson <simon@josefsson.org>.
30361
30362 2009-12-19  Bruno Haible  <bruno@clisp.org>
30363
30364         fflush: tweak
30365         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30366         * lib/fseeko.c (rpl_fseeko): Likewise.
30367
30368 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30369
30370         * lib/gl_list.h: Fix typo in comment.
30371
30372 2009-12-16  Eric Blake  <ebb9@byu.net>
30373
30374         fcntl: use to simplify other modules
30375         * modules/cloexec (Depends-on): Add fcntl.
30376         * modules/fchdir (Depends-on): Likewise.
30377         * modules/fd-safer-flag (Depends-on): Likewise.
30378         * modules/unistd-safer (Depends-on): Likewise.
30379         * modules/dup3 (configure.ac): Set module indicator.
30380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30381         missing.
30382         * lib/fchdir.c (_gl_register_dup): Fix comment.
30383         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30384         * lib/dup-safer.c (dup_safer): Likewise.
30385         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30386         * lib/dup3.c (dup3): Likewise.
30387         * tests/test-fchdir.c (main): Enhance test.
30388         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30389
30390         fcntl: port portions of fcntl to mingw
30391         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30392         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30393         replacement for mingw.
30394         * modules/fcntl (Description): Update.
30395         (Depends-on): Add dup2.
30396         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30397         * modules/fcntl-h (Makefile.am): Substitute it.
30398         * lib/fcntl.in.h (fcntl): Update declaration.
30399         (F_DUPFD, F_GETFD): New macros, when needed.
30400         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30401         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30402         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30403         we now guarantee.
30404
30405         fcntl: work around cygwin bug in F_DUPFD
30406         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30407         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30408         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30409         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30410         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30411
30412         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30413         * modules/fcntl (Files): List new files.
30414         (configure.ac): Run a test.
30415         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30416         * lib/fcntl.c (rpl_fcntl): Likewise.
30417         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30418         (gl_FCNTL_H): Always replace fcntl.h.
30419         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30420         * lib/fcntl.in.h (fcntl): Declare replacement.
30421         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30422         needed, plus a witness.
30423         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30424         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30425         * tests/test-fcntl.c: New file.
30426         * modules/fcntl-tests: Likewise.
30427
30428         binary-io: avoid potential compilation warning
30429         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30430         directives.
30431
30432         fflush: avoid compilation error on NetBSD
30433         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30434         between off_t and fpos_t, since the latter is sometimes a struct.
30435         * lib/fseeko.c (rpl_fseeko): Likewise.
30436         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30437
30438 2009-12-15  Eric Blake  <ebb9@byu.net>
30439
30440         fcntl-h, stdio, sys_ioctl: fix declarations
30441         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30442         function must not take arguments.
30443         * lib/sys_ioctl.in.h (ioctl): Likewise.
30444         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30445         (open): Add a link warning.
30446
30447 2009-12-15  Jim Meyering  <meyering@redhat.com>
30448
30449         areadlink, areadlink-with-size: relax license to LGPLv2+
30450         * modules/areadlink (License): Relax to LGPLv2+.
30451         * modules/areadlink-with-size (License): Likewise.
30452
30453 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30454             Bruno Haible  <bruno@clisp.org>
30455
30456         *printf: Fix memory leak.
30457         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30458         * lib/vfprintf.c (vfprintf): Likewise.
30459         * lib/dprintf.c (dprintf): Likewise.
30460         * lib/vdprintf.c (vdprintf): Likewise.
30461
30462 2009-12-14  Eric Blake  <ebb9@byu.net>
30463
30464         accept4: adjust module dependencies
30465         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30466
30467         utimens: one more try at avoiding compiler warning
30468         * lib/utimens.c (lutimens): Lower scope of result.
30469
30470 2009-12-13  Bruno Haible  <bruno@clisp.org>
30471
30472         Move the malloc checking from module 'list' to new module 'xlist'.
30473         * modules/xlist: New file.
30474         * lib/gl_xlist.h: New file.
30475         * lib/gl_xlist.c: New file.
30476         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30477         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30478         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30479         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30480         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30481         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30482         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30483         gl_sortedlist_nx_add): New declarations.
30484         (struct gl_list_implementation): Rename and change methods accordingly.
30485         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30486         (gl_list_nx_create): Renamed from gl_list_create.
30487         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30488         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30489         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30490         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30491         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30492         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30493         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30494         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30495         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30496         gl_list_create_empty.
30497         (gl_list_nx_create): Renamed from gl_list_create.
30498         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30499         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30500         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30501         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30502         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30503         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30504         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30505         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30506         * lib/gl_array_list.c: Don't include xalloc.h.
30507         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30508         NULL upon out-of-memory.
30509         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30510         out-of-memory.
30511         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30512         Change return type to 'int'.
30513         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30514         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30515         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30516         upon out-of-memory.
30517         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30518         upon out-of-memory.
30519         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30520         upon out-of-memory.
30521         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30522         upon out-of-memory.
30523         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30524         out-of-memory.
30525         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30526         Update.
30527         (gl_array_list_implementation): Update.
30528         * lib/gl_carray_list.c: Don't include xalloc.h.
30529         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30530         Return NULL upon out-of-memory.
30531         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30532         out-of-memory.
30533         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30534         Change return type to 'int'.
30535         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30536         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30537         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30538         upon out-of-memory.
30539         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30540         upon out-of-memory.
30541         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30542         out-of-memory.
30543         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30544         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30545         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30546         Update.
30547         (gl_carray_list_implementation): Update.
30548         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30549         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30550         gl_linked_create_empty. Return NULL upon out-of-memory.
30551         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30552         out-of-memory.
30553         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30554         Change return type to 'int'. Return -1 upon out-of-memory.
30555         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30556         out-of-memory.
30557         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30558         upon out-of-memory.
30559         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30560         upon out-of-memory.
30561         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30562         NULL upon out-of-memory.
30563         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30564         upon out-of-memory.
30565         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30566         out-of-memory.
30567         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30568         Update.
30569         * lib/gl_linked_list.c: Don't include xalloc.h.
30570         (gl_linked_list_implementation): Update.
30571         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30572         (add_to_bucket): Change return type to 'int'.
30573         (gl_linkedhash_list_implementation): Update.
30574         * lib/gl_anytree_list1.h (free_subtree): New function.
30575         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30576         gl_tree_create_empty. Return NULL upon out-of-memory.
30577         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30578         Change return type to 'int'. Return -1 upon out-of-memory.
30579         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30580         out-of-memory.
30581         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30582         (gl_tree_remove_node): New function, moved here from
30583         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30584         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30585         Update.
30586         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30587         malloc, not xmalloc. Return NULL upon out-of-memory.
30588         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30589         out-of-memory.
30590         (gl_tree_remove_node_from_tree): New function, extracted from
30591         gl_tree_remove_node.
30592         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30593         upon out-of-memory.
30594         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30595         out-of-memory.
30596         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30597         upon out-of-memory.
30598         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30599         upon out-of-memory.
30600         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30601         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30602         not xmalloc. Return NULL upon out-of-memory.
30603         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30604         out-of-memory.
30605         (gl_tree_remove_node_from_tree): New function, extracted from
30606         gl_tree_remove_node.
30607         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30608         upon out-of-memory.
30609         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30610         out-of-memory.
30611         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30612         upon out-of-memory.
30613         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30614         upon out-of-memory.
30615         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30616         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30617         gl_anytree_list1.h before gl_anyavltree_list2.h.
30618         (gl_avltree_list_implementation): Update.
30619         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30620         gl_anytree_list1.h before gl_anyavltree_list2.h.
30621         (gl_rbtree_list_implementation): Update.
30622         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30623         Change return type to 'int'. Return -1 upon out-of-memory. Use
30624         __builtin_expect.
30625         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30626         (gl_avltreehash_list_implementation): Update.
30627         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30628         (gl_rbtreehash_list_implementation): Update.
30629         * modules/array-list (Depends-on): Remove xalloc.
30630         * modules/carray-list (Depends-on): Likewise.
30631         * modules/linked-list (Depends-on): Likewise.
30632         * modules/linkedhash-list (Depends-on): Likewise.
30633         * modules/avltree-list (Depends-on): Likewise.
30634         * modules/rbtree-list (Depends-on): Likewise.
30635         * modules/avltreehash-list (Depends-on): Likewise.
30636         * modules/rbtreehash-list (Depends-on): Likewise.
30637
30638         * modules/xsublist: New file.
30639         * lib/gl_xsublist.h: New file.
30640         * lib/gl_xsublist.c: New file.
30641         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30642         (gl_sublist_nx_create): New declaration.
30643         * lib/gl_sublist.c: Don't include xalloc.h.
30644         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30645         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30646         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30647         Change return type to 'int'. Return -1 upon out-of-memory.
30648         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30649         upon out-of-memory.
30650         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30651         NULL upon out-of-memory.
30652         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30653         upon out-of-memory.
30654         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30655         NULL upon out-of-memory.
30656         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30657         NULL upon out-of-memory.
30658         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30659         upon out-of-memory.
30660         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30661         (gl_sublist_list_implementation): Update.
30662         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30663         upon out-of-memory.
30664         * modules/sublist (Depends-on): Remove xalloc.
30665
30666         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30667         * tests/test-carray_list.c: Likewise.
30668         * tests/test-linked_list.c: Likewise.
30669         * tests/test-linkedhash_list.c: Likewise.
30670         * tests/test-avltree_list.c: Likewise.
30671         * tests/test-rbtree_list.c: Likewise.
30672         * tests/test-avltreehash_list.c: Likewise.
30673         * tests/test-rbtreehash_list.c: Likewise.
30674         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30675         * modules/carray-list-tests (Makefile.am): Likewise.
30676         * modules/linked-list-tests (Makefile.am): Likewise.
30677         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30678         * modules/avltree-list-tests (Makefile.am): Likewise.
30679         * modules/rbtree-list-tests (Makefile.am): Likewise.
30680         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30681         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30682
30683         * NEWS: Mention the changes.
30684
30685         * lib/clean-temp.c: Include gl_xlist.h.
30686         * modules/clean-temp (Depends-on): Add xlist.
30687
30688         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30689         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30690
30691         * tests/test-array_oset.c: Include gl_xlist.h.
30692         * modules/array-oset-tests (Depends-on): Add xlist.
30693
30694         Reported by José E. Marchesi <jemarch@gnu.org>.
30695
30696 2009-12-13  Bruno Haible  <bruno@clisp.org>
30697
30698         Move the malloc checking from module 'oset' to new module 'xoset'.
30699         * modules/xoset: New file.
30700         * lib/gl_xoset.h: New file.
30701         * lib/gl_xoset.c: New file.
30702         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30703         declarations.
30704         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30705         (struct gl_oset_implementation): Rename and change methods accordingly.
30706         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30707         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30708         'int'. Mark as __warn_unused_result__.
30709         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30710         gl_oset_create_empty.
30711         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30712         'int'.
30713         * lib/gl_array_oset.c: Don't include xalloc.h.
30714         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30715         malloc, not xmalloc.
30716         (grow): Change return type to 'int'. Don't call xalloc_die.
30717         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30718         to 'int'.
30719         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30720         'int'.
30721         (gl_array_oset_implementation): Update.
30722         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30723         gl_tree_create_empty.
30724         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30725         'int'.
30726         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30727         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30728         xmalloc.
30729         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30730         not xmalloc.
30731         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30732         xmalloc.
30733         (gl_avltree_oset_implementation): Update.
30734         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30735         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30736         xmalloc.
30737         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30738         not xmalloc.
30739         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30740         xmalloc.
30741         (gl_rbtree_oset_implementation): Update.
30742         * modules/array-oset (Depends-on): Remove xalloc.
30743         * modules/avltree-oset (Depends-on): Likewise.
30744         * modules/rbtree-oset (Depends-on): Likewise.
30745         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30746         * tests/test-avltree_oset.c: Likewise.
30747         * tests/test-rbtree_oset.c: Likewise.
30748         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30749         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30750         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30751         * NEWS: Mention the change.
30752
30753 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30754
30755         maint.mk: allow a project to override release-prep commands
30756         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30757         commands into a new rule.
30758         (release-prep): New rule.
30759         (release-prep-hook): New overridable variable.
30760
30761 2009-12-13  Bruno Haible  <bruno@clisp.org>
30762
30763         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30764
30765 2009-12-13  Jim Meyering  <meyering@redhat.com>
30766
30767         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30768         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30769
30770 2009-12-12  Bruno Haible  <bruno@clisp.org>
30771
30772         duplocale: Tweak.
30773         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30774
30775 2009-12-12  Karl Berry  <karl@gnu.org>
30776
30777         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30778
30779 2009-12-12  Bruno Haible  <bruno@clisp.org>
30780
30781         * m4/po.m4: Undo incorrect untabification.
30782
30783 2009-12-12  Bruno Haible  <bruno@clisp.org>
30784
30785         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30786         * modules/c-strtod (Depends-on): Add locale.
30787         * modules/c-strtold (Depends-on): Likewise.
30788
30789 2009-12-12  Bruno Haible  <bruno@clisp.org>
30790
30791         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30792
30793 2009-12-11  Eric Blake  <ebb9@byu.net>
30794
30795         setenv: relax requirement in light of POSIX ruling
30796         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30797         not NULL.
30798         * tests/test-setenv.c (main): Relax test.
30799         * tests/test-unsetenv.c (main): Likewise.
30800         * doc/posix-functions/setenv.texi (setenv): Document this.
30801         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30802
30803 2009-12-11  Bruno Haible  <bruno@clisp.org>
30804
30805         New module 'fd-safer-flag'.
30806         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30807         * lib/dup-safer.c (dup_safer_flag): Remove function.
30808         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30809         * lib/fd-safer.c (fd_safer_flag): Remove function.
30810         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30811         * modules/cloexec (configure.ac): Drop indicator macro.
30812         * modules/fd-safer-flag: New file.
30813         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30814         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30815         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30816
30817 2009-12-11  Bruno Haible  <bruno@clisp.org>
30818
30819         Tests for module 'nl_langinfo'.
30820         * modules/nl_langinfo-tests: New file.
30821         * tests/test-nl_langinfo.sh: New file.
30822         * tests/test-nl_langinfo.c: New file.
30823
30824         New module 'nl_langinfo'.
30825         * lib/nl_langinfo.c: New file.
30826         * m4/nl_langinfo.m4: New file.
30827         * modules/nl_langinfo: New file.
30828         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30829
30830 2009-12-11  Bruno Haible  <bruno@clisp.org>
30831
30832         Tests for module 'langinfo'.
30833         * modules/langinfo-tests: New file.
30834         * tests/test-langinfo.c: New file.
30835
30836         New module 'langinfo'.
30837         * lib/langinfo.in.h: New file.
30838         * m4/langinfo_h.m4: New file.
30839         * modules/langinfo: New file.
30840         * doc/posix-headers/langinfo.texi: Mention the new module.
30841
30842 2009-12-11  Bruno Haible  <bruno@clisp.org>
30843
30844         * lib/config.charset: Untabify.
30845
30846 2009-12-11  Bruno Haible  <bruno@clisp.org>
30847
30848         * modules/unistd-safer (configure.ac): Drop indicator macro.
30849
30850 2009-12-11  Bruno Haible  <bruno@clisp.org>
30851
30852         Move pipe2-safer code to its own file.
30853         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30854         * lib/pipe-safer.c (pipe2_safer): Remove function.
30855         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30856         (Makefile.am): Add it to lib_SOURCES.
30857
30858 2009-12-10  Bruno Haible  <bruno@clisp.org>
30859
30860         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30861
30862 2009-12-10  Bruno Haible  <bruno@clisp.org>
30863
30864         Declare which arguments expect non-NULL values, for GCC and clang.
30865         * build-aux/arg-nonnull.h: New file.
30866         * modules/arg-nonnull: New file.
30867         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30868         (inet_ntop, inet_pton): Use it.
30869         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30870         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30871         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30872         (open, openat): Use it.
30873         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30874         (fnmatch): Use it.
30875         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30876         (getopt, getopt_long, getopt_long_only): Use it.
30877         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30878         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30879         Use it.
30880         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30881         (iconv_open): Use it.
30882         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30883         (strtoimax, strtoumax): Use it.
30884         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30885         (duplocale): Use it.
30886         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30887         (frexp, frexpl): Use it.
30888         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30889         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30890         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30891         (tsearch, tfind, tdelete, twalk): Use it.
30892         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30893         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30894         sigpending): Use it.
30895         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30896         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30897         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30898         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30899         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30900         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30901         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30902         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30903         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30904         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30905         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30906         Use it.
30907         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30908         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30909         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30910         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30911         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30912         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30913         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30914         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30915         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30916         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30917         strtoull, unsetenv): Use it.
30918         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30919         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30920         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30921         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30922         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30923         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30924         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30925         (strcasecmp, strncasecmp): Use it.
30926         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30927         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30928         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30929         rpl_setsockopt): Use it.
30930         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30931         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30932         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30933         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30934         (gettimeofday): Use it.
30935         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30936         (times): Use it.
30937         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30938         (uname): Use it.
30939         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30940         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30941         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30942         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30943         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30944         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30945         unlinkat, write): Use it.
30946         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30947         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30948         * lib/argv-iter.h: Include arg-nonnull.h.
30949         (_ATTRIBUTE_NONNULL_): Remove macro.
30950         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30951         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30952         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30953         optimization.
30954         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30955         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30956         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30957         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30958         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30959         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30960         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30961         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30962         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30963         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30964         * modules/dirent (Depends-on): Add arg-nonnull.
30965         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30966         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30967         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30968         * modules/fnmatch (Depends-on): Add arg-nonnull.
30969         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30970         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30971         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30972         * modules/glob (Depends-on): Add arg-nonnull.
30973         (Makefile.am): Insert arg-nonnull.h into glob.h.
30974         * modules/iconv_open (Depends-on): Add arg-nonnull.
30975         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30976         * modules/inttypes (Depends-on): Add arg-nonnull.
30977         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30978         * modules/locale (Depends-on): Add arg-nonnull.
30979         (Makefile.am): Insert arg-nonnull.h into locale.h.
30980         * modules/math (Depends-on): Add arg-nonnull.
30981         (Makefile.am): Insert arg-nonnull.h into math.h.
30982         * modules/netdb (Depends-on): Add arg-nonnull.
30983         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30984         * modules/search (Depends-on): Add arg-nonnull.
30985         (Makefile.am): Insert arg-nonnull.h into search.h.
30986         * modules/signal (Depends-on): Add arg-nonnull.
30987         (Makefile.am): Insert arg-nonnull.h into signal.h.
30988         * modules/spawn (Depends-on): Add arg-nonnull.
30989         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30990         * modules/stdio (Depends-on): Add arg-nonnull.
30991         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30992         * modules/stdlib (Depends-on): Add arg-nonnull.
30993         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30994         * modules/string (Depends-on): Add arg-nonnull.
30995         (Makefile.am): Insert arg-nonnull.h into string.h.
30996         * modules/strings (Depends-on): Add arg-nonnull.
30997         (Makefile.am): Insert arg-nonnull.h into strings.h.
30998         * modules/sys_socket (Depends-on): Add arg-nonnull.
30999         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31000         * modules/sys_stat (Depends-on): Add arg-nonnull.
31001         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31002         * modules/sys_time (Depends-on): Add arg-nonnull.
31003         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31004         * modules/sys_times (Depends-on): Add arg-nonnull.
31005         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31006         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31007         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31008         * modules/time (Depends-on): Add arg-nonnull.
31009         (Makefile.am): Insert arg-nonnull.h into time.h.
31010         * modules/unistd (Depends-on): Add arg-nonnull.
31011         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31012         * modules/wchar (Depends-on): Add arg-nonnull.
31013         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31014         * modules/argv-iter (Depends-on): Add arg-nonnull.
31015         * tests/test-canonicalize.c (null_ptr): New function.
31016         (main): Use it.
31017         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31018         (main): Use it.
31019         * tests/test-memmem.c (null_ptr): New function.
31020         (main): Use it.
31021         Reported by Jim Meyering.
31022
31023 2009-12-10  Bruno Haible  <bruno@clisp.org>
31024
31025         Use spaces for indentation, not tabs.
31026         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31027         * m4/*.m4: Untabify.
31028         * build-aux/*.h: Untabify.
31029         * tests/**/*.[hc]: Untabify.
31030         * README: New section "Indent with spaces, not TABs", based on
31031         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31032         * NEWS: Mention the change.
31033
31034 2009-12-10  Bruno Haible  <bruno@clisp.org>
31035
31036         pty test: Fix link error.
31037         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31038         test_pty_LDADD.
31039
31040 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31041
31042         * modules/pty: New file.
31043         * modules/pty-tests: New file.
31044         * m4/pty.m4: New file.
31045         * tests/test-pty.c: New file.
31046         * doc/glibc-headers/pty.texi: Modified.
31047         * doc/glibc-functions/forkpty.texi: Modified.
31048         * doc/glibc-functions/openpty.texi: Modified.
31049
31050 2009-12-10  Bruno Haible  <bruno@clisp.org>
31051
31052         Avoid syntax error in C++ mode.
31053         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31054
31055 2009-12-10  Bruno Haible  <bruno@clisp.org>
31056
31057         Use sed with option -e.
31058         * gnulib-tool (func_version, func_emit_copyright_notice,
31059         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31060         option -e to sed.
31061         * modules/link-warning (Makefile.am): Likewise.
31062
31063 2009-12-10  Jim Meyering  <meyering@redhat.com>
31064
31065         mgetgroups: do not write bytes beyond end of malloc'd buffer
31066         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31067         username, we call getgroups with a one-element-shorter buffer,
31068         but still told it the length was original, max_n_groups.
31069
31070 2009-12-09  Eric Blake  <ebb9@byu.net>
31071
31072         cloexec: relax license
31073         * modules/cloexec (Maintainer): Add myself.
31074         (License): Use LGPL, not GPL.
31075
31076         link-warning: optimize generation
31077         * modules/link-warning (Makefile.am): Reduce process usage.
31078
31079 2009-12-09  Bruno Haible  <bruno@clisp.org>
31080
31081         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31082         workaround was added on 2009-11-17.
31083
31084 2009-12-09  Jim Meyering  <meyering@redhat.com>
31085             Bruno Haible  <bruno@clisp.org>
31086
31087         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31088         * modules/link-warning (Makefile.am): Make the comment-removing sed
31089         command more robust in the face of bootstrap-prepended comment lines.
31090
31091 2009-12-09  Bruno Haible  <bruno@clisp.org>
31092
31093         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31094         most one group.
31095
31096 2009-12-09  Simon Josefsson <simon@josefsson.org>
31097             Bruno Haible  <bruno@clisp.org>
31098
31099         * build-aux/link-warning.h: Add copyright notice.
31100         * modules/link-warning (Makefile.am): Generate link-warning.h from
31101         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31102         * NEWS: Mention change in link-warning module.
31103         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31104         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31105         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31106         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31107         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31108         * modules/math (Makefile.am): Add dependency to math.h.
31109         * modules/search (Makefile.am): Add dependency to search.h.
31110         * modules/signal (Makefile.am): Add dependency to signal.h.
31111         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31112         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31113         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31114         * modules/string (Makefile.am): Add dependency to string.h.
31115         * modules/strings (Makefile.am): Add dependency to strings.h.
31116         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31117         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31118         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31119         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31120         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31121         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31122         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31123         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31124         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31125
31126 2009-12-09  Bruno Haible  <bruno@clisp.org>
31127
31128         fchdir: Optimize away rpl_fstat when possible.
31129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31130         REPLACE_OPEN_DIRECTORY.
31131         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31132
31133 2009-12-09  Bruno Haible  <bruno@clisp.org>
31134
31135         * lib/fchdir.c: Update comment.
31136
31137 2009-12-09  Bruno Haible  <bruno@clisp.org>
31138
31139         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31140
31141 2009-12-08  Eric Blake  <ebb9@byu.net>
31142
31143         fchdir: avoid memory leak on re-registration.
31144         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31145
31146 2009-12-08  Jim Meyering  <meyering@redhat.com>
31147
31148         init.sh: avoid Solaris 10 /bin/sh portability problem
31149         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31150         sourced script:
31151           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31152           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31153           bar
31154         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31155         and two tests used that idiom.
31156         * tests/init.sh: Update suggested usage comments.
31157         (path_prepend_): New function, to be used in place
31158         of the --src-path=DIR option.
31159         (setup_): Move PATH-prepending code into path_prepend_.
31160         * tests/test-pread.sh: Adapt to new usage.
31161         * tests/test-xalloc-die.sh: Likewise.
31162
31163 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31164
31165         * doc/gnulib.texi (Glibc pty.h): Add.
31166         * doc/glibc-functions/forkpty.texi: Add.
31167         * doc/glibc-functions/openpty.texi: Add.
31168         Suggested by Bruno Haible.
31169
31170 2009-12-08  Eric Blake  <ebb9@byu.net>
31171
31172         fchdir: fix logic bugs
31173         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31174         * tests/test-fchdir.c (main): Enhance test.
31175         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31176         is in use.
31177
31178         dup2: fix logic bugs
31179         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31180         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31181         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31182         exists.
31183         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31184
31185 2009-12-07  Eric Blake  <ebb9@byu.net>
31186
31187         unlink: fix m4 detection
31188         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31189
31190         unistd-safer: add unit test
31191         * modules/unistd-safer-tests: New file.
31192         * tests/test-dup-safer.c: Likewise.
31193         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31194         * tests/test-dup2.c (setmode): Likewise.
31195         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31196
31197         cloexec: preserve text vs. binary across dup_cloexec
31198         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31199         mode.
31200         * modules/dup2-tests (Depends-on): Add binary-io.
31201         * modules/cloexec-tests (Depends-on): Likewise.
31202         * tests/test-dup2.c (setmode, is_mode): New helpers.
31203         (main): Add tests that translation mode is preserved.
31204         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31205         Reported by Bruno Haible.
31206
31207         mgetgroups: reduce duplicate listings
31208         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31209         resulting array.
31210         * tests/test-chown.h (test_chown): Simplify client.
31211         * tests/test-lchown.h (test_lchown): Likewise.
31212
31213 2009-12-06  Bruno Haible  <bruno@clisp.org>
31214
31215         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31216         value.
31217
31218 2009-12-06  Bruno Haible  <bruno@clisp.org>
31219
31220         * lib/progname.c: Include stdio.h, stdlib.h.
31221         (set_program_name): Reject a NULL argument.
31222
31223 2009-12-05  Eric Blake  <ebb9@byu.net>
31224
31225         pipe2-safer: new module
31226         * modules/pipe2-safer: New file.
31227         * lib/unistd-safer.h (pipe2_safer): New prototype.
31228         * lib/unistd--.h (pipe2): New wrapper.
31229         * lib/pipe-safer.c (pipe2_safer): New function.
31230         * modules/pipe (Depends-on): Add pipe2-safer.
31231         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31232
31233         stdlib-safer: preserve cloexec flag for mkostemp[s]
31234         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31235         fd_safer_flag.
31236
31237         unistd-safer: allow preservation of cloexec status via flag
31238         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31239         prototypes.
31240         * lib/dup-safer.c (dup_safer_flag): New function.
31241         * lib/fd-safer.c (fd_safer_flag): Likewise.
31242         * modules/cloexec (configure.ac): Set witness.
31243
31244         test-dup2: enhance test
31245         * modules/dup2-tests (Depends-on): Add cloexec.
31246         * tests/test-dup2.c (main): Enhance test.
31247
31248         cloexec: add dup_cloexec
31249         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31250         header and comments.
31251         * lib/cloexec.c (set_cloexec_flag): Add comments.
31252         (dup_cloexec): New function, with mingw implementation borrowed
31253         from...
31254         * lib/w32spawn.h (dup_noinherit): ...here.
31255         * modules/execute (Depends-on): Add cloexec.
31256         * modules/pipe (Depends-on): Likewise.
31257         * modules/cloexec (Depends-on): Add dup2.
31258         * modules/cloexec-tests (Files): New file.
31259         * tests/test-cloexec.c: Likewise.
31260
31261         test-xalloc-die: fix test for mingw
31262         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31263         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31264         directory and .exe suffix off argv[0] output.
31265
31266         test-fseeko: fix test for mingw
31267         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31268         than undefining fseek, so test will pass on mingw.
31269
31270 2009-12-05  Bruno Haible  <bruno@clisp.org>
31271
31272         * lib/progname.h (set_program_name): Clarify specification.
31273         * lib/progname.c (set_program_name): Likewise.
31274         Reported by Jim Meyering.
31275
31276 2009-12-05  Jim Meyering  <meyering@redhat.com>
31277
31278         maint.mk: backslash-escape parens in default regexp
31279         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31280         backslash-escape the literal parentheses.
31281
31282         maint.mk: news-date-check: use grep -E
31283         * top/maint.mk (today): Define a Make variable, not a...
31284         (news-date-check): ...shell variable.
31285         (news-date-regexp): Use the Make variable.
31286         Use grep's -E option.  Change the failing diagnostic to mention
31287         the variable, $(news-date-regexp).
31288
31289 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31290
31291         maintainer-makefile: allow customization of NEWS entry format
31292         * top/maint.mk (news-date-regexp): New overridable variable.
31293         (news-date-check): Use it.
31294
31295 2009-12-04  Eric Blake  <ebb9@byu.net>
31296
31297         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31298         * lib/mgetgroups.h (xgetgroups): New prototype.
31299         * lib/mgetgroups.c (xgetgroups): New wrapper.
31300         (mgetgroups): Handle ENOSYS.
31301         * modules/mgetgroups (Depends-on): Add realloc.
31302         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31303
31304         mgetgroups: avoid argument promotion issues with -1
31305         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31306         for invalid gid_t.
31307         * tests/test-chown.h (getegid, test_chown): Likewise.
31308         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31309
31310 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31311
31312         exclude: Fix header file problems.
31313         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31314
31315 2009-12-01  Jim Meyering  <meyering@redhat.com>
31316
31317         fts: fts_open: do not let an empty string cause immediate failure
31318         This is required in support of GNU rm, for which the command
31319         "rm A '' B" must process and remove both A and B, in spite of
31320         the empty string argument.
31321         * lib/fts.c (fts_open): Do not let the presence of an empty string
31322         cause fts_open to fail immediately.  Most fts-using tools must be
31323         able to process all arguments, in order, and can be expected to
31324         diagnose such arguments themselves.
31325
31326 2009-11-30  Eric Blake  <ebb9@byu.net>
31327
31328         utimens: fix compilation error
31329         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31330         Declare variable at right scope.
31331
31332 2009-11-29  Jim Meyering  <meyering@redhat.com>
31333
31334         bootstrap: handle perl-5.11's changed --version output
31335         * build-aux/bootstrap (get_version): Handle perl separately,
31336         since perl-5.11's --version output is different.
31337
31338 2009-11-28  Jim Meyering  <meyering@redhat.com>
31339
31340         userspec: depend on the inttostr module, too
31341         * modules/userspec (Depends-on): Add inttostr.
31342
31343         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31344         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31345         number of MAXUID when it evaluates to (uid_t) -1.
31346         Likewise for group ID.  Reported by Matt McCutchen in
31347         <http://savannah.gnu.org/bugs/?28113>
31348
31349         userspec: reformat to use spaces, not TABs
31350         * lib/userspec.c: Expand TABs to spaces.
31351         Add Emacs' "indent-tabs-mode: nil" hint.
31352
31353 2009-11-27  Eric Blake  <ebb9@byu.net>
31354
31355         getopt-gnu: flush out another BSD bug
31356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31357         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31358         flush out BSD bug.
31359         * tests/test-getopt.h (test_getopt): End lists with NULL.
31360         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31361         (test_getopt_long_posix): Enhance test.
31362         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31363         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31364         getopt-gnu.
31365         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31366         Likewise.
31367
31368 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31369
31370         * modules/idpriv-droptemp-tests (Notice): Fix text.
31371
31372 2009-11-27  Jim Meyering  <meyering@redhat.com>
31373
31374         test-xalloc-die: avoid spurious failure due to libtool argv difference
31375         In a libtool-enabled project, this test would fail due to a difference
31376         in the emitted program name, e.g.,
31377         -test-xalloc-die: memory exhausted
31378         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31379         Use program to avoid that.
31380         * modules/xalloc-die-tests (Depends-on): Add progname.
31381         * tests/test-xalloc-die.c: Include progname.h".
31382         (program_name): Remove decl.
31383         (main): Call set_program_name.
31384         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31385
31386 2009-11-26  Richard Jones  <rjones@redhat.com>
31387
31388         w32sock: leave win32 error in place.
31389         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31390
31391 2009-11-26  Eric Blake  <ebb9@byu.net>
31392
31393         init.sh: suggest to use skip_ and fail_ functions in comments
31394         * tests/init.sh: Add a sentence.
31395
31396 2009-11-25  Bruno Haible  <bruno@clisp.org>
31397
31398         init.sh: add documentation in comments
31399         * tests/init.sh: Add some developer and user documentation.
31400
31401 2009-11-26  Jim Meyering  <meyering@redhat.com>
31402
31403         init.sh: accommodate even those who specify bogus srcdir manually
31404         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31405         configure-time tests to be sanitized, so that there is no need to
31406         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31407         (with no double quotes) suffices.  However, since tests may be
31408         invoked manually, and since you may explicitly set srcdir to the
31409         name of a directory containing spaces, do quote its uses here.
31410         * tests/test-pread.sh: Likewise.
31411         Suggested by Bruno Haible.
31412
31413         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31414         * tests/test-pread.sh: Write no data into the pipe, because
31415         test-pread actually reads none.  This avoids a diagnostic,
31416         "bash: echo: write error: Broken pipe", that arises in the unusual
31417         event something is ignoring SIGPIPE, and might be interpreted
31418         as some sort of failure.  Reported by Bruno Haible.
31419
31420 2009-11-25  Jim Meyering  <meyering@redhat.com>
31421
31422         test-pread: cover failure with ESPIPE and EINVAL
31423         * tests/test-pread.c (main): Test for failure, too.
31424         * tests/test-pread.sh: Invoke with stdin on a pipe.
31425         Suggested by Eric Blake.
31426
31427         pread: improvement and fix
31428         * modules/pread (Depends-on): Depend on lseek, for portability to
31429         e.g., mingw.  Suggested by Eric Blake.
31430         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31431
31432         unistd.in.h: correct declaration of pread
31433         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31434         Reported by Richard W.M. Jones.
31435
31436         test-pread.sh: distribute the test script
31437         * modules/pread-tests (Files): Include test-pread.sh.
31438
31439         test-pread.sh: clean up
31440         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31441         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31442         That is unnecessary, since it's always ".".
31443         Suggestion from Eric Blake.
31444
31445         test-pread.sh: make executable
31446         * tests/test-pread.sh: Set executable bit.
31447         Reported by Eric Blake.
31448
31449         correct typo in test-pread.sh
31450         * tests/test-pread.sh: Add #! line.
31451
31452         test pread
31453         * tests/test-pread.c: New file.
31454         * tests/test-pread.sh: Likewise.
31455         * modules/pread-tests: Likewise.
31456
31457         pread: new module
31458         * modules/pread: New file.
31459         * lib/unistd.in.h (pread): Define/declare.
31460         * lib/pread.c (pread): New file.
31461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31462         * modules/unistd (Makefile.am): Substitute witnesses.
31463         * doc/posix-functions/pread.texi (pread): Update.
31464         * MODULES.html.sh: Add pread.
31465
31466 2009-11-25  Jim Meyering  <meyering@redhat.com>
31467
31468         tests/init.sh: new file to be used via most *.sh tests
31469         * tests/init.sh: New file.
31470
31471 2009-11-25  Eric Blake  <ebb9@byu.net>
31472
31473         utimens: work around older Linux failure with symlinks
31474         * lib/utimens.c (lutimensat_works_really): New variable.
31475         (fdutimens, lutimens): Use it to manage kernels that support
31476         nanosecond times on files, but not on symlinks.
31477         Reported by OndÅ™ej Vašík.
31478
31479         utimes: fix configure grammar
31480         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31481
31482 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31483
31484         regex: Fix fastmap for multibyte character ranges.
31485         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31486         characters when a multibyte character range is included.
31487
31488 2009-11-22  Andy Wingo  <wingo@pobox.com>
31489
31490         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31491         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31492
31493 2009-11-24  Bruno Haible  <bruno@clisp.org>
31494
31495         doc: Most *_l functions exist in MacOS X 10.5.
31496         * doc/posix-functions/duplocale.texi: Update platforms list.
31497         * doc/posix-functions/freelocale.texi: Likewise.
31498         * doc/posix-functions/newlocale.texi: Likewise.
31499         * doc/posix-functions/uselocale.texi: Likewise.
31500         * doc/posix-functions/isalnum_l.texi: Likewise.
31501         * doc/posix-functions/isalpha_l.texi: Likewise.
31502         * doc/posix-functions/isblank_l.texi: Likewise.
31503         * doc/posix-functions/iscntrl_l.texi: Likewise.
31504         * doc/posix-functions/isdigit_l.texi: Likewise.
31505         * doc/posix-functions/isgraph_l.texi: Likewise.
31506         * doc/posix-functions/islower_l.texi: Likewise.
31507         * doc/posix-functions/isprint_l.texi: Likewise.
31508         * doc/posix-functions/ispunct_l.texi: Likewise.
31509         * doc/posix-functions/isspace_l.texi: Likewise.
31510         * doc/posix-functions/isupper_l.texi: Likewise.
31511         * doc/posix-functions/iswalnum_l.texi: Likewise.
31512         * doc/posix-functions/iswalpha_l.texi: Likewise.
31513         * doc/posix-functions/iswblank_l.texi: Likewise.
31514         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31515         * doc/posix-functions/iswctype_l.texi: Likewise.
31516         * doc/posix-functions/iswdigit_l.texi: Likewise.
31517         * doc/posix-functions/iswgraph_l.texi: Likewise.
31518         * doc/posix-functions/iswlower_l.texi: Likewise.
31519         * doc/posix-functions/iswprint_l.texi: Likewise.
31520         * doc/posix-functions/iswpunct_l.texi: Likewise.
31521         * doc/posix-functions/iswspace_l.texi: Likewise.
31522         * doc/posix-functions/iswupper_l.texi: Likewise.
31523         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31524         * doc/posix-functions/isxdigit_l.texi: Likewise.
31525         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31526         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31527         * doc/posix-functions/strcoll_l.texi: Likewise.
31528         * doc/posix-functions/strfmon_l.texi: Likewise.
31529         * doc/posix-functions/strftime_l.texi: Likewise.
31530         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31531         * doc/posix-functions/strxfrm_l.texi: Likewise.
31532         * doc/posix-functions/tolower_l.texi: Likewise.
31533         * doc/posix-functions/toupper_l.texi: Likewise.
31534         * doc/posix-functions/towctrans_l.texi: Likewise.
31535         * doc/posix-functions/towlower_l.texi: Likewise.
31536         * doc/posix-functions/towupper_l.texi: Likewise.
31537         * doc/posix-functions/wcscoll_l.texi: Likewise.
31538         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31539         * doc/posix-functions/wctrans_l.texi: Likewise.
31540         * doc/posix-functions/wctype_l.texi: Likewise.
31541         * doc/glibc-functions/strptime_l.texi: Likewise.
31542         * doc/glibc-functions/strtod_l.texi: Likewise.
31543         * doc/glibc-functions/strtof_l.texi: Likewise.
31544         * doc/glibc-functions/strtol_l.texi: Likewise.
31545         * doc/glibc-functions/strtold_l.texi: Likewise.
31546         * doc/glibc-functions/strtoll_l.texi: Likewise.
31547         * doc/glibc-functions/strtoul_l.texi: Likewise.
31548         * doc/glibc-functions/strtoull_l.texi: Likewise.
31549         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31550         * doc/glibc-functions/wcstod_l.texi: Likewise.
31551         * doc/glibc-functions/wcstof_l.texi: Likewise.
31552         * doc/glibc-functions/wcstol_l.texi: Likewise.
31553         * doc/glibc-functions/wcstold_l.texi: Likewise.
31554         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31555         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31556         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31557
31558 2009-11-24  Bruno Haible  <bruno@clisp.org>
31559
31560         duplocale: Fix logic bug.
31561         * lib/duplocale.c: Don't include <langinfo.h>.
31562         (_NL_LOCALE_NAME): Remove macro.
31563         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31564         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31565
31566 2009-11-23  Jim Meyering  <meyering@redhat.com>
31567
31568         test-update-copyright: don't hard-code /usr/bin/perl
31569         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31570         perl to print the current year.  Gilles Espinasse reported that
31571         the replaced use of perl was hard-coded as /usr/bin/perl.
31572
31573 2009-11-23  Bruno Haible  <bruno@clisp.org>
31574
31575         duplocale: Add support for glibc 2.3.x.
31576         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31577
31578 2009-11-22  Bruno Haible  <bruno@clisp.org>
31579
31580         vasnprintf: Tiny optimization.
31581         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31582         MacOS X.
31583
31584 2009-11-22  Bruno Haible  <bruno@clisp.org>
31585
31586         Tests for module 'duplocale'.
31587         * modules/duplocale-tests: New file.
31588         * tests/test-duplocale.c: New file.
31589
31590         New module 'duplocale'.
31591         * m4/duplocale.m4: New file.
31592         * lib/locale.in.h (duplocale): New declaration.
31593         * lib/duplocale.c: New file.
31594         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31595         gl_LOCALE_H_DEFAULTS): New macros.
31596         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31597         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31598         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31599         REPLACE_DUPLOCALE.
31600         * modules/duplocale: New file.
31601         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31602
31603 2009-11-22  Bruno Haible  <bruno@clisp.org>
31604
31605         * modules/locale-tests (configure.ac): Test for newlocale function.
31606         * tests/test-locale.c: When the system has extended locale functions,
31607         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31608
31609         locale: Make locale_t available when possible.
31610         * lib/locale.in.h: Include <xlocale.h> when it exists.
31611         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31612         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31613         * modules/locale (Depends-on): Add extensions.
31614         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31615         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31616
31617 2009-11-22  Bruno Haible  <bruno@clisp.org>
31618
31619         Add comments.
31620         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31621         invocation.
31622         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31623         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31624         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31625
31626 2009-11-22  Bruno Haible  <bruno@clisp.org>
31627
31628         error: account for the possibility of freopen (stdout).
31629         * lib/error.c: Include <unistd.h>.
31630         (flush_stdout): New function, extracted from error and error_at_line.
31631         Determine stdout's fd dynamically.
31632         (error, error_at_line): Invoke flush_stdout.
31633         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31634         * modules/error (Depends-on): Add unistd.
31635
31636 2009-11-22  Bruno Haible  <bruno@clisp.org>
31637
31638         diffseq: Add comment.
31639         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31640
31641 2009-11-22  Jim Meyering  <meyering@redhat.com>
31642
31643         c-stack: avoid defining an unused static function
31644         * lib/c-stack.c (find_stack_direction): Do not define this function
31645         when it will not be used.
31646
31647         diffseq: avoid spurious gcc warnings
31648         * lib/diffseq.h (IF_LINT2): Define.
31649         (compareseq): Use it to initialize two members of "part".
31650         This avoids two used-uninitialized warnings.
31651
31652 2009-11-21  Jim Meyering  <meyering@redhat.com>
31653
31654         c-stack: avoid "ignoring return value of `write'" warning
31655         * lib/c-stack.c: Include "ignore-value.h".
31656         (die): Explicitly ignore each write return value.
31657         * modules/c-stack (Depends-on): Add ignore-value.
31658
31659 2009-11-21  Bruno Haible  <bruno@clisp.org>
31660
31661         diffseq: reduce scope of variable 'best'.
31662         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31663         variable, earlier used for two different purposes.
31664
31665 2009-11-21  Jim Meyering  <meyering@redhat.com>
31666
31667         diffseq: remove useless assignment to "best"
31668         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31669         assignment.  At that point "best" is already guaranteed to be zero.
31670
31671 2009-11-20  Eric Blake  <ebb9@byu.net>
31672
31673         build: mention ftp redirector in release announcements
31674         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31675         values that used to come from cfg.mk; mention FTP redirect URL.
31676         * build-aux/announce-gen: Mention the mirror list.
31677         Suggested by Karl Berry.
31678
31679         nanosleep: improve port to mingw
31680         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31682         LIB_NANOSLEEP, but only when needed.
31683         * modules/select (Link): Document LIBSOCKET.
31684         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31685         enough.
31686
31687         nanosleep: work around cygwin bug
31688         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31689         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31690         bug.
31691         (getnow): Delete, not needed.
31692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31693         LIB_CLOCK_GETTIME.
31694         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31695         clock-time, gettime.
31696         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31697         bug.
31698         * modules/nanosleep-tests: New test.
31699         * tests/test-nanosleep.c: New file.
31700
31701         sleep: work around cygwin bug
31702         * lib/sleep.c (rpl_sleep): Work around the bug.
31703         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31704         (gl_PREREQ_SLEEP): Delete unused macro.
31705         * modules/sleep (Depends-on): Add verify.
31706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31707         * modules/unistd (Makefile.am): Substitute witness.
31708         * lib/unistd.in.h (sleep): Update prototype.
31709         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31710         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31711         * modules/sleep-tests (Depends-on): Check for alarm.
31712
31713 2009-11-20  Jim Meyering  <meyering@redhat.com>
31714
31715         maint.mk: improve sc_prohibit_magic_number_exit
31716         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31717         so it does not match uses like System.exit(1).
31718         Add comments showing how to correct all offenders.
31719
31720 2009-11-19  Eric Blake  <ebb9@byu.net>
31721
31722         xalloc-die-tests: add missing library
31723         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31724
31725         test-xvasprintf: silence compiler warnings
31726         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31727         empty string from gcc.
31728
31729 2009-11-19  Jim Meyering  <meyering@redhat.com>
31730
31731         xfreopen: new module, from coreutils
31732         * modules/xfreopen: New module.
31733         * lib/xfreopen.c: New file.
31734         * lib/xfreopen.h: New file.
31735         * MODULES.html.sh (File stream based Input/Output"): Add it.
31736
31737 2009-11-19  Eric Blake  <ebb9@byu.net>
31738
31739         manywarnings: depend on warnings
31740         * modules/manywarnings (Depends-on): Add warnings.
31741
31742         build: avoid compiler warnings
31743         * lib/select.c (rpl_select): Delete unused variable.
31744         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31745
31746 2009-11-18  Eric Blake  <ebb9@byu.net>
31747
31748         tests: avoid false negative with --with-packager
31749         * tests/test-version-etc.sh: Discard packager information.
31750         * tests/test-argp-version-etc-1.sh: Likewise.
31751         Reported by Mike Frysinger.
31752
31753         utimens: fix regression on Solaris
31754         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31755         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31756         can only change fd timestamps via futimesat.  Instead, use an
31757         additional witness macro to avoid BSD bug.
31758         Reported by Jim Meyering.
31759
31760 2009-11-17  Eric Blake  <ebb9@byu.net>
31761
31762         usleep: use it to simplify tests
31763         * modules/stat-time-tests (Depends-on): Add usleep.
31764         (configure.ac): Drop usleep check.
31765         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31766         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31767         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31768         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31769         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31770         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31771         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31772         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31773         Likewise.
31774         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31775         * tests/test-lchown.h (nap): Likewise.
31776         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31777         * tests/test-stat-time.c (nap): Likewise.
31778         * tests/test-utimens-common.h (nap): Update comments.
31779
31780         usleep: new module
31781         * modules/usleep: New file.
31782         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31783         * lib/usleep.c (usleep): Likewise.
31784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31785         * modules/unistd (Makefile.am): Substitute witnesses.
31786         * lib/unistd.in.h (usleep): Add declaration.
31787         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31788         * MODULES.html.sh (Date and time): Likewise.
31789         * modules/usleep-tests (Depends-on): New test.
31790         * tests/test-usleep.c: New file.
31791
31792         chown: work around OpenBSD bug
31793         * lib/chown.c (rpl_chown): Work around the bug.
31794         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31795         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31796         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31797         * modules/chown (Depends-on): Add stdbool.
31798         * modules/lchown (Depends-on): Likewise.
31799         * doc/posix-functions/chown.texi (chown): Document the bug.
31800         * doc/posix-functions/lchown.texi (lchown): Likewise.
31801         * tests/test-lchown.h (test_chown): Relax test.
31802
31803         mkstemp: avoid conflict with C++ keyword template
31804         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31805         * lib/mkostemp.c (mkostemp): Likewise.
31806         * lib/mkostemps.c (mkostemps): Likewise.
31807         * lib/mkstemp.c (mkstemp): Likewise.
31808         * lib/mkstemps.c (mkstemps): Likewise.
31809
31810         xalloc-die-tests: optimize
31811         * tests/test-xalloc-die.sh: Reduce number of processes.
31812
31813 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31814
31815         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31816         patch from ludo@gnu.org (Ludovic Courtès).
31817
31818 2009-11-17  Jim Meyering  <meyering@redhat.com>
31819
31820         version-etc: use proper license string
31821         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31822         * modules/version-etc-fsf: Likewise.
31823
31824 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31825
31826         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31827         printed to stdout.  Deal with EOL differences.
31828
31829 2009-11-17  Eric Blake  <ebb9@byu.net>
31830
31831         unsetenv: work around Solaris bug
31832         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31833         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31834         Reported by Jim Meyering.
31835
31836         vasnprintf: avoid compiler warnings
31837         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31838         variables.
31839         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31840
31841 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31842
31843         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31844         settings since xalloc-die is no longer the self test,
31845         xalloc-die.sh is.
31846
31847 2009-11-17  Jim Meyering  <meyering@redhat.com>
31848
31849         test-xalloc-die.sh: make the code agree with the commit log
31850         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31851         at the end, just in case you happen to have a test-xalloc-die
31852         program in some other PATH directory.
31853
31854         test-xalloc-die.sh: fix a portability bug
31855         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31856         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31857         Otherwise, argv[0] (as often seen in diagnostics) would be too
31858         system-dependent, sometimes with, and sometimes without the leading "./".
31859
31860         version-etc-fsf: relax license to LGPLv3+
31861         * modules/version-etc-fsf (License): Relax license.
31862
31863 2009-11-16  Eric Blake  <ebb9@byu.net>
31864
31865         xalloc-die-tests: avoid printing null pointer
31866         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31867         shell script.
31868         * tests/test-xalloc-die.c (program_name): Declare.
31869         * tests/test-xalloc-die.sh (tmpfiles): New file.
31870
31871         setenv, unsetenv: work around various bugs
31872         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31873         (setenv) [HAVE_SETENV]: Work around bugs.
31874         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31875         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31876         for bugs.
31877         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31878         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31880         * modules/stdlib (Makefile.am): Update substitutions.
31881         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31882         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31883         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31884         * modules/setenv-tests: New test.
31885         * modules/unsetenv-tests: Likewise.
31886         * tests/test-setenv.c: New file.
31887         * tests/test-unsetenv.c: Likewise.
31888
31889 2009-11-16  Jim Meyering  <meyering@redhat.com>
31890
31891         version-etc: relax license to LGPLv3+
31892         * modules/version-etc (License): Relax license.
31893
31894         better AC_REQUIRE expanded-before-required-warning avoidance
31895         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31896         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31897         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31898         which is no longer needed.
31899
31900 2009-11-16  Eric Blake  <ebb9@byu.net>
31901
31902         test-freading: clean up temporary file
31903         * tests/test-freading.c (main): Remove file on success, and use
31904         ASSERT more liberally.
31905         Reported by Jim Meyering.
31906
31907 2009-11-16  Jim Meyering  <meyering@redhat.com>
31908
31909         avoid new AC_REQUIRE expanded-before-required warnings
31910         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31911         merely using it.
31912         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31913         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31914
31915 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31916
31917         * tests/test-xalloc-die.c: New file.
31918         * modules/xalloc-die-tests: New file.
31919         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31920         XFAIL_TESTS so it can be appended by modules.
31921
31922 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31923
31924         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31925         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31926
31927 2009-11-14  Eric Blake  <ebb9@byu.net>
31928
31929         fnmatch: avoid compiler warning
31930         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31931         to silence compiler warning about mismatch signedness in ?:.
31932         Reported by Robert Millan.
31933
31934         intprops: add double-inclusion guard
31935         * lib/intprops.h: Allow idempotent includes.
31936         Suggested by Bruce Korb.
31937
31938         openat: detect Solaris fchownat bug
31939         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31940         penalizing glibc chownat when only lchownat is broken.
31941         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31942         trailing slash bugs.
31943         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31944         * modules/openat-tests (Files): Include more files.
31945         (Depends-on): Add mgetgroups, sleep, stat-time.
31946         (configure.ac): Add additional checks.
31947         (Makefile.am): Build new test.
31948         * tests/test-fchownat.c: New file.
31949
31950         lchown: detect Solaris and FreeBSD bug
31951         * lib/lchown.c (rpl_lchown): Work around bug.
31952         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31954         * modules/unistd (Makefile.am): Populate it.
31955         * lib/unistd.in.h (lchown): Update declaration.
31956         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31957         * modules/lchown-tests: New file.
31958         * tests/test-lchown.h (test_lchown): Likewise.
31959         * tests/test-lchown.c (main): Likewise.
31960
31961         chown: detect Solaris and FreeBSD bug
31962         * lib/chown.c (rpl_chown): Work around bug.
31963         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31964         (gl_PREREQ_CHOWN): Delete.
31965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31966         * modules/unistd (Makefile.am): Populate it.
31967         * lib/unistd.in.h (chown): Update declaration.
31968         * lib/lchown.c (chown): Update client.
31969         * modules/lchown (Depends-on): Add lstat.
31970         * doc/posix-functions/chown.texi (chown): Document the bug.
31971         * doc/posix-functions/getgroups.texi (getgroups): Document
31972         getgroups pitfall.
31973         * modules/chown-tests: New file.
31974         * tests/test-chown.h (test_chown): Likewise.
31975         * tests/test-chown.c (main): Likewise.
31976
31977 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31978
31979         gnulib-tool: correctly detect absence of m4 directories
31980         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31981
31982 2009-11-14  Jim Meyering  <meyering@redhat.com>
31983
31984         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31985         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31986
31987 2009-11-14  John W. Eaton  <jwe@gnu.org>
31988
31989         strftime.h: wrap funtion declaration in extern "C" block
31990         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31991
31992 2009-11-13  Eric Blake  <ebb9@byu.net>
31993
31994         getgroups: avoid compiler warning
31995         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31996
31997         getgroups: work around FreeBSD bug
31998         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31999         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32000         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32001         * tests/test-getgroups.c (main): Fix buffer overrun.
32002
32003         getgroups: avoid compilation failure
32004         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32005         * modules/getgroups (Depends-on): Add stdint.
32006
32007 2009-11-13  Jim Meyering  <meyering@redhat.com>
32008
32009         test-getgroups: avoid compilation failure
32010         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32011
32012 2009-11-13  Eric Blake  <ebb9@byu.net>
32013
32014         mgetgroups: new module, taken from coreutils
32015         * modules/mgetgroups: New file.
32016         * lib/mgetgroups.h: Likewise.
32017         * lib/mgetgroups.c (mgetgroups): Likewise.
32018         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32019         * MODULES.html.sh (Users and groups): Mention it.
32020
32021         getgroups: don't expose GETGROUPS_T to user
32022         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32023         an element at a time if GETGROUPS_T is wrong size.
32024         * lib/getugroups.h (getugroups): Change signature.
32025         * lib/unistd.in.h (getgroups): Likewise.
32026         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32027         signature needs fixing.
32028         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32029         AC_TYPE_GETGROUPS.
32030         * modules/group-member (Depends-on): Add getgroups.
32031         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32032         (group_member): Rely on getgroups replacement.
32033         * lib/getugroups.c (getugroups): Use gid_t.
32034         * tests/test-getgroups.c (main): Likewise.
32035         * NEWS: Mention the signature change.
32036         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32037         problem with signature.
32038         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32039         GETGROUPS_T is still useful for setgroups.
32040
32041         getgroups, getugroups: provide stubs for mingw
32042         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32043         * lib/getugroups.c (getugroups): Likewise.
32044         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32045         function.  Modernize replacement scheme.
32046         (gl_PREREQ_GETGROUPS): Delete.
32047         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32048         * modules/getgroups (configure.ac): Declare witness.
32049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32050         * modules/unistd (Depends-on): Substitute witness.
32051         * lib/unistd.in.h (getgroups): Declare replacement.
32052
32053         getgroups: avoid calling exit
32054         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32055         drop xalloc.
32056         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32057         dependencies.
32058         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32059         exiting, in the rare case of malloc failure.
32060
32061         getgroups: fix logic error
32062         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32063         has more than 20 groups.
32064         * modules/getgroups-tests: New test.
32065         * tests/test-getgroups.c: New file.
32066
32067 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32068
32069         * tests/test-base64.c: Improve.
32070
32071 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32072
32073         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32074         Blake <ebb9@byu.net>.
32075
32076 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32077
32078         * tests/test-xvasprintf.c: Add %s%s related checks.
32079
32080 2009-11-12  Eric Blake  <ebb9@byu.net>
32081
32082         version-etc: match standards.texi style
32083         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32084         and use <> only for URLs.
32085
32086 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32087
32088         fts: do not fail on a submount during traversal
32089         * lib/fts.c (fts_build): Read the stat info again after opening
32090         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32091         Original report at http://bugzilla.redhat.com/501848.
32092
32093 2009-11-12  Jim Meyering  <meyering@redhat.com>
32094
32095         bootstrap: sync from coreutils
32096         * build-aux/bootstrap (bootstrap_epilogue): New function.
32097         Use git_modules_config in one more place.  This make bootstrap's
32098         --gnulib-srcdir option more useful for testing.
32099
32100         bootstrap: generalize autoheader check
32101         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32102         AC_CONFIG_HEADERS.
32103
32104 2009-11-11  Eric Blake  <ebb9@byu.net>
32105
32106         mkfifoat: use new modules for Solaris and BSD bugs
32107         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32108         * lib/mkfifoat.c (mknodat): Split...
32109         * lib/mknodat.c (mknodat): ...into new file.
32110         * modules/mkfifoat (Files): Ship new file.
32111         (Depends-on): Add mkfifo, mknod.
32112         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32113         (Depends-on): Add symlink.
32114         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32115         redundant with test_mkfifo.h.
32116         (do_mkfifoat, do_mknodat): New helpers.
32117
32118         mknod: new module
32119         * modules/mknod: New file.
32120         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32121         * lib/mknod.c (mknod): Likewise.
32122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32123         defaults.
32124         * modules/sys_stat (Makefile.am): Substitute them.
32125         * lib/sys_stat.in.h (mknod): Declare replacement.
32126         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32127         Document it.
32128         * doc/posix-functions/mknod.texi (mknod): Likewise.
32129         * modules/mknod-tests: New test.
32130         * tests/test-mknod.c: Likewise.
32131
32132         mkfifo: new module
32133         * modules/mkfifo: New file.
32134         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32135         * lib/mkfifo.c (mkfifo): Likewise.
32136         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32137         defaults.
32138         * modules/sys_stat (Makefile.am): Substitute them.
32139         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32140         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32141         Document it.
32142         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32143         * modules/mkfifo-tests: New test.
32144         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32145         from test-mkfifoat.c.
32146         * tests/test-mkfifo.c: New file.
32147
32148         readlink: detect FreeBSD bug
32149         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32150         slash on symlink.
32151         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32152         * tests/test-readlink.h (test_readlink): Enhance test.
32153
32154         symlink: detect FreeBSD bug
32155         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32156         slash on symlink.
32157         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32158         * tests/test-symlink.h (test_symlink): Enhance test.
32159
32160 2009-11-10  Eric Blake  <ebb9@byu.net>
32161
32162         link: detect FreeBSD bug
32163         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32164         symlink.
32165         * doc/posix-functions/link.texi (link): Document the bug.
32166         * tests/test-link.h (test_link): Enhance test.
32167         * tests/test-linkat.c (main): Update caller.
32168
32169         unlink, remove: detect FreeBSD bug
32170         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32171         slash on symlink.
32172         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32173         * doc/posix-functions/remove.texi (remove): Likewise.
32174         * tests/test-unlink.h (test_unlink): Enhance test.
32175         * tests/test-remove.c (main): Likewise.
32176
32177 2009-11-09  Eric Blake  <ebb9@byu.net>
32178
32179         rename: detect FreeBSD bug
32180         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32181         slash on symlink.
32182         * modules/renameat-tests (Depends-on): Add filenamecat.
32183         * tests/test-rename.h (test_rename): Allow one more errno.
32184         * tests/test-renameat.c (main): Likewise.
32185         * doc/posix-functions/rename.texi (rename): Document the bug.
32186
32187         open: detect FreeBSD bug
32188         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32189         symlink.
32190         * doc/posix-functions/open.texi (open): Document the bug.
32191         * doc/posix-functions/utimes.texi (utimes): Likewise.
32192         * tests/test-open.h (test_open): Add parameters, and test symlink
32193         handling.
32194         * tests/test-open.c (main): Adjust caller.
32195         * tests/test-fcntl-safer.c (main): Likewise.
32196         * modules/open-tests (Depends-on): Add stdbool, symlink.
32197         * modules/fcntl-safer-tests (Depends-on): Likewise.
32198         * tests/test-openat.c (main): Add test-open tests.
32199
32200         stat: detect FreeBSD bug
32201         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32202         symlink.
32203         * doc/posix-functions/stat.texi (stat): Document the bug.
32204         * tests/test-stat.h (test_stat_func): Add argument.
32205         * tests/test-stat.c (main): Adjust caller.
32206         * tests/test-fstatat.c (main): Likewise.
32207         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32208         Reported by Jim Meyering.
32209
32210 2009-11-09  James Youngman  <jay@gnu.org>
32211
32212         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32213         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32214
32215 2009-11-08  Jim Meyering  <meyering@redhat.com>
32216
32217         utimens: remove invalid futimesat call
32218         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32219         It used the file descriptor of the target file as the DIR_FD
32220         parameter and NULL as the file name.  That caused failure with
32221         errno == EFAULT on FreeBSD-8.0-rc2
32222
32223 2009-11-07  Eric Blake  <ebb9@byu.net>
32224
32225         fflush, freadseek: use fseeko, not fseek
32226         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32227         (clear_ungetc_buffer): Avoid potential problems on large files.
32228         * lib/freadseek.c (freadseek): Likewise.
32229         * modules/freadseek (Depends-on): Add fseeko.
32230         * modules/fseek (configure.ac): Set a witness.
32231         * tests/test-fflush.c (main): Use fseeko.
32232         * tests/test-fpurge.c (fseek): Disable link warning.
32233         * tests/test-freadable.c (fseek): Likewise.
32234         * tests/test-freading.c (fseek): Likewise.
32235         * tests/test-fseeko.c (fseek): Likewise.
32236         * tests/test-ftell.c (fseek): Likewise.
32237         * tests/test-ftello.c (fseek): Likewise.
32238         * tests/test-fwritable.c (fseek): Likewise.
32239         * tests/test-fwriting.c (fseek): Likewise.
32240
32241 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32242
32243         * modules/memchr (Depends-on): Drop getpagesize dependency.
32244
32245 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32246
32247         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32248         Reported by Ludovic Courtès.
32249         * build-aux/pmccabe2html: Improve example usage.
32250         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32251
32252 2009-11-06  Jim Meyering  <meyering@redhat.com>
32253
32254         do-release-commit-and-tag: New module.
32255         Automate the release-commit and tag process.
32256         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32257         * modules/do-release-commit-and-tag: New file.
32258         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32259
32260 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32261
32262         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32263         because test-select.c uses inet_pton.
32264
32265 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32266
32267         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32268         GETADDRINFO_LIB.  Bump serial number.
32269         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32270         Suggested by Eric Blake <ebb9@byu.net>.
32271
32272 2009-11-05  Eric Blake  <ebb9@byu.net>
32273
32274         strtod: detect darwin bug
32275         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32276         Reported by Leo Davis.
32277
32278         freopen-safer: new module
32279         * modules/freopen-safer: New module.
32280         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32281         * lib/freopen-safer.c (freopen_safer): New file.
32282         * lib/stdio-safer.h (freopen_safer): New declaration.
32283         * lib/stdio--.h (freopen): New override.
32284         * MODULES.html.sh (File stream based Input/Output): Mention it.
32285         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32286         freopen-safer module.
32287         * doc/posix-functions/stderr.texi (stderr): Likewise.
32288         * doc/posix-functions/stdin.texi (stdin): Likewise.
32289         * doc/posix-functions/stdout.texi (stdout): Likewise.
32290         * modules/freopen-safer-tests: New test.
32291         * tests/test-reopen-safer.c: New file.
32292
32293 2009-11-05  Jim Meyering  <meyering@redhat.com>
32294
32295         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32296         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32297
32298 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32299
32300         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32301
32302 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32303
32304         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32305
32306 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32307
32308         Fix link error.
32309         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32310         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32311
32312 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32313
32314         * tests/test-func.c: Also test value of __func__.
32315
32316 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32317
32318         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32319         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32320
32321 2009-11-05  Bruno Haible  <bruno@clisp.org>
32322
32323         Fix link error.
32324         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32325         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32326         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32327
32328 2009-11-05  Bruno Haible  <bruno@clisp.org>
32329
32330         Tests for module 'inet_pton'.
32331         * modules/inet_pton-tests: New file.
32332         * tests/test-inet_pton.c: New file.
32333
32334 2009-11-05  Bruno Haible  <bruno@clisp.org>
32335
32336         Tests for module 'inet_ntop'.
32337         * modules/inet_ntop-tests: New file.
32338         * tests/test-inet_ntop.c: New file.
32339
32340 2009-11-04  Eric Blake  <ebb9@byu.net>
32341
32342         stdlib-safer: wrap all mkstemp variants
32343         * modules/mkostemp (configure.ac): Set witness.
32344         * modules/mkostemps (configure.ac): Likewise.
32345         * modules/mkstemps (configure.ac): Likewise.
32346         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32347         (mkstemps_safer): Wrap more functions.
32348         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32349         wrapping.
32350         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32351         (mkstemps_safer): Implement the wrappers.
32352
32353         mkstemps, mkostemps: new modules
32354         * modules/mkostemps: New module.
32355         * modules/mkstemps: Likewise.
32356         * lib/mkostemps.c (mkostemps): New file.
32357         * lib/mkstemps.c (mkstemps): Likewise.
32358         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32359         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32361         * modules/stdlib (Makefile.am): Substitute them.
32362         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32363         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32364         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32365         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32366         * MODULES.html.sh (File system functions): Mention them.
32367
32368         tempname: resync from glibc
32369         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32370         same values for __GT_FILE as glibc.  Abort even when assertions
32371         are disabled.
32372         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32373         match its value otherwise.  Allow idempotent inclusion.
32374         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32375         * lib/mkostemp.c (mkostemp): Likewise.
32376         * lib/mkstemp.c (mkstemp): Likewise.
32377         * lib/tmpfile.c (tmpfile): Likewise.
32378         * NEWS: Document this.
32379
32380         utimens: fix use of futimens on older Linux
32381         * lib/utimens.c (fdutimens): Use updated, rather than original,
32382         timespec to avoid bug in older Linux kernel.
32383         Reported by Simon Josefsson.
32384
32385 2009-11-04  Bruno Haible  <bruno@clisp.org>
32386
32387         Make num_processors more flexible and consistent.
32388         * lib/nproc.h (enum nproc_query): New type.
32389         (num_processors): Add a 'query' argument.
32390         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32391         (num_processors): Add a 'query' argument. Test the value of the
32392         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32393         mingw, count the number of CPUs available for the current process.
32394         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32395         Check for sched_getaffinity and sched_getaffinity_np.
32396         * modules/nproc (Depends-on): Add c-ctype, extensions.
32397         * NEWS: Mention the change.
32398
32399 2009-11-03  Bruno Haible  <bruno@clisp.org>
32400
32401         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32402
32403 2009-11-03  Jim Meyering  <meyering@redhat.com>
32404
32405         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32406         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32407         if it is defined.
32408
32409 2009-11-02  Eric Blake  <ebb9@byu.net>
32410
32411         mktime, timegm: share common declaration
32412         * lib/mktime-internal.h: New file.
32413         * lib/mktime.c: Use it rather than open-coding a declaration.
32414         * lib/timegm.c: Likewise.
32415         * modules/mktime (Files): Ship it.
32416         * modules/timegm (Files): Likewise.
32417         Suggested by Bruno Haible.
32418
32419         test-update-copyright: update test to match script changes
32420         * tests/test-update-copyright.sh: Avoid hard-coding perl
32421         location.  Don't update *.bak created by earlier runs.
32422
32423 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32424             Simon Josefsson  <simon@josefsson.org>
32425             Bruno Haible  <bruno@clisp.org>
32426
32427         Fix link error on Solaris 8.
32428         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32429         also in libnsl. Define also INET_PTON_LIB.
32430         * modules/inet_pton (Link): New section.
32431
32432 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32433             Bruno Haible  <bruno@clisp.org>
32434
32435         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32436         * modules/inet_ntop (Link): New section.
32437         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32438
32439 2009-11-02  Eric Blake  <ebb9@byu.net>
32440
32441         maint: avoid compiler warnings in m4 macros
32442         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32443         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32444
32445 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32446
32447         * m4/pmccabe2html.m4: Remove file.
32448         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32449         function.  Change maintainer.
32450         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32451         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32452         Courtès).
32453
32454 2009-10-31  Eric Blake  <ebb9@byu.net>
32455
32456         fseeko: fix m4 regression
32457         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32458         regression from 2009-10-27.
32459         Reported by Ralf Wildenhues.
32460
32461 2009-10-31  Jim Meyering  <meyering@redhat.com>
32462
32463         inttostr: aesthetics and improved (compile-time) safety
32464         Define inttype_is_signed rather than inttype_is_unsigned,
32465         since the sole use is via "#if inttype_is_signed".
32466         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32467         inttype_is_unsigned.
32468         * lib/offtostr.c (inttype_is_signed): Likewise.
32469         * lib/uinttostr.c (inttype_is_signed): Likewise.
32470         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32471         * lib/inttostr.c (inttostr): Use verify to cross-check the
32472         inttype_is_signed value and the signedness of the actual type.
32473         * modules/inttostr (Depends-on): Add verify.
32474
32475 2009-10-30  Eric Blake  <ebb9@byu.net>
32476
32477         build: avoid compiler warnings
32478         * lib/fchmodat.c (lchmod): Mark unused variables.
32479         * lib/getopt.c (_getopt_initialize): Likewise.
32480         * lib/mktime.c (__mktime_internal): Provide prototype.
32481         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32482         older gcc that do not understand #pragma GCC diagnostic.
32483         * lib/uinttostr.c (inttype_is_unsigned): Define.
32484         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32485
32486 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32487
32488         stat: fix compilation on AIX
32489         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32490         only see struct stat64.
32491
32492 2009-10-30  Eric Blake  <ebb9@byu.net>
32493
32494         exclude: make more robust
32495         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32496         rather than masking a coding bug.
32497         Suggested by Bruno Haible.
32498
32499 2009-10-30  Jim Meyering  <meyering@redhat.com>
32500
32501         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32502         Rather than putting #!/usr/bin/perl on the first line,
32503         start with a variant of what's recommended by "man perlrun" that
32504         invokes the first "perl" program from your shell's search path.
32505         * build-aux/gitlog-to-changelog: Replace #!... as above.
32506         Add a "Local Variables" perl mode setting.
32507         Prompted by a patch from Ludovic Courtès.
32508         Improved by Eric Blake.
32509         * build-aux/useless-if-before-free: Likewise.
32510         * build-aux/announce-gen: Likewise.
32511         * build-aux/update-copyright: Likewise.
32512
32513 2009-10-29  Eric Blake  <ebb9@byu.net>
32514
32515         filenamecat-lgpl: adjust clients
32516         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32517         filenamecat.
32518         * modules/renameat (Depends-on): Likewise.
32519
32520         filenamecat: split into filenamecat-lgpl
32521         * modules/filenamecat-lgpl: New module.
32522         * modules/filenamecat (Files): Move library-safe files into
32523         filenamecat-lgpl.
32524         (Depends-on): Add filenamecat-lgpl.
32525         (configure.ac): Declare witness.
32526         * lib/filenamecat.h (file_name_concat): Only declare when using
32527         GPL module.
32528         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32529         Move...
32530         * lib/filenamecat-lgpl.c: ...into new file.
32531         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32532         (gl_FILE_NAME_CONCAT): Use it.
32533         * MODULES.html.sh (File system functions): Mention new module.
32534
32535         argp: avoid memory leak
32536         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32537         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32538         base_name, since the latter malloc()s and can call exit().
32539         Leak introduced 2006-07-03.
32540
32541         dirname-lgpl: adjust clients that don't need full dirname
32542         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32543         * modules/filenamecat (Depends-on): Likewise.
32544         * modules/linkat (Depends-on): Likewise.
32545         * modules/mkancesdirs (Depends-on): Likewise.
32546         * modules/mkdir (Depends-on): Likewise.
32547         * modules/openat (Depends-on): Likewise.
32548         * modules/savewd (Depends-on): Likewise.
32549         * modules/rename (Depends-on): Likewise.
32550         (License): Relax license.
32551         * modules/mkdir-tests (Depends-on): Drop progname.
32552         (Makefile.am): Delete unneeded LDADD.
32553         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32554
32555         dirname: split into dirname-lgpl
32556         * modules/dirname-lgpl: New module.
32557         * modules/dirname (Files): Move library-safe files into
32558         dirname-lgpl.
32559         (Depends-on): Add dirname-lgpl.
32560         (configure.ac): Declare witness.
32561         * modules/double-slash-root (License): Relax license.
32562         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32563         module.
32564         * lib/dirname.c (dir_len, mdir_name): Move...
32565         * lib/dirname-lgpl.c: ...into new file.
32566         * lib/basename.c (last_component, base_len): Move...
32567         * lib/basename-lgpl.c: ...into new file.
32568         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32569         (gl_DIRNAME): Use it.
32570         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32571         Mention new module.
32572         * modules/dirname-tests (Depends-on): Add progname.
32573         * tests/test-dirname.c (program_name): Delete.
32574
32575         mkdir: make safe for libraries
32576         * modules/mkdir (Depends-on): Drop xalloc.
32577         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32578         exit.
32579
32580         tests: avoid some compiler warnings
32581         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32582         literals.
32583         * tests/test-memchr.c (main): Avoid type mismatch.
32584         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32585         * tests/test-base64.c (main): Likewise.
32586         * tests/test-getdelim.c (main): Likewise.
32587         * tests/test-gethostname.c (main): Likewise.
32588         * tests/test-getline.c (main): Likewise.
32589         * tests/test-netinet_in.c (main): Likewise.
32590         * tests/test-select.c (open_server_socket, main): Likewise.
32591         * tests/test-select-stdin.c (main): Likewise.
32592         * tests/test-sockets.c (main): Likewise.
32593         * tests/test-strsignal.c (main): Likewise.
32594         * tests/test-sys_select.c (main): Likewise.
32595         * tests/test-sys_socket.c (main): Likewise.
32596         * tests/test-u64.c (main): Likewise.
32597         * tests/test-xfprintf-posix.c (main): Likewise.
32598         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32599
32600         sockets: avoid compiler warning
32601         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32602
32603         maint: detect usage(1) and other suspicious exits
32604         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32605
32606 2009-10-29  Jim Meyering  <meyering@redhat.com>
32607
32608         timespec: long-to-int truncation could make timespec_cmp malfunction
32609         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32610         a multiple of 2^32 nanoseconds as no difference.
32611
32612 2009-10-28  Jim Meyering  <meyering@redhat.com>
32613
32614         fprintftime: wrap macro code argument in "do {...} while(0)"
32615         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32616         cpy macro must be a statement that can be followed by a semicolon.
32617         Now that the else clause contains a comment and is hence longer
32618         than one line, I require curly braces.  That in turn requires
32619         that we wrap this code block in the standard do...while(0).
32620
32621         fprintftime: remove stray semicolon from previous change
32622         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32623
32624         fprintftime: avoid a warning about ignored fwrite return value
32625         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32626         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32627         that is unsafe.
32628         * modules/fprintftime (Depends-on): Add ignore-value.
32629
32630         exclude: avoid an unwarranted warning
32631         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32632
32633 2009-10-27  Eric Blake  <ebb9@byu.net>
32634
32635         fseek: avoid compilation failure when fflush is replaced
32636         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32637         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32638         module is in use.
32639         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32640         module is not in use; since REPLACE_FSEEK worked otherwise.
32641         (GNULIB_FTELLO): Likewise for ftell.
32642         Reported by Ian Beckwith and others.
32643
32644 2009-10-27  Bruno Haible  <bruno@clisp.org>
32645
32646         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32647         Reported by Jim Meyering.
32648
32649 2009-10-27  Jim Meyering  <jim@meyering.net>
32650             Bruno Haible  <bruno@clisp.org>
32651
32652         Avoid warning despite dropping the return value of fwrite.
32653         * lib/unicodeio.c: Include ignore-value.h.
32654         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32655         * modules/unicodeio (Depends-on): Add ignore-value.
32656
32657 2009-10-26  Eric Blake  <ebb9@byu.net>
32658
32659         areadlinkat: fix fallback path
32660         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32661         pointer and zero.
32662
32663 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32664
32665         Use a better IO block size for modern systems
32666         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32667         * lib/md2.c: Likewise.
32668         * lib/md4.c: Likewise.
32669         * lib/md5.c: Likewise.
32670         * lib/sha1.c: Likewise.
32671         * lib/sha256.c: Likewise.
32672         * lib/sha512.c: Likewise.
32673
32674 2009-10-22  Eric Blake  <ebb9@byu.net>
32675
32676         tests: avoid several compiler warnings
32677         * tests/test-getcwd.c (main): Avoid buffer underflow.
32678         * tests/test-getdate.c (main): String literals are not safe with
32679         putenv, so use setenv.  Declare unused argument.
32680         * modules/getdate-tests (Depends-on): Add setenv.
32681         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32682         problems with string literals in char *.
32683         * tests/test-hash.c (main): Avoid shadowing declaration.
32684         (insert_new): Treat string literals as char const *.
32685         * tests/test-getopt.h (test_getopt): Likewise.
32686         (getopt_loop): Alter types to minimize casting elsewhere.
32687         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32688         (test_getopt_long_posix): Likewise.
32689         (do_getopt_long): Add wrapper to minimize casting.
32690         * tests/test-atexit.c (clear_temp_file): Use void.
32691         * tests/test-areadlink-with-size.c (main): Declare unused
32692         arguments.
32693         * tests/test-areadlink.c (main): Likewise.
32694         * tests/test-areadlinkat-with-size.c (main): Likewise.
32695         * tests/test-areadlinkat.c (main): Likewise.
32696         * tests/test-canonicalize-lgpl.c (main): Likewise.
32697         * tests/test-canonicalize.c (main): Likewise.
32698         * tests/test-dirent-safer.c (main): Likewise.
32699         * tests/test-dirname.c (main): Likewise.
32700         * tests/test-dup2.c (main): Likewise.
32701         * tests/test-fchdir.c (main): Likewise.
32702         * tests/test-fcntl-h.c (main): Likewise.
32703         * tests/test-fcntl-safer.c (main): Likewise.
32704         * tests/test-fdopendir.c (main): Likewise.
32705         * tests/test-fdutimensat.c (main): Likewise.
32706         * tests/test-fflush.c (main): Likewise.
32707         * tests/test-filenamecat.c (main): Likewise.
32708         * tests/test-filevercmp.c (main): Likewise.
32709         * tests/test-fopen-safer.c (main): Likewise.
32710         * tests/test-fopen.c (main): Likewise.
32711         * tests/test-fpending.c (main): Likewise.
32712         * tests/test-fpurge.c (main): Likewise.
32713         * tests/test-freading.c (main): Likewise.
32714         * tests/test-fstatat.c (main): Likewise.
32715         * tests/test-fsync.c (main): Likewise.
32716         * tests/test-futimens.c (main): Likewise.
32717         * tests/test-getndelim2.c (main): Likewise.
32718         * tests/test-gettimeofday.c (main): Likewise.
32719         * tests/test-getopt.c (main): Likewise.
32720         * tests/test-i-ring.c (main): Likewise.
32721         * tests/test-inttypes.c (main): Likewise.
32722         * tests/test-link.c (main): Likewise.
32723         * tests/test-lstat.c (main): Likewise.
32724         * tests/test-math.c (main): Likewise.
32725         * tests/test-md5.c (main): Likewise.
32726         * tests/test-memchr2.c (main): Likewise.
32727         * tests/test-memrchr.c (main): Likewise.
32728         * tests/test-mkdir.c (main): Likewise.
32729         * tests/test-mkdirat.c (main): Likewise.
32730         * tests/test-mkfifoat.c (main): Likewise.
32731         * tests/test-open.c (main): Likewise.
32732         * tests/test-openat-safer.c (main): Likewise.
32733         * tests/test-openat.c (main): Likewise.
32734         * tests/test-quotearg.c (main): Likewise.
32735         * tests/test-rawmemchr.c (main): Likewise.
32736         * tests/test-readlink.c (main): Likewise.
32737         * tests/test-remove.c (main): Likewise.
32738         * tests/test-rename.c (main): Likewise.
32739         * tests/test-renameat.c (main): Likewise.
32740         * tests/test-rmdir.c (main): Likewise.
32741         * tests/test-sha1.c (main): Likewise.
32742         * tests/test-signal.c (main): Likewise.
32743         * tests/test-sigaction.c (main): Likewise.
32744         * tests/test-stat.c (main): Likewise.
32745         * tests/test-stat-time.c (main): Likewise.
32746         * tests/test-stddef.c (main): Likewise.
32747         * tests/test-stdint.c (main): Likewise.
32748         * tests/test-stdio.c (main): Likewise.
32749         * tests/test-stdlib.c (main): Likewise.
32750         * tests/test-strchrnul.c (main): Likewise.
32751         * tests/test-strerror.c (main): Likewise.
32752         * tests/test-string.c (main): Likewise.
32753         * tests/test-strtod.c (main): Likewise.
32754         * tests/test-strverscmp.c (main): Likewise.
32755         * tests/test-symlink.c (main): Likewise.
32756         * tests/test-symlinkat.c (main): Likewise.
32757         * tests/test-sys_stat.c (main): Likewise.
32758         * tests/test-sys_time.c (main): Likewise.
32759         * tests/test-time.c (main): Likewise.
32760         * tests/test-unistd.c (main): Likewise.
32761         * tests/test-unlink.c (main): Likewise.
32762         * tests/test-unlinkat.c (main): Likewise.
32763         * tests/test-utimens.c (main): Likewise.
32764         * tests/test-utimensat.c (main): Likewise.
32765         * tests/test-version-etc.c (main): Likewise.
32766         * tests/test-wchar.c (main): Likewise.
32767         * tests/test-wctype.c (main): Likewise.
32768         * tests/test-xprintf-posix.c (main): Likewise.
32769         * tests/test-posixtm.c (main): Likewise.
32770         (STREQ): Delete unused macro.
32771         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32772         shadowed variables.
32773         * tests/test-memchr.c (main): Likewise.
32774
32775 2009-10-21  Eric Blake  <ebb9@byu.net>
32776
32777         areadlinkat: avoid failure on older glibc
32778         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32779         rather than mis-comparing 0 against FUNC_RESULT of char*.
32780
32781 2009-10-21  Bruno Haible  <bruno@clisp.org>
32782
32783         * modules/stpncpy (License): Relicense under LGPLv2+.
32784         Reported by David Lutterkort <lutter@redhat.com>.
32785
32786 2009-10-20  Eric Blake  <ebb9@byu.net>
32787
32788         utimensat: work around Solaris 9 bug
32789         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32790         has trailing slash bugs.
32791         * tests/test-lutimens.h (test_lutimens): Enhance test.
32792         * tests/test-utimens.h (test_utimens): Likewise.
32793         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32794         * doc/posix-functions/utimes.texi (utimes): Likewise.
32795         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32796         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32797         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32798         * doc/posix-functions/futimens.texi (futimens): Likewise.
32799
32800         fdutimensat: new module
32801         * modules/fdutimensat: New file.
32802         * lib/fdutimensat.c (fdutimensat): Likewise.
32803         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32804         * MODULES.html.sh (File system functions): Mention module.
32805         * modules/fdutimensat-tests: New test.
32806         * tests/test-fdutimensat.c: Likewise.
32807
32808         doc: regenerate INSTALL
32809         * doc/INSTALL: Reflect recent autoconf update.
32810         * doc/INSTALL.ISO: Likewise.
32811         * doc/INSTALL.UTF-8: Likewise.
32812
32813 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32814
32815         acl: warn if ACL support is not detected
32816         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32817
32818 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32819
32820         * lib/nproc.h: Add extern "C" block for C++.
32821
32822 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32823             Bruno Haible  <bruno@clisp.org>
32824
32825         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32826         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32827         * doc/posix-functions/isalpha.texi: Likewise.
32828         * doc/posix-functions/isblank.texi: Likewise.
32829         * doc/posix-functions/iscntrl.texi: Likewise.
32830         * doc/posix-functions/isdigit.texi: Likewise.
32831         * doc/posix-functions/isgraph.texi: Likewise.
32832         * doc/posix-functions/islower.texi: Likewise.
32833         * doc/posix-functions/isprint.texi: Likewise.
32834         * doc/posix-functions/ispunct.texi: Likewise.
32835         * doc/posix-functions/isspace.texi: Likewise.
32836         * doc/posix-functions/isupper.texi: Likewise.
32837         * doc/posix-functions/isxdigit.texi: Likewise.
32838
32839 2009-10-18  Bruno Haible  <bruno@clisp.org>
32840
32841         Tests for module 'isblank'.
32842         * modules/isblank-tests: New file.
32843         * tests/test-isblank.c: New file.
32844
32845         New module 'isblank'.
32846         * lib/isblank.c: New file.
32847         * m4/isblank.m4: New file.
32848         * modules/isblank: New file.
32849         * doc/posix-functions/isblank.texi: Mention the new module.
32850
32851 2009-10-18  Bruno Haible  <bruno@clisp.org>
32852
32853         New module 'ctype'.
32854         * lib/ctype.in.h: New file.
32855         * m4/ctype.m4: New file.
32856         * modules/ctype: New file.
32857         * doc/posix-headers/ctype.texi: Mention the new module.
32858
32859 2009-10-18  Jim Meyering  <meyering@redhat.com>
32860
32861         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32862         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32863         right after its initialization, rather than farther down.
32864         Keeping these in close proximity makes it easier to ensure
32865         that each such variable is initialized.  E.g.,
32866
32867             LIB_CLOCK_GETTIME=
32868             AC_SUBST([LIB_CLOCK_GETTIME])
32869
32870         This change also increments these serial numbers.
32871         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32872         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32874
32875 2009-10-18  Bruno Haible  <bruno@clisp.org>
32876
32877         Don't let environment variables perturb build.
32878         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32879         (gl_PREREQ_GETHRXTIME): ... not here.
32880
32881 2009-10-18  Bruno Haible  <bruno@clisp.org>
32882
32883         Avoid symlink attack in localcharset module.
32884         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32885         (O_NOFOLLOW): Define fallback.
32886         (get_charset_aliases): Don't open the file if it is a symbolic link.
32887         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32888         gl_FCNTL_H.
32889         (gl_FCNTL_H): Require it.
32890         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32891         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32892         Reported by Fergal Glynn <fglynn@veracode.com>.
32893
32894 2009-10-18  Bruno Haible  <bruno@clisp.org>
32895
32896         Implement nproc for mingw.
32897         * lib/nproc.c: Include <windows.h>
32898         (num_processors): On native Windows platforms, try GetSystemInfo.
32899
32900 2009-10-18  Bruno Haible  <bruno@clisp.org>
32901
32902         Implement nproc for IRIX.
32903         * lib/nproc.c: Include <sys/sysmp.h>.
32904         (num_processors): On IRIX systems, try sysmp.
32905         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32906
32907 2009-10-18  Bruno Haible  <bruno@clisp.org>
32908
32909         Implement nproc for HP-UX.
32910         * lib/nproc.c: Include <sys/pstat.h>
32911         (num_processors): On HP-UX systems, try pstat_getdynamic.
32912         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32913         pstat_getdynamic.
32914
32915 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32916             Bruno Haible  <bruno@clisp.org>
32917
32918         Implement nproc for NetBSD, OpenBSD.
32919         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32920         (ARRAY_SIZE): New macro.
32921         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32922         * m4/nproc.m4: New file.
32923         * modules/nproc (Files): Add m4/nproc.m4.
32924         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32925         (Makefile.am): Instead, augment lib_SOURCES.
32926
32927 2009-10-18  Bruno Haible  <bruno@clisp.org>
32928
32929         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32930         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32931         sys/param.h.
32932
32933 2009-10-16  Eric Blake  <ebb9@byu.net>
32934
32935         utimensat: new module
32936         * modules/utimensat: New file.
32937         * lib/utimensat.c (utimensat): Likewise.
32938         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32939         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32940         so we can work around Linux bugs.
32941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32942         * modules/sys_stat (Makefile.am): Substitute them.
32943         * lib/sys_stat.in.h (utimensat): Declare it.
32944         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32945         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32946         * modules/utimensat-tests: New test.
32947         * tests/test-utimensat.c: Likewise.
32948
32949         utimens: let lutimens work on non-symlinks
32950         * lib/utimens.c (lutimens): Fall back to utimens rather than
32951         failing with ENOSYS, when file is not a symlink.
32952         (utimens): Reduce redirection.
32953         * tests/test-lutimens.h (test_lutimens): Update test to cover
32954         non-symlinks.
32955         * tests/test-utimens.h (test_utimens): Update test to cover
32956         symlinks.
32957         * tests/test-utimens.c (main): Update caller.
32958
32959         utimens: cache whether utimensat syscall works
32960         * lib/utimens.c (utimensat_works_really): New cache variable.
32961         (fdutimens, lutimens): Use it to avoid failing syscall.
32962
32963         test-stat-time, test-utimens: improve portability
32964         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32965         ext4 on alpha, and for cygwin.
32966         * tests/test-utimens-common.h: New file.
32967         (nap): Factor delays into single function.
32968         * tests/test-lutimens.h (test_lutimens): Use new header.
32969         * tests/test-futimens.h (test_futimens): Likewise.
32970         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32971         timestamps to occur from same machine, as was done previously for
32972         test_utimens.
32973         * modules/utimens-tests (Files): Ship new file.
32974         * modules/futimens-tests (Files): Likewise.
32975         Reported in part by Jim Meyering.
32976
32977         sys_stat: sort replacement declarations
32978         * lib/sys_stat.in.h: Sort declarations.
32979         * lib/futimens.c (futimens): Fix typo.
32980
32981 2009-10-15  Jim Meyering  <meyering@redhat.com>
32982
32983         don't let environment settings perturb build
32984         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32985         could cause a configure-time and/or build-time malfunction.
32986         Typically, a configure-time function-in-library test is performed
32987         via code like this:
32988
32989           LIB_VAR=
32990           AC_SUBST([LIB_VAR])
32991           prefix_saved_LIBS=$LIBS
32992             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32993                        [test "$ac_cv_search_FUNC" = "none required" ||
32994                         LIB_VAR=$ac_cv_search_FUNC])
32995           LIBS=$prefix_saved_LIBS
32996
32997         However, in each of the files affected by this change, the LIB_VAR=
32998         initialization was omitted.  Thus, when set in the environment, its
32999         value would propagate into generated Makefiles when FUNC is not found
33000         in LIB_NAME.
33001         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33002         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33004
33005 2009-10-14  Eric Blake  <ebb9@byu.net>
33006
33007         fchdir: avoid infinite recursion in mingw
33008         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33009         recursing.
33010
33011         test-stat-time: port to mingw
33012         * tests/test-stat-time.c (force_unlink): Return a value.
33013         (test_ctime) [W32]: Fix compilation error.
33014         (nap): Don't call usleep with too large an argument.  Use
33015         force_unlink.
33016         * doc/pastposix-functions/usleep.texi (usleep): Document the
33017         portability issue.
33018
33019 2009-10-13  Jim Meyering  <meyering@redhat.com>
33020
33021         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33022         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33023         * modules/pipe-filter-ii: Likewise.
33024         * modules/sys_socket-tests: Likewise.
33025         * modules/tsearch-tests: Likewise.
33026         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33027         (check): Depend on it.
33028
33029 2009-10-12  Eric Blake  <ebb9@byu.net>
33030
33031         utimens-tests: port to NFS file systems
33032         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33033         comparisons to avoid spurious failures from timestamp drift
33034         between NFS machines.
33035
33036 2009-10-12  Eric Blake  <ebb9@byu.net>
33037
33038         stat-time-tests: minor cleanups
33039         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33040         * tests/test-stat-time.c (nap): Separate assignment from call.
33041         Suggested by Paolo Bonzini and Bruno Haible.
33042
33043         sys_stat: guarantee struct timespec
33044         * lib/sys_stat.in.h (includes): Always include <time.h>
33045         * modules/sys_stat (Depends-on): Add time.
33046         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33047         mode_t permission values.
33048         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33049         get at subsecond timestamps.
33050
33051 2009-10-10  Eric Blake  <ebb9@byu.net>
33052
33053         futimens: new module
33054         * modules/futimens: New file.
33055         * lib/futimens.c (futimens): Likewise.
33056         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33057         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33058         we can work around Linux bugs.
33059         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33060         * modules/sys_stat (Makefile.am): Substitute them.
33061         * lib/sys_stat.in.h (futimens): Declare it.
33062         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33063         * doc/posix-functions/futimens.texi (futimens): Likewise.
33064         * modules/futimens-tests: New test.
33065         * tests/test-futimens.c: Likewise.
33066
33067         utimens: introduce fdutimens
33068         * lib/utimens.h (fdutimens): New prototype.
33069         * lib/utimens.c (gl_futimens): Move guts...
33070         (fdutimens): ...to new interface.
33071         * tests/test-utimens.c (do_fdutimens): Use it.
33072
33073         utimens: add UTIME_NOW and UTIME_OMIT support
33074         * lib/utimens.c (validate_timespec, update_timespec): New helper
33075         functions.
33076         (gl_futimens, lutimens): Use them.
33077         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33078         stdbool, sys_stat.
33079         (Link): Mention resulting library dependency.
33080         * modules/utimecmp (Link): Likewise.
33081         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33082         (Makefile.am): Pick up library dependency.
33083         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33084         definition.
33085         * tests/test-sys_stat.c: Test the definitions.
33086         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33087         * NEWS: Document library dependency.
33088
33089         utimecmp: support symlink timestamps
33090         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33091         hashing when possible.  Use pathconf when available.
33092         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33093         * modules/utimecmp (Depends-on): Add lstat.
33094
33095         utimens: add lutimens interface
33096         * lib/utimens.c (lutimens): New function.
33097         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33098         * lib/utimens.h (lutimens): Declare new interface.
33099         * tests/test-utimens.c (main): Enhance test.
33100         * tests/test-lutimens.h (test_lutimens): New file.
33101         * modules/utimens-tests (Files): Distribute it.
33102         (Depends-on): Add symlink.
33103         (configure.ac): Check for usleep.
33104
33105         utimens: validate futimens usage
33106         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33107         fewer syscalls on failure later on.  Avoid compiler warning on
33108         mingw.
33109         * modules/utimens (Depends-on): Add dup2.
33110
33111         utimens: add test
33112         * modules/utimens-tests: New test.
33113         * tests/test-utimens.h: New file.
33114         * tests/test-futimens.h: Likewise.
33115         * tests/test-utimens.c: Likewise.
33116
33117         doc: mention timestamp portability issues
33118         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33119         instead.
33120         * doc/posix-functions/utime.texi (utime): Likewise.
33121         * doc/posix-functions/utimes.texi (utimes): Likewise.
33122         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33123         instead.
33124         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33125         module.
33126         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33127         Mention weakness with symlink timestamps.
33128         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33129         to utimensat/futimens instead.
33130         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33131
33132         test-dup2: enhance test
33133         * tests/test-dup2.c (main): Also check AT_FDCWD.
33134
33135         test-stat-time: avoid more spurious failures
33136         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33137         xfs; and avoid race if the two timestamps cross quantization edge.
33138
33139         relocatable: prefer 'file system' over 'filesystem'
33140         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33141         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33142         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33143         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33144         * lib/relocatable.c (compute_curr_prefix): Likewise.
33145
33146 2009-10-10  Jim Meyering  <meyering@redhat.com>
33147
33148         stat-time-tests: check for the usleep function
33149         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33150
33151 2009-10-10  Bruno Haible  <bruno@clisp.org>
33152
33153         * modules/xnanosleep: Put the Link section after the Include section.
33154
33155 2009-10-09  Eric Blake  <ebb9@byu.net>
33156
33157         dup2: work around FreeBSD 6.1 bug
33158         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33159         * doc/posix-functions/dup2.texi (dup2): Document it.
33160         Reported by Nelson H. F. Beebe and Jim Meyering.
33161
33162         test-stat-time: port to buggy NFS clients
33163         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33164         (test_ctime): Also skip test if mtime and ctime are skewed.
33165
33166         maint: prefer 'file system' over 'filesystem'
33167         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33168         * doc/posix-functions/lstat.texi (lstat): Likewise.
33169         * lib/file-has-acl.c (file_has_acl): Likewise.
33170         * lib/fwriteerror.c [TEST]: Likewise.
33171         * tests/test-areadlink.h (test_areadlink): Likewise.
33172         * tests/test-areadlinkat-with-size.c (main): Likewise.
33173         * tests/test-areadlinkat.c (main): Likewise.
33174         * tests/test-canonicalize-lgpl.c (main): Likewise.
33175         * tests/test-canonicalize.c (main): Likewise.
33176         * tests/test-fstatat.c (main): Likewise.
33177         * tests/test-linkat.c (main): Likewise.
33178         * tests/test-lstat.h (test_lstat_func): Likewise.
33179         * tests/test-mkdir.h (test_mkdir): Likewise.
33180         * tests/test-readlink.h (test_readlink): Likewise.
33181         * tests/test-remove.c (main): Likewise.
33182         * tests/test-rename.h (test_rename): Likewise.
33183         * tests/test-renameat.c (main): Likewise.
33184         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33185         * tests/test-symlink.h (test_symlink): Likewise.
33186         * tests/test-symlinkat.c (main): Likewise.
33187         * tests/test-unlink.h (test_unlink_func): Likewise.
33188         * tests/test-unlinkat.c (main): Likewise.
33189
33190         maint: make realtime library usage explicit
33191         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33192         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33193         * modules/settime (Link): Likewise.
33194         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33195
33196         test-stat-time: speed up execution
33197         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33198         warning on mingw.
33199         (nap): New helper function.
33200         (prepare_test): Use it to reduce sleep time.
33201         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33202         execution.
33203         * modules/stat-time-tests (configure.ac): Check for usleep.
33204
33205 2009-10-09  Jim Meyering  <meyering@redhat.com>
33206
33207         selinux-h: always use getfilecon wrappers
33208         * lib/getfilecon.c: New file.
33209         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33210         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33211         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33212         (fgetfilecon): Provide a stub.
33213         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33214         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33215         file unconditionally.
33216         When <selinux/selinux.h> is found, arrange to use wrappers.
33217         * modules/selinux-h (Files): Add getfilecon.c.
33218         (Makefile.am): Substitute include-next-related bits
33219         into the now-always-generated selinux/selinux.h file.
33220         * doc/glibc-functions/lgetfilecon.texi: New file.
33221         * doc/glibc-functions/fgetfilecon.texi: New file.
33222         * doc/glibc-functions/getfilecon.texi: New file.
33223         * doc/glibc-functions/getfilecon-desc.texi: New file.
33224         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33225         which to pull in the new files.
33226         * MODULES.html.sh (Misc): Add selinux-h.
33227
33228 2009-10-08  Jim Meyering  <meyering@redhat.com>
33229
33230         unistd: fix comment typo
33231         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33232
33233 2009-10-08  Eric Blake  <ebb9@byu.net>
33234
33235         areadlink: use SIZE_MAX consistently
33236         * modules/areadlink (Depends-on): Add stdint.
33237         * modules/areadlink-with-size (Depends-on): Likewise.
33238         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33239         gives NULL; drop sys/types, since unistd gives size_t; and add
33240         stdint for SIZE_MAX.
33241         (SIZE_MAX): Rely on headers.
33242         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33243         and add stdint.
33244         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33245         (SIZE_MAX): Likewise.
33246         (INITIAL_BUF_SIZE): Turn into enum.
33247         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33248
33249 2009-10-08  Jim Meyering  <meyering@redhat.com>
33250
33251         areadlinkat: avoid compilation failure
33252         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33253         Fix typo in comment.
33254
33255 2009-10-07  Eric Blake  <ebb9@byu.net>
33256
33257         areadlinkat-with-size: new module
33258         * modules/areadlinkat-with-size: New module.
33259         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33260         * lib/areadlink.h (areadlinkat): Declare it.
33261         * MODULES.html.sh (File system functions): Mention it.
33262         * modules/areadlinkat-with-size-tests: New test.
33263         * tests/test-areadlinkat-with-size.c: New file.
33264
33265         xreadlinkat: new module
33266         * modules/xreadlinkat: New module.
33267         * lib/xreadlinkat.c (xreadlinkat): New file.
33268         * lib/xreadlink.h (xreadlinkat): Declare it.
33269         * MODULES.html.sh (File system functions): Mention it.
33270
33271         areadlinkat: new module
33272         * lib/at-func.c (FUNC_FAIL): New define.
33273         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33274         * modules/areadlinkat: New module.
33275         * lib/linkat.c (areadlinkat): Move...
33276         * lib/areadlinkat.c (areadlinkat): ...to new file.
33277         * lib/areadlink.h (areadlinkat): Declare it.
33278         * modules/linkat (Depends-on): Add areadlinkat.
33279         * MODULES.html.sh (File system functions): Mention it.
33280         * modules/areadlinkat-tests: New test.
33281         * tests/test-areadlinkat.c: New file.
33282
33283         areadlink, areadlink-with-size: add tests
33284         * modules/areadlink-tests: New test.
33285         * modules/areadlink-with-size-tests: Likewise.
33286         * tests/test-areadlink.h: New file.
33287         * tests/test-areadlink.c: Likewise.
33288         * tests/test-areadlink-with-size.c: Likewise.
33289
33290         maint: minor cleanups
33291         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33292         _UNUSED_PARAMETER_ instead.
33293         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33294         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33295         * modules/linkat-tests (Files): Distribute test-link.h.
33296
33297         openat, utimens: whitespace cleanup
33298         * lib/openat.c: Prefer space throughout, rather than mix of 8
33299         spaces vs. tabs.
33300         * lib/at-func.c: Likewise.
33301         * lib/utimens.c: Likewise.
33302
33303         openat: avoid using wrong fd
33304         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33305         working directory chooses same fd.
33306         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33307
33308         mkdir, mkdirat: fix cygwin 1.5.x bug
33309         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33310         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33311         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33312         bug.
33313         (gl_PREREQ_MKDIR): Delete unused macro.
33314         * modules/mkdir (Files): Track file rename.
33315         (configure.ac): Update macro name.
33316         * modules/openat (Depends-on): Add mkdir.
33317         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33318
33319         mkdir, mkdirat: add tests
33320         * modules/mkdir-tests: New test.
33321         * tests/test-mkdir.h: New file.
33322         * tests/test-mkdir.c: Likewise.
33323         * tests/test-mkdirat.c: Likewise.
33324         * modules/openat-tests (Files): Add new files.
33325         (Makefile.am): Run new test.
33326
33327 2009-10-06  Eric Blake  <ebb9@byu.net>
33328
33329         doc: tweak *at function documentation
33330         * doc/posix-functions/faccessat.texi (faccessat): Mention
33331         known issue with replacement.
33332         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33333         * doc/posix-functions/linkat.texi (linkat): Likewise.
33334         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33335         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33336         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33337         * doc/posix-functions/renameat.texi (renameat): Likewise.
33338         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33339
33340         openat: fix GNU/Hurd bug in unlinkat
33341         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33342         broken.
33343         * doc/posix-functions/unlink.texi (unlink): Document this.
33344         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33345
33346         fdopendir: fix GNU/Hurd bug
33347         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33348         allowing non-directory fds.
33349         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33350         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33351         * modules/dirent (Makefile.am): Substitute it.
33352         * lib/dirent.in.h (fdopendir): Declare replacement.
33353         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33354         * tests/test-fdopendir.c (main): Test something other than
33355         /dev/null, since on Hurd that behaves like a directory.
33356
33357         test-symlink: port to GNU/Hurd
33358         * tests/test-symlink.h (test_symlink): Relax expected errno.
33359
33360         doc: tweak more cygwin information
33361         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33362         now compatible with glibc.
33363         * doc/posix-functions/getopt.texi (getopt): Likewise.
33364
33365         getopt-gnu: add another test
33366         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33367         guarantee behavior relied on by m4.
33368         * tests/test-getopt.c (main): Use it.
33369         * modules/getopt-posix-tests (Depends-on): Add setenv.
33370         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33371
33372         getopt: fix compilation on darwin
33373         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33374         include.
33375         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33376         Reported by Ludovic Courtès.
33377
33378 2009-10-06  Bruno Haible  <bruno@clisp.org>
33379
33380         * modules/size_max (Description): Discourage its use.
33381         Reported by Simon Josefsson.
33382
33383 2009-10-06  Jim Meyering  <meyering@redhat.com>
33384
33385         linkat: avoid compilation failure
33386         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33387
33388 2009-10-05  Eric Blake  <ebb9@byu.net>
33389
33390         linkat: support Linux 2.6.17
33391         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33392         linkat on Linux, but allow cache variable override.
33393         * lib/linkat.c (rpl_linkat): Define override.
33394         * modules/linkat (Depends-on): Add symlinkat.
33395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33396         * modules/unistd (Makefile.am): Substitute it.
33397         * lib/unistd.in.h (linkat): Declare replacement.
33398         Reported by Pádraig Brady.
33399
33400         quotearg: port test to systems with C.UTF-8 locale
33401         * tests/test-quotearg.c (struct result_strings): Add another
33402         member, differentiating between C.ASCII and C.UTF-8 handling.
33403         (compare_strings): Add parameter.
33404         (main): Adjust all callers.
33405
33406         getopt: avoid clash with FreeBSD _getopt_internal
33407         * lib/getopt.in.h (_getopt_internal): Override the name.
33408         * lib/getopt_int.h (includes): Pick up any overrides.
33409         Reported by Reuben Thomas.
33410
33411         hash: allow C89 compilation
33412         * lib/hash.c (check_tuning): Move declaration before statement.
33413         Reported by Reuben Thomas.
33414
33415 2009-10-05  Karl Berry  <karl@gnu.org>
33416
33417         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33418
33419 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33420             Bruno Haible  <bruno@clisp.org>
33421
33422         * lib/uname.c (uname): Use a table-driven algorithm to compute
33423         Windows NT versions.
33424
33425 2009-10-04  Bruno Haible  <bruno@clisp.org>
33426
33427         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33428         program_invocation_short_name.
33429         * modules/progname (configure.ac): Test for presence of
33430         program_invocation_short_name.
33431         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33432
33433 2009-10-04  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/progname.c (set_program_name): Fix comment.
33436         Reported by Jim Meyering.
33437
33438 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33439             Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/uname.c: Include <string.h>.
33442         (uname): Do only one call to GetVersionEx in the common case.
33443
33444 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33445             Bruno Haible  <bruno@clisp.org>
33446
33447         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33448         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33449         (uname): Add support for Windows CE and various non-x86 CPU types.
33450
33451 2009-10-03  Bruno Haible  <bruno@clisp.org>
33452
33453         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33454         invocation to tests/configure.ac.
33455         Reported by Ian Beckwith <ianb@erislabs.net>.
33456
33457 2009-10-02  Eric Blake  <ebb9@byu.net>
33458
33459         fchdir: avoid compiler warning
33460         * lib/fchdir.c (canonicalize_file_name)
33461         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33462
33463         test-open: support mingw errno values
33464         * tests/test-open.h (test_open): Relax test.
33465         * tests/test-fopen.h (test_fopen): Likewise.
33466         * tests/test-openat-safer.c (main): Likewise.
33467
33468         open: fix opening directory on mingw
33469         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33470
33471         test-open: on GNU/Hurd, /dev/null is a directory
33472         * tests/test-fopen.h (main): Rename...
33473         (test_fopen): ...to this.  Use a guaranteed non-directory when
33474         confirming open behavior on trailing slash.
33475         * tests/test-openat-safer.c (main): Likewise.
33476         * tests/test-open.h (main): Likewise....
33477         (test_open): ...to this.
33478         * tests/test-fopen.c (main): Adjust caller.
33479         * tests/test-fopen-safer.c (main): Likewise.
33480         * tests/test-open.c (main): Likewise.
33481         * tests/test-fcntl-safer.c (main): Likewise.
33482         Reported by Samuel Thibault.
33483
33484         rename, fchdir: don't ignore chdir failure
33485         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33486         * lib/rename.c (rpl_rename) [W32]: Likewise.
33487         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33488         an empty destination directory if source cannot be renamed,
33489         although there is still possibility for failure.
33490         * doc/posix-functions/rename.texi (rename): Document the race.
33491         Reported by Jim Meyering.
33492
33493         maint: cleanup whitespace in recent commits
33494         * lib/rename.c (rpl_rename): Remove tabs.
33495         * tests/test-link.h (test_link): Likewise.
33496         * lib/fchdir.c (get_name): Likewise.
33497         Reported by Jim Meyering.
33498
33499 2009-10-02  Ben Pfaff  <blp@gnu.org>
33500
33501         relocatable-prog-wrapper: Add missing dependency on
33502         double-slash-root.
33503         * modules/relocatable-prog-wrapper: Add dependency.
33504         Reported by Ian Beckwith <ianb@erislabs.net>.
33505
33506 2009-10-02  Eric Blake  <ebb9@byu.net>
33507
33508         renameat: fix Solaris bugs
33509         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33510         needed fixing.
33511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33512         * modules/stdio (Makefile.am): Substitute it.
33513         * lib/stdio.in.h (renameat): Declare replacement.
33514         * lib/renameat.c (rpl_renameat): Implement fix.
33515
33516         renameat: new module
33517         * modules/renameat: New file.
33518         * lib/renameat.c (renameat): Likewise.
33519         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33521         * modules/stdio (Makefile.am): Substitute them.
33522         * lib/stdio.in.h (renameat): Declare it.
33523         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33524         * doc/posix-functions/renameat.texi (renameat): Likewise.
33525         * modules/renameat-tests: New test.
33526         * tests/test-renameat.c: Likewise.
33527
33528         rename: fix mingw bugs
33529         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33530         directory overwrite bugs.
33531
33532         rename: fix another cygwin 1.5 bug
33533         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33534         checks.
33535         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33536         unnecessary cygwin workarounds.  Also work around bug with moving
33537         full directory onto an empty one.
33538         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33539
33540         rename-dest-slash: merge into rename module
33541         * modules/rename-dest-slash (Status): Mark obsolete.
33542         (Depends-on): Add rename.
33543         (Files): Let rename do it all.
33544         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33545         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33546         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33547         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33548         * lib/rename.c (rpl_rename): Update comments.
33549
33550         rename: fix cygwin 1.5.x bugs
33551         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33552         * lib/rename.c (rpl_rename): Work around them.
33553         * modules/rename (Depends-on): Add same-inode.
33554
33555         rename: fix Solaris 10 bug
33556         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33557         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33558         was the only bug.
33559
33560         rename: fix Solaris 9 bug
33561         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33562         on non-directory.  Avoid calling exit.
33563         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33564         strdup.
33565         * modules/rename-tests (Depends-on): Drop lstat.
33566         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33567         (gl_PREREQ_RENAME): Delete unused macro.
33568
33569         rename-dest-slash: fix NetBSD bug
33570         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33571         links.
33572         * modules/rename-dest-slash (Depends-on): Add same-inode.
33573
33574         rename-tests: new test, exposes several platform bugs
33575         * modules/rename-tests: New file.
33576         * tests/test-rename.h: Likewise.
33577         * tests/test-rename.c: Likewise.
33578         * doc/posix-functions/rename.texi (rename): Improve documentation,
33579         including bugs that will eventually be fixed in gnulib.
33580
33581 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33582
33583         * lib/uname.c: Include <stdlib.h>
33584         (uname): Assume version info is available.
33585
33586 2009-10-02  Jim Meyering  <meyering@redhat.com>
33587
33588         gnu-web-doc-update: correct --help output
33589         * build-aux/gnu-web-doc-update: Make --help output relevant.
33590
33591         gnu-web-doc-update: add standard options
33592         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33593
33594         gnu-web-doc-update: New module.
33595         Use this script to automatically update the on-line web documentation
33596         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33597         * modules/gnu-web-doc-update: New file, from coreutils.
33598         * build-aux/gnu-web-doc-update: New script.
33599
33600 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33601
33602         link: LoadLibrary is not needed.
33603         * lib/link.c: Use GetModuleHandle.
33604
33605 2009-10-01  Eric Blake  <ebb9@byu.net>
33606
33607         getopt: bump serial number
33608         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33609         change.
33610
33611         tests: tighten link, rmdir, and remove tests
33612         * tests/test-link.h (includes): No need to use <config.h> here.
33613         Clean up if directory hard link was created, otherwise test for
33614         trailing '.'.
33615         * tests/test-linkat.c (main): Simplify.
33616         * tests/test-remove.c (main): Enhance test for trailing '.'.
33617         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33618
33619 2009-10-01  Jim Meyering  <meyering@redhat.com>
33620
33621         maint.mk: requiring "make major" was annoying, for a "minor" release.
33622         What is intended is "stable", to contrast with alpha and beta,
33623         so require "make stable", not "make major".
33624         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33625         (get_tool_versions): Likewise.
33626         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33627
33628 2009-09-30  Ben Pfaff  <blp@gnu.org>
33629
33630         Fix broken build of replacement for Windows tmpfile().
33631         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33632         flags argument added along with the 'mkostemp' module.
33633
33634 2009-09-28  Bruno Haible  <bruno@clisp.org>
33635
33636         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33637         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33638         to 'remove_elt'.
33639         (gl_list_remove): Update.
33640         * lib/gl_list.c (gl_list_remove): Update.
33641         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33642         to 'remove_elt'.
33643         (gl_oset_remove): Update.
33644         * lib/gl_list.c (gl_oset_remove): Update.
33645         Reported by Eric Blake.
33646
33647 2009-09-28  Eric Blake  <ebb9@byu.net>
33648
33649         doc: mention yet more cygwin 1.7 status
33650         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33651         cygwin.
33652         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33653         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33654
33655         argp: fix test failure
33656         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33657         that are not upper-case.  Pass correct range to tolower.
33658
33659 2009-09-27  Jim Meyering  <meyering@redhat.com>
33660
33661         test-yesno: work around sparc-dash here-document infelicity
33662         Without this change, the literal \177 byte in a here document
33663         would make dash 0.5.5.1-3 access uninitialized memory.
33664         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33665         Instead, use a marker, "@", and filter through tr to create the desired
33666         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33667
33668 2009-09-27  Bruno Haible  <bruno@clisp.org>
33669
33670         Disable untested support for new flavours of ACLs on AIX.
33671         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33672         progress.
33673         * lib/set-mode-acl.c (qset_acl): Likewise.
33674
33675 2008-12-07  Bruno Haible  <bruno@clisp.org>
33676
33677         Add support for new flavours of ACLs on AIX. (Untested.)
33678         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33679         (file_has_acl): Add support for newer AIX.
33680         * lib/set-mode-acl.c (qset_acl): Likewise.
33681         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33682         Rainer Tammer <tammer@tammer.net>.
33683
33684 2009-09-26  Eric Blake  <ebb9@byu.net>
33685
33686         argp: fix compilation of getopt
33687         * lib/getopt.in.h (includes): Use different guard than glibc.
33688         Reported by Sergey Poznyakoff.
33689
33690         doc: mention more cygwin 1.7 status
33691         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33692         bug.
33693         * doc/posix-functions/execl.texi (execl): Likewise.
33694         * doc/posix-functions/execle.texi (execle): Likewise.
33695         * doc/posix-functions/execlp.texi (execlp): Likewise.
33696         * doc/posix-functions/execv.texi (execv): Likewise.
33697         * doc/posix-functions/execve.texi (execve): Likewise.
33698         * doc/posix-functions/execvp.texi (execvp): Likewise.
33699         * doc/glibc-functions/canonicalize_file_name.texi
33700         (canonicalize_file_name): Cygwin 1.7 now provides this.
33701         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33702         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33703         on AT_SYMLINK_NOFOLLOW.
33704
33705 2009-09-24  Eric Blake  <ebb9@byu.net>
33706
33707         test-linkat: make test more robust
33708         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33709
33710         getopt: fix inclusion guards for cygwin
33711         * modules/getopt-posix (Depends-on): Add include-next.
33712         (Makefile.am): Substitute more items in replacement header.
33713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33714         <getopt.h>.
33715         * lib/getopt.in.h (includes): Use split inclusion guard, and
33716         prefer <getopt.h> over include <unistd.h> when one is present.
33717         (option): Also override name of 'struct option'.
33718
33719         same-inode: revert prior change; it is not yet ready
33720         * NEWS: Undo mention of this change.
33721         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33722         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33723         * lib/cycle-check.c (cycle_check): Likewise.
33724         * lib/same.c (same_name): Likewise.
33725         * lib/at-func2.c (at_func2): Likewise.
33726
33727 2009-09-23  Eric Blake  <ebb9@byu.net>
33728
33729         linkat: new module
33730         * modules/linkat: New file.
33731         * lib/at-func2.c (at_func2): Likewise.
33732         * lib/linkat.c (linkat): Likewise.
33733         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33734         * lib/openat-priv.h (at_func2): Add declaration.
33735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33736         * modules/unistd (Makefile.am): Substitute them.
33737         * lib/unistd.in.h (linkat): Declare it.
33738         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33739         * doc/posix-functions/linkat.texi (linkat): Likewise.
33740         * doc/posix-functions/link.texi (link): Tweak wording.
33741         * tests/test-link.c (main): Move guts...
33742         * tests/test-link.h (test_link): ...into new file.
33743         * modules/linkat-tests: New test.
33744         * tests/test-linkat.c: Likewise.
33745         * modules/link-tests (Files): Ship new file.
33746         (Depends-on): Add stdbool.
33747
33748         dirname: add library-safe mdir_name
33749         * lib/dirname.h (mdir_name): New prototype.
33750         * lib/dirname.c (dir_name): Move guts...
33751         (mdir_name): ...to new function that avoids xalloc_die.
33752
33753         fchdir: another mingw fix
33754         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33755         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33756         on mingw (where it has not yet been ported), and make it optional
33757         elsewhere.
33758         (_gl_register_fd): Use it.
33759
33760         same-inode: make SAME_INODE tri-state, to port to mingw
33761         * NEWS: Mention this change.
33762         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33763         st_ino always being 0.
33764         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33765         * lib/cycle-check.c (cycle_check): Likewise.
33766         * lib/same.c (same_name): Likewise.
33767
33768         lstat: avoid mingw compilation error
33769         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33770         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33771         lstat ourselves.
33772         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33773         was adequate.
33774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33775         the checks for lstat.
33776         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33777
33778         link: fix test failure on Solaris 9
33779         * lib/link.c (rpl_link): Don't assume link will catch bogus
33780         trailing slash on source.
33781
33782         test-symlinkat: enhance test
33783         * tests/test-readlink.c (main): Move guts...
33784         * tests/test-readlink.h (test_readlink): ...into new file.
33785         * tests/test-symlink.c (main): Move guts...
33786         * tests/test-symlink.h (test_symlink): ...into new file.
33787         * tests/test-symlinkat.c (main): Use new files for further
33788         coverage.
33789         (do_symlink, do_readlink): New helper functions.
33790         * modules/symlink-tests (Files): Ship new file.
33791         (Depends-on): Add stdbool.
33792         * modules/readlink-tests (Files): Ship new file.
33793         (Depends-on): Add stdbool.
33794         * modules/symlinkat-tests (Files): Use new files.
33795
33796 2009-09-23  Eric Blake  <ebb9@byu.net>
33797
33798         readlink: document portability issue with symlink length
33799         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33800         systems have bogus st_size on symlinks, and mention the
33801         areadlink-with-size module.
33802         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33803         * doc/posix-functions/readlink.texi (readlink): Mention the
33804         areadlink module, and ERANGE failure.
33805         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33806         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33807
33808         readlink: fix Solaris 9 bug with trailing slash
33809         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33810         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33811         * doc/posix-functions/readlink.texi (readlink): Document this.
33812         * modules/readlink-tests: New test.
33813         * tests/test-readlink.c: Likewise.
33814
33815         readlink: fix cygwin 1.5.x bug with return type
33816         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33817         * lib/unistd.in.h (readlink): Use ssize_t.
33818         * lib/readlink.c (readlink): Likewise.
33819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33820         * modules/unistd (Makefile.am): Substitute it.
33821         * lib/unistd.in.h (readlink): Declare replacement.
33822         * doc/posix-functions/readlink.texi (readlink): Document this.
33823
33824         symlink: use throughout gnulib
33825         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33826         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33827         symlink is not used.
33828         * modules/symlinkat (Depends-on): Add symlink.
33829         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33830         * modules/canonicalize-tests (Depends-on): Likewise.
33831         * modules/lstat-tests (Depends-on): Likewise.
33832         * modules/openat-tests (Depends-on): Likewise.
33833         * modules/remove-tests (Depends-on): Likewise.
33834         * modules/rmdir-tests (Depends-on): Likewise.
33835         * modules/unlink-tests (Depends-on): Likewise.
33836         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33837         * tests/test-canonicalize.c (symlink): Likewise.
33838         * tests/test-fstatat.c (symlink): Likewise.
33839         * tests/test-lstat.c (symlink): Likewise.
33840         * tests/test-remove.c (symlink): Likewise.
33841         * tests/test-rmdir.c (symlink): Likewise.
33842         * tests/test-unlink.c (symlink): Likewise.
33843         * tests/test-unlinkat.c (symlink): Likewise.
33844
33845         symlink: new module, for Solaris 9 bug
33846         * modules/symlink: New file.
33847         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33848         * lib/symlink.c: Likewise.
33849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33850         * modules/unistd (Makefile.am): Substitute them.
33851         * lib/unistd.in.h (symlink): Declare replacement.
33852         * MODULES.html.sh (File system functions): Mention it.
33853         * doc/posix-functions/symlink.texi (symlink): Likewise.
33854         * modules/symlink-tests: New test.
33855         * tests/test-symlink.c: Likewise.
33856
33857 2009-09-23  Bruno Haible  <bruno@clisp.org>
33858
33859         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33860         when needed.
33861         Test case: gnulib-tool --import --with-tests atexit inttypes.
33862         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33863
33864 2009-09-23  Bruno Haible  <bruno@clisp.org>
33865
33866         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33867         subcommand, not in a subshell.
33868
33869 2009-09-22  Eric Blake  <ebb9@byu.net>
33870
33871         unistd: sort replacement declarations
33872         * lib/unistd.in.h: Sort declarations.
33873
33874         open, openat: minor optimization
33875         * lib/open.c (open): If open succeeded, len is non-zero.
33876         * lib/openat.c (rpl_openat): Likewise.
33877
33878         link-follow: ensure correct result
33879         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33880         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33881         distinguish between possible failures.
33882
33883 2009-09-21  Eric Blake  <ebb9@byu.net>
33884
33885         fts: avoid compiler warning
33886         * lib/fts.c (dirent_inode_sort_may_be_useful)
33887         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33888
33889 2009-09-19  Bruno Haible  <bruno@clisp.org>
33890
33891         * lib/progreloc.c (canonicalize_file_name): New declaration.
33892
33893 2009-09-19  Eric Blake  <ebb9@byu.net>
33894
33895         link: fix quoting
33896         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33897
33898         openat: fix openat bugs on Solaris 9
33899         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33900         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33901         * modules/openat (Depends-on): Add open.
33902         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33903         * modules/fcntl-h (Makefile.am): Substitute it.
33904         * lib/fcntl.in.h (openat): Declare replacement.
33905         * doc/posix-functions/openat.texi (openat): Document this.
33906
33907         openat: move fstatat and unlinkat into correct files
33908         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33909         compiled.
33910         * lib/openat.c (fstatat, unlinkat): Move...
33911         * lib/fstatat.c (fstatat): ...into correct files.
33912         * lib/unlinkat.c (unlinkat): Likewise.
33913
33914         openat: fix unlinkat bugs on Solaris 9
33915         * lib/unlinkat.c (unlinkat): New file.
33916         * modules/openat (Depends-on): Add unlink.
33917         (Files): Distribute it.
33918         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33919         trailing slash behavior is broken.
33920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33921         * modules/unistd (Makefile.am): Substitute it.
33922         * lib/unistd.in.h (unlinkat): Declare replacement.
33923         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33924
33925         openat: fix fstatat bugs on Solaris 9
33926         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33927         stat.
33928         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33929
33930         test-unlinkat: enhance test, to expose Solaris 9 bug
33931         * tests/test-unlink.c (main): Factor guts...
33932         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33933         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33934         * tests/test-rmdir.c (main): Adjust caller.
33935         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33936         (unlinker): New helper function.
33937         (rmdirat): Enhance check.
33938         * modules/rmdir-tests (Depends-on): Add stdbool.
33939         * modules/unlink-tests (Depends-on): Likewise.
33940         (Files): Add test-unlink.h.
33941         * modules/openat-tests (Files): Likewise.
33942         (Depends-on): Add unlinkdir.
33943
33944         test-fstatat: new test, to expose Solaris 9 bugs
33945         * tests/test-stat.c (main): Factor guts...
33946         * tests/test-stat.h (test_stat_func): ...into new file.
33947         * tests/test-lstat.c (main): Factor guts...
33948         * tests/test-lstat.h (test_lstat_func): ...into new file.
33949         * tests/test-fstatat.c: New file.
33950         * modules/stat-tests (Files): Add test-stat.h.
33951         * modules/lstat-tests (Files): Add test-lstat.h.
33952         (Depends-on): Add stdbool.
33953         * modules/openat-tests (Depends-on): Add pathmax.
33954         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33955         (Makefile.am): Run new test.
33956
33957         remove: new module, for mingw and Solaris 9 bugs
33958         * modules/remove: New file.
33959         * lib/remove.c: Likewise.
33960         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33962         * modules/stdio (Makefile.am): Use them.
33963         * lib/stdio.in.h (remove): Declare replacement.
33964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33965         * doc/posix-functions/remove.texi (remove): Likewise.
33966         * modules/remove-tests: New test.
33967         * tests/test-remove.c: Likewise.
33968
33969         unlink: new module, for Solaris 9 bug
33970         * modules/unlink: New file.
33971         * lib/unlink.c: Likewise.
33972         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33974         * modules/unistd (Makefile.am): Use them.
33975         * lib/unistd.in.h (stat): Declare replacement.
33976         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33977         * doc/posix-functions/unlink.texi (unlink): Likewise.
33978         * modules/unlink-tests: New test.
33979         * tests/test-unlink.c: Likewise.
33980
33981         lstat: fix Solaris 9 bug
33982         * lib/lstat.c (lstat): Also check for trailing slash on
33983         non-symlink, non-directories.  Use stat module to simplify logic.
33984         * doc/posix-functions/lstat.texi (lstat): Document it.
33985         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33986         (configure.ac): Check for symlink.
33987         * tests/test-lstat.c (main): Add more tests.
33988
33989         stat: add as dependency to other modules
33990         * modules/chown (Depends-on): Add stat.
33991         * modules/euidaccess (Depends-on): Likewise.
33992         * modules/fchdir (Depends-on): Likewise.
33993         * modules/isdir (Depends-on): Likewise.
33994         * modules/link (Depends-on): Likewise.
33995         * modules/lstat (Depends-on): Likewise.
33996         * modules/mkdir-p (Depends-on): Likewise.
33997         * modules/modechange (Depends-on): Likewise.
33998         * modules/open (Depends-on): Likewise.
33999         * modules/readlink (Depends-on): Likewise.
34000         * modules/same (Depends-on): Likewise.
34001
34002         stat: fix Solaris 9 bug
34003         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34004         slash.
34005         * lib/stat.c (rpl_stat): Work around it.
34006         * doc/posix-functions/stat.texi (stat): Update documentation.
34007
34008         stat: new module, for mingw bug
34009         * modules/stat: New file.
34010         * lib/stat.c: Likewise.
34011         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34013         * modules/sys_stat (Makefile.am): Use them.
34014         * lib/sys_stat.in.h (stat): Declare replacement.
34015         * lib/openat.c (fstatat): Deal with lstat and stat being function
34016         macros.
34017         * modules/openat (Depends-on): Add inline.
34018         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34019         * doc/posix-functions/stat.texi (stat): Likewise.
34020         * modules/stat-tests: New test.
34021         * tests/test-stat.c: Likewise.
34022
34023 2009-09-19  Jim Meyering  <meyering@redhat.com>
34024
34025         syntax-check: detect unnecessary inclusion of canonicalize.h
34026         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34027
34028 2009-09-19  Eric Blake  <ebb9@byu.net>
34029
34030         canonicalize-lgpl: adjust clients to use correct header
34031         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34032         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34033         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34034         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34035         * lib/progreloc.c (includes): Likewise.
34036
34037 2009-09-19  Jim Meyering  <meyering@redhat.com>
34038
34039         test-posixtm.c: correct a comment
34040         * tests/test-posixtm.c: Correct first-line comment.
34041         Spotted by Eric Blake.
34042
34043 2009-09-16  Jim Meyering  <meyering@redhat.com>
34044
34045         posixtm-tests: make T const-correct; add a test case
34046         * tests/test-posixtm.c (T): Declare const.
34047         Add a test for -(2^31+1).
34048         Remove useless can-succeed-only-in-2002 test.
34049
34050         posixtm-tests: adjust the sole failing test
34051         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34052         expected output matches what mktime now produces.  Cross-checked via
34053         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34054
34055         posixtm: move #ifdef'd tests into a new module
34056         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34057         * tests/test-posixtm.c: ... this new file.
34058         * modules/posixtm-tests: New module.
34059
34060 2009-09-19  Eric Blake  <ebb9@byu.net>
34061
34062         openat: simplify use of at-func.c
34063         * lib/at-func.c (includes): Include prerequisites here, to
34064         simplify requirements on client files.
34065         * lib/openat-priv.h: Add double-inclusion guard.
34066         * lib/faccessat.c (includes): Simplify.
34067         * lib/fchmodat.c (includes): Likewise.
34068         * lib/fchownat.c (includes): Likewise.
34069         * lib/mkdirat.c (includes): Likewise.
34070         * lib/mkfifoat.c (includes): Likewise.
34071         * lib/symlinkat.c (includes): Likewise.
34072
34073         openat: allow return of fd 0
34074         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34075         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34076         unistd-safer.
34077         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34078         <fcntl.h>; this module does not leak fds.
34079         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34080         must be allowed to return 0, leaving openat_safer to add the
34081         safety.
34082         (openat_permissive): Avoid writing to just-opened fd 2 if
34083         restoring the current directory fails.
34084         * lib/openat-die.c (openat_restore_fail): Add comment.
34085         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34086         (save_cwd): Guarantee safe fd, but without use of open_safer.
34087         * tests/test-openat.c: New test.
34088         * modules/openat-tests (Files, Makefile.am): Distribute and build
34089         new file.
34090
34091         relocatable-prog-wrapper: fix build
34092         * modules/relocatable-prog-wrapper (Files): Update name of
34093         canonicalize m4 file, broken on 2009-09-17.
34094         Reported by emad hajjar <aleppos@hotmail.com>.
34095
34096 2009-09-19  Bruno Haible  <bruno@clisp.org>
34097
34098         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34099         * lib/safe-alloc.c: Likewise.
34100         Reported by Ian Beckwith <ianb@erislabs.net>.
34101
34102 2009-09-18  Bruno Haible  <bruno@clisp.org>
34103
34104         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34105         Reported by <erobles@sensacd.com.mx>.
34106
34107 2009-09-17  Eric Blake  <ebb9@byu.net>
34108
34109         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34110         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34111         slashes when checking if last component is missing.
34112         * tests/test-canonicalize.c (main): Test this.
34113
34114         canonicalize, canonicalize-lgpl: honor // if distinct from /
34115         * modules/canonicalize (Files): Add double-slash-root.m4.
34116         * modules/canonicalize-lgpl (Files): Likewise.
34117         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34118         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34119         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34120         fallback definition.
34121         (canonicalize_filename_mode): Use it to protect //.
34122         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34123         (__realpath): Likewise.
34124         * tests/test-canonicalize.c (main): Test this.
34125         * tests/test-canonicalize-lgpl.c (main): Likewise.
34126         * modules/canonicalize-tests (Depends-on): Add same-inode.
34127         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34128
34129         canonicalize-lgpl: fix glibc bug with trailing slash
34130         * m4/canonicalize-lgpl.m4: Move contents...
34131         * m4/canonicalize.m4: ...here.
34132         (gl_CANONICALIZE_LGPL): Factor realpath check...
34133         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34134         glibc 2.3.5 bug, fixed 2005-04-27.
34135         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34136         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34137         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34138         * modules/canonicalize-lgpl (Files): Manage file rename.
34139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34140         * modules/stdlib (Makefile.am): Substitute witness.
34141         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34142         is needed.
34143         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34144         replacement is required.
34145         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34146         * doc/glibc-functions/canonicalize_file_name.texi
34147         (canonicalize_file_name): Document this.
34148         * doc/posix-functions/realpath.texi (realpath): Likewise.
34149
34150         canonicalize-lgpl: reject non-directory with trailing slash
34151         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34152         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34153         catches failures in glibc 2.3.5.
34154         * tests/test-canonicalize.c (main): Likewise.
34155
34156         canonicalize-lgpl: use native realpath if it works
34157         * lib/canonicalize-lgpl.c (realpath): Guard with
34158         FUNC_REALPATH_WORKS.
34159         * lib/stdlib.in.h (realpath): Make declaration optional based on
34160         HAVE_REALPATH.
34161         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34162         native realpath works.
34163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34164         * modules/stdlib (Makefile.am): Substitute witness.
34165
34166         canonicalize, canonicalize-lgpl: use <stdlib.h>
34167         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34168         (Include): Mention <stdlib.h>.
34169         (configure.ac): Mention functions we provide.
34170         * modules/canonicalize (configure.ac): Likewise.
34171         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34172         realpath if canonicalize_file_name is missing.
34173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34174         * modules/stdlib (Makefile.am): Substitute witnesses.
34175         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34176         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34177         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34178         * NEWS: Document this.
34179         * doc/glibc-functions/canonicalize_file_name.texi
34180         (canonicalize_file_name): Likewise.
34181         * doc/posix-functions/realpath.texi (realpath): Likewise.
34182         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34183
34184         test-canonicalize: consolidate into single C program
34185         * tests/test-canonicalize.sh: Delete; move setup into...
34186         * tests/test-canonicalize.c (main): ...the program, making it
34187         easier to run in debugger.  Add some tests.
34188         * modules/canonicalize-tests (Files): Remove unused file.
34189         (Depends-on): Add progname.
34190         (configure.ac, Makefile.am): Simplify.
34191
34192         test-canonicalize-lgpl: consolidate into single C program
34193         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34194         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34195         easier to run in debugger.  Add some tests.
34196         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34197         (configure.ac, Makefile.am): Simplify.
34198
34199         canonicalize: avoid resolvepath
34200         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34201         unnecessary checks.
34202         * lib/canonicalize.c (includes): Simplify.
34203         (canonicalize_file_name): Drop resolvepath implementation.
34204         * modules/canonicalize (Depends-on): Drop filenamecat.
34205
34206         canonicalize: don't lose errno
34207         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34208         over calls to free.
34209
34210         canonicalize: simplify errno handling
34211         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34212         assignment.
34213
34214         canonicalize, canonicalize-lgpl: update module dependencies
34215         * modules/canonicalize (Depends-on): Add extensions, lstat,
34216         pathmax, stdlib.
34217         (Files): Drop pathmax.h.
34218         (configure.ac): Adjust macro name.
34219         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34220         lstat, stdlib, sys_stat.
34221         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34222         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34223         extensions.
34224         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34225         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34226         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34227         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34228         declaration, if available.
34229         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34230         we can rely on the readlink module.
34231         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34232         (includes): Use <unistd.h> unconditionally.
34233
34234 2009-09-17  Eric Blake  <ebb9@byu.net>
34235
34236         maint: make Include sections of modules consistent
34237         * modules/alloca: Use only header name; no need to list #include.
34238         * modules/alloca-opt: Likewise.
34239         * modules/arpa_inet: Likewise.
34240         * modules/canon-host: Likewise.
34241         * modules/configmake: Likewise.
34242         * modules/dirent: Likewise.
34243         * modules/eealloc: Likewise.
34244         * modules/environ: Likewise.
34245         * modules/fchdir: Likewise.
34246         * modules/fcntl: Likewise.
34247         * modules/fcntl-h: Likewise.
34248         * modules/gethrxtime: Likewise.
34249         * modules/gettime: Likewise.
34250         * modules/ignore-value: Likewise.
34251         * modules/inet_ntop: Likewise.
34252         * modules/inet_pton: Likewise.
34253         * modules/inttypes: Likewise.
34254         * modules/isnand-nolibm: Likewise.
34255         * modules/isnanf-nolibm: Likewise.
34256         * modules/mbchar: Likewise.
34257         * modules/mbfile: Likewise.
34258         * modules/mbiter: Likewise.
34259         * modules/mbuiter: Likewise.
34260         * modules/netdb: Likewise.
34261         * modules/netinet_in: Likewise.
34262         * modules/nproc: Likewise.
34263         * modules/pagealign_alloc: Likewise.
34264         * modules/poll: Likewise.
34265         * modules/printf-frexp: Likewise.
34266         * modules/pthread: Likewise.
34267         * modules/putenv: Likewise.
34268         * modules/random_r: Likewise.
34269         * modules/relocatable-prog: Likewise.
34270         * modules/search: Likewise.
34271         * modules/select: Likewise.
34272         * modules/selinux-h: Likewise.
34273         * modules/settime: Likewise.
34274         * modules/signal: Likewise.
34275         * modules/size_max: Likewise.
34276         * modules/socklen: Likewise.
34277         * modules/ssize_t: Likewise.
34278         * modules/stdarg: Likewise.
34279         * modules/stdbool: Likewise.
34280         * modules/stddef: Likewise.
34281         * modules/stdint: Likewise.
34282         * modules/stdio: Likewise.
34283         * modules/stdlib: Likewise.
34284         * modules/string: Likewise.
34285         * modules/strings: Likewise.
34286         * modules/sys_file: Likewise.
34287         * modules/sys_ioctl: Likewise.
34288         * modules/sys_select: Likewise.
34289         * modules/sys_socket: Likewise.
34290         * modules/sys_stat: Likewise.
34291         * modules/sys_time: Likewise.
34292         * modules/sys_times: Likewise.
34293         * modules/sys_utsname: Likewise.
34294         * modules/sys_wait: Likewise.
34295         * modules/sysexits: Likewise.
34296         * modules/time: Likewise.
34297         * modules/times: Likewise.
34298         * modules/tmpfile: Likewise.
34299         * modules/trim: Likewise.
34300         * modules/unistd: Likewise.
34301         * modules/wchar: Likewise.
34302         * modules/wctype: Likewise.
34303
34304 2009-09-17  Bruno Haible  <bruno@clisp.org>
34305
34306         Make getdate.y compile on QNX and NetBSD 5 / i386.
34307         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34308         TIME_T_FITS_IN_LONG_INT.
34309         * lib/getdate.y (long_time_t): New type.
34310         (relative_time): Change type of 'seconds' field to long_time_t.
34311         (get_date): Update types of local variables. Check against overflow
34312         during conversion from long_time_t to time_t.
34313         Reported by Matt Kraai <kraai@ftbfs.org>
34314         and Hasso Tepper <hasso@netbsd.org>.
34315
34316 2009-09-17  Bruno Haible  <bruno@clisp.org>
34317
34318         * modules/COPYING: Update copyright years.
34319         * modules/README: Likeiwse.
34320         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34321         Reported by Ian Beckwith <ianb@erislabs.net>.
34322
34323 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34324
34325         * users.txt: Update references for gnuit package.
34326
34327 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34328
34329         * m4/getdelim.m4: Fix typo in copyright line.
34330
34331 2009-09-17  Bruno Haible  <bruno@clisp.org>
34332
34333         * lib/atoll.c: Use the standard header with GPL copyright.
34334         * lib/argz.in.h: Likewise.
34335         * lib/glob.c: Likewise.
34336         * lib/glob-libc.h: Likewise.
34337         * lib/random_r.c: Likewise.
34338         * lib/siglist.h: Likewise.
34339         * lib/strsignal.c: Likewise.
34340         Reported by Ian Beckwith <ianb@erislabs.net>.
34341
34342 2009-09-17  Eric Blake  <ebb9@byu.net>
34343
34344         rmdir: ensure correct dependency order
34345         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34346
34347 2009-09-17  Bruno Haible  <bruno@clisp.org>
34348
34349         Disable assertion that fails on NetBSD 5 / i386.
34350         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34351         Reported by Sam Steingold <sds@gnu.org>
34352         and Hasso Tepper <hasso@netbsd.org>.
34353
34354 2009-09-16  Eric Blake  <ebb9@byu.net>
34355
34356         unlinkdir: port to mingw
34357         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34358         on which no one can unlink a directory.
34359
34360         stdlib: sort witness names
34361         * modules/stdlib (Makefile.am): Sort replacements.
34362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34363         * lib/stdlib.in.h: Likewise.
34364
34365         parse-duration-tests: avoid link failure
34366         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34367         LIBINTL.
34368         Reported by Tom G. Christensen.
34369
34370         openat-tests: ensure unlinkat behaves like rmdir
34371         * tests/test-rmdir.c (main): Factor guts...
34372         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34373         * modules/rmdir-tests (Files): Ship new file.
34374         * modules/openat-tests: New test.
34375         * tests/test-unlinkat.c: Likewise.
34376
34377         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34378         * modules/rmdir-errno (Status, Notice): Now obsolete.
34379
34380         rmdir: work around cygwin 1.5.x and mingw bugs
34381         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34382         * lib/rmdir.c (rmdir): Work around it.
34383         * modules/rmdir (Status, Notice): No longer obsolete.
34384         (Files): Add dos.m4.
34385         (Depends-on): Add unistd.
34386         (configure.ac): Set witnesses.
34387         (License): Relax to LGPLv2+.
34388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34389         * modules/unistd (Makefile.am): Substitute witnesses.
34390         * lib/unistd.in.h (rmdir): Declare replacement.
34391         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34392         * modules/rmdir-tests: New tests.
34393         * tests/test-rmdir.c: Likewise.
34394
34395 2009-09-15  Eric Blake  <ebb9@byu.net>
34396
34397         fchdir: improve use of replacement functions
34398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34399         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34400         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34401         REPLACE_CLOSEDIR.
34402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34403         * modules/sys_stat (Makefile.am): Substitute correct witness.
34404         * modules/dirent (Makefile.am): Likewise.
34405         * modules/unistd (Makefile.am): Likewise.
34406         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34407         * lib/unistd.in.h (dup): Likewise.
34408         * lib/sys_stat.in.h (fstat): Likewise.
34409
34410         maint: ignore gnulib-tool temp files
34411         * .gitignore: Ignore files created during gnulib-tool --test.
34412
34413 2009-09-13  Jim Meyering  <meyering@redhat.com>
34414
34415         posixtm: don't reject a time that specify "60" as the number of seconds
34416         * lib/posixtm.c (posixtime): The code to reject invalid dates
34417         would also reject a time specified with the .60 suffix.
34418         But POSIX allows that, in order to accommodate leap seconds.
34419         So don't reject it.
34420         (main): Adjust tests accordingly.
34421         * modules/posixtm (Depends-on): Add stpcpy.
34422
34423 2009-09-11  Jim Meyering  <meyering@redhat.com>
34424
34425         announce-gen: include [$release_type] in emitted Subject:
34426         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34427         e.g., [stable] in the emitted Subject: line.
34428
34429 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34430
34431         Remove obsolete macros from several modules.
34432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34433         obsolete Autoconf macros with their modern counterparts.
34434         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34435         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34437         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34438         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34439         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34441         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34442         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34443         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34444         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34445         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34446         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34447         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34448         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34449         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34450         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34451         * m4/time_r.m4 (gl_TIME_R): Likewise.
34452         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34453         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34454         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34455
34456         Fix copyright header in build-aux scripts.
34457         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34458         recommendation.
34459         * build-aux/ncftpput-ftp: Likewise.
34460         * build-aux/update-copyright: Likewise.
34461
34462 2009-09-09  Eric Blake  <ebb9@byu.net>
34463
34464         test-link: allow Linux choice of errno
34465         * tests/test-link.c (main): Relax test for alternate error.
34466
34467         strndup: fix improper m4 caching
34468         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34469         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34470         (gl_PREREQ_STRNDUP): Delete.
34471         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34472         * modules/string (Makefile.am): Substitute it.
34473         * lib/string.in.h (strndup): Modernize prototype.
34474
34475         getcwd: port to mingw
34476         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34477         different from the POSIX assumptions made throughout the getcwd
34478         module; fortunately, the mingw getcwd does not need replacement.
34479         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34480         * modules/getcwd-tests: New test.
34481         * tests/test-getcwd.c: Likewise.
34482
34483         link: fix platform bugs
34484         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34485         * lib/link.c (link): Work around them.  Fix related mingw bug.
34486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34487         * modules/unistd (Makefile.am): Substitute it.
34488         * lib/unistd.in.h (link): Declare replacement.
34489         * doc/posix-functions/link.texi (link): Document this.
34490         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34491
34492         test-link: consolidate into single C program, test more cases
34493         * tests/test-link.sh: Delete.
34494         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34495         at least Cygwin and Solaris.
34496         * modules/link-tests (Files): Remove unused file.
34497         (Depends-on): Add errno, sys_stat.
34498         (Makefile.am): Simplify.
34499
34500 2009-09-08  Bruno Haible  <bruno@clisp.org>
34501
34502         Work around towlower, towupper bug on mingw.
34503         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34504         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34505         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34506         * doc/posix-functions/towupper.texi: Likewise.
34507         Reported by Eric Blake.
34508
34509 2009-09-08  Jim Meyering  <meyering@redhat.com>
34510
34511         build: don't try to run autoheader if we don't use it
34512         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34513         is not used in configure.ac.
34514
34515 2009-09-08  Eric Blake  <ebb9@byu.net>
34516
34517         euidaccess: fix compilation error
34518         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34519
34520         rawmemchr: relax license
34521         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34522         okay.
34523         Reported by Jim Meyering.
34524
34525         mkfifoat: new module
34526         * modules/mkfifoat: New file.
34527         * lib/mkfifoat.c: Likewise.
34528         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34529         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34530         * modules/sys_stat (Makefile.am): Use them.
34531         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34532         * MODULES.html.sh (File system functions): Mention module.
34533         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34534         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34535         * modules/mkfifoat-tests: New test.
34536         * tests/test-mkfifoat.c: Likewise.
34537
34538         strchrnul: relax license
34539         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34540         okay.
34541         Reported by Jim Meyering.
34542
34543 2009-09-08  Eric Blake  <ebb9@byu.net>
34544
34545         fstatat: fix compilation on Solaris
34546         * lib/fstatat.c (includes): Add fcntl.h.
34547         Reported by Pádraig Brady.
34548
34549 2009-09-07  Eric Blake  <ebb9@byu.net>
34550
34551         rename: modernize replacement
34552         * modules/rename (Depends-on): Add stdio.
34553         (configure.ac): Declare witness.
34554         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34555         stdio take care of replacement.
34556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34557         * modules/stdio (Makefile.am): Substitute them.
34558         * lib/stdio.in.h (rename): Declare replacement.
34559         * lib/rename.c (includes): Allow cross-compilation to non-windows
34560         machines.
34561         * doc/posix-functions/rename.texi (rename): Improve
34562         documentation.
34563
34564         stdio: sort witness names
34565         * modules/stdio (Makefile.am): Sort replacements.
34566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34567         * lib/stdio.in.h: Likewise.
34568
34569         getcwd: minor cleanups
34570         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34571         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34572
34573         openat: provide more convenience names
34574         * modules/faccessat (configure.ac): Add C witness.
34575         * lib/unistd.in.h (readlinkat): Fix typo.
34576         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34577         convenience wrappers.
34578         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34579         wrappers in syntax checks.
34580
34581 2009-09-06  Eric Blake  <ebb9@byu.net>
34582
34583         doc: fix comments in recent patches
34584         * lib/faccessat.c: Mention correct function.
34585         * lib/fchmodat.c: Likewise.
34586         * lib/fchownat.c: Likewise.
34587         * lib/symlinkat.c: Likewise.
34588         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34589         constants.
34590
34591         faccessat, symlinkat: continue cleanup of previous patch
34592         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34593         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34594         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34596         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34597         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34598         set.
34599
34600 2009-09-06  Bruno Haible  <bruno@clisp.org>
34601
34602         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34603         (fstatat): Declare if GNULIB_FSTATAT is set.
34604         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34605         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34606         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34607         * modules/fcntl-h (Files): Remove m4/openat.m4.
34608         * modules/sys_stat (Files): Remove m4/openat.m4.
34609         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34610         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34611         * modules/unistd (Files): Remove m4/openat.m4.
34612         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34613         GNULIB_OPENAT.
34614         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34615         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34616         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34617         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34618         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34619         gl_OPENAT_DEFAULTS.
34620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34621         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34622         Don't require gl_OPENAT_DEFAULTS.
34623         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34624         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34625         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34626         (gl_OPENAT_DEFAULTS): Remove macro.
34627
34628 2009-09-06  Bruno Haible  <bruno@clisp.org>
34629
34630         * modules/openat (configure.ac): Remove unneeded witness.
34631
34632 2009-09-06  Bruno Haible  <bruno@clisp.org>
34633
34634         Set errno to ENOSYS when a function is entirely unsupported.
34635         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34636         EOPNOTSUPP.
34637         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34638         * modules/chown (Depends-on): Remove errno.
34639
34640 2009-09-06  Bruno Haible  <bruno@clisp.org>
34641
34642         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34643
34644 2009-09-06  Bruno Haible  <bruno@clisp.org>
34645
34646         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34647
34648 2009-09-06  Ben Pfaff  <blp@gnu.org>
34649             Bruno Haible  <bruno@clisp.org>
34650
34651         Work around a glibc bug in strtok_r.
34652         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34653         Undefine if UNDEFINE_STRTOK_R is set.
34654         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34656         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34657         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34658         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34659         UNDEFINE_STRTOK_R.
34660         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34661
34662 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34663
34664         exclude: minor fix
34665         * lib/exclude.c: Include wctype.h
34666
34667 2009-09-06  Akim Demaille  <demaille@gostai.com>
34668
34669         bootstrap: improve error message
34670         * build-aux/bootstrap (find_tool): Upon failure, report the list
34671         of candidates.
34672         Honor the initial value of the envvar.
34673
34674 2009-09-05  Eric Blake  <ebb9@byu.net>
34675
34676         symlinkat: new module
34677         * modules/symlinkat: New file.
34678         * lib/symlinkat.c: Likewise.
34679         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34681         * modules/unistd (Makefile.am): Use them.
34682         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34683         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34684         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34685         * MODULES.html.sh (File system functions): Mention module.
34686         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34687         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34688         * modules/symlinkat-tests: New test.
34689         * tests/test-symlinkat.c: Likewise.
34690
34691         test-openat-safer: add more checks
34692         * tests/test-openat-safer.c (main): Check more code paths.
34693
34694 2009-09-05  Jim Meyering  <meyering@redhat.com>
34695
34696         syntax-check: detect unnecessary inclusion of openat.h
34697         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34698
34699 2009-09-05  Bruno Haible  <bruno@clisp.org>
34700
34701         Support towlower, towupper.
34702         * doc/posix-functions/towlower.texi: Mention module wctype.
34703         * doc/posix-functions/towupper.texi: Likewise.
34704         * lib/wctype.in.h (towlower, towupper): New functions.
34705         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34706         (ASSERT): New macro.
34707         (e): New variable.
34708         (main): Test also towlower, towupper. Test WEOF argument.
34709         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34710
34711 2009-09-05  Bruno Haible  <bruno@clisp.org>
34712
34713         Fix conversion behaviour when the input is invalid.
34714         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34715         mark occurring in first pass of indirect conversion.
34716         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34717         input.
34718         Found by clang's static analyzer.
34719
34720 2009-09-05  Bruno Haible  <bruno@clisp.org>
34721
34722         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34723         where direct conversion is possible.
34724
34725 2009-09-04  Eric Blake  <ebb9@byu.net>
34726
34727         openat: fail with ENOENT on empty name
34728         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34729         buffer.
34730
34731         link-follow: fix logic bug in prior patch
34732         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34733         reversed sense of yes and no in prior patch.  Avoid confusing
34734         compilation failure with desired semantics.
34735
34736         link-follow: accomodate mingw and cross-compilation
34737         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34738         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34739         cross-compilation results to -1, to make linkat easier to
34740         implement when cross-compiling.  Trivially support mingw.
34741         * modules/link-follow (configure.ac): Call new name.
34742         * NEWS: Mention this.
34743
34744 2009-09-03  Eric Blake  <ebb9@byu.net>
34745
34746         faccessat: compile replacement
34747         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34748         needed.
34749
34750         fts: fix compilation error
34751         * lib/fts.c (includes): Re-add "openat.h", for
34752         openat_needs_fchdir.
34753
34754         faccessat: new module
34755         * modules/faccessat: New file.
34756         * lib/faccessat.c: Likewise.
34757         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34759         * modules/unistd (Makefile.am): Use it.
34760         * lib/unistd.in.h (faccessat): Declare it.
34761         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34762         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34763         * MODULES.html.sh (File system functions): Mention it.
34764         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34765         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34766
34767         euidaccess: prefer POSIX over non-standard implementation
34768         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34769         * lib/euidaccess.c (euidaccess): Use it if available.
34770
34771         openat: make template easier to use
34772         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34773         AT_FUNC_F2 to be undefined.
34774         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34775         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34776         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34777         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34778         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34779         Likewise.
34780         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34781         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34782         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34783         Likewise.
34784
34785         openat: declare in POSIX headers
34786         * NEWS: Mention this.
34787         * modules/openat (configure.ac): Declare witnesses.
34788         (Depends-on): Add fcntl-h, sys_stat, unistd.
34789         (Include): Mention correct headers.
34790         * modules/fcntl-h (Depends-on): Add link-warning.
34791         (Files): Add openat.m4.
34792         (Makefile.am): Substitute witnesses.
34793         * modules/sys_stat (Files, Makefile.am): Likewise.
34794         * modules/unistd (Files, Makefile.am): Likewise.
34795         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34796         (gl_OPENAT_DEFAULTS): New macro.
34797         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34799         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34800         (SYS_STAT_H): Remove unused variable.
34801         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34802         * lib/fcntl--.h (includes): Remove unneeded header.
34803         * lib/openat-safer.c (includes): Likewise.
34804         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34805         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34806         appropriate headers.
34807         (__OPENAT_PREFIX): Delete.
34808         * lib/fcntl.in.h (openat): Provide declaration.
34809         (AT_FDCWD): Fix Solaris bug.
34810         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34811         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34812         * lib/fchmodat.c (includes):  Adjust to find declaration.
34813         * lib/fchownat.c (includes): Likewise.
34814         * lib/mkdirat.c (includes): Likewise.
34815         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34816         still visible.
34817
34818 2009-09-02  Eric Blake  <ebb9@byu.net>
34819
34820         errno: use consistently
34821         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34822         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34823         * lib/canonicalize.c (ELOOP): Likewise.
34824         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34825         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34826         * lib/lchown.c (EOPNOTSUPP): Likewise.
34827         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34828         * lib/savewd.c (ESTALE): Likewise.
34829         * lib/settime.c (ENOSYS): Likewise.
34830         * lib/utimens.c (ENOSYS): Likewise.
34831         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34832         * lib/chdir-safer.c (ELOOP): Likewise.
34833         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34834         * modules/c-stack (Depends-on): Add errno.
34835         * modules/canonicalize (Depends-on): Likewise.
34836         * modules/chdir-safer (Depends-on): Likewise.
34837         * modules/fdopendir (Depends-on): Likewise.
34838         * modules/inet_ntop (Depends-on): Likewise.
34839         * modules/inet_pton (Depends-on): Likewise.
34840         * modules/lchown (Depends-on): Likewise.
34841         * modules/openat (Depends-on): Likewise.
34842         * modules/savewd (Depends-on): Likewise.
34843         * modules/settime (Depends-on): Likewise.
34844         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34845
34846         fts: avoid leaking fds
34847         * modules/fts (Depends-on): Add cloexec.
34848         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34849         flag.
34850
34851         fts: make directory fds more robust
34852         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34853         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34854
34855         backupfile, chdir-long, fts, savedir: make safer
34856         * lib/backupfile.c (includes): Use "dirent--.h", since
34857         numbered_backup can write to stderr during readdir.
34858         * lib/savedir.c (includes): Likewise.
34859         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34860         emulation can write to stderr on failure.
34861         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34862         * lib/getcwd.c: Document why opendir_safer is unused.
34863         * lib/glob.c: Likewise.
34864         * lib/scandir.c: Likewise.
34865         * lib/openat-proc.c: Likewise, for open_safer.
34866         * modules/backupfile (Depends-on): Add dirent-safer.
34867         * modules/savedir (Depends-on): Likewise.
34868         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34869         * modules/chdir-long (Depends-on): Add openat-safer.
34870
34871         openat-safer: new module
34872         * modules/openat-safer: New file.
34873         * lib/openat-safer.c: Likewise.
34874         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34875         * lib/fcntl-safer.h (openat_safer): Declare.
34876         * lib/fcntl--.h (openat): Override.
34877         * MODULES.html.sh (File descriptor based I/O): Mention it.
34878         * lib/openat.h: Add double-inclusion guards.
34879         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34880         "fcntl--.h", so we can implement openat.
34881         * modules/openat-safer-tests: New test.
34882         * tests/test-openat-safer.c: New file.
34883
34884         dirent-safer: new module
34885         * modules/dirent-safer: New file.
34886         * lib/dirent--.h: Likewise.
34887         * lib/dirent-safer.h: Likewise.
34888         * lib/opendir-safer.c: Likewise.
34889         * m4/dirent-safer.m4: Likewise.
34890         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34891         * modules/dirent-safer-tests: New test.
34892         * tests/test-dirent-safer.c: New file.
34893         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34894
34895         fdopendir: optimize on mingw
34896         * lib/unistd.in.h (_gl_directory_name): New prototype.
34897         * lib/fchdir.c (_gl_directory_name): Implement it.
34898         (fchdir): Use it to simplify implementation.
34899         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34900         fchdir, when available, to avoid calling [f]chdir().
34901
34902         fdopendir: split into its own module
34903         * lib/openat.c (fdopendir): Move...
34904         * lib/fdopendir.c: ...into new file.
34905         * modules/fdopendir: New module.
34906         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34907         * modules/openat (Depends-on): Add fdopendir.
34908         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34909         fdopendir here.
34910         * modules/savedir (Depends-on): Only need fdopendir, not full
34911         openat.
34912         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34913         * lib/openat.h (fdopendir): Drop prototype.
34914         * lib/dirent.in.h (fdopendir): Provide prototype.
34915         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34916         * modules/dirent (Makefile.am): Substitute them.
34917         * MODULES.html.sh (File system functions): Mention it.
34918         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34919         * modules/fdopendir-tests: New file.
34920         * tests/test-fdopendir.c: Likewise.
34921
34922         fchdir: use more consistent macro convention
34923         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34924         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34925         REPLACE_FCHDIR, rather than relying on config.h macros.
34926         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34927         inside a single make-time REPLACE_FCHDIR block, rather than using
34928         the config.h FCHDIR_REPLACEMENT.
34929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34930         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34931         Manage fstat replacement.
34932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34933         REPLACE_FCHDIR.
34934         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34935         (Makefile.am): Substitute REPLACE_FCHDIR.
34936         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34937         FCHDIR_REPLACEMENT.
34938         * lib/dup-safer.c (dup_safer): Likewise.
34939         * lib/dup2.c (rpl_dup2): Likewise.
34940         * lib/dup3.c (rpl_dup3): Likewise.
34941         * lib/open.c (rpl_open): Likewise.
34942
34943         fchdir: simplify error handling, and support dup3
34944         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34945         stdbool, malloc-posix, realloc-posix.
34946         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34947         (ensure_dirs_slot): Return false on allocation failure.
34948         (rpl_dup2): Delete.
34949         (_gl_register_dup): New function.
34950         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34951         (_gl_register_fd): Close fd on allocation failure.
34952         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34953         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34954         prototype.
34955         (rpl_dup2_fchdir): Delete prototype.
34956         * lib/open.c (open): Update caller.
34957         * lib/dup2.c (dup2): Track fchdir metadata.
34958         * lib/dup3.c (dup3): Likewise.
34959         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34960         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34961
34962 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34963
34964         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34965         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34966         don't pass arguments to AC_OUTPUT.
34967
34968 2009-09-02  Bruno Haible  <bruno@clisp.org>
34969
34970         * modules/mkdtemp (License): Relicense under LGPLv2+.
34971         Reported by Paolo Bonzini.
34972
34973 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34974
34975         Replace uses of obsolete autoconf macros in Jim's modules.
34976         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34977         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34978         can evoke a warning from autoconf when run with -Wobsolete
34979         enabled.  They were declared obsolete for good reasons (see
34980         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34981         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34982         should not continue using the deprecated macros.
34983         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34984         obsolete Autoconf macros with modern counterparts.
34985         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34986         * m4/dos.m4 (gl_AC_DOS): Likewise.
34987         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34988         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34989         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34990         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34991         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34992         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34993         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34994         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34995         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34996         Likewise.
34997         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34998         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34999         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35000         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35001         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35002         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35003
35004 2009-09-01  Eric Blake  <ebb9@byu.net>
35005
35006         fchdir: fix off-by-one bug in previous patch
35007         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35008         (_gl_unregister_fd): Delete useless if.
35009
35010 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35011
35012         maint.mk: sort the list of syntax-check rules
35013         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35014         easier to get a sense of progress when the rules are run sequentially
35015         and take a long time.
35016
35017 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35018
35019         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35020         * modules/netinet_in: Likewise.
35021         * modules/sys_file: Likewise.
35022         * modules/sys_ioctl: Likewise.
35023         * modules/sys_select: Likewise.
35024         * modules/sys_socket: Likewise.
35025         * modules/sys_stat: Likewise.
35026         * modules/sys_time: Likewise.
35027         * modules/sys_times: Likewise.
35028         * modules/sys_utsname: Likewise.
35029         * modules/sys_wait: Likewise.
35030
35031 2009-09-01  Jim Meyering  <meyering@redhat.com>
35032
35033         fts: help ensure that return values are not ignored
35034         * lib/fts_.h (__GNUC_PREREQ): Define.
35035         (__attribute_warn_unused_result__): Define.
35036         (fts_children, fts_close, fts_open, fts_read): Declare with
35037         __attribute_warn_unused_result__.
35038
35039         fts: fts_close now fails also when closing a dir file descriptor fails
35040         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35041         and propagate to caller, along with errno.
35042
35043         announce-gen: correct formatting in --help output
35044         * build-aux/announce-gen (usage): Move the one-line description in
35045         --help output "up", to where it belongs, just after Usage:.
35046
35047 2009-08-31  Eric Blake  <ebb9@byu.net>
35048
35049         fchdir: port to mingw
35050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35051         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35052         opened, then use a substitute.
35053         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35054         replacement.
35055         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35056         (_gl_register_fd): No need to check stat if open already filters
35057         all directories.
35058         (fchdir): Fix error condition to match POSIX.
35059         * modules/fchdir (Depends-on): Add sys_stat.
35060         * doc/posix-functions/open.texi (open): Document the limitation.
35061         * modules/fchdir-tests: New file.
35062         * tests/test-fchdir.c: Likewise.
35063
35064         canonicalize: allow cross-testing from cygwin to mingw
35065         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35066         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35067         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35068         Likewise.
35069         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35070         target does not support symlinks.
35071         * tests/test-canonicalize-lgpl.sh: Likewise.
35072
35073         chown: avoid compilation warning on mingw
35074         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35075         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35076         mingw.
35077         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35078         * modules/chown (Depends-on): Add errno.
35079
35080 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35081
35082         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35083         command.
35084
35085 2009-08-31  Jim Meyering  <meyering@redhat.com>
35086
35087         canonicalize: remove useless initialization
35088         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35089         initialization of local, "end".
35090
35091 2009-08-30  Bruno Haible  <bruno@clisp.org>
35092
35093         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35094         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35095         ENOSYS.
35096
35097 2009-08-30  Bruno Haible  <bruno@clisp.org>
35098
35099         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35100         /usr/xpg4/bin/tr when it exists.
35101         * tests/test-pipe-filter-gi1.sh: Likewise.
35102
35103 2009-08-30  Bruno Haible  <bruno@clisp.org>
35104
35105         Work around deficient /usr/bin/id program on Solaris.
35106         * tests/test-file-has-acl.sh (ID): New variable.
35107         * tests/test-set-mode-acl.sh (ID): Likewise.
35108         * tests/test-copy-acl.sh (ID): Likewise.
35109         * tests/test-copy-file.sh (ID): Likewise.
35110
35111 2009-08-30  Bruno Haible  <bruno@clisp.org>
35112
35113         New module 'xstriconveh'.
35114         * lib/xstriconveh.h: New file.
35115         * lib/xstriconveh.c: New file.
35116         * modules/xstriconveh: New file.
35117
35118 2009-08-30  Bruno Haible  <bruno@clisp.org>
35119
35120         Make it easier to use mem_cd_iconveh.
35121         * lib/striconveh.h (iconveh_t): New type.
35122         (iconveh_open, iconveh_close): New declarations.
35123         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35124         with a single 'const iconveh_t *' argument.
35125         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35126         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35127         with a single 'const iconveh_t *' argument.
35128         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35129         * tests/test-striconveh.c (main): Update.
35130         * NEWS: Mention the change.
35131
35132 2009-08-30  Bruno Haible  <bruno@clisp.org>
35133
35134         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35135         problem.
35136
35137 2009-08-30  Bruno Haible  <bruno@clisp.org>
35138
35139         Work around iconv_open problem on Solaris.
35140         * lib/iconv_open-solaris.gperf: New file.
35141         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35142         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35143         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35144         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35145         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35146         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35147
35148 2009-08-29  Jim Meyering  <meyering@redhat.com>
35149
35150         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35151         * top/maint.mk (cvs-check): Remove target; it was just an alias
35152         to the better-named vc-diff-check.
35153         (maintainer-distcheck): Remove rule.  It was used only from
35154         the (alpha/beta/major) target, and all of its commands but one
35155         were coreutils-specific.
35156         (vc-dist): Remove rule.
35157         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35158         Run vc-diff-check, not vc-dist.
35159         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35160
35161 2009-08-27  Bruno Haible  <bruno@clisp.org>
35162
35163         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35164         of 0.
35165
35166 2009-08-27  Bruno Haible  <bruno@clisp.org>
35167
35168         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35169         compilers.
35170         * doc/func.texi: Document the SunPRO C bug.
35171
35172 2009-08-27  Bruno Haible  <bruno@clisp.org>
35173
35174         Fix link error on Solaris.
35175         * tests/test-parse-duration.c (xstrdup): Remove function.
35176
35177 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35178
35179         ignore-value: handle pointer types, too
35180         * lib/ignore-value.h (__attribute__): Remove definition.
35181         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35182         of a more concise and more-often effective "(void) i" statement.
35183         (ignore_ptr): New function to suppress warnings from functions that
35184         return pointers, and to make it explicit that one function doesn't
35185         handle all cases.
35186
35187 2009-08-25  Bruno Haible  <bruno@clisp.org>
35188
35189         dup2: work around a Linux bug.
35190         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35191         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35192         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35193         Reported by Simon Josefsson.
35194
35195 2009-08-25  Jim Meyering  <meyering@redhat.com>
35196
35197         libguestfs uses gnulib
35198         * users.txt: Add libguestfs.
35199
35200 2009-08-24  Eric Blake  <ebb9@byu.net>
35201
35202         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35203         * lib/pipe2.c (includes): Add binary-io.h.
35204         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35205
35206 2009-08-24  Bruno Haible  <bruno@clisp.org>
35207
35208         Tolerate declared but missing accept4 syscall.
35209         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35210         available.
35211         * lib/sys_socket.in.h (accept4): If the function is already present,
35212         override it.
35213         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35214         * modules/accept4 (Makefile.am): Compile accept4.c always.
35215         Reported by Paolo Bonzini and Eric Blake.
35216
35217 2009-08-23  Bruno Haible  <bruno@clisp.org>
35218
35219         New module 'accept4'.
35220         * lib/sys_socket.in.h (accept4): New declaration.
35221         * lib/accept4.c: New file.
35222         * m4/accept4.m4: New file.
35223         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35224         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35225         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35226         HAVE_ACCEPT4.
35227         * modules/accept4: New file.
35228         * doc/glibc-functions/accept4.texi: Mention the new module.
35229
35230 2009-08-24  Jim Meyering  <meyering@redhat.com>
35231
35232         progname: also set global program_invocation_name, when possible
35233         Before this change, a libtool-enabled program that calls glibc's
35234         error function would report the program name as
35235         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35236         * modules/progname (configure.ac): Check for a declaration of
35237         program_invocation_name.
35238         * lib/progname.c:  Include <errno.h>.
35239         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35240         Set program_invocation_name.
35241
35242 2009-08-23  Bruno Haible  <bruno@clisp.org>
35243
35244         * lib/dup3.c: Include <string.h>.
35245
35246 2009-08-23  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35249         * lib/pipe2.c (pipe2): Likewise.
35250         Suggested by Eric Blake.
35251
35252 2009-08-23  Bruno Haible  <bruno@clisp.org>
35253
35254         Tolerate declared but missing dup3 syscall.
35255         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35256         * lib/unistd.in.h (dup3): If the function is already present,
35257         override it.
35258         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35259         * modules/dup3 (Makefile.am): Compile dup3.c always.
35260         Reported by Paolo Bonzini.
35261
35262 2009-08-23  Bruno Haible  <bruno@clisp.org>
35263
35264         Tolerate declared but missing pipe2 syscall.
35265         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35266         available.
35267         * lib/unistd.in.h (pipe2): If the function is already present,
35268         override it.
35269         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35270         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35271         Reported by Paolo Bonzini.
35272
35273 2009-08-23  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/pipe2.c (pipe2): Move #ifs inside function.
35276
35277 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35278
35279         quotearg: document limitations of quote_these_too
35280         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35281         those limitations are created.
35282         * lib/quotearg.h (set_char_quoting): Document that digits and
35283         letters that are special after backslash are not permitted.
35284         (quotearg_char): Cross-reference set_char_quoting documentation.
35285
35286 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35287
35288         quotearg: implement custom_quoting_style
35289         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35290         right_quote fields.
35291         (set_custom_quoting): New public function.
35292         (quotearg_buffer_restyled): Add left_quote and right_quote
35293         arguments, handle them very much like locale quoting, and update
35294         all uses.
35295         (quotearg_n_custom): New public function.
35296         (quotearg_n_custom_mem): New public function.
35297         (quotearg_custom): New public function.
35298         (quotearg_custom_mem): New public function.
35299         * lib/quotearg.h: Prototype and document new public functions.
35300         (enum quoting_style): For escape_quoting_style and
35301         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35302         ignored even though they're otherwise like c_quoting_style.
35303         Add custom_quoting_style member and document with comparison to
35304         clocale_quoting_style.
35305         * tests/test-quotearg.c (custom_quotes): New array.
35306         (custom_results): New array.
35307         (main): Extend to test custom quoting.
35308
35309 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35310
35311         quotearg: fix right quote escaping when it's in quote_these_too
35312         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35313         quote, be sure to prepend only one backslash.
35314         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35315         (main): Test it.
35316
35317 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35318
35319         quotearg-tests: test escaping of embedded locale quotes
35320         * tests/test-quotearg.c (struct result_strings): Add member for
35321         new input.
35322         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35323         (inputs): Add new input.
35324         (results_g): Add expected results.
35325         (flag_results): Likewise.
35326         (locale_results): Likewise.
35327         (compare_strings): Check those.
35328
35329 2009-08-23  Bruno Haible  <bruno@clisp.org>
35330
35331         Tests for module 'dup3'.
35332         * modules/dup3-tests: New file.
35333         * tests/test-dup3.c: New file.
35334
35335         New module 'dup3'.
35336         * lib/unistd.in.h (dup3): New declaration.
35337         * lib/dup3.c: New file.
35338         * m4/dup3.m4: New file.
35339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35340         HAVE_DUP3.
35341         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35342         * modules/dup3: New file.
35343         * doc/glibc-functions/dup3.texi: Mention the new module.
35344
35345 2009-08-23  Bruno Haible  <bruno@clisp.org>
35346
35347         Tweak the dup2 test.
35348         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35349         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35350         the test file is still empty. Fix argument order of lseek.
35351
35352 2009-08-23  Bruno Haible  <bruno@clisp.org>
35353
35354         Avoid test link errors when the modules getopt-gnu, gettext are used.
35355         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35357
35358 2009-08-23  Bruno Haible  <bruno@clisp.org>
35359
35360         Fix getdtablesize() on mingw.
35361         * lib/getdtablesize.c (getdtablesize): Implement differently.
35362         * lib/unistd.in.h (getdtablesize): Improve comment.
35363
35364 2009-08-23  Bruno Haible  <bruno@clisp.org>
35365
35366         New module 'mkostemp'.
35367         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35368         * lib/stdlib.in.h (mksotemp): New declaration.
35369         * lib/mkostemp.c: New file, from glibc with modifications.
35370         * lib/tempname.h (GT_FILE): Remove outdated comment.
35371         (gen_tempname): Add flags argument.
35372         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35373         (__GT_FILE): Map to 1.
35374         (small_open, large_open): Remove macros.
35375         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35376         * lib/mkstemp.c (mkstemp): Update.
35377         * lib/mkdtemp.c (mkdtemp): Likewise.
35378         * m4/mkostemp.m4: New file.
35379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35380         HAVE_MKOSTEMP.
35381         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35382         HAVE_MKOSTEMP.
35383         * modules/mkostemp: New file, based on modules/mkstemp.
35384         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35385         * NEWS: Mention the change.
35386
35387 2009-08-23  Bruno Haible  <bruno@clisp.org>
35388
35389         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35390         Reported by Eric Blake.
35391
35392 2009-08-23  Bruno Haible  <bruno@clisp.org>
35393
35394         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35395         Reported by Eric Blake.
35396
35397 2009-08-23  Bruno Haible  <bruno@clisp.org>
35398
35399         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35400         * modules/pipe2 (Depends-on): Likewise.
35401
35402 2009-08-23  Eric Blake  <ebb9@byu.net>
35403
35404         fcntl-h: add O_TTY_INIT support
35405         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35406         * tests/test-fcntl-h.c (o): Test it.
35407         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35408
35409         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35410         * modules/fcntl: Move <fcntl.h> header replacement...
35411         * modules/fcntl-h: ...to new name, so as not to collide with
35412         like-named function.
35413         * tests/test-fcntl.c: Rename...
35414         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35415         * modules/fcntl-tests: Rename...
35416         * modules/fcntl-h-tests: ...to this.  Update test file name.
35417         * modules/chdir-long (Depends-on): Update clients.
35418         * modules/chdir-safer (Depends-on): Likewise.
35419         * modules/fcntl-safer (Depends-on): Likewise.
35420         * modules/fts (Depends-on): Likewise.
35421         * modules/mkancesdirs (Depends-on): Likewise.
35422         * modules/mkdir-p (Depends-on): Likewise.
35423         * modules/open (Depends-on): Likewise.
35424         * modules/savewd (Depends-on): Likewise.
35425         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35426         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35427
35428 2009-08-22  Bruno Haible  <bruno@clisp.org>
35429
35430         * modules/binary-io (License): Relicense under LGPL.
35431         * modules/pipe2 (License): Likewise.
35432
35433 2009-08-22  Bruno Haible  <bruno@clisp.org>
35434
35435         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35436         return value.
35437         * lib/pipe-filter-gi.c (filter_init): Likewise.
35438         Reported by Eric Blake.
35439
35440 2009-08-22  Bruno Haible  <bruno@clisp.org>
35441
35442         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35443         * modules/pipe (Depends-on): Add pipe2.
35444
35445 2009-08-22  Bruno Haible  <bruno@clisp.org>
35446
35447         Tests for module 'pipe2'.
35448         * modules/pipe2-tests: New file.
35449         * tests/test-pipe2.c: New file.
35450
35451         New module 'pipe2'.
35452         * lib/unistd.in.h (pipe2): New declaration.
35453         * lib/pipe2.c: New file.
35454         * m4/pipe2.m4: New file.
35455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35456         HAVE_PIPE2.
35457         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35458         * modules/pipe2: New file.
35459         * doc/glibc-functions/pipe2.texi: Mention the new module.
35460
35461 2009-08-22  Bruno Haible  <bruno@clisp.org>
35462
35463         Reference some new glibc functions.
35464         * doc/glibc-functions/accept4.texi: New file.
35465         * doc/glibc-functions/dup3.texi: New file.
35466         * doc/glibc-functions/mkostemp.texi: New file.
35467         * doc/glibc-functions/pipe2.texi: New file.
35468         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35469         (Glibc sys/socket.h): Refer to accept4.
35470         (Glibc unistd.h): Refer to dup3, pipe2.
35471         Reported by Eric Blake.
35472
35473 2009-08-22  Jim Meyering  <meyering@redhat.com>
35474             Bruno Haible  <bruno@clisp.org>
35475
35476         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35477         This makes it so packages using automake-1.11's silent-rules option
35478         can print e.g., a single "GEN    configmake.h" line, rather than
35479         the 30+ statements that perform the job.  If you want to see the
35480         actual commands, you can still run "make V=1".
35481         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35482         so that make output is abbreviated when those variables are defined
35483         appropriately.
35484         * modules/argz: Likewise.
35485         * modules/arpa_inet: Likewise.
35486         * modules/byteswap: Likewise.
35487         * modules/configmake: Likewise.
35488         * modules/dirent: Likewise.
35489         * modules/errno: Likewise.
35490         * modules/fcntl: Likewise.
35491         * modules/float: Likewise.
35492         * modules/fnmatch: Likewise.
35493         * modules/getopt-posix: Likewise.
35494         * modules/glob: Likewise.
35495         * modules/iconv_open: Likewise.
35496         * modules/inttypes: Likewise.
35497         * modules/localcharset: Likewise.
35498         * modules/locale: Likewise.
35499         * modules/math: Likewise.
35500         * modules/netdb: Likewise.
35501         * modules/netinet_in: Likewise.
35502         * modules/poll: Likewise.
35503         * modules/posix_spawnp-tests: Likewise.
35504         * modules/sched: Likewise.
35505         * modules/search: Likewise.
35506         * modules/selinux-h: Likewise.
35507         * modules/signal: Likewise.
35508         * modules/spawn: Likewise.
35509         * modules/stdarg: Likewise.
35510         * modules/stdbool: Likewise.
35511         * modules/stddef: Likewise.
35512         * modules/stdint: Likewise.
35513         * modules/stdio: Likewise.
35514         * modules/stdlib: Likewise.
35515         * modules/string: Likewise.
35516         * modules/strings: Likewise.
35517         * modules/sys_file: Likewise.
35518         * modules/sys_ioctl: Likewise.
35519         * modules/sys_select: Likewise.
35520         * modules/sys_socket: Likewise.
35521         * modules/sys_stat: Likewise.
35522         * modules/sys_time: Likewise.
35523         * modules/sys_times: Likewise.
35524         * modules/sys_utsname: Likewise.
35525         * modules/sys_wait: Likewise.
35526         * modules/sysexits: Likewise.
35527         * modules/time: Likewise.
35528         * modules/unistd: Likewise.
35529         * modules/wchar: Likewise.
35530         * modules/wctype: Likewise.
35531
35532 2009-08-22  Jim Meyering  <meyering@redhat.com>
35533
35534         announce-gen: detect write failure
35535         * build-aux/announce-gen: Add Coda at end.
35536         Remove equivalent-but-more-verbose block at top.
35537
35538 2009-08-19  Akim Demaille  <demaille@gostai.com>
35539
35540         bootstrap: --help to stdout.
35541         * bootstrap (usage): Don't send --help to stderr.
35542         Use a here doc instead of a long string.
35543
35544 2009-08-21  Eric Blake  <ebb9@byu.net>
35545
35546         test-popen-safer: split from test-popen
35547         * tests/test-popen.c (main): Move...
35548         * tests/test-popen.h: ...into new file.
35549         * tests/test-popen-safer2.c: New file.
35550         * modules/popen-tests (Files): Add test-popen.h.
35551         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35552         Suggested by Bruno Haible.
35553
35554         test-fcntl-safer: split from test-open
35555         * tests/test-open.c (main): Move...
35556         * tests/test-open.h: ...into new file.
35557         * tests/test-fcntl-safer.c: New file.
35558         * modules/open-tests (Files): Add test-open.h.
35559         * modules/fcntl-safer-tests: New file.
35560         Suggested by Bruno Haible.
35561
35562         test-fopen-safer: split from test-fopen
35563         * tests/test-fopen.c (main): Move...
35564         * tests/test-fopen.h: ...into new file.
35565         * tests/test-fopen-safer.c: New file.
35566         * modules/fopen-tests (Files): Add test-fopen.h.
35567         * modules/fopen-safer-tests: New file.
35568         Suggested by Bruno Haible.
35569
35570 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35571
35572         popen-safer: test O_CLOEXEC at run-time.
35573         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35574
35575 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35576
35577         fcntl: move more flags to the header
35578         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35579         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35580         * lib/fcntl.in.h: Do both things here.
35581
35582 2009-08-21  Jim Meyering  <meyering@redhat.com>
35583
35584         consistently remove $@-t before redirecting to it
35585         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35586         * modules/alloca-opt: Likewise.
35587         * modules/byteswap: Likewise.
35588         * modules/fnmatch: Likewise.
35589         * modules/getopt-posix: Likewise.
35590         * modules/glob: Likewise.
35591         * modules/poll: Likewise.
35592         * modules/posix_spawnp-tests: Likewise.
35593         * modules/sys_socket: Likewise.
35594         * modules/sysexits: Likewise.
35595
35596 2009-08-21  Eric Blake  <ebb9@byu.net>
35597
35598         popen: simplify access to original popen
35599         * lib/popen.c (rpl_popen): No need to worry about popen being a
35600         macro.
35601         Reported by Bruno Haible.
35602
35603 2009-08-20  Eric Blake  <ebb9@byu.net>
35604
35605         build: avoid some compiler warnings
35606         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35607         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35608         type.
35609         (new_exclude_segment, excluded_file_pattern_p)
35610         (excluded_file_name_p): Reduce scope.
35611         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35612         old-style declaration.
35613
35614 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35615
35616         * tests/test-exclude1.sh: Handle Windows EOL.
35617         * tests/test-exclude2.sh: Likewise.
35618         * tests/test-exclude3.sh: Likewise.
35619         * tests/test-exclude4.sh: Likewise.
35620         * tests/test-exclude5.sh: Likewise.
35621         * tests/test-exclude6.sh: Likewise.
35622         * tests/test-exclude7.sh: Likewise.
35623
35624 2009-08-19  Akim Demaille  <demaille@gostai.com>
35625
35626         bootstrap: find sha1sum when named gsha1sum.
35627         * bootstrap (find_tool): New.
35628         ($SHA1SUM): New.
35629         Use it.
35630
35631 2009-08-20  Jim Meyering  <meyering@redhat.com>
35632
35633         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35634         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35635         expression that converts "." in a file name to "\." in the resulting
35636         regexp.  Start with a dummy statement, so that prior shell variable
35637         definitions are expanded portably.  Reported by Simon Josefsson.
35638
35639 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35640
35641         Fix polling for writeability of a screen buffer.
35642         * lib/poll.c: Distinguish input and screen buffers for the
35643         Win32 implementation.
35644         * lib/select.c: Likewise.
35645
35646 2009-08-19  Eric Blake  <ebb9@byu.net>
35647
35648         popen-safer: prevent popen from clobbering std descriptors
35649         * modules/popen-safer: New file.
35650         * lib/popen-safer.c: Likewise.
35651         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35652         * lib/stdio--.h (popen): Provide override.
35653         * lib/stdio-safer.h (popen_safer): Provide declaration.
35654         * tests/test-popen.c (includes): Partially test this.
35655         * modules/popen-safer-tests: New file, for more tests.
35656         * tests/test-popen-safer.c: Likewise.
35657         * MODULES.html.sh (file stream based Input/Output): Mention it.
35658
35659         tests: test some of the *-safer modules
35660         * modules/fopen-safer (Depends-on): Add fopen.
35661         * modules/fcntl-safer (Depends-on): Add fcntl.
35662         * modules/stdlib-safer (Depends-on): Add stdlib.
35663         (configure.ac): Set indicator.
35664         * modules/unistd-safer (configure.ac): Likewise.
35665         * modules/tmpfile-safer (configure.ac): Likewise.
35666         (Depends-on): Add tmpfile.
35667         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35668         active.
35669         * tests/test-fopen.c (includes): Test safer versions when they are
35670         in use.
35671         * tests/test-open.c (includes): Likewise.
35672
35673         popen: fix cygwin 1.5 bug when stdin closed
35674         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35675         * modules/popen: New file.
35676         * modules/popen-tests: Likewise.
35677         * tests/test-popen.c: Likewise.
35678         * m4/popen.m4: Likewise.
35679         * lib/popen.c: Likewise.
35680         * lib/stdio.in.h (popen): New declaration.
35681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35682         * modules/stdio (Makefile.am): Likewise.
35683         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35684
35685 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35686
35687         maint.mk: give full control over update-copyright exclusions
35688         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35689         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35690         (update-copyright): Don't force inclusion of top-level
35691         ChangeLog.  Don't force exclusion of all COPYING files, but make
35692         them the default exclusion instead.
35693
35694 2009-08-16  Bruno Haible  <bruno@clisp.org>
35695
35696         Fix test failures on Solaris 10.
35697         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35698         tests when Solaris iconv() is used.
35699         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35700         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35701         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35702         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35703         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35704
35705 2009-08-16  Bruno Haible  <bruno@clisp.org>
35706
35707         Fix test failures on Solaris 10.
35708         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35709         'tr' program and pass it as first argument.
35710         * tests/test-pipe-filter-gi1.sh: Likewise.
35711         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35712         program as first argument.
35713         * tests/test-pipe-filter-gi1.c (main): Likewise.
35714
35715 2009-08-16  Eric Blake  <ebb9@byu.net>
35716
35717         fpurge: fix previous commits
35718         * modules/fpurge (Makefile.am): Make replacement conditional,
35719         partially reverting 2007-04-29 change; missed in previous
35720         attempt.
35721         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35722         is missing.
35723
35724 2009-08-16  Bruno Haible  <bruno@clisp.org>
35725
35726         Clarify fpurge's effect on the file position.
35727         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35728         * tests/test-fpurge.c (main): Make a second pass for checking the file
35729         position.
35730
35731 2009-08-16  Bruno Haible  <bruno@clisp.org>
35732
35733         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35734         declaration of fpurge is missing.
35735         * tests/test-fpurge.c (main): Check that the file has not more contents
35736         than expected. Close the file before removing it.
35737
35738 2009-08-15  Eric Blake  <ebb9@byu.net>
35739
35740         fpurge: don't wrap working cygwin implementation
35741         * lib/fpurge.c (fpurge): Fix comment typo.
35742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35743         1.7 to avoid replacement.
35744         * tests/test-fpurge.c (main): Enhance test.
35745
35746 2009-08-15  Eric Blake  <ebb9@byu.net>
35747         and Jim Meyering  <meyering@redhat.com>
35748
35749         test-update-copyright: skip if perl is insufficient
35750         * tests/test-update-copyright.sh: Failure to run maintainer tool
35751         should not cause testsuite failure on cygwin 1.5.
35752
35753 2009-08-14  Eric Blake  <ebb9@byu.net>
35754
35755         doc: mention more functions added in cygwin 1.7.0
35756         * doc/posix-headers/limits.texi (limits.h): Update for recent
35757         cygwin additions.
35758         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35759         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35760         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35761         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35762         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35763
35764 2009-08-14  Eric Blake  <ebb9@byu.net>
35765
35766         maint.mk: simplify update-copyright rule
35767         * top/maint.mk (update-copyright-local): Delete, and document how
35768         to do it in cfg.mk instead.
35769         (update-copyright-exclude-regexp): Delete, and document how to do
35770         it in .x-update-copyright instead.
35771         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35772         exclude ChangeLog.
35773
35774 2009-08-14  Bruno Haible  <bruno@clisp.org>
35775
35776         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35777
35778 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35779
35780         maint.mk: support update-copyright-env
35781         * top/maint.mk (update-copyright-env): Define place-holder.
35782         (update-copyright): Expand $(update-copyright-env) before
35783         invoking update-copyright.
35784
35785 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35786
35787         update-copyright: implement forced reformatting
35788         * build-aux/update-copyright: Implement and document
35789         UPDATE_COPYRIGHT_FORCE.
35790         * tests/test-update-copyright.sh: Test it.
35791
35792 2009-08-14  Eric Blake  <ebb9@byu.net>
35793         and Bruno Haible  <bruno@clisp.org>
35794
35795         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35796         * tests/test-locale.c: Revert previous patch related to NULL.
35797         * tests/test-stdio.c: Likewise.
35798         * tests/test-stdlib.c: Likewise.
35799         * tests/test-string.c: Likewise.
35800         * tests/test-unistd.c: Likewise.
35801         * modules/time-tests (Depends-on): Add verify.
35802         * modules/wchar-tests (Depends-on): Likewise.
35803         * tests/test-time.c: Test for NULL compliance.
35804         * tests/test-wchar.c: Likewise.
35805         * modules/locale (Depends-on): Add stddef.
35806         * modules/stdio (Depends-on): Likewise.
35807         * modules/stdlib (Depends-on): Likewise.
35808         * modules/string (Depends-on): Likewise.
35809         * modules/time (Depends-on): Likewise.
35810         * modules/unistd (Depends-on): Likewise.
35811         * modules/wchar (Depends-on): Likewise.
35812         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35813         * lib/stdlib.in.h (includes): Likewise.
35814         * lib/string.in.h (includes): Likewise.
35815         * lib/time.in.h (includes): Likewise.
35816         * lib/unistd.in.h (includes): Likewise.
35817         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35818         replaced.
35819         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35820         * m4/stddef_h.m4: New file.
35821         * modules/stddef: Likewise.
35822         * lib/stddef.in.h: Likewise.
35823         * modules/stddef-tests: Likewise.
35824         * tests/test-stddef.c: Likewise.
35825         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35826         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35827         * doc/posix-headers/locale.texi (locale.h): Likewise.
35828         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35829         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35830         * doc/posix-headers/string.texi (string.h): Likewise.
35831         * doc/posix-headers/time.texi (time.h): Likewise.
35832         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35833         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35834
35835 2009-08-14  Eric Blake  <ebb9@byu.net>
35836
35837         doc: improve git diff of texinfo files
35838         * .gitattributes: Add rule for *.texi files, with hint on how to
35839         use it.
35840         Copied from m4, and based on a report by Bruno Haible.
35841
35842 2009-08-14  Bruno Haible  <bruno@clisp.org>
35843
35844         Disable multithread support by default on Cygwin 1.5.x for real.
35845         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35846
35847 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35848
35849         update-copyright: much ado about intervals
35850         * build-aux/update-copyright: Implement and document
35851         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35852         of copyright year intervals.
35853         Also, document UPDATE_COPYRIGHT_YEAR.
35854         * tests/test-update-copyright.sh: Test it.
35855
35856         update-copyright: convert 2-digit to 4-digit years
35857         * build-aux/update-copyright: Implement and document.
35858         * tests/test-update-copyright.sh: Update.
35859
35860 2009-08-14  Jim Meyering  <meyering@redhat.com>
35861
35862         test-exclude: avoid coreutils "make check" failure
35863         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35864         just as in test-argmatch.c.
35865
35866 2009-08-13  Eric Blake  <ebb9@byu.net>
35867
35868         test-dup2: fix bad assumption
35869         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35870         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35871
35872         test-version-etc: fix CRLF portability issue
35873         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35874         recognize \r.
35875         * tests/test-argp-version-etc-1.sh: Likewise.
35876
35877         getopt: update client modules
35878         * modules/argp (Depends-on): Use getopt-gnu.
35879         * modules/git-merge-changelog (Depends-on): Likewise.
35880         * modules/long-options (Depends-on): Likewise.
35881         * modules/xstrtol (Depends-on): Likewise.
35882
35883 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35884
35885         * tests/test-version-etc.sh: Don't fail on different
35886         project/version.  Don't fail on CRLF differences.  Rewrite to use
35887         multiple -e instead of multiple sed forks, suggested by Eric Blake
35888         <ebb9@byu.net>.
35889         * tests/test-argp-version-etc-1.sh: Likewise.
35890
35891 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35892
35893         * tests/test-version-etc.sh: Don't fail on different
35894         project/version.
35895
35896 2009-08-12  Bruno Haible  <bruno@clisp.org>
35897
35898         Tests for modules 'getopt-posix', 'getopt-gnu'.
35899         * modules/getopt-posix-tests: New file.
35900         * tests/test-getopt.c: New file.
35901         * tests/test-getopt.h: New file.
35902         * tests/test-getopt_long.h: New file.
35903
35904         New modules 'getopt-posix', 'getopt-gnu'.
35905         * modules/getopt-gnu: New file, renamed from modules/getopt.
35906         * modules/getopt-posix: New file.
35907         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35908         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35909         (gl_GETOPT): Remove macro.
35910         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35911         Disable the test against BSD systems that declare optreset. Test
35912         against mingw bug. Test against lack of support of optional arguments
35913         on many platforms.
35914         * doc/glibc-headers/getopt.texi: Update module name and list of
35915         relevant platforms.
35916         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35917         'getopt-gnu' and more portability problems.
35918         * NEWS: Mention the changes.
35919
35920 2009-08-12  Bruno Haible  <bruno@clisp.org>
35921
35922         Ensure that optarg etc. get declared by <unistd.h>.
35923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35924         AC_USE_SYSTEM_EXTENSIONS.
35925         * modules/getopt (Depends-on): Add 'extensions'.
35926
35927 2009-08-12  Bruno Haible  <bruno@clisp.org>
35928
35929         Avoid test link errors.
35930         * modules/pipe-filter-ii-tests (Makefile.am): Define
35931         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35932         * modules/pipe-filter-gi-tests (Makefile.am): Define
35933         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35935
35936 2009-08-12  Bruno Haible  <bruno@clisp.org>
35937
35938         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35939         gl_GETOPT_SUBSTITUTE before.
35940         (gl_GETOPT): Use it.
35941         * m4/argp.m4 (gl_ARGP): Update.
35942         Reported by Sergey Poznyakoff.
35943
35944         * m4/getopt.m4: Reorder macros.
35945         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35946         (gl_GETOPT_SUBSTITUTE): Remove macro.
35947
35948 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35949
35950         Minor improvement in gitlog-to-changelog
35951
35952         * build-aux/gitlog-to-changelog: New option `--format' makes
35953         output format string configurable.
35954
35955 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35956
35957         Optimize exclude: use hash tables for non-wildcard patterns.
35958
35959         * lib/exclude.c: Include hash.h and mbuiter.h
35960         (struct exclude_pattern, exclude_segment): New data types.
35961         (struct exclude): Rewrite.
35962         (fnmatch_pattern_has_wildcards): New function.
35963         (new_exclude_segment, free_exclude_segment): New functions.
35964         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35965         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35966         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35967         * modules/exclude: Depend on hash and mbuiter.
35968
35969         * modules/exclude-tests: New file.
35970         * tests/test-exclude.c: New file.
35971         * tests/test-exclude1.sh: New file.
35972         * tests/test-exclude2.sh: New file.
35973         * tests/test-exclude3.sh: New file.
35974         * tests/test-exclude4.sh: New file.
35975         * tests/test-exclude5.sh: New file.
35976         * tests/test-exclude6.sh: New file.
35977         * tests/test-exclude7.sh: New file.
35978
35979 2009-08-12  Bruno Haible  <bruno@clisp.org>
35980
35981         Ensure that getopt() gets declared by <unistd.h>.
35982         * lib/unistd.in.h: Conditionally include getopt.h.
35983         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35984         Set GNULIB_UNISTD_H_GETOPT.
35985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35986         GNULIB_UNISTD_H_GETOPT.
35987         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35988
35989 2009-08-12  Bruno Haible  <bruno@clisp.org>
35990
35991         Clarify logic.
35992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35993         gl_replace_getopt instead of GETOPT_H.
35994
35995 2009-08-12  Bruno Haible  <bruno@clisp.org>
35996
35997         * m4/getopt.m4: Add comments.
35998
35999 2009-08-12  Bruno Haible  <bruno@clisp.org>
36000
36001         Disable multithread support by default on Cygwin 1.5.x.
36002         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36003         set gl_use_threads=no if not specified otherwise.
36004
36005 2009-08-11  Bruno Haible  <bruno@clisp.org>
36006
36007         Avoid compilation error on NetBSD 5.0.
36008         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36009         * tests/test-stdio.c: Likewise.
36010         * tests/test-stdlib.c: Likewise.
36011         * tests/test-string.c: Likewise.
36012         * tests/test-unistd.c: Likewise.
36013         Reported by Greg Troxel <gdt@ir.bbn.com>
36014         at <https://savannah.gnu.org/support/?106973>.
36015
36016 2009-08-11  Bruno Haible  <bruno@clisp.org>
36017
36018         * modules/dup2-tests (Depends-on): Remove close.
36019
36020         Undo 2009-07-19 commit.
36021         * modules/acl-tests (Depends-on): Remove close.
36022         * modules/binary-io-tests (Depends-on): Likewise.
36023         * modules/closein-tests (Depends-on): Likewise.
36024         * modules/flock-tests (Depends-on): Likewise.
36025         * modules/fsync-tests (Depends-on): Likewise.
36026         * modules/lseek-tests (Depends-on): Likewise.
36027         * modules/pipe-tests (Depends-on): Likewise.
36028         * modules/posix_spawn-tests (Depends-on): Likewise.
36029         * modules/posix_spawnp-tests (Depends-on): Likewise.
36030         * modules/stat-time-tests (Depends-on): Likewise.
36031         * modules/yesno-tests (Depends-on): Likewise.
36032
36033 2009-08-10  Bruno Haible  <bruno@clisp.org>
36034
36035         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36036
36037 2009-08-10  Bruno Haible  <bruno@clisp.org>
36038
36039         Fix a gcc warning.
36040         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36041
36042 2009-08-10  Bruno Haible  <bruno@clisp.org>
36043
36044         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36045         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36046         not only the first time.
36047         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36048         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36049         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36050         is 1, not only the the first time.
36051
36052 2009-08-10  Bruno Haible  <bruno@clisp.org>
36053
36054         Make it possible to use module 'gethostname' without module 'close'.
36055         * lib/unistd.in.h (close): Evoke a link error only if
36056         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36058         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36059         * modules/unistd (Makefile.am): Substitute
36060         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36061         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36062         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36063         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36064         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36065         * modules/sys_ioctl (Makefile.am): Substitute
36066         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36067         * modules/socket (configure.ac): On native Windows, set
36068         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36069         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36070         Reported by Sam Steingold <sds@gnu.org>.
36071
36072 2009-08-10  Bruno Haible  <bruno@clisp.org>
36073
36074         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36075         * modules/ioctl (configure.ac): Likewise.
36076
36077 2009-08-10  Bruno Haible  <bruno@clisp.org>
36078
36079         Avoid collision between gnulib wrapper and libintl wrapper.
36080         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36081         already defined in intl/printf.c.
36082         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36083         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36084
36085 2009-08-09  Bruno Haible  <bruno@clisp.org>
36086
36087         Make <sys/select.h> really self-contained, also on Solaris 10.
36088         * lib/sys_select.in.h: Include <string.h>.
36089         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36090         Solaris 10 problem.
36091         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36092         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36093         Reported by Jim Meyering.
36094
36095 2009-08-09  Bruno Haible  <bruno@clisp.org>
36096
36097         Avoid warnings from 'aclocal' that are due to a use of macro name
36098         AM_XGETTEXT_OPTION that is not defined in automake.
36099         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36100         automake.
36101         * modules/error (configure.ac): Likewise.
36102         * modules/propername (configure.ac): Likewise.
36103         * modules/vasprintf (configure.ac): Likewise.
36104         * modules/verror (configure.ac): Likewise.
36105         * modules/xprintf (configure.ac): Likewise.
36106         * modules/xvasprintf (configure.ac): Likewise.
36107
36108 2009-08-08  Bruno Haible  <bruno@clisp.org>
36109
36110         Avoid compilation error in C++ mode.
36111         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36112         Reported by Sam Steingold <sds@gnu.org>.
36113
36114 2009-08-08  Bruno Haible  <bruno@clisp.org>
36115
36116         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36117         for the various Unix platforms.
36118         * doc/posix-headers/limits.texi: Update platforms list regarding
36119         HOST_NAME_MAX.
36120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36121
36122 2009-08-07  Jim Meyering  <meyering@redhat.com>
36123
36124         selinux-at: fix typo in a comment
36125         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36126         Spotted by Paolo Bonzini.
36127
36128         selinux-at: remove redundant m4 code, add documentation
36129         * modules/selinux-at (configure.ac): Remove redundant code.
36130         LIB_SELINUX is already set via the dependent module, selinux-h.
36131         (Include): Add quotes around selinux-at.h.
36132         * lib/selinux-at.h: Add documentation.
36133         Reported by Bruno Haible in
36134         http://marc.info/?l=gnulib-bug&m=124958988300749
36135
36136 2009-08-07  Bruno Haible  <bruno@clisp.org>
36137
36138         Avoid link error on MacOS X 10.3 and 10.4.
36139         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36140         on non-ELF systems.
36141         * lib/argp-pv.c (argp_program_version): Likewise.
36142         Reported by Simon Josefsson.
36143
36144 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36145
36146         * tests/test-version-etc.sh: Use $EXEEXT.
36147
36148 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36149
36150         update-copyright: update documentation to point to maint.mk
36151         * build-aux/update-copyright: Here.
36152
36153 2009-08-06  Jim Meyering  <meyering@redhat.com>
36154
36155         maint.mk: support update-copyright-local
36156         * top/maint.mk (update-copyright-local): Define place-holder.
36157         (update-copyright): Depend on $(update-copyright-local).
36158
36159 2009-08-06  Jim Meyering  <meyering@redhat.com>
36160
36161         selinux-at: new module
36162         Initially written for coreutils, this module will soon be
36163         used by findutils, too.
36164         * MODULES.html.sh [Misc]: Add selinux-at.
36165         * lib/selinux-at.h: New file, from coreutils.
36166         * lib/selinux-at.c: Likewise.
36167         * modules/selinux-at: Likewise.
36168         (License): Change from LGPL to GPL, since it depends
36169         on the GPL'd openat module.
36170
36171         doc: update README
36172         * README: Remove references to cogito.
36173         Remove cvs-repo-updating instructions from 2007.
36174         Don't imply that CVS is better if you have limited disk space.
36175
36176 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36177
36178         update-copyright: support C-style comments
36179         * build-aux/update-copyright: Implement and document.
36180         * tests/test-update-copyright.sh: Test.
36181
36182 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36183
36184         update-copyright: support omitted "(C)"
36185         * build-aux/update-copyright: Implement and document.  Also,
36186         allow variable whitespace before "(C)".
36187         * tests/test-update-copyright.sh: Test.
36188
36189 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36190
36191         update-copyright: don't trip on non-FSF copyright statements
36192         * build-aux/update-copyright: Fix so that the first correctly
36193         formatted FSF copyright statement is recognized no matter what
36194         appears before it.  Update documentation.
36195         * tests/test-update-copyright.sh: Test that.
36196
36197 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36198
36199         update-copyright: clean up code a little
36200         * build-aux/update-copyright: Append "_re" to the name of any
36201         variable holding a regular expression.
36202         Replace "old" and "new" with "stmt" in variable names.
36203         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36204         handled correctly.
36205         Format code more consistently.
36206
36207 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36208
36209         update-copyright-tests: improve portability
36210         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36211         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36212
36213 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36214
36215         update-copyright: support @copyright{} and &copy;
36216         * build-aux/update-copyright: Implement and document.
36217         * tests/test-update-copyright.sh: Test.
36218
36219 2009-08-04  Jim Meyering  <meyering@redhat.com>
36220
36221         update-copyright-tests: correctly test EOL=\r\n handling
36222         * tests/test-update-copyright.sh: Put \r at the end of some lines
36223         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36224
36225         maint.mk: make update-copyright exclusion list more configurable
36226         * top/maint.mk (update-copyright): Default to excluding COPYING,
36227         but allow an override, in case someone does want to update that file.
36228
36229         maint.mk: don't update copyright date in COPYING
36230         * top/maint.mk (update-copyright): Exclude COPYING.
36231
36232         maint.mk: add a copyright-updating rule
36233         * top/maint.mk (update-copyright): New rule.
36234         Derived from coreutils/Makefile.am.
36235
36236         update-copyright: rename some variables
36237         * build-aux/update-copyright: Rename a few variables for clarity.
36238         Tweak syntax.  List Joel E. Denny as coauthor.
36239
36240 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36241
36242         update-copyright: fix bug for 2-digit last year and add tests
36243         * build-aux/update-copyright: Fix bug.
36244         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36245         specified.
36246         * modules/update-copyright-tests: New
36247         * tests/test-update-copyright.sh: New.
36248
36249 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36250
36251         update-copyright: handle leading tabs in line prefix
36252         * build-aux/update-copyright: Count leading tabs as 8 spaces
36253         when computing margin.  This helps with the formatting of
36254         ChangeLogs, for example.
36255         Fix documentation a little.
36256
36257 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36258
36259         update-copyright: support EOL=\r\n
36260         * build-aux/update-copyright: Implement that.
36261
36262 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36263
36264         update-copyright: automatically format copyright statements
36265         * build-aux/update-copyright: Implement that.
36266         Also, be a little more predictable and safer by always failing
36267         when the full copyright format is not perfectly recognized as an
36268         unbroken whole.  Discussed at
36269         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36270         Rewrite documentation.
36271
36272 2009-08-03  Bruno Haible  <bruno@clisp.org>
36273
36274         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36275
36276 2009-08-02  Bruno Haible  <bruno@clisp.org>
36277
36278         Tests for module 'uname'.
36279         * modules/uname-tests: New file.
36280         * tests/test-uname.c: New file.
36281
36282         New module 'uname'.
36283         * lib/uname.c: New file.
36284         * m4/uname.m4: New file.
36285         * modules/uname: New file.
36286         * doc/posix-functions/uname.texi: Mention the new module.
36287
36288 2009-08-02  Bruno Haible  <bruno@clisp.org>
36289
36290         Tests for module 'sys_utsname'.
36291         * modules/sys_utsname-tests: New file.
36292         * tests/test-sys_utsname.c: New file.
36293
36294         New module 'sys_utsname'.
36295         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36296         * m4/sys_utsname_h.m4: New file.
36297         * modules/sys_utsname: New file.
36298         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36299
36300 2009-08-02  Bruno Haible  <bruno@clisp.org>
36301
36302         Implicitly initialize the sockets library.
36303         * lib/gethostname.c: Include sockets.h.
36304         (rpl_gethostname): Invoke gl_sockets_startup.
36305         * lib/socket.c: Include sockets.h.
36306         (rpl_socket): Invoke gl_sockets_startup.
36307         * modules/gethostname (Depends-on): Add sockets.
36308         * modules/socket (Depends-on): Likewise.
36309         * tests/test-poll.c: Don't include sockets.h.
36310         (main): Don't invoke gl_sockets_startup.
36311         * tests/test-select.c: Don't include sockets.h.
36312         (main): Don't invoke gl_sockets_startup.
36313
36314 2009-08-02  Bruno Haible  <bruno@clisp.org>
36315
36316         Allow multiple calls to gl_sockets_startup.
36317         * lib/sockets.c (initialized_sockets_version): New variable.
36318         (gl_sockets_startup): Do nothing if already called for this or a higher
36319         version.
36320         (gl_sockets_cleanup): Reset initialized_sockets_version.
36321
36322 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36323
36324         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36325         different project/version.
36326
36327 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36328             Bruno Haible  <bruno@clisp.org>
36329
36330         Tests for module 'pipe-filter-gi'.
36331         * modules/pipe-filter-gi-tests: New file.
36332         * tests/test-pipe-filter-gi1.sh: New file.
36333         * tests/test-pipe-filter-gi1.c: New file.
36334         * tests/test-pipe-filter-gi2.sh: New file.
36335         * tests/test-pipe-filter-gi2-main.c: New file.
36336         * tests/test-pipe-filter-gi2-child.c: New file.
36337
36338         New module 'pipe-filter-gi'.
36339         * lib/pipe-filter-gi.c: New file.
36340         * modules/pipe-filter-gi: New file.
36341
36342 2009-08-02  Bruno Haible  <bruno@clisp.org>
36343             Paolo Bonzini  <bonzini@gnu.org>
36344
36345         Tests for module 'pipe-filter-ii'.
36346         * modules/pipe-filter-ii-tests: New file.
36347         * tests/test-pipe-filter-ii1.sh: New file.
36348         * tests/test-pipe-filter-ii1.c: New file.
36349         * tests/test-pipe-filter-ii2.sh: New file.
36350         * tests/test-pipe-filter-ii2-main.c: New file.
36351         * tests/test-pipe-filter-ii2-child.c: New file.
36352
36353         New module 'pipe-filter-ii'.
36354         * lib/pipe-filter.h: New file.
36355         * lib/pipe-filter-ii.c: New file.
36356         * lib/pipe-filter-aux.h: New file.
36357         * modules/pipe-filter-ii: New file.
36358
36359 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36360
36361         * lib/gc-libgcrypt.c: Change copyright to FSF.
36362         * lib/gc-gnulib.c: Likewise.
36363
36364 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36365
36366         * lib/gethostname.c: Include limits.h.
36367
36368 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36369             Bruno Haible  <bruno@clisp.org>
36370
36371         Ensure HOST_NAME_MAX as part of the gethostname module.
36372         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36373         define also HOST_NAME_MAX.
36374         * tests/test-gethostname.c: Include <limits.h>.
36375         (main): Check also HOST_NAME_MAX.
36376         * doc/posix-headers/limits.texi: Document the mingw problem.
36377
36378 2009-08-02  Bruno Haible  <bruno@clisp.org>
36379
36380         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36381         Add comments.
36382
36383 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36384
36385         * lib/gethostname.c: Add Windows wrapper.
36386         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36387         * modules/gethostname: Depend on sys_socket & errno, for also
36388         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36389         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36390
36391 2009-07-31  Jim Meyering  <meyering@redhat.com>
36392
36393         getloadavg: fix symbol name in comment
36394         * lib/getloadavg.c: Correct a typo I introduced when adding
36395         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36396         Matt Kraai spotted the problem.
36397
36398 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36399
36400         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36401         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36402         code also if ! defined N_NAME_POINTER.
36403         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36404         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36405         but the n_name member is a 12-byte array.
36406
36407 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36408
36409         update-copyright: generalize comment handling
36410         * build-aux/update-copyright: Handle copyright statements
36411         within more comment styles.
36412         Document usage.
36413         Report any file with an external copyright holder or parse failure.
36414
36415 2009-07-29  Jim Meyering  <meyering@redhat.com>
36416
36417         mktime: correct setting of REPLACE_MKTIME
36418         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36419
36420         update-copyright: new module
36421         * modules/update-copyright: New file.
36422         * build-aux/update-copyright: New file.
36423         * MODULES.html.sh (maint+release support): Add update-copyright.
36424
36425 2009-07-27  Bruno Haible  <bruno@clisp.org>
36426
36427         Fix compilation error when <ctime> is used and mktime is replaced.
36428         * lib/time.in.h (mktime): New declaration.
36429         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36430         REPLACE_MKTIME instead of defining mktime in config.h.
36431         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36432         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36433         Reported by Ross McFarland <rwmcfa1@neces.com>.
36434
36435 2009-07-27  Bruno Haible  <bruno@clisp.org>
36436
36437         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36438         Reported by Matt Kraai <mkraai@beckman.com>.
36439
36440 2009-07-25  Jim Meyering  <meyering@redhat.com>
36441
36442         maint.mk: avoid warnings about missing files
36443         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36444         diagnostic when .prev-version does not exist.
36445         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36446         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36447         nonexistent cfg.mk.
36448         Suggestions from Simon Josefsson.
36449
36450 2009-07-25  Bruno Haible  <bruno@clisp.org>
36451
36452         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36453         defined as macros. Needed on QNX 6.4.1.
36454         Reported by Matt Kraai <mkraai@beckman.com>.
36455
36456 2009-07-23  Jim Meyering  <meyering@redhat.com>
36457
36458         maint.mk: invoke "make dist" with a working value of XZ_OPT
36459         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36460
36461 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36462
36463         Make fseeko.c compile on QNX.
36464         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36465
36466 2009-07-22  Peter Simons  <simons@cryp.to>
36467
36468         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36469         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36470         * lib/md4.h: Likewise.
36471         * lib/md5.h: Likewise.
36472         * lib/sha1.h: Likewise.
36473         * lib/sha256.h: Likewise.
36474         * lib/sha512.h: Likewise.
36475
36476         tests-sha1: don't assign literal string to 'char *' variable
36477         * tests/test-sha1.c (main): Declare locals with "const" to match
36478         attributes of the right hand side.
36479
36480 2009-07-21  Eric Blake  <ebb9@byu.net>
36481
36482         dup2: fix more mingw problems
36483         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36484         fd to itself.
36485         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36486         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36487         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36488         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36489         care of mingw bugs.
36490
36491 2009-07-21  Jim Meyering  <meyering@redhat.com>
36492
36493         vc-list-files: avoid failure when /bin/sh is dash
36494         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36495         On some Debian based systems, /bin/sh is a symlink to dash, and running
36496         this command would omit the "/" following each 'tests' prefix:
36497           dash -x build-aux/vc-list-files -C . tests
36498         That is because bash and dash work differently:
36499           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36500           bash ok
36501           dash odd
36502
36503 2009-07-21  Eric Blake  <ebb9@byu.net>
36504
36505         dup2-tests: test previous patch
36506         * modules/dup2-tests: New file.
36507         * tests/test-dup2.c: Likewise.
36508         * tests/test-open.c (main): Avoid unspecified behavior.
36509         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36510         test.
36511
36512         dup2: work around mingw and cygwin 1.5 bug
36513         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36515         * modules/unistd (Makefile.am): Substitute it.
36516         * lib/unistd.in.h (dup2): Declare the replacement.
36517         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36518         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36519         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36520         * modules/execute (Depends-on): Add dup2.
36521         * modules/fseterr (Depends-on): Likewise.
36522         * modules/pipe (Depends-on): Likewise.
36523         * modules/posix_spawn-internal (Depends-on): Likewise.
36524
36525 2009-07-21  Bruno Haible  <bruno@clisp.org>
36526
36527         * modules/.gitattributes: New file.
36528
36529 2009-07-20  Bruno Haible  <bruno@clisp.org>
36530
36531         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36532         (main): Use it.
36533
36534 2009-07-20  Eric Blake  <ebb9@byu.net>
36535
36536         test-pipe: make a bit more robust.
36537         * tests/test-pipe.c (myerr): Allow error messages regardless of
36538         what we do to stderr.
36539         (test_pipe): Rearrange to avoid deadlock.
36540         (child_main): Try a larger read, to ensure we avoided deadlock.
36541         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36542         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36543         if misused.
36544
36545 2009-07-19  Jim Meyering  <meyering@redhat.com>
36546
36547         fts: avoid false-positive cycle-detection
36548         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36549         for each new command line argument.
36550
36551 2009-07-19  Bruno Haible  <bruno@clisp.org>
36552
36553         Fix build error on mingw with the modules sys_select and unistd.
36554         * modules/acl-tests (Depends-on): Add close.
36555         * modules/binary-io-tests (Depends-on): Likewise.
36556         * modules/closein-tests (Depends-on): Likewise.
36557         * modules/flock-tests (Depends-on): Likewise.
36558         * modules/fsync-tests (Depends-on): Likewise.
36559         * modules/lseek-tests (Depends-on): Likewise.
36560         * modules/pipe-tests (Depends-on): Likewise.
36561         * modules/posix_spawn-tests (Depends-on): Likewise.
36562         * modules/posix_spawnp-tests (Depends-on): Likewise.
36563         * modules/stat-time-tests (Depends-on): Likewise.
36564         * modules/yesno-tests (Depends-on): Likewise.
36565
36566 2009-07-19  Bruno Haible  <bruno@clisp.org>
36567
36568         Unify conditionals.
36569         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36570         macros, not at the compiler macros.
36571         * lib/pipe.c: Likewise.
36572         * lib/execute.c: Likewise.
36573         * lib/spawni.c: Likewise.
36574
36575 2009-07-19  Bruno Haible  <bruno@clisp.org>
36576
36577         Fix handling of closed stdin/stdout/stderr on mingw.
36578         * lib/w32spawn.h: Include unistd.h.
36579         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36580         file descriptor with O_NOINHERIT flag.
36581         (fd_safer_noinherit): New function, based on fd-safer.c.
36582         (dup_safer_noinherit): New function, based on dup-safer.c.
36583         (undup_safer_noinherit): New function.
36584         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36585         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36586         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36587         instead of fd_safer.
36588         * tests/test-pipe.c: Include <windows.h>.
36589         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36590         result.
36591
36592         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36593         from main.
36594         (test_pipe): Pass an extra argument for disambiguation.
36595         (main): Invoke parent_main or child_main.
36596
36597         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36598         consistently.
36599
36600 2009-07-18  Eric Blake  <ebb9@byu.net>
36601
36602         test-pipe: fix mingw build
36603         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36604
36605 2009-07-18  Bruno Haible  <bruno@clisp.org>
36606
36607         * modules/pipe-tests (Makefile.am): Fix typo.
36608
36609 2009-07-18  Eric Blake  <ebb9@byu.net>
36610
36611         error: fix mingw build
36612         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36613         Reported by Bruno Haible.
36614
36615         error: avoid undefined use of stdout
36616         * lib/error.c (error, error_at_line): Check that fd 1 is open
36617         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36618         is handling faults and the close_stdout module wants to report the
36619         detection of closed stdout as an error.
36620
36621 2009-07-17  Eric Blake  <ebb9@byu.net>
36622
36623         pipe: be robust in face of closed fds
36624         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36625         should cause child to misbehave.
36626         * modules/pipe-tests: New module.
36627         * tests/test-pipe.c: New file.
36628         * tests/test-pipe.sh: New file.
36629         Reported by Akim Demaille.
36630
36631 2009-07-14  Bruno Haible  <bruno@clisp.org>
36632
36633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36634         Reported by anonymous kc.
36635
36636 2009-07-07  Jim Meyering  <meyering@redhat.com>
36637
36638         maint.mk: don't look for translatable strings in *.m4 or *.mk
36639         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36640         when searching for translatable strings.
36641
36642 2009-07-05  Jim Meyering  <meyering@redhat.com>
36643
36644         remove superfluous parentheses in STREQ definition
36645         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36646         * lib/getugroups.c (STREQ): Likewise.
36647         * lib/fnmatch.c (STREQ): Likewise.
36648         Spotted by Bruno Haible.
36649
36650 2009-07-04  Jim Meyering  <meyering@redhat.com>
36651
36652         argv-iter: new module
36653         * MODULES.html.sh: Add argv-iter.
36654         * lib/argv-iter.c, lib/argv-iter.h: New files.
36655         * modules/argv-iter: New file.
36656         * modules/argv-iter-tests: New file.
36657         * tests/test-argv-iter.c: Test it.
36658
36659 2009-07-04  Bruno Haible  <bruno@clisp.org>
36660
36661         Fix assertion.
36662         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36663         contains more exact copies of a given entry than file2, leave the extra
36664         copies unpaired rather than aborting.
36665         Reported by Eric Blake.
36666
36667 2009-07-02  Bruno Haible  <bruno@clisp.org>
36668
36669         Speedup git-merge-changelog for git cherry-pick.
36670         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36671         (entries_mapping_get): New function, extracted from compute_mapping.
36672         (entries_mapping_reverse_get): New function.
36673         (compute_mapping): Add a 'full' argument. Return the result in a
36674         'struct entries_mapping'.
36675         (main): Update. Access the mappings through entries_mapping_get.
36676         Reported by Eric Blake.
36677
36678 2009-07-02  Bruno Haible  <bruno@clisp.org>
36679
36680         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36681         best_i.
36682
36683 2009-07-02  Bruno Haible  <bruno@clisp.org>
36684
36685         Speed up approximate search for matching ChangeLog entries.
36686         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36687         argument. Call fstrcmp_bounded instead of fstrcmp.
36688         (compute_mapping, try_split_merged_entry, main): Update callers.
36689
36690 2009-07-02  Bruno Haible  <bruno@clisp.org>
36691
36692         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36693
36694 2009-06-30  Bruno Haible  <bruno@clisp.org>
36695
36696         Reduce the number of uc_is_cased calls.
36697         * lib/unicase.h (casing_suffix_context_t): Add
36698         'first_char_except_ignorable' field.
36699         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36700         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36701         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36702         Update initializer.
36703         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36704         case-ignorable characters.
36705         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36706         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36707         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36708         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36709         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36710
36711 2009-06-30  Bruno Haible  <bruno@clisp.org>
36712
36713         Tests for module 'unicase/ignorable'.
36714         * modules/unicase/ignorable-tests: New file.
36715         * tests/unicase/test-ignorable.c: New file, generated by
36716         gen-uni-tables.
36717
36718         Tests for module 'unicase/cased'.
36719         * modules/unicase/cased-tests: New file.
36720         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36721         * tests/unicase/test-predicate-part1.h: New file, derived from
36722         tests/unictype/test-predicate-part1.h.
36723         * tests/unicase/test-predicate-part2.h: New file, same as
36724         tests/unictype/test-predicate-part2.h.
36725
36726         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36727         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36728         (output_casing_properties): New function.
36729         (main): Call it.
36730         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36731         * lib/unicase/cased.c: Include unictype/bitmap.h.
36732         (uc_is_cased): Define through a bitmap lookup.
36733         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36734         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36735         (uc_is_case_ignorable): Define through a bitmap lookup.
36736         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36737         lib/unictype/bitmap.h.
36738         (Depends-on): Add inline. Clean up.
36739         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36740         lib/unictype/bitmap.h.
36741         (Depends-on): Add inline. Clean up.
36742         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36743         recognition.
36744         * tests/unicase/test-u16-tolower.c (main): Likewise.
36745         * tests/unicase/test-u32-tolower.c (main): Likewise.
36746
36747 2009-06-30  Bruno Haible  <bruno@clisp.org>
36748
36749         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36750         * lib/unicase/u16-casemap.c: Likewise.
36751         * lib/unicase/u32-casemap.c: Likewise.
36752
36753 2009-06-29  Bruno Haible  <bruno@clisp.org>
36754
36755         Define u32_casefold as a wrapper around u32_ct_casefold.
36756         * lib/unicase/u32-casefold.c: Update.
36757         * modules/unicase/u32-casefold (Depends-on): Add
36758         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36759         unicase/empty-suffix-context. Clean up.
36760
36761         Define u16_casefold as a wrapper around u16_ct_casefold.
36762         * lib/unicase/u16-casefold.c: Update.
36763         * modules/unicase/u16-casefold (Depends-on): Add
36764         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36765         unicase/empty-suffix-context. Clean up.
36766
36767         Define u8_casefold as a wrapper around u8_ct_casefold.
36768         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36769         * lib/unicase/u8-casefold.c: Update.
36770         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36771         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36772
36773         Define u32_totitle as a wrapper around u32_ct_totitle.
36774         * lib/unicase/u32-totitle.c: Update.
36775         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36776         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36777
36778         Define u16_totitle as a wrapper around u16_ct_totitle.
36779         * lib/unicase/u16-totitle.c: Update.
36780         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36781         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36782
36783         Define u8_totitle as a wrapper around u8_ct_totitle.
36784         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36785         functions.
36786         (FUNC): Delegate to U_CT_TOTITLE.
36787         * lib/unicase/u8-totitle.c: Update.
36788         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36789         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36790
36791         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36792         invocation.
36793         * modules/unicase/u32-tolower (Depends-on): Add
36794         unicase/empty-prefix-context, unicase/empty-suffix-context.
36795
36796         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36797         invocation.
36798         * modules/unicase/u16-tolower (Depends-on): Add
36799         unicase/empty-prefix-context, unicase/empty-suffix-context.
36800
36801         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36802         * modules/unicase/u8-tolower (Depends-on): Add
36803         unicase/empty-prefix-context, unicase/empty-suffix-context.
36804
36805         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36806         invocation.
36807         * modules/unicase/u32-toupper (Depends-on): Add
36808         unicase/empty-prefix-context, unicase/empty-suffix-context.
36809
36810         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36811         invocation.
36812         * modules/unicase/u16-toupper (Depends-on): Add
36813         unicase/empty-prefix-context, unicase/empty-suffix-context.
36814
36815         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36816         * modules/unicase/u8-toupper (Depends-on): Add
36817         unicase/empty-prefix-context, unicase/empty-suffix-context.
36818
36819         New module 'unicase/u32-ct-casefold'.
36820         * lib/unicase/u32-ct-casefold.c: New file.
36821         * modules/unicase/u32-ct-casefold: New file.
36822
36823         New module 'unicase/u16-ct-casefold'.
36824         * lib/unicase/u16-ct-casefold.c: New file.
36825         * modules/unicase/u16-ct-casefold: New file.
36826
36827         New module 'unicase/u8-ct-casefold'.
36828         * lib/unicase/u8-ct-casefold.c: New file.
36829         * lib/unicase/u-ct-casefold.h: New file, derived from
36830         lib/unicase/u-casefold.h.
36831         * modules/unicase/u8-ct-casefold: New file.
36832
36833         New module 'unicase/u32-ct-totitle'.
36834         * lib/unicase/u32-ct-totitle.c: New file.
36835         * modules/unicase/u32-ct-totitle: New file.
36836
36837         New module 'unicase/u16-ct-totitle'.
36838         * lib/unicase/u16-ct-totitle.c: New file.
36839         * modules/unicase/u16-ct-totitle: New file.
36840
36841         New module 'unicase/u8-ct-totitle'.
36842         * lib/unicase/u8-ct-totitle.c: New file.
36843         * lib/unicase/u-ct-totitle.h: New file, derived from
36844         lib/unicase/u-totitle.h.
36845         * modules/unicase/u8-ct-totitle: New file.
36846
36847         New module 'unicase/u32-ct-tolower'.
36848         * lib/unicase/u32-ct-tolower.c: New file.
36849         * modules/unicase/u32-ct-tolower: New file.
36850
36851         New module 'unicase/u16-ct-tolower'.
36852         * lib/unicase/u16-ct-tolower.c: New file.
36853         * modules/unicase/u16-ct-tolower: New file.
36854
36855         New module 'unicase/u8-ct-tolower'.
36856         * lib/unicase/u8-ct-tolower.c: New file.
36857         * modules/unicase/u8-ct-tolower: New file.
36858
36859         New module 'unicase/u32-ct-toupper'.
36860         * lib/unicase/u32-ct-toupper.c: New file.
36861         * modules/unicase/u32-ct-toupper: New file.
36862
36863         New module 'unicase/u16-ct-toupper'.
36864         * lib/unicase/u16-ct-toupper.c: New file.
36865         * modules/unicase/u16-ct-toupper: New file.
36866
36867         New module 'unicase/u8-ct-toupper'.
36868         * lib/unicase/u8-ct-toupper.c: New file.
36869         * modules/unicase/u8-ct-toupper: New file.
36870
36871         Add context arguments to u*_casemap functions.
36872         * lib/unicase/unicasemap.h: Include unicase.h.
36873         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36874         suffix_context arguments.
36875         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36876         functions.
36877         (FUNC): Add prefix_context and suffix_context arguments. Use
36878         uc_is_cased and uc_is_case_ignorable.
36879         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36880         * lib/unicase/u16-casemap.c: Likewise.
36881         * lib/unicase/u32-casemap.c: Likewise.
36882         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36883         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36884         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36885         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36886         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36887         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36888
36889         New module 'unicase/u32-suffix-context'.
36890         * lib/unicase/u32-suffix-context.c: New file.
36891         * modules/unicase/u32-suffix-context: New file.
36892
36893         New module 'unicase/u16-suffix-context'.
36894         * lib/unicase/u16-suffix-context.c: New file.
36895         * modules/unicase/u16-suffix-context: New file.
36896
36897         New module 'unicase/u8-suffix-context'.
36898         * lib/unicase/u8-suffix-context.c: New file.
36899         * lib/unicase/u-suffix-context.h: New file.
36900         * modules/unicase/u8-suffix-context: New file.
36901
36902         New module 'unicase/empty-suffix-context'.
36903         * lib/unicase/empty-suffix-context.c: New file.
36904         * modules/unicase/empty-suffix-context: New file.
36905
36906         New module 'unicase/u32-prefix-context'.
36907         * lib/unicase/u32-prefix-context.c: New file.
36908         * modules/unicase/u32-prefix-context: New file.
36909
36910         New module 'unicase/u16-prefix-context'.
36911         * lib/unicase/u16-prefix-context.c: New file.
36912         * modules/unicase/u16-prefix-context: New file.
36913
36914         New module 'unicase/u8-prefix-context'.
36915         * lib/unicase/u8-prefix-context.c: New file.
36916         * lib/unicase/u-prefix-context.h: New file.
36917         * lib/unicase/context.h: New file.
36918         * modules/unicase/u8-prefix-context: New file.
36919
36920         New module 'unicase/empty-prefix-context'.
36921         * lib/unicase/empty-prefix-context.c: New file.
36922         * modules/unicase/empty-prefix-context: New file.
36923
36924         New module 'unicase/ignorable'.
36925         * lib/unicase/ignorable.c: New file.
36926         * modules/unicase/ignorable: New file.
36927
36928         New module 'unicase/cased'.
36929         * lib/unicase/caseprop.h: New file.
36930         * lib/unicase/cased.c: New file.
36931         * modules/unicase/cased: New file.
36932
36933         New functions for case mapping of substrings.
36934         * lib/unicase.h (casing_prefix_context_t): New type.
36935         (unicase_empty_prefix_context): New variable.
36936         (u8_casing_prefix_context, u16_casing_prefix_context,
36937         u32_casing_prefix_context, u8_casing_prefixes_context,
36938         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36939         declarations.
36940         (casing_suffix_context_t): New type.
36941         (unicase_empty_suffix_context): New variable.
36942         (u8_casing_suffix_context, u16_casing_suffix_context,
36943         u32_casing_suffix_context, u8_casing_suffixes_context,
36944         u16_casing_suffixes_context, u32_casing_suffixes_context,
36945         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36946         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36947         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36948         declarations.
36949
36950 2009-06-28  Jim Meyering  <meyering@redhat.com>
36951
36952         boostrap: indent only with spaces
36953         * build-aux/bootstrap: Indent only with spaces, never TABs.
36954
36955         bootstrap: split long lines
36956         * build-aux/bootstrap: Keep line length < 80.
36957
36958         bootstrap: sync from coreutils
36959         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36960         just as autoreconf does.  Verify a list of prerequisite
36961         package-name,version-number pairs if defined in bootstrap.conf.
36962         Refer to README-prereq, if prerequisites are not satisfied.
36963
36964 2009-06-27  Eric Blake  <ebb9@byu.net>
36965
36966         tests: add test for bogus NULL definition
36967         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36968         * tests/test-stdlib.c: Likewise.
36969         * tests/test-string.c: Likewise.
36970         * tests/test-locale.c: Likewise.
36971         * tests/test-unistd.c: Likewise.
36972         * modules/stdio-tests (Depends-on): Add verify.
36973         * modules/stdlib-tests (Depends-on): Likewise.
36974         * modules/string-tests (Depends-on): Likewise.
36975         * modules/locale-tests (Depends-on): Likewise.
36976         * modules/unistd-tests (Depends-on): Likewise.
36977
36978 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36979
36980         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36981         self-explaining comment.
36982         * m4/selinux-selinux-h: Update serial.
36983         (gl_LIBSELINUX): New macro, adding a warning for missing development
36984         packages to code extracted from...
36985         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36986         Add warning for missing development packages here, too.
36987
36988 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36989
36990         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36991
36992 2009-06-25  Eric Blake  <ebb9@byu.net>
36993
36994         version-etc: fix regression
36995         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36996         gcc.
36997         (version_etc): Use it, to catch bugs with trailing NULL.
36998         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36999         (version_etc_va): Fix logic bug.
37000         * modules/version-etc-tests: Add test.
37001         * tests/test-version-etc.c: New file.
37002         * tests/test-version-etc.sh: Likewise.
37003
37004 2009-06-25  Sam Steingold  <sds@gnu.org>
37005
37006         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37007         mbtowc declaration.
37008
37009 2009-06-25  Eric Blake  <ebb9@byu.net>
37010
37011         fpurge: migrate into <stdio.h>
37012         * lib/fpurge.h: Delete...
37013         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37014         * lib/fpurge.c (fpurge): Change declaring header.
37015         * modules/fpurge (Files): Drop deleted file.
37016         (Depends-on): Add stdio.
37017         (configure.ac): Set witness.
37018         * modules/stdio (Makefile.am): Support fpurge macros.
37019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37021         * lib/fflush.c: Update client.
37022         * tests/test-fpurge.c: Likewise.
37023         * NEWS: Mention the change.
37024
37025 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37026
37027         * lib/argp-version-etc.c (program_authors): Add const
37028         qualifier.
37029         * lib/version-etc.c: Fix typos in the comments.
37030         * modules/argp-version-etc: Depends on version-etc.
37031
37032 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37033
37034         argp-version-etc: new module.
37035
37036         * lib/argp-version-etc.c: New file.
37037         * lib/argp-version-etc.h: New file.
37038         * modules/argp-version-etc: New file.
37039         * modules/argp-version-etc-tests: New file.
37040         * tests/test-argp-version-etc.c: New test.
37041         * tests/test-argp-version-etc-1.sh: New test.
37042
37043 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37044
37045         Provide additional interfaces and documentation for version-etc
37046         module.
37047
37048         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37049         interfaces.
37050         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37051         prototypes.
37052
37053 2009-06-24  Bruno Haible  <bruno@clisp.org>
37054
37055         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37056         HAVE_LIB${NAME} macro.
37057         Reported by Sam Steingold <sds@gnu.org>.
37058
37059 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37060
37061         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37062         needed.
37063
37064 2009-06-21  Bruno Haible  <bruno@clisp.org>
37065
37066         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37067         work.
37068         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37069         together with LIB${NAME}, LTLIB${NAME}.
37070         Reported by Sam Steingold <sds@gnu.org>.
37071
37072 2009-06-20  Jim Meyering  <meyering@redhat.com>
37073
37074         tests: make sc_require_test_exit_idiom more generic
37075         * top/maint.mk (Exit_witness_file): New overridable variable.
37076         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37077         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37078
37079 2009-06-19  Jim Meyering  <meyering@redhat.com>
37080
37081         hash: reverse order of src/dst parameters in an internal interface
37082         * lib/hash.c (transfer_entries): Reverse order of parameters to
37083         put DST before SRC.  Adjust callers.
37084
37085         tests: test-hash: avoid wholesale duplication
37086         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37087         Instead, use a loop and add a single conditional.
37088
37089         tests: test-hash: allow seed selection via a command line argument
37090         * tests/test-hash.c (get_seed): New function.
37091         (main): Use it.
37092
37093 2009-06-19  Eric Blake  <ebb9@byu.net>
37094
37095         hash: avoid memory leak on allocation failure
37096         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37097         failure.  Factor repeated algorithm...
37098         (transfer_entries): ...into new helper routine.
37099         (hash_delete): React to hash_rehash return value.
37100
37101         hash: reduce memory pressure in hash_rehash no-op case
37102         * lib/hash.c (next_prime): Avoid overflow.
37103         (hash_initialize): Factor bucket size computation...
37104         (compute_bucket_size): ...into new helper function.
37105         (hash_rehash): Use new function and open coding to reduce memory
37106         pressure, and avoid a memory leak in USE_OBSTACK code.
37107         Reported by Jim Meyering.
37108
37109 2009-06-18  Eric Blake  <ebb9@byu.net>
37110
37111         hash: make rotation more obvious
37112         * modules/hash (Depends-on): Add bitrotate and stdint.
37113         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37114         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37115         (SIZE_MAX): Rely on headers for definition.
37116         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37117         (raw_hasher): Use rotr_sz.
37118         Suggested by Jim Meyering.
37119
37120         hash: fix memory leak in last patch
37121         * lib/hash.c (hash_rehash): Avoid memory leak.
37122
37123         hash: avoid no-op rehashing
37124         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37125
37126         hash: provide default callback functions
37127         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37128         (hash_initialize): Use them as defaults.
37129         * tests/test-hash.c (main): Test this.
37130
37131         hash: minor optimization
37132         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37133         when possible.
37134         (hash_initialize): Document this promise.
37135         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37136         * tests/test-hash.c (hash_compare_strings): Test this.
37137
37138 2009-06-18  Bruno Haible  <bruno@clisp.org>
37139
37140         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37141         going to be replaced anyway.
37142
37143 2009-06-18  Bruno Haible  <bruno@clisp.org>
37144
37145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37146         in one place.
37147         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37148         be replaced anyway.
37149
37150 2009-06-18  Eric Blake  <ebb9@byu.net>
37151
37152         hash: check for resize before insertion
37153         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37154         threshold before insertion, so that a pathological hash_rehash
37155         that fills every bucket can still trigger another rehash.
37156
37157 2009-06-18  Jim Meyering  <meyering@redhat.com>
37158
37159         hash-tests: add a loop around the small tests
37160         * tests/test-hash.c (main): Repeat small tests with selected
37161         small initial table sizes.
37162
37163 2009-06-17  Eric Blake  <ebb9@byu.net>
37164
37165         hash: minor cleanups
37166         * lib/hash.h (hash_entry): Make opaque, by moving...
37167         * lib/hash.c (hash_entry): ...here.
37168         (hash_insert): Clarify restrictions on what can be inserted.
37169         (hash_get_next): Clarify when it is safe to remove an element
37170         during traversal.
37171         (check_tuning): Skip verification when tuning is known safe.
37172         (hash_initialize): Clarify restrictions on tuning.
37173
37174 2009-06-17  Jim Meyering  <jim@meyering.net>
37175         and Eric Blake  <ebb9@byu.net>
37176
37177         hash-tests: new module
37178         * modules/hash-tests: New file.
37179         * tests/test-hash.c: New file.
37180
37181 2009-06-17  Eric Blake  <ebb9@byu.net>
37182
37183         strstr-simple: document new module
37184         * MODULES.html.sh: Document new module.
37185
37186         strstr, strcasestr: replace on platforms with broken memchr
37187         * modules/strstr: Split into...
37188         * modules/strstr-simple: ...new module that does not care about
37189         performance, but does care about glibc bug.
37190         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37191         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37192         if platform memchr is broken, per Debian bug 521737.
37193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37194         memchr.
37195         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37196         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37197         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37198         * modules/mountlist (Depends-on): Add strstr-simple.
37199         * modules/gen-uni-tables (Depends-on): Likewise.
37200         * modules/argz (Depends-on): Add strstr.
37201
37202 2009-06-17  Bruno Haible  <bruno@clisp.org>
37203
37204         * modules/posix_spawn-internal (Depends-on): Add errno.
37205
37206 2009-06-17  Bruno Haible  <bruno@clisp.org>
37207
37208         Define missing ESTALE on Interix 3.5.
37209         * lib/errno.in.h (ESTALE): Assign a value if missing.
37210         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37211         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37212         missing.
37213         * doc/posix-headers/errno.texi: Mention the Interix bug.
37214         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37215
37216 2009-06-15  Eric Blake  <ebb9@byu.net>
37217
37218         memchr, memchr2: add valgrind exception
37219         * lib/memchr.valgrind: New file.
37220         * lib/memchr2.valgrind: New file.
37221         * modules/memchr (Files): Distribute valgrind file.
37222         * modules/memchr2 (Files): Likewise.
37223
37224         docs: memchr is no longer obsolete
37225         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37226         * lib/string.in.h (memchr): Simplify logic.
37227
37228 2009-06-14  Jim Meyering  <meyering@redhat.com>
37229
37230         link-follow: fix the "checking..." message to not mention trailing slash
37231         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37232         never considered trailing slashes.
37233
37234 2009-06-14  Bruno Haible  <bruno@clisp.org>
37235
37236         * m4/memchr.m4: Mention also the bug on IA-64.
37237         * doc/posix-functions/memchr.texi: Likewise.
37238
37239 2009-06-12  Eric Blake  <ebb9@byu.net>
37240
37241         memchr: detect broken x86_64 and alpha implementations
37242         * modules/memchr-tests (Depends-on): Move mmap detection...
37243         * modules/memchr (Depends-on): ...here.
37244         (configure.ac): Set indicator.
37245         * lib/string.in.h (memchr): Declare replacement.
37246         * modules/string (Makefile.am): Trigger replacement.
37247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37248         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37249         bugs.
37250         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37251         * modules/getpagesize (License): Relax license.
37252
37253 2009-06-11  Bruno Haible  <bruno@clisp.org>
37254
37255         * lib/idpriv.h: Add more references.
37256
37257 2009-06-08  Bruno Haible  <bruno@clisp.org>
37258
37259         Tests for module 'idpriv-droptemp'.
37260         * modules/idpriv-droptemp-tests: New file.
37261         * tests/test-idpriv-droptemp.sh: New file.
37262         * tests/test-idpriv-droptemp.su.sh: New file.
37263         * tests/test-idpriv-droptemp.c: New file.
37264
37265         New module 'idpriv-droptemp'.
37266         * lib/idpriv-droptemp.c: New file.
37267         * modules/idpriv-droptemp: New file.
37268
37269 2009-06-08  Bruno Haible  <bruno@clisp.org>
37270
37271         Tests for module 'idpriv-drop'.
37272         * modules/idpriv-drop-tests: New file.
37273         * tests/test-idpriv-drop.sh: New file.
37274         * tests/test-idpriv-drop.su.sh: New file.
37275         * tests/test-idpriv-drop.c: New file.
37276
37277         New module 'idpriv-drop'.
37278         * lib/idpriv.h: New file.
37279         * lib-idpriv-drop.c: New file.
37280         * m4/idpriv.m4: New file.
37281         * modules/idpriv-drop: New file.
37282
37283 2009-06-08  Bruno Haible  <bruno@clisp.org>
37284
37285         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37286         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37287         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37288         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37289         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37290         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37291         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37292
37293 2009-06-08  Eric Blake  <ebb9@byu.net>
37294
37295         test-strstr: use memory fence, when possible
37296         * tests/test-strstr.c (main): Use memory fence, in order to be
37297         more likely to trigger Debian bug 521737.
37298         * modules/strstr-tests (Files): Pull in additional files.
37299
37300         memchr: no longer obsolete, for wider field testing
37301         * modules/memchr (Status, Notice): Delete, this module is no
37302         longer obsolete.
37303         * modules/vasnprintf (Depends-on): Add memchr.
37304
37305 2009-06-07  Jim Meyering  <meyering@redhat.com>
37306
37307         hash: declare some functions with the warn_unused_result attribute
37308         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37309
37310 2009-06-07  Bruno Haible  <bruno@clisp.org>
37311
37312         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37313         Reported by Eric Blake.
37314
37315 2009-06-06  Eric Blake  <ebb9@byu.net>
37316
37317         test-alignof: fix typo with long double
37318         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37319         compiler error.
37320
37321 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37322
37323         Escape non-texinfo { and }s.
37324         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37325         markup error.
37326
37327 2009-06-04  Jim Meyering  <meyering@redhat.com>
37328
37329         gitlog-to-changelog: don't infloop on an empty commit log
37330         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37331         Reported by Boris Petersen <transacid@centerim.org>.
37332
37333 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37334
37335         version-etc: extend for packagers
37336         Add three new configure options, intended for packagers:
37337           --with-packager="packager name"
37338           --with-packager-version="packager-specific version"
37339           --with-packager-bug-reports="packager bug reporting"
37340         An example with coreutils:
37341           $ ./configure \
37342             --with-packager=Gentoo \
37343             --with-packager-bug-report=http://bugs.gentoo.org/ \
37344             --with-packager-version="patchset 1.6"
37345           $ ./src/ls --version | head -n2
37346           ls (GNU coreutils) 7.1-dirty
37347           Packaged by Gentoo (patchset 1.6)
37348         Note that the bug reporting info via --help doesn't show up because
37349         coreutils uses its own custom emit_bug_reporting_address() implementation
37350         in src/system.h.  If it didn't, it'd look like:
37351           $ ./src/ls --help | tail -n4
37352           Report bugs to <bug-coreutils@gnu.org>.
37353           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37354           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37355           General help using GNU software: <http://www.gnu.org/gethelp/>.
37356         * lib/version-etc.c: Print new information, if provided.
37357         * m4/version-etc.m4: New file.
37358         * modules/version-etc (Files): Add m4/version-etc.m4.
37359         (configure.ac): Add gl_VERSION_ETC.
37360
37361 2009-05-31  Bruno Haible  <bruno@clisp.org>
37362
37363         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37364         and 'int64_t'.
37365         * modules/alignof-tests (Dependencies): Add stdint.
37366         Reported by Eric Blake.
37367
37368 2009-05-31  Bruno Haible  <bruno@clisp.org>
37369
37370         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37371         restriction due to compiler bugs.
37372         Reported by Eric Blake.
37373
37374 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37375             Bruno Haible  <bruno@clisp.org>
37376
37377         Fix test-alignof failure.
37378         * lib/alignof.h (alignof_slot): New macro.
37379         (alignof_type): New macro, with the same semantics as the previous
37380         'alignof'.
37381         (alignof): Alias to alignof_slot.
37382         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37383         check that the results are usable as constant expressions.
37384
37385 2009-05-31  Bruno Haible  <bruno@clisp.org>
37386
37387         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37388         * tests/test-memchr.c (main): Check that memchr does not read past the
37389         first occurrence of the byte.
37390         * tests/test-strstr.c (main): Update comment.
37391         Suggested by Eric Blake.
37392
37393 2009-05-30  Bruno Haible  <bruno@clisp.org>
37394
37395         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37396         detail how to use dumpbin.
37397         Reported by David Byron <dbyron@dbyron.com>.
37398
37399 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37400
37401         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37402
37403 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37404
37405         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37406
37407 2009-05-28  Bruno Haible  <bruno@clisp.org>
37408
37409         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37410         build-aux/ files.
37411
37412 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37413
37414         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37415
37416 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37417
37418         * gnulib-tool (sed_transform_main_lib_file)
37419         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37420         regexps.
37421
37422 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37423
37424         * tests/test-strstr.c: Add another self-test.
37425         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37426         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37427
37428 2009-05-23  Bruno Haible  <bruno@clisp.org>
37429
37430         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37431         change.
37432
37433 2009-05-21  Bruno Haible  <bruno@clisp.org>
37434
37435         Simplify use of mode_t varargs.
37436         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37437         uses 'mode_t' or 'int'.
37438         * lib/openat.c (openat): Likewise.
37439         * lib/open-safer.c (open_safer): Likewise.
37440         * m4/mode_t.m4: New file.
37441         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37442         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37443         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37444         * modules/open (Files): Add m4/mode_t.m4.
37445         * modules/openat (Files): Likewise.
37446         * modules/fcntl-safer (Files): Likewise.
37447         Suggested by Eric Blake.
37448
37449 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37450
37451         * doc/glibc-functions/fallocate.texi: New file.
37452         * doc/gnulib.texi: Include it.
37453
37454 2009-05-21  Eric Blake  <ebb9@byu.net>
37455             Bruno Haible  <bruno@clisp.org>
37456
37457         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37458         invocations.
37459         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37460
37461 2009-05-21  Eric Blake  <ebb9@byu.net>
37462             Bruno Haible  <bruno@clisp.org>
37463
37464         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37465         include_next. Fix of 2008-11-20 commit.
37466         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37467         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37468         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37469         NEXT_MATH_H.
37470         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37471         instead of NEXT_MATH_H.
37472
37473 2009-05-21  Bruno Haible  <bruno@clisp.org>
37474
37475         Avoid redefinition warnings for SIZE_MAX.
37476         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37477         Reported by Simon Josefsson.
37478
37479 2009-05-21  Bruno Haible  <bruno@clisp.org>
37480
37481         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37482         AC_CACHE_VAL.
37483
37484 2009-05-20  Bruno Haible  <bruno@clisp.org>
37485
37486         Make zeroptr.h work on mingw.
37487         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37488         mprotect.
37489         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37490         * modules/memchr2-tests (configure.ac): Likewise.
37491         * modules/memcmp-tests (configure.ac): Likewise.
37492         * modules/memmem-tests (configure.ac): Likewise.
37493         * modules/memrchr-tests (configure.ac): Likewise.
37494         Reported by Simon Josefsson.
37495
37496 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37497
37498         * tests/test-glob.c: Include string.h for strcmp prototype.
37499
37500 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37501
37502         * modules/getdelim (Depends-on): Add explicit stdint, although it
37503         was implicitly already pulled in via realloc-posix.
37504         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37505
37506 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37507
37508         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37509         G. Christensen" <tgc@jupiterrise.com>.
37510         * m4/sys_socket_h.m4: Check for sa_family_t.
37511         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37512         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37513         * tests/test-sys_socket.c: Check that sa_family_t works.
37514
37515 2009-05-18  Eric Blake  <ebb9@byu.net>
37516
37517         maint.mk: allow gnulib_dir in VPATH build
37518         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37519
37520 2009-05-15  Jim Meyering  <meyering@redhat.com>
37521
37522         maint.mk: Give gnulib_dir a default definition.
37523         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37524         Thus, most packages no longer need to specify this variable in cfg.mk
37525
37526 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37527
37528         rename.m4: fix typos that would make non-mingw cross-configure fail
37529         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37530
37531 2009-05-13  Eric Blake  <ebb9@byu.net>
37532
37533         mmap-anon: avoid out-of-order autoconf expansion
37534         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37535         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37536         * modules/memchr-tests (Depends-on): Add extensions.
37537         * modules/memchr2-tests (Depends-on): Add extensions.
37538         * modules/memcmp-tests (Depends-on): Add extensions.
37539         * modules/memmem-tests (Depends-on): Add extensions.
37540         * modules/memrchr-tests (Depends-on): Add extensions.
37541
37542 2009-05-13  Bruno Haible  <bruno@clisp.org>
37543
37544         Make some tests ISO C 99 compliant.
37545         * tests/zerosize-ptr.h: New file.
37546         * tests/test-memchr.c: Include zerosize-ptr.h.
37547         (main): Use a zero-size object pointer instead of NULL.
37548         * tests/test-memchr2.c: Include zerosize-ptr.h.
37549         (main): Use a zero-size object pointer instead of NULL.
37550         * tests/test-memcmp.c: Include zerosize-ptr.h.
37551         (main): Use a zero-size object pointer instead of NULL.
37552         * tests/test-memmem.c: Include zerosize-ptr.h.
37553         (main): Use a zero-size object pointer instead of NULL.
37554         * tests/test-memrchr.c: Include zerosize-ptr.h.
37555         (main): Use a zero-size object pointer instead of NULL.
37556         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37557         m4/mmap-anon.m4.
37558         (Depends-on): Add getpagesize.
37559         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37560         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37561         m4/mmap-anon.m4.
37562         (Depends-on): Add getpagesize.
37563         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37564         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37565         m4/mmap-anon.m4.
37566         (Depends-on): Add getpagesize.
37567         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37568         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37569         m4/mmap-anon.m4.
37570         (Depends-on): Add getpagesize.
37571         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37572         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37573         m4/mmap-anon.m4.
37574         (Depends-on): Add getpagesize.
37575         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37576
37577 2009-05-12  Bruno Haible  <bruno@clisp.org>
37578
37579         Tests for module 'alignof'.
37580         * modules/alignof-tests: New file.
37581         * tests/test-alignof.c: New file.
37582
37583 2009-05-12  Bruno Haible  <bruno@clisp.org>
37584
37585         Fix alignof macro.
37586         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37587         vendor compilers that are always correct.
37588
37589 2009-05-12  Bruno Haible  <bruno@clisp.org>
37590
37591         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37592         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37593         not whether its fully works.
37594
37595 2009-05-12  Bruno Haible  <bruno@clisp.org>
37596
37597         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37598
37599 2009-05-12  Jim Meyering  <meyering@redhat.com>
37600
37601         * top/maint.mk: Adjust backslash alignment.
37602
37603 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37604
37605         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37606
37607 2009-05-11  Eric Blake  <ebb9@byu.net>
37608
37609         argp: avoid undefined behavior
37610         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37611         macros.
37612
37613 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37614
37615         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37616         user.name to prevent git commit from complaining.
37617
37618 2009-05-10  Bruno Haible  <bruno@clisp.org>
37619
37620         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37621         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37622         it rewrites every file name only once.
37623         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37624
37625 2009-05-08  Bruno Haible  <bruno@clisp.org>
37626
37627         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37628         instead of 'max'.
37629
37630 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37631
37632         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37633         sockaddr_storage test.
37634
37635 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37636
37637         * modules/sys_socket (Makefile.am): Substitute
37638         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37639         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37640         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37641         * tests/test-sys_socket.c: Check sockaddr_storage.
37642
37643 2009-05-08  Bruno Haible  <bruno@clisp.org>
37644
37645         New module 'alignof'.
37646         * lib/alignof.h: New file.
37647         * modules/alignof: New file.
37648
37649 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37650             Bruno Haible  <bruno@clisp.org>
37651
37652         Fix test-file-has-acl on FreeBSD.
37653         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37654         mask is implicitly added.
37655         * tests/test-file-has-acl.c: Include <signal.h>.
37656         (main): Terminate the test after 5 seconds.
37657         * modules/acl-tests (configure.ac): Check for alarm function.
37658
37659 2009-05-04  Bruno Haible  <bruno@clisp.org>
37660
37661         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37662         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37663         * modules/errno (configure.ac): Drop AC_REQUIRE.
37664         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37665         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37666
37667 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37668
37669         * modules/glob-tests: New module.
37670         * tests/test-glob.c: Add.
37671
37672 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37673
37674         * modules/fnmatch-tests: New module.
37675         * tests/test-fnmatch.c: Add.
37676
37677 2009-05-04  Eric Blake  <ebb9@byu.net>
37678
37679         maint: make the new no-submodule-changes rule VPATH-safe
37680         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37681
37682 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37683             Bruno Haible  <bruno@clisp.org>
37684
37685         acl: Fix infinite loop on FreeBSD.
37686         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37687         of return value from acl_get_entry.
37688         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37689         Likewise.
37690
37691 2009-05-03  Bruno Haible  <bruno@clisp.org>
37692
37693         * lib/acl-internal.h (acl_entries): Clarify return value.
37694         * lib/acl_entries.c (acl_entries): Likewise.
37695
37696 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37697
37698         Bug fix in acl module.
37699         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37700
37701 2009-05-03  Bruno Haible  <bruno@clisp.org>
37702
37703         Create gperf-generated file in the source dir, not in the build dir.
37704         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37705         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37706         * modules/unicase/locale-language (unicase/locale-languages.h):
37707         Likewise.
37708         * modules/unicase/special-casing (unicase/special-casing-table.h):
37709         Likewise.
37710         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37711         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37712         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37713         Reported by Ralf Wildenhues.
37714
37715 2009-05-03  Bruno Haible  <bruno@clisp.org>
37716
37717         * modules/fnmatch (Description, configure.ac): Taken from
37718         fnmatch-posix.
37719         * modules/fnmatch-posix: Turn into a symbolic reference to the
37720         'fnmatch' module, and deprecate.
37721         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37722
37723 2009-05-03  Bruno Haible  <bruno@clisp.org>
37724
37725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37726         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37727         Reported by Ralf Wildenhues.
37728
37729 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37730
37731         * m4/fnmatch.m4: Fix fnmatch re-define.
37732
37733 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37734
37735         priv-set: new module and tests; adapt write-any-file
37736         * lib/priv-set.c: New file.
37737         * lib/priv-set.h: New file.
37738         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37739         * lib/write-any-file.c: Simplify by using priv-set module.
37740         * m4/priv-set.m4: New file.
37741         * modules/priv-set: New file.
37742         * modules/unlinkdir: Add dependency on priv-set module.
37743         * modules/write-any-file: Likewise.
37744
37745         Tests for module 'priv-set'.
37746         * modules/priv-set-tests: New file.
37747         * tests/test-priv-set.c: New file.
37748
37749 2009-05-03  Jim Meyering  <meyering@redhat.com>
37750             Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37753         use the converted UTF-8 variant of the name instead.
37754
37755 2009-05-03  Jim Meyering  <meyering@redhat.com>
37756
37757         tests: tighten some getdate tests
37758         * tests/test-getdate.c (main): Tighten tests: require equality,
37759         not just greater than.  Set TZ envvar to UTC0.
37760
37761 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37762
37763         getdate: correctly interpret "next monday" when run on a Monday
37764         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37765         that e.g., "next tues" (when run on a tuesday) results in a date
37766         that is one week in the future, and not today's date.
37767         I.e., add a week when the wday is the same as the current one.
37768         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37769         and earlier by Martin Bernreuther and Jan Minář.
37770         * tests/test-getdate.c (main): Check that "next DAY" is always in
37771         the future and that "last DAY" is always in the past.
37772
37773 2009-05-02  Jim Meyering  <meyering@redhat.com>
37774
37775         build: ensure that a release build fails when a submodule is unclean
37776         * top/maint.mk (no-submodule-changes): New rule.
37777         (alpha beta major): Depend on it.
37778
37779 2009-05-02  Bruno Haible  <bruno@clisp.org>
37780
37781         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37782         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37783         shell variable gl_fnmatch_required to detect which variant is
37784         requested.
37785         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37786         gl_FUNC_FNMATCH_POSIX.
37787         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37788         exclude fnmatch-posix.
37789
37790 2009-05-02  Bruno Haible  <bruno@clisp.org>
37791
37792         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37793         * modules/mbsrtowcs (License): Change to LGPLv2+.
37794         * modules/strnlen1 (License): Likewise.
37795         Reported by Simon Josefsson.
37796
37797 2009-05-02  Bruno Haible  <bruno@clisp.org>
37798
37799         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37800         "cross".
37801         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37802         gnulib-tool was called with option --source-base=lib.
37803
37804 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37805
37806         Use automake *-local hooks without commands, for extensibility.
37807         * modules/localcharset (Makefile.am): Rename install-exec-local
37808         rule to install-exec-localcharset, and make it a prerequisite of
37809         install-exec-local.  Likewise, rename the uninstall-local rule to
37810         uninstall-localcharset, and make it a prerequisite of the former.
37811
37812 2009-05-01  Bruno Haible  <bruno@clisp.org>
37813
37814         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37815         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37816         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37818         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37819         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37820         m4/locale-zh.m4, m4/codeset.m4.
37821
37822         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37823         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37824         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37825         m4/locale-zh.m4.
37826
37827         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37828         REPLACE_WCRTOMB if mbstate_t must be replaced.
37829         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37830         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37831
37832 2009-05-01  Bruno Haible  <bruno@clisp.org>
37833
37834         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37835         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37836         dngettext, dcngettext, textdomain, bindtextdomain,
37837         bind_textdomain_codeset): Undefine before redefining.
37838
37839 2009-04-30  Bruno Haible  <bruno@clisp.org>
37840
37841         Fix bug introduced on 2009-04-25.
37842         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37843         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37844         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37845         is defined.
37846         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37847         is defined.
37848         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37849         is defined.
37850         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37851
37852 2009-04-28  Bruno Haible  <bruno@clisp.org>
37853
37854         Comment tweaks.
37855         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37856         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37857         * lib/unicase.h (u*_casexfrm): Likewise.
37858         Reported by Paolo Bonzini.
37859
37860 2009-04-28  Bruno Haible  <bruno@clisp.org>
37861
37862         Fix a compilation error.
37863         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37864         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37865         Reported by Jim Meyering.
37866
37867 2009-04-27  Bruno Haible  <bruno@clisp.org>
37868
37869         New module 'libunistring'.
37870         * modules/libunistring: New file.
37871         * m4/libunistring.m4: New file.
37872         * MODULES.html.sh (Unicode string functions): Add it.
37873
37874 2009-04-27  Eric Blake  <ebb9@byu.net>
37875
37876         maint.mk: allow package-specific header to provide <config.h>
37877         * top/maint.mk (sc_require_config_h): New variable.
37878         (sc_require_config_h, sc_require_config_h_first): Use it.
37879
37880 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37881
37882         * top/maint.mk (sc_avoid_if_before_free): Except
37883         useless-if-before-free script.
37884
37885 2009-04-27  Eric Blake  <ebb9@byu.net>
37886
37887         maintainer-makefile: depend on all required helper scripts
37888         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37889         useless-if-before-free.
37890         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37891         version, rather than assuming gnulib checkout is available.
37892         Reported by Simen Josefsson.
37893
37894 2009-04-26  Bruno Haible  <bruno@clisp.org>
37895
37896         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37897         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37898         "../" or "..".
37899
37900 2009-04-26  Bruno Haible  <bruno@clisp.org>
37901
37902         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37903         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37904         AC_LIB_HAVE_LINKFLAGS.
37905
37906 2009-04-26  Bruno Haible  <bruno@clisp.org>
37907
37908         Simplify calling convention of u*_conv_from_encoding.
37909         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37910         u32_conv_from_encoding): Expect a resultbuf argument and return the
37911         result directly as a pointer.
37912         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37913         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37914         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37915         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37916         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37917         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37918         Update.
37919         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37920         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37921         * lib/vasnprintf.c (VASNPRINTF): Update.
37922         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37923         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37924         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37925         * NEWS: Mention the change.
37926
37927 2009-04-26  Bruno Haible  <bruno@clisp.org>
37928
37929         Simplify calling convention of u*_conv_to_encoding.
37930         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37931         u32_conv_to_encoding): Expect a resultbuf argument and return the
37932         result directly as a pointer.
37933         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37934         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37935         freeing scaled_offsets if mem_iconveha failed.
37936         * lib/unicase/u-casexfrm.h (FUNC): Update.
37937         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37938         * lib/vasnprintf.c (VASNPRINTF): Update.
37939         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37940         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37941         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37942         * NEWS: Mention the change.
37943
37944 2009-04-26  Bruno Haible  <bruno@clisp.org>
37945
37946         Avoid test failures on AIX and OSF/1.
37947         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37948         malloc(0).
37949         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37950         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37951         Likewise.
37952         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37953         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37954         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37955         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37956         * doc/posix-functions/malloc.texi: Document the portability problem
37957         related to malloc(0).
37958
37959 2009-04-26  Bruno Haible  <bruno@clisp.org>
37960
37961         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37962         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37963         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37964
37965 2009-04-25  Bruno Haible  <bruno@clisp.org>
37966
37967         Avoid link error when creating a namespace clean library.
37968         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37969         as macro with arguments if already defined as an alias.
37970         * lib/signbitf.c (gl_signbitf): Don't undefine.
37971         * lib/signbitd.c (gl_signbitd): Don't undefine.
37972         * lib/signbitl.c (gl_signbitl): Don't undefine.
37973
37974 2009-04-25  Jim Meyering  <meyering@redhat.com>
37975
37976         vc-list-files: fix another quoting bug
37977         * build-aux/vc-list-files: Avoid sed backslash expansion
37978         of pathological directory names.
37979
37980 2009-04-25  Eric Blake  <ebb9@byu.net>
37981
37982         vc-list-files: fix shell quoting error
37983         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37984         timestamp.
37985
37986 2009-04-25  Jim Meyering  <meyering@redhat.com>
37987
37988         vc-list-files: restore lost functionality with subdir argument
37989         * build-aux/vc-list-files: When given a non-"." sub-directory
37990         argument, substitute the $dir/ prefix back onto each resulting name.
37991         Otherwise, coreutils' root_tests check would fail.
37992
37993 2009-04-24  Eric Blake  <ebb9@byu.net>
37994
37995         vc-list-files: ignore git symlinks
37996         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37997         than ls-files, to ignore git symlinks.
37998
37999         maint.mk: import improvements from m4
38000         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38001         (move_if_change): Delete unused macro.
38002         (news-date-check, vc-diff-check): Support VPATH builds.
38003         (announcement): Likewise.  Split --bootstrap-tools list...
38004         (boostrap-tools): ...into separate list, which can be overridden
38005         in cfg.mk.
38006         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38007         requiring dependency on useless-if-before-free module.
38008         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38009         Support VPATH builds.
38010
38011 2009-04-24  Jim Meyering  <meyering@redhat.com>
38012
38013         maint.mk: remove coreutils-specific rules and variables
38014         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38015         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38016         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38017
38018         maint.mk: remove obsolete rule
38019         * top/maint.mk (rel-check): Remove rule.
38020         (WGET, WGETFLAGS): Remove now-unused variables.
38021
38022 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38023
38024         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38025         consistency.
38026
38027         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38028         '$(PATH_SEPARATOR)' instead of ':'.
38029
38030 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38031
38032         * lib/getopt1.c (main): Use 'const' for static array.
38033
38034 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38035
38036         * top/maint.mk: Sync with coreutils.
38037         * NEWS: Explain incompatibilities.
38038
38039 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38040             Bruno Haible  <bruno@clisp.org>
38041
38042         Fix cross-compilation results.
38043         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38044         statement, as third argument of AC_TRY_RUN.
38045         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38046         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38047         Likewise.
38048         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38049         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38050         Likewise.
38051         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38052         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38053         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38054
38055 2009-04-20  Bruno Haible  <bruno@clisp.org>
38056
38057         Avoid test failure on mingw.
38058         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38059
38060 2009-04-20  Bruno Haible  <bruno@clisp.org>
38061
38062         Avoid compilation error on mingw.
38063         * modules/localename-tests (Depends-on): Add locale.
38064
38065 2009-04-19  Bruno Haible  <bruno@clisp.org>
38066
38067         Support for building a shared library on Windows platforms.
38068         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38069         (main): Test the presence of UNINORM_NFC here.
38070         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38071         (main): Test the presence of UNINORM_NFD here.
38072         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38073         (main): Test the presence of UNINORM_NFKC here.
38074         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38075         (main): Test the presence of UNINORM_NFKD here.
38076
38077 2009-04-19  Bruno Haible  <bruno@clisp.org>
38078
38079         Avoid a compiler warning.
38080         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38081         Change type of variable 'sequence'.
38082
38083 2009-04-19  Bruno Haible  <bruno@clisp.org>
38084
38085         * modules/configmake (Makefile.am): When the contents of configmake.h
38086         does not change, arrange to preserve its modification time.
38087
38088 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38089
38090         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38091         gettext domain.
38092
38093 2009-04-16  Jim Meyering  <meyering@redhat.com>
38094
38095         useless-if-before-free: improve conversion code
38096         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38097         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38098
38099 2009-04-14  Bruno Haible  <bruno@clisp.org>
38100
38101         * modules/fcntl (Depends-on): Add extensions.
38102         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38103
38104 2009-04-12  Ben Pfaff  <blp@gnu.org>
38105
38106         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38107         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38108
38109 2009-03-20  Ben Pfaff  <blp@gnu.org>
38110
38111         Make rename replace existing destinations on Windows.
38112         * m4/rename.m4: Add test for Mingw.
38113         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38114         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38115         * doc/posix-functions/rename.texi: Document.
38116
38117 2009-04-10  Bruno Haible  <bruno@clisp.org>
38118
38119         New include file "iconveh.h".
38120         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38121         * lib/striconveh.h: Include it.
38122         (enum iconv_ilseq_handler): Remove definition.
38123         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38124         striconveh.h.
38125         * lib/striconveha.c: Include striconveh.h.
38126         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38127         * modules/striconveh (Files): Add lib/iconveh.h.
38128         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38129         lib/striconveh.h.
38130
38131 2009-04-10  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/uniconv.h: Update comment.
38134
38135 2009-04-10  Bruno Haible  <bruno@clisp.org>
38136
38137         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38138         always.
38139         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38140         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38141         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38142         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38143         "unistring-notinline.h", so that the function gets defined always.
38144         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38145         * lib/unistr/u8-uctomb.c: Likewise.
38146         * lib/unistr/u16-mbtouc.c: Likewise.
38147         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38148         * lib/unistr/u16-uctomb.c: Likewise.
38149         * lib/unistr/u32-mbtouc.c: Likewise.
38150         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38151         * lib/unistr/u32-uctomb.c: Likewise.
38152
38153 2009-04-10  Bruno Haible  <bruno@clisp.org>
38154
38155         Mark 'utime' obsolete.
38156         * modules/utime (Status, Notice): New sections.
38157         Suggested by Jim Meyering.
38158
38159         Fix cross-compile guess for utime test.
38160         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38161         autoconf.
38162         * doc/posix-functions/utime.texi: Give more precisions.
38163         Reported by Jan <ipif@ymail.com>.
38164
38165 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38166
38167         filevercmp: correct today's change
38168         * lib/filevercmp.c: Also handle coreutils' test inputs.
38169         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38170
38171         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38172         for reporting it.
38173         * lib/filevercmp.c: Special handle for "", "." and "..".
38174         * tests/test-filevercmp.c: Enlarge the set suite.
38175
38176 2009-04-07  Jim Meyering  <meyering@redhat.com>
38177
38178         useless-if-before-free: show how to remove braced useless free, too
38179         * build-aux/useless-if-before-free: still only in a comment, though.
38180
38181 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38182
38183         maint.mk: import changes to syntax-check macros from coreutils
38184         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38185         Use them in the relevant macros.
38186
38187 2009-04-06  Bruno Haible  <bruno@clisp.org>
38188
38189         Fix unportable use of bit-fields.
38190         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38191         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38192         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38193
38194 2009-04-06  Bruno Haible  <bruno@clisp.org>
38195
38196         Avoid test failures on AIX and OSF/1.
38197         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38198         that malloc(0) = NULL.
38199         * tests/unicase/test-u8-tolower.c (check): Likewise.
38200         * tests/unicase/test-u8-totitle.c (check): Likewise.
38201         * tests/unicase/test-u8-toupper.c (check): Likewise.
38202         * tests/unicase/test-u16-casefold.c (check): Likewise.
38203         * tests/unicase/test-u16-tolower.c (check): Likewise.
38204         * tests/unicase/test-u16-totitle.c (check): Likewise.
38205         * tests/unicase/test-u16-toupper.c (check): Likewise.
38206         * tests/unicase/test-u32-casefold.c (check): Likewise.
38207         * tests/unicase/test-u32-tolower.c (check): Likewise.
38208         * tests/unicase/test-u32-totitle.c (check): Likewise.
38209         * tests/unicase/test-u32-toupper.c (check): Likewise.
38210         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38211         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38212         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38213         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38214         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38215         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38216         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38217         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38218         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38219         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38220         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38221         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38222
38223 2009-04-05  Bruno Haible  <bruno@clisp.org>
38224
38225         Work around an autoconf limitation.
38226         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38227         comment line if it would be longer than 3 KB.
38228
38229 2009-04-05  Bruno Haible  <bruno@clisp.org>
38230
38231         Avoid test failure with libiconv-1.13.
38232         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38233         of the expected test results.
38234
38235 2009-04-05  Bruno Haible  <bruno@clisp.org>
38236
38237         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38238         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38239         that it should be installed.
38240
38241 2009-04-05  Bruno Haible  <bruno@clisp.org>
38242
38243         * gnulib-tool: New option --copy-file.
38244         (func_usage): Document it.
38245         (func_dest_tmpfilename): Moved out of func_import.
38246         (func_add_file, func_update_file): New functions, extracted from
38247         func_import.
38248         (func_import): Update.
38249
38250 2009-04-05  Karl Berry  <karl@gnu.org>
38251
38252         * README: prominently mention gnulib-tool.
38253         Rearrange sections so getting the code is near the top.
38254
38255 2009-04-05  Bruno Haible  <bruno@clisp.org>
38256
38257         * lib/unicase.h: Mention u*_cmp2.
38258         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38259         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38260         * lib/unicase/ulc-casecmp.c: Likewise.
38261         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38262         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38263         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38264         unistr/u8-cmp.
38265         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38266         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38267         unistr/u16-cmp.
38268         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38269         unistr/u32-cmp.
38270
38271         * lib/uninorm.h: Mention u*_cmp2.
38272         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38273         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38274         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38275         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38276         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38277         unistr/u8-cmp.
38278         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38279         unistr/u16-cmp.
38280         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38281         unistr/u32-cmp.
38282
38283         New module 'unistr/u32-cmp2'.
38284         * lib/unistr/u32-cmp2.c: New file.
38285         * modules/unistr/u32-cmp2: New file.
38286
38287         New module 'unistr/u16-cmp2'.
38288         * lib/unistr/u16-cmp2.c: New file.
38289         * modules/unistr/u16-cmp2: New file.
38290
38291         New module 'unistr/u8-cmp2'.
38292         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38293         * lib/unistr/u8-cmp2.c: New file.
38294         * lib/unistr/u-cmp2.h: New file.
38295         * modules/unistr/u8-cmp2: New file.
38296
38297 2009-04-05  Bruno Haible  <bruno@clisp.org>
38298
38299         * lib/unictype.h (uc_property_is_valid): New macro.
38300         * tests/unictype/test-pr_byname.c (main): Use it.
38301
38302         * lib/unistr.h: Doc fixes.
38303         * lib/uniconv.h: Doc fixes.
38304         * lib/unictype.h: Doc fixes.
38305
38306 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38307
38308         Port coreutils 7.2 to Solaris 8.
38309
38310         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38311         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38312         for Solaris 8.  This is a bit of a hack, as it means it's the
38313         caller's responsibility to add -lnsl if needed, but most likely it
38314         won't be needed since only getaddrinfo uses this and getaddrinfo
38315         isn't needed on Solaris 8.
38316
38317         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38318         problem to Solaris 8 encountered with coreutils 7.2, which
38319         resulted in a message "fnmatch.c:292: warning: passing argument 4
38320         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38321         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38322
38323 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38324
38325         * m4/ld-version-script.m4: Add FIXME comment.
38326
38327 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38328
38329         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38330         SOVERSION variable.
38331
38332 2009-04-02  Bruno Haible  <bruno@clisp.org>
38333
38334         * Makefile (info, html, dvi, pdf): Combine the rules.
38335         Suggested by Jim Meyering.
38336
38337 2009-04-01  Bruno Haible  <bruno@clisp.org>
38338
38339         * Makefile (info, html, dvi, pdf): New targets.
38340         Reported by Reuben Thomas <rrt@sc3d.org>.
38341
38342 2009-04-01  Bruno Haible  <bruno@clisp.org>
38343
38344         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38345         can be put into PATH.
38346         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38347
38348 2009-04-01  Bruno Haible  <bruno@clisp.org>
38349
38350         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38351
38352 2009-04-01  Bruno Haible  <bruno@clisp.org>
38353
38354         Rename module 'visibility'.
38355         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38356         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38357         * doc/gnulib.texi: Update.
38358         * MODULES.html.sh (Misc): Update.
38359         * NEWS: Mention the change.
38360
38361 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38362
38363         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38364         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38365         Eric Blake <ebb9@byu.net> for review.
38366         * MODULES.html.sh: Add lib-msvc-compat.
38367         * doc/gnulib.texi: Link to new section.
38368         * m4/ld-output-def.m4: New file.
38369         * doc/ld-output-def.texi: New file.
38370
38371 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38372
38373         Rename ld-version-script to lib-symbol-versions.  Suggested by
38374         Bruno Haible <bruno@clisp.org>.
38375         * modules/ld-version-script: Renamed to lib-symbol-versions.
38376         * doc/ld-version-script.texi: Fix module name.
38377         * MODULES.html.sh: Add lib-symbol-versions.
38378
38379 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38380
38381         * modules/u64-tests: New file.
38382         * tests/test-u64.c: New file.
38383
38384 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38385
38386         * MODULES.html.sh: Mention u64.
38387         * modules/u64: New module.
38388         * modules/crypto/sha512: Depend on u64 module instead of providing
38389         u64.h.
38390
38391 2009-03-27  Eric Blake  <ebb9@byu.net>
38392
38393         test-strerror: make debugging EAI_SYSTEM easier
38394         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38395         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38396         failure was EAI_SYSTEM.
38397
38398 2009-03-25  Bruno Haible  <bruno@clisp.org>
38399
38400         Fix a problem with --enable-relocatable on Solaris 7.
38401         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38402         since 2008-02-24.
38403
38404 2009-03-25  Eric Blake  <ebb9@byu.net>
38405
38406         test-sockets: avoid gcc warning
38407         * tests/test-sockets.c (main): Silence compiler warning.
38408
38409 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38410
38411         New modules nproc, pthread, contributed by Glen Lenker.
38412
38413         * MODULES.html.sh: Add pthread, nproc.
38414         * lib/nproc.c: New file.
38415         * lib/nproc.h: New file.
38416         * lib/pthread.in.h: New file.
38417         * m4/pthread.m4: New file.
38418         * modules/nproc: New file.
38419         * modules/pthread: New file.
38420
38421 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38422
38423         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38424         New variable.
38425
38426 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38427
38428         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38429         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38430         * tests/test-filevercmp.c: Add tests for backup suffixes.
38431
38432 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38433
38434         * modules/stdlib (Depends-on): Add stdint, needed when defining
38435         struct random_data on, for example, HP-UX 10.20.  Reported by
38436         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38437
38438 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38439
38440         * lib/readline.c (readline): Call fflush on stdout after printing
38441         prompt.
38442
38443 2009-03-20  Bruno Haible  <bruno@clisp.org>
38444
38445         Remove dependency from 'close' module to -lws2_32 on native Windows.
38446         * lib/close-hook.h: New file.
38447         * lib/close-hook.c: New file.
38448         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38449         w32sock.h.
38450         (_gl_close_fd_maybe_socket): Remove function.
38451         (rpl_close): Invoke execute_all_close_hooks instead of
38452         _gl_close_fd_maybe_socket.
38453         * lib/sockets.c: Include close-hook.h, w32sock.h.
38454         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38455         (close_sockets_hook): New variable.
38456         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38457         (gl_sockets_cleanup): Unregister it.
38458         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38459         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38460         * modules/close-hook: New file.
38461         * modules/close (Files): Remove lib/w32sock.h.
38462         (Depends-on): Add close-hook.
38463         (Link): Remove section.
38464         * modules/sockets (Files): Add lib/w32sock.h.
38465         (Depends-on): Add close-hook.
38466         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38467         invocation.
38468         * NEWS: Mention that LIB_CLOSE is gone.
38469
38470 2009-03-23  Eric Blake  <ebb9@byu.net>
38471
38472         signal-tests: test previous patch
38473         * tests/test-signal.c: New file.
38474         * modules/signal-tests: Likewise.
38475
38476         signal.h: always support 'volatile sig_atomic_t'
38477         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38478         (gl_SIGNAL_H_DEFAULTS): Add a default.
38479         * modules/signal (Makefile.am): Substitute if needed.
38480         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38481         users can blindly add volatile.
38482         * doc/posix-headers/signal.texi (signal.h): Document it.
38483         Reported by Matthew Woehlke.
38484
38485 2009-03-23  Jim Meyering  <meyering@redhat.com>
38486
38487         pathmax: PATH_MAX: use pathconf only when available
38488         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38489         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38490         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38491         This avoids a link failure in a PSP cross-compilation environment
38492         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38493
38494         * lib/vasnprintf.c (divide): Fix typo in comment.
38495
38496 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38497
38498         * gnulib-tool (func_filter_filelist): Fix comment.
38499
38500 2009-03-20  Bruno Haible  <bruno@clisp.org>
38501
38502         Make sockets.h self-contained.
38503         * lib/sockets.c: Include sockets.h first.
38504         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38505
38506 2009-03-19  Eric Blake  <ebb9@byu.net>
38507
38508         doc: mention more functions added in cygwin 1.7.0
38509         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38510         addition.
38511         * doc/posix-functions/log2f.texi: Likewise.
38512
38513 2009-03-19  Jim Meyering  <meyering@redhat.com>
38514
38515         fsusage: avoid syntax error due to statement-before-declaration
38516         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38517         after all declarations.  Reported by Matthew Woehlke in
38518         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38519
38520 2009-03-18  Eric Blake  <ebb9@byu.net>
38521
38522         build-aux/compile: sync from automake
38523         * build-aux/compile: New file, from automake.
38524         * config/srclist.txt: Mention build-aux/compile.
38525
38526 2009-03-17  Bruno Haible  <bruno@clisp.org>
38527
38528         * lib/git-merge-changelog.c: Fix typo in comment.
38529         Reported by Reuben Thomas <rrt@sc3d.org>.
38530
38531 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38532
38533         * m4/regex.m4: update and improve help for
38534         --without-included-regex.
38535
38536 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38537
38538         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38539         failure on missing include files.
38540
38541 2009-03-17  Eric Blake  <ebb9@byu.net>
38542
38543         doc: mention more functions added in cygwin 1.7.0
38544         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38545         addition.
38546         * doc/posix-functions/fwscanf.texi: Likewise.
38547         * doc/posix-functions/swprintf.texi: Likewise.
38548         * doc/posix-functions/swscanf.texi: Likewise.
38549         * doc/posix-functions/vfwprintf.texi: Likewise.
38550         * doc/posix-functions/vfwscanf.texi: Likewise.
38551         * doc/posix-functions/vswprintf.texi: Likewise.
38552         * doc/posix-functions/vswscanf.texi: Likewise.
38553         * doc/posix-functions/vwprintf.texi: Likewise.
38554         * doc/posix-functions/vwscanf.texi: Likewise.
38555         * doc/posix-functions/wcscasecmp.texi: Likewise.
38556         * doc/posix-functions/wcsdup.texi: Likewise.
38557         * doc/posix-functions/wcsftime.texi: Likewise.
38558         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38559         * doc/posix-functions/wprintf.texi: Likewise.
38560         * doc/posix-functions/wscanf.texi: Likewise.
38561         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38562
38563 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38564
38565         maint.mk: really add $(AM_MAKEFLAGS)
38566         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38567         was inadvertently omitted in the last commit.
38568         Spotted by Bruno Haible.
38569
38570         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38571         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38572         $(AM_MAKEFLAGS)' rather than plain `make'.
38573
38574         gnulib-tool: execute $MAKE not make
38575         * gnulib-tool: Default $MAKE to 'make'.
38576         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38577         than make.  Initialize $MAKE in the do-autobuild script.
38578
38579         gnulib-tool: use $MAKE not make in generated files
38580         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38581         make, in generated files.  Initialize $MAKE in the do-autobuild
38582         script.
38583
38584         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38585
38586         GNUmakefile: disable parallelism only for multiple, recursive targets
38587         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38588         additions in the Makefile.
38589         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38590         by Automake.
38591         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38592         are listed on the command line and at least one of them is
38593         listed in $(ALL_RECURSIVE_TARGETS).
38594
38595 2009-03-14  Bruno Haible  <bruno@clisp.org>
38596
38597         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38598         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38599         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38600         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38601         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38602         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38603         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38604         unistr/u8-uctomb.
38605         * modules/unistr/u8-strchr (Depends-on): Likewise.
38606         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38607         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38608         unistr/u16-uctomb.
38609         * modules/unistr/u16-strchr (Depends-on): Likewise.
38610         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38611
38612 2009-03-12  Bruno Haible  <bruno@clisp.org>
38613
38614         Work around select() bug on Interix 3.5.
38615         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38616         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38617         * m4/select.m4: New file.
38618         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38619         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38620         * modules/select (Files): Add m4/select.m4.
38621         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38622         * modules/nanosleep (Depends-on): Add select.
38623         * modules/poll (Depends-on): Likewise.
38624         * doc/posix-functions/select.texi: Mention the Interix bug.
38625         Reported by Markus Duft <mduft@gentoo.org>.
38626
38627         * lib/select.c: Renamed from lib/winsock-select.c.
38628         * modules/select (Files): Add lib/select.c, remove
38629         lib/winsock-select.c.
38630         (configure.ac): Update.
38631
38632 2009-03-12  Jim Meyering  <meyering@redhat.com>
38633
38634         avoid gcc warnings about unused macro definitions
38635         * lib/readtokens.c (STREQ): Remove unused definition.
38636         * lib/xmalloc.c (SIZE_MAX): Likewise.
38637         * lib/openat-die.c (N_): Likewise.
38638         * lib/mountlist.c (SIZE_MAX): Remove definition.
38639         Instead, include <stdint.h>.
38640         * lib/readutmp.c: Likewise.
38641         * modules/readutmp (Depends-on): Add stdint.
38642         * modules/mountlist (Depends-on): Add stdint.
38643         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38644
38645 2009-03-10  Bruno Haible  <bruno@clisp.org>
38646
38647         Tests for module 'mbmemcasecoll'.
38648         * modules/mbmemcasecoll-tests: New file.
38649         * tests/test-mbmemcasecoll1.sh: New file.
38650         * tests/test-mbmemcasecoll2.sh: New file.
38651         * tests/test-mbmemcasecoll3.sh: New file.
38652         * tests/test-mbmemcasecoll.c: New file.
38653
38654         New module 'mbmemcasecoll'.
38655         * lib/mbmemcasecoll.h: New file.
38656         * lib/mbmemcasecoll.c: New file.
38657         * modules/mbmemcasecoll: New file.
38658
38659         * tests/test-mbmemcasecmp.h: New file, extracted from
38660         tests/test-mbmemcasecmp.c.
38661         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38662         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38663         (main): Update.
38664         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38665
38666 2009-03-09  Bruno Haible  <bruno@clisp.org>
38667
38668         Tests for module 'mbmemcasecmp'.
38669         * modules/mbmemcasecmp-tests: New file.
38670         * tests/test-mbmemcasecmp1.sh: New file.
38671         * tests/test-mbmemcasecmp2.sh: New file.
38672         * tests/test-mbmemcasecmp3.sh: New file.
38673         * tests/test-mbmemcasecmp.c: New file.
38674
38675         New module 'mbmemcasecmp'.
38676         * lib/mbmemcasecmp.h: New file.
38677         * lib/mbmemcasecmp.c: New file.
38678         * modules/mbmemcasecmp: New file.
38679
38680 2009-03-09  Bruno Haible  <bruno@clisp.org>
38681
38682         Tests for module 'unicase/ulc-casecoll'.
38683         * modules/unicase/ulc-casecoll-tests: New file.
38684         * tests/unicase/test-ulc-casecoll1.sh: New file.
38685         * tests/unicase/test-ulc-casecoll2.sh: New file.
38686         * tests/unicase/test-ulc-casecoll.c: New file.
38687
38688         New module 'unicase/ulc-casecoll'.
38689         * lib/unicase.h (ulc_casecoll): New declaration.
38690         * lib/unicase/ulc-casecoll.c: New file.
38691         * modules/unicase/ulc-casecoll: New file.
38692
38693         New module 'unicase/ulc-casexfrm'.
38694         * lib/unicase.h (ulc_casexfrm): New declaration.
38695         * lib/unicase/ulc-casexfrm.c: New file.
38696         * modules/unicase/ulc-casexfrm: New file.
38697
38698 2009-03-09  Bruno Haible  <bruno@clisp.org>
38699
38700         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38701         invocations.
38702
38703         * m4/mbscasecmp.m4: Remove file.
38704         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38705         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38706
38707         * m4/mbscasestr.m4: Remove file.
38708         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38709         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38710
38711         * m4/mbschr.m4: Remove file.
38712         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38713         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38714
38715         * m4/mbscspn.m4: Remove file.
38716         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38717         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38718
38719         * m4/mbslen.m4: Remove file.
38720         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38721         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38722
38723         * m4/mbsncasecmp.m4: Remove file.
38724         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38725         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38726
38727         * m4/mbsnlen.m4: Remove file.
38728         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38729         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38730
38731         * m4/mbspbrk.m4: Remove file.
38732         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38733         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38734
38735         * m4/mbspcasecmp.m4: Remove file.
38736         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38737         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38738
38739         * m4/mbsrchr.m4: Remove file.
38740         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38741         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38742
38743         * m4/mbssep.m4: Remove file.
38744         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38745         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38746
38747         * m4/mbsspn.m4: Remove file.
38748         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38749         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38750
38751         * m4/mbsstr.m4: Remove file.
38752         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38753         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38754
38755         * m4/mbstok_r.m4: Remove file.
38756         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38757         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38758
38759         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38760
38761         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38762         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38763
38764         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38765
38766 2009-03-08  Bruno Haible  <bruno@clisp.org>
38767
38768         Tests for module 'unicase/ulc-casecmp'.
38769         * modules/unicase/ulc-casecmp-tests: New file.
38770         * tests/unicase/test-ulc-casecmp1.sh: New file.
38771         * tests/unicase/test-ulc-casecmp2.sh: New file.
38772         * tests/unicase/test-ulc-casecmp.c: New file.
38773
38774         New module 'unicase/ulc-casecmp'.
38775         * lib/unicase.h (ulc_casecmp): New declaration.
38776         * lib/unicase/ulc-casecmp.c: New file.
38777         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38778         'const SRC_UNIT *'.
38779         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38780         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38781         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38782         * modules/unicase/ulc-casecmp: New file.
38783
38784         Tests for module 'unicase/u32-is-cased'.
38785         * modules/unicase/u32-is-cased-tests: New file.
38786         * tests/unicase/test-u32-is-cased.c: New file.
38787
38788         Tests for module 'unicase/u16-is-cased'.
38789         * modules/unicase/u16-is-cased-tests: New file.
38790         * tests/unicase/test-u16-is-cased.c: New file.
38791
38792         Tests for module 'unicase/u8-is-cased'.
38793         * modules/unicase/u8-is-cased-tests: New file.
38794         * tests/unicase/test-u8-is-cased.c: New file.
38795         * tests/unicase/test-is-cased.h: New file.
38796
38797         New module 'unicase/u32-is-cased'.
38798         * lib/unicase/u32-is-cased.c: New file.
38799         * modules/unicase/u32-is-cased: New file.
38800
38801         New module 'unicase/u16-is-cased'.
38802         * lib/unicase/u16-is-cased.c: New file.
38803         * modules/unicase/u16-is-cased: New file.
38804
38805         New module 'unicase/u8-is-cased'.
38806         * lib/unicase/u8-is-cased.c: New file.
38807         * lib/unicase/u-is-cased.h: New file.
38808         * modules/unicase/u8-is-cased: New file.
38809
38810         Tests for module 'unicase/u32-is-casefolded'.
38811         * modules/unicase/u32-is-casefolded-tests: New file.
38812         * tests/unicase/test-u32-is-casefolded.c: New file.
38813
38814         Tests for module 'unicase/u16-is-casefolded'.
38815         * modules/unicase/u16-is-casefolded-tests: New file.
38816         * tests/unicase/test-u16-is-casefolded.c: New file.
38817
38818         Tests for module 'unicase/u8-is-casefolded'.
38819         * modules/unicase/u8-is-casefolded-tests: New file.
38820         * tests/unicase/test-u8-is-casefolded.c: New file.
38821         * tests/unicase/test-is-casefolded.h: New file.
38822
38823         New module 'unicase/u32-is-casefolded'.
38824         * lib/unicase/u32-is-casefolded.c: New file.
38825         * modules/unicase/u32-is-casefolded: New file.
38826
38827         New module 'unicase/u16-is-casefolded'.
38828         * lib/unicase/u16-is-casefolded.c: New file.
38829         * modules/unicase/u16-is-casefolded: New file.
38830
38831         New module 'unicase/u8-is-casefolded'.
38832         * lib/unicase/u8-is-casefolded.c: New file.
38833         * modules/unicase/u8-is-casefolded: New file.
38834
38835         Tests for module 'unicase/u32-is-titlecase'.
38836         * modules/unicase/u32-is-titlecase-tests: New file.
38837         * tests/unicase/test-u32-is-titlecase.c: New file.
38838
38839         Tests for module 'unicase/u16-is-titlecase'.
38840         * modules/unicase/u16-is-titlecase-tests: New file.
38841         * tests/unicase/test-u16-is-titlecase.c: New file.
38842
38843         Tests for module 'unicase/u8-is-titlecase'.
38844         * modules/unicase/u8-is-titlecase-tests: New file.
38845         * tests/unicase/test-u8-is-titlecase.c: New file.
38846         * tests/unicase/test-is-titlecase.h: New file.
38847
38848         New module 'unicase/u32-is-titlecase'.
38849         * lib/unicase/u32-is-titlecase.c: New file.
38850         * modules/unicase/u32-is-titlecase: New file.
38851
38852         New module 'unicase/u16-is-titlecase'.
38853         * lib/unicase/u16-is-titlecase.c: New file.
38854         * modules/unicase/u16-is-titlecase: New file.
38855
38856         New module 'unicase/u8-is-titlecase'.
38857         * lib/unicase/u8-is-titlecase.c: New file.
38858         * modules/unicase/u8-is-titlecase: New file.
38859
38860         Tests for module 'unicase/u32-is-lowercase'.
38861         * modules/unicase/u32-is-lowercase-tests: New file.
38862         * tests/unicase/test-u32-is-lowercase.c: New file.
38863
38864         Tests for module 'unicase/u16-is-lowercase'.
38865         * modules/unicase/u16-is-lowercase-tests: New file.
38866         * tests/unicase/test-u16-is-lowercase.c: New file.
38867
38868         Tests for module 'unicase/u8-is-lowercase'.
38869         * modules/unicase/u8-is-lowercase-tests: New file.
38870         * tests/unicase/test-u8-is-lowercase.c: New file.
38871         * tests/unicase/test-is-lowercase.h: New file.
38872
38873         New module 'unicase/u32-is-lowercase'.
38874         * lib/unicase/u32-is-lowercase.c: New file.
38875         * modules/unicase/u32-is-lowercase: New file.
38876
38877         New module 'unicase/u16-is-lowercase'.
38878         * lib/unicase/u16-is-lowercase.c: New file.
38879         * modules/unicase/u16-is-lowercase: New file.
38880
38881         New module 'unicase/u8-is-lowercase'.
38882         * lib/unicase/u8-is-lowercase.c: New file.
38883         * modules/unicase/u8-is-lowercase: New file.
38884
38885         Tests for module 'unicase/u32-is-uppercase'.
38886         * modules/unicase/u32-is-uppercase-tests: New file.
38887         * tests/unicase/test-u32-is-uppercase.c: New file.
38888
38889         Tests for module 'unicase/u16-is-uppercase'.
38890         * modules/unicase/u16-is-uppercase-tests: New file.
38891         * tests/unicase/test-u16-is-uppercase.c: New file.
38892
38893         Tests for module 'unicase/u8-is-uppercase'.
38894         * modules/unicase/u8-is-uppercase-tests: New file.
38895         * tests/unicase/test-u8-is-uppercase.c: New file.
38896         * tests/unicase/test-is-uppercase.h: New file.
38897
38898         New module 'unicase/u32-is-uppercase'.
38899         * lib/unicase/u32-is-uppercase.c: New file.
38900         * modules/unicase/u32-is-uppercase: New file.
38901
38902         New module 'unicase/u16-is-uppercase'.
38903         * lib/unicase/u16-is-uppercase.c: New file.
38904         * modules/unicase/u16-is-uppercase: New file.
38905
38906         New module 'unicase/u8-is-uppercase'.
38907         * lib/unicase/u8-is-uppercase.c: New file.
38908         * modules/unicase/u8-is-uppercase: New file.
38909
38910         New module 'unicase/u32-is-invariant'.
38911         * lib/unicase/u32-is-invariant.c: New file.
38912         * modules/unicase/u32-is-invariant: New file.
38913
38914         New module 'unicase/u16-is-invariant'.
38915         * lib/unicase/u16-is-invariant.c: New file.
38916         * modules/unicase/u16-is-invariant: New file.
38917
38918         New module 'unicase/u8-is-invariant'.
38919         * lib/unicase/u8-is-invariant.c: New file.
38920         * lib/unicase/invariant.h: New file.
38921         * lib/unicase/u-is-invariant.h: New file.
38922         * modules/unicase/u8-is-invariant: New file.
38923
38924         Tests for module 'unicase/u32-casecoll'.
38925         * modules/unicase/u32-casecoll-tests: New file.
38926         * tests/unicase/test-u32-casecoll.c: New file.
38927
38928         Tests for module 'unicase/u16-casecoll'.
38929         * modules/unicase/u16-casecoll-tests: New file.
38930         * tests/unicase/test-u16-casecoll.c: New file.
38931
38932         Tests for module 'unicase/u8-casecoll'.
38933         * modules/unicase/u8-casecoll-tests: New file.
38934         * tests/unicase/test-u8-casecoll.c: New file.
38935
38936         New module 'unicase/u32-casecoll'.
38937         * lib/unicase/u32-casecoll.c: New file.
38938         * modules/unicase/u32-casecoll: New file.
38939
38940         New module 'unicase/u16-casecoll'.
38941         * lib/unicase/u16-casecoll.c: New file.
38942         * modules/unicase/u16-casecoll: New file.
38943
38944         New module 'unicase/u8-casecoll'.
38945         * lib/unicase/u8-casecoll.c: New file.
38946         * lib/unicase/u-casecoll.h: New file.
38947         * modules/unicase/u8-casecoll: New file.
38948
38949         New module 'unicase/u32-casexfrm'.
38950         * lib/unicase/u32-casexfrm.c: New file.
38951         * modules/unicase/u32-casexfrm: New file.
38952
38953         New module 'unicase/u16-casexfrm'.
38954         * lib/unicase/u16-casexfrm.c: New file.
38955         * modules/unicase/u16-casexfrm: New file.
38956
38957         New module 'unicase/u8-casexfrm'.
38958         * lib/unicase/u8-casexfrm.c: New file.
38959         * lib/unicase/u-casexfrm.h: New file.
38960         * modules/unicase/u8-casexfrm: New file.
38961
38962         Tests for module 'unicase/u32-casecmp'.
38963         * modules/unicase/u32-casecmp-tests: New file.
38964         * tests/unicase/test-u32-casecmp.c: New file.
38965
38966         Tests for module 'unicase/u16-casecmp'.
38967         * modules/unicase/u16-casecmp-tests: New file.
38968         * tests/unicase/test-u16-casecmp.c: New file.
38969
38970         Tests for module 'unicase/u8-casecmp'.
38971         * modules/unicase/u8-casecmp-tests: New file.
38972         * tests/unicase/test-u8-casecmp.c: New file.
38973         * tests/unicase/test-casecmp.h: New file.
38974
38975         New module 'unicase/u32-casecmp'.
38976         * lib/unicase/u32-casecmp.c: New file.
38977         * modules/unicase/u32-casecmp: New file.
38978
38979         New module 'unicase/u16-casecmp'.
38980         * lib/unicase/u16-casecmp.c: New file.
38981         * modules/unicase/u16-casecmp: New file.
38982
38983         New module 'unicase/u8-casecmp'.
38984         * lib/unicase/u8-casecmp.c: New file.
38985         * lib/unicase/u-casecmp.h: New file.
38986         * modules/unicase/u8-casecmp: New file.
38987
38988         Tests for module 'unicase/u32-casefold'.
38989         * modules/unicase/u32-casefold-tests: New file.
38990         * tests/unicase/test-u32-casefold.c: New file.
38991
38992         Tests for module 'unicase/u16-casefold'.
38993         * modules/unicase/u16-casefold-tests: New file.
38994         * tests/unicase/test-u16-casefold.c: New file.
38995
38996         Tests for module 'unicase/u8-casefold'.
38997         * modules/unicase/u8-casefold-tests: New file.
38998         * tests/unicase/test-u8-casefold.c: New file.
38999
39000         New module 'unicase/u32-casefold'.
39001         * lib/unicase/u32-casefold.c: New file.
39002         * modules/unicase/u32-casefold: New file.
39003
39004         New module 'unicase/u16-casefold'.
39005         * lib/unicase/u16-casefold.c: New file.
39006         * modules/unicase/u16-casefold: New file.
39007
39008         New module 'unicase/u8-casefold'.
39009         * lib/unicase/u8-casefold.c: New file.
39010         * lib/unicase/u-casefold.h: New file.
39011         * modules/unicase/u8-casefold: New file.
39012
39013         New module 'unicase/tocasefold'.
39014         * lib/unicase/casefold.h: New file.
39015         * lib/unicase/tocasefold.c: New file.
39016         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39017         * modules/unicase/tocasefold: New file.
39018
39019         Tests for module 'unicase/u32-totitle'.
39020         * modules/unicase/u32-totitle-tests: New file.
39021         * tests/unicase/test-u32-totitle.c: New file.
39022
39023         Tests for module 'unicase/u16-totitle'.
39024         * modules/unicase/u16-totitle-tests: New file.
39025         * tests/unicase/test-u16-totitle.c: New file.
39026
39027         Tests for module 'unicase/u8-totitle'.
39028         * modules/unicase/u8-totitle-tests: New file.
39029         * tests/unicase/test-u8-totitle.c: New file.
39030
39031         New module 'unicase/u32-totitle'.
39032         * lib/unicase/u32-totitle.c: New file.
39033         * modules/unicase/u32-totitle: New file.
39034
39035         New module 'unicase/u16-totitle'.
39036         * lib/unicase/u16-totitle.c: New file.
39037         * modules/unicase/u16-totitle: New file.
39038
39039         New module 'unicase/u8-totitle'.
39040         * lib/unicase/u8-totitle.c: New file.
39041         * lib/unicase/u-totitle.h: New file.
39042         * modules/unicase/u8-totitle: New file.
39043
39044         Tests for module 'unicase/u32-tolower'.
39045         * modules/unicase/u32-tolower-tests: New file.
39046         * tests/unicase/test-u32-tolower.c: New file.
39047
39048         Tests for module 'unicase/u16-tolower'.
39049         * modules/unicase/u16-tolower-tests: New file.
39050         * tests/unicase/test-u16-tolower.c: New file.
39051
39052         Tests for module 'unicase/u8-tolower'.
39053         * modules/unicase/u8-tolower-tests: New file.
39054         * tests/unicase/test-u8-tolower.c: New file.
39055
39056         New module 'unicase/u32-tolower'.
39057         * lib/unicase/u32-tolower.c: New file.
39058         * modules/unicase/u32-tolower: New file.
39059
39060         New module 'unicase/u16-tolower'.
39061         * lib/unicase/u16-tolower.c: New file.
39062         * modules/unicase/u16-tolower: New file.
39063
39064         New module 'unicase/u8-tolower'.
39065         * lib/unicase/u8-tolower.c: New file.
39066         * modules/unicase/u8-tolower: New file.
39067
39068         Tests for module 'unicase/u32-toupper'.
39069         * modules/unicase/u32-toupper-tests: New file.
39070         * tests/unicase/test-u32-toupper.c: New file.
39071
39072         Tests for module 'unicase/u16-toupper'.
39073         * modules/unicase/u16-toupper-tests: New file.
39074         * tests/unicase/test-u16-toupper.c: New file.
39075
39076         Tests for module 'unicase/u8-toupper'.
39077         * modules/unicase/u8-toupper-tests: New file.
39078         * tests/unicase/test-u8-toupper.c: New file.
39079
39080         New module 'unicase/u32-toupper'.
39081         * lib/unicase/u32-toupper.c: New file.
39082         * modules/unicase/u32-toupper: New file.
39083
39084         New module 'unicase/u16-toupper'.
39085         * lib/unicase/u16-toupper.c: New file.
39086         * modules/unicase/u16-toupper: New file.
39087
39088         New module 'unicase/u8-toupper'.
39089         * lib/unicase/u8-toupper.c: New file.
39090         * modules/unicase/u8-toupper: New file.
39091
39092         New module 'unicase/u32-casemap'.
39093         * lib/unicase/u32-casemap.c: New file.
39094         * modules/unicase/u32-casemap: New file.
39095
39096         New module 'unicase/u16-casemap'.
39097         * lib/unicase/u16-casemap.c: New file.
39098         * modules/unicase/u16-casemap: New file.
39099
39100         New module 'unicase/u8-casemap'.
39101         * lib/unicase/unicasemap.h: New file.
39102         * lib/unicase/u8-casemap.c: New file.
39103         * lib/unicase/u-casemap.h: New file.
39104         * modules/unicase/u8-casemap: New file.
39105
39106         New module 'unicase/special-casing'.
39107         * lib/unicase/special-casing.h: New file.
39108         * lib/unicase/special-casing.c: New file.
39109         * lib/unicase/special-casing-table.gperf: New file, generated by
39110         gen-uni-tables.c.
39111         * modules/unicase/special-casing: New file.
39112
39113         Tests for module 'unicase/locale-language'.
39114         * modules/unicase/locale-language-tests: New file.
39115         * tests/unicase/test-locale-language.sh: New file.
39116         * tests/unicase/test-locale-language.c: New file.
39117
39118         New module 'unicase/locale-language'.
39119         * lib/unicase/locale-language.c: New file.
39120         * lib/unicase/locale-languages.gperf: New file.
39121         * modules/unicase/locale-language: New file.
39122
39123         Generate more tables for case conversion and case folding.
39124         * lib/gen-uni-tables.c (SCC_*): New enum items.
39125         (struct special_casing_rule): New type.
39126         (casing_rules, num_casing_rules, allocated_casing_rules): New
39127         variables.
39128         (add_casing_rule, fill_casing_rules): New functions.
39129         (struct casefold_rule): New type.
39130         (casefolding_rules, num_casefolding_rules,
39131         allocated_casefolding_rules): New variables.
39132         (fill_casefolding_rules): New function.
39133         (unicode_casefold): New variable.
39134         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39135         sort_casing_rules, output_casing_rules): New functions.
39136         (main): Accept to more arguments: SpecialCasing.txt and
39137         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39138         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39139         Output mapping for casefolding.
39140
39141         * lib/unicase.h: Include stdbool.h, uninorm.h.
39142         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39143         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39144         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39145         arguments.
39146         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39147         resultp arguments.
39148         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39149         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39150         resultp arguments.
39151         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39152         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39153         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39154         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39155         declarations.
39156         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39157
39158 2009-03-08  Bruno Haible  <bruno@clisp.org>
39159
39160         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39161         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39162         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39163         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39164
39165 2009-03-07  Bruno Haible  <bruno@clisp.org>
39166
39167         Adjust u*_normcmp, u*_normcoll API.
39168         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39169         u16_normcoll, u32_normcoll): Change failure conventions.
39170         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39171         errno and return -1.
39172         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39173
39174 2009-03-07  Bruno Haible  <bruno@clisp.org>
39175
39176         Tests for module 'uninorm/u32-normcoll'.
39177         * modules/uninorm/u32-normcoll-tests: New file.
39178         * tests/uninorm/test-u32-normcoll.c: New file.
39179
39180         Tests for module 'uninorm/u16-normcoll'.
39181         * modules/uninorm/u16-normcoll-tests: New file.
39182         * tests/uninorm/test-u16-normcoll.c: New file.
39183
39184         Tests for module 'uninorm/u8-normcoll'.
39185         * modules/uninorm/u8-normcoll-tests: New file.
39186         * tests/uninorm/test-u8-normcoll.c: New file.
39187
39188 2009-03-07  Bruno Haible  <bruno@clisp.org>
39189
39190         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39191         tests/uninorm/test-u32-normcmp.c.
39192         * tests/uninorm/test-u32-normcmp.c: Include it.
39193         (test_nonascii): New function, extracted from main. Add some more
39194         tests.
39195         (main): Invoke test_ascii and test_nonascii.
39196         * modules/uninorm/u32-normcmp-tests (Files): Add
39197         tests/uninorm/test-u32-normcmp.h.
39198         (Depends-on): Remove uninorm/u32-normcmp.
39199
39200         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39201         tests/uninorm/test-u16-normcmp.c.
39202         * tests/uninorm/test-u16-normcmp.c: Include it.
39203         (test_nonascii): New function, extracted from main. Add some more
39204         tests.
39205         (main): Invoke test_ascii and test_nonascii.
39206         * modules/uninorm/u16-normcmp-tests (Files): Add
39207         tests/uninorm/test-u16-normcmp.h.
39208         (Depends-on): Remove uninorm/u16-normcmp.
39209
39210         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39211         tests/uninorm/test-u8-normcmp.c.
39212         * tests/uninorm/test-u8-normcmp.c: Include it.
39213         (test_nonascii): New function, extracted from main. Add some more
39214         tests.
39215         (main): Invoke test_ascii and test_nonascii.
39216         * modules/uninorm/u8-normcmp-tests (Files): Add
39217         tests/uninorm/test-u8-normcmp.h.
39218         (Depends-on): Remove uninorm/u8-normcmp.
39219
39220 2009-03-07  Bruno Haible  <bruno@clisp.org>
39221
39222         New module 'uninorm/u32-normcoll'.
39223         * lib/uninorm/u32-normcoll.c: New file.
39224         * modules/uninorm/u32-normcoll: New file.
39225
39226         New module 'uninorm/u16-normcoll'.
39227         * lib/uninorm/u16-normcoll.c: New file.
39228         * modules/uninorm/u16-normcoll: New file.
39229
39230         New module 'uninorm/u8-normcoll'.
39231         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39232         declarations.
39233         * lib/uninorm/u8-normcoll.c: New file.
39234         * lib/uninorm/u-normcoll.h: New file.
39235         * modules/uninorm/u8-normcoll: New file.
39236
39237         New module 'uninorm/u32-normxfrm'.
39238         * lib/uninorm/u32-normxfrm.c: New file.
39239         * modules/uninorm/u32-normxfrm: New file.
39240
39241         New module 'uninorm/u16-normxfrm'.
39242         * lib/uninorm/u16-normxfrm.c: New file.
39243         * modules/uninorm/u16-normxfrm: New file.
39244
39245         New module 'uninorm/u8-normxfrm'.
39246         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39247         declarations.
39248         * lib/uninorm/u8-normxfrm.c: New file.
39249         * lib/uninorm/u-normxfrm.h: New file.
39250         * modules/uninorm/u8-normxfrm: New file.
39251
39252 2009-03-07  Bruno Haible  <bruno@clisp.org>
39253
39254         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39255         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39256         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39257
39258 2009-03-07  Bruno Haible  <bruno@clisp.org>
39259
39260         New module 'memxfrm'.
39261         * lib/memxfrm.h: New file.
39262         * lib/memxfrm.c: New file.
39263         * modules/memxfrm: New file.
39264
39265 2009-03-07  Bruno Haible  <bruno@clisp.org>
39266
39267         New module 'memcmp2'.
39268         * lib/memcmp2.h: New file.
39269         * lib/memcmp2.c: New file.
39270         * modules/memcmp2: New file.
39271
39272 2009-03-07  Bruno Haible  <bruno@clisp.org>
39273
39274         Tests for module 'uninorm/decomposing-form'.
39275         * modules/uninorm/decomposing-form-tests: New file.
39276         * tests/uninorm/test-decomposing-form.c: New file.
39277
39278         New module 'uninorm/decomposing-form'.
39279         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39280         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39281         Add 'decomposing_variant' field.
39282         * lib/uninorm/decomposing-form.c: New file.
39283         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39284         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39285         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39286         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39287         * modules/uninorm/decomposing-form: New file.
39288         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39289         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39290
39291 2009-03-07  Bruno Haible  <bruno@clisp.org>
39292
39293         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39294         strings.
39295
39296 2009-03-06  Bruno Haible  <bruno@clisp.org>
39297
39298         Tests for module 'uninorm/u32-normcmp'.
39299         * tests/uninorm/test-u32-normcmp.c: New file.
39300         * modules/uninorm/u32-normcmp-tests: New file.
39301
39302         Tests for module 'uninorm/u16-normcmp'.
39303         * tests/uninorm/test-u16-normcmp.c: New file.
39304         * modules/uninorm/u16-normcmp-tests: New file.
39305
39306         Tests for module 'uninorm/u8-normcmp'.
39307         * tests/uninorm/test-u8-normcmp.c: New file.
39308         * modules/uninorm/u8-normcmp-tests: New file.
39309
39310         New module 'uninorm/u32-normcmp'.
39311         * lib/uninorm/u32-normcmp.c: New file.
39312         * modules/uninorm/u32-normcmp: New file.
39313
39314         New module 'uninorm/u16-normcmp'.
39315         * lib/uninorm/u16-normcmp.c: New file.
39316         * modules/uninorm/u16-normcmp: New file.
39317
39318         New module 'uninorm/u8-normcmp'.
39319         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39320         declarations.
39321         * lib/uninorm/u8-normcmp.c: New file.
39322         * lib/uninorm/u-normcmp.h: New file.
39323         * modules/uninorm/u8-normcmp: New file.
39324
39325 2009-03-06  Bruno Haible  <bruno@clisp.org>
39326
39327         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39328         Reported by Eric Blake.
39329
39330 2009-03-06  Eric Blake  <ebb9@byu.net>
39331             Bruno Haible  <bruno@clisp.org>
39332
39333         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39334         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39335         condition.
39336         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39337         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39338         condition.
39339         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39340
39341 2009-03-06  Eric Blake  <ebb9@byu.net>
39342
39343         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39344         to avoid compiler warnings.
39345         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39346
39347 2009-03-05  Bruno Haible  <bruno@clisp.org>
39348
39349         * tests/test-ftell.c (main): Disable test beyond end of file on
39350         FreeMiNT.
39351         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39352
39353 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39354
39355         * lib/filevercmp.c: Move hidden files up in ordering.
39356         * tests/test-filevercmp.c: Add tests for hidden files.
39357
39358 2009-03-04  Bruno Haible  <bruno@clisp.org>
39359
39360         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39361         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39362         AM_CFLAGS.
39363         Reported by Simon Josefsson.
39364
39365 2009-03-03  Bruno Haible  <bruno@clisp.org>
39366
39367         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39368         Reported by Simon Josefsson.
39369
39370         * doc/ld-version-script.texi: Update node reference.
39371
39372 2009-03-03  Bruno Haible  <bruno@clisp.org>
39373
39374         * modules/visibility (License): Change to 'unlimited'.
39375         Suggested by Simon Josefsson.
39376
39377 2009-03-03  Jim Meyering  <meyering@redhat.com>
39378
39379         unlinkdir: cannot_unlink_dir may modify process state
39380         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39381         it's neither thread-safe nor appropriate for use in a library.
39382
39383 2009-03-03  Eric Blake  <ebb9@byu.net>
39384
39385         test-closein: silence test under Darwin
39386         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39387         care if it dies from EPIPE or EBADF.
39388
39389 2009-03-03  Bruno Haible  <bruno@clisp.org>
39390
39391         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39392         earlier.
39393         * doc/visibility.texi: Fix @node and @section.
39394
39395 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39396
39397         * doc/gnulib.texi: Link to sections for ld version script and
39398         visibility.
39399         * doc/visibility.texi: Add @node and @section.
39400         * modules/ld-version-script: New module.
39401         * m4/ld-version-script.m4: New file.
39402         * doc/ld-version-script.texi: New file.
39403
39404 2009-03-02  David Lutterkort  <lutter@redhat.com>
39405
39406         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39408
39409 2009-03-02  Bruno Haible  <bruno@clisp.org>
39410
39411         * doc/visibility.texi: Mention libtool's -export-symbols option.
39412
39413 2009-03-02  Jim Meyering  <meyering@redhat.com>
39414
39415         announce-gen: new option: --no-print-checksums
39416         * build-aux/announce-gen (usage): Describe it.
39417         (print_checksums): Print a newline here, not in the [*] footnote.
39418         (main): Honor it.
39419
39420 2009-03-01  Bruno Haible  <bruno@clisp.org>
39421
39422         Use socklen_t in the native Windows replacements prototypes.
39423         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39424         instead of 'int'.
39425         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39426         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39427         * modules/getsockopt (Depends-on): Add socklen.
39428         * modules/setsockopt (Depends-on): Add socklen.
39429
39430 2009-03-01  Bruno Haible  <bruno@clisp.org>
39431
39432         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39433         least 4.2.
39434
39435 2009-03-01  Eric Blake  <ebb9@byu.net>
39436             Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39439         error messages.
39440         * lib/wait-process.c (wait_subprocess): Omit error message about
39441         deadly signal sent to the child of termsigp != NULL.
39442
39443 2009-03-01  Eric Blake  <ebb9@byu.net>
39444
39445         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39446
39447 2009-03-01  Bruno Haible  <bruno@clisp.org>
39448
39449         Avoid a gcc warning.
39450         * tests/test-sched.c (b): Make global.
39451         Reported by Eric Blake.
39452
39453 2009-01-19  Martin Lambers  <marlam@marlam.de>
39454
39455         Provide POSIX semantics for socket timeout options on W32.
39456         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39457         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39458         * modules/setsockopt: Depend on sys_time module for struct timeval.
39459         * modules/getsockopt: Depend on sys_time module for struct timeval.
39460
39461 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39462
39463         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39464         __USE_GNU, for consistency with netdb.in.h.
39465         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39466
39467 2009-03-01  Bruno Haible  <bruno@clisp.org>
39468
39469         More support for FreeMiNT.
39470         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39471         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39472
39473 2009-03-01  Bruno Haible  <bruno@clisp.org>
39474
39475         More support for FreeMiNT.
39476         * lib/fpurge.c (fpurge): Correct last commit.
39477         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39478
39479 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39480
39481         Fix unportable awk script in vc-list-files.
39482         * build-aux/vc-list-files: In the replacement awk script, use
39483         substr with a second argument of 1, not zero.
39484         Report by Simon Josefsson.
39485
39486 2009-02-28  Bruno Haible  <bruno@clisp.org>
39487
39488         More support for FreeMiNT.
39489         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39490         to FreeMiNT today.
39491         * lib/fwriting.c (fwriting): Likewise.
39492         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39493
39494 2009-02-28  Bruno Haible  <bruno@clisp.org>
39495
39496         * tests/test-freadseek.c (main): Disable test beyond end of file on
39497         FreeMiNT.
39498         * tests/test-ftello.c (main): Likewise.
39499         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39500
39501 2009-02-28  Bruno Haible  <bruno@clisp.org>
39502
39503         Add tentative support for FreeMiNT.
39504         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39505         * lib/fpurge.c (fpurge): Likewise.
39506         * lib/freadable.c (freadable): Likewise.
39507         * lib/freading.c (freading): Likewise.
39508         * lib/freadptr.c (freadptr): Likewise.
39509         * lib/freadseek.c (freadptrinc): Likewise.
39510         * lib/fseeko.c (rpl_fseeko): Likewise.
39511         * lib/fseterr.c (fseterr): Likewise.
39512         * lib/fwritable.c (fwritable): Likewise.
39513         * lib/fwriting.c (fwriting): Likewise.
39514         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39515         Hourihane.
39516         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39517
39518 2009-02-28  Bruno Haible  <bruno@clisp.org>
39519
39520         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39521         SIGCHLD.
39522         Reported by Jim Meyering.
39523
39524 2009-02-28  Bruno Haible  <bruno@clisp.org>
39525
39526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39527         Mention the results of these tests on various platforms.
39528         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39529         order.
39530         * doc/posix-functions/printf.texi: Likewise.
39531         * doc/posix-functions/snprintf.texi: Likewise.
39532         * doc/posix-functions/sprintf.texi: Likewise.
39533         * doc/posix-functions/vfprintf.texi: Likewise.
39534         * doc/posix-functions/vprintf.texi: Likewise.
39535         * doc/posix-functions/vsnprintf.texi: Likewise.
39536         * doc/posix-functions/vsprintf.texi: Likewise.
39537         * doc/glibc-functions/obstack_printf.texi: Likewise.
39538         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39539
39540 2009-02-28  Bruno Haible  <bruno@clisp.org>
39541
39542         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39543         Reported by Loïc Minier <lool@dooz.org>.
39544
39545 2009-02-27  Bruno Haible  <bruno@clisp.org>
39546
39547         * gnulib-tool (func_import): Make the sed expression used to create the
39548         sed script for updating the .gitignore file POSIX compliant.
39549         Reported by Eric Blake.
39550
39551 2009-02-27  Bruno Haible  <bruno@clisp.org>
39552
39553         * gnulib-tool (sed): Don't alias as "sed --posix".
39554         Reported by Eric Blake.
39555
39556 2009-02-27  Bruno Haible  <bruno@clisp.org>
39557
39558         Avoid test link errors.
39559         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39560         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39561         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39562         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39564
39565 2009-02-27  Bruno Haible  <bruno@clisp.org>
39566
39567         Avoid spurious "(cached)" in configure output.
39568         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39569         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39570         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39571         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39572         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39573         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39574         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39575         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39576         Reported by Eric Blake.
39577
39578 2009-02-27  Eric Blake  <ebb9@byu.net>
39579
39580         printf: fix regression in previous patch
39581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39582
39583 2009-02-27  Bruno Haible  <bruno@clisp.org>
39584
39585         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39586         value.
39587         * lib/stdint.in.h: Likewise.
39588         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39589
39590 2009-02-27  Eric Blake  <ebb9@byu.net>
39591
39592         doc: mention more functions added in cygwin 1.7.0
39593         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39594         addition.
39595         * doc/posix-functions/open_wmemstream.texi: Likewise.
39596         * doc/posix-functions/wcsnlen.texi: Likewise.
39597         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39598         * doc/posix-functions/wcstod.texi: Likewise.
39599         * doc/posix-functions/wcstof.texi: Likewise.
39600         * doc/posix-functions/wcstoimax.texi: Likewise.
39601         * doc/posix-functions/wcstok.texi: Likewise.
39602         * doc/posix-functions/wcstoumax.texi: Likewise.
39603
39604         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39605         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39606         * doc/posix-functions/fprintf.texi: Update.
39607         * doc/posix-functions/printf.texi: Update.
39608         * doc/posix-functions/snprintf.texi: Update.
39609         * doc/posix-functions/sprintf.texi: Update.
39610         * doc/posix-functions/vfprintf.texi: Update.
39611         * doc/posix-functions/vprintf.texi: Update.
39612         * doc/posix-functions/vsnprintf.texi: Update.
39613         * doc/posix-functions/vsprintf.texi: Update.
39614         * doc/glibc-functions/obstack_printf.texi: Update.
39615         * doc/glibc-functions/obstack_vprintf.texi: Update.
39616
39617 2009-02-26  Eric Blake  <ebb9@byu.net>
39618
39619         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39620         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39621         compilation bug by using runtime conversion.
39622         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39623         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39624         * modules/ceill-tests (Files): Use nan.h.
39625         * modules/floorl-tests (Files): Likewise.
39626         * modules/frexpl-tests (Files): Likewise.
39627         * modules/isnanl-tests (Files): Likewise.
39628         * modules/ldexpl-tests (Files): Likewise.
39629         * modules/roundl-tests (Files): Likewise.
39630         * modules/truncl-tests (Files): Likewise.
39631         * tests/test-ceill.c (main): Use a working NaN.
39632         * tests/test-floorl.c (main): Likewise.
39633         * tests/test-frexpl.c (main): Likewise.
39634         * tests/test-isnan.c (test_long_double): Likewise.
39635         * tests/test-isnanl.h (main): Likewise.
39636         * tests/test-ldexpl.h (main): Likewise.
39637         * tests/test-roundl.h (main): Likewise.
39638         * tests/test-truncl.h (main): Likewise.
39639         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39640
39641 2009-02-26  Eric Blake  <ebb9@byu.net>
39642             Bruno Haible  <bruno@clisp.org>
39643
39644         Work around a *printf bug with %ls on Solaris.
39645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39646         precision is specified, sprintf stops converting the wide string
39647         argument when the number of bytes that have been produced by this
39648         conversion equals or exceeds the precision.
39649         * doc/posix-functions/fprintf.texi: Update.
39650         * doc/posix-functions/printf.texi: Update.
39651         * doc/posix-functions/snprintf.texi: Update.
39652         * doc/posix-functions/sprintf.texi: Update.
39653         * doc/posix-functions/vfprintf.texi: Update.
39654         * doc/posix-functions/vprintf.texi: Update.
39655         * doc/posix-functions/vsnprintf.texi: Update.
39656         * doc/posix-functions/vsprintf.texi: Update.
39657         * doc/glibc-functions/obstack_printf.texi: Update.
39658         * doc/glibc-functions/obstack_vprintf.texi: Update.
39659
39660 2009-02-26  Eric Blake  <ebb9@byu.net>
39661
39662         stdlib: favor compiler check of random.h
39663         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39664         to avoid an ObjC random.h installed by Swarm.
39665
39666 2009-02-26  Bruno Haible  <bruno@clisp.org>
39667
39668         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39669         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39670         Reported by Gary V. Vaughan <gary@gnu.org>.
39671
39672 2009-02-26  Bruno Haible  <bruno@clisp.org>
39673
39674         Fix *printf behaviour regarding the %ls directive.
39675         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39676         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39677         NEED_PRINTF_DIRECTIVE_LS.
39678         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39679         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39681         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39682         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39683         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39684         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39686         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39687         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39689         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39690         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39691         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39692         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39693         * doc/posix-functions/fprintf.texi: Update.
39694         * doc/posix-functions/printf.texi: Update.
39695         * doc/posix-functions/snprintf.texi: Update.
39696         * doc/posix-functions/sprintf.texi: Update.
39697         * doc/posix-functions/vfprintf.texi: Update.
39698         * doc/posix-functions/vprintf.texi: Update.
39699         * doc/posix-functions/vsnprintf.texi: Update.
39700         * doc/posix-functions/vsprintf.texi: Update.
39701         * doc/glibc-functions/obstack_printf.texi: Update.
39702         * doc/glibc-functions/obstack_vprintf.texi: Update.
39703         Reported by Eric Blake.
39704
39705 2009-02-25  Bruno Haible  <bruno@clisp.org>
39706
39707         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39708         with known value.
39709         Reported by Gary V. Vaughan <gary@gnu.org>.
39710
39711 2009-02-25  Bruno Haible  <bruno@clisp.org>
39712
39713         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39714         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39715         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39716         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39717         Reported by Gary V. Vaughan <gary@gnu.org>.
39718
39719 2009-02-25  Bruno Haible  <bruno@clisp.org>
39720
39721         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39722         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39723         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39724         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39725         Reported by Gary V. Vaughan <gary@gnu.org>.
39726
39727 2009-02-25  Eric Blake  <ebb9@byu.net>
39728
39729         tests: skip fseek/ftell tests if ungetc is broken
39730         * m4/ungetc.m4: New file.
39731         * modules/fseek-tests: Split test, so ungetc dependency is
39732         separate from rest of test.
39733         * modules/fseeko-tests: Likewise.
39734         * modules/ftell-tests: Likewise.
39735         * modules/ftello-tests: Likewise.
39736         * tests/test-fseek.c (main): Isolate ungetc dependency.
39737         * tests/test-fseeko.c (main): Likewise.
39738         * tests/test-ftell.c (main): Likewise.
39739         * tests/test-ftello.c (main): Likewise.
39740         * tests/test-fseek2.sh: New file.
39741         * tests/test-fseeko2.sh: Likewise.
39742         * tests/test-ftell2.sh: Likewise.
39743         * tests/test-ftello2.sh: Likewise.
39744
39745 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39746
39747         test-getaddrinfo: fix usage of skip return code 77
39748         * tests/test-gettaddrinfo.c: Return skip code 77 only
39749         for first occurance of skip (4x77 is not 77)
39750
39751 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39752
39753         strtod: avoid C99 decl-after-statement
39754         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39755
39756 2009-02-24  Eric Blake  <ebb9@byu.net>
39757
39758         strtod: detect HP-UX 11.31 bug
39759         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39760         Reported by Gary V. Vaughan.
39761
39762 2009-02-23  Bruno Haible  <bruno@clisp.org>
39763
39764         Fix invalid read past end of memory block.
39765         * lib/vasnprintf.c (DCHAR_SET): Define.
39766         (local_wcslen): Define only when needed.
39767         (local_strnlen, local_wcsnlen): New functions.
39768         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39769         directives that involve a conversion ourselves.
39770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39771         wcsnlen, mbrtowc, wcrtomb.
39772         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39773         * tests/test-vasprintf-posix.c (test_function): Likewise.
39774         * tests/test-snprintf-posix.h (test_function): Likewise.
39775         * tests/test-sprintf-posix.h (test_function): Likewise.
39776         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39777
39778 2009-02-22  Bruno Haible  <bruno@clisp.org>
39779
39780         Implement new clarified decomposition of Hangul syllables.
39781         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39782         of type LTV, return only a pairwise decomposition.
39783         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39784         Likewise.
39785         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39786         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39787         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39788
39789 2009-02-22  Bruno Haible  <bruno@clisp.org>
39790
39791         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39792         zero-length results and shrink excess allocated memory.
39793         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39794         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39795         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39796         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39797         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39798         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39799         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39800         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39801         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39802         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39803         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39804         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39805
39806 2009-02-21  Bruno Haible  <bruno@clisp.org>
39807
39808         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39809         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39810         spaces after a period. Put a space between a macro name and its
39811         argument list. Trivial rewordings.
39812         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39813         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39814         (main): Return 0 explicitly.
39815
39816 2009-02-21  Bruno Haible  <bruno@clisp.org>
39817
39818         Tests for module 'uninorm/filter'.
39819         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39820         * modules/uninorm/filter-tests: New file.
39821
39822         New module 'uninorm/filter'.
39823         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39824         uninorm_filter_flush, uninorm_filter_free): New declarations.
39825         * lib/uninorm/uninorm-filter.c: New file.
39826         * modules/uninorm/filter: New file.
39827
39828 2009-02-21  Bruno Haible  <bruno@clisp.org>
39829
39830         Tests for module 'uninorm/nfkc'.
39831         * tests/uninorm/test-nfkc.c: New file.
39832         * tests/uninorm/test-u8-nfkc.c: New file.
39833         * tests/uninorm/test-u16-nfkc.c: New file.
39834         * tests/uninorm/test-u32-nfkc.c: New file.
39835         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39836         * tests/uninorm/test-u32-nfkc-big.c: New file.
39837         * modules/uninorm/nfkc-tests: New file.
39838
39839         New module 'uninorm/nfkc'.
39840         * lib/uninorm/nfkc.c: New file.
39841         * modules/uninorm/nfkc: New file.
39842
39843         Tests for module 'uninorm/nfkd'.
39844         * tests/uninorm/test-nfkd.c: New file.
39845         * tests/uninorm/test-u8-nfkd.c: New file.
39846         * tests/uninorm/test-u16-nfkd.c: New file.
39847         * tests/uninorm/test-u32-nfkd.c: New file.
39848         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39849         * tests/uninorm/test-u32-nfkd-big.c: New file.
39850         * modules/uninorm/nfkd-tests: New file.
39851
39852         New module 'uninorm/nfkd'.
39853         * lib/uninorm/nfkd.c: New file.
39854         * modules/uninorm/nfkd: New file.
39855
39856         Tests for module 'uninorm/nfc'.
39857         * tests/uninorm/test-nfc.c: New file.
39858         * tests/uninorm/test-u8-nfc.c: New file.
39859         * tests/uninorm/test-u16-nfc.c: New file.
39860         * tests/uninorm/test-u32-nfc.c: New file.
39861         * tests/uninorm/test-u32-nfc-big.sh: New file.
39862         * tests/uninorm/test-u32-nfc-big.c: New file.
39863         * modules/uninorm/nfc-tests: New file.
39864
39865         New module 'uninorm/nfc'.
39866         * lib/uninorm/nfc.c: New file.
39867         * modules/uninorm/nfc: New file.
39868
39869         Tests for module 'uninorm/nfd'.
39870         * tests/uninorm/test-nfd.c: New file.
39871         * tests/uninorm/test-u8-nfd.c: New file.
39872         * tests/uninorm/test-u16-nfd.c: New file.
39873         * tests/uninorm/test-u32-nfd.c: New file.
39874         * tests/uninorm/test-u32-nfd-big.sh: New file.
39875         * tests/uninorm/test-u32-nfd-big.c: New file.
39876         * tests/uninorm/test-u32-normalize-big.h: New file.
39877         * tests/uninorm/test-u32-normalize-big.c: New file.
39878         * tests/uninorm/NormalizationTest.txt: New file, created from
39879         Unicode 5.1.0 NormalizationTest.txt.
39880         * modules/uninorm/nfd-tests: New file.
39881
39882         New module 'uninorm/nfd'.
39883         * lib/uninorm/nfd.c: New file.
39884         * modules/uninorm/nfd: New file.
39885
39886         New module 'uninorm/u32-normalize'.
39887         * lib/uninorm/u32-normalize.c: New file.
39888         * modules/uninorm/u32-normalize: New file.
39889
39890         New module 'uninorm/u16-normalize'.
39891         * lib/uninorm/u16-normalize.c: New file.
39892         * modules/uninorm/u16-normalize: New file.
39893
39894         New module 'uninorm/u8-normalize'.
39895         * lib/uninorm/u8-normalize.c: New file.
39896         * lib/uninorm/normalize-internal.h: New file.
39897         * lib/uninorm/u-normalize-internal.h: New file.
39898         * modules/uninorm/u8-normalize: New file.
39899
39900         New module 'uninorm/decompose-internal'.
39901         * lib/uninorm/decompose-internal.c: New file.
39902         * modules/uninorm/decompose-internal: New file.
39903
39904         Tests for module 'uninorm/composition'.
39905         * tests/uninorm/test-composition.c: New file.
39906         * modules/uninorm/composition-tests: New file.
39907
39908         New module 'uninorm/composition'.
39909         * lib/uninorm/composition.c: New file.
39910         * lib/uninorm/composition-table.gperf: New file, generated by
39911         gen-uni-tables.
39912         * modules/uninorm/composition: New file.
39913
39914         Tests for module 'uninorm/compat-decomposition'.
39915         * tests/uninorm/test-compat-decomposition.c: New file.
39916         * modules/uninorm/compat-decomposition-tests: New file.
39917
39918         New module 'uninorm/compat-decomposition'.
39919         * lib/uninorm/decompose-internal.h: New file.
39920         * lib/uninorm/compat-decomposition.c: New file.
39921         * modules/uninorm/compat-decomposition: New file.
39922
39923         Tests for module 'uninorm/canonical-decomposition'.
39924         * tests/uninorm/test-canonical-decomposition.c: New file.
39925         * modules/uninorm/canonical-decomposition-tests: New file.
39926
39927         New module 'uninorm/canonical-decomposition'.
39928         * lib/uninorm/canonical-decomposition.c: New file.
39929         * modules/uninorm/canonical-decomposition: New file.
39930
39931         Tests for module 'uninorm/decomposition'.
39932         * tests/uninorm/test-decomposition.c: New file.
39933         * modules/uninorm/decomposition-tests: New file.
39934
39935         New module 'uninorm/decomposition'.
39936         * lib/uninorm/decomposition.c: New file.
39937         * modules/uninorm/decomposition: New file.
39938
39939         New module 'uninorm/decomposition-table'.
39940         * lib/uninorm/decomposition-table.h: New file.
39941         * lib/uninorm/decomposition-table.c: New file.
39942         * lib/uninorm/decomposition-table1.h: New file, generated by
39943         gen-uni-tables.
39944         * lib/uninorm/decomposition-table2.h: New file, generated by
39945         gen-uni-tables.
39946         * modules/uninorm/decomposition-table: New file.
39947
39948         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39949         (UC_DECOMP_*): New enumeration items.
39950         (get_decomposition): New function.
39951         (struct decomp_table): New type.
39952         (output_decomposition, output_decomposition_tables): New functions.
39953         (unicode_composition_exclusions): New variable.
39954         (fill_composition_exclusions, debug_output_composition_tables): New
39955         functions.
39956         (main): Accept one more argument. Invoke fill_composition_exclusions.
39957         Output decomposition and composition tables.
39958
39959         New module 'uninorm/base'.
39960         * lib/uninorm.h: New file.
39961         * lib/unictype.h: Update comment.
39962         * modules/uninorm/base: New file.
39963
39964 2009-02-21  David Lutterkort  <lutter@redhat.com>
39965
39966         Tests for module 'safe-alloc'.
39967         * tests/test-safe-alloc.c: New file.
39968         * modules/safe-alloc-tests: New file.
39969
39970         New module 'safe-alloc'.
39971         * lib/safe-alloc.h: New file.
39972         * lib/safe-alloc.c: New file.
39973         * m4/safe-alloc.m4: New file.
39974         * modules/safe-alloc: New file.
39975         * doc/safe-alloc.texi: New file.
39976         * doc/gnulib.texi: Include it.
39977         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39978         safe-alloc.
39979
39980 2009-02-18  Bruno Haible  <bruno@clisp.org>
39981
39982         Fix link error on non-glibc systems.
39983         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39984         variable.
39985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39986
39987 2009-02-18  Jim Meyering  <meyering@redhat.com>
39988
39989         fts: avoid used-uninitialized error due to recent change
39990         * lib/fts.c (fts_read): Guard uses of the new member,
39991         parent->fts_n_dirs_remaining, since it's not relevant for
39992         the parent of a directory specified on the command-line.
39993
39994 2009-02-17  James Youngman  <jay@gnu.org>
39995             Bruno Haible  <bruno@clisp.org>
39996
39997         * m4/include_next.m4: Reformulate comment.
39998
39999 2009-02-16  Jim Meyering  <meyering@redhat.com>
40000
40001         fts: add #if guards so that the fts_lgpl module still builds
40002         * lib/fts.c: Guard just-added hash-table-using parts with
40003         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40004         Reported by Simon Josefsson.
40005
40006 2009-02-15  Bruno Haible  <bruno@clisp.org>
40007
40008         * modules/array-mergesort-tests: New file.
40009         * tests/test-array-mergesort.c: New file.
40010
40011         New module 'array-mergesort'.
40012         * modules/array-mergesort: New file.
40013         * lib/array-mergesort.h: New file.
40014
40015 2009-02-15  Bruno Haible  <bruno@clisp.org>
40016
40017         Fix 2009-02-07 commit.
40018         * lib/gen-uni-tables.c (output_predicate, output_category,
40019         output_combclass, output_bidi_category, output_decimal_digit,
40020         output_digit, output_numeric, output_mirror, output_scripts,
40021         output_ident_category, output_simple_mapping): Fix format directives.
40022         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40023
40024 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40025
40026         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40027         fixes are available from IBM.
40028
40029 2009-02-13  Jim Meyering  <meyering@redhat.com>
40030
40031         fts: arrange not to stat non-directories in more cases
40032         This makes GNU find (when it doesn't need to stat each file)
40033         *much* more efficient at traversing reiserfs file systems.
40034         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40035         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40036         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40037         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40038         (leaf_optimization_applies): New function.
40039         (LCO_hash, LCO_compare): New helper functions.
40040         (link_count_optimize_ok): New function.
40041         (fts_stat): Initialize new member (if dir).
40042         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40043         we've just stat'ed a directory.  Skip the stat call when possible.
40044         ---
40045         Note this AFS-related exchange:
40046         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40047         and note find's pioctl call in find/fstype.c.
40048         But that is necessary only if you want to enable the
40049         optimization for AFS, and for now, I don't.
40050
40051         fts: move a function definition "up" (no semantic change)
40052         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40053         "up" to precede upcoming use of a related function.
40054
40055 2009-02-11  Jim Meyering  <meyering@redhat.com>
40056
40057         fts: correct internal computation of nlinks (optimization-related)
40058         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40059         whether the current entry is a directory, so don't test it.
40060
40061 2009-02-10  Bruno Haible  <bruno@clisp.org>
40062
40063         Tests for module 'uniwbrk/ulc-wordbreaks'.
40064         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40065         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40066         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40067
40068         Tests for module 'uniwbrk/u32-wordbreaks'.
40069         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40070         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40071
40072         Tests for module 'uniwbrk/u16-wordbreaks'.
40073         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40074         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40075
40076         Tests for module 'uniwbrk/u8-wordbreaks'.
40077         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40078         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40079
40080 2009-02-10  Bruno Haible  <bruno@clisp.org>
40081
40082         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40083         property.
40084         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40085         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40086         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40087
40088 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40089
40090         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40091         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40092
40093 2009-02-10  Bruno Haible  <bruno@clisp.org>
40094
40095         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40096         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40097         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40098         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40099         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40100         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40101
40102 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40103
40104         * lib/sockets.h (gl_fd_to_handle): New function.
40105
40106         * tests/test-sockets.c: Call gl_fd_to_handle.
40107
40108 2009-02-09  Bruno Haible  <bruno@clisp.org>
40109
40110         * doc/havelib.texi: Document the conventions on bi-arch systems.
40111
40112 2009-02-08  Bruno Haible  <bruno@clisp.org>
40113
40114         Document the AC_LIB_LINKFLAGS macro.
40115         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40116         * doc/gnulib.texi: Include it.
40117
40118 2009-02-08  Bruno Haible  <bruno@clisp.org>
40119
40120         Fix wrong order of sections, compared to TOC.
40121         * doc/gnulib.texi: Include relocatable-maint.texi after the
40122         "Regular expressions" node, not before.
40123
40124 2009-02-08  Bruno Haible  <bruno@clisp.org>
40125
40126         Tests for module 'unicase/totitle'.
40127         * modules/unicase/totitle-tests: New file.
40128
40129         Tests for module 'unicase/tolower'.
40130         * modules/unicase/tolower-tests: New file.
40131
40132         Tests for module 'unicase/toupper'.
40133         * modules/unicase/toupper-tests: New file.
40134         * tests/unicase/test-mapping-part1.h: New file.
40135         * tests/unicase/test-mapping-part2.h: New file.
40136
40137         New module 'unicase/totitle'.
40138         * modules/unicase/totitle: New file.
40139         * lib/unicase/totitle.c: New file.
40140
40141         New module 'unicase/tolower'.
40142         * modules/unicase/tolower: New file.
40143         * lib/unicase/tolower.c: New file.
40144
40145         New module 'unicase/toupper'.
40146         * modules/unicase/toupper: New file.
40147         * lib/unicase/toupper.c: New file.
40148         * lib/unicase/simple-mapping.h: New file.
40149
40150         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40151         (mapping_table): New structure.
40152         (output_simple_mapping): New function.
40153         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40154         * modules/gen-uni-tables (Description): Update.
40155         * lib/unicase/toupper.h: New file, automatically generated by
40156         gen-uni-tables.
40157         * lib/unicase/tolower.h: New file, automatically generated by
40158         gen-uni-tables.
40159         * lib/unicase/totitle.h: New file, automatically generated by
40160         gen-uni-tables.
40161         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40162         gen-uni-tables.
40163         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40164         gen-uni-tables.
40165         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40166         gen-uni-tables.
40167
40168         New module 'unicase/base'.
40169         * modules/unicase/base: New file.
40170         * lib/unicase.h: New file.
40171
40172 2009-02-08  Bruno Haible  <bruno@clisp.org>
40173
40174         New module 'uniwbrk/ulc-wordbreaks'.
40175         * modules/uniwbrk/ulc-wordbreaks: New file.
40176         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40177
40178         New module 'uniwbrk/u32-wordbreaks'.
40179         * modules/uniwbrk/u32-wordbreaks: New file.
40180         * lib/uniwbrk/u32-wordbreaks.c: New file.
40181
40182         New module 'uniwbrk/u16-wordbreaks'.
40183         * modules/uniwbrk/u16-wordbreaks: New file.
40184         * lib/uniwbrk/u16-wordbreaks.c: New file.
40185
40186         New module 'uniwbrk/u8-wordbreaks'.
40187         * modules/uniwbrk/u8-wordbreaks: New file.
40188         * lib/uniwbrk/u8-wordbreaks.c: New file.
40189         * lib/uniwbrk/u-wordbreaks.h: New file.
40190
40191         New module 'uniwbrk/table'.
40192         * modules/uniwbrk/table: New file.
40193         * lib/uniwbrk/wbrktable.h: New file.
40194         * lib/uniwbrk/wbrktable.c: New file.
40195
40196         New module 'uniwbrk/wordbreak-property'.
40197         * modules/uniwbrk/wordbreak-property: New file.
40198         * lib/uniwbrk/wordbreak-property.c: New file.
40199
40200         * lib/gen-uni-tables.c (WBP_*): New enum items.
40201         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40202         (unicode_org_wbp): New variable.
40203         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40204         New functions.
40205         (wbp_table): New structure.
40206         (output_wbp, output_wbrk_tables): New functions.
40207         (main): Accept additional argument. Invoke fill_org_wbp,
40208         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40209         output_wbrk_tables.
40210         * modules/gen-uni-tables (Description): Update.
40211         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40212         gen-uni-tables.
40213
40214         New module 'uniwbrk/base'.
40215         * modules/uniwbrk/base: New file.
40216         * lib/uniwbrk.h: New file.
40217
40218 2009-02-08  Bruno Haible  <bruno@clisp.org>
40219
40220         Update to Unicode 5.1.0.
40221         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40222         U+2185..U+2188.
40223         (is_property_default_ignorable_code_point): Don't include characters
40224         of category Cc or Cs and not-a-characters.
40225         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40226         U+0D79, U+109E, U+109F, U+A60C.
40227         * lib/unictype/bidi_of.h: Regenerated.
40228         * lib/unictype/blocks.h: Regenerated.
40229         * lib/unictype/categ_C.h: Regenerated.
40230         * lib/unictype/categ_Cf.h: Regenerated.
40231         * lib/unictype/categ_Cn.h: Regenerated.
40232         * lib/unictype/categ_L.h: Regenerated.
40233         * lib/unictype/categ_Ll.h: Regenerated.
40234         * lib/unictype/categ_Lm.h: Regenerated.
40235         * lib/unictype/categ_Lo.h: Regenerated.
40236         * lib/unictype/categ_Lu.h: Regenerated.
40237         * lib/unictype/categ_M.h: Regenerated.
40238         * lib/unictype/categ_Mc.h: Regenerated.
40239         * lib/unictype/categ_Me.h: Regenerated.
40240         * lib/unictype/categ_Mn.h: Regenerated.
40241         * lib/unictype/categ_N.h: Regenerated.
40242         * lib/unictype/categ_Nd.h: Regenerated.
40243         * lib/unictype/categ_Nl.h: Regenerated.
40244         * lib/unictype/categ_No.h: Regenerated.
40245         * lib/unictype/categ_P.h: Regenerated.
40246         * lib/unictype/categ_Pd.h: Regenerated.
40247         * lib/unictype/categ_Pe.h: Regenerated.
40248         * lib/unictype/categ_Pf.h: Regenerated.
40249         * lib/unictype/categ_Pi.h: Regenerated.
40250         * lib/unictype/categ_Po.h: Regenerated.
40251         * lib/unictype/categ_Ps.h: Regenerated.
40252         * lib/unictype/categ_S.h: Regenerated.
40253         * lib/unictype/categ_Sk.h: Regenerated.
40254         * lib/unictype/categ_Sm.h: Regenerated.
40255         * lib/unictype/categ_So.h: Regenerated.
40256         * lib/unictype/categ_of.h: Regenerated.
40257         * lib/unictype/combining.h: Regenerated.
40258         * lib/unictype/ctype_alnum.h: Regenerated.
40259         * lib/unictype/ctype_alpha.h: Regenerated.
40260         * lib/unictype/ctype_graph.h: Regenerated.
40261         * lib/unictype/ctype_lower.h: Regenerated.
40262         * lib/unictype/ctype_print.h: Regenerated.
40263         * lib/unictype/ctype_punct.h: Regenerated.
40264         * lib/unictype/ctype_upper.h: Regenerated.
40265         * lib/unictype/decdigit.h: Regenerated.
40266         * lib/unictype/digit.h: Regenerated.
40267         * lib/unictype/mirror.h: Regenerated.
40268         * lib/unictype/numeric.h: Regenerated.
40269         * lib/unictype/pr_alphabetic.h: Regenerated.
40270         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40271         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40272         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40273         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40274         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40275         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40276         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40277         * lib/unictype/pr_combining.h: Regenerated.
40278         * lib/unictype/pr_dash.h: Regenerated.
40279         * lib/unictype/pr_decimal_digit.h: Regenerated.
40280         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40281         * lib/unictype/pr_deprecated.h: Regenerated.
40282         * lib/unictype/pr_diacritic.h: Regenerated.
40283         * lib/unictype/pr_extender.h: Regenerated.
40284         * lib/unictype/pr_format_control.h: Regenerated.
40285         * lib/unictype/pr_grapheme_base.h: Regenerated.
40286         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40287         * lib/unictype/pr_grapheme_link.h: Regenerated.
40288         * lib/unictype/pr_id_continue.h: Regenerated.
40289         * lib/unictype/pr_id_start.h: Regenerated.
40290         * lib/unictype/pr_ideographic.h: Regenerated.
40291         * lib/unictype/pr_ignorable_control.h: Regenerated.
40292         * lib/unictype/pr_lowercase.h: Regenerated.
40293         * lib/unictype/pr_math.h: Regenerated.
40294         * lib/unictype/pr_numeric.h: Regenerated.
40295         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40296         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40297         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40298         * lib/unictype/pr_other_id_continue.h: Regenerated.
40299         * lib/unictype/pr_other_lowercase.h: Regenerated.
40300         * lib/unictype/pr_other_math.h: Regenerated.
40301         * lib/unictype/pr_punctuation.h: Regenerated.
40302         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40303         * lib/unictype/pr_soft_dotted.h: Regenerated.
40304         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40305         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40306         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40307         * lib/unictype/pr_uppercase.h: Regenerated.
40308         * lib/unictype/pr_xid_continue.h: Regenerated.
40309         * lib/unictype/pr_xid_start.h: Regenerated.
40310         * lib/unictype/pr_zero_width.h: Regenerated.
40311         * lib/unictype/scripts.h: Regenerated.
40312         * lib/unictype/scripts_byname.gperf: Regenerated.
40313         * lib/unictype/sy_java_ident.h: Regenerated.
40314         * lib/unilbrk/lbrkprop1.h: Regenerated.
40315         * lib/unilbrk/lbrkprop2.h: Regenerated.
40316         * tests/unictype/test-categ_C.c: Regenerated.
40317         * tests/unictype/test-categ_Cf.c: Regenerated.
40318         * tests/unictype/test-categ_Cn.c: Regenerated.
40319         * tests/unictype/test-categ_L.c: Regenerated.
40320         * tests/unictype/test-categ_Ll.c: Regenerated.
40321         * tests/unictype/test-categ_Lm.c: Regenerated.
40322         * tests/unictype/test-categ_Lo.c: Regenerated.
40323         * tests/unictype/test-categ_Lu.c: Regenerated.
40324         * tests/unictype/test-categ_M.c: Regenerated.
40325         * tests/unictype/test-categ_Mc.c: Regenerated.
40326         * tests/unictype/test-categ_Me.c: Regenerated.
40327         * tests/unictype/test-categ_Mn.c: Regenerated.
40328         * tests/unictype/test-categ_N.c: Regenerated.
40329         * tests/unictype/test-categ_Nd.c: Regenerated.
40330         * tests/unictype/test-categ_Nl.c: Regenerated.
40331         * tests/unictype/test-categ_No.c: Regenerated.
40332         * tests/unictype/test-categ_P.c: Regenerated.
40333         * tests/unictype/test-categ_Pd.c: Regenerated.
40334         * tests/unictype/test-categ_Pe.c: Regenerated.
40335         * tests/unictype/test-categ_Pf.c: Regenerated.
40336         * tests/unictype/test-categ_Pi.c: Regenerated.
40337         * tests/unictype/test-categ_Po.c: Regenerated.
40338         * tests/unictype/test-categ_Ps.c: Regenerated.
40339         * tests/unictype/test-categ_S.c: Regenerated.
40340         * tests/unictype/test-categ_Sk.c: Regenerated.
40341         * tests/unictype/test-categ_Sm.c: Regenerated.
40342         * tests/unictype/test-categ_So.c: Regenerated.
40343         * tests/unictype/test-ctype_alnum.c: Regenerated.
40344         * tests/unictype/test-ctype_alpha.c: Regenerated.
40345         * tests/unictype/test-ctype_graph.c: Regenerated.
40346         * tests/unictype/test-ctype_lower.c: Regenerated.
40347         * tests/unictype/test-ctype_print.c: Regenerated.
40348         * tests/unictype/test-ctype_punct.c: Regenerated.
40349         * tests/unictype/test-ctype_upper.c: Regenerated.
40350         * tests/unictype/test-decdigit.h: Regenerated.
40351         * tests/unictype/test-digit.h: Regenerated.
40352         * tests/unictype/test-numeric.h: Regenerated.
40353         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40354         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40355         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40356         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40357         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40358         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40359         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40360         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40361         * tests/unictype/test-pr_combining.c: Regenerated.
40362         * tests/unictype/test-pr_dash.c: Regenerated.
40363         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40364         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40365         * tests/unictype/test-pr_deprecated.c: Regenerated.
40366         * tests/unictype/test-pr_diacritic.c: Regenerated.
40367         * tests/unictype/test-pr_extender.c: Regenerated.
40368         * tests/unictype/test-pr_format_control.c: Regenerated.
40369         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40370         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40371         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40372         * tests/unictype/test-pr_id_continue.c: Regenerated.
40373         * tests/unictype/test-pr_id_start.c: Regenerated.
40374         * tests/unictype/test-pr_ideographic.c: Regenerated.
40375         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40376         * tests/unictype/test-pr_lowercase.c: Regenerated.
40377         * tests/unictype/test-pr_math.c: Regenerated.
40378         * tests/unictype/test-pr_numeric.c: Regenerated.
40379         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40380         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40381         Regenerated.
40382         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40383         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40384         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40385         * tests/unictype/test-pr_other_math.c: Regenerated.
40386         * tests/unictype/test-pr_punctuation.c: Regenerated.
40387         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40388         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40389         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40390         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40391         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40392         * tests/unictype/test-pr_uppercase.c: Regenerated.
40393         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40394         * tests/unictype/test-pr_xid_start.c: Regenerated.
40395         * tests/unictype/test-pr_zero_width.c: Regenerated.
40396
40397         Update to Unicode 5.1.0.
40398         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40399         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40400         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40401         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40402         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40403         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40404         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40405         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40406         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40407         (nonspacing_table_ind): Update.
40408         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40409
40410         Update to Unicode 5.1.0.
40411         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40412         code transform.
40413         * lib/uniname/uniname.c (unicode_character_name,
40414         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40415         * lib/uniname/uninames.h: Regenerated.
40416         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40417
40418 2009-02-07  Bruno Haible  <bruno@clisp.org>
40419
40420         Merge gen-ctype and gen-lbrk into a single program.
40421         * lib/gen-uni-tables.c: New file, incorporating
40422         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40423         Add directory prefixes to the names of the generated files.
40424         * lib/unictype/gen-ctype.c: Remove file.
40425         * lib/unilbrk/gen-lbrk.c: Remove file.
40426         * modules/gen-uni-tables: New file.
40427         * modules/unictype/gen-ctype: Remove file.
40428         * modules/unilbrk/gen-lbrk: Remove file.
40429
40430 2009-02-07  Bruno Haible  <bruno@clisp.org>
40431
40432         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40433
40434         New module 'unistr/u32-strcoll'.
40435         * modules/unistr/u32-strcoll: New file.
40436         * lib/unistr/u32-strcoll.c: New file.
40437
40438         New module 'unistr/u16-strcoll'.
40439         * modules/unistr/u16-strcoll: New file.
40440         * lib/unistr/u16-strcoll.c: New file.
40441
40442         New module 'unistr/u8-strcoll'.
40443         * modules/unistr/u8-strcoll: New file.
40444         * lib/unistr/u8-strcoll.c: New file.
40445         * lib/unistr/u-strcoll.h: New file.
40446
40447 2009-02-07  Bruno Haible  <bruno@clisp.org>
40448
40449         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40450         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40451         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40452         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40453         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40454         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40455
40456 2009-02-07  Bruno Haible  <bruno@clisp.org>
40457
40458         Make 64-bit clean.
40459         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40460         output_combclass, output_bidi_category, output_decimal_digit,
40461         output_digit, output_numeric, output_mirror, output_scripts,
40462         output_ident_category): Use proper width specifier in format strings.
40463
40464 2009-02-07  Bruno Haible  <bruno@clisp.org>
40465
40466         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40467         failure behaviour.
40468
40469 2009-02-07  Jim Meyering  <meyering@redhat.com>
40470
40471         regex: avoid compilation failure with upcoming gcc-4.4
40472         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40473         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40474         "... error: integer overflow in preprocessor expression".
40475
40476 2009-02-05  Ben Pfaff  <blp@gnu.org>
40477
40478         Fix link errors on Windows when close module is used.
40479         * modules/close: Add $(LIB_CLOSE) to Link section.
40480         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40481         $(LIB_CLOSE) on Windows.
40482
40483 2009-02-05  Jim Meyering  <meyering@redhat.com>
40484
40485         still avoid unused-parameter warnings, but do it cleanly
40486         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40487         (get_fs_usage): Cast to void instead.
40488         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40489         (dev_from_mount_options, read_file_system_list): Cast to void.
40490         Prompted by Bruno Haible.
40491
40492 2009-02-04  Jim Meyering  <meyering@redhat.com>
40493
40494         fsusage.c: correct copyright year
40495         * lib/fsusage.c: Reflect year in which the change is pushed into
40496
40497         avoid misc. warnings
40498         * lib/fsusage.c (UNUSED_PARAM): Define.
40499         (get_fs_usage): Mark parameter "disk" as unused.
40500         * lib/getugroups.c (getgrent): Use "void" in prototype.
40501         * lib/mountlist.c: Mark unused parameters.
40502         (read_file_system_list): Declare a local with "const".
40503         * lib/nanosleep.c (getnow): Declare static.
40504         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40505
40506         dirfd: set errno upon failure
40507         * lib/dirfd.c: Include <errno.h>.
40508         Set errno to ENOTSUP when returning -1.
40509         * modules/dirfd (Depends-on): Add errno.
40510         Suggested by John Kodis <kodis@comcast.net>.
40511
40512 2009-02-01  Bruno Haible  <bruno@clisp.org>
40513
40514         Don't assume sizeof (long) >= sizeof (void *).
40515         * lib/memcmp.c: Include stdint.h.
40516         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40517         srcp2 to 'const byte *'.
40518         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40519         types to uintptr_t.
40520         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40521         * modules/memcmp (Depends-on): Add stdint.
40522         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40523
40524 2009-01-30  Eric Blake  <ebb9@byu.net>
40525
40526         fix more require-before-expand issues
40527         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40528         expand, AC_PROG_AWK.
40529         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40530
40531 2009-01-28  Eric Blake  <ebb9@byu.net>
40532
40533         version-etc: use consistent URL formatting
40534         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40535         Improve formatting.  Use fputs for string without %.
40536
40537 2009-01-28  Jim Meyering  <meyering@redhat.com>
40538
40539         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40540         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40541         "underquoted definition of NAME" from autoconf-2.59.
40542
40543 2009-01-28  Bruno Haible  <bruno@clisp.org>
40544
40545         * doc/gnulib.texi: Add "Obsolete modules" to index.
40546
40547 2009-01-28  Jim Meyering  <meyering@redhat.com>
40548
40549         useless-if-before-free: recognize more variants
40550         * build-aux/useless-if-before-free: Also recognize e.g.,
40551         if (NULL != p) free (p);
40552
40553 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40554
40555         test-getaddrinfo: skip (don't fail) this test when there's no network
40556         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40557         on the presumption that it means you lack network access.
40558
40559 2009-01-26  Jim Meyering  <meyering@redhat.com>
40560
40561         fflush: avoid warnings on modern systems
40562         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40563         pos and result, into scopes where they're used.
40564
40565 2009-01-26  Eric Blake  <ebb9@byu.net>
40566
40567         Silence warning reintroduced by recent extensions patch.
40568         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40569         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40570         autoconf.
40571
40572         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40573         * m4/00gnulib.m4: New file.
40574         * gnulib-tool (func_get_filelist): Always use it.
40575         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40576         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40577
40578 2009-01-25  Bruno Haible  <bruno@clisp.org>
40579
40580         Make test-quotearg work on MacOS X and AIX.
40581         * tests/test-quotearg.sh: New file.
40582         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40583         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40584         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40585         include <libintl.h>.
40586         (fake_locale): Remove variable.
40587         (gettext, dgettext, dcgettext): Remove functions.
40588         (main): Instead of setting a fake locale, set a real locale. Call
40589         textdomain and bindtextdomain.
40590         * modules/quotearg-tests (Files): Add the new files.
40591         (Depends-on): Add gettext, setenv, unsetenv.
40592         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40593         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40594         Augment TESTS_ENVIRONMENT.
40595
40596 2009-01-25  Bruno Haible  <bruno@clisp.org>
40597
40598         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40599         fr_FR.ISO8859-1 locale on MacOS X.
40600         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40601         ja_JP.eucJP locale on MacOS X.
40602         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40603         zh_CN.GB18030 locale on MacOS X.
40604
40605 2009-01-25  Bruno Haible  <bruno@clisp.org>
40606
40607         Avoid link errors on MacOS X 10.3.
40608         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40609         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40610
40611 2009-01-25  Bruno Haible  <bruno@clisp.org>
40612
40613         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40614         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40615         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40616         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40617         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40618         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40619         posix_spawnattr_init, posix_spawnattr_setsigmask,
40620         posix_spawnattr_setflags, posix_spawnattr_destroy.
40621
40622         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40623         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40624         * modules/execute (Files): Remove m4/posix_spawn.m4.
40625         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40626         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40627         posix_spawnattr_init, posix_spawnattr_setsigmask,
40628         posix_spawnattr_setflags, posix_spawnattr_destroy.
40629
40630 2009-01-25  Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/glthread/threadlib.c: Include <stdlib.h>.
40633
40634 2009-01-25  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/glthread/threadlib.c (dummy): New declaration.
40637
40638 2009-01-25  Bruno Haible  <bruno@clisp.org>
40639
40640         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40641         multibyte characters also for the GB18030 encoding. Don't crash when
40642         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40643
40644 2009-01-25  Bruno Haible  <bruno@clisp.org>
40645
40646         Avoid redefining 'struct random_data' on OSF/1 5.1.
40647         * lib/stdlib.in.h: Include <random.h> if it exists.
40648         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40649         HAVE_RANDOM_H. Include <random.h> when testing whether
40650         'struct random_data' exists.
40651         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40652
40653 2009-01-25  Bruno Haible  <bruno@clisp.org>
40654
40655         Don't install charset.alias on MacOS X >= 10.3.
40656         * lib/localcharset.c (DARWIN7): New macro.
40657         (get_charset_aliases): Hardcode the result for Darwin7.
40658         * modules/localcharset (install-exec-local): Don't install
40659         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40660
40661 2009-01-25  Bruno Haible  <bruno@clisp.org>
40662
40663         Don't install charset.alias on mingw and Cygwin.
40664         * modules/localcharset (install-exec-local): Don't install
40665         charset.alias on mingw and Cygwin, if the file does not yet exist.
40666         The result for these platforms is hardcoded in localcharset.c.
40667
40668 2009-01-25  Bruno Haible  <bruno@clisp.org>
40669
40670         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40672         before requiring AC_USE_SYSTEM_EXTENSIONS.
40673
40674 2009-01-25  Jim Meyering  <meyering@redhat.com>
40675
40676         c-strtod: avoid warnings
40677         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40678         "assignment discards qualifiers from pointer target type" warnings.
40679
40680 2009-01-24  Bruno Haible  <bruno@clisp.org>
40681
40682         Add support for non-UTF-8 locales on MacOS X.
40683         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40684         canonical encodings. For Darwin 7 and newer, don't map traditional
40685         encodings to UTF-8.
40686         Reported by Vincent Lefevre <vincent@vinc17.org>
40687         at <http://savannah.gnu.org/bugs/?25235>.
40688
40689 2009-01-24  Bruno Haible  <bruno@clisp.org>
40690
40691         * doc/gnulib.texi (Obsolete modules): New section.
40692         Reported by Mike Frysinger <vapier@gentoo.org>.
40693
40694 2009-01-24  Bruno Haible  <bruno@clisp.org>
40695
40696         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40697         (%.dvi): New rule.
40698
40699 2009-01-24  Bruno Haible  <bruno@clisp.org>
40700
40701         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40702         Reported by Eric Blake.
40703
40704 2009-01-24  Bruno Haible  <bruno@clisp.org>
40705
40706         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40707         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40708         Reported by Gary V. Vaughan <gary@gnu.org>.
40709
40710 2009-01-24  Bruno Haible  <bruno@clisp.org>
40711
40712         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40713
40714 2009-01-23  Bruno Haible  <bruno@clisp.org>
40715
40716         Make c-strtod, c-strtold usable in libraries.
40717         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40718         (C_STRTOD): Call strdup instead of xstrdup.
40719         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40720         * modules/c-strtold (Depends-on): Likewise.
40721         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40722         * NEWS: Mention the change.
40723         Reported by Michael Gold <mgold@ncf.ca>.
40724
40725 2009-01-23  Jim Meyering  <meyering@redhat.com>
40726
40727         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40728         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40729         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40730
40731 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40732
40733         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40734         GNU CoreUtils.
40735         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40736         * modules/version-etc (Description): Update.
40737
40738 2009-01-22  Bruno Haible  <bruno@clisp.org>
40739
40740         Cache the C locale object.
40741         * lib/c-strtod.c (c_locale_cache): New variable.
40742         (c_locale): New function.
40743         (C_STRTOD): Use it, and don't call freelocale.
40744         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40745         Suggested by Paolo Bonzini.
40746
40747 2009-01-21  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40750         conditions other than overflow.
40751
40752 2009-01-21  Bruno Haible  <bruno@clisp.org>
40753
40754         * lib/c-strtod.c: Include errno.h.
40755         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40756         value from STRTOD_L and STRTOD.
40757
40758 2009-01-21  Bruno Haible  <bruno@clisp.org>
40759         and Jim Meyering  <meyering@redhat.com>
40760
40761         nanosleep: skip configure test (fail it) for apple universal builds
40762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40763         universal builds, assume that nanosleep does not work.
40764         * modules/nanosleep (Depends-on): Add multiarch.
40765
40766         mktime: skip configure test (fail it) for apple universal builds
40767         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40768         universal builds, assume that mktime does not work.
40769         * modules/mktime (Depends-on): Add multiarch.
40770
40771 2009-01-21  Eric Blake  <ebb9@byu.net>
40772
40773         multiarch: avoid expand-before-require warning
40774         * modules/multiarch (configure.ac): Require, rather than expand,
40775         gl_MULTIARCH.
40776         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40777         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40778         enforce that all clients require it.  Partial reversion of
40779         2008-12-29 patch.
40780
40781         error: avoid expand-before-require warning
40782         * modules/errno (configure.ac): Require, rather than expand,
40783         gl_HEADER_ERRNO_H.
40784         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40785         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40786         enforce that all clients require it.
40787
40788         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40789         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40790         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40791         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40792
40793 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40794
40795         Revert:
40796         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40797
40798         regex: do not depend on obsolete modules.
40799         * modules/regex: Remove memcmp and memmove.
40800
40801 2009-01-20  Bruno Haible  <bruno@clisp.org>
40802
40803         Make the 'link' module link on Windows NT 4.
40804         * lib/link.c (_WIN32_WINNT): Don't define.
40805         (CreateHardLinkFuncType): New type.
40806         (CreateHardLinkFunc, initialized): New variables.
40807         (initialize): New function.
40808         (link): Invoke CreateHardLink indirectly through the function pointer.
40809
40810 2009-01-20  Bruno Haible  <bruno@clisp.org>
40811
40812         Fix compilation failure on mingw.
40813         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40814
40815 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40816
40817         * doc/c-strtod.texi: Mention a couple of restrictions.
40818
40819 2009-01-20  Jim Meyering  <meyering@redhat.com>
40820
40821         gettimeofday: move more declarations out of functions
40822         * lib/gettimeofday.c: Move extern declarations of tzset and
40823         gmtime out of containing functions.  Prompted by Bruno Haible.
40824
40825 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40826
40827         regex: do not depend on obsolete modules.
40828         * modules/regex: Remove memcmp and memmove.
40829
40830 2009-01-19  Bruno Haible  <bruno@clisp.org>
40831
40832         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40833         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40834         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40835         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40836         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40837
40838 2009-01-19  Bruno Haible  <bruno@clisp.org>
40839
40840         * tests/test-link.c: Include <errno.h>.
40841         (main): Exit with code 77 when a hard link cannot be created due to
40842         the file system.
40843         * tests/test-link.sh: Skip test when a hard link cannot be created due
40844         to the file system.
40845         Suggested by Eric Blake.
40846
40847 2009-01-19  Martin Lambers  <marlam@marlam.de>
40848
40849         * modules/link-tests: New file.
40850         * tests/test-link.sh: New file.
40851         * tests/test-link.c: New file.
40852
40853 2009-01-19  Eric Blake  <ebb9@byu.net>
40854
40855         doc: mention another function added in cygwin 1.7.0
40856         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40857         Another new function in cygwin 1.7.
40858
40859 2009-01-19  Bruno Haible  <bruno@clisp.org>
40860
40861         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40862         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40863         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40864         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40865         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40866         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40867         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40868         * m4/md4.m4 (gl_MD4): Likewise.
40869         * m4/md5.m4 (gl_MD5): Likewise.
40870         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40871         * m4/sha1.m4 (gl_SHA1): Likewise.
40872         * m4/sha256.m4 (gl_SHA256): Likewise.
40873         * m4/sha512.m4 (gl_SHA512): Likewise.
40874
40875 2009-01-19  Bruno Haible  <bruno@clisp.org>
40876
40877         * modules/uniname/uniname-tests (Depends-on): Add progname.
40878         * tests/uniname/test-uninames.c: Include progname.h.
40879         (main): Call set_program_name.
40880
40881         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40882         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40883         (main): Call set_program_name.
40884
40885         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40886         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40887         (main): Call set_program_name.
40888
40889         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40890         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40891         (main): Call set_program_name.
40892
40893         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40894         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40895         (main): Call set_program_name.
40896
40897         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40898         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40899         (main): Call set_program_name.
40900
40901         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40902         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40903         (main): Call set_program_name.
40904
40905         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40906         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40907         (main): Call set_program_name.
40908
40909         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40910         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40911         (main): Call set_program_name.
40912
40913 2009-01-19  Eric Blake  <ebb9@byu.net>
40914
40915         test-unistd: test previous patch
40916         * tests/test-unistd.c: Test *_FILENO macros.
40917
40918         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40919         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40920         Guarantee a definition.
40921         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40922         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40923         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40924         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40925         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40926         Likewise.
40927         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40928         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40929         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40930         Likewise.
40931         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40932         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40933         (STDERR_FILENO): Likewise.
40934         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40935         (STDERR_FILENO): Likewise.
40936         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40937         (STDERR_FILENO): Likewise.
40938         Reported by Elbert Pol.
40939
40940 2009-01-19  Eric Blake  <ebb9@byu.net>
40941
40942         doc: mention more functions added in cygwin 1.7.0
40943         * doc/posix-functions/abort.texi (abort): Update wording related
40944         to cygwin.
40945         * doc/posix-functions/daylight.texi (daylight): Likewise.
40946         * doc/posix-functions/optarg.texi (optarg): Likewise.
40947         * doc/posix-functions/optarg.texi (opterr): Likewise.
40948         * doc/posix-functions/optarg.texi (optind): Likewise.
40949         * doc/posix-functions/optarg.texi (optopt): Likewise.
40950         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40951         worked in 1.5.x, and was withdrawn in 1.7.
40952         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40953         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40954         cygwin versions.
40955         * doc/posix-functions/perror.texi (perror): Likewise.
40956         * doc/posix-functions/printf.texi (printf): Likewise.
40957         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40958         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40959         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40960         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40961         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40962         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40963         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40964         Likewise.
40965         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40966         Likewise.
40967         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40968         this function.
40969         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40970         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40971         Likewise.
40972         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40973         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40974         * doc/posix-functions/confstr.texi (confstr): Likewise.
40975         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40976         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40977         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40978         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40979         * doc/posix-functions/fputws.texi (fputws): Likewise.
40980         * doc/posix-functions/fwide.texi (fwide): Likewise.
40981         * doc/posix-functions/getwc.texi (getwc): Likewise.
40982         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40983         * doc/posix-functions/putwc.texi (putwc): Likewise.
40984         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40985         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40986         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40987         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40988         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40989         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40990         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40991         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40992         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40993         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40994         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40995
40996 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40997
40998         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40999         * lib/ioctl.c: Include <sys/ioctl.h>.
41000
41001 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41002
41003         * modules/getdate-tests (Depends-on): Add progname.
41004         * tests/test-getdate.c: Use progname module, to avoid link errors
41005         on non-glibc systems.
41006
41007 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41008
41009         * modules/filenamecat-tests (Depends-on): Add progname.
41010         * modules/fstrcmp-tests (Depends-on): Likewise.
41011
41012         * tests/test-filenamecat.c: Use progname module, to avoid link
41013         errors on non-glibc systems.
41014         * tests/test-fstrcmp.c: Likewise.
41015
41016 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41017
41018         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41019         * lib/gettimeofday.c: Move extern declaration out of function.
41020
41021 2009-01-18  Bruno Haible  <bruno@clisp.org>
41022
41023         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41024         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41025         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41026
41027 2009-01-18  Bruno Haible  <bruno@clisp.org>
41028
41029         * lib/strftime.c (MEMPCPY): Remove unused macro.
41030         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41031
41032 2009-01-18  Martin Lambers  <marlam@marlam.de>
41033
41034         New module 'link'.
41035         * lib/unistd.in.h (link): New declaration.
41036         * lib/link.c: New file.
41037         * m4/link.m4: New file.
41038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41039         HAVE_LINK.
41040         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41041         * modules/link: New file.
41042         * doc/posix-functions/link.texi: Mention the new module.
41043
41044 2009-01-18  Bruno Haible  <bruno@clisp.org>
41045
41046         * tests/test-avltree_list.c (main): Call set_program_name.
41047         * tests/test-avltree_oset.c (main): Likewise.
41048         * tests/test-obstack-printf.c: Include progname.h.
41049         (main): Call set_program_name.
41050         * tests/test-quotearg.c: Include progname.h.
41051         (main): Call set_program_name.
41052         * tests/test-xmemdup0.c: Include progname.h.
41053         (main): Call set_program_name.
41054
41055 2009-01-18  Bruno Haible  <bruno@clisp.org>
41056
41057         New module 'alphasort'.
41058         * lib/dirent.in.h (alphasort): New declaration.
41059         * lib/alphasort.c: New file, from glibc with modifications.
41060         * m4/alphasort.m4: New file.
41061         * modules/alphasort: New file.
41062         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41063         HAVE_ALPHASORT.
41064         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41065         HAVE_ALPHASORT.
41066         * doc/posix-functions/alphasort.texi: Mention the new module and the
41067         portability problems.
41068
41069 2009-01-18  Bruno Haible  <bruno@clisp.org>
41070
41071         New module 'scandir'.
41072         * lib/dirent.in.h (scandir): New declaration.
41073         * lib/scandir.c: New file, from glibc with modifications.
41074         * m4/scandir.m4: New file.
41075         * modules/scandir: New file.
41076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41077         HAVE_SCANDIR.
41078         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41079         HAVE_SCANDIR.
41080         * doc/posix-functions/scandir.texi: Mention the new module and the
41081         portability problems.
41082
41083 2009-01-17  Bruno Haible  <bruno@clisp.org>
41084
41085         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41086         Update documentation.
41087         (func_remove_suffix): Escape all dots in the suffix. Update
41088         documentation.
41089         (func_filter_filelist): Update documentation.
41090         Reported by Ralf Wildenhues.
41091
41092 2009-01-17  Bruno Haible  <bruno@clisp.org>
41093
41094         * modules/dprintf-posix-tests: New file.
41095         * tests/test-dprintf-posix.sh: New file.
41096         * tests/test-dprintf-posix.c: New file.
41097
41098         New modules 'dprintf', 'dprintf-posix'.
41099         * lib/stdio.in.h (dprintf): New declaration.
41100         * lib/dprintf.c: New file.
41101         * m4/dprintf.m4: New file.
41102         * m4/dprintf-posix.m4: New file.
41103         * modules/dprintf: New file.
41104         * modules/dprintf-posix: New file.
41105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41106         HAVE_DPRINTF, REPLACE_DPRINTF.
41107         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41108         HAVE_DPRINTF, REPLACE_DPRINTF.
41109         * doc/posix-functions/dprintf.texi: Mention the new modules.
41110
41111 2009-01-17  Bruno Haible  <bruno@clisp.org>
41112
41113         * modules/vdprintf-posix-tests: New file.
41114         * tests/test-vdprintf-posix.sh: New file.
41115         * tests/test-vdprintf-posix.c: New file.
41116
41117         New modules 'vdprintf', 'vdprintf-posix'.
41118         * lib/stdio.in.h (vdprintf): New declaration.
41119         * lib/vdprintf.c: New file.
41120         * m4/vdprintf.m4: New file.
41121         * m4/vdprintf-posix.m4: New file.
41122         * modules/vdprintf: New file.
41123         * modules/vdprintf-posix: New file.
41124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41125         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41126         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41127         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41128         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41129
41130 2009-01-17  Bruno Haible  <bruno@clisp.org>
41131
41132         Fix replacement of fopen on mingw.
41133         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41134         mingw.
41135
41136 2009-01-17  Bruno Haible  <bruno@clisp.org>
41137
41138         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41139         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41140
41141 2009-01-17  Bruno Haible  <bruno@clisp.org>
41142
41143         Avoid test-fflush2.sh failure on mingw.
41144         * tests/test-fflush2.c: Include binary-io.h.
41145         (main): Put standard input into binary mode.
41146         * modules/fflush-tests (Depends-on): Add binary-io.
41147
41148 2009-01-17  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/wchar.in.h: In another particular situation, include only the
41151         system's <wchar.h> file.
41152         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41153         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41154         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41155
41156 2009-01-17  Bruno Haible  <bruno@clisp.org>
41157
41158         Support for stripping executables in --enable-relocatable.
41159         * build-aux/install-reloc: Expect one more argument, or an environment
41160         variable RELOC_STRIP_PROG. If set, strip the destination program and
41161         its wrapper.
41162         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41163         RELOC_STRIP_PROG.
41164         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41165         to set RELOCATABLE_STRIP.
41166         * NEWS: Mention the new Makefile requirement.
41167
41168 2009-01-17  Bruno Haible  <bruno@clisp.org>
41169
41170         * build-aux/install-reloc: Remove debugging information left over by
41171         C compiler on MacOS X.
41172
41173 2009-01-17  Bruno Haible  <bruno@clisp.org>
41174
41175         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41176         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41177         _NSGetExecutablePath.
41178
41179 2009-01-16  Jim Meyering  <meyering@redhat.com>
41180
41181         strerror: avoid warnings about discarding "const"
41182         * lib/strerror.c (rpl_strerror): Instead of returning a const
41183         string from each and every "case", use a variable, and add a single
41184         cast after the switch.
41185
41186 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41187
41188         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41189
41190 2009-01-16  Bruno Haible  <bruno@clisp.org>
41191
41192         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41193         array initializer syntax that also works in C++ mode.
41194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41195
41196 2009-01-16  Jim Meyering  <meyering@redhat.com>
41197
41198         poll: suppress a warning
41199         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41200         to ignore "...unsigned expression < 0 is always false" warnings.
41201
41202 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41203
41204         poll: remove declarations of unused variables
41205         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41206         sockbuf and optlen.
41207
41208 2009-01-15  Bruno Haible  <bruno@clisp.org>
41209
41210         Make fflush-after-ungetc POSIX compliant on BSD systems.
41211         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41212         (clear_ungetc_buffer): Implement also for other systems.
41213         (rpl_fflush): On glibc systems, invoke
41214         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41215         clear_ungetc_buffer after fetching the stream's position, not before.
41216
41217 2009-01-15  Bruno Haible  <bruno@clisp.org>
41218
41219         Make fflush-after-ungetc POSIX compliant on glibc systems.
41220         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41221         after ungetc.
41222         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41223         (rpl_fflush): On glibc systems, simply call the system's fflush
41224         function after clearing the ungetc buffer.
41225         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41226         Instead, lseek only to the end of file, then use the system's fseeko
41227         for the rest. On glibc systems, reset the EOF indicator bit.
41228
41229 2009-01-15  Jim Meyering  <meyering@redhat.com>
41230
41231         openmp.m4: revert quote-adding change, for portability to older autoconf
41232         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41233         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41234         Simon Josefsson noticed the problem when using autoconf-2.61.
41235
41236 2009-01-15  Bruno Haible  <bruno@clisp.org>
41237
41238         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41239         * tests/test-fflush2.c (ASSERT): Always fail.
41240         (main): Add two tests for fflush() after ungetc(), taking into account
41241         the Austin Group's clarification.
41242         Suggested by Eric Blake.
41243
41244 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41245
41246         mktime.m4: remove K&R-style function prototypes
41247         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41248         for the Sun C++ compiler.
41249
41250 2009-01-14  Bruno Haible  <bruno@clisp.org>
41251
41252         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41253         while including <wchar.h>.
41254         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41255         the system's <wchar.h> file.
41256         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41257
41258 2009-01-14  Bruno Haible  <bruno@clisp.org>
41259
41260         * m4/csharp.m4: Don't mention gettext on the serial number line.
41261         * m4/csharpexec.m4: Likewise.
41262         * m4/eaccess.m4: Likewise.
41263         * m4/javaexec.m4: Likewise.
41264         * m4/sig_atomic_t.m4: Likewise.
41265         * m4/tmpdir.m4: Likewise.
41266         * m4/intldir.m4: Bump gettext version.
41267         * m4/lib-ld.m4: Likewise.
41268
41269 2009-01-14  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/progname.c (set_program_name): Add more comments.
41272         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41273
41274 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41275
41276         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41277         were sys/stat.h does not define it.
41278
41279 2009-01-14  Jim Meyering  <meyering@redhat.com>
41280
41281         many *.m4 files: improve m4 quoting
41282         99% of this change was performed by running the following commands:
41283         git ls-files | grep '\.m4$' | xargs perl -pi \
41284           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41285           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41286           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41287           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41288         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41289         The remainder were to add Copyright dates, increment serial numbers,
41290         undo some changes in comments, exclude m4/intl.m4, and add quotes
41291         around the "1" in ",1" where the unusual spacing prohibited the
41292         above regexps from doing the job.  For more details, see
41293         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41294         * m4/acl.m4: Modified.
41295         * m4/afs.m4: Likewise.
41296         * m4/alloca.m4: Likewise.
41297         * m4/argp.m4: Likewise.
41298         * m4/argz.m4: Likewise.
41299         * m4/atexit.m4: Likewise.
41300         * m4/bison-i18n.m4: Likewise.
41301         * m4/bison.m4: Likewise.
41302         * m4/byteswap.m4: Likewise.
41303         * m4/c-stack.m4: Likewise.
41304         * m4/c-strtod.m4: Likewise.
41305         * m4/calloc.m4: Likewise.
41306         * m4/canonicalize-lgpl.m4: Likewise.
41307         * m4/chown.m4: Likewise.
41308         * m4/clock_time.m4: Likewise.
41309         * m4/codeset.m4: Likewise.
41310         * m4/copy-file.m4: Likewise.
41311         * m4/csharp.m4: Likewise.
41312         * m4/csharpcomp.m4: Likewise.
41313         * m4/csharpexec.m4: Likewise.
41314         * m4/d-ino.m4: Likewise.
41315         * m4/d-type.m4: Likewise.
41316         * m4/dirfd.m4: Likewise.
41317         * m4/double-slash-root.m4: Likewise.
41318         * m4/eaccess.m4: Likewise.
41319         * m4/eealloc.m4: Likewise.
41320         * m4/environ.m4: Likewise.
41321         * m4/errno_h.m4: Likewise.
41322         * m4/euidaccess.m4: Likewise.
41323         * m4/execute.m4: Likewise.
41324         * m4/fatal-signal.m4: Likewise.
41325         * m4/fchdir.m4: Likewise.
41326         * m4/fcntl_h.m4: Likewise.
41327         * m4/fileblocks.m4: Likewise.
41328         * m4/filenamecat.m4: Likewise.
41329         * m4/findprog.m4: Likewise.
41330         * m4/flexmember.m4: Likewise.
41331         * m4/fnmatch.m4: Likewise.
41332         * m4/fopen.m4: Likewise.
41333         * m4/fpending.m4: Likewise.
41334         * m4/fprintf-posix.m4: Likewise.
41335         * m4/free.m4: Likewise.
41336         * m4/frexp.m4: Likewise.
41337         * m4/frexpl.m4: Likewise.
41338         * m4/fsusage.m4: Likewise.
41339         * m4/ftruncate.m4: Likewise.
41340         * m4/gc-camellia.m4: Likewise.
41341         * m4/gc-random.m4: Likewise.
41342         * m4/gc.m4: Likewise.
41343         * m4/getaddrinfo.m4: Likewise.
41344         * m4/getcwd-abort-bug.m4: Likewise.
41345         * m4/getcwd-path-max.m4: Likewise.
41346         * m4/getdate.m4: Likewise.
41347         * m4/getdomainname.m4: Likewise.
41348         * m4/getgroups.m4: Likewise.
41349         * m4/gethostname.m4: Likewise.
41350         * m4/gethrxtime.m4: Likewise.
41351         * m4/getline.m4: Likewise.
41352         * m4/getloadavg.m4: Likewise.
41353         * m4/getndelim2.m4: Likewise.
41354         * m4/getpass.m4: Likewise.
41355         * m4/gettext.m4: Likewise.
41356         * m4/gettime.m4: Likewise.
41357         * m4/gettimeofday.m4: Likewise.
41358         * m4/gnulib-common.m4: Likewise.
41359         * m4/group-member.m4: Likewise.
41360         * m4/host-os.m4: Likewise.
41361         * m4/iconv.m4: Likewise.
41362         * m4/iconv_open.m4: Likewise.
41363         * m4/inet_ntop.m4: Likewise.
41364         * m4/inet_pton.m4: Likewise.
41365         * m4/inline.m4: Likewise.
41366         * m4/intldir.m4: Likewise.
41367         * m4/intlmacosx.m4: Likewise.
41368         * m4/intmax.m4: Likewise.
41369         * m4/intmax_t.m4: Likewise.
41370         * m4/inttypes.m4: Likewise.
41371         * m4/inttypes_h.m4: Likewise.
41372         * m4/inttypes-pri.m4: Likewise.
41373         * m4/isapipe.m4: Likewise.
41374         * m4/isnand.m4: Likewise.
41375         * m4/isnanf.m4: Likewise.
41376         * m4/isnanl.m4: Likewise.
41377         * m4/javacomp.m4: Likewise.
41378         * m4/javaexec.m4: Likewise.
41379         * m4/jm-winsz1.m4: Likewise.
41380         * m4/jm-winsz2.m4: Likewise.
41381         * m4/lchown.m4: Likewise.
41382         * m4/lcmessage.m4: Likewise.
41383         * m4/ldexpl.m4: Likewise.
41384         * m4/lib-ld.m4: Likewise.
41385         * m4/lib-link.m4: Likewise.
41386         * m4/libsigsegv.m4: Likewise.
41387         * m4/link-follow.m4: Likewise.
41388         * m4/localcharset.m4: Likewise.
41389         * m4/locale-fr.m4: Likewise.
41390         * m4/locale-ja.m4: Likewise.
41391         * m4/locale-tr.m4: Likewise.
41392         * m4/locale-zh.m4: Likewise.
41393         * m4/lock.m4: Likewise.
41394         * m4/longlong.m4: Likewise.
41395         * m4/ls-mntd-fs.m4: Likewise.
41396         * m4/lstat.m4: Likewise.
41397         * m4/malloc.m4: Likewise.
41398         * m4/mathl.m4: Likewise.
41399         * m4/mbrtowc.m4: Likewise.
41400         * m4/mbstate_t.m4: Likewise.
41401         * m4/mbswidth.m4: Likewise.
41402         * m4/memchr.m4: Likewise.
41403         * m4/memcmp.m4: Likewise.
41404         * m4/memcpy.m4: Likewise.
41405         * m4/memmem.m4: Likewise.
41406         * m4/memmove.m4: Likewise.
41407         * m4/mempcpy.m4: Likewise.
41408         * m4/memrchr.m4: Likewise.
41409         * m4/memset.m4: Likewise.
41410         * m4/minmax.m4: Likewise.
41411         * m4/mkdir-slash.m4: Likewise.
41412         * m4/mkdtemp.m4: Likewise.
41413         * m4/mktime.m4: Likewise.
41414         * m4/mmap-anon.m4: Likewise.
41415         * m4/mountlist.m4: Likewise.
41416         * m4/nanosleep.m4: Likewise.
41417         * m4/nls.m4: Likewise.
41418         * m4/nocrash.m4: Likewise.
41419         * m4/open.m4: Likewise.
41420         * m4/openat.m4: Likewise.
41421         * m4/openmp.m4: Likewise.
41422         * m4/pathmax.m4: Likewise.
41423         * m4/perl.m4: Likewise.
41424         * m4/physmem.m4: Likewise.
41425         * m4/pipe.m4: Likewise.
41426         * m4/po.m4: Likewise.
41427         * m4/poll.m4: Likewise.
41428         * m4/posixtm.m4: Likewise.
41429         * m4/posixver.m4: Likewise.
41430         * m4/printf-frexp.m4: Likewise.
41431         * m4/printf-frexpl.m4: Likewise.
41432         * m4/printf-posix.m4: Likewise.
41433         * m4/printf-posix-rpl.m4: Likewise.
41434         * m4/printf.m4: Likewise.
41435         * m4/progtest.m4: Likewise.
41436         * m4/putenv.m4: Likewise.
41437         * m4/readline.m4: Likewise.
41438         * m4/readlink.m4: Likewise.
41439         * m4/readutmp.m4: Likewise.
41440         * m4/realloc.m4: Likewise.
41441         * m4/regex.m4: Likewise.
41442         * m4/relocatable.m4: Likewise.
41443         * m4/relocatable-lib.m4: Likewise.
41444         * m4/rename-dest-slash.m4: Likewise.
41445         * m4/rename.m4: Likewise.
41446         * m4/rmdir-errno.m4: Likewise.
41447         * m4/rmdir.m4: Likewise.
41448         * m4/roundf.m4: Likewise.
41449         * m4/roundl.m4: Likewise.
41450         * m4/rpmatch.m4: Likewise.
41451         * m4/save-cwd.m4: Likewise.
41452         * m4/selinux-selinux-h.m4: Likewise.
41453         * m4/setenv.m4: Likewise.
41454         * m4/settime.m4: Likewise.
41455         * m4/sig2str.m4: Likewise.
41456         * m4/sig_atomic_t.m4: Likewise.
41457         * m4/signalblocking.m4: Likewise.
41458         * m4/signbit.m4: Likewise.
41459         * m4/sigpipe.m4: Likewise.
41460         * m4/sockets.m4: Likewise.
41461         * m4/sockpfaf.m4: Likewise.
41462         * m4/st_dm_mode.m4: Likewise.
41463         * m4/stat-time.m4: Likewise.
41464         * m4/stdbool.m4: Likewise.
41465         * m4/stdint.m4: Likewise.
41466         * m4/stdint_h.m4: Likewise.
41467         * m4/stpcpy.m4: Likewise.
41468         * m4/stpncpy.m4: Likewise.
41469         * m4/strcase.m4: Likewise.
41470         * m4/strchrnul.m4: Likewise.
41471         * m4/strcspn.m4: Likewise.
41472         * m4/strdup.m4: Likewise.
41473         * m4/strftime.m4: Likewise.
41474         * m4/strndup.m4: Likewise.
41475         * m4/strnlen.m4: Likewise.
41476         * m4/strpbrk.m4: Likewise.
41477         * m4/strptime.m4: Likewise.
41478         * m4/strsep.m4: Likewise.
41479         * m4/strtod.m4: Likewise.
41480         * m4/strtoimax.m4: Likewise.
41481         * m4/strtok_r.m4: Likewise.
41482         * m4/strtol.m4: Likewise.
41483         * m4/strtoll.m4: Likewise.
41484         * m4/strtoul.m4: Likewise.
41485         * m4/strtoull.m4: Likewise.
41486         * m4/strtoumax.m4: Likewise.
41487         * m4/strverscmp.m4: Likewise.
41488         * m4/threadlib.m4: Likewise.
41489         * m4/timegm.m4: Likewise.
41490         * m4/tm_gmtoff.m4: Likewise.
41491         * m4/tmpdir.m4: Likewise.
41492         * m4/tmpfile.m4: Likewise.
41493         * m4/tzset.m4: Likewise.
41494         * m4/uintmax_t.m4: Likewise.
41495         * m4/unlinkdir.m4: Likewise.
41496         * m4/unlocked-io.m4: Likewise.
41497         * m4/uptime.m4: Likewise.
41498         * m4/userspec.m4: Likewise.
41499         * m4/utimbuf.m4: Likewise.
41500         * m4/utime.m4: Likewise.
41501         * m4/utimes-null.m4: Likewise.
41502         * m4/utimes.m4: Likewise.
41503         * m4/vararrays.m4: Likewise.
41504         * m4/vasnprintf.m4: Likewise.
41505         * m4/vfprintf-posix.m4: Likewise.
41506         * m4/vprintf-posix.m4: Likewise.
41507         * m4/wait-process.m4: Likewise.
41508         * m4/wchar_t.m4: Likewise.
41509         * m4/wint_t.m4: Likewise.
41510         * m4/write-any-file.m4: Likewise.
41511         * m4/yield.m4: Likewise.
41512
41513 2009-01-13  Bruno Haible  <bruno@clisp.org>
41514
41515         Avoid test-copy-file.sh failures when ACL support insufficient.
41516         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41517         TESTS_ENVIRONMENT.
41518         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41519         Reported by Jim Meyering.
41520
41521 2009-01-13  Bruno Haible  <bruno@clisp.org>
41522
41523         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41524         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41525         * modules/unistdio/u8-printf-parse (Files): Likewise.
41526         * modules/unistdio/u32-printf-parse (Files): Likewise.
41527         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41528
41529 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41530
41531         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41532         and m4/inttypes_h.m4 too.
41533
41534 2009-01-12  Eric Blake  <ebb9@byu.net>
41535
41536         tests: IRIX 6.2 cc can't compile -0.0 into .data
41537         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41538         rather than at compile-time.
41539         * tests/test-floorl.c (minus_zero): Likewise.
41540         * tests/test-frexpl.c (minus_zero): Likewise.
41541         * tests/test-isnan.c (minus_zerol): Likewise.
41542         * tests/test-isnanl.h (minus_zero): Likewise.
41543         * tests/test-ldexpl.c (minus_zero): Likewise.
41544         * tests/test-roundl.c (minus_zero): Likewise.
41545         * tests/test-signbit.c (minus_zerol): Likewise.
41546         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41547         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41548         * tests/test-truncl.c (minus_zero): Likewise.
41549         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41550         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41551         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41552
41553 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41554
41555         regex: fix glibc bug 9697
41556         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41557         handling.
41558
41559 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41560
41561         regex: fix glibc bug 697
41562         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41563         being NULL also if there are no backreferences.
41564
41565 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41566
41567         regex: merge glibc changes
41568         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41569         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41570         re_string_skip_chars, re_string_reconstruct): Likewise.
41571         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41572
41573 2009-01-07  Jim Meyering  <meyering@redhat.com>
41574
41575         poll: filter through cppi
41576         * lib/poll.c: Indent cpp directives to reflect nesting.
41577
41578 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41579
41580         poll: don't return uninitialized
41581         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41582
41583 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41584
41585         avoid compile failure on AIX 6.1
41586         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41587         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41588
41589 2009-01-04  Jim Meyering  <meyering@redhat.com>
41590
41591         remove duplicate inclusion of <stdio.h>
41592         * tests/test-fprintf-posix.c: Likewise.
41593         * tests/test-printf-posix.c: Likewise.
41594         * tests/test-snprintf-posix.c: Likewise.
41595         * tests/test-sprintf-posix.c: Likewise.
41596         * tests/test-vasprintf-posix.c: Likewise.
41597         * tests/test-vfprintf-posix.c: Likewise.
41598         * tests/test-vprintf-posix.c: Likewise.
41599         * tests/test-vsnprintf-posix.c: Likewise.
41600         * tests/test-vsprintf-posix.c: Likewise.
41601
41602 2009-01-03  Jim Meyering  <meyering@redhat.com>
41603
41604         gnulib-tool: fix sed-based filtering
41605         * gnulib-tool (func_filter_filelist): Remove extra backslash
41606         in sed_fff_filter definition.
41607
41608 2009-01-02  Jim Meyering  <meyering@redhat.com>
41609
41610         strftime: avoid compilation failure on Solaris 2.6
41611         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41612         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41613         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41614         be available.  Reported by Tom G. Christensen.  Details in
41615         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41616
41617 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41618             Bruno Haible  <bruno@clisp.org>
41619
41620         Speed up gnulib-tool by doing more string processing through shell
41621         built-ins.
41622         * gnulib-tool (fast_func_append): New variable.
41623         (func_remove_prefix, func_remove_suffix): New functions.
41624         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41625         (func_filter_filelist): New function.
41626         (func_get_dependencies): Use func_remove_suffix instead of sed.
41627         (func_get_automake_snippet): Use func_filter_filelist instead of a
41628         subshell and sed invocation.
41629
41630 2009-01-01  Bruno Haible  <bruno@clisp.org>
41631
41632         Fix a security bug.
41633         * gnulib-tool (func_import, import, update): Don't allow the characters
41634         '"', '$', '`', '\' in macro arguments that become part of commands that
41635         are evaluated.
41636
41637 2009-01-01  Bruno Haible  <bruno@clisp.org>
41638
41639         * gnulib-tool (func_reset_sigpipe): Add more comments.
41640
41641 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41642
41643         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41644         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41645         already know the answer.
41646
41647 2009-01-01  Jim Meyering  <meyering@redhat.com>
41648
41649         * lib/version-etc.c (version_etc_va): Update copyright year.
41650
41651 2008-12-30  Bruno Haible  <bruno@clisp.org>
41652
41653         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41654         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41655         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41656
41657 2008-12-29  Eric Blake  <ebb9@byu.net>
41658
41659         multiarch: avoid autoconf AC_REQUIRE bug
41660         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41661         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41662         2.63 and older.
41663         Reported by Bruno Haible, and analyzed in
41664         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41665
41666 2008-12-29  Bruno Haible  <bruno@clisp.org>
41667
41668         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41669         files in subdirectories correctly.
41670         Reported by Ralf Wildenhues.
41671
41672 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41673
41674         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41675         rather than 'join FILE -', for Solaris join.
41676
41677 2008-12-29  Bruno Haible  <bruno@clisp.org>
41678
41679         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41680         quoting.
41681         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41682         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41683         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41684         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41685         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41686         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41687         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41688         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41689         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41690         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41691         * m4/nls.m4 (AM_NLS): Likewise.
41692         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41693         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41694         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41695         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41696         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41697         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41698         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41699         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41700         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41701         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41702         * m4/xsize.m4 (gl_XSIZE): Likewise.
41703         Suggested by Jim Meyering.
41704
41705 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41706
41707         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41708         * lib/parse-duration.c: use a switch instead of cascading if's.
41709
41710 2008-12-29  Eric Blake  <ebb9@byu.net>
41711
41712         wchar.h: supply WEOF on Irix 5.3
41713         * lib/wchar.in.h (wint_t): Also supply WEOF.
41714         * lib/wctype.in.h (wint_t): Likewise.
41715         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41716         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41717         Reported by Tom G. Christensen.
41718
41719 2008-12-26  Bruno Haible  <bruno@clisp.org>
41720
41721         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41722         i486, i586, i686.
41723
41724 2008-12-26  Bruno Haible  <bruno@clisp.org>
41725
41726         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41727
41728 2008-12-26  Bruno Haible  <bruno@clisp.org>
41729
41730         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41731         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41732         not __STDC_CONSTANT_MACROS.
41733         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41734
41735 2008-12-25  Bruno Haible  <bruno@clisp.org>
41736
41737         Add support for universal builds to vasnprintf.
41738         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41739         universal builds, guess no.
41740         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41741         * modules/vasprintf-posix (Depends-on): Likewise.
41742         * modules/fprintf-posix (Depends-on): Likewise.
41743         * modules/vfprintf-posix (Depends-on): Likewise.
41744         * modules/snprintf-posix (Depends-on): Likewise.
41745         * modules/vsnprintf-posix (Depends-on): Likewise.
41746         * modules/sprintf-posix (Depends-on): Likewise.
41747         * modules/vsprintf-posix (Depends-on): Likewise.
41748         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41749         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41750         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41751         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41752         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41753         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41754         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41755
41756         Add support for universal builds to <inttypes.h>.
41757         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41758         _SCNu64_PREFIX): In Apple
41759         universal builds, define directly, using _LP64.
41760         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41761         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41762         * modules/inttypes (Depends-on): Add multiarch.
41763         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41764
41765         Add support for universal builds to <stdint.h>.
41766         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41767         universal builds, define directly, using _LP64.
41768         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41769         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41770         and size_t.
41771         * modules/stdint (Depends-on): Add multiarch.
41772         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41773
41774         New module 'multiarch'.
41775         * modules/multiarch: New file.
41776         * m4/multiarch.m4: New file.
41777
41778 2008-12-25  Bruno Haible  <bruno@clisp.org>
41779
41780         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41781
41782 2008-12-25  Bruno Haible  <bruno@clisp.org>
41783
41784         * modules/btowc (License): Relicense under LGPLv2+.
41785         * modules/mbsinit (License): Likewise.
41786         * modules/mbrtowc (License): Likewise.
41787         * modules/wcrtomb (License): Likewise.
41788         * modules/streq (License): Likewise.
41789         Reported by David Lutterkort <lutter@redhat.com>.
41790
41791 2008-12-23  Bruno Haible  <bruno@clisp.org>
41792
41793         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41794
41795 2008-12-23  Bruno Haible  <bruno@clisp.org>
41796
41797         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41798         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41799         GETADDRINFO_LIB, not in LIBS.
41800         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41801         * modules/canon-host (Link): Likewise.
41802         * NEWS: Mention the change.
41803         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41804         GETADDRINFO_LIB.
41805
41806 2008-12-22  Bruno Haible  <bruno@clisp.org>
41807
41808         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41809         * doc/posix-functions/iswalpha_l.texi: Likewise.
41810         * doc/posix-functions/iswblank_l.texi: Likewise.
41811         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41812         * doc/posix-functions/iswctype_l.texi: Likewise.
41813         * doc/posix-functions/iswdigit_l.texi: Likewise.
41814         * doc/posix-functions/iswgraph_l.texi: Likewise.
41815         * doc/posix-functions/iswlower_l.texi: Likewise.
41816         * doc/posix-functions/iswprint_l.texi: Likewise.
41817         * doc/posix-functions/iswpunct_l.texi: Likewise.
41818         * doc/posix-functions/iswspace_l.texi: Likewise.
41819         * doc/posix-functions/iswupper_l.texi: Likewise.
41820         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41821         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41822         * doc/posix-functions/open_wmemstream.texi: Likewise.
41823         * doc/posix-functions/swscanf.texi: Likewise.
41824         * doc/posix-functions/towctrans_l.texi: Likewise.
41825         * doc/posix-functions/towlower.texi: Likewise.
41826         * doc/posix-functions/towlower_l.texi: Likewise.
41827         * doc/posix-functions/towupper.texi: Likewise.
41828         * doc/posix-functions/towupper_l.texi: Likewise.
41829         * doc/posix-functions/vfwprintf.texi: Likewise.
41830         * doc/posix-functions/vfwscanf.texi: Likewise.
41831         * doc/posix-functions/vswscanf.texi: Likewise.
41832         * doc/posix-functions/vwprintf.texi: Likewise.
41833         * doc/posix-functions/vwscanf.texi: Likewise.
41834         * doc/posix-functions/wcpcpy.texi: Likewise.
41835         * doc/posix-functions/wcpncpy.texi: Likewise.
41836         * doc/posix-functions/wcscasecmp.texi: Likewise.
41837         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41838         * doc/posix-functions/wcscoll_l.texi: Likewise.
41839         * doc/posix-functions/wcsdup.texi: Likewise.
41840         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41841         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41842         * doc/posix-functions/wcsnlen.texi: Likewise.
41843         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41844         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41845         * doc/posix-functions/wctrans_l.texi: Likewise.
41846         * doc/posix-functions/wctype_l.texi: Likewise.
41847         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41848         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41849         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41850         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41851         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41852         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41853         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41854         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41855         * doc/glibc-functions/wcschrnul.texi: Likewise.
41856         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41857         * doc/glibc-functions/wcstod_l.texi: Likewise.
41858         * doc/glibc-functions/wcstof_l.texi: Likewise.
41859         * doc/glibc-functions/wcstol_l.texi: Likewise.
41860         * doc/glibc-functions/wcstold_l.texi: Likewise.
41861         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41862         * doc/glibc-functions/wcstoq.texi: Likewise.
41863         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41864         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41865         * doc/glibc-functions/wcstouq.texi: Likewise.
41866         * doc/glibc-functions/wmempcpy.texi: Likewise.
41867
41868 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41869             Eric Blake  <ebb9@byu.net>
41870             Paolo Bonzini  <bonzini@gnu.org>
41871             Bruno Haible  <bruno@clisp.org>
41872
41873         Make c-stack work on Haiku.
41874         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41875         (c_stack_action): Use SA_ONSTACK flag.
41876
41877 2008-12-22  Bruno Haible  <bruno@clisp.org>
41878
41879         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41880
41881 2008-12-22  Bruno Haible  <bruno@clisp.org>
41882
41883         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41884         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41885         being overridden.
41886         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41887         New macros.
41888         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41889         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41890         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41891         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41892
41893 2008-12-22  Bruno Haible  <bruno@clisp.org>
41894
41895         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41896         from test code.
41897
41898 2008-12-22  Eric Blake  <ebb9@byu.net>
41899
41900         Avoid gcc warnings on cygwin.
41901         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41902         Avoid unused variable.
41903         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41904         Likewise.
41905
41906 2008-12-22  Bruno Haible  <bruno@clisp.org>
41907
41908         Remove HAVE_MBRTOWC conditionals.
41909         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41910         (mbscasecmp): Assume mbrtowc function.
41911         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41912         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41913         * lib/mbschr.c: Include mbuiter.h unconditionally.
41914         (mbschr): Assume mbrtowc function.
41915         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41916         (mbscspn): Assume mbrtowc function.
41917         * lib/mbslen.c: Include mbuiter.h unconditionally.
41918         (mbslen): Assume mbrtowc function.
41919         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41920         (mbsncasecmp): Assume mbrtowc function.
41921         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41922         (mbsnlen): Assume mbrtowc function.
41923         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41924         (mbspbrk): Assume mbrtowc function.
41925         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41926         (mbspcasecmp): Assume mbrtowc function.
41927         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41928         (mbsrchr): Assume mbrtowc function.
41929         * lib/mbssep.c: Include mbuiter.h unconditionally.
41930         (mbssep): Assume mbrtowc function.
41931         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41932         (mbsspn): Assume mbrtowc function.
41933         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41934         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41935         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41936         (mbstok_r): Assume mbrtowc function.
41937         * lib/propername.c: Include mbuiter.h unconditionally.
41938         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41939         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41940         (trim2): Assume mbrtowc function.
41941         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41942         (mbsnwidth): Assume mbrtowc function.
41943         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41944         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41945         fallback definitions.
41946         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41947
41948 2008-12-22  Bruno Haible  <bruno@clisp.org>
41949
41950         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41951
41952 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41953
41954         * modules/regex: Request emulations for the mb*/wc* functions we need.
41955         * m4/regex.m4: Don't look for those functions here.
41956         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41957
41958 2008-12-22  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41961
41962 2008-12-21  Bruno Haible  <bruno@clisp.org>
41963
41964         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41965         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41966         (Include): Remove conditionalization.
41967         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41968         (Include): Remove conditionalization.
41969         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41970         (Include): Remove conditionalization.
41971         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41972         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41973         * NEWS: Mention the change.
41974         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41975         via Sergey Poznyakoff <gray@gnu.org.ua>.
41976
41977 2008-12-21  Bruno Haible  <bruno@clisp.org>
41978
41979         * MODULES.html.sh (Extended multibyte and wide character utilities
41980         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41981         wcrtomb, wcsrtombs.
41982         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41983         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41984         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41985         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41986
41987 2008-12-21  Bruno Haible  <bruno@clisp.org>
41988
41989         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41990
41991 2008-12-21  Bruno Haible  <bruno@clisp.org>
41992
41993         * modules/wcsnrtombs-tests: New file.
41994         * tests/test-wcsnrtombs1.sh: New file.
41995         * tests/test-wcsnrtombs2.sh: New file.
41996         * tests/test-wcsnrtombs3.sh: New file.
41997         * tests/test-wcsnrtombs4.sh: New file.
41998         * tests/test-wcsnrtombs.c: New file.
41999
42000         New module 'wcsnrtombs'.
42001         * lib/wchar.in.h (wcsnrtombs): New declaration.
42002         * lib/wcsnrtombs.c: New file.
42003         * lib/wcsrtombs-state.c: New file.
42004         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42005         (internal_state): Remove variable.
42006         * m4/wcsnrtombs.m4: New file.
42007         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42008         compilation units.
42009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42010         HAVE_WCSNRTOMBS.
42011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42012         HAVE_WCSNRTOMBS.
42013         * modules/wcsnrtombs: New file.
42014         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42015         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42016
42017 2008-12-21  Bruno Haible  <bruno@clisp.org>
42018
42019         * modules/wcsrtombs-tests: New file.
42020         * tests/test-wcsrtombs1.sh: New file.
42021         * tests/test-wcsrtombs2.sh: New file.
42022         * tests/test-wcsrtombs3.sh: New file.
42023         * tests/test-wcsrtombs4.sh: New file.
42024         * tests/test-wcsrtombs.c: New file.
42025
42026         New module 'wcsrtombs'.
42027         * lib/wchar.in.h (wcsrtombs): New declaration.
42028         * lib/wcsrtombs.c: New file.
42029         * m4/wcsrtombs.m4: New file.
42030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42031         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42032         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42033         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42034         * modules/wcsrtombs: New file.
42035         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42036         bugs.
42037
42038 2008-12-21  Bruno Haible  <bruno@clisp.org>
42039
42040         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42041         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42042         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42043         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42044         if not correct.
42045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42046         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42047         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42048         m4/locale-zh.m4, m4/codeset.m4.
42049         * doc/posix-functions/wcrtomb.texi: Document the bug.
42050
42051 2008-12-21  Bruno Haible  <bruno@clisp.org>
42052
42053         Work around a btowc() bug on IRIX 6.5.
42054         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42055         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42056         REPLACE_WTOBC if not.
42057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42058         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42059         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42060
42061 2008-12-21  Bruno Haible  <bruno@clisp.org>
42062
42063         * modules/wcrtomb-tests: New file.
42064         * tests/test-wcrtomb.sh: New file.
42065         * tests/test-wcrtomb.c: New file.
42066
42067         New module 'wcrtomb'.
42068         * lib/wchar.in.h (wcrtomb): New declaration.
42069         * lib/wcrtomb.c: New file.
42070         * m4/wcrtomb.m4: New file.
42071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42072         HAVE_WCRTOMB.
42073         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42074         HAVE_WCRTOMB.
42075         * modules/wcrtomb: New file.
42076         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42077
42078 2008-12-21  Bruno Haible  <bruno@clisp.org>
42079
42080         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42081         * modules/mbsrtowcs (Files): Likewise.
42082         * modules/wctob (Files): Likewise.
42083         * modules/c-strcase-tests (Files): Likewise.
42084         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42085         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42086         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42087         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42088         * modules/vasnprintf-posix-tests (Files): Likewise.
42089
42090 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42091
42092         gitlog-to-changelog: pass all command-line arguments to git-log
42093         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42094         it is sometimes convenient to filter the commits in various ways.
42095         gitlog-to-changelog only allows --since to specify a start date,
42096         but git-log itself supports many other filtering mechanisms.
42097         At the moment, I want to filter by branch name.  Rather than
42098         adding a --branch option to gitlog-to-changelog, it seems more
42099         flexible to simply pass all options directly to git-log and let
42100         git do the work.  Notice that this effectively makes --since a
42101         redundant option for gitlog-to-changelog, but removing it would
42102         require current usage to change since calls would then require
42103         an additional '--'.
42104
42105 2008-12-21  Bruno Haible  <bruno@clisp.org>
42106
42107         * modules/mbsnrtowcs-tests: New file.
42108         * tests/test-mbsnrtowcs1.sh: New file.
42109         * tests/test-mbsnrtowcs2.sh: New file.
42110         * tests/test-mbsnrtowcs3.sh: New file.
42111         * tests/test-mbsnrtowcs4.sh: New file.
42112         * tests/test-mbsnrtowcs.c: New file.
42113
42114         New module 'mbsnrtowcs'.
42115         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42116         * lib/mbsnrtowcs.c: New file.
42117         * lib/mbsrtowcs-state.c: New file.
42118         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42119         (internal_state): Remove variable.
42120         * m4/mbsnrtowcs.m4: New file.
42121         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42122         compilation units.
42123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42124         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42125         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42126         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42127         * modules/mbsnrtowcs: New file.
42128         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42129         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42130         portability problem.
42131
42132 2008-12-21  Bruno Haible  <bruno@clisp.org>
42133
42134         Work around mbsrtowcs bug.
42135         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42136         (gl_FUNC_MBSRTOWCS): Invoke it.
42137         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42138         m4/locale-zh.m4.
42139         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42140
42141 2008-12-21  Bruno Haible  <bruno@clisp.org>
42142
42143         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42144
42145 2008-12-21  Bruno Haible  <bruno@clisp.org>
42146
42147         Update doc for AIX.
42148         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42149         16-bit wchar_t type.
42150         * doc/posix-functions/btowc.texi: Likewise.
42151         * doc/posix-functions/fgetwc.texi: Likewise.
42152         * doc/posix-functions/fgetws.texi: Likewise.
42153         * doc/posix-functions/fputwc.texi: Likewise.
42154         * doc/posix-functions/fputws.texi: Likewise.
42155         * doc/posix-functions/fwide.texi: Likewise.
42156         * doc/posix-functions/fwprintf.texi: Likewise.
42157         * doc/posix-functions/fwscanf.texi: Likewise.
42158         * doc/posix-functions/getwchar.texi: Likewise.
42159         * doc/posix-functions/getwc.texi: Likewise.
42160         * doc/posix-functions/iswalnum.texi: Likewise.
42161         * doc/posix-functions/iswalpha.texi: Likewise.
42162         * doc/posix-functions/iswblank.texi: Likewise.
42163         * doc/posix-functions/iswcntrl.texi: Likewise.
42164         * doc/posix-functions/iswctype.texi: Likewise.
42165         * doc/posix-functions/iswdigit.texi: Likewise.
42166         * doc/posix-functions/iswgraph.texi: Likewise.
42167         * doc/posix-functions/iswlower.texi: Likewise.
42168         * doc/posix-functions/iswprint.texi: Likewise.
42169         * doc/posix-functions/iswpunct.texi: Likewise.
42170         * doc/posix-functions/iswspace.texi: Likewise.
42171         * doc/posix-functions/iswupper.texi: Likewise.
42172         * doc/posix-functions/iswxdigit.texi: Likewise.
42173         * doc/posix-functions/mbrtowc.texi: Likewise.
42174         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42175         * doc/posix-functions/mbstowcs.texi: Likewise.
42176         * doc/posix-functions/mbtowc.texi: Likewise.
42177         * doc/posix-functions/putwchar.texi: Likewise.
42178         * doc/posix-functions/putwc.texi: Likewise.
42179         * doc/posix-functions/swprintf.texi: Likewise.
42180         * doc/posix-functions/tolower.texi: Likewise.
42181         * doc/posix-functions/toupper.texi: Likewise.
42182         * doc/posix-functions/towctrans.texi: Likewise.
42183         * doc/posix-functions/ungetwc.texi: Likewise.
42184         * doc/posix-functions/vswprintf.texi: Likewise.
42185         * doc/posix-functions/wcrtomb.texi: Likewise.
42186         * doc/posix-functions/wcscat.texi: Likewise.
42187         * doc/posix-functions/wcschr.texi: Likewise.
42188         * doc/posix-functions/wcscmp.texi: Likewise.
42189         * doc/posix-functions/wcscoll.texi: Likewise.
42190         * doc/posix-functions/wcscpy.texi: Likewise.
42191         * doc/posix-functions/wcscspn.texi: Likewise.
42192         * doc/posix-functions/wcsftime.texi: Likewise.
42193         * doc/posix-functions/wcslen.texi: Likewise.
42194         * doc/posix-functions/wcsncat.texi: Likewise.
42195         * doc/posix-functions/wcsncmp.texi: Likewise.
42196         * doc/posix-functions/wcsncpy.texi: Likewise.
42197         * doc/posix-functions/wcspbrk.texi: Likewise.
42198         * doc/posix-functions/wcsrchr.texi: Likewise.
42199         * doc/posix-functions/wcsrtombs.texi: Likewise.
42200         * doc/posix-functions/wcsspn.texi: Likewise.
42201         * doc/posix-functions/wcsstr.texi: Likewise.
42202         * doc/posix-functions/wcstod.texi: Likewise.
42203         * doc/posix-functions/wcstof.texi: Likewise.
42204         * doc/posix-functions/wcstoimax.texi: Likewise.
42205         * doc/posix-functions/wcstok.texi: Likewise.
42206         * doc/posix-functions/wcstold.texi: Likewise.
42207         * doc/posix-functions/wcstoll.texi: Likewise.
42208         * doc/posix-functions/wcstol.texi: Likewise.
42209         * doc/posix-functions/wcstombs.texi: Likewise.
42210         * doc/posix-functions/wcstoull.texi: Likewise.
42211         * doc/posix-functions/wcstoul.texi: Likewise.
42212         * doc/posix-functions/wcstoumax.texi: Likewise.
42213         * doc/posix-functions/wcswidth.texi: Likewise.
42214         * doc/posix-functions/wcsxfrm.texi: Likewise.
42215         * doc/posix-functions/wctob.texi: Likewise.
42216         * doc/posix-functions/wctomb.texi: Likewise.
42217         * doc/posix-functions/wctrans.texi: Likewise.
42218         * doc/posix-functions/wctype.texi: Likewise.
42219         * doc/posix-functions/wcwidth.texi: Likewise.
42220         * doc/posix-functions/wmemchr.texi: Likewise.
42221         * doc/posix-functions/wmemcmp.texi: Likewise.
42222         * doc/posix-functions/wmemcpy.texi: Likewise.
42223         * doc/posix-functions/wmemmove.texi: Likewise.
42224         * doc/posix-functions/wmemset.texi: Likewise.
42225         * doc/posix-functions/wprintf.texi: Likewise.
42226         * doc/posix-functions/wscanf.texi: Likewise.
42227
42228 2008-12-21  Bruno Haible  <bruno@clisp.org>
42229
42230         Update doc for HP-UX 11.11.
42231         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42232         in HP-UX version 11.00, not in all versions of HP-UX 11.
42233         * doc/posix-functions/fwide.texi: Likewise.
42234         * doc/posix-functions/fwprintf.texi: Likewise.
42235         * doc/posix-functions/fwscanf.texi: Likewise.
42236         * doc/posix-functions/inet_ntop.texi: Likewise.
42237         * doc/posix-functions/inet_pton.texi: Likewise.
42238         * doc/posix-functions/mbrlen.texi: Likewise.
42239         * doc/posix-functions/mbrtowc.texi: Likewise.
42240         * doc/posix-functions/mbsinit.texi: Likewise.
42241         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42242         * doc/posix-functions/swprintf.texi: Likewise.
42243         * doc/posix-functions/swscanf.texi: Likewise.
42244         * doc/posix-functions/towctrans.texi: Likewise.
42245         * doc/posix-functions/vfwprintf.texi: Likewise.
42246         * doc/posix-functions/vswprintf.texi: Likewise.
42247         * doc/posix-functions/vwprintf.texi: Likewise.
42248         * doc/posix-functions/wcrtomb.texi: Likewise.
42249         * doc/posix-functions/wcsrtombs.texi: Likewise.
42250         * doc/posix-functions/wcsstr.texi: Likewise.
42251         * doc/posix-functions/wctob.texi: Likewise.
42252         * doc/posix-functions/wctrans.texi: Likewise.
42253         * doc/posix-functions/wmemchr.texi: Likewise.
42254         * doc/posix-functions/wmemcmp.texi: Likewise.
42255         * doc/posix-functions/wmemcpy.texi: Likewise.
42256         * doc/posix-functions/wmemmove.texi: Likewise.
42257         * doc/posix-functions/wmemset.texi: Likewise.
42258         * doc/posix-functions/wprintf.texi: Likewise.
42259         * doc/posix-functions/wscanf.texi: Likewise.
42260
42261 2008-12-21  Bruno Haible  <bruno@clisp.org>
42262
42263         Work around a portability problem.
42264         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42265         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42266
42267 2008-12-20  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42270         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42271         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42273         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42274
42275         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42276         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42277         set.
42278         (GNULIB_defined_mbstate_t): New macro.
42279         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42280         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42281         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42282         reuses the system's mbrtowc function but works around the bugs.
42283         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42284         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42285         macros.
42286         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42287         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42288         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42289         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42290         REPLACE_MBSINIT if mbsinit needs to be overridden.
42291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42292         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42293         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42294         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42295         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42296         m4/locale-zh.m4.
42297         (Depends): Add mbsinit.
42298         * modules/mbsinit (Depends): Add mbrtowc.
42299         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42300
42301 2008-12-20  Bruno Haible  <bruno@clisp.org>
42302
42303         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42304         so that there are no conversion errors on AIX.
42305         * tests/test-mbsrtowcs.c (main): LIkewise.
42306
42307 2008-12-20  Bruno Haible  <bruno@clisp.org>
42308
42309         Work around wctob bug on Solaris <= 9.
42310         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42311         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42313         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42314         * modules/wctob (Files): Add m4/locale-fr.m4.
42315         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42316
42317 2008-12-20  Bruno Haible  <bruno@clisp.org>
42318
42319         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42320         /dev/null.
42321         * tests/test-select-in.sh: Likewise.
42322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42323
42324 2008-12-20  Bruno Haible  <bruno@clisp.org>
42325
42326         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42327         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42328         Cygwin 1.5.x.
42329
42330 2008-12-20  Bruno Haible  <bruno@clisp.org>
42331
42332         Ensure mbstate_t is defined on HP-UX 11.11.
42333         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42334         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42335         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42336         AC_USE_SYSTEM_EXTENSIONS.
42337         * modules/fnmatch (Depends-on): Add extensions.
42338         * modules/mbrlen (Depends-on): Likewise.
42339         * modules/mbrtowc (Depends-on): Likewise.
42340         * modules/mbsinit (Depends-on): Likewise.
42341         * modules/mbsrtowcs (Depends-on): Likewise.
42342         * modules/mbswidth (Depends-on): Likewise.
42343         * modules/quotearg (Depends-on): Likewise.
42344         * modules/strftime (Depends-on): Likewise.
42345
42346 2008-12-20  Bruno Haible  <bruno@clisp.org>
42347
42348         Ensure wctob is declared on IRIX 6.5.
42349         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42350         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42351         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42353         of HAVE_WCTOB.
42354         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42355         HAVE_WCTOB.
42356         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42357
42358 2008-12-19  Bruno Haible  <bruno@clisp.org>
42359
42360         * modules/mbsrtowcs-tests: New file.
42361         * tests/test-mbsrtowcs1.sh: New file.
42362         * tests/test-mbsrtowcs2.sh: New file.
42363         * tests/test-mbsrtowcs3.sh: New file.
42364         * tests/test-mbsrtowcs4.sh: New file.
42365         * tests/test-mbsrtowcs.c: New file.
42366
42367         New module 'mbsrtowcs'.
42368         * lib/wchar.in.h (mbsrtowcs): New declaration.
42369         * lib/mbsrtowcs.c: New file.
42370         * m4/mbsrtowcs.m4: New file.
42371         * modules/mbsrtowcs: New file.
42372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42373         HAVE_MBSRTOWCS.
42374         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42375         HAVE_MBSRTOWCS.
42376         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42377
42378 2008-12-19  Bruno Haible  <bruno@clisp.org>
42379
42380         New module 'mbrlen'.
42381         * lib/wchar.in.h (mbrlen): New declaration.
42382         * lib/mbrlen.c: New file.
42383         * m4/mbrlen.m4: New file.
42384         * modules/mbrlen: New file.
42385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42386         HAVE_MBRLEN.
42387         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42388         HAVE_MBRLEN.
42389         * doc/posix-functions/mbrlen.texi: Document the new module.
42390
42391 2008-12-19  Bruno Haible  <bruno@clisp.org>
42392
42393         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42394         * modules/mbrtowc (Depends-on): Add verify.
42395         Suggested by Paul Eggert.
42396
42397 2008-12-18  Bruno Haible  <bruno@clisp.org>
42398
42399         * modules/mbsinit-tests: New file.
42400         * tests/test-mbsinit.sh: New file.
42401         * tests/test-mbsinit.c: New file.
42402
42403 2008-12-18  Bruno Haible  <bruno@clisp.org>
42404
42405         * modules/mbrtowc-tests: New file.
42406         * tests/test-mbrtowc1.sh: New file.
42407         * tests/test-mbrtowc2.sh: New file.
42408         * tests/test-mbrtowc3.sh: New file.
42409         * tests/test-mbrtowc4.sh: New file.
42410         * tests/test-mbrtowc.c: New file.
42411
42412         New module 'mbrtowc'.
42413         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42414         mbsinit and mbrtowc.
42415         (mbrtowc): New declaration.
42416         * lib/mbrtowc.c: New file.
42417         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42418         * modules/mbrtowc: New file.
42419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42420         HAVE_MBRTOWC.
42421         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42422         HAVE_MBRTOWC.
42423         * doc/posix-functions/mbrtowc.texi: Document the new module.
42424
42425 2008-12-18  Bruno Haible  <bruno@clisp.org>
42426
42427         New module 'wctob'.
42428         * lib/wchar.in.h (wctob): New declaration.
42429         * lib/wctob.c: New file.
42430         * m4/wctob.m4: New file.
42431         * modules/wctob: New file.
42432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42433         HAVE_WCTOB.
42434         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42435         * doc/posix-functions/wctob.texi: Document the new module.
42436
42437 2008-12-18  Bruno Haible  <bruno@clisp.org>
42438
42439         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42440         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42441
42442 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42443
42444         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42445         G. Christensen" <tgc@jupiterrise.com>.
42446
42447         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42448         G. Christensen" <tgc@jupiterrise.com>.
42449
42450         * lib/flock.c: Need to include string.h.  Reported by "Tom
42451         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42452         <ebb9@byu.net>.
42453
42454 2008-12-18  Bruno Haible  <bruno@clisp.org>
42455
42456         * m4/locale-ja.m4: New file, from GNU gettext.
42457
42458 2008-12-17  Bruno Haible  <bruno@clisp.org>
42459
42460         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42461         Suggested by Eric Blake.
42462
42463 2008-12-17  Bruno Haible  <bruno@clisp.org>
42464
42465         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42466
42467 2008-12-17  Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42470         * modules/mbsinit (Depends-on): Add verify.
42471         Suggested by Paul Eggert.
42472
42473 2008-12-17  Bruno Haible  <bruno@clisp.org>
42474
42475         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42476         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42477         gl_FUNC_MBRTOWC.
42478         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42479         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42480         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42481         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42482         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42483         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42484         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42485         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42486         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42487         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42488         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42489         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42490         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42491         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42492         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42493         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42494         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42495         * modules/trim (configure.ac): Likewise.
42496
42497 2008-12-17  Bruno Haible  <bruno@clisp.org>
42498
42499         * modules/btowc-tests: New file.
42500         * tests/test-btowc1.sh: New file.
42501         * tests/test-btowc2.sh: New file.
42502         * tests/test-btowc.c: New file.
42503
42504         New module 'btowc'.
42505         * lib/wchar.in.h (btowc): New declaration.
42506         * lib/btowc.c: New file.
42507         * m4/btowc.m4: New file.
42508         * modules/btowc: New file.
42509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42510         HAVE_BTOWC.
42511         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42512         * doc/posix-functions/btowc.texi: Document the new module.
42513
42514 2008-12-17  Bruno Haible  <bruno@clisp.org>
42515
42516         New module 'mbsinit'.
42517         * lib/wchar.in.h (mbsinit): New declaration.
42518         * lib/mbsinit.c: New file.
42519         * m4/mbsinit.m4: New file.
42520         * modules/mbsinit: New file.
42521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42522         HAVE_MBSINIT.
42523         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42524         HAVE_MBSINIT.
42525         * doc/posix-functions/mbsinit.texi: Document the new module.
42526
42527 2008-12-16  Bruno Haible  <bruno@clisp.org>
42528
42529         * lib/unistd.in.h: Add comment.
42530         * tests/test-environ.c: Don't include <stdlib.h>.
42531
42532 2008-12-16  Bruno Haible  <bruno@clisp.org>
42533
42534         * lib/parse-duration.h (parse_duration): Document return value
42535         convention.
42536         * lib/parse-duration.c: Include specification header first. Add
42537         comments.
42538         (_): Remove macro.
42539         (parse_year_month_day, parse_hour_minute_second): Move side effects
42540         outside of strchr call.
42541         (parse_non_iso8601): Move side effects outside of isspace call.
42542         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42543         call.
42544
42545 2008-12-16  Bruno Haible  <bruno@clisp.org>
42546
42547         * tests/test-parse-duration.sh: Produce no output when the test
42548         succeeds.
42549
42550 2008-12-16  Bruno Haible  <bruno@clisp.org>
42551
42552         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42553         expressions.
42554
42555 2008-12-15  Bruno Haible  <bruno@clisp.org>
42556
42557         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42558         * doc/glibc-functions/flistxattr.texi: Likewise.
42559         * doc/glibc-functions/fopencookie.texi: Likewise.
42560         * doc/glibc-functions/fremovexattr.texi: Likewise.
42561         * doc/glibc-functions/fsetxattr.texi: Likewise.
42562         * doc/glibc-functions/getxattr.texi: Likewise.
42563         * doc/glibc-functions/lgetxattr.texi: Likewise.
42564         * doc/glibc-functions/listxattr.texi: Likewise.
42565         * doc/glibc-functions/llistxattr.texi: Likewise.
42566         * doc/glibc-functions/lremovexattr.texi: Likewise.
42567         * doc/glibc-functions/lsetxattr.texi: Likewise.
42568         * doc/glibc-functions/removexattr.texi: Likewise.
42569         * doc/glibc-functions/setxattr.texi: Likewise.
42570         * doc/posix-functions/open_memstream.texi: Likewise.
42571
42572 2008-12-15  Eric Blake  <ebb9@byu.net>
42573
42574         Update doc for cygwin 1.7.
42575         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42576         functions.
42577         * doc/posix-functions/fchmodat.texi: Likewise.
42578         * doc/posix-functions/fchownat.texi: Likewise.
42579         * doc/posix-functions/fdopendir.texi: Likewise.
42580         * doc/posix-functions/fmemopen.texi: Likewise.
42581         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42582         * doc/posix-functions/fstatat.texi: Likewise.
42583         * doc/posix-functions/futimens.texi: Likewise.
42584         * doc/posix-functions/gai_strerror.texi: Likewise.
42585         * doc/posix-functions/getaddrinfo.texi: Likewise.
42586         * doc/posix-functions/getnameinfo.texi: Likewise.
42587         * doc/posix-functions/if_freenameindex.texi: Likewise.
42588         * doc/posix-functions/if_indextoname.texi: Likewise.
42589         * doc/posix-functions/if_nameindex.texi: Likewise.
42590         * doc/posix-functions/if_nametoindex.texi: Likewise.
42591         * doc/posix-functions/insque.texi: Likewise.
42592         * doc/posix-functions/linkat.texi: Likewise.
42593         * doc/posix-functions/llrint.texi: Likewise.
42594         * doc/posix-functions/llrintf.texi: Likewise.
42595         * doc/posix-functions/llrintl.texi: Likewise.
42596         * doc/posix-functions/lockf.texi: Likewise.
42597         * doc/posix-functions/lrintl.texi: Likewise.
42598         * doc/posix-functions/mkdirat.texi: Likewise.
42599         * doc/posix-functions/mkfifoat.texi: Likewise.
42600         * doc/posix-functions/mknodat.texi: Likewise.
42601         * doc/posix-functions/mq_close.texi: Likewise.
42602         * doc/posix-functions/mq_getattr.texi: Likewise.
42603         * doc/posix-functions/mq_notify.texi: Likewise.
42604         * doc/posix-functions/mq_open.texi: Likewise.
42605         * doc/posix-functions/mq_receive.texi: Likewise.
42606         * doc/posix-functions/mq_send.texi: Likewise.
42607         * doc/posix-functions/mq_setattr.texi: Likewise.
42608         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42609         * doc/posix-functions/mq_timedsend.texi: Likewise.
42610         * doc/posix-functions/mq_unlink.texi: Likewise.
42611         * doc/posix-functions/open_memstream.texi: Likewise.
42612         * doc/posix-functions/openat.texi: Likewise.
42613         * doc/posix-functions/posix_fadvise.texi: Likewise.
42614         * doc/posix-functions/posix_fallocate.texi: Likewise.
42615         * doc/posix-functions/posix_madvise.texi: Likewise.
42616         * doc/posix-functions/posix_memalign.texi: Likewise.
42617         * doc/posix-functions/posix_openpt.texi: Likewise.
42618         * doc/posix-functions/readlinkat.texi: Likewise.
42619         * doc/posix-functions/remque.texi: Likewise.
42620         * doc/posix-functions/renameat.texi: Likewise.
42621         * doc/posix-functions/rintl.texi: Likewise.
42622         * doc/posix-functions/sem_unlink.texi: Likewise.
42623         * doc/posix-functions/shm_open.texi: Likewise.
42624         * doc/posix-functions/shm_unlink.texi: Likewise.
42625         * doc/posix-functions/signgam.texi: Likewise.
42626         * doc/posix-functions/sigset.texi: Likewise.
42627         * doc/posix-functions/stpcpy.texi: Likewise.
42628         * doc/posix-functions/stpncpy.texi: Likewise.
42629         * doc/posix-functions/strerror.texi: Likewise.
42630         * doc/posix-functions/strtod.texi: Likewise.
42631         * doc/posix-functions/symlinkat.texi: Likewise.
42632         * doc/posix-functions/unlinkat.texi: Likewise.
42633         * doc/posix-functions/utimensat.texi: Likewise.
42634         * doc/glibc-functions/bindresvport.texi: Likewise.
42635         * doc/glibc-functions/dn_expand.texi: Likewise.
42636         * doc/glibc-functions/exp10.texi: Likewise.
42637         * doc/glibc-functions/exp10f.texi: Likewise.
42638         * doc/glibc-functions/fgetxattr.texi: Likewise.
42639         * doc/glibc-functions/flistxattr.texi: Likewise.
42640         * doc/glibc-functions/fopencookie.texi: Likewise.
42641         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42642         * doc/glibc-functions/fremovexattr.texi: Likewise.
42643         * doc/glibc-functions/fsetxattr.texi: Likewise.
42644         * doc/glibc-functions/getifaddrs.texi: Likewise.
42645         * doc/glibc-functions/getxattr.texi: Likewise.
42646         * doc/glibc-functions/lgetxattr.texi: Likewise.
42647         * doc/glibc-functions/listxattr.texi: Likewise.
42648         * doc/glibc-functions/llistxattr.texi: Likewise.
42649         * doc/glibc-functions/lremovexattr.texi: Likewise.
42650         * doc/glibc-functions/lsetxattr.texi: Likewise.
42651         * doc/glibc-functions/pow10.texi: Likewise.
42652         * doc/glibc-functions/pow10f.texi: Likewise.
42653         * doc/glibc-functions/rcmd_af.texi: Likewise.
42654         * doc/glibc-functions/removexattr.texi: Likewise.
42655         * doc/glibc-functions/res_init.texi: Likewise.
42656         * doc/glibc-functions/res_mkquery.texi: Likewise.
42657         * doc/glibc-functions/res_query.texi: Likewise.
42658         * doc/glibc-functions/res_querydomain.texi: Likewise.
42659         * doc/glibc-functions/res_send.texi: Likewise.
42660         * doc/glibc-functions/rresvport_af.texi: Likewise.
42661         * doc/glibc-functions/setxattr.texi: Likewise.
42662         * doc/glibc-functions/strcasestr.texi: Likewise.
42663
42664 2008-12-15  Bruno Haible  <bruno@clisp.org>
42665
42666         Fix compilation error on OSF/1 4.0.
42667         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42668         <sys/time.h>, simply delegate to the system header.
42669         Reported by Daniel Richard G. <oss@teragram.com>.
42670
42671 2008-12-15  Bruno Haible  <bruno@clisp.org>
42672
42673         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42674         * doc/posix-functions/fchmodat.texi: Likewise.
42675         * doc/posix-functions/fchownat.texi: Likewise.
42676         * doc/posix-functions/fdopendir.texi: Likewise.
42677         * doc/posix-functions/fstatat.texi: Likewise.
42678         * doc/posix-functions/mkdirat.texi: Likewise.
42679         * doc/posix-functions/unlinkat.texi: Likewise.
42680
42681 2008-12-14  Bruno Haible  <bruno@clisp.org>
42682
42683         Update doc for POSIX:2008.
42684         * doc/posix-functions/faccessat.texi: New file.
42685         * doc/posix-functions/fchmodat.texi: New file.
42686         * doc/posix-functions/fchownat.texi: New file.
42687         * doc/posix-functions/fdopendir.texi: New file.
42688         * doc/posix-functions/fstatat.texi: New file.
42689         * doc/posix-functions/futimens.texi: New file.
42690         * doc/posix-functions/linkat.texi: New file.
42691         * doc/posix-functions/mkdirat.texi: New file.
42692         * doc/posix-functions/mkfifoat.texi: New file.
42693         * doc/posix-functions/mknodat.texi: New file.
42694         * doc/posix-functions/open_wmemstream.texi: New file.
42695         * doc/posix-functions/openat.texi: New file.
42696         * doc/posix-functions/psiginfo.texi: New file.
42697         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42698         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42699         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42700         * doc/posix-functions/readlinkat.texi: New file.
42701         * doc/posix-functions/renameat.texi: New file.
42702         * doc/posix-functions/strerror_l.texi: New file.
42703         * doc/posix-functions/symlinkat.texi: New file.
42704         * doc/posix-functions/unlinkat.texi: New file.
42705         * doc/posix-functions/utimensat.texi: New file.
42706         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42707
42708 2008-12-14  Bruno Haible  <bruno@clisp.org>
42709
42710         Update doc for POSIX:2008.
42711         * doc/posix-functions/alphasort.texi: Renamed from
42712         doc/glibc-functions/alphasort.texi.
42713         * doc/posix-functions/dirfd.texi: Renamed from
42714         doc/glibc-functions/dirfd.texi.
42715         * doc/posix-functions/dprintf.texi: Renamed from
42716         doc/glibc-functions/dprintf.texi.
42717         * doc/posix-functions/duplocale.texi: Renamed from
42718         doc/glibc-functions/duplocale.texi.
42719         * doc/posix-functions/fexecve.texi: Renamed from
42720         doc/glibc-functions/fexecve.texi.
42721         * doc/posix-functions/fmemopen.texi: Renamed from
42722         doc/glibc-functions/fmemopen.texi.
42723         * doc/posix-functions/freelocale.texi: Renamed from
42724         doc/glibc-functions/freelocale.texi.
42725         * doc/posix-functions/getdate_err.texi: Renamed from
42726         doc/glibc-functions/getdate_err.texi.
42727         * doc/posix-functions/isalnum_l.texi: Renamed from
42728         doc/glibc-functions/isalnum_l.texi.
42729         * doc/posix-functions/isalpha_l.texi: Renamed from
42730         doc/glibc-functions/isalpha_l.texi.
42731         * doc/posix-functions/isblank_l.texi: Renamed from
42732         doc/glibc-functions/isblank_l.texi.
42733         * doc/posix-functions/iscntrl_l.texi: Renamed from
42734         doc/glibc-functions/iscntrl_l.texi.
42735         * doc/posix-functions/isdigit_l.texi: Renamed from
42736         doc/glibc-functions/isdigit_l.texi.
42737         * doc/posix-functions/isgraph_l.texi: Renamed from
42738         doc/glibc-functions/isgraph_l.texi.
42739         * doc/posix-functions/islower_l.texi: Renamed from
42740         doc/glibc-functions/islower_l.texi.
42741         * doc/posix-functions/isprint_l.texi: Renamed from
42742         doc/glibc-functions/isprint_l.texi.
42743         * doc/posix-functions/ispunct_l.texi: Renamed from
42744         doc/glibc-functions/ispunct_l.texi.
42745         * doc/posix-functions/isspace_l.texi: Renamed from
42746         doc/glibc-functions/isspace_l.texi.
42747         * doc/posix-functions/isupper_l.texi: Renamed from
42748         doc/glibc-functions/isupper_l.texi.
42749         * doc/posix-functions/iswalnum_l.texi: Renamed from
42750         doc/glibc-functions/iswalnum_l.texi.
42751         * doc/posix-functions/iswalpha_l.texi: Renamed from
42752         doc/glibc-functions/iswalpha_l.texi.
42753         * doc/posix-functions/iswblank_l.texi: Renamed from
42754         doc/glibc-functions/iswblank_l.texi.
42755         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42756         doc/glibc-functions/iswcntrl_l.texi.
42757         * doc/posix-functions/iswctype_l.texi: Renamed from
42758         doc/glibc-functions/iswctype_l.texi.
42759         * doc/posix-functions/iswdigit_l.texi: Renamed from
42760         doc/glibc-functions/iswdigit_l.texi.
42761         * doc/posix-functions/iswgraph_l.texi: Renamed from
42762         doc/glibc-functions/iswgraph_l.texi.
42763         * doc/posix-functions/iswlower_l.texi: Renamed from
42764         doc/glibc-functions/iswlower_l.texi.
42765         * doc/posix-functions/iswprint_l.texi: Renamed from
42766         doc/glibc-functions/iswprint_l.texi.
42767         * doc/posix-functions/iswpunct_l.texi: Renamed from
42768         doc/glibc-functions/iswpunct_l.texi.
42769         * doc/posix-functions/iswspace_l.texi: Renamed from
42770         doc/glibc-functions/iswspace_l.texi.
42771         * doc/posix-functions/iswupper_l.texi: Renamed from
42772         doc/glibc-functions/iswupper_l.texi.
42773         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42774         doc/glibc-functions/iswxdigit_l.texi.
42775         * doc/posix-functions/isxdigit_l.texi: Renamed from
42776         doc/glibc-functions/isxdigit_l.texi.
42777         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42778         doc/glibc-functions/mbsnrtowcs.texi.
42779         * doc/posix-functions/mkdtemp.texi: Renamed from
42780         doc/glibc-functions/mkdtemp.texi.
42781         * doc/posix-functions/newlocale.texi: Renamed from
42782         doc/glibc-functions/newlocale.texi.
42783         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42784         doc/glibc-functions/nl_langinfo_l.texi.
42785         * doc/posix-functions/open_memstream.texi: Renamed from
42786         doc/glibc-functions/open_memstream.texi.
42787         * doc/posix-functions/opterr.texi: Renamed from
42788         doc/glibc-functions/opterr.texi.
42789         * doc/posix-functions/optind.texi: Renamed from
42790         doc/glibc-functions/optind.texi.
42791         * doc/posix-functions/optopt.texi: Renamed from
42792         doc/glibc-functions/optopt.texi.
42793         * doc/posix-functions/psignal.texi: Renamed from
42794         doc/glibc-functions/psignal.texi.
42795         * doc/posix-functions/scandir.texi: Renamed from
42796         doc/glibc-functions/scandir.texi.
42797         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42798         doc/glibc-functions/sched_get_priority_min.texi.
42799         * doc/posix-functions/signgam.texi: Renamed from
42800         doc/glibc-functions/signgam.texi.
42801         * doc/posix-functions/stpcpy.texi: Renamed from
42802         doc/glibc-functions/stpcpy.texi.
42803         * doc/posix-functions/stpncpy.texi: Renamed from
42804         doc/glibc-functions/stpncpy.texi.
42805         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42806         doc/glibc-functions/strcasecmp_l.texi.
42807         * doc/posix-functions/strcoll_l.texi: Renamed from
42808         doc/glibc-functions/strcoll_l.texi.
42809         * doc/posix-functions/strfmon_l.texi: Renamed from
42810         doc/glibc-functions/strfmon_l.texi.
42811         * doc/posix-functions/strftime_l.texi: Renamed from
42812         doc/glibc-functions/strftime_l.texi.
42813         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42814         doc/glibc-functions/strncasecmp_l.texi.
42815         * doc/posix-functions/strndup.texi: Renamed from
42816         doc/glibc-functions/strndup.texi.
42817         * doc/posix-functions/strnlen.texi: Renamed from
42818         doc/glibc-functions/strnlen.texi.
42819         * doc/posix-functions/strsignal.texi: Renamed from
42820         doc/glibc-functions/strsignal.texi.
42821         * doc/posix-functions/strxfrm_l.texi: Renamed from
42822         doc/glibc-functions/strxfrm_l.texi.
42823         * doc/posix-functions/timer_gettime.texi: Renamed from
42824         doc/glibc-functions/timer_gettime.texi.
42825         * doc/posix-functions/tolower_l.texi: Renamed from
42826         doc/glibc-functions/tolower_l.texi.
42827         * doc/posix-functions/toupper_l.texi: Renamed from
42828         doc/glibc-functions/toupper_l.texi.
42829         * doc/posix-functions/towctrans_l.texi: Renamed from
42830         doc/glibc-functions/towctrans_l.texi.
42831         * doc/posix-functions/towlower_l.texi: Renamed from
42832         doc/glibc-functions/towlower_l.texi.
42833         * doc/posix-functions/towupper_l.texi: Renamed from
42834         doc/glibc-functions/towupper_l.texi.
42835         * doc/posix-functions/uselocale.texi: Renamed from
42836         doc/glibc-functions/uselocale.texi.
42837         * doc/posix-functions/vdprintf.texi: Renamed from
42838         doc/glibc-functions/vdprintf.texi.
42839         * doc/posix-functions/wcpcpy.texi:
42840         Renamed from doc/glibc-functions/wcpcpy.texi.
42841         * doc/posix-functions/wcpncpy.texi: Renamed from
42842         doc/glibc-functions/wcpncpy.texi.
42843         * doc/posix-functions/wcscasecmp.texi: Renamed from
42844         doc/glibc-functions/wcscasecmp.texi.
42845         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42846         doc/glibc-functions/wcscasecmp_l.texi.
42847         * doc/posix-functions/wcscoll_l.texi: Renamed from
42848         doc/glibc-functions/wcscoll_l.texi.
42849         * doc/posix-functions/wcsdup.texi: Renamed from
42850         doc/glibc-functions/wcsdup.texi.
42851         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42852         doc/glibc-functions/wcsncasecmp.texi.
42853         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42854         doc/glibc-functions/wcsncasecmp_l.texi.
42855         * doc/posix-functions/wcsnlen.texi: Renamed from
42856         doc/glibc-functions/wcsnlen.texi.
42857         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42858         doc/glibc-functions/wcsnrtombs.texi.
42859         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42860         doc/glibc-functions/wcsxfrm_l.texi.
42861         * doc/posix-functions/wctrans_l.texi: Renamed from
42862         doc/glibc-functions/wctrans_l.texi.
42863         * doc/posix-functions/wctype_l.texi: Renamed from
42864         doc/glibc-functions/wctype_l.texi.
42865         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42866         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42867         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42868         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42869         these subsections.
42870         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42871         Remove sections.
42872
42873 2008-12-14  Bruno Haible  <bruno@clisp.org>
42874
42875         Update doc for POSIX:2008.
42876         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42877
42878 2008-12-14  Bruno Haible  <bruno@clisp.org>
42879
42880         Update doc for POSIX:2008.
42881         * doc/pastposix-functions/bcmp.texi: Renamed from
42882         doc/posix-functions/bcmp.texi.
42883         * doc/pastposix-functions/bcopy.texi: Renamed from
42884         doc/posix-functions/bcopy.texi.
42885         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42886         doc/posix-functions/bsd_signal.texi.
42887         * doc/pastposix-functions/bzero.texi: Renamed from
42888         doc/posix-functions/bzero.texi.
42889         * doc/pastposix-functions/ecvt.texi: Renamed from
42890         doc/posix-functions/ecvt.texi.
42891         * doc/pastposix-functions/fcvt.texi: Renamed from
42892         doc/posix-functions/fcvt.texi.
42893         * doc/pastposix-functions/ftime.texi: Renamed from
42894         doc/posix-functions/ftime.texi.
42895         * doc/pastposix-functions/gcvt.texi: Renamed from
42896         doc/posix-functions/gcvt.texi.
42897         * doc/pastposix-functions/getcontext.texi: Renamed from
42898         doc/posix-functions/getcontext.texi.
42899         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42900         doc/posix-functions/gethostbyaddr.texi.
42901         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42902         doc/posix-functions/gethostbyname.texi.
42903         * doc/pastposix-functions/getwd.texi: Renamed from
42904         doc/posix-functions/getwd.texi.
42905         * doc/pastposix-functions/h_errno.texi: Renamed from
42906         doc/posix-functions/h_errno.texi.
42907         * doc/pastposix-functions/index.texi: Renamed from
42908         doc/posix-functions/index.texi.
42909         * doc/pastposix-functions/makecontext.texi: Renamed from
42910         doc/posix-functions/makecontext.texi.
42911         * doc/pastposix-functions/mktemp.texi: Renamed from
42912         doc/posix-functions/mktemp.texi.
42913         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42914         doc/posix-functions/pthread_attr_getstackaddr.texi.
42915         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42916         doc/posix-functions/pthread_attr_setstackaddr.texi.
42917         * doc/pastposix-functions/rindex.texi: Renamed from
42918         doc/posix-functions/rindex.texi.
42919         * doc/pastposix-functions/scalb.texi: Renamed from
42920         doc/posix-functions/scalb.texi.
42921         * doc/pastposix-functions/setcontext.texi: Renamed from
42922         doc/posix-functions/setcontext.texi.
42923         * doc/pastposix-functions/swapcontext.texi: Renamed from
42924         doc/posix-functions/swapcontext.texi.
42925         * doc/pastposix-functions/ualarm.texi: Renamed from
42926         doc/posix-functions/ualarm.texi.
42927         * doc/pastposix-functions/usleep.texi: Renamed from
42928         doc/posix-functions/usleep.texi.
42929         * doc/pastposix-functions/vfork.texi: Renamed from
42930         doc/posix-functions/vfork.texi.
42931         * doc/pastposix-functions/wcswcs.texi: Renamed from
42932         doc/posix-functions/wcswcs.texi.
42933         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42934         (Function Substitutes): Update.
42935
42936 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42937
42938         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42939         m4/strerror.m4.
42940
42941 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42942             Bruno Haible  <bruno@clisp.org>
42943
42944         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42945
42946 2008-12-13  Bruno Haible  <bruno@clisp.org>
42947
42948         * modules/strtoull (Depends-on): Remove unistd.
42949
42950 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42951
42952         * modules/strtoull (Depends-on): Add stdlib.
42953
42954 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42955
42956         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42957
42958 2008-12-10  Jim Meyering  <meyering@redhat.com>
42959
42960         gl_ASSERT: don't say assertions are disabled when they're not
42961         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42962         "checking whether to enable assertions... no", when they are in
42963         fact enabled.  This is solely a bug in the output of configure.
42964         In spite of saying "no", NDEBUG was not defined in that case.
42965         Also, as noted by Eric Blake, leave assertions enabled upon
42966         --enable-assert=INVALID.
42967
42968 2008-12-10  Bruno Haible  <bruno@clisp.org>
42969
42970         Change MODULES.html to refer to POSIX:2008 where possible.
42971         * MODULES.html.sh (POSIX2008_URL): New variable.
42972         (posix_headers): Remove sys/timeb, ucontext.
42973         (posix2001_headers): New variable.
42974         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42975         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42976         index, makecontext, mktemp, pthread_attr_getstackaddr,
42977         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42978         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42979         (posix2001_functions): New variable.
42980         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42981         otherwise.
42982
42983 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42984
42985         add missing include to parse-duration.c
42986         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42987         * modules/parse-duration (Depends-on): Add xalloc.
42988
42989         fix sed script reading maint.mk
42990         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42991         (syntax-check-rules): Use it.
42992
42993 2008-12-09  Bruno Haible  <bruno@clisp.org>
42994
42995         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42996         MacOS X 10.4/PowerPC.
42997         Reported by Simon Josefsson.
42998
42999 2008-12-08  Jim Meyering  <meyering@redhat.com>
43000
43001         work around mingw's lack of some S_IF definitions
43002         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43003         Reported by Simon Josefsson.
43004
43005 2008-12-08  Bruno Haible  <bruno@clisp.org>
43006
43007         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43008         applied to variables. Needed on MacOS X 10.4/PowerPC.
43009         Reported by Simon Josefsson.
43010
43011 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43012         and Eric Blake  <ebb9@byu.net>
43013
43014         assert: honor --enable-assert
43015         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43016         order to honor --enable-assert, rather than treating it as a
43017         synonym for --disable-assert.
43018
43019 2008-12-08  Jim Meyering  <meyering@redhat.com>
43020
43021         * lib/posixtm.c: Remove now-useless declaration of mktime.
43022
43023         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43024
43025 2008-12-07  Bruno Haible  <bruno@clisp.org>
43026
43027         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43028         test_once): Mark functions as static.
43029         * tests/test-tls.c (test_tls): Likewise.
43030
43031 2008-12-07  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43034         iconv_register_autodetect.
43035
43036 2008-12-07  Jim Meyering  <meyering@redhat.com>
43037
43038         posixtm.c: avoid a warning
43039         * lib/posixtm.c (posixtime): Don't initialize tm0.
43040         It's no longer needed to placate gcc4's -Wuninitialized,
43041         and the attempt to placate would elicit a new warning.
43042
43043         unicodeio.c: mark unused parameters
43044         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43045         (fallback_failure_callback): Likewise.
43046
43047 2008-12-07  Bruno Haible  <bruno@clisp.org>
43048
43049         * gnulib-tool (func_create_testdir): When building the tests
43050         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43051         Reported by Simon Josefsson.
43052
43053 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43054
43055         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43056
43057 2008-12-06  Bruno Haible  <bruno@clisp.org>
43058
43059         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43060         Suggested by Eric Blake.
43061
43062 2008-12-06  Bruno Haible  <bruno@clisp.org>
43063
43064         Fix a c-stack test failure on MacOS X.
43065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43066         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43067         handler for SIGBUS as well.
43068         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43069         install a signal handler for SIGBUS as well.
43070         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43071
43072 2008-12-06  Bruno Haible  <bruno@clisp.org>
43073
43074         Advocacy documentation.
43075         * doc/gnulib-intro.texi (Benefits): New section.
43076         * doc/gnulib.texi: Update.
43077
43078 2008-12-06  Bruno Haible  <bruno@clisp.org>
43079
43080         Document the 'manywarnings' module.
43081         * doc/manywarnings.texi: New file.
43082         * doc/gnulib.texi: Include it.
43083
43084 2008-12-05  Eric Blake  <ebb9@byu.net>
43085
43086         tests: silence some gcc warnings
43087         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43088         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43089         type mismatches.
43090
43091 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43092             Bruno Haible  <bruno@clisp.org>
43093
43094         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43095
43096 2008-11-29  Jim Meyering  <meyering@redhat.com>
43097
43098         unicodeio.c: mark unused parameters
43099         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43100         (fallback_failure_callback): Likewise.
43101
43102         fts: fix a thinko
43103         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43104         (set_stat_type): Return S_IF*-valued "type" directly.
43105         Prompted by James Youngman's spotting a related bug.
43106         Confirmed by further testing through find.
43107
43108         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43109         * lib/fts.c (D_TYPE): Define.
43110         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43111         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43112         (s_ifmt_shift_bits): New function.
43113         (set_stat_type): New function.
43114         (fts_build): When not calling fts_stat, call set_stat_type
43115         to propagate dirent.d_type info to fts_read caller.
43116         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43117         fts_statp->st_mode type information may be valid.
43118
43119 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43120
43121         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43122         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43123         <sds@gnu.org>.
43124
43125 2008-11-20  Bruno Haible  <bruno@clisp.org>
43126
43127         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43128         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43129         INCLUDE_NEXT.
43130         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43131         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43132         * modules/math (Makefile.am): Substitute
43133         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43134         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43135
43136 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43137             Bruno Haible  <bruno@clisp.org>
43138
43139         * lib/stdint.in.h: Define all type macros so that their expansion is
43140         a single typedef'ed token. Fixes a compilation failure in Boost which
43141         does "using ::int8_t;".
43142
43143 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43144
43145         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43146         gl_MANYWARN_ALL_GCC.
43147         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43148         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43149         * modules/manywarnings: New file.
43150         * MODULES.html.sh: Mention manywarnings module.
43151
43152 2008-11-18  Bruno Haible  <bruno@clisp.org>
43153
43154         * doc/gnulib-tool.texi (Unit tests): New section.
43155
43156 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43157
43158         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43159         paths like 'lib/po/foo.po'.
43160
43161 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43162
43163         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43164         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43165
43166 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43167
43168         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43169         parameter works.
43170
43171 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43172
43173         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43174
43175 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43176
43177         * modules/parse-duration-tests: New file.
43178         * tests/test-parse-duration.sh: New file.
43179         * tests/test-parse-duration.c: New file.
43180
43181         New module 'parse-duration'.
43182         * lib/parse-duration.h: New file.
43183         * lib/parse-duration.c: New file.
43184         * modules/parse-duration: New file.
43185
43186 2008-11-17  Bruno Haible  <bruno@clisp.org>
43187
43188         * tests/test-select-out.sh: Comment out the first pipe test.
43189         Reported by Simon Josefsson.
43190
43191 2008-11-17  Bruno Haible  <bruno@clisp.org>
43192
43193         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43194         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43195         gl_HOSTENT.
43196
43197 2008-11-17  Bruno Haible  <bruno@clisp.org>
43198
43199         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43200         -lnetwork and -lnet. Needed for Haiku and BeOS.
43201
43202 2008-11-16  Bruno Haible  <bruno@clisp.org>
43203
43204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43205
43206 2008-11-16  Bruno Haible  <bruno@clisp.org>
43207
43208         Avoid test failure on Haiku.
43209         * tests/test-fsync.c: Include <errno.h>.
43210         (main): Don't require that fsync (0) fails.
43211
43212 2008-11-15  Bruno Haible  <bruno@clisp.org>
43213
43214         New module 'hostent'.
43215         * modules/hostent: New file.
43216         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43217
43218 2008-11-15  Bruno Haible  <bruno@clisp.org>
43219
43220         New module 'servent'.
43221         * modules/servent: New file.
43222         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43223
43224 2008-11-15  Bruno Haible  <bruno@clisp.org>
43225
43226         Avoid generating same test program with two different rules.
43227         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43228         test-frexp to test-frexp-nolibm.
43229         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43230         test-frexpl to test-frexpl-nolibm.
43231
43232 2008-11-15  Bruno Haible  <bruno@clisp.org>
43233
43234         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43235         $(FREXPL_LIBM).
43236
43237 2008-11-15  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/netdb.in.h: Activate the definitions also when the system's
43240         <netdb.h> has 'struct addrinfo'.
43241         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43242         EAI_OVERFLOW or AI_NUMERICSERV.
43243         * doc/posix-headers/netdb.texi: Document the problem.
43244
43245 2008-11-15  Bruno Haible  <bruno@clisp.org>
43246
43247         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43248
43249         Make the 'sched' module work on platforms where <sched.h> exists but
43250         is incomplete (such as Haiku).
43251         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43252         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43253         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43254         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43255         HAVE_STRUCT_SCHED_PARAM.
43256         * modules/sched (Depends-on): Add include_next.
43257         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43258         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43259         * doc/posix-headers/sched.texi: Document the issue.
43260
43261 2008-11-13  Jim Meyering  <meyering@redhat.com>
43262
43263         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43264         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43265         test would fail due to the difference in the Report bugs to ...
43266         line.  The expected address is empty, "<>", while the actual
43267         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43268
43269 2008-11-12  Bruno Haible  <bruno@clisp.org>
43270
43271         lstat: don't compile lstat.c on systems lacking lstat
43272         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43273         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43274         Reported by Daniel P. Berrange via Jim Meyering.
43275
43276 2008-11-12  Jim Meyering  <meyering@redhat.com>
43277
43278         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43279
43280 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43281
43282         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43283         instead.
43284
43285 2008-11-12  Bruno Haible  <bruno@clisp.org>
43286
43287         * lib/unicodeio.c: Include unistr.h.
43288         (utf8_wctomb): Remove function.
43289         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43290
43291 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43292
43293         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43294         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43295         <bruno@clisp.org>.
43296         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43297
43298 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43299
43300         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43301         * doc/gnulib.texi: Add section for warnings.
43302
43303 2008-11-11  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/sockets.h: Add a comment.
43306
43307 2008-11-11  Karl Berry  <karl@gnu.org>
43308
43309         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43310
43311 2008-11-11  Eric Blake  <ebb9@byu.net>
43312
43313         fdl.texi: avoid git symlinks
43314         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43315
43316 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43317
43318         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43319
43320 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43321
43322         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43323         (gl_WARN_ADD): Substitute $2 if literal.
43324
43325 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43326
43327         * m4/warning.m4: Remove.
43328
43329 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43330
43331         * m4/warnings.m4: Almost complete rewrite. :-)
43332
43333 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43334
43335         * modules/warnings: New module.
43336         * m4/warnings.m4: New file.
43337         * MODULES.html.sh: Mention warnings module.
43338         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43339         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43340
43341 2008-11-10  Eric Blake  <ebb9@byu.net>
43342
43343         fdl.texi: make a symlink to the latest version
43344         * doc/standards.texi: Revert today's earlier change.
43345         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43346         * doc/fdl.texi: ...and replace this with a symlink to the newer
43347         fdl-1.3.texi.
43348
43349 2008-11-10  Bruno Haible  <bruno@clisp.org>
43350
43351         * tests/test-select-fd.c (main): Accept the result file name as fourth
43352         argument.
43353         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43354         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43355
43356 2008-11-10  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43359         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43360         as autoconf-substituted macros.
43361         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43363         gl_NETDB_H_DEFAULTS. Set these variables.
43364         * modules/netdb (Makefile.am): Substitute these variables.
43365
43366 2008-11-10  Eric Blake  <ebb9@byu.net>
43367
43368         standards.texi: include correct file for FDL 1.3
43369         * doc/standards.texi (GNU Free Documentation License): Change
43370         include file to pull in FDL 1.3, not 1.2.
43371
43372         fdl.texi: revert accidental change to license
43373         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43374
43375 2008-11-10  Bruno Haible  <bruno@clisp.org>
43376
43377         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43378         cross-compiling guesses also when the native compile gives no result.
43379
43380 2008-11-10  Bruno Haible  <bruno@clisp.org>
43381
43382         * lib/spawni.c (__spawni): Force variable into the stack.
43383
43384 2008-11-10  Bruno Haible  <bruno@clisp.org>
43385
43386         Add support for Haiku.
43387         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43388         glibc and BeOS, but also on Haiku.
43389         * lib/fpurge.c (fpurge): Likewise.
43390         * lib/freadable.c (freadable): Likewise.
43391         * lib/freadahead.c (freadahead): Likewise.
43392         * lib/freading.c (freading): Likewise.
43393         * lib/freadptr.c (freadptr): Likewise.
43394         * lib/freadseek.c (freadptrinc): Likewise.
43395         * lib/fseeko.c (rpl_fseeko): Likewise.
43396         * lib/fseterr.c (fseterr): Likewise.
43397         * lib/fwritable.c (fwritable): Likewise.
43398         * lib/fwriting.c (fwriting): Likewise.
43399         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43400
43401 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43402
43403         * lib/config.charset: Treat Haiku like BeOS.
43404
43405 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43406
43407         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43408         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43409
43410 2008-11-08  Bruno Haible  <bruno@clisp.org>
43411
43412         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43413         AC_CACHE_CHECK.
43414
43415 2008-11-08  Bruno Haible  <bruno@clisp.org>
43416
43417         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43418
43419 2008-11-08  Bruno Haible  <bruno@clisp.org>
43420
43421         * tests/test-select-fd.c: New file.
43422         * tests/test-select-in.sh: New file.
43423         * tests/test-select-out.sh: New file.
43424         * tests/test-select-stdin.c: New file.
43425         * modules/select-tests (Files): Add the new files.
43426         (Depends-on): Add gettimeofday.
43427         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43428         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43429         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43430
43431 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43432             Bruno Haible  <bruno@clisp.org>
43433
43434         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43435
43436 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43437
43438         * build-aux/pmccabe2html: Added support for C++ source files.
43439
43440 2008-11-05  Ben Pfaff  <blp@gnu.org>
43441
43442         Fix lib/close.c build on Windows.
43443         * modules/close (Files): Add lib/w32sock.h.
43444
43445 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43446
43447         Accept Bison's NEWS format.
43448         * build-aux/announce-gen (print_news_deltas): Tweak
43449         $re_prefix.
43450
43451 2008-11-04  Bruno Haible  <bruno@clisp.org>
43452
43453         * modules/random_r (Maintainer): Add glibc.
43454
43455 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43456
43457         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43458         by karl@freefriends.org (Karl Berry).
43459         * doc/alloca.texi: Likewise.
43460         * doc/c-ctype.texi: Likewise.
43461         * doc/c-strcase.texi: Likewise.
43462         * doc/c-strcaseeq.texi: Likewise.
43463         * doc/c-strcasestr.texi: Likewise.
43464         * doc/c-strstr.texi: Likewise.
43465         * doc/c-strtod.texi: Likewise.
43466         * doc/c-strtold.texi: Likewise.
43467         * doc/ctime.texi: Likewise.
43468         * doc/error.texi: Likewise.
43469         * doc/fdl.texi: Likewise.
43470         * doc/gcd.texi: Likewise.
43471         * doc/getdate.texi: Likewise.
43472         * doc/gnulib-intro.texi: Likewise.
43473         * doc/gnulib-tool.texi: Likewise.
43474         * doc/gnulib.texi: Likewise.
43475         * doc/inet_ntoa.texi: Likewise.
43476         * doc/maintain.texi: Likewise.
43477         * doc/make-stds.texi: Likewise.
43478         * doc/quote.texi: Likewise.
43479         * doc/regexprops-generic.texi: Likewise.
43480         * doc/standards.texi: Likewise.
43481         * doc/verify.texi: Likewise.
43482         * doc/visibility.texi: Likewise.
43483         * doc/gnulib.texi (GNU Free Documentation License): Include
43484         fdl-1.3.texi instead of fdl.texi.
43485
43486 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43487
43488         * doc/fdl-1.3.texi: New file, from
43489         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43490         * modules/fdl-1.3: Add.
43491         * MODULES.html.sh: Add fdl-1.3.
43492
43493 2008-11-03  Bruno Haible  <bruno@clisp.org>
43494
43495         Make determination of absolute name of header file work with AIX xlc.
43496         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43497         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43498         preprocessing.
43499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43500         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43501
43502 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43503
43504         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43505         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43506         <ludo@gnu.org>.
43507
43508 2008-11-02  Bruno Haible  <bruno@clisp.org>
43509
43510         Mark 'strpbrk' obsolete.
43511         * modules/strpbrk (Status, Notice): New sections.
43512         * modules/strtok_r (Depends-on): Add strpbrk.
43513
43514 2008-11-02  Bruno Haible  <bruno@clisp.org>
43515
43516         Mark 'strdup' obsolete.
43517         * modules/strdup (Status, Notice): New sections.
43518         * modules/findprog (Depends-on): Add strdup.
43519         * modules/getaddrinfo (Depends-on): Likewise.
43520         * modules/localename (Depends-on): Likewise.
43521         * modules/relocatable-lib (Depends-on): Likewise.
43522         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43523         * modules/relocatable-prog (Depends-on): Likewise.
43524         * modules/trim (Depends-on): Likewise.
43525         * modules/unictype/gen-ctype (Depends-on): Likewise.
43526         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43527
43528 2008-11-02  Bruno Haible  <bruno@clisp.org>
43529
43530         Mark 'strcspn' obsolete.
43531         * modules/strcspn (Status, Notice): New sections.
43532
43533 2008-11-02  Bruno Haible  <bruno@clisp.org>
43534
43535         Mark 'rmdir' obsolete.
43536         * modules/rmdir (Status, Notice): New sections.
43537         * modules/clean-temp (Depends-on): Add rmdir.
43538         * modules/openat (Depends-on): Likewise.
43539
43540 2008-11-02  Bruno Haible  <bruno@clisp.org>
43541
43542         Mark 'raise' obsolete.
43543         * modules/raise (Status, Notice): New sections.
43544         (Include): Specify <signal.h>.
43545         * modules/stdio (Depends-on): Add raise.
43546         * modules/write (Depends-on): Likewise.
43547
43548 2008-11-02  Bruno Haible  <bruno@clisp.org>
43549
43550         Mark 'memset' obsolete.
43551         * modules/memset (Status, Notice): New sections.
43552
43553 2008-11-02  Bruno Haible  <bruno@clisp.org>
43554
43555         Mark 'memmove' obsolete.
43556         * modules/memmove (Status, Notice): New sections.
43557         * modules/argp (Depends-on): Add memmove.
43558         * modules/argz (Depends-on): Likewise.
43559         * modules/canonicalize (Depends-on): Likewise.
43560         * modules/canonicalize-lgpl (Depends-on): Likewise.
43561         * modules/fts (Depends-on): Likewise.
43562         * modules/getcwd (Depends-on): Likewise.
43563         * modules/human (Depends-on): Likewise.
43564         * modules/regex (Depends-on): Likewise.
43565         * modules/striconveh (Depends-on): Likewise.
43566         * modules/trim (Depends-on): Likewise.
43567         * modules/unistr/u8-move (Depends-on): Likewise.
43568         * modules/unistr/u16-move (Depends-on): Likewise.
43569         * modules/unistr/u32-move (Depends-on): Likewise.
43570
43571 2008-11-02  Bruno Haible  <bruno@clisp.org>
43572
43573         Mark 'memcpy' obsolete.
43574         * modules/memcpy (Status, Notice): New sections.
43575
43576 2008-11-02  Bruno Haible  <bruno@clisp.org>
43577
43578         Mark 'memcmp' obsolete.
43579         * modules/memcmp (Status, Notice): New sections.
43580         * modules/argmatch (Depends-on): Add memchr.
43581         * modules/backupfile (Depends-on): Likewise.
43582         * modules/c-strcasestr (Depends-on): Likewise.
43583         * modules/crypto/des (Depends-on): Likewise.
43584         * modules/csharpcomp (Depends-on): Likewise.
43585         * modules/fnmatch (Depends-on): Likewise.
43586         * modules/git-merge-changelog (Depends-on): Likewise.
43587         * modules/isnand (Depends-on): Likewise.
43588         * modules/isnand-nolibm (Depends-on): Likewise.
43589         * modules/isnanf (Depends-on): Likewise.
43590         * modules/isnanf-nolibm (Depends-on): Likewise.
43591         * modules/isnanl (Depends-on): Likewise.
43592         * modules/isnanl-nolibm (Depends-on): Likewise.
43593         * modules/mbchar (Depends-on): Likewise.
43594         * modules/memcoll (Depends-on): Likewise.
43595         * modules/quotearg (Depends-on): Likewise.
43596         * modules/regex (Depends-on): Likewise.
43597         * modules/relocatable-prog (Depends-on): Likewise.
43598         * modules/same (Depends-on): Likewise.
43599         * modules/signbit (Depends-on): Likewise.
43600         * modules/strcasestr-simple (Depends-on): Likewise.
43601         * modules/unictype/gen-ctype (Depends-on): Likewise.
43602         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43603         * modules/uniname/uniname (Depends-on): Likewise.
43604         * modules/unistr/u8-cmp (Depends-on): Likewise.
43605
43606 2008-11-02  Bruno Haible  <bruno@clisp.org>
43607
43608         Mark 'memchr' obsolete.
43609         * modules/memchr (Status, Notice): New sections.
43610         * modules/argp (Depends-on): Add memchr.
43611         * modules/base64 (Depends-on): Likewise.
43612         * modules/c-strcasestr (Depends-on): Likewise.
43613         * modules/chdir-long (Depends-on): Likewise.
43614         * modules/fnmatch (Depends-on): Likewise.
43615         * modules/getsubopt (Depends-on): Likewise.
43616         * modules/git-merge-changelog (Depends-on): Likewise.
43617         * modules/glob (Depends-on): Likewise.
43618         * modules/strcasestr-simple (Depends-on): Likewise.
43619         * modules/strnlen (Depends-on): Likewise.
43620
43621 2008-11-02  Bruno Haible  <bruno@clisp.org>
43622
43623         Mark 'atexit' obsolete.
43624         * modules/atexit (Status, Notice): New sections.
43625         * modules/chdir-long (Depends-on): Add atexit.
43626         * modules/wait-process (Depends-on): Likewise.
43627
43628 2008-11-02  Bruno Haible  <bruno@clisp.org>
43629
43630         * gnulib-tool: New option --with-obsolete.
43631         (func_usage): Document it.
43632         (func_modules_transitive_closure): Drop obsolete dependencies if
43633         incobsolete is not true.
43634         (func_import): Read and save the incobsolete variable to the cache.
43635
43636 2008-11-02  Bruno Haible  <bruno@clisp.org>
43637
43638         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43639         * gnulib-tool: New option --extract-status.
43640         (func_usage): Document it.
43641         (sed_extract_prog): Recognize it.
43642         (func_get_status): New function.
43643
43644 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43645
43646         * modules/sockets (License): Change from LGPL to LGPLv2+.
43647
43648 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43649
43650         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43651
43652 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43653
43654         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43655         Mention times and sys_times.
43656         * modules/sys_times, modules/sys_times-tests: New modules.
43657         * modules/times, modules/times-tests: Likewise
43658         * m4/sys_times_h.m4: New file.
43659         * lib/sys_times.in.h: Likewise
43660         * lib/times.c: Likewise.
43661         * tests/test-sys_times.c: Likewise.
43662         * tests/test-times.c: Likewise.
43663         * doc/posix-headers/sys_times.texi: Update.
43664         * doc/posix-functions/times.texi: Update.
43665
43666 2008-10-28  Jim Meyering  <meyering@redhat.com>
43667
43668         * modules/tempname (Depends-on): Add lstat.
43669
43670         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43671
43672 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43673
43674         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43675         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43676         using idiom used elsewhere in gnulib.
43677
43678 2008-10-27  Jim Meyering  <meyering@redhat.com>
43679
43680         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43681
43682 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43683
43684         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43685         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43686         programs.
43687         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43688
43689 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43690
43691         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43692
43693 2008-10-27  Bruno Haible  <bruno@clisp.org>
43694
43695         * tests/test-lstat.c: Include <stdio.h>.
43696
43697 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43698
43699         * modules/lstat-tests: New module.
43700         * tests/test-lstat.c: New file.
43701
43702 2008-10-26  Jim Meyering  <meyering@redhat.com>
43703
43704         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43705
43706 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43707             Bruno Haible  <bruno@clisp.org>
43708
43709         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43710         * modules/configmake (Include): Add a note that the include must come
43711         after all system headers.
43712         * lib/javaversion.c: Include configmake.h after all other includes.
43713
43714 2008-10-26  Bruno Haible  <bruno@clisp.org>
43715
43716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43717         HAVE_STRUCT_RANDOM_DATA to 1.
43718         (gl_STDLIB_H): Simplify.
43719
43720 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43721
43722         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43723         substitute HAVE_STRUCT_RANDOM_DATA.
43724         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43725         random_data.
43726         * modules/stdlib (Makefile.am): Substitute
43727         HAVE_STRUCT_RANDOM_DATA.
43728
43729 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43730
43731         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43732         * doc/gnulib-intro.texi (Copyright): Likewise.
43733
43734 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43735
43736         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43737         findings.
43738
43739 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43740             Bruno Haible  <bruno@clisp.org>
43741
43742         * lib/unistd.in.h: Include <winsock2.h>.
43743         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43744         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43745         Provide dummy declarations.
43746         (gethostname): Override.
43747         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43748         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43749         gl_PREREQ_SYS_H_WINSOCK2.
43750         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43751         * doc/posix-functions/gethostname.texi: More details.
43752
43753 2008-10-25  Bruno Haible  <bruno@clisp.org>
43754
43755         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43756         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43757         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43758
43759         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43760         here ...
43761         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43762         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43763         gl_UNISTD_H_DEFAULTS.
43764
43765 2008-10-25  Eric Blake  <ebb9@byu.net>
43766
43767         signbit: avoid spurious compiler failure
43768         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43769         declarations inside function.
43770
43771 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43772             Bruno Haible  <bruno@clisp.org>
43773
43774         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43775         * modules/random_r (Depends-on): Add stdint.
43776
43777 2008-10-24  Bruno Haible  <bruno@clisp.org>
43778
43779         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43780         Eggert.
43781         * modules/strerror (License): Likewise.
43782
43783 2008-10-24  Jim Meyering  <meyering@redhat.com>
43784
43785         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43786         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43787
43788 2008-10-24  Eric Blake  <ebb9@byu.net>
43789
43790         getgroups: fix compilation when getgroups is available
43791         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43792         but with <config.h> override of getgroups disabled.
43793
43794 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43795
43796         * doc/gnulib.texi (Header files): Add note about C++ problems.
43797         Explained by Bruno Haible <bruno@clisp.org>.
43798
43799 2008-10-23  Bruno Haible  <bruno@clisp.org>
43800
43801         Define a dummy SA_NODEFER macro on Interix.
43802         * lib/signal.in.h (SA_NODEFER): Define fallback.
43803         Reported by Aleksey Cheusov <cheusov@tut.by> via
43804         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43805
43806 2008-10-23  Bruno Haible  <bruno@clisp.org>
43807
43808         * modules/freadahead (License): Change to LGPLv2+.
43809         Suggested by Simon Josefsson.
43810
43811 2008-10-23  Jim Meyering  <meyering@redhat.com>
43812
43813         random_r: new module
43814         * modules/random_r: New file.
43815         * m4/random_r.m4: New file.
43816         * lib/random_r.c: New file, from glibc.
43817         * modules/random_r-tests: New file.
43818         * tests/test-random_r.c: New file.
43819         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43820          Declare.
43821         (RAND_MAX): Define.
43822         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43823         * modules/stdlib: Substitute them, too.
43824         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43825         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43826         * doc/glibc-functions/random_r.texi: Likewise.
43827         * doc/glibc-functions/setstate_r.texi: Likewise.
43828         * doc/glibc-functions/srandom_r.texi: Likewise.
43829         * config/srclist.txt: Mention it.
43830
43831 2008-10-23  David Lutterkort  <lutter@redhat.com>
43832
43833         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43834         link requirement
43835
43836 2008-10-23  Jim Meyering  <meyering@redhat.com>
43837
43838         selinux-h: mark parameters of stub functions as intentionally unused
43839         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43840         * lib/se-context.in.h: Likewise.
43841
43842 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43843
43844         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43845
43846 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43847
43848         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43849
43850 2008-10-22  Eric Blake  <ebb9@byu.net>
43851
43852         glthread/thread: avoid compiler warning
43853         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43854         Add unreachable abort to silence compiler.
43855
43856 2008-10-22  Eric Blake  <ebb9@byu.net>
43857
43858         netdb: also supply struct addrinfo for cygwin 1.5.x
43859         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43860         older cygwin.
43861         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43862         cygwin.
43863         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43864
43865 2008-10-22  Bruno Haible  <bruno@clisp.org>
43866
43867         * users.txt: Update entry about pspp.
43868
43869 2008-10-21  Bruno Haible  <bruno@clisp.org>
43870
43871         Simplification.
43872         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43873         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43874
43875         Simplification.
43876         * lib/ioctl.c (ioctl): Don't undefine.
43877         * lib/socket.c (socket): Don't undefine.
43878
43879         Remove unused module indicator macros.
43880         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43881         GNULIB_$1 as a C macro.
43882
43883         * doc/posix-functions/close.texi: Undo last change.
43884         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43885         Windows platforms.
43886
43887 2008-10-21  Bruno Haible  <bruno@clisp.org>
43888
43889         Add gethostname() declaration to <unistd.h>.
43890         * lib/unistd.in.h (gethostname): New declaration.
43891         * lib/gethostname.c: Include <unistd.h>.
43892         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43893         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43895         and HAVE_GETHOSTNAME.
43896         * modules/gethostname (Depends-on): Add unistd.
43897         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43898         (Include): Specify <unistd.h>.
43899         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43900         HAVE_GETHOSTNAME.
43901         * tests/test-gethostname.c: Include <unistd.h> first.
43902
43903 2008-10-21  Bruno Haible  <bruno@clisp.org>
43904
43905         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43906         * modules/select-tests (Depends-on): Likewise.
43907         Reported by Simon Josefsson.
43908
43909 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43910
43911         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43912         * lib/accept.c: New file, based on winsock.c.
43913         * lib/bind.c: New file, based on winsock.c.
43914         * lib/connect.c: New file, based on winsock.c.
43915         * lib/getpeername.c: New file, based on winsock.c.
43916         * lib/getsockname.c: New file, based on winsock.c.
43917         * lib/getsockopt.c: New file, based on winsock.c.
43918         * lib/ioctl.c: New file, based on winsock.c.
43919         * lib/listen.c: New file, based on winsock.c.
43920         * lib/recv.c: New file, based on winsock.c.
43921         * lib/recvfrom.c: New file, based on winsock.c.
43922         * lib/send.c: New file, based on winsock.c.
43923         * lib/sendto.c: New file, based on winsock.c.
43924         * lib/setsockopt.c: New file, based on winsock.c.
43925         * lib/shutdown.c: New file, based on winsock.c.
43926         * lib/socket.c: New file, based on winsock.c.
43927         * lib/w32sock.h: New file, based on winsock.c.
43928         * lib/winsock.c: Remove file.
43929         * modules/accept: Likewise.
43930         * modules/bind: Likewise.
43931         * modules/connect: Likewise.
43932         * modules/getpeername: Likewise.
43933         * modules/getsockname: Likewise.
43934         * modules/getsockopt: Likewise.
43935         * modules/ioctl: Likewise.
43936         * modules/listen: Likewise.
43937         * modules/recv: Likewise.
43938         * modules/recvfrom: Likewise.
43939         * modules/send: Likewise.
43940         * modules/sendto: Likewise.
43941         * modules/setsockopt: Likewise.
43942         * modules/shutdown: Likewise.
43943         * modules/socket: Use socket.c instead of winsock.c.
43944         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43945         * doc/posix-functions/accept.texi: Doc fix.
43946         * doc/posix-functions/bind.texi: Doc fix.
43947         * doc/posix-functions/close.texi: Doc fix.
43948         * doc/posix-functions/connect.texi: Doc fix.
43949         * doc/posix-functions/getpeername.texi: Doc fix.
43950         * doc/posix-functions/getsockname.texi: Doc fix.
43951         * doc/posix-functions/getsockopt.texi: Doc fix.
43952         * doc/posix-functions/ioctl.texi: Doc fix.
43953         * doc/posix-functions/listen.texi: Doc fix.
43954         * doc/posix-functions/recv.texi: Doc fix.
43955         * doc/posix-functions/recvfrom.texi: Doc fix.
43956         * doc/posix-functions/send.texi: Doc fix.
43957         * doc/posix-functions/sendto.texi: Doc fix.
43958         * doc/posix-functions/setsockopt.texi: Doc fix.
43959         * doc/posix-functions/shutdown.texi: Doc fix.
43960         * doc/posix-functions/socket.texi: Doc fix.
43961
43962 2008-10-20  Bruno Haible  <bruno@clisp.org>
43963
43964         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43965         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43966         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43967         as an alias for SIGABRT.
43968         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43969         (sigaction): Map it to SIGABRT.
43970         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43971
43972 2008-10-20  Bruno Haible  <bruno@clisp.org>
43973
43974         * lib/fts.c: Don't include lstat.h.
43975         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43976
43977         Move the lstat() declaration to <sys/stat.h>.
43978         * lib/lstat.h: Remove file.
43979         * lib/sys_stat.in.h: Add special invocation convention.
43980         (lstat): New declaration.
43981         * lib/lstat.c (orig_lstat): New function.
43982         (rpl_lstat): Use orig_lstat instead of lstat.
43983         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43984         AC_C_INLINE. Set REPLACE_LSTAT.
43985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43986         and REPLACE_LSTAT.
43987         * modules/lstat (Files): Remove lib/lstat.h.
43988         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43989         (Include): Specify <sys/stat.h> instead of lstat.h.
43990         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43991         REPLACE_LSTAT.
43992         * NEWS: Mention the change.
43993
43994 2008-10-20  Bruno Haible  <bruno@clisp.org>
43995
43996         * modules/posix_spawn-tests: New file.
43997         * tests/test-posix_spawn3.c: New file.
43998
43999 2008-10-20  Bruno Haible  <bruno@clisp.org>
44000
44001         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44002         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44003         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44004         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44005         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44006
44007 2008-10-20  Bruno Haible  <bruno@clisp.org>
44008
44009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44010         of posix_spawn on AIX 5.3.
44011
44012 2008-10-20  Bruno Haible  <bruno@clisp.org>
44013
44014         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44015
44016 2008-10-20  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44019         of AC_LANG_PROGRAM.
44020
44021 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44022
44023         * lib/netdb.in.h: Don't define GNU specific constants until they
44024         are supported or needed.  Reported by Bruno Haible
44025         <bruno@clisp.org>.
44026
44027 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44028
44029         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44030
44031 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44032
44033         * lib/getaddrinfo.h: Remove file.
44034         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44035         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44036         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44037         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44038         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44039         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44040         * tests/test-getaddrinfo.c: Likewise.
44041         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44042         * NEWS: Mention change.
44043
44044 2008-10-19  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44047
44048 2008-10-19  Bruno Haible  <bruno@clisp.org>
44049
44050         * lib/wait-process.c: Include simply <sys/wait.h>.
44051         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44052         WIFSTOPPED): Remove fallback definitions.
44053         * modules/wait-process (Depends-on): Add sys_wait.
44054
44055         New module 'sys_wait'.
44056         * modules/sys_wait: New file.
44057         * lib/sys_wait.in.h: New file, partially copied from
44058         lib/wait-process.c.
44059         * m4/sys_wait_h.m4: New file.
44060         * doc/posix-headers/sys_wait.texi: Mention the new module.
44061
44062 2008-10-19  Bruno Haible  <bruno@clisp.org>
44063
44064         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44065
44066 2008-10-19  Bruno Haible  <bruno@clisp.org>
44067
44068         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44069         * lib/wait-process.c (WAIT_T): Remove type.
44070         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44071         (wait_subprocess): Update.
44072
44073 2008-10-19  Bruno Haible  <bruno@clisp.org>
44074
44075         New module 'atoll'.
44076         * modules/atoll: New file.
44077         * lib/stdlib.in.h (atoll): New declaration.
44078         * lib/atoll.c: New file, from glibc with modifications.
44079         * m4/atoll.m4: New file.
44080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44081         HAVE_ATOLL.
44082         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44083         * doc/posix-functions/atoll.texi: Mention the new module.
44084
44085 2008-10-19  Bruno Haible  <bruno@clisp.org>
44086
44087         Add strtoull() declaration to <stdlib.h>.
44088         * lib/stdlib.in.h (strtoull): New declaration.
44089         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44090         Set HAVE_STRTOULL.
44091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44092         HAVE_STRTOULL.
44093         * modules/strtoull (Depends-on): Add stdlib.
44094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44095         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44096         HAVE_STRTOULL.
44097
44098 2008-10-19  Bruno Haible  <bruno@clisp.org>
44099
44100         Add strtoll() declaration to <stdlib.h>.
44101         * lib/stdlib.in.h (strtoll): New declaration.
44102         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44103         Set HAVE_STRTOLL.
44104         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44105         HAVE_STRTOLL.
44106         * modules/strtoll (Depends-on): Add stdlib.
44107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44108         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44109
44110 2008-10-19  Bruno Haible  <bruno@clisp.org>
44111
44112         * modules/bcopy (Depends-on): Add strings.
44113         (Include): Specify <strings.h>.
44114
44115 2008-10-19  Bruno Haible  <bruno@clisp.org>
44116
44117         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44118
44119 2008-10-19  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44122         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44123         mingw.
44124
44125 2008-10-19  Bruno Haible  <bruno@clisp.org>
44126
44127         * lib/atanl.c: Don't include isnanl.h.
44128         * lib/cosl.c: Likewise.
44129         * lib/ldexpl.c: Likewise.
44130         * lib/logl.c: Likewise.
44131         * lib/sinl.c: Likewise.
44132         * lib/sqrtl.c: Likewise.
44133         * lib/tanl.c: Likewise.
44134
44135         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44136         * lib/isnanf.h: Remove file.
44137         * lib/isnand.h: Remove file.
44138         * lib/isnanl.h: Remove file.
44139         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44140         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44141         macros.
44142         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44143         HAVE_ISNANF, don't define it as a C macro.
44144         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44145         HAVE_ISNAND, don't define it as a C macro.
44146         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44147         HAVE_ISNANL, don't define it as a C macro.
44148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44149         HAVE_ISNAN[FDL].
44150         * modules/isnanf (Files): Remove lib/isnanf.h.
44151         (Depends-on): Add math.
44152         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44153         (Include): Specify <math.h> instead of isnanf.h.
44154         * modules/isnand (Files): Remove lib/isnand.h.
44155         (Depends-on): Add math.
44156         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44157         (Include): Specify <math.h> instead of isnand.h.
44158         * modules/isnanl (Files): Remove lib/isnanl.h.
44159         (Depends-on): Add math.
44160         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44161         (Include): Specify <math.h> instead of isnanl.h.
44162         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44163         HAVE_ISNAN[FDL].
44164         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44165         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44166         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44167         * NEWS: Mention the change.
44168
44169 2008-10-18  Bruno Haible  <bruno@clisp.org>
44170
44171         Add getusershell(), setusershell(), endusershell() declarations to
44172         <unistd.h>.
44173         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44174         declarations.
44175         * lib/getusershell.c: Include unistd.h.
44176         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44177         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44178         HAVE_GETUSERSHELL.
44179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44180         and HAVE_GETUSERSHELL.
44181         * modules/getusershell (Depends-on): Add unistd, extensions.
44182         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44183         (Include): Specify <unistd.h>.
44184         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44185         HAVE_GETUSERSHELL.
44186
44187 2008-10-18  Bruno Haible  <bruno@clisp.org>
44188
44189         Add a getloadavg() declaration to <stdlib.h>.
44190         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44191         getloadavg declaration.
44192         (getloadavg): New declaration.
44193         * lib/getloadavg.c: Include <stdlib.h> first.
44194         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44195         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44196         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44198         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44199         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44201         (Include): Specify <stdlib.h>.
44202         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44203         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44204
44205 2008-10-18  Bruno Haible  <bruno@clisp.org>
44206
44207         * lib/dirchownmod.c: Don't include lchmod.h.
44208
44209         Move the lchmod() declaration to <sys/stat.h>.
44210         * lib/lchmod.h: Remove file.
44211         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44212         (lchmod): New declaration, moved here from lib/lchown.h.
44213         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44214         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44216         and HAVE_LCHMOD.
44217         * modules/lchmod (Files): Remove lib/lchmod.h.
44218         (Depends-on): Add sys_stat, extensions.
44219         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44220         (Include): Specify <sys/stat.h> instead of lchmod.h.
44221         * modules/sys_stat (Depends-on): Add link-warning.
44222         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44223         definition of GL_LINK_WARNING.
44224         * NEWS: Mention the change.
44225
44226 2008-10-18  Bruno Haible  <bruno@clisp.org>
44227
44228         * lib/fchdir.c: Don't include dirfd.h.
44229         * lib/fts.c: Likewise.
44230         * lib/getcwd.c: Likewise.
44231         * lib/glob.c: Likewise.
44232
44233         Move the dirfd() declaration to <dirent.h>.
44234         * lib/dirfd.h: Remove file.
44235         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44236         (dirfd): New declaration.
44237         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44238         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44239         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44240         HAVE_DECL_DIRFD.
44241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44242         HAVE_DECL_DIRFD.
44243         * modules/dirfd (Files): Remove lib/dirfd.h.
44244         (Depends-on): Add dirent, extensions.
44245         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44246         (Include): Specify <dirent.h> instead of dirfd.h.
44247         * modules/dirent (Depends-on): Add link-warning.
44248         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44249         definition of GL_LINK_WARNING.
44250         * NEWS: Mention the change.
44251
44252 2008-10-18  Bruno Haible  <bruno@clisp.org>
44253
44254         Move the euidaccess() declaration to <unistd.h>.
44255         * lib/euidaccess.h: Remove file.
44256         * lib/unistd.in.h (euidaccess): New declaration.
44257         * lib/euidaccess.c: Don't include euidaccess.h.
44258         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44259         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44261         and HAVE_EUIDACCESS.
44262         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44263         (Depends-on): Add unistd.
44264         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44265         (Include): Specify <unistd.h> instead of euidaccess.h.
44266         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44267         HAVE_EUIDACCESS.
44268         * NEWS: Mention the change.
44269
44270 2008-10-18  Bruno Haible  <bruno@clisp.org>
44271
44272         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44273
44274         Move the getdomainname() declaration to <unistd.h>.
44275         * lib/getdomainname.h: Remove file.
44276         * lib/unistd.in.h (getdomainname): New declaration.
44277         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44278         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44279         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44280         HAVE_GETDOMAINNAME.
44281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44282         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44283         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44284         (Depends-on): Add unistd, extensions.
44285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44286         (Includes): Specify <unistd.h> instead of getdomainname.h.
44287         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44288         HAVE_GETDOMAINNAME.
44289         * NEWS: Mention the change.
44290
44291 2008-10-18  Bruno Haible  <bruno@clisp.org>
44292
44293         * modules/dirent: New file.
44294         * m4/dirent_h.m4: New file.
44295         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44296         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44297         * modules/fchdir (Files): Remove lib/dirent.in.h.
44298         (Depends-on): Add dirent.
44299         (Makefile.am): Move rules to modules/dirent.
44300         * doc/posix-headers/dirent.texi: Mention the new module.
44301
44302 2008-10-18  Bruno Haible  <bruno@clisp.org>
44303
44304         Avoid -Wunused-parameter warnings in public gnulib header files.
44305         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44306         macro.
44307         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44308
44309 2008-10-18  Bruno Haible  <bruno@clisp.org>
44310
44311         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44312         * doc/glibc-functions/error.texi: Mention the module 'error'.
44313         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44314         * doc/glibc-functions/getdomainname.texi: Mention the module
44315         'getdomainname'.
44316         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44317         * doc/glibc-functions/getpagesize.texi: Mention the module
44318         'getpagesize'.
44319         * doc/glibc-functions/getusershell.texi: Mention the module
44320         'getusershell'.
44321         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44322         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44323         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44324         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44325         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44326         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44327         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44328         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44329         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44330         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44331         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44332         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44333         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44334         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44335
44336 2008-10-17  Bruno Haible  <bruno@clisp.org>
44337
44338         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44339         HP-UX and IRIX, use -0.0L.
44340         * tests/test-ceill.c (minus_zero): Likewise.
44341         * tests/test-floorl.c (minus_zero): Likewise.
44342         * tests/test-frexpl.c (minus_zero): Likewise.
44343         * tests/test-isnan.c (minus_zerol): Likewise.
44344         * tests/test-isnanl.h (minus_zero): Likewise.
44345         * tests/test-ldexpl.c (minus_zero): Likewise.
44346         * tests/test-roundl.c (minus_zero): Likewise.
44347         * tests/test-signbit.c (minus_zerol): Likewise.
44348         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44349         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44350         * tests/test-truncl.c (minus_zero): Likewise.
44351         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44352         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44353         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44354         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44355
44356 2008-10-17  Bruno Haible  <bruno@clisp.org>
44357
44358         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44359         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44360         that it gets activated only for gcc >= 3.0.
44361         * lib/dirent.in.h: Likewise.
44362         * lib/errno.in.h: Likewise.
44363         * lib/fcntl.in.h: Likewise.
44364         * lib/float.in.h: Likewise.
44365         * lib/iconv.in.h: Likewise.
44366         * lib/inttypes.in.h: Likewise.
44367         * lib/locale.in.h: Likewise.
44368         * lib/math.in.h: Likewise.
44369         * lib/netdb.in.h: Likewise.
44370         * lib/netinet_in.in.h: Likewise.
44371         * lib/search.in.h: Likewise.
44372         * lib/signal.in.h: Likewise.
44373         * lib/spawn.in.h: Likewise.
44374         * lib/stdarg.in.h: Likewise.
44375         * lib/stdint.in.h: Likewise.
44376         * lib/stdio.in.h: Likewise.
44377         * lib/stdlib.in.h: Likewise.
44378         * lib/string.in.h: Likewise.
44379         * lib/strings.in.h: Likewise.
44380         * lib/sys_file.in.h: Likewise.
44381         * lib/sys_ioctl.in.h: Likewise.
44382         * lib/sys_select.in.h: Likewise.
44383         * lib/sys_socket.in.h: Likewise.
44384         * lib/sys_stat.in.h: Likewise.
44385         * lib/sys_time.in.h: Likewise.
44386         * lib/sysexits.in.h: Likewise.
44387         * lib/time.in.h: Likewise.
44388         * lib/unistd.in.h: Likewise.
44389         * lib/wchar.in.h: Likewise.
44390         * lib/wctype.in.h: Likewise.
44391         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44392
44393 2008-10-17  Jim Meyering  <meyering@redhat.com>
44394
44395         ignore-value: don't depend on inline module
44396         * modules/ignore-value (Depends-on): Remove 'inline'.
44397         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44398         Suggestion from Bruno Haible.
44399
44400 2008-10-17  Bruno Haible  <bruno@clisp.org>
44401
44402         New implementation of condition variables for Win32.
44403         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44404         (gl_linked_waitqueue_t): New type.
44405         (gl_cond_t): Use it.
44406         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44407         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44408         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44409         (glthread_cond_init_func, glthread_cond_wait_func,
44410         glthread_cond_timedwait_func, glthread_cond_signal_func,
44411         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44412         Reimplemented on the basis of gl_linked_waitqueue_t.
44413         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44414         gl_waitqueue_t.
44415         (gl_rwlock_t): Update.
44416         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44417
44418 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44419
44420         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44421         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44422
44423 2008-10-17  Jim Meyering  <meyering@redhat.com>
44424
44425         ignore-value: new module
44426         * modules/ignore-value: New file.
44427         * lib/ignore-value.h: New file.
44428         * MODULES.html.sh (Compiler warning management): New section,
44429         just for this module.  More to come.
44430
44431 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44432
44433         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44434         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44435         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44436
44437 2008-10-16  Jim Meyering  <meyering@redhat.com>
44438
44439         openat-die.c: avoid 'no previous prototype' warning
44440         * lib/openat-die.c: Include "openat.h".
44441         Reported by Reuben Thomas <rrt@sc3d.org>.
44442
44443 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44444
44445         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44446         * lib/netdb.in.h: Fix typo.
44447         Reported by Bruno Haible  <bruno@clisp.org>
44448
44449         * lib/netdb.in.h: Include sys/socket.h for platforms without
44450         netdb.h, to get structures like hostent on MinGW.
44451         * modules/netdb (Depends-on): Add sys_socket.
44452
44453 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44454
44455         * modules/netdb, modules/netdb-tests: New file.
44456         * m4/netdb_h.m4: New file.
44457         * lib/netdb.in.h: Add, currently just an empty file pending
44458         definitions.
44459         * tests/test-netdb.c: New file.
44460         * doc/posix-headers/netdb.texi: Mention that we replace it if
44461         needed.
44462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44463         netdb.
44464
44465 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44466
44467         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44468         with code.
44469
44470 2008-10-13  Bruno Haible  <bruno@clisp.org>
44471
44472         * lib/glthread/cond.c (glthread_cond_wait_func,
44473         glthread_cond_timedwait_func): Add a comment.
44474
44475 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44476
44477         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44478         * tests/test-select.c: Likewise,
44479
44480 2008-10-13  Bruno Haible  <bruno@clisp.org>
44481
44482         * lib/glthread/cond.c (glthread_cond_wait_func,
44483         glthread_cond_timedwait_func): Fix variable name.
44484         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44485
44486 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44487
44488         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44490         struct sockaddr.sa_len.
44491         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44492
44493 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44494
44495         * build-aux/pmccabe2html: Add css and css_url parameters.
44496
44497 2008-10-12  Bruno Haible  <bruno@clisp.org>
44498
44499         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44500         calling aclx_get.
44501         Reported by Rainer Tammer <tammer@tammer.net>.
44502
44503 2008-10-12  Bruno Haible  <bruno@clisp.org>
44504
44505         Use msvcrt aware primitives for creation/termination of Win32 threads.
44506         * lib/glthread/thread.c: Include <process.h>.
44507         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44508         (wrapper_func): Update signature.
44509         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44510
44511 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44512             Bruno Haible  <bruno@clisp.org>
44513
44514         Provide a Win32 implementation of the 'cond' module.
44515         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44516         * lib/glthread/cond.c (glthread_cond_init_func,
44517         glthread_cond_wait_func, glthread_cond_timedwait_func,
44518         glthread_cond_signal_func, glthread_cond_broadcast_func,
44519         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44520         * modules/cond (Dependencies): Add gettimeofday.
44521
44522 2008-10-11  Bruno Haible  <bruno@clisp.org>
44523
44524         Make sleep work on older versions of mingw.
44525         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44526         only whether it exists.
44527         * doc/posix-functions/sleep.texi: Mention the problem with older
44528         versions of mingw.
44529
44530 2008-10-11  Bruno Haible  <bruno@clisp.org>
44531
44532         New module 'shutdown'.
44533         * modules/shutdown: New file.
44534         * lib/sys_socket.in.h (shutdown): New declaration.
44535         * lib/winsock.c (shutdown): New function.
44536         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44537         GNULIB_SHUTDOWN.
44538         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44539         * doc/posix-functions/shutdown.texi: Document the new module.
44540
44541 2008-10-11  Jim Meyering  <meyering@redhat.com>
44542
44543         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44544
44545 2008-10-11  Bruno Haible  <bruno@clisp.org>
44546
44547         New module 'fclose'.
44548         * modules/fclose: New file.
44549         * lib/stdio.in.h (fclose): New declaration.
44550         * lib/fclose.c: New file.
44551         * m4/fclose.m4: New file.
44552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44553         REPLACE_FCLOSE.
44554         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44555         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44556         REPLACE_FCLOSE.
44557         * modules/close (Depends-on): fclose.
44558         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44559
44560 2008-10-11  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44563         set errno and don't call _close.
44564
44565 2008-10-10  Bruno Haible  <bruno@clisp.org>
44566
44567         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44568         ACL, not afterwards. Fixes test failure on Cygwin.
44569
44570 2008-10-09  Ben Pfaff  <blp@gnu.org>
44571
44572         * build-aux/announce-gen: Fix gnulib version related part of usage
44573         message.  Die with a useful error message if no tarballs are
44574         found.
44575
44576 2008-10-10  Jim Meyering  <meyering@redhat.com>
44577
44578         bootstrap: use git's --depth=N option only if it's supported
44579         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44580         recognize the --depth option.  Reported by Pádraig Brady.
44581
44582 2008-10-09  Bruno Haible  <bruno@clisp.org>
44583
44584         New module 'ioctl'.
44585         * modules/ioctl: New file.
44586         * lib/sys_socket.in.h (ioctl): Remove declaration.
44587         * lib/winsock.c: Include <sys/ioctl.h>.
44588         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44589         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44590         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44591         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44592         * doc/posix-functions/ioctl.texi: Mention the new module.
44593
44594 2008-10-09  Bruno Haible  <bruno@clisp.org>
44595
44596         New module 'sys_ioctl'.
44597         * lib/sys_ioctl.in.h: New file.
44598         * m4/sys_ioctl_h.m4: New file.
44599         * modules/sys_ioctl: New file.
44600         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44601
44602 2008-10-09  Bruno Haible  <bruno@clisp.org>
44603
44604         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44605         * lib/winsock.c: Include <stdarg.h>.
44606         (rpl_ioctl): Change to second argument 'int' and then varargs.
44607
44608 2008-10-09  Bruno Haible  <bruno@clisp.org>
44609
44610         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44611         when the sys_socket module is present and the system has <winsock2.h>.
44612
44613 2008-10-09  Bruno Haible  <bruno@clisp.org>
44614
44615         * doc/posix-functions/close.texi: Mention module 'close' instead of
44616         module 'sys_socket'.
44617
44618 2008-10-09  Bruno Haible  <bruno@clisp.org>
44619
44620         * doc/glibc-headers/sys_ioctl.texi: New file.
44621         * doc/gnulib.texi: Include it.
44622
44623 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44624             Bruno Haible  <bruno@clisp.org>
44625
44626         Combine the two replacements of 'close'.
44627         * lib/sys_socket.in.h (close): Define to a reminder to include
44628         <unistd.h>.
44629         (_gl_close_fd_maybe_socket): New declaration.
44630         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44631         * lib/winsock.c (close): Remove undefinition.
44632         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44633         needed for the gnulib module 'close'.
44634         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44635         define to an error symbol or to a warning, if suitable.
44636         * lib/close.c: Include <sys/socket.h>.
44637         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44638         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44639         UNISTD_H_HAVE_WINSOCK2_H.
44640         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44642         UNISTD_H_HAVE_WINSOCK2_H.
44643         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44644         (configure.ac): Set a module indicator.
44645         (Makefile.am): Substitute GNULIB_CLOSE.
44646         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44647         * modules/poll-tests (Depends-on): Add close.
44648         * modules/select-tests (Depends-on): Likewise.
44649
44650 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44651             Bruno Haible  <bruno@clisp.org>
44652
44653         New module 'close'.
44654         * modules/close: New file.
44655         * lib/unistd.in.h (close): Move declaration out of the
44656         FCHDIR_REPLACEMENT scope.
44657         (_gl_unregister_fd): New declaration.
44658         * lib/close.c: New file.
44659         * lib/fchdir.c (rpl_close): Remove function.
44660         * m4/close.m4: New file.
44661         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44662         close.
44663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44664         REPLACE_CLOSE.
44665         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44666         REPLACE_CLOSE.
44667         * modules/fchdir (Depends-on): Add close.
44668
44669 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44670             Bruno Haible  <bruno@clisp.org>
44671
44672         * lib/fcntl.in.h (open): Simplify conditionals.
44673         (_gl_register_fd): New declaration.
44674         * lib/fchdir.c (rpl_open): Remove function.
44675         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44676         also.
44677         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44678         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44679         open.
44680
44681 2008-10-09  Jim Meyering  <meyering@redhat.com>
44682
44683         GNUmakefile: use the more name-space-friendly "_version"
44684         * top/GNUmakefile (_dummy): Update.
44685         (_version): Rename from "version".
44686
44687 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44688             Bruno Haible  <bruno@clisp.org>
44689
44690         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44691         rpl_close.
44692         (_gl_register_fd): New function, extracted from rpl_open.
44693         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44694         (rpl_open, rpl_opendir): Use _gl_register_fd.
44695
44696 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44697
44698         Fix organization of 'open' replacement.
44699         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44700         (gl_FUNC_OPEN): Use it.
44701         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44702
44703 2008-10-08  Bruno Haible  <bruno@clisp.org>
44704
44705         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44706
44707 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44708
44709         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44710         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44711         listen).
44712
44713 2008-10-08  Eric Blake  <ebb9@byu.net>
44714
44715         GNUmakefile: add 'make version' target
44716         * top/GNUmakefile (_curr-ver): Split version update rules...
44717         (version): ...into a target.
44718
44719 2008-10-07  Bruno Haible  <bruno@clisp.org>
44720
44721         Use a more portable replacement expression for -0.0L.
44722         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44723         instead of -0.0L. Fix m4 quotation.
44724
44725         * tests/test-signbit.c: Include <float.h>.
44726         (minus_zero): New variable.
44727         (test_signbitl): Use minus_zero instead of -zero.
44728         * modules/signbit-tests (Depends-on): Add float.
44729
44730         * tests/test-ceill.c: Include <float.h>.
44731         (zero): Remove variable.
44732         (minus_zero): New variable.
44733         (main): Use minus_zero instead of -zero.
44734         * modules/ceill-tests (Depends-on): Add float.
44735
44736         * tests/test-floorl.c: Include <float.h>.
44737         (zero): Remove variable.
44738         (minus_zero): New variable.
44739         (main): Use minus_zero instead of -zero.
44740         * modules/floorl-tests (Depends-on): Add float.
44741
44742         * tests/test-roundl.c: Include <float.h>.
44743         (zero): Remove variable.
44744         (minus_zero): New variable.
44745         (main): Use minus_zero instead of -zero.
44746         * modules/roundl-tests (Depends-on): Add float.
44747
44748         * tests/test-truncl.c: Include <float.h>.
44749         (zero): Remove variable.
44750         (minus_zero): New variable.
44751         (main): Use minus_zero instead of -zero.
44752         * modules/truncl-tests (Depends-on): Add float.
44753
44754         * tests/test-frexpl.c (zero): Remove variable.
44755         (minus_zero): New variable.
44756         (main): Use minus_zero instead of -zero.
44757         * modules/frexpl-tests (Depends-on): Add float.
44758
44759         * tests/test-isnan.c (zerol): Remove variable.
44760         (minus_zerol): New variable.
44761         (test_long_double): Use minus_zerol instead of -zerol.
44762         * modules/isnan-tests (Depends-on): Add float.
44763
44764         * tests/test-isnanl.h (zero): Remove variable.
44765         (minus_zero): New variable.
44766         (main): Use minus_zero instead of -zero.
44767         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44768         * modules/isnanl-tests (Depends-on): Add float.
44769
44770         * tests/test-ldexpl.c (zero): Remove variable.
44771         (minus_zero): New variable.
44772         (main): Use minus_zero instead of -zero.
44773         * modules/ldexpl-tests (Depends-on): Add float.
44774
44775         * tests/test-snprintf-posix.h (zerol): Remove variable.
44776         (minus_zerol): New variable.
44777         (test_function): Use minus_zerol instead of -zerol.
44778         * modules/snprintf-posix-tests (Depends-on): Add float.
44779         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44780
44781         * tests/test-sprintf-posix.h (zerol): Remove variable.
44782         (minus_zerol): New variable.
44783         (test_function): Use minus_zerol instead of -zerol.
44784         * modules/sprintf-posix-tests (Depends-on): Add float.
44785         * modules/vsprintf-posix-tests (Depends-on): Add float.
44786
44787         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44788         (minus_zerol): New variable.
44789         (test_function): Use minus_zerol instead of -zerol.
44790         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44791
44792         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44793         (minus_zerol): New variable.
44794         (test_function): Use minus_zerol instead of -zerol.
44795         * modules/vasprintf-posix-tests (Depends-on): Add float.
44796
44797 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44798
44799         * MODULES.html.sh (Support for building documentation): Mention
44800         pmccabe2html.  Sort entries.
44801
44802         Add pmccabe2html module, from gnupdf.
44803         * build-aux/pmccabe.css: New file.
44804         * build-aux/pmccabe2html: New file.
44805         * m4/pmccabe2html.m4: New file.
44806         * modules/pmccabe2html: New file.
44807
44808 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44809
44810         flock: new module
44811         * MODULES.html.sh: Add to list of modules.
44812         * lib/flock.c: flock implementation for Windows and Unix systems
44813         which have fcntl.
44814         * doc/glibc-functions/flock.texi: Update documentation.
44815         * lib/sys_file.in.h: <sys/file.h> header file.
44816         * m4/flock.m4: M4 macros.
44817         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44818         * modules/flock: flock module.
44819         * modules/flock-tests: flock tests module.
44820         * modules/sys_file: sys/file.h module.
44821         * tests/test-flock.c: test suite for flock.
44822
44823 2008-10-06  Jim Meyering  <meyering@redhat.com>
44824
44825         bootstrap: check for LT_INIT more portably still ;-)
44826         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44827         Spotted by Bruno Haible.
44828
44829 2008-10-06  Eric Blake  <ebb9@byu.net>
44830
44831         test-signbit: avoid tripping Irix cc bug on -0.0L
44832         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44833         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44834         entire testsuite consistent and avoids an Irix 6.2 bug.
44835
44836 2008-10-05  Bruno Haible  <bruno@clisp.org>
44837             Jim Meyering  <jim@meyering.net>
44838
44839         Add an option for ignoring EPIPE during close_stdout.
44840         * lib/closeout.h: Include <stdbool.h>.
44841         (close_stdout_set_ignore_EPIPE): New declaration.
44842         * lib/closeout.c: Include <stdbool.h>.
44843         (ignore_EPIPE): New variable.
44844         (close_stdout_set_ignore_EPIPE): New function.
44845         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44846         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44847         failure.
44848         * modules/closeout (Depends-on): Add stdbool.
44849
44850 2008-10-05  Bruno Haible  <bruno@clisp.org>
44851
44852         * modules/accept: New file.
44853         * modules/bind: New file.
44854         * modules/connect: New file.
44855         * modules/getpeername: New file.
44856         * modules/getsockname: New file.
44857         * modules/getsockopt: New file.
44858         * modules/listen: New file.
44859         * modules/recv: New file.
44860         * modules/recvfrom: New file.
44861         * modules/send: New file.
44862         * modules/sendto: New file.
44863         * modules/setsockopt: New file.
44864         * modules/socket: New file.
44865         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44866         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44867         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44868         the particular module is requested. Add a link warning when the
44869         particular module is not requested.
44870         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44871         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44872         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44873         the particular module is requested.
44874         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44875         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44876         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44877         * modules/sys_socket (Depends-on): Add link-warning.
44878         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44879         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44880         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44881         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44882         GL_LINK_WARNING.
44883         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44884         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44885         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44886         * doc/posix-functions/getpeername.texi: Mention the new module
44887         'getpeername'.
44888         * doc/posix-functions/getsockname.texi: Mention the new module
44889         'getsockname'.
44890         * doc/posix-functions/getsockopt.texi: Mention the new module
44891         'getsockopt'.
44892         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44893         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44894         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44895         * doc/posix-functions/send.texi: Mention the new module 'send'.
44896         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44897         * doc/posix-functions/setsockopt.texi: Mention the new module
44898         'setsockopt'.
44899         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44900         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44901         listen, connect, accept.
44902         * modules/select-tests (Depends-on): Likewise.
44903
44904 2008-10-05  Bruno Haible  <bruno@clisp.org>
44905
44906         * lib/winsock.c (strerror): Remove unused #undef.
44907         (rpl_close): Remove unused local variable.
44908
44909         * modules/sys_socket (Depends-on); Add errno.
44910
44911 2008-10-05  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44914         (select): Add a link warning when the 'select' module is not used.
44915         * modules/sys_select (Depends-on): Add link-warning.
44916         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44917         Suggested by Paolo Bonzini.
44918
44919 2008-10-05  Jim Meyering  <meyering@redhat.com>
44920
44921         bootstrap: check for LT_INIT more portably
44922         * build-aux/bootstrap: Avoid using grep -E, since it's not
44923         portable enough.  Suggestion from Bruno Haible.
44924
44925 2008-10-05  Bruno Haible  <bruno@clisp.org>
44926
44927         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44928         as being fixed by gnulib.
44929
44930 2008-10-05  Bruno Haible  <bruno@clisp.org>
44931
44932         * modules/select-tests: New file, mostly copied from
44933         modules/sys_select-tests.
44934         * tests/test-select.c: New file, mostly copied from
44935         tests/test-sys_select.c.
44936         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44937         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44938         (Makefile.am): Remove test_sys_select_LDADD.
44939
44940         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44941         to an undefined symbol, for an error message.
44942         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44943         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44944         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44945         winsock-select.c here.
44946         * modules/sys_select (Files): Remove lib/winsock-select.c.
44947         (Depends-on): Remove alloca.
44948         (Makefile.am): Substitute GNULIB_SELECT.
44949         * modules/select: New file.
44950         * doc/posix-functions/select.texi: Update.
44951
44952 2008-10-05  Bruno Haible  <bruno@clisp.org>
44953
44954         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44955         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44956         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44957         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44958         getdtablesize.
44959         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44960         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44961
44962 2008-10-05  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/getdtablesize-tests: New file.
44965         * tests/test-getdtablesize.c: New file.
44966
44967         New module 'getdtablesize'.
44968         * lib/unistd.in.h (getdtablesize): New declaration.
44969         * lib/getdtablesize.c: New file.
44970         * m4/getdtablesize.m4: New file.
44971         * modules/getdtablesize: New file.
44972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44973         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44974         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44975         HAVE_GETDTABLESIZE.
44976         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44977
44978 2008-10-05  Bruno Haible  <bruno@clisp.org>
44979
44980         * modules/sched (Makefile.am): Fix typo.
44981         Reported by Simon Josefsson.
44982
44983 2008-10-05  Jim Meyering  <meyering@redhat.com>
44984
44985         bootstrap: check for LT_INIT, too
44986         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44987         are deprecated.  Suggestion from Ralf Wildenhues.
44988
44989 2008-10-05  Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44992         overriding them by ours.
44993         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44994
44995 2008-10-05  Jim Meyering  <meyering@redhat.com>
44996
44997         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44998         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44999         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45000
45001 2008-10-04  Bruno Haible  <bruno@clisp.org>
45002
45003         * modules/dup2 (License): Change to LGPLv2+.
45004         * modules/sleep (License): Likewise.
45005         * modules/perror (License): Likewise.
45006         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45007         Blake.
45008         * modules/signal (License): Likewise.
45009         * modules/sigprocmask (License): Likewise.
45010         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45011         Meyering.
45012
45013 2008-10-04  Bruno Haible  <bruno@clisp.org>
45014
45015         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45016         Reported by Rainer Tammer <tammer@tammer.net>.
45017
45018 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45019             Bruno Haible  <bruno@clisp.org>
45020
45021         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45022         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45023         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45024
45025 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45026
45027         filevercmp: new module
45028         * lib/filevercmp.h: New function filevercmp comparing version strings.
45029         * lib/filevercmp.c: Implementation of filevercmp function.
45030         * modules/filevercmp: Module metadata.
45031         * tests/test-filevercmp.c: Unit test for new module.
45032         * modules/filevercmp-tests: Unit test metadata.
45033         * MODULES.html.sh: Add filevercmp module.
45034
45035 2008-10-03  Bruno Haible  <bruno@clisp.org>
45036
45037         * lib/c-ctype.h: Add comment.
45038         Reported by Jim Meyering.
45039
45040 2008-10-02  Bruno Haible  <bruno@clisp.org>
45041
45042         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45043
45044 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45045
45046         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45047         name of bootstrap.conf accordingly.
45048
45049 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45050
45051         * build-aux/bootstrap: Install git-merge-changelog configuration
45052         items into .gitconfig if needed.
45053
45054 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45055
45056         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45057         git repository, and initialize/update it accordingly.
45058
45059 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45060
45061         * modules/fsync-tests: New file.
45062         * tests/test-fsync.c: New file.
45063
45064         New module 'fsync'.
45065         * lib/fsync.c: New file.
45066         * m4/fsync.m4: New file.
45067         * modules/fsync: New file.
45068         * lib/unistd.in.h (fsync): New declaration.
45069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45070         GNULIB_FSYNC and HAVE_FSYNC.
45071         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45072         * MODULES.html.sh (posix_functions): Add fsync.
45073         * doc/posix-functions/fsync.texi: Mention the new module.
45074
45075 2008-10-02  Jim Meyering  <meyering@redhat.com>
45076
45077         fts.c: sync with similar code from coreutils' remove.c
45078         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45079         Guard also with "#if defined __linux__", since for now at least,
45080         this code is Linux-kernel-specific.
45081
45082 2008-10-02  Jim Meyering  <meyering@redhat.com>
45083
45084         fts: bug fixes
45085         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45086         Include <sys/vfs.h>, not <sys/statfs.h>.
45087
45088         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45089         Include <sys/vfs.h>, not <sys/statfs.h>.
45090
45091 2008-10-01  Bruno Haible  <bruno@clisp.org>
45092
45093         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45094         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45095         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45096         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45097         * doc/posix-functions/posix_spawnp.texi: Likewise.
45098         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45099         whether posix_spawn actually works.
45100         * m4/pipe.m4 (gl_PIPE): Likewise.
45101         * modules/execute (Files): Add m4/posix_spawn.m4.
45102         * modules/pipe (Files): Add m4/posix_spawn.m4.
45103         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45104
45105 2008-10-01  Jim Meyering  <meyering@redhat.com>
45106
45107         remove trailing spaces
45108         * NEWS: Likewise.
45109         * lib/poll.c (poll): Likewise.
45110         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45111         * lib/winsock.c (rpl_close): Likewise.
45112         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45113         * modules/yield: Likewise.
45114         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45115         * tests/test-sys_select.c (connect_to_socket): Likewise.
45116
45117         fts.c: adjust a new interface to be more generally useful
45118         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45119         (fts_build): Adjust caller.
45120
45121 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45122
45123         * modules/cond-tests: New file.
45124         * tests/test-cond.c: New file.
45125
45126 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45127             Bruno Haible  <bruno@clisp.org>
45128
45129         * modules/cond (Dependencies): Add errno, time.
45130         * lib/glthread/cond.h: Include <time.h>.
45131         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45132         across platforms.
45133
45134 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45135             Bruno Haible  <bruno@clisp.org>
45136
45137         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45138
45139 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45140             Bruno Haible  <bruno@clisp.org>
45141
45142         * modules/tls-tests (Depends-on): Add thread, yield.
45143         (configure.ac): Remove all checks.
45144         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45145         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45146         gl_thread_self): Remove definitions. Include glthread/thread.h and
45147         glthread/yield.h instead.
45148         (test_tls): Pass an additional NULL argument to gl_thread_join.
45149
45150 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45151             Bruno Haible  <bruno@clisp.org>
45152
45153         * modules/lock-tests (Depends-on): Add thread, yield.
45154         (configure.ac): Remove all checks.
45155         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45156         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45157         gl_thread_self): Remove definitions. Include glthread/thread.h and
45158         glthread/yield.h instead.
45159         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45160         additional NULL argument to gl_thread_join.
45161
45162 2008-09-30  Bruno Haible  <bruno@clisp.org>
45163
45164         Fix the Win32 implementation of the 'thread' module.
45165         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45166         pointer type.
45167         (gl_thread_self): Invoke gl_thread_self_func.
45168         (gl_thread_self_func): New declaration.
45169         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45170         (do_init_self_key, init_self_key): New functions.
45171         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45172         Remove some fields.
45173         (running_threads, running_lock): Remove variables.
45174         (get_current_thread_handle): New function.
45175         (gl_thread_self_func, wrapper_func, glthread_create_func,
45176         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45177         simplified.
45178
45179 2008-09-30  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45182         files.
45183
45184 2008-09-30  Jim Meyering  <meyering@redhat.com>
45185
45186         fts.m4: correct the test for statfs.f_type
45187         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45188         when checking for statfs.f_type.
45189
45190 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45191
45192         tests: avoid some compiler warnings
45193         * tests/test-memchr.c (main): Pass NULL indirectly.
45194         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45195
45196 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45197
45198         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45199         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45200         exactly specified dayshifts.
45201         (dayshift): New rule.
45202         (rel): Add dayshift.
45203         (relative_time_table) [tomorrow, yesterday, today, now]:
45204         Use tDAY_SHIFT in place of tDAY_UNIT.
45205         * tests/test-getdate.c: Add tests for now-disallowed countable
45206         dayshifts, e.g., "4 yesterday ago".
45207
45208 2008-09-29  Bruno Haible  <bruno@clisp.org>
45209
45210         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45211         * tests/test-posix_spawn1.in.sh: Renamed from
45212         tests/test-posix_spawn.in.sh.
45213         * tests/test-posix_spawn2.c: New file.
45214         * tests/test-posix_spawn2.in.sh: New file.
45215         * modules/posix_spawnp-tests (Files): Update.
45216         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45217
45218 2008-09-29  Bruno Haible  <bruno@clisp.org>
45219
45220         Propagate effects of putenv/setenv/unsetenv to child processes.
45221         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45222         * lib/pipe.c (create_pipe): Likewise.
45223
45224 2008-09-29  Bruno Haible  <bruno@clisp.org>
45225
45226         Enable use of shell scripts as executables in mingw.
45227         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45228         run the program as a shell script.
45229         * lib/pipe.c (create_pipe): Likewise.
45230         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45231         resulting array.
45232
45233 2008-09-29  Eric Blake  <ebb9@byu.net>
45234
45235         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45236
45237 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45238
45239         * doc/posix-functions/accept.texi: Update mingw problems.
45240         * doc/posix-functions/bind.texi: Update mingw problems.
45241         * doc/posix-functions/close.texi: Update mingw problems.
45242         * doc/posix-functions/connect.texi: Update mingw problems.
45243         * doc/posix-functions/getpeername.texi: Update mingw problems.
45244         * doc/posix-functions/getsockname.texi: Update mingw problems.
45245         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45246         * doc/posix-functions/ioctl.texi: Update mingw problems.
45247         * doc/posix-functions/listen.texi: Update mingw problems.
45248         * doc/posix-functions/recv.texi: Update mingw problems.
45249         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45250         * doc/posix-functions/select.texi: Update mingw problems.
45251         * doc/posix-functions/send.texi: Update mingw problems.
45252         * doc/posix-functions/sendto.texi: Update mingw problems.
45253         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45254         * doc/posix-functions/socket.texi: Update mingw problems.
45255
45256 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45257             Bruno Haible  <bruno@clisp.org>
45258
45259         * lib/sys_select.in.h: Include sys/time.h.
45260         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45261         * modules/sys_select: Depend on sys_time.
45262         * tests/test-sys_select.c: Test that sys/select.h defines struct
45263         timeval fully.
45264
45265 2008-09-29  Bruno Haible  <bruno@clisp.org>
45266
45267         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45268         * lib/sys_select.in.h: Likewise.
45269
45270 2008-09-29  Bruno Haible  <bruno@clisp.org>
45271
45272         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45273
45274 2008-09-29  Bruno Haible  <bruno@clisp.org>
45275
45276         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45277         Set LIBSOCKET instead of augmenting LIBS.
45278         * modules/sockets (Link): New section.
45279         * modules/sockets-tests (test_sockets_LDADD): New variable.
45280         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45281         * modules/poll-tests (test_poll_LDADD): New variable.
45282         * NEWS: Document the change.
45283
45284 2008-09-29  Bruno Haible  <bruno@clisp.org>
45285
45286         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45287         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45288         ARPA_INET_H directly.
45289         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45290
45291 2008-09-28  Bruno Haible  <bruno@clisp.org>
45292
45293         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45294         from gl_HEADER_SYS_SOCKET.
45295         (gl_HEADER_SYS_SOCKET): Invoke it.
45296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45297
45298 2008-09-28  Bruno Haible  <bruno@clisp.org>
45299
45300         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45301         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45302         Needed on OSF/1 4.0.
45303
45304 2008-09-28  Bruno Haible  <bruno@clisp.org>
45305
45306         Override open more carefully.
45307         * lib/open.c (orig_open): New function.
45308         (rpl_open): Use orig_open instead of open.
45309         * lib/fcntl.in.h: Add special invocation convention.
45310         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45311         (gl_FUNC_OPEN): Invoke it.
45312
45313         Override freopen more carefully.
45314         * lib/freopen.c (orig_freopen): New function.
45315         (rpl_freopen): Use orig_freopen instead of freopen.
45316         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45317         (gl_FUNC_FREOPEN): Invoke it.
45318
45319         Override fopen more carefully.
45320         * lib/fopen.c (orig_fopen): New function.
45321         (rpl_fopen): Use orig_fopen instead of fopen.
45322         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45323         (gl_FUNC_FOPEN): Invoke it.
45324         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45325
45326 2008-09-28  Bruno Haible  <bruno@clisp.org>
45327
45328         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45329         SIGPIPE.
45330
45331 2008-09-28  Bruno Haible  <bruno@clisp.org>
45332
45333         * tests/test-sigaction.c (handler, main): Disable the check whether
45334         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45335         glibc systems with LinuxThreads.
45336
45337 2008-09-28  Bruno Haible  <bruno@clisp.org>
45338
45339         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45340
45341         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45342         with AIX xlc.
45343         * lib/fcntl.in.h (open): Likewise.
45344         Reported by Rainer Tammer <tammer@tammer.net>.
45345
45346 2008-09-28  Bruno Haible  <bruno@clisp.org>
45347
45348         * modules/posix_spawnp-tests: New file.
45349         * tests/test-posix_spawn.c: New file.
45350         * tests/test-posix_spawn.in.sh: New file.
45351
45352         New module 'posix_spawnp'.
45353         * modules/posix_spawnp: New file.
45354         * lib/spawnp.c: New file, from GNU libc with modifications.
45355         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45356
45357         New module 'posix_spawn'.
45358         * modules/posix_spawn: New file.
45359         * lib/spawn.c: New file, from GNU libc with modifications.
45360         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45361
45362         New module 'posix_spawnattr_destroy'.
45363         * modules/posix_spawnattr_destroy: New file.
45364         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45365         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45366         module.
45367
45368         New module 'posix_spawnattr_setsigmask'.
45369         * modules/posix_spawnattr_setsigmask: New file.
45370         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45371         modifications.
45372         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45373         new module.
45374
45375         New module 'posix_spawnattr_getsigmask'.
45376         * modules/posix_spawnattr_getsigmask: New file.
45377         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45378         modifications.
45379         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45380         new module.
45381
45382         New module 'posix_spawnattr_setsigdefault'.
45383         * modules/posix_spawnattr_setsigdefault: New file.
45384         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45385         modifications.
45386         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45387         new module.
45388
45389         New module 'posix_spawnattr_getsigdefault'.
45390         * modules/posix_spawnattr_getsigdefault: New file.
45391         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45392         modifications.
45393         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45394         new module.
45395
45396         New module 'posix_spawnattr_setschedpolicy'.
45397         * modules/posix_spawnattr_setschedpolicy: New file.
45398         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45399         modifications.
45400         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45401         new module.
45402
45403         New module 'posix_spawnattr_getschedpolicy'.
45404         * modules/posix_spawnattr_getschedpolicy: New file.
45405         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45406         modifications.
45407         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45408         new module.
45409
45410         New module 'posix_spawnattr_setschedparam'.
45411         * modules/posix_spawnattr_setschedparam: New file.
45412         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45413         modifications.
45414         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45415         new module.
45416
45417         New module 'posix_spawnattr_getschedparam'.
45418         * modules/posix_spawnattr_getschedparam: New file.
45419         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45420         modifications.
45421         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45422         new module.
45423
45424         New module 'posix_spawnattr_setpgroup'.
45425         * modules/posix_spawnattr_setpgroup: New file.
45426         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45427         modifications.
45428         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45429         module.
45430
45431         New module 'posix_spawnattr_getpgroup'.
45432         * modules/posix_spawnattr_getpgroup: New file.
45433         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45434         modifications.
45435         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45436         module.
45437
45438         New module 'posix_spawnattr_setflags'.
45439         * modules/posix_spawnattr_setflags: New file.
45440         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45441         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45442         module.
45443
45444         New module 'posix_spawnattr_getflags'.
45445         * modules/posix_spawnattr_getflags: New file.
45446         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45447         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45448         module.
45449
45450         New module 'posix_spawnattr_init'.
45451         * modules/posix_spawnattr_init: New file.
45452         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45453         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45454         module.
45455
45456         New module 'posix_spawn_file_actions_destroy'.
45457         * modules/posix_spawn_file_actions_destroy: New file.
45458         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45459         modifications.
45460         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45461         the new module.
45462
45463         New module 'posix_spawn_file_actions_addopen'.
45464         * modules/posix_spawn_file_actions_addopen: New file.
45465         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45466         modifications.
45467         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45468         the new module.
45469
45470         New module 'posix_spawn_file_actions_adddup2'.
45471         * modules/posix_spawn_file_actions_adddup2: New file.
45472         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45473         modifications.
45474         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45475         the new module.
45476
45477         New module 'posix_spawn_file_actions_addclose'.
45478         * modules/posix_spawn_file_actions_addclose: New file.
45479         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45480         modifications.
45481         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45482         the new module.
45483
45484         New module 'posix_spawn_file_actions_init'.
45485         * modules/posix_spawn_file_actions_init: New file.
45486         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45487         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45488         new module.
45489
45490         New module 'posix_spawn-internal'.
45491         * modules/posix_spawn-internal: New file.
45492         * lib/spawn_int.h: New file, from GNU libc with modifications.
45493         * lib/spawni.c: New file, from GNU libc with modifications.
45494         * m4/posix_spawn.m4: New file.
45495
45496         New module 'spawn'.
45497         * modules/spawn: New file.
45498         * lib/spawn.in.h: New file, from GNU libc with modifications.
45499         * m4/spawn_h.m4: New file.
45500         * doc/posix-headers/spawn.texi: Mention the new module.
45501
45502 2008-09-28  Bruno Haible  <bruno@clisp.org>
45503
45504         * modules/sched-tests: New file.
45505         * tests/test-sched.c: New file.
45506
45507         New module 'sched'.
45508         * modules/sched: New file.
45509         * lib/sched.in.h: New file.
45510         * m4/sched_h.m4: New file.
45511         * doc/posix-headers/sched.texi: Mention the new module.
45512
45513 2008-09-27  Eric Blake  <ebb9@byu.net>
45514
45515         Fix previous patch, and tweak references to $0.
45516         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45517         (func_version, func_gnulib_dir): Don't call this program
45518         gnulib-tool.
45519         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45520         with using $0 in function.
45521         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45522         (func_fatal_error): Reuse the name the user invoked us with.
45523
45524 2008-09-27  Bruno Haible  <bruno@clisp.org>
45525
45526         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45527         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45528         (gl_ICONV_H): Not here.
45529         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45530         instead of assigning ICONV_H directly.
45531
45532         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45534         WCHAR_H directly.
45535
45536 2008-09-27  Bruno Haible  <bruno@clisp.org>
45537
45538         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45539         * modules/arpa_inet (Depends-on): Add link-warning.
45540         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45541         * modules/unistd (Makefile.am): Likewise.
45542
45543 2008-09-26  Bruno Haible  <bruno@clisp.org>
45544
45545         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45546         variables.
45547         (func_version): Essentially copied from gnulib-tool.
45548         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45549         func_readlink): Copied from gnulib-tool.
45550
45551 2008-09-26  Bruno Haible  <bruno@clisp.org>
45552
45553         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45554         invoking git-version-gen.
45555
45556 2008-09-26  Bruno Haible  <bruno@clisp.org>
45557
45558         * posix-modules: Update to directory names changed on 2008-01-19.
45559         Remove commas in output before splitting into words. No more need to
45560         avoid 'ftruncate' since 2007-02-19.
45561
45562 2008-09-26  Bruno Haible  <bruno@clisp.org>
45563
45564         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45565
45566 2008-09-26  Bruno Haible  <bruno@clisp.org>
45567
45568         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45569         * modules/fwriteerror (Depends-on): Add errno.
45570
45571 2008-09-26  Bruno Haible  <bruno@clisp.org>
45572
45573         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45574         * tests/test-vc-list-files-cvs.sh: Likewise.
45575
45576 2008-09-26  Bruno Haible  <bruno@clisp.org>
45577
45578         * doc/posix-headers/sys_resource.texi: Reorder items.
45579
45580 2008-09-26  Jim Meyering  <meyering@redhat.com>
45581
45582         fts: tweak inode comparison function
45583         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45584         inode numbers, as documented.
45585
45586         fts: sort dirent entries on inode number before traversing
45587         This avoids a quadratic, seek-related performance penalty when
45588         operating on a directory containing many entries (measurable at 10k;
45589         3.5 hours at 2 million entries with a cold cache) on certain types
45590         of file systems, including ext3 and ext4, but not tmpfs.
45591         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45592         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45593         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45594         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45595         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45596         (fts_build): Set the stat.st_ino member from D_INO.
45597         If it is likely to be useful, sort dirent entries on inode number.
45598
45599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45600         and the struct statfs.f_type member.
45601         * modules/fts (Depends-on): Add d-ino.
45602
45603 2008-09-26  Bruno Haible  <bruno@clisp.org>
45604
45605         * modules/sigpipe-die (Depends-on): Add sigpipe.
45606
45607         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45608         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45609         and GNULIB_STDIO_H_SIGPIPE are set.
45610         * lib/stdio-write.c: New file.
45611         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45612         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45613         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45614         REPLACE_STDIO_WRITE_FUNCS.
45615         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45616         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45617         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45618         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45619         * modules/stdio (Files): Add lib/stdio-write.c.
45620         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45621         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45622         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45623         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45624         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45625         REPLACE_FPRINTF_POSIX.
45626         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45627         REPLACE_PRINTF_POSIX.
45628         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45629         REPLACE_VFPRINTF_POSIX.
45630         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45631         REPLACE_VPRINTF_POSIX.
45632         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45633         SIGPIPE issue.
45634         * doc/posix-functions/fputc.texi: Likewise.
45635         * doc/posix-functions/fputs.texi: Likewise.
45636         * doc/posix-functions/fwrite.texi: Likewise.
45637         * doc/posix-functions/printf.texi: Likewise.
45638         * doc/posix-functions/putc.texi: Likewise.
45639         * doc/posix-functions/putchar.texi: Likewise.
45640         * doc/posix-functions/puts.texi: Likewise.
45641         * doc/posix-functions/vfprintf.texi: Likewise.
45642         * doc/posix-functions/vprintf.texi: Likewise.
45643
45644         * modules/safe-write (Depends-on): Add write.
45645
45646         * modules/sigpipe-tests: New file.
45647         * tests/test-sigpipe.c: New file.
45648         * tests/test-sigpipe.sh: New file.
45649
45650         * modules/write: New file.
45651         * lib/unistd.in.h: Include <sys/types.h>.
45652         (write): New declaration.
45653         * lib/write.c: New file.
45654         * m4/write.m4: New file.
45655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45656         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45657         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45658         GNULIB_WRITE, REPLACE_WRITE.
45659         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45660         and the SIGPIPE issue.
45661
45662         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45663         (raise): New declaration.
45664         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45665         (ext_signal): New function.
45666         (rpl_raise): New function.
45667         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45668         GNULIB_SIGNAL_H_SIGPIPE.
45669         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45670         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45671
45672         * modules/sigpipe: New file.
45673         * m4/sigpipe.m4: New file.
45674
45675 2008-09-25  Derek Price  <derek@ximbiot.com>
45676             Bruno Haible  <bruno@clisp.org>
45677
45678         * gnulib-tool (func_import): Report all license incompatibilities, not
45679         just the first one.
45680
45681 2008-09-25  Bruno Haible  <bruno@clisp.org>
45682
45683         * gnulib-tool (func_import): When computing the edits, consider not
45684         only the Makefile.ams that exist but also those that will be generated.
45685
45686 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45687
45688         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45689         fixes gnulib-tool --test warning about duplicate dependency.
45690
45691 2008-09-25  Bruno Haible  <bruno@clisp.org>
45692
45693         * gnulib-tool: Don't ask the user to perform edits in the generated
45694         Makefile.ams.
45695         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45696         apply to the Makefile.am being generated.
45697         (func_emit_tests_Makefile_am): Execute edits that apply to the
45698         Makefile.am being generated.
45699         (func_import): Setup list of Makefile.am edits before emitting the
45700         Makefile.ams, not at the end.
45701         (func_create_testdir): Update.
45702         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45703
45704 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45705
45706         * gnulib-tool (func_import): Store the --tests-base option in the
45707         comment in gnulib-cache.m4.
45708
45709 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45710
45711         * NEWS: Document increased portability that sys_select now provides.
45712
45713         * lib/sys_select.in.h: Install select wrapper.
45714         * lib/sys_socket.in.h: Use more descriptive name when there is no
45715         select wrapper.
45716         * lib/winsock-select.c: New.
45717         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45718         Require gl_HEADER_SYS_SOCKET.
45719         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45720         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45721         * tests/test-sys_select.c: Add functional tests.
45722
45723 2008-09-24  Eric Blake  <ebb9@byu.net>
45724
45725         open, fopen: close fd leak in last patch
45726         * lib/open.c (rpl_open): Close fd before returning error.
45727         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45728         * doc/posix-functions/open.texi (open): Document that Irix also
45729         has the bug.
45730         * doc/posix-functions/fopen.texi (fopen): Likewise.
45731         Reported by Paolo Bonzini.
45732
45733 2008-09-24  Bruno Haible  <bruno@clisp.org>
45734
45735         Ensure that a filename ending in a slash cannot be used to access a
45736         non-directory.
45737         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45738         to check whether it's really a directory.
45739         * lib/fopen.c: Include fcntl.h, unistd.h.
45740         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45741         and fdopen().
45742         * modules/fopen (Depends-on): Add unistd.
45743         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45744         * tests/test-fopen.c (main): Likewise.
45745         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45746         * doc/posix-functions/fopen.texi: Likewise.
45747         Reported by Eric Blake.
45748
45749 2008-09-23  Eric Blake  <ebb9@byu.net>
45750
45751         c-stack: avoid compiler optimizations when provoking overflow
45752         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45753         recursion harder to optimize, to ensure a stack overflow occurs.
45754         * tests/test-c-stack.c (recurse): Likewise.
45755         Borrowed from libsigsegv.
45756
45757         c-stack: work around Irix sigaltstack bug
45758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45759         whether sigaltstack uses wrong end of stack_t (copied in part from
45760         libsigsegv).
45761         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45762         Irix bug, without requiring an over-allocation.
45763         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45764         bug.
45765
45766         fopen: document mingw bug on directories
45767         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45768         not allowing a stream visiting a directory, even though reading
45769         from such a stream is not portable.
45770
45771 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45772
45773         * lib/poll.c: Rewrite.
45774         * modules/poll: Depend on alloca.
45775
45776 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45777
45778         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45779         instead define prototypes for a full set of wrappers.  Ensure
45780         that Cygwin does not use the compatibility code, which is only
45781         for MinGW.
45782         * lib/winsock.c: New.
45783         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45784         * modules/sys_socket: Add lib/winsock.c.
45785
45786         * modules/poll-tests: Add errno and perror.
45787         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45788
45789 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45790
45791         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45792
45793 2008-09-23  Bruno Haible  <bruno@clisp.org>
45794
45795         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45796         * doc/glibc-functions/*: Likewise.
45797
45798 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45799
45800         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45801         success.
45802
45803 2008-09-22  Eric Blake  <ebb9@byu.net>
45804             Bruno Haible  <bruno@clisp.org>
45805
45806         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45807         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45808         supply %A but mishandle pseudo-NaN.
45809         Reported by Simon Josefsson.
45810
45811 2008-09-21  Bruno Haible  <bruno@clisp.org>
45812
45813         * tests/test-lock.c (main): Tweak skip message.
45814         * tests/test-tls.c (main): Likewise.
45815
45816 2008-09-21  Bruno Haible  <bruno@clisp.org>
45817
45818         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45819         whether 'struct sigaction' has sa_sigaction here...
45820         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45821         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45822
45823 2008-09-21  Bruno Haible  <bruno@clisp.org>
45824
45825         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45826         section.
45827         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45828         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45829         the new section.
45830         (Support for obsolete systems lacking POSIX:2001): New section.
45831         (String handling <string.h>): Move strdup to the new section.
45832         Suggested by Simon Josefsson and Paolo Bonzini.
45833
45834 2008-09-21  Bruno Haible  <bruno@clisp.org>
45835
45836         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45837         exponents in %e and %g results on 'long double'. Needed for mingw's
45838         improved *printf functions.
45839         * tests/test-vasprintf-posix.c (test_function): Likewise.
45840         * tests/test-snprintf-posix.h (test_function): Likewise.
45841         * tests/test-sprintf-posix.h (test_function): Likewise.
45842         Reported by Eric Blake.
45843
45844 2008-09-21  Bruno Haible  <bruno@clisp.org>
45845
45846         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45847         * tests/test-sprintf-posix.h (test_function): Likewise.
45848
45849 2008-09-21  Bruno Haible  <bruno@clisp.org>
45850
45851         * modules/getpass (Depends-on): Add strdup-posix.
45852
45853         New module 'strdup-posix'.
45854         * modules/strdup-posix: New file.
45855         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45856         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45858         REPLACE_STRDUP.
45859         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45860         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45861         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45862         strdup-posix.
45863
45864         * modules/strdup (Depends-on): Remove malloc-posix.
45865
45866 2008-09-20  Bruno Haible  <bruno@clisp.org>
45867
45868         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45869         Wildenhues.
45870
45871 2008-09-20  Bruno Haible  <bruno@clisp.org>
45872
45873         Ensure that wint_t gets defined on IRIX 5.3.
45874         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45875         * lib/wctype.in.h (wint_t): Likewise.
45876         (__wctype_wint_t): Remove type.
45877         (isw*): Use wint_t instead of __wctype_wint_t.
45878         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45879         * modules/wchar (Files): Add m4/wint_t.m4.
45880         (Makefile.am): Substitute HAVE_WINT_T.
45881         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45882         * tests/test-wctype.c: Check that wint_t is defined.
45883         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45884         * doc/posix-headers/wctype.texi: Likewise.
45885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45886
45887 2008-09-18  Bruno Haible  <bruno@clisp.org>
45888
45889         * gnulib-tool (func_exit): Update comment.
45890
45891 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45892
45893         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45894         assumes strdup exists and does not depend on strdup to return
45895         ENOMEM on out of memory conditions.
45896
45897 2008-09-18  Bruno Haible  <bruno@clisp.org>
45898
45899         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45900         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45901         digits for the exponent.
45902
45903 2008-09-18  Jim Meyering  <meyering@redhat.com>
45904             Bruno Haible  <bruno@clisp.org>
45905
45906         * lib/vasnprintf.c (decimal_point_char): Define also if
45907         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45908
45909 2008-09-16  Bruno Haible  <bruno@clisp.org>
45910         and Eric Blake  <ebb9@byu.net>
45911
45912         vasnprintf: support Irix 5.3
45913         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45914         that mishandle long double infinity.
45915         Reported by Tom G. Christensen.
45916
45917 2008-09-16  Bruno Haible  <bruno@clisp.org>
45918
45919         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45920         Solaris 9.
45921         * doc/glibc-functions/alphasort.texi: Likewise.
45922         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45923
45924 2008-09-16  Jim Meyering  <meyering@redhat.com>
45925
45926         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45927         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45928         a umask modification leak out of a subshell.  Otherwise, the
45929         opensolaris /bin/sh would be accepted and thus cause unwarranted
45930         failures in the coreutils test suite.
45931
45932 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45933
45934         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45935         to succeed.
45936
45937 2008-09-16  Jim Meyering  <meyering@redhat.com>
45938
45939         avoid spurious test failure when library is built without ACL support
45940         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45941         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45942         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45943         * tests/test-copy-acl.sh: Likewise.
45944
45945 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45946
45947         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45948         based on character occurrence counts.
45949
45950 2008-09-15  Eric Blake  <ebb9@byu.net>
45951
45952         tests: avoid some compiler warnings
45953         * tests/test-memchr.c (main): Pass NULL indirectly.
45954         * tests/test-closein.c (main): Avoid unused variable.
45955
45956 2008-09-15  Bruno Haible  <bruno@clisp.org>
45957
45958         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45959         are missing on OpenBSD 4.0 individually.
45960         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45961
45962 2008-09-15  Bruno Haible  <bruno@clisp.org>
45963
45964         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45965         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45966         * doc/posix-functions/perror.texi: Likewise.
45967         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45968         is missing.
45969         Reported by Eric Blake.
45970
45971         * lib/errno.in.h: Use replacement values >= 2000.
45972         Reported by Eric Blake.
45973
45974 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45975
45976         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45977         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45978         limit.
45979         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45980         compareseq was aborted.
45981
45982 2008-09-14  Bruno Haible  <bruno@clisp.org>
45983
45984         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45985         yvec_edit_count.
45986         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45987         (fstrcmp_bounded): Simplify result computation accordingly.
45988
45989 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45990
45991         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45992         (fstrcmp): Define in terms of fstrcmp_bounded.
45993         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45994         lower_bound argument.
45995         Return quickly if the result is certainly < lower_bound.
45996         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45997
45998 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45999
46000         * lib/diffseq.h (EARLY_ABORT): New macro.
46001         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46002         evaluates to true.
46003
46004 2008-09-14  Bruno Haible  <bruno@clisp.org>
46005
46006         * modules/perror-tests: New file.
46007         * tests/test-perror.sh: New file.
46008         * tests/test-perror.c: New file.
46009
46010         New module 'perror'.
46011         * lib/stdio.in.h (perror): New declaration.
46012         * lib/perror.c: New file.
46013         * m4/perror.m4: New file.
46014         * modules/perror: New file.
46015         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46016         * doc/posix-functions/perror.texi: Mention the perror module.
46017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46018         REPLACE_PERROR.
46019         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46020         REPLACE_PERROR.
46021
46022 2008-09-14  Bruno Haible  <bruno@clisp.org>
46023
46024         * modules/stdio (Makefile.am): Reorder to match the order in
46025         lib/stdio.in.h.
46026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46027
46028 2008-09-13  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46031
46032 2008-09-13  Bruno Haible  <bruno@clisp.org>
46033
46034         Extend strerror to cover the added errno values.
46035         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46036         (rpl_strerror): Provide error messages for the added errno values and
46037         for the WSA* values.
46038         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46039         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46040         strerror.
46041         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46042         * modules/strerror (Depends-on): Add errno.
46043         * doc/posix-functions/strerror.texi: Document the change.
46044         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46045         and EOVERFLOW.
46046
46047 2008-09-13  Bruno Haible  <bruno@clisp.org>
46048
46049         * modules/EOVERFLOW: Remove file.
46050         * m4/eoverflow.m4: Remove file.
46051         * modules/EOVERFLOW-tests: Remove file.
46052         * tests/test-EOVERFLOW.c: Remove file.
46053         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46054         * modules/ftell (Depends-on): Likewise.
46055         * modules/getdelim (Depends-on): Likewise.
46056         * modules/getugroups (Depends-on): Likewise.
46057         * modules/poll (Depends-on): Likewise.
46058         * modules/snprintf (Depends-on): Likewise.
46059         * modules/sprintf-posix (Depends-on): Likewise.
46060         * modules/vasnprintf (Depends-on): Likewise.
46061         * modules/vasprintf (Depends-on): Likewise.
46062         * modules/vfprintf-posix (Depends-on): Likewise.
46063         * modules/vsnprintf (Depends-on): Likewise.
46064         * modules/vsprintf-posix (Depends-on): Likewise.
46065         * modules/xvasprintf (Depends-on): Likewise.
46066         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46067         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46068         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46069         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46070         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46071         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46072         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46073         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46074         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46075         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46076         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46077         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46078         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46079         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46080         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46081         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46082         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46083         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46084         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46085         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46086         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46087         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46088         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46089         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46090         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46091         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46092         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46093         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46094         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46095         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46096         * MODULES.html.sh: Remove EOVERFLOW.
46097         * NEWS: Mention the change.
46098
46099 2008-09-13  Bruno Haible  <bruno@clisp.org>
46100
46101         * modules/errno-tests: New file.
46102         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46103
46104         * lib/errno.in.h: New file.
46105         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46106         * modules/errno: New file.
46107         * doc/posix-headers/errno.texi: Update documentation.
46108         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46109
46110 2008-09-13  Bruno Haible  <bruno@clisp.org>
46111
46112         * tests/test-poll.c: Use #if for native Windows, rather than testing
46113         __MSVCRT__.
46114
46115 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46116             Bruno Haible  <bruno@clisp.org>
46117
46118         * lib/glob.c: Don't include <pwd.h> on native Windows.
46119         (WINDOWS32): New macro.
46120         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46121
46122 2008-09-13  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46125         (ETIMEDOUT): Remove macro.
46126         (glthread_cond_timedwait_multithreaded): New declaration.
46127         (glthread_cond_timedwait): Use it.
46128         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46129         (glthread_cond_timedwait_multithreaded): New function.
46130
46131 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46132
46133         * modules/poll-tests: Do not check for io.h.
46134         * tests/test-poll.c: Check for __MSVCRT__ instead.
46135
46136 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46137
46138         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46139         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46140         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46141
46142 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46143
46144         * modules/poll-tests: New.
46145         * tests/test-poll.c: New.
46146
46147 2008-09-12  Eric Blake  <ebb9@byu.net>
46148
46149         frexp: test for NetBSD failure on -0.0
46150         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46151         not all, bugs from NetBSD 3.0 have been fixed.
46152         * doc/posix-functions/frexp.texi (frexp): Document bug.
46153         Reported by Thomas Klausner.
46154
46155         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46156         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46157         literal -0.0.
46158         Reported by Jonathan C. Patschke <jp@centtech.com>.
46159
46160 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46161
46162         * lib/glthread/cond.h: Use dummy implementation also if
46163         USE_WIN32_THREADS.
46164
46165 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46166
46167         * modules/fnmatch-posix (License): Change to LGPLv2+.
46168         * modules/fnmatch-gnu (License): Likewise.
46169
46170 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46171
46172         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46173
46174 2008-09-11  Jim Meyering  <meyering@redhat.com>
46175
46176         * users.txt: Add gtk-vnc.
46177
46178 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46179
46180         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46181         rotate amounts.
46182
46183         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46184         required for 16-bit and 8-bit rotates.
46185         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46186         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46187         UINT8_MAX instead of hard-coded constants.
46188         Suggested by Paul Eggert.
46189
46190 2008-09-07  Bruno Haible  <bruno@clisp.org>
46191
46192         * tests/test-striconveh.c (main): Check behaviour when converting from
46193         UTF-7.
46194
46195         Make striconveh work better with stateful encodings.
46196         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46197         that iconv does not increment the inptr when returning -1/EINVAL.
46198
46199 2008-09-07  Bruno Haible  <bruno@clisp.org>
46200
46201         * build-aux/config.rpath: Update according to libtool-2.2.6.
46202         * build-aux/config.libpath: Likewise.
46203
46204 2008-09-06  Bruno Haible  <bruno@clisp.org>
46205
46206         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46207         * lib/freadptr.c (freadptr): Likewise.
46208         * lib/freadseek.c (freadptrinc): Likewise.
46209         Reported by Simon Josefsson.
46210
46211 2008-09-06  Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/freadptr (License): Change to LGPLv2+.
46214         * modules/freadseek (License): Likewise.
46215         Suggested by Eric Blake.
46216
46217         * modules/memchr2 (License): Change to LGPLv2+.
46218         Approved by Eric Blake.
46219
46220 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46221             Bruno Haible  <bruno@clisp.org>
46222
46223         Make gnulib-tool work with native 'sed' on AIX.
46224         * gnulib-tool (sed_noop): New variable.
46225         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46226         func_add_or_update, func_create_testdir): Use it to initialize sed
46227         script variables.
46228         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46229
46230 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46231             Bruno Haible  <bruno@clisp.org>
46232
46233         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46234         also works after #include directives.
46235
46236 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46237
46238         getdate.y: reject an out-of-range timezone value
46239         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46240         the range [-24...+24].  When specified with only one or two digits,
46241         * tests/test-getdate.c: Tests for the fix.
46242         * doc/getdate.texi: Document this change.
46243
46244 2008-09-03  Bruno Haible  <bruno@clisp.org>
46245
46246         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46247
46248 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46249
46250         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46251         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46252         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46253         Blake <ebb9@byu.net>.
46254
46255         * tests/test-bitrotate.c: Add more test vectors.
46256
46257 2008-09-02  Eric Blake  <ebb9@byu.net>
46258
46259         vasnprintf-posix: handle large precision via %.*d
46260         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46261         when handling it ourselves.
46262         * tests/test-vasnprintf-posix.c (test_function): Add test.
46263         * tests/test-snprintf-posix.h (test_function): Likewise.
46264         * tests/test-sprintf-posix.h (test_function): Likewise.
46265         * tests/test-vasprintf-posix.c (test_function): Likewise.
46266         Reported by Alain Guibert.
46267
46268 2008-09-01  Eric Blake  <ebb9@byu.net>
46269
46270         c-stack: make configure-time check more robust
46271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46272         successful sigaction call.
46273         Reported by Tom G. Christensen.
46274
46275 2008-09-01  Bruno Haible  <bruno@clisp.org>
46276
46277         New module 'findprog-lgpl'.
46278         * modules/findprog-lgpl: New file.
46279         * lib/findprog-lgpl.c: New file.
46280         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46281         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46282         to decide whether to use strdup or xstrdup, concatenated_filename or
46283         xconcatenated_filename.
46284
46285 2008-09-01  Bruno Haible  <bruno@clisp.org>
46286
46287         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46288         'xconcat-filename' (GPL).
46289         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46290         (License): Change to LGPLv2+.
46291         * modules/xconcat-filename: New file.
46292         * lib/concat-filename.h (concatenated_filename): Change specification.
46293         (xconcatenated_filename): New declaration.
46294         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46295         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46296         memory situations.
46297         * lib/xconcat-filename.c: New file.
46298         * NEWS: Mention the change.
46299         * lib/findprog.c: Include concat-filename.h, not filename.h.
46300         (find_in_path): Use xconcatenated_filename instead of
46301         concatenated_filename.
46302         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46303         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46304         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46305         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46306         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46307         instead of concatenated_filename.
46308         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46309         (execute_java_class): Use xconcatenated_filename instead of
46310         concatenated_filename.
46311         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46312         * modules/javacomp (Depends-on): Likewise.
46313         * modules/javaexec (Depends-on): Likewise.
46314
46315 2008-09-01  Bruno Haible  <bruno@clisp.org>
46316
46317         Split module 'filename' into 'filename' and 'concat-filename'.
46318         * modules/filename: Keep only lib/filename.h.
46319         (License): Change to LGPLv2+.
46320         * modules/concat-filename: New file, extracted from modules/filename.
46321         * lib/filename.h (concatenated_filename): Remove declaration.
46322         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46323         * lib/concat-filename.c: Include concat-filename.h.
46324         * NEWS: Mention the change.
46325
46326 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46327
46328         * lib/bitrotate.h (rotl8, rotr8): Add.
46329
46330         * modules/bitrotate (configure.ac): Need
46331         AC_REQUIRE([AC_C_INLINE]).
46332         (Description): Mention stdint.h.  Reported by Bruno Haible
46333         <bruno@clisp.org>.
46334
46335         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46336         Paolo Bonzini <bonzini@gnu.org>.
46337
46338 2008-08-31  Bruno Haible  <bruno@clisp.org>
46339
46340         Assume Solaris specific bi-arch conventions on Solaris systems.
46341         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46342         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46343         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46344         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46345         like acl_libdirstem.
46346         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46347         acl_libdirstem.
46348         * NEWS: Mention the change.
46349         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46350
46351 2008-08-31  Jim Meyering  <meyering@redhat.com>
46352
46353         * lib/strftime.h: Add comments describing the two added arguments.
46354
46355         remove duplicate #include directives
46356         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46357         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46358
46359 2008-08-31  Bruno Haible  <bruno@clisp.org>
46360
46361         New module 'sigpipe-die'.
46362         * modules/sigpipe-die: New file.
46363         * lib/sigpipe-die.h: New file.
46364         * lib/sigpipe-die.c: New file.
46365         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46366
46367 2008-08-31  Bruno Haible  <bruno@clisp.org>
46368
46369         Don't override previously installed signal handlers.
46370         * lib/fatal-signal.c (saved_sigactions): New variable.
46371         (uninstall_handlers): Reset the signal to the saved handler, not
46372         to SIG_DFL (except when ignored).
46373         (install_handlers): Save the previous handlers.
46374
46375 2008-08-30  Bruno Haible  <bruno@clisp.org>
46376
46377         * gnulib-tool (func_reset_sigpipe): New function.
46378         (func_get_automake_snippet, func_modules_transitive_closure,
46379         func_import): Invoke it before a join command that reads from stdin,
46380         to avoid "echo: write error: Broken pipe" error messages on stderr.
46381         Reported by Sam Steingold <sds@gnu.org>.
46382
46383 2008-08-30  Bruno Haible  <bruno@clisp.org>
46384
46385         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46386         Code copied from m4/open.m4.
46387         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46388         access and the filename ends in a slash. Code copied from lib/open.c.
46389         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46390         * tests/test-fopen.c (main): Check against bug with trailing slash.
46391
46392 2008-08-29  Bruno Haible  <bruno@clisp.org>
46393
46394         Avoid some "gcc -pedantic" warnings.
46395         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46396         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46397         * lib/dirent.in.h: Likewise.
46398         * lib/fcntl.in.h: Likewise.
46399         * lib/float.in.h: Likewise.
46400         * lib/iconv.in.h: Likewise.
46401         * lib/inttypes.in.h: Likewise.
46402         * lib/locale.in.h: Likewise.
46403         * lib/math.in.h: Likewise.
46404         * lib/netinet_in.in.h: Likewise.
46405         * lib/search.in.h: Likewise.
46406         * lib/signal.in.h: Likewise.
46407         * lib/stdarg.in.h: Likewise.
46408         * lib/stdint.in.h: Likewise.
46409         * lib/stdio.in.h: Likewise.
46410         * lib/stdlib.in.h: Likewise.
46411         * lib/string.in.h: Likewise.
46412         * lib/strings.in.h: Likewise.
46413         * lib/sys_select.in.h: Likewise.
46414         * lib/sys_socket.in.h: Likewise.
46415         * lib/sys_stat.in.h: Likewise.
46416         * lib/sys_time.in.h: Likewise.
46417         * lib/sysexits.in.h: Likewise.
46418         * lib/time.in.h: Likewise.
46419         * lib/unistd.in.h: Likewise.
46420         * lib/wchar.in.h: Likewise.
46421         * lib/wctype.in.h: Likewise.
46422         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46423         * modules/fchdir (Makefile.am): Likewise.
46424         * modules/fcntl (Makefile.am): Likewise.
46425         * modules/float (Makefile.am): Likewise.
46426         * modules/iconv_open (Makefile.am): Likewise.
46427         * modules/inttypes (Makefile.am): Likewise.
46428         * modules/locale (Makefile.am): Likewise.
46429         * modules/math (Makefile.am): Likewise.
46430         * modules/netinet_in (Makefile.am): Likewise.
46431         * modules/search (Makefile.am): Likewise.
46432         * modules/signal (Makefile.am): Likewise.
46433         * modules/stdarg (Makefile.am): Likewise.
46434         * modules/stdint (Makefile.am): Likewise.
46435         * modules/stdio (Makefile.am): Likewise.
46436         * modules/stdlib (Makefile.am): Likewise.
46437         * modules/string (Makefile.am): Likewise.
46438         * modules/strings (Makefile.am): Likewise.
46439         * modules/sys_select (Makefile.am): Likewise.
46440         * modules/sys_socket (Makefile.am): Likewise.
46441         * modules/sys_stat (Makefile.am): Likewise.
46442         * modules/sys_time (Makefile.am): Likewise.
46443         * modules/sysexits (Makefile.am): Likewise.
46444         * modules/time (Makefile.am): Likewise.
46445         * modules/unistd (Makefile.am): Likewise.
46446         * modules/wchar (Makefile.am): Likewise.
46447         * modules/wctype (Makefile.am): Likewise.
46448         Reported by Reuben Thomas <rrt@sc3d.org>.
46449
46450 2008-08-29  Bruno Haible  <bruno@clisp.org>
46451
46452         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46453         any more.
46454
46455 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46456
46457         * MODULES.html.sh (Misc): Add bitrotate.
46458
46459         * modules/bitrotate: New file.
46460
46461         * lib/bitrotate.h: New file.
46462
46463         * modules/bitrotate-tests: New file.
46464
46465         * tests/test-bitrotate.c: New file.
46466
46467         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46468         on the bitrotate module.
46469
46470         * lib/arctwo.c: Use new bitrotate module.
46471
46472 2008-08-29  Jim Meyering  <meyering@redhat.com>
46473
46474         bootstrap: merge changes from coreutils
46475         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46476         of copied files.  Remove a kludge, now that this is fixed.
46477         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46478         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46479         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46480
46481 2008-08-29  Bruno Haible  <bruno@clisp.org>
46482
46483         * MODULES.html.sh: Remove --cvs-urls option.
46484
46485 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46486
46487         maint.mk: adjust to file name change
46488         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46489
46490 2008-08-28  Jim Meyering  <meyering@redhat.com>
46491
46492         * modules/getndelim2 (License): Relicense to LGPLv2+.
46493         Approved by Richard Stallman for the version of 1995, and by
46494         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46495
46496 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46497
46498         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46499         dummy if one is not available.  Do not touch them if
46500         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46501         (getc_maybe_unlocked): New.
46502         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46503
46504 2008-08-26  Eric Blake  <ebb9@byu.net>
46505
46506         doc/INSTALL: resync from autoconf
46507         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46508         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46509         moving...
46510         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46511         * INSTALL: Regenerate.
46512         * INSTALL.ISO: New file.
46513         * INSTALL.UTF-8: Likewise.
46514
46515 2008-08-26  Jim Meyering  <meyering@redhat.com>
46516
46517         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46518         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46519         these definitions conditional, so that they may be overridden, too.
46520
46521 2008-08-26  Bruno Haible  <bruno@clisp.org>
46522
46523         Generate INSTALL file variants with prettier quotes.
46524         * doc/Makefile (INSTALL_PRELUDE): New macro.
46525         (INSTALL): Use it.
46526         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46527
46528 2008-08-26  Bruno Haible  <bruno@clisp.org>
46529
46530         Run makeinfo in an English locale.
46531         * doc/Makefile (MAKEINFO): New variable.
46532
46533 2008-08-26  Bruno Haible  <bruno@clisp.org>
46534
46535         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46536         Suggested by Eric Blake.
46537
46538 2008-08-25  Bruno Haible  <bruno@clisp.org>
46539
46540         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46541
46542 2008-08-25  Eric Blake  <ebb9@byu.net>
46543
46544         c-stack: test that stack overflow can be caught
46545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46546         that platform allows handling stack overflow; at least OS/2 EMX
46547         has sigaltstack, but crashes before transferring control to
46548         handler on stack overflow.
46549         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46550         check for HAVE_STACK_OVERFLOW_HANDLING.
46551         Reported by Elbert Pol.
46552
46553 2008-08-25  Bruno Haible  <bruno@clisp.org>
46554
46555         * doc/posix-functions/strftime.texi: Fix description of strftime
46556         module.
46557
46558 2008-08-24  Bruno Haible  <bruno@clisp.org>
46559
46560         * tests/uniwidth/test-uc_width2.c: New file.
46561         * tests/uniwidth/test-uc_width2.sh: New file.
46562         * modules/uniwidth/width-tests (Files): Add the new files.
46563         (TESTS): Add uniwidth/test-uc_width2.sh.
46564         (TESTS_ENVIRONMENT): New variable.
46565         (check_PROGRAMS): Add test-uc_width2.
46566         (test_uc_width2_SOURCES): New variable.
46567
46568         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46569         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46570         not 0x00AB.
46571         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46572
46573 2008-08-22  Eric Blake  <ebb9@byu.net>
46574
46575         test-lock, test-tls: mention why a test is skipped
46576         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46577         skipped.
46578         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46579
46580         count-one-bits: relax license
46581         * modules/count-one-bits (License): Relicense to LGPLv2+.
46582         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46583
46584 2008-08-22  Andreas Schwab  <schwab@suse.de>
46585
46586         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46587         Remove spurious space in assignment.
46588
46589 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46590
46591         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46592         Paul Eggert <eggert@CS.UCLA.EDU>.
46593
46594 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46595
46596         * modules/gettext: Add m4/threadlib.m4.
46597
46598 2008-08-19  Eric Blake  <ebb9@byu.net>
46599
46600         test-c-stack: fix compilation failure on FreeBSD 5.0
46601         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46602         headers before <sys/resource.h>.
46603         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46604         the bug.
46605         Reported by Nelson H. F. Beebe.
46606
46607         strverscmp: migrate from "strverscmp.h" to <string.h>
46608         * modules/string (Makefile.am): Add new hooks.
46609         * modules/strverscmp (Files): Remove strverscmp.h.
46610         (Depends-on): Add string.
46611         (configure.ac): Add indicator.
46612         (Include): Mention new header.
46613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46614         defaults.
46615         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46616         results.
46617         * lib/strverscmp.h: Delete.
46618         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46619         * tests/test-strverscmp.c (includes): Adjust client.
46620         * lib/check-version.c (includes): Likewise.
46621         * NEWS: Document the change.
46622
46623         strverscmp: add unit test
46624         * modules/strverscmp-tests: New file.
46625         * tests/test-strverscmp.c: Likewise.
46626
46627 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46628
46629         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46630         regarding Windows crypto stuff, from Mono.
46631
46632 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46633
46634         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46635         if present, for intel RND.  Return error on failures.
46636
46637 2008-08-18  Ben Pfaff  <blp@gnu.org>
46638
46639         gitlog-to-changelog: give better diagnostic for failed pipe-open
46640         * build-aux/gitlog-to-changelog: Improve error message: suggest
46641         that the version of Git may be too old.
46642
46643 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46644
46645         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46646         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46647
46648 2008-08-18  Bruno Haible  <bruno@clisp.org>
46649
46650         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46651         pthread_in_use().
46652
46653 2008-08-18  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/glthread/threadlib.c: Include <pthread.h>.
46656
46657 2008-08-18  Bruno Haible  <bruno@clisp.org>
46658
46659         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46660         glthread_recursive_lock_* macros.
46661         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46662         Fix syntax error.
46663
46664 2008-08-18  Bruno Haible  <bruno@clisp.org>
46665
46666         * lib/glthread/thread.c: Avoid forcing a context switch right after
46667         thread creation.
46668
46669 2008-08-17  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46672         * lib/glthread/thread.h: Provide Win32 specific implementation.
46673         * modules/thread (Files): Add lib/glthread/thread.c.
46674         (Depends-on): Add lock.
46675         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46676
46677 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46678
46679         New module 'yield'.
46680         * modules/yield: New file.
46681         * lib/glthread/yield.h: New file.
46682         * m4/yield.m4: New file.
46683         * MODULES.html.sh (Multithreading): Add yield.
46684
46685 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46686
46687         New module 'thread'.
46688         * modules/thread: New file.
46689         * lib/glthread/thread.h: New file.
46690         * m4/thread.m4: New file.
46691         * MODULES.html.sh (Multithreading): Add thread.
46692
46693 2008-08-17  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/glthread/lock.h: Include <stdlib.h> always.
46696         * lib/glthread/tls.h: Likewise.
46697         * lib/glthread/cond.h: Likewise.
46698
46699 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46700
46701         New module 'cond'.
46702         * modules/cond: New file.
46703         * lib/glthread/cond.h: New file.
46704         * lib/glthread/cond.c: New file.
46705         * m4/cond.m4: New file.
46706         * MODULES.html.sh (Multithreading): Add cond.
46707
46708 2008-08-16  Eric Blake  <ebb9@byu.net>
46709
46710         c-stack: fix regression on Irix 5.3 from 2008-06-21
46711         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46712         sa_sigaction...
46713         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46714         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46715         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46716         * modules/signal (Makefile.am): Use the value.
46717         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46718         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46719         * doc/posix-headers/signal.texi (signal.h): Document this
46720         portability issue.
46721         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46722         Reported by Tom G. Christensen.
46723
46724 2008-08-17  Bruno Haible  <bruno@clisp.org>
46725
46726         New module 'threadlib'.
46727         * modules/threadlib: New file.
46728         * lib/glthread/threadlib.c: New file, extracted from
46729         lib/glthread/lock.c.
46730         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46731         functions.
46732         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46733         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46734         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46735         macros.
46736         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46737         (gl_DISABLE_THREADS): Remove macro.
46738         * modules/lock (Files): Remove build-aux/config.rpath.
46739         (Depends-on): Remove havelib. Add threadlib.
46740         (configure.ac-early): Remove section.
46741         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46742         * modules/tls (Depends-on): Remove lock. Add threadlib.
46743         (Link): New section, copied from threadlib.
46744         * MODULES.html.sh (Multithreading): Add threadlib.
46745
46746 2008-08-14  Bruno Haible  <bruno@clisp.org>
46747
46748         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46749         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46750         glthread_rwlock_unlock, glthread_rwlock_destroy,
46751         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46752         glthread_recursive_lock_destroy): Define as macros always.
46753         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46754         glthread_lock_lock.
46755         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46756         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46757         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46758         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46759         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46760         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46761         (glthread_recursive_lock_lock_func): Renamed from
46762         glthread_recursive_lock_lock.
46763         (glthread_recursive_lock_unlock_func): Renamed from
46764         glthread_recursive_lock_unlock.
46765         (glthread_recursive_lock_destroy_func): Renamed from
46766         glthread_recursive_lock_destroy.
46767
46768 2008-08-14  Bruno Haible  <bruno@clisp.org>
46769
46770         * lib/glthread/lock.h: Renamed from lib/lock.h.
46771         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46772         * lib/glthread/tls.h: Renamed from lib/tls.h.
46773         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46774         * lib/fstrcmp.c: Update includes.
46775         * lib/strsignal.c: Update includes.
46776         * modules/lock (Files, Makefile.am): Update.
46777         (Include): Change to "glthread/lock.h".
46778         * modules/tls (Files, Makefile.am): Update.
46779         (Include): Change to "glthread/tls.h".
46780         * tests/test-lock.c: Update includes.
46781         * tests/test-tls.c: Update includes.
46782         * NEWS: Mention the renamed header files.
46783
46784 2008-08-11  Jim Meyering  <meyering@redhat.com>
46785
46786         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46787
46788 2008-08-11  Eric Blake  <ebb9@byu.net>
46789
46790         test-c-stack: avoid C99-ism
46791         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46792         before statement.
46793         Reported by Alain Guibert.
46794
46795 2008-08-10  Jim Meyering  <meyering@redhat.com>
46796
46797         ensure that return value of uinttostr et al are not ignored
46798         * lib/inttostr.h (__GNUC_PREREQ): Define.
46799         (__attribute_warn_unused_result__): Define.
46800         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46801
46802 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46803
46804         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46805         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46806
46807 2008-08-07  Jim Meyering  <meyering@redhat.com>
46808
46809         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46810
46811         * modules/mkstemp (License): Relicense under LGPLv2+.
46812         * modules/tempname (License): Likewise.
46813
46814 2008-08-06  Bruno Haible  <bruno@clisp.org>
46815
46816         * lib/poll.c (poll): Further micro-optimization.
46817
46818 2008-08-06  Jim Meyering  <meyering@redhat.com>
46819
46820         inet_pton.c: use locale-independent tolower
46821         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46822         (inet_pton6): Use c_tolower rather than tolower.
46823         * modules/inet_pton (Depends-on): Add c-ctype.
46824
46825 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46826
46827         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46828         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46829
46830 2008-08-06  Jim Meyering  <meyering@redhat.com>
46831
46832         * modules/inet_pton (License): Relicense under LGPLv2+.
46833
46834 2008-08-03  Bruno Haible  <bruno@clisp.org>
46835
46836         Additional non-aborting API for lock and tls.
46837         * lib/lock.h: Include <errno.h>.
46838         (glthread_lock_init): New macro/function.
46839         (gl_lock_init): Define as wrapper around glthread_lock_init.
46840         (glthread_lock_lock): New macro/function.
46841         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46842         (glthread_lock_unlock): New macro/function.
46843         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46844         (glthread_lock_destroy): New macro/function.
46845         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46846         (glthread_rwlock_init): New macro/function.
46847         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46848         (glthread_rwlock_rdlock): New macro/function.
46849         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46850         (glthread_rwlock_wrlock): New macro/function.
46851         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46852         (glthread_rwlock_unlock): New macro/function.
46853         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46854         (glthread_rwlock_destroy): New macro/function.
46855         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46856         (glthread_recursive_lock_init): New macro/function.
46857         (gl_recursive_lock_init): Define as wrapper around
46858         glthread_recursive_lock_init.
46859         (glthread_recursive_lock_lock): New macro/function.
46860         (gl_recursive_lock_lock): Define as wrapper around
46861         glthread_recursive_lock_lock.
46862         (glthread_recursive_lock_unlock): New macro/function.
46863         (gl_recursive_lock_unlock): Define as wrapper around
46864         glthread_recursive_lock_unlock.
46865         (glthread_recursive_lock_destroy): New macro/function.
46866         (gl_recursive_lock_destroy): Define as wrapper around
46867         glthread_recursive_lock_destroy.
46868         (glthread_once): New macro/function.
46869         (gl_once): Define as wrapper around glthread_once.
46870         Update function declarations.
46871         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46872         glthread_rwlock_init. Return error code.
46873         (glthread_rwlock_rdlock_multithreaded): Renamed from
46874         glthread_rwlock_rdlock. Return error code.
46875         (glthread_rwlock_wrlock_multithreaded): Renamed from
46876         glthread_rwlock_wrlock. Return error code.
46877         (glthread_rwlock_unlock_multithreaded): Renamed from
46878         glthread_rwlock_unlock. Return error code.
46879         (glthread_rwlock_destroy_multithreaded): Renamed from
46880         glthread_rwlock_destroy. Return error code.
46881         (glthread_recursive_lock_init_multithreaded): Renamed from
46882         glthread_recursive_lock_init. Return error code.
46883         (glthread_recursive_lock_lock_multithreaded): Renamed from
46884         glthread_recursive_lock_lock. Return error code.
46885         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46886         glthread_recursive_lock_unlock. Return error code.
46887         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46888         glthread_recursive_lock_destroy. Return error code.
46889         (glthread_once_call): Make static.
46890         (glthread_once_multithreaded): Renamed from glthread_once.
46891         * lib/tls.h: Include <errno.h>.
46892         (glthread_tls_key_init): New macro/function.
46893         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46894         (glthread_tls_set): New macro/function.
46895         (gl_tls_set): Define as wrapper around glthread_tls_set.
46896         (glthread_tls_key_destroy): New macro/function.
46897         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46898         Update function declarations.
46899         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46900         glthread_tls_get.
46901         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46902
46903 2008-08-04  Eric Blake  <ebb9@byu.net>
46904
46905         gnumakefile: use space, not TAB, outside of targets
46906         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46907
46908 2008-08-02  Jim Meyering  <meyering@redhat.com>
46909
46910         getdate.y: avoid locale-dependent date parsing failure
46911         In Turkish locales, getdate would fail to recognize keywords
46912         containing a lowercase "i".  The solution is not to rely on
46913         locale-sensitive case-conversion.
46914         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46915         (lookup_word): Use c_toupper in place of toupper.
46916         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46917         Reported by Vefa Bicakci <bicave@superonline.com> in
46918         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46919         * modules/getdate (Depends-on): Add c-ctype.
46920
46921 2008-08-02  Bruno Haible  <bruno@clisp.org>
46922
46923         * gnulib-tool (func_import): When updating or creating a .gitignore
46924         file, prepend each added line with a slash, and ignore leading slashes
46925         from the existing lines.
46926         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46927
46928 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46929
46930         Portability fix for GNU make 3.79.1.
46931         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46932         versions do not understand.
46933
46934 2008-08-01  Bruno Haible  <bruno@clisp.org>
46935
46936         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46937         * tests/test-isnanf.h (zero): New variable.
46938         (main): Avoid literal -0.0f.
46939         * tests/test-isnand.h (zero): New variable.
46940         (main): Avoid literal -0.0.
46941         * tests/test-isnanl.h (zero): New variable.
46942         (main): Avoid literal -0.0L.
46943         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46944         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46945         -0.0, -0.0L.
46946         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46947         (test_signbitd): Avoid literal -0.0.
46948         (test_signbitl): Avoid literal -0.0L.
46949         * tests/test-ceilf1.c (zero): New variable.
46950         (main): Avoid literal -0.0f.
46951         * tests/test-ceill.c (zero): New variable.
46952         (main): Avoid literal -0.0L.
46953         * tests/test-floorf1.c (zero): New variable.
46954         (main): Avoid literal -0.0f.
46955         * tests/test-floorl.c (zero): New variable.
46956         (main): Avoid literal -0.0L.
46957         * tests/test-roundf1.c (zero): New variable.
46958         (main): Avoid literal -0.0f.
46959         * tests/test-round1.c (zero): New variable.
46960         (main): Avoid literal -0.0.
46961         * tests/test-roundl.c (zero): New variable.
46962         (main): Avoid literal -0.0L.
46963         * tests/test-truncf1.c (zero): New variable.
46964         (main): Avoid literal -0.0f.
46965         * tests/test-trunc1.c (zero): New variable.
46966         (main): Avoid literal -0.0.
46967         * tests/test-truncl.c (zero): New variable.
46968         (main): Avoid literal -0.0L.
46969         * tests/test-frexp.c (zero): New variable.
46970         (main): Avoid literal -0.0.
46971         * tests/test-frexpl.c (zero): New variable.
46972         (main): Avoid literal -0.0L.
46973         * tests/test-ldexpl.c (zero): New variable.
46974         (main): Avoid literal -0.0L.
46975         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46976         (zerod, zerol): New variables.
46977         (test_function): Avoid literals -0.0, -0.0L.
46978         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46979         (zerod, zerol): New variables.
46980         (test_function): Avoid literals -0.0, -0.0L.
46981         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46982         (zerod, zerol): New variables.
46983         (test_function): Avoid literals -0.0, -0.0L.
46984         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46985         (zerod, zerol): New variables.
46986         (test_function): Avoid literals -0.0, -0.0L.
46987         * tests/test-strtod.c (zero): New variable.
46988         (main): Avoid literal -0.0.
46989         Reported by Jonathan C. Patschke <jp@centtech.com>.
46990
46991 2008-07-31  Jim Meyering  <meyering@redhat.com>
46992
46993         sha256.h: correct definition of SHA224_DIGEST_SIZE
46994         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46995         Reported by Paulie Pena IV <paulie4@gmail.com>.
46996         Define as 224 / 8, rather than as a literal.
46997         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46998         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46999         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47000
47001 2008-07-31  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47004         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47005         Reported by Jonathan Patschke <jp@centtech.com>.
47006
47007 2008-07-31  Bruno Haible  <bruno@clisp.org>
47008
47009         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47010         Reported by Paolo Bonzini <bonzini@gnu.org>.
47011
47012 2008-07-30  Eric Blake  <ebb9@byu.net>
47013
47014         test-strtod: allow compilation without -lm
47015         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47016         Reported by Dennis Clarke <blastwave@gmail.com>.
47017
47018 2008-07-28  Jim Meyering  <meyering@redhat.com>
47019
47020         bootstrap: work also when there are no .po files in po/
47021         * build-aux/bootstrap (update_po_files): Complete the change
47022         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47023
47024 2008-07-27  Jim Meyering  <meyering@redhat.com>
47025
47026         * users.txt: Add zile.
47027
47028 2008-07-26  Ben Pfaff  <blp@gnu.org>
47029
47030         Add missing dependencies on new m4/exponent[fdl].m4 files.
47031         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47032         * modules/isnand-nolibm: Add m4/exponentd.m4.
47033         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47034         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47035         m4/isnan[fdl].m4, because the macros actually used moved.
47036         Reported by Jim Meyering.
47037
47038 2008-07-14  Ben Pfaff  <blp@gnu.org>
47039
47040         Add isinf module.
47041         * lib/isinf.c: New file.
47042         * lib/math.in.h: Define isinf macro if we have decided to replace
47043         it.
47044         * m4/isinf.m4: New file.
47045         * m4/math_h.m4: Initialize and substitute variables for isinf
47046         module.
47047         * modules/isinf: New file.
47048         * modules/isinf-tests: New file.
47049         * modules/math: Add substitutions for new module.
47050         * tests/test-isinf.c: New file.
47051         * doc/posix-functions/isinf.texi: Mention new module.
47052         * MODULES.html.sh: Mention new module.
47053
47054 2008-07-14  Ben Pfaff  <blp@gnu.org>
47055
47056         Factor out some macros for use by additional modules.
47057         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47058         exponentf.m4.
47059         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47060         exponentd.m4.
47061         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47062         file exponentl.m4.
47063         * m4/exponentf.m4: New file.
47064         * m4/exponentd.m4: New file.
47065         * m4/exponentl.m4: New file.
47066         * modules/isnanf: Use new file m4/exponentf.m4.
47067         * modules/isnand: Use new file m4/exponentd.m4.
47068         * modules/isnanl: Use new file m4/exponentl.m4.
47069
47070 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47071
47072         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47073         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47074         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47075         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47076
47077         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47078         readlink on platforms without PATH_MAX.
47079
47080 2008-07-21  Eric Blake  <ebb9@byu.net>
47081
47082         Warn, not fail, on stale version.
47083         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47084
47085         Don't allow installation with stale devel version number.
47086         * top/GNUmakefile (_is-install-target): New macro.
47087         (_curr-ver): Forbid installation with stale version number.
47088
47089 2008-07-20  Bruno Haible  <bruno@clisp.org>
47090
47091         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47092         TESTS_ENVIRONMENT.
47093         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47094
47095 2008-07-20  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/c-stack.h (c_stack_action): Add documentation.
47098         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47099
47100 2008-07-20  Bruno Haible  <bruno@clisp.org>
47101
47102         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47103         * modules/readlink (License): Likewise.
47104
47105 2008-07-17  Eric Blake  <ebb9@byu.net>
47106
47107         * modules/c-stack (Link): Fix typo.
47108
47109         Make c-stack use libsigsegv, when available.
47110         * modules/c-stack (Depends-on): Add libsigsegv.
47111         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47112         needed.
47113         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47114         (segv_handler, overflow_handler, c_stack_action)
47115         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47116         implementation when libsigsegv is available, but only when using
47117         the library is necessary.
47118         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47119         comment, explaining why XSI check fails on Linux.
47120         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47121         * tests/test-c-stack2.sh: Tweak skip message.
47122         * NEWS: Document new link-time requirements.
47123
47124 2008-07-16  Eric Blake  <ebb9@byu.net>
47125
47126         c-stack: Expose false positives when not using libsigsegv.
47127         * modules/c-stack-tests (Files): Expand test.
47128         * tests/test-c-stack.c (main): Add means to conditionally trigger
47129         non-overflow SIGSEGV.
47130         * tests/test-c-stack2.sh: New file.
47131
47132 2008-07-14  Bruno Haible  <bruno@clisp.org>
47133
47134         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47135         Reported by Eric Blake.
47136
47137 2008-07-14  Sam Steingold  <sds@gnu.org>
47138             Bruno Haible  <bruno@clisp.org>
47139
47140         New module libsigsegv.
47141         * modules/libsigsegv: New file.
47142         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47143         modifications.
47144         * MODULES.html.sh (Signal handling): New section.
47145
47146 2008-07-14  Bruno Haible  <bruno@clisp.org>
47147
47148         * modules/unictype/ctype-* (Description): Add the word "function".
47149         Improves the resulting doc in MODULES.html.
47150
47151 2008-07-12  Ben Pfaff  <blp@gnu.org>
47152
47153         Add longlong module.
47154         * modules/longlong: New file.
47155
47156 2008-07-12  Bruno Haible  <bruno@clisp.org>
47157
47158         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47159         to empty.
47160
47161 2008-07-10  Ben Pfaff  <blp@gnu.org>
47162
47163         Add isnan module.
47164         * doc/posix-functions/isnan.texi: Mention new module.
47165         * lib/math.in.h: Define isnan macro if we have decided to replace
47166         it.
47167         * m4/isnan.m4: New file.
47168         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47169         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47170         also.
47171         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47172         redundancy.
47173         * m4/math_h.m4: Initialize and substitute variables for isnan
47174         module.
47175         * modules/isnan: New file.
47176         * modules/isnan-tests: New file.
47177         * modules/math: Add substitutions for new module.
47178         * tests/test-isnan.c: New file.
47179         * MODULES.html.sh: Mention new module.
47180
47181 2008-07-10  Ben Pfaff  <blp@gnu.org>
47182
47183         Add isnanf module.
47184         * lib/isnanf.m4: New file.
47185         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47186         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47187         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47188         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47189         * modules/isnanf: New file.
47190         * modules/isnanf-tests: New file.
47191         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47192         files.
47193         * tests/test-isnanf-nolibm.c: factored most of its contents into
47194         new file tests/test-isnanf.h.
47195         * tests/test-isnanf.h: New file.
47196         * tests/test-isnanf.c: New file.
47197         * MODULES.html.sh: Mention new module.
47198         * doc/glibc-functions/isnanf.texi: Mention new module.
47199
47200 2008-07-10  Ben Pfaff  <blp@gnu.org>
47201
47202         Add isnand module.
47203         * lib/isnand.h: New file.
47204         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47205         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47206         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47207         functionality also.
47208         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47209         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47210         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47211         * modules/isnand: New file.
47212         * modules/isnand-tests: New file.
47213         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47214         files.
47215         * tests/test-isnand-nolibm.c: factored most of its contents into
47216         new file tests/test-isnand.h.
47217         * tests/test-isnand.h: New file.
47218         * tests/test-isnand.c: New file.
47219         * MODULES.html.sh: Mention new module.
47220
47221 2008-07-10  Ben Pfaff  <blp@gnu.org>
47222
47223         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47224         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47225         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47226         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47227         * modules/isnanf-nolibm: Update references to renamed files.
47228         * modules/isnand-nolibm: Likewise.
47229         * modules/isnanf-nolibm-tests: Likewise.
47230         * modules/isnand-nolibm-tests: Likewise.
47231         * lib/frexp.c: Likewise.
47232         * lib/isfinite.c: Likewise.
47233         * lib/signbitd.c: Likewise.
47234         * lib/signbitf.c: Likewise.
47235         * lib/vasnprintf.c: Likewise.
47236         * tests/test-ceilf1.c: Likewise.
47237         * tests/test-ceilf2.c: Likewise.
47238         * tests/test-floorf1.c: Likewise.
47239         * tests/test-floorf2.c: Likewise.
47240         * tests/test-frexp.c: Likewise.
47241         * tests/test-round1.c: Likewise.
47242         * tests/test-round2.c: Likewise.
47243         * tests/test-roundf1.c: Likewise.
47244         * tests/test-strtod.c: Likewise.
47245         * tests/test-trunc1.c: Likewise.
47246         * tests/test-trunc2.c: Likewise.
47247         * tests/test-truncf1.c: Likewise.
47248         * tests/test-truncf2.c: Likewise.
47249         * NEWS: Mention the renamed header files.
47250
47251 2008-07-11  Jim Meyering  <meyering@redhat.com>
47252
47253         vc-list-files: make the last-resort awk code more portable
47254         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47255         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47256         does not support it.
47257
47258 2008-07-10  Eric Blake  <ebb9@byu.net>
47259
47260         Work with tar's bootstrap.
47261         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47262         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47263         an m4 comment.
47264
47265 2008-07-09  Jim Meyering  <meyering@redhat.com>
47266
47267         posix-shell.m4: fix typo that made this test malfunction
47268         * m4/posix-shell.m4: Remove capitalization in variable name.
47269
47270 2008-07-08  Bruno Haible  <bruno@clisp.org>
47271
47272         * m4/onceonly.m4: Update comments.
47273         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47274
47275 2008-07-04  Jim Meyering  <meyering@redhat.com>
47276
47277         * users.txt: Add vc-dwim.
47278         (bison, coreutils): Use the gitweb URL.
47279
47280 2008-07-03  Jim Meyering  <meyering@redhat.com>
47281
47282         * users.txt: Add libffcall.  From Sam Steingold.
47283
47284 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47285
47286         getdate.y: do not ignore TZ with relative day, month or year offset
47287         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47288         relative-date-handling, since otherwise, the latter would clobber the
47289         sole output (an updated Start value) of the tz-handling block.
47290         * tests/test-getdate.c: Tests for the fix
47291
47292 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47293
47294         Recognize 'foo_LIBRARIES += libgnu.a'.
47295         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47296         makefile snippet has already specified an installation location,
47297         also using '+='.
47298
47299 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47300
47301         getdate.y: factor out common actions
47302         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47303         Use them in place of open-coded actions.
47304
47305 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47306
47307         Add self-test for getdate module.
47308         * modules/getdate-tests: New file.
47309         * tests/test-getdate.c: New file.
47310
47311 2008-06-29  Bruno Haible  <bruno@clisp.org>
47312
47313         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47314         .gitignore.
47315         Reported by Sylvain Beucler <beuc@beuc.net>.
47316
47317 2008-06-29  Bruno Haible  <bruno@clisp.org>
47318
47319         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47320         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47321
47322 2008-06-29  Bruno Haible  <bruno@clisp.org>
47323
47324         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47325         EXTRA_DIST.
47326         Reported by Sylvain Beucler <beuc@beuc.net>.
47327
47328 2008-06-26  Jim Meyering  <meyering@redhat.com>
47329
47330         make several modules depend on the "open" module
47331         This provides slightly increased consistency when opening-for-write
47332         the name of a non-directory spelled with a trailing slash.
47333         * modules/chdir-safer: Likewise.
47334         * modules/chown: Likewise.
47335         * modules/clean-temp: Likewise.
47336         * modules/copy-file: Likewise.
47337         * modules/fchdir: Likewise.
47338         * modules/fcntl-safer: Likewise.
47339         * modules/pipe: Likewise.
47340         * modules/utime: Likewise.
47341         Prompted by Eric Blake and Bruno Haible.
47342
47343 2008-06-24  Andreas Schwab  <schwab@suse.de>
47344
47345         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47346         literals can be used as initializers for global variables.
47347
47348 2008-06-23  Eric Blake  <ebb9@byu.net>
47349
47350         Make gnulib-cache.m4 easier to diff.
47351         * gnulib-tool (func_import): Allow newlines when reading cached
47352         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47353
47354 2008-06-23  Bruno Haible  <bruno@clisp.org>
47355
47356         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47357         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47358         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47359         m4/signalblocking.m4.
47360         (gl_PREREQ_SIGACTION): Don't invoke it.
47361         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47362         gl_PREREQ_SIG_HANDLER_H.
47363         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47364         Don't check for sigaction here.
47365
47366 2008-06-23  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47369         (install_handlers): Don't set the SA_RESETHAND flag.
47370
47371 2008-06-23  Bruno Haible  <bruno@clisp.org>
47372
47373         * m4/sigaction.m4: Comment fixes.
47374         * lib/signal.in.h: Likewise.
47375
47376 2008-06-23  Eric Blake  <ebb9@byu.net>
47377
47378         Fix typo.
47379         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47380
47381         Avoid SA_ namespace.
47382         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47383         Reported by Ralf Wildenhues.
47384
47385         Avoid test failure due to SA_RESTORER.
47386         * tests/test-sigaction.c (SA_MASK): New macro.
47387         (main): Avoid failing due to extension flags being set.
47388         Reported by Jim Meyering.
47389
47390         Revert use of sig-handler.h in sigprocmask.c.
47391         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47392         it requires the existence of struct sigaction.
47393         * lib/sigprocmask.c (handler_t): Restore typedef.
47394         (rpl_signal, old_handlers): Use local type.
47395
47396 2008-06-22  Bruno Haible  <bruno@clisp.org>
47397
47398         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47399         conditionally.
47400         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47401
47402 2008-06-22  Bruno Haible  <bruno@clisp.org>
47403
47404         * doc/posix-functions/siginterrupt.texi: Move note.
47405
47406         * lib/signal.in.h (SA_RESTART): New macro.
47407         * lib/sigaction.c: Update comment.
47408
47409         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47410
47411         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47412         (gl_PREREQ_SIGPROCMASK): Invoke it.
47413         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47414
47415         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47416
47417         * lib/sigprocmask.c: Update a comment.
47418
47419 2008-06-21  Eric Blake  <ebb9@byu.net>
47420
47421         Use sigaction module rather than signal().
47422         * modules/c-stack (Depends-on): Add sigaction.
47423         * modules/fatal-signal (Depends-on): Likewise.
47424         * modules/nanosleep (Depends-on): Likewise.
47425         * modules/sigprocmask (Files): Add sig-handler.h.
47426         * modules/sigaction (Files): Likewise.
47427         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47428         Eggert.
47429         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47430         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47431         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47432         (init_fatal_signals): Likewise.
47433         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47434         (siginterrupt): Delete fallback.
47435         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47436         instead.
47437         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47438         siginterrupt.
47439
47440         New module sigaction, for mingw.
47441         * modules/sigaction: New module...
47442         * modules/sigaction-tests: ...and its test.
47443         * m4/sigaction.m4: New file.
47444         * lib/sigaction.c: Likewise.
47445         * tests/test-sigaction.c: Likewise.
47446         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47447         * modules/signal (Makefile.am): Likewise.
47448         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47449         needed.
47450         * doc/posix-headers/signal.texi (signal.h): Mention provided
47451         types.
47452         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47453         that sigaction is preferable.
47454         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47455         module.
47456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47457         sigaction.
47458
47459         Improve robustness of sigprocmask by overriding signal.
47460         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47461         is in use.
47462         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47463         (SIGKILL, SIGSTOP): Provide fallbacks.
47464         (rpl_signal): Implement.
47465         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47466         signal can be called inside handlers.
47467
47468         Fix nanosleep module on mingw.
47469         * modules/nanosleep (Depends-on): Add sys_select.
47470         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47471
47472         Fix licensing of sigprocmask.
47473         * modules/raise (License): Relicense as LGPL.
47474
47475 2008-06-21  Bruno Haible  <bruno@clisp.org>
47476
47477         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47478         result if it contains question marks.
47479         Reported by Michael Geng <linux@michaelgeng.de>.
47480
47481 2008-06-19  Bruno Haible  <bruno@clisp.org>
47482
47483         Fix CVS-ism.
47484         * doc/gnulib.texi: Include updated-stamp.texi.
47485         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47486         (updated-stamp.texi): New rule.
47487         (gnulib.info): Depend on it.
47488         * doc/.gitignore: Add updated-stamp.texi.
47489         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47490
47491 2008-06-19  Bruno Haible  <bruno@clisp.org>
47492
47493         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47494         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47495
47496 2008-06-19  Eric Blake  <ebb9@byu.net>
47497
47498         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47499         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47500         Reported by Stepan Kasal.
47501
47502 2008-06-18  Bruno Haible  <bruno@clisp.org>
47503
47504         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47505         Reported by Eric Blake.
47506
47507 2008-06-18  Eric Blake  <ebb9@byu.net>
47508
47509         Work around cygwin 1.5.25 strsignal bug.
47510         * tests/test-strsignal.c: Allow for const char *.
47511         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47512
47513 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47514
47515         * users.txt: Update URL to article and add author/date
47516         information.
47517
47518 2008-06-17  Bruno Haible  <bruno@clisp.org>
47519
47520         New macro gl_DISABLE_THREADS.
47521         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47522         if the user did not pass --enable-threads or --disable-threads option.
47523         (gl_DISABLE_THREADS): New macro.
47524         Reported by Eric Blake <ebb9@byu.net>.
47525
47526 2008-06-17  Bruno Haible  <bruno@clisp.org>
47527
47528         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47529         when the macro ignores it.
47530         Based on a patch by Eric Blake <ebb9@byu.net>.
47531
47532 2008-06-17  Bruno Haible  <bruno@clisp.org>
47533
47534         * modules/tls (License): Change to LGPLv2+.
47535         Reported by Eric Blake.
47536
47537 2008-06-17  Eric Blake  <ebb9@byu.net>
47538
47539         Simplify c-stack prerequisites.
47540         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47542         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47543         check.
47544         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47545         <sys/resource.h>.
47546
47547         Move c-stack test into testsuite.
47548         * modules/c-stack-tests: New file.
47549         * lib/c-stack.c [DEBUG]: Move test program...
47550         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47551         fail test if sigaltstack is lacking.
47552         * tests/test-c-stack.sh: New driver file.
47553
47554 2008-06-16  Eric Blake  <ebb9@byu.net>
47555
47556         Use raise module consistently.
47557         * modules/fatal-signal (Depends-on): Add raise.
47558         * modules/sigprocmask (Depends-on): Likewise.
47559         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47560         * lib/sigprocmask.c (sigprocmask): Likewise.
47561         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47562         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47563
47564         Fix compliance bug in sigpending.
47565         * lib/sigprocmask.c (sigpending): Return pending array via
47566         parameter, not return value.
47567
47568 2008-06-14  Eric Blake  <ebb9@byu.net>
47569
47570         Improve obstack-printf test code.
47571         * tests/test-obstack-printf.c (test_function): Fix comment, and
47572         simplify usage of obstack_* in macros.  Add a test for coverage.
47573         Reported by Bruno Haible.
47574
47575 2008-06-14  Bruno Haible  <bruno@clisp.org>
47576
47577         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47578         array size as a constant, not as a const variable.
47579         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47580         AC_USE_SYSTEM_EXTENSIONS.
47581         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47582         Test whether the obstack_printf function actually exists.
47583         * modules/obstack-printf (Depends-on): Add extensions.
47584         (Include): Remove obstack.h.
47585         * modules/obstack-printf-posix (Depends-on): Add extensions.
47586         (Include): Remove obstack.h.
47587
47588 2008-06-13  Eric Blake  <ebb9@byu.net>
47589
47590         Add obstack-printf and obstack-printf-posix modules.
47591         * modules/obstack-printf: New file.
47592         * modules/obstack-printf-posix: Likewise.
47593         * MODULES.html.sh (Misc): Mention them.
47594         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47595         Likewise.
47596         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47597         Likewise.
47598         * modules/stdio (Makefile.am): Accomodate new modules.
47599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47600         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47601         Declare.
47602         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47603         functions.
47604         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47605         (gl_REPLACE_OBSTACK_PRINTF): New macros
47606         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47607         * tests/test-obstack-printf.c: New file.
47608         * modules/obstack-printf-tests: Likewise.
47609         * modules/obstack-printf-posix-tests: Likewise.
47610
47611 2008-06-11  Bruno Haible  <bruno@clisp.org>
47612
47613         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47614         * lib/open.c: Include errno.h.
47615         (open): Fail when attempting to write to a file that has a trailing
47616         slash.
47617         * tests/test-open.c (main): Test against trailing slash bug.
47618         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47619
47620 2008-06-10  Bruno Haible  <bruno@clisp.org>
47621
47622         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47623         for $? to work inside the trap command, with various /bin/sh-s.
47624         * tests/test-vc-list-files-cvs.sh: Likewise.
47625
47626 2008-06-10  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/acl-internal.h: Don't include gettext.h here.
47629         * lib/set-mode-acl.c: Include gettext.h here.
47630         * lib/copy-acl.c: Likewise.
47631
47632 2008-06-10  Bruno Haible  <bruno@clisp.org>
47633
47634         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47635         * lib/wait-process.c (wait_subprocess): Likewise.
47636         * lib/execute.h (execute): Add termsigp argument.
47637         * lib/execute.c (execute): Likewise.
47638         * lib/csharpcomp.c (compile_csharp_using_pnet,
47639         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47640         * lib/csharpexec.c (execute_csharp_using_pnet,
47641         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47642         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47643         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47644         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47645         is_jikes_present): Update.
47646         * lib/javaexec.c (execute_java_class): Update.
47647         * lib/javaversion.c (execute_and_read_line): Update.
47648         * NEWS: Document the changes.
47649         Reported by Eric Blake.
47650
47651 2008-06-10  Eric Blake  <ebb9@byu.net>
47652
47653         Add missing include.
47654         * tests/test-strstr.c (includes): Add <signal.h>.
47655         * tests/test-strcasestr.c (includes): Likewise.
47656         * tests/test-memmem.c (includes): Likewise.
47657
47658 2008-06-10  Bruno Haible  <bruno@clisp.org>
47659
47660         * lib/wait-process.c (wait_subprocess): Add an assertion.
47661
47662 2008-06-10  Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47665
47666 2008-06-10  Bruno Haible  <bruno@clisp.org>
47667
47668         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47669         using alarm().
47670         * tests/test-strcasestr.c (main): Likewise.
47671         * tests/test-strstr.c (main): Likewise.
47672
47673 2008-06-09  Bruno Haible  <bruno@clisp.org>
47674
47675         Work around the Solaris 10 ACE ACLs ABI change.
47676         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47677         declare if ACL_NO_TRIVIAL is present.
47678         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47679         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47680         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47681         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47682         define if ACL_NO_TRIVIAL is present.
47683         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47684         and use the current ABI.
47685         (file_has_acl): Use same #if condition as elsewhere.
47686         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47687         in use, and use the current ABI.
47688         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47689         Reported by Jim Meyering.
47690
47691 2008-06-09  Eric Blake  <ebb9@byu.net>
47692
47693         Work around environments that (stupidly) ignore SIGALRM.
47694         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47695         before using alarm().
47696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47698         Reported by Ian Beckwith <ianb@erislabs.net>.
47699
47700         Produce autobuild blurb earlier in log.
47701         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47702
47703 2008-06-09  Jim Meyering  <meyering@redhat.com>
47704         and OndÅ™ej Vašík  <ovasik@redhat.com>
47705
47706         utimens.c: correct kernel bug work-around
47707         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47708         failure, not success, and the kernel bug we're trying to work
47709         around affects not just the utimensat call, but also the fallback
47710         futimens call.
47711         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47712         not success.
47713         [HAVE_FUTIMENS]: Use the same work-around, here.
47714
47715 2008-06-09  Jim Meyering  <meyering@redhat.com>
47716
47717         add more guards around definition of ACE_-related code
47718         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47719         ALLOW and ACE_OWNER are also defined.
47720
47721 2008-06-08  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/acl-internal.h: Add me as co-author.
47724         * lib/file-has-acl.c: Likewise.
47725         * lib/set-mode-acl.c: Likewise.
47726         * lib/copy-acl.c: Likewise.
47727
47728 2008-06-08  Bruno Haible  <bruno@clisp.org>
47729
47730         Add support for AIX ACLs.
47731         * lib/acl-internal.h (acl_nontrivial): New declaration.
47732         * lib/file-has-acl.c (acl_nontrivial): New function.
47733         (file_has_acl): Add implementation using AIX 4 ACL API.
47734         * lib/set-mode-acl.c (qset_acl): Likewise.
47735         * lib/copy-acl.c (qcopy_acl): Likewise.
47736
47737 2008-06-08  Bruno Haible  <bruno@clisp.org>
47738
47739         Add support for HP-UX ACLs.
47740         * lib/acl-internal.h (acl_nontrivial): New declaration.
47741         * lib/file-has-acl.c (acl_nontrivial): New function.
47742         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47743         * lib/set-mode-acl.c (qset_acl): Likewise.
47744         * lib/copy-acl.c (qcopy_acl): Likewise.
47745
47746 2008-06-08  Bruno Haible  <bruno@clisp.org>
47747
47748         Add support for Cygwin ACLs.
47749         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47750         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47751         the chmod_or_fchmod call.
47752         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47753
47754 2008-06-08  Bruno Haible  <bruno@clisp.org>
47755
47756         Fix bug with setuid modes in Solaris 10+ code.
47757         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47758         succeeded, when the mode contains some special bits.
47759
47760 2008-06-08  Bruno Haible  <bruno@clisp.org>
47761
47762         Add support for Solaris 7..10 ACLs.
47763         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47764         declarations.
47765         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47766         functions.
47767         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47768         * lib/set-mode-acl.c (qset_acl): Likewise.
47769         * lib/copy-acl.c (qcopy_acl): Likewise.
47770
47771 2008-06-08  Bruno Haible  <bruno@clisp.org>
47772
47773         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47774         declaration.
47775         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47776         (acl_access_nontrivial): Remove MacOS X case.
47777         (file_has_acl): Use acl_extended_nontrivial.
47778         * lib/copy-acl.c (qcopy_acl): Likewise.
47779
47780 2008-06-08  Bruno Haible  <bruno@clisp.org>
47781
47782         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47783
47784 2008-06-08  Jim Meyering  <meyering@redhat.com>
47785
47786         * modules/acl (Maintainer): Add Bruno Haible.
47787
47788 2008-06-07  Bruno Haible  <bruno@clisp.org>
47789
47790         Improve support for Tru64 ACLs.
47791         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47792         ACL on OSF/1.
47793
47794 2008-06-07  Bruno Haible  <bruno@clisp.org>
47795
47796         Add support for MacOS X ACLs.
47797         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47798         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47799         * lib/set-mode-acl.c (qset_acl): Likewise.
47800         * lib/copy-acl.c (qcopy_acl): Likewise.
47801
47802 2008-06-07  Bruno Haible  <bruno@clisp.org>
47803
47804         Fix memory leak introduced on 2008-05-22.
47805         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47806         use.
47807
47808 2008-06-07  Bruno Haible  <bruno@clisp.org>
47809
47810         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47811         to construct an empty ACL.
47812
47813 2008-06-07  Bruno Haible  <bruno@clisp.org>
47814
47815         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47816         precisely.
47817         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47818
47819 2008-06-07  Bruno Haible  <bruno@clisp.org>
47820
47821         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47822         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47823
47824 2008-06-07  Bruno Haible  <bruno@clisp.org>
47825
47826         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47827         regardless of POSIX.
47828         * doc/posix-functions/_longjmp.texi: Likewise.
47829         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47830         SystemV platform in this case.
47831
47832 2008-06-06  Eric Blake  <ebb9@byu.net>
47833
47834         Document abort() bugs.
47835         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47836
47837         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47838         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47839         sigsetjmp.
47840         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47841         siglongjmp, but only as a macro.
47842         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47843         is obsolete.
47844         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47845
47846         Tweak documentation to cover cygwin argz bugs.
47847         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47848         argz bug fix; no code change needed since no cygwin releases
47849         occurred between the last fix and the bug being tested.
47850         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47851         module and recently fixed cygwin bugs.
47852         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47853         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47854         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47855         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47856         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47857         Likewise.
47858         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47859         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47860         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47861         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47862         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47863         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47864         Likewise.
47865
47866         Avoid gcc warning on cygwin.
47867         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47868         !ACL_NO_TRIVIAL]: Avoid unused variable.
47869
47870 2008-06-05  Eric Blake  <ebb9@byu.net>
47871
47872         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47873         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47874         git-version-gen fails to come up with a version.
47875         Reported by Simon Josefsson.
47876
47877 2008-06-05  Jim Meyering  <meyering@redhat.com>
47878             Paul Eggert  <eggert@cs.ucla.edu>
47879
47880         utimens.c: work around a probable Linux kernel bug
47881         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47882         appears to be a kernel bug that causes utimensat to return 280
47883         instead of 0, indicating success.
47884
47885 2008-06-04  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47888         2008-06-01 commit.
47889
47890 2008-06-04  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47893         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47894         (file_has_acl): Use it. Save errno afterwards.
47895         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47896
47897 2008-06-03  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47900         draft code. Simplify #ifs.
47901         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47902         Put Solaris code after POSIX-draft code. Fix comments regarding
47903         Solaris 10, HP-UX. Mention Cygwin.
47904         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47905
47906 2008-06-03  Eric Blake  <ebb9@byu.net>
47907
47908         Provide fallback for older kernels.
47909         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47910         Provide runtime fallback if kernel lacks support.
47911         Reported by Mike Frysinger.
47912
47913 2008-06-02  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47916         it exists.
47917
47918 2008-06-02  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47921         * lib/copy-acl.c (qcopy_acl): Update comment.
47922
47923 2008-06-02  Bruno Haible  <bruno@clisp.org>
47924
47925         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47926         like ACL APIs.
47927
47928 2008-06-02  Bruno Haible  <bruno@clisp.org>
47929
47930         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47931         * tests/test-set-mode-acl.sh: Likewise.
47932         * tests/test-copy-acl.sh: Likewise.
47933         * tests/test-copy-file.sh: Likewise.
47934
47935 2008-06-02  Bruno Haible  <bruno@clisp.org>
47936
47937         * tests/test-file-has-acl.sh: Remove unused code.
47938
47939 2008-06-01  Bruno Haible  <bruno@clisp.org>
47940
47941         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47942         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47943         messages.
47944         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47945
47946 2008-06-01  Bruno Haible  <bruno@clisp.org>
47947
47948         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47949         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47950         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47951         APIs.
47952         * modules/acl-tests (configure.ac): Remove tests now contained in
47953         m4/acl.m4.
47954
47955 2008-06-02  Jim Meyering  <meyering@redhat.com>
47956
47957         announce-gen: use a better key-server host name
47958         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47959         it may be more consistently reliable.  Suggested by Werner Koch
47960         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47961
47962 2008-06-01  Bruno Haible  <bruno@clisp.org>
47963
47964         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47965         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47966
47967 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47968
47969         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47970
47971 2008-06-01  Bruno Haible  <bruno@clisp.org>
47972
47973         New ACL tests.
47974         * tests/test-file-has-acl.sh: New file.
47975         * tests/test-file-has-acl.c: New file.
47976         * tests/test-set-mode-acl.sh: New file.
47977         * tests/test-set-mode-acl.c: New file.
47978         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47979         * tests/test-copy-acl.c: New file.
47980         * modules/acl-tests: New file, based on modules/copy-file-tests.
47981         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47982         (Depends-on): Add acl-tests.
47983         (configure.ac): Remove checks.
47984         (Makefile.am): Don't create test-sameacls program here any more.
47985
47986 2008-06-01  Bruno Haible  <bruno@clisp.org>
47987
47988         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47989         * tests/test-sameacls.c: Include progname.h.
47990         (main): Invoke set_program_name. Portability fixes for MacOS X,
47991         Solaris, HP-UX.
47992
47993 2008-06-01  Bruno Haible  <bruno@clisp.org>
47994
47995         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47996         function.
47997         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47998
47999 2008-06-01  Bruno Haible  <bruno@clisp.org>
48000
48001         * modules/rpmatch (Depends-on): Add strdup.
48002
48003 2008-06-01  Bruno Haible  <bruno@clisp.org>
48004
48005         * lib/pipe.c: Include unistd-safer.h.
48006         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48007         * modules/pipe (Depends-on): Add unistd-safer.
48008
48009 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48010
48011         * modules/autobuild (configure.ac): Call AB_INIT.
48012
48013 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48014
48015         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48016         Suggested by Bruno Haible <bruno@clisp.org>.
48017
48018 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48019
48020         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48021         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48022         <bruno@clisp.org>.
48023
48024 2008-05-29  Eric Blake  <ebb9@byu.net>
48025
48026         Prefer new POSIX 200x interfaces over futimesat.
48027         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48028         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48029         when available.
48030         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48031
48032 2008-05-28  Bruno Haible  <bruno@clisp.org>
48033
48034         * modules/stpcpy (License): Change to LGPLv2+.
48035         Requested by David Lutterkort <dlutter@redhat.com>.
48036
48037 2008-05-27  Bruno Haible  <bruno@clisp.org>
48038
48039         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48040         current mingw.
48041         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48042
48043 2008-05-27  Bruno Haible  <bruno@clisp.org>
48044
48045         * modules/iconv_open (Link): New section, from module 'iconv'.
48046         * modules/striconv (Link): Likewise.
48047         * modules/striconveh (Link): Likewise.
48048         * modules/xstriconv (Link): Likewise.
48049         * modules/unicodeio (Link): Likewise.
48050         * modules/propername (Link): Likewise.
48051         Reported by Jim Meyering.
48052
48053 2008-05-26  Jim Meyering  <meyering@redhat.com>
48054
48055         sha256: do not artificially restrict buffer length to be < 2^32
48056         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48057         uint32_t to size_t.
48058         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48059         to match.
48060
48061         avoid unaligned access errors, e.g., on sparc
48062         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48063         direct access through a possibly-unaligned uint64* pointer.
48064         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48065         direct access through a possibly-unaligned uint32* pointer.
48066         Prompted by this patch from Tom "spot" Callaway:
48067         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48068
48069         sha512.c: fix typo in comment
48070         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48071
48072 2008-05-25  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48075         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48076         (Makefile.am): Update lib_SOURCES.
48077
48078 2008-05-25  Bruno Haible  <bruno@clisp.org>
48079
48080         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48081
48082 2008-05-25  Jim Meyering  <meyering@redhat.com>
48083
48084         useless-if-before-free: freed expr may have white-space differences
48085         * build-aux/useless-if-before-free: Recognize cases in which the
48086         freed expression differs from the tested one in embedded white
48087         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48088         $1 was used, so we can't make any regexp shy.  Improved tests now
48089         detect this.
48090
48091         useless-if-before-free: accept white space in the expression.
48092         * build-aux/useless-if-before-free: For now, any white space
48093         in the expression must be identical in the free argument.
48094
48095         useless-if-before-free: efficiency tweak
48096         * build-aux/useless-if-before-free: Make the expression-matching
48097         regexp "shy".
48098         Make the *outer* regexp shy, not the expr-matching one.
48099
48100         update code-in-comment to accept cast of free arg
48101         * build-aux/useless-if-before-free: Update regexp.
48102
48103 2008-05-25  Bruno Haible  <bruno@clisp.org>
48104
48105         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48106         * modules/copy-file-tests (Files, Makefile.am): Update.
48107         * tests/test-copy-file.c (func_test_copy): Update.
48108
48109 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48110
48111         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48112
48113 2008-05-23  Bruno Haible  <bruno@clisp.org>
48114
48115         Improve support for ACLs on OSF/1.
48116         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48117         Remove fallback for unknown flavors of ACLs.
48118
48119 2008-05-22  Bruno Haible  <bruno@clisp.org>
48120
48121         Add support for ACLs on OSF/1.
48122         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48123         replacements.
48124         (acl_free_text): New macro fallback.
48125         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48126         acl_free.
48127         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48128         acl_free_text function. Require AC_C_INLINE.
48129
48130 2008-05-22  Bruno Haible  <bruno@clisp.org>
48131
48132         Make copy_acl work on MacOS X 10.5.
48133         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48134         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48135         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48136         If MODE_INSIDE_ACL, don't assume that every system has the same text
48137         representation for ACLs as FreeBSD.
48138         * lib/copy-acl.c (copy_acl): Add support for platforms with
48139         !MODE_INSIDE_ACL.
48140         * lib/file-has-acl.c (file_has_acl): Likewise.
48141         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48142         FreeBSD, MacOS X, or IRIX, respectively.
48143
48144 2008-05-22  Bruno Haible  <bruno@clisp.org>
48145
48146         * lib/acl.h: Don't include <sys/acl.h>.
48147         (GETACLCNT): Move fallback to lib/acl-internal.h.
48148         * lib/acl-internal.h: Include <sys/acl.h> here.
48149         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48150
48151 2008-05-22  Bruno Haible  <bruno@clisp.org>
48152
48153         Split off copy_acl function to separate file.
48154         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48155         * lib/acl.c (copy_acl): Moved function to separate file.
48156         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48157         * modules/acl (Files): Add lib/copy-acl.c.
48158         (Makefiles.am): Augment lib_SOURCES.
48159
48160 2008-05-22  Bruno Haible  <bruno@clisp.org>
48161
48162         * modules/copy-file-tests: New file.
48163         * tests/test-copy-file.sh: New file.
48164         * tests/test-copy-file.c: New file.
48165         * tests/test-copy-file-sameacls.c: New file.
48166
48167 2008-05-22  Eric Blake  <ebb9@byu.net>
48168
48169         Avoid gcc warning.
48170         * tests/test-memcmp.c (main): Pass NULL indirectly.
48171
48172 2008-05-21  Bruno Haible  <bruno@clisp.org>
48173
48174         Add reference doc about ACLs.
48175         * doc/acl-resources.txt: New file.
48176         * doc/acl-cygwin.txt: New file.
48177
48178 2008-05-21  Bruno Haible  <bruno@clisp.org>
48179
48180         Avoid one more warning from gcc.
48181         * lib/vasnprintf.c (IF_LINT): Update comments.
48182         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48183
48184 2008-05-21  Jim Meyering  <meyering@redhat.com>
48185
48186         avoid a warning from gcc
48187         * lib/vasnprintf.c (IF_LINT): Define.
48188         (scale10_round_decimal_long_double):
48189         Use it to avoid a "may be used uninitialized" warning.
48190         (scale10_round_decimal_double): Likewise.
48191
48192 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48193
48194         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48195         declared.
48196
48197 2008-05-20  Bruno Haible  <bruno@clisp.org>
48198
48199         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48200         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48201
48202 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48203
48204         * modules/memcmp-tests: New file.
48205         * tests/test-memcmp.c: New file.
48206
48207 2008-05-19  Bruno Haible  <bruno@clisp.org>
48208
48209         * modules/propername (Notice, configure.ac): Put quoted "..." into
48210         --keyword option.
48211         * lib/propername.h: Update comments accordingly.
48212         Reported by Eric Blake.
48213
48214 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48215
48216         * modules/getpass-gnu (Depends-on): Add fseeko.
48217
48218 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48219
48220         * modules/base64-tests: New file.
48221
48222 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48223
48224         * lib/base64.c (base64_decode_ctx): If a decode context structure
48225         was passed in use it to ignore newlines.  If a context structure
48226         was _not_ passed in, continue to treat newlines as garbage (this
48227         is the historical behavior).  Formerly base64_decode.
48228         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48229         takes a decode context structure.
48230         * lib/base64.h (base64_decode): Macro for four-argument calls.
48231         (base64_decode_alloc): Likewise.
48232         * lib/base64.c (base64_decode_ctx): If a decode context structure
48233         was passed in use it to ignore newlines.  If a context structure
48234         was _not_ passed in, continue to treat newlines as garbage (this
48235         is the historical behavior).  Formerly base64_decode.
48236         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48237         takes a decode context structure.
48238         * lib/base64.h (base64_decode): Macro for four-argument calls.
48239         (base64_decode_alloc): Likewise.
48240
48241 2008-05-19  Jim Meyering  <meyering@redhat.com>
48242
48243         avoid a warning from gcc
48244         * lib/trim.c (IF_LINT): Define.
48245         (trim2): Use it to avoid a "may be used uninitialized" warning.
48246
48247         Fix doc typo.
48248         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48249
48250 2008-05-19  Bruno Haible  <bruno@clisp.org>
48251
48252         * doc/glibc-functions/getpass.texi: Document limits of other
48253         implementations.
48254
48255 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48256             Bruno Haible <bruno@clisp.org>
48257
48258         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48259
48260 2008-05-18  Bruno Haible  <bruno@clisp.org>
48261
48262         * modules/propername: New file, from GNU gettext.
48263         * lib/propername.h: New file, from GNU gettext.
48264         * lib/propername.c: New file, from GNU gettext.
48265         * MODULES.html.sh (Internationalization functions): Add propername.
48266
48267 2008-05-16  Jim Meyering  <meyering@redhat.com>
48268             Bruno Haible  <bruno@clisp.org>
48269
48270         Avoid some warnings from "gcc -Wshadow".
48271         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48272
48273 2008-05-15  Eric Blake  <ebb9@byu.net>
48274
48275         Extend previous patch to cygwin 1.7.0.
48276         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48277         fast implementation in cygwin >= 1.7.0.
48278         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48280
48281 2008-05-15  Bruno Haible  <bruno@clisp.org>
48282
48283         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48284         implementation in glibc >= 2.9.
48285         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48287
48288 2008-05-15  Bruno Haible  <bruno@clisp.org>
48289
48290         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48291         (Unicode string functions): Add unilbrk/*.
48292         Reported by Karl Berry.
48293
48294 2008-05-15  Eric Blake  <ebb9@byu.net>
48295
48296         Fix violation of <stdbool.h> replacement in regex.
48297         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48298         * lib/regexec.c (re_search_internal): Likewise.
48299         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48300
48301 2008-05-15  Jim Meyering  <meyering@redhat.com>
48302
48303         avoid distracting test output when git or cvs is not found
48304         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48305         * tests/test-vc-list-files-git.sh: Likewise.
48306
48307 2008-05-15  Eric Blake  <ebb9@byu.net>
48308
48309         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48310         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48311         glibc version.
48312         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48313         * doc/posix-functions/strstr.texi (strstr): Likewise.
48314         * lib/str-two-way.h (MAX): Sychronize with glibc.
48315
48316 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48317
48318         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48319         opr.ctx_type.
48320         (calc_first): Initialize constraint field.
48321         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48322         Fix grammar.
48323         (duplicate_node): Merge constraint field for all node types.
48324         (calc_eclosure_iter): Look at constraint field for all node types.
48325         * lib/regex_internal.c (create_cd_newstate): Don't look at
48326         opr.ctx_type.
48327
48328 2008-05-14  Bruno Haible  <bruno@clisp.org>
48329
48330         Help GCC to do better code generation.
48331         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48332         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48333         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48334         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48335         Declare with attribute 'malloc' if supported.
48336
48337 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48338
48339         use "echo STR|wc -c" rather than unportable "expr length STR"
48340         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48341         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48342
48343 2008-05-14  Jim Meyering  <meyering@redhat.com>
48344
48345         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48346         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48347         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48348         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48349         via Collin Lasse.
48350
48351 2008-05-14  Eric Blake  <ebb9@byu.net>
48352
48353         Avoid quadratic growth in gl_LIBSOURCES.
48354         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48355         Suggested by Bruno Haible.
48356
48357         Test xmemdup0.
48358         * modules/xmemdup0-tests: New file.
48359         * tests/test-xmemdup0.c: Likewise.
48360
48361 2008-05-13  Eric Blake  <ebb9@byu.net>
48362
48363         Split xmemdup0 into its own module.
48364         * modules/xmemdup0: New file.
48365         * lib/xmemdup0.h: Likewise.
48366         * lib/xmemdup0.c: Likewise.
48367         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48368         * lib/xalloc.h (xmemdup0): Remove.
48369         * lib/xmalloc.c (xmemdup0): Likewise.
48370
48371 2008-05-13  Eric Blake  <ebb9@byu.net>
48372             Bruno Haible  <bruno@clisp.org>
48373
48374         Reduce number of forks required during autoconf.
48375         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48376         and gl_LIBSOURCES_DIR.
48377         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48378         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48379         m4_syscmd per file.
48380         <m4_foreach_w>: Move...
48381         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48382
48383 2008-05-13  Eric Blake  <ebb9@byu.net>
48384
48385         * gnulib-tool: Fix various comment typos.
48386
48387 2008-05-12  Bruno Haible  <bruno@clisp.org>
48388
48389         Tailor the linebreaking algorithm.
48390         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48391
48392 2008-05-12  Bruno Haible  <bruno@clisp.org>
48393
48394         Update to Unicode 5.0.0.
48395         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48396         LBP_JV, LBP_JT. Redistribute values.
48397         (unilbrk_table): Change size.
48398         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48399         Unicode TR#14 rev. 22.
48400         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48401         LBP_JV, LBP_JT. Redistribute values.
48402         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48403         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48404         Update.
48405         * lib/unilbrk/lbrkprop1.h: Regenerated.
48406         * lib/unilbrk/lbrkprop2.h: Regenerated.
48407         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48408         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48409         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48410         Likewise.
48411         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48412         Likewise.
48413         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48414         result.
48415         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48416         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48417         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48418         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48419         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48420         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48421
48422 2008-05-11  Bruno Haible  <bruno@clisp.org>
48423
48424         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48425
48426 2008-05-11  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48429         * modules/unilbrk/gen-lbrk: New file.
48430
48431 2008-05-11  Bruno Haible  <bruno@clisp.org>
48432
48433         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48434         * m4/sha512.m4 (gl_SHA512): Likewise.
48435
48436 2008-05-11  Jim Meyering  <meyering@redhat.com>
48437
48438         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48439         * modules/crypto/sha256: New file.
48440         * modules/crypto/sha512: Likewise.
48441         * lib/sha256.c: Likewise.
48442         * lib/sha256.h: Likewise.
48443         * lib/sha512.c: Likewise.
48444         * lib/sha512.h: Likewise.
48445         * lib/u64.h: Likewise.
48446         * m4/sha256.m4: Likewise.
48447         * m4/sha512.m4: Likewise.
48448         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48449
48450 2008-05-10  Bruno Haible  <bruno@clisp.org>
48451
48452         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48453         (Input/Output <stdio.h>): Add xprintf.
48454         (Signal handling <signal.h>): Add strsignal.
48455         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48456         (Core language properties): Add func.
48457         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48458         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48459         strings.
48460         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48461         (Input/output): New section.
48462         (File system functions): Add openat-die, stat-macros.
48463         (Networking functions): Add sockets.
48464         (Unicode string functions): Add unictype/*.
48465         (Support for building libraries and executables): Add gperf.
48466         (Support for building documentation): Add agpl-3.0.
48467         (Misc): Add nocrash.
48468
48469 2008-05-10  Bruno Haible  <bruno@clisp.org>
48470
48471         * modules/unictype/gen-ctype: New file.
48472
48473 2008-05-10  Jim Meyering  <meyering@redhat.com>
48474
48475         Make chdir-safer.c more efficient on a system with no symlinks.
48476         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48477         also if ELOOP is zero.  Suggested by Bruno Haible.
48478
48479         Make chdir-safer.c slightly safer.
48480         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48481         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48482
48483         Avoid compile failure on systems without ELOOP (like mingw).
48484         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48485         Reported by Bruno Haible.
48486
48487 2008-05-10  Bruno Haible  <bruno@clisp.org>
48488
48489         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48490         (is_utf8_encoding): Use a case-insensitive comparison.
48491         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48492         streq.
48493
48494 2008-05-10  Bruno Haible  <bruno@clisp.org>
48495
48496         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48497         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48498         * lib/unilbrk/ulc-common.h (iconv_string_length,
48499         iconv_string_keeping_offsets): Remove declarations.
48500         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48501         Don't include <iconv.h>, streq.h, xsize.h.
48502         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48503         conversion.
48504         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48505         <iconv.h>, streq.h, xsize.h.
48506         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48507         conversion.
48508         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48509         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48510         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48511         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48512
48513 2008-05-10  Bruno Haible  <bruno@clisp.org>
48514
48515         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48516         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48517
48518         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48519         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48520
48521         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48522         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48523
48524         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48525         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48526
48527         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48528         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48529
48530         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48531         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48532
48533         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48534         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48535
48536         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48537         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48538
48539 2008-05-10  Bruno Haible  <bruno@clisp.org>
48540
48541         Split up 'linebreak' module.
48542         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48543         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48544         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48545         modifications.
48546         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48547         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48548         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48549         lib/linebreak.c.
48550         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48551         lib/linebreak.c.
48552         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48553         lib/linebreak.c.
48554         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48555         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48556         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48557         lib/linebreak.c.
48558         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48559         lib/linebreak.c.
48560         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48561         lib/linebreak.c.
48562         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48563         lib/linebreak.c.
48564         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48565         lib/linebreak.c.
48566         * modules/unilbrk/base: New file.
48567         * modules/unilbrk/tables: New file.
48568         * modules/unilbrk/u8-possible-linebreaks: New file.
48569         * modules/unilbrk/u16-possible-linebreaks: New file.
48570         * modules/unilbrk/u32-possible-linebreaks: New file.
48571         * modules/unilbrk/ulc-common: New file.
48572         * modules/unilbrk/ulc-possible-linebreaks: New file.
48573         * modules/unilbrk/u8-width-linebreaks: New file.
48574         * modules/unilbrk/u16-width-linebreaks: New file.
48575         * modules/unilbrk/u32-width-linebreaks: New file.
48576         * modules/unilbrk/ulc-width-linebreaks: New file.
48577         * lib/linebreak.h: Remove file.
48578         * lib/linebreak.c: Remove file.
48579         * m4/linebreak.m4: Remove file.
48580         * modules/linebreak: Remove file.
48581         * NEWS: Mention the changes.
48582
48583 2008-05-09  Eric Blake  <ebb9@byu.net>
48584
48585         Add xmemdup0.
48586         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48587         implementation.
48588         * lib/xmalloc.c (xmemdup0): New C implementation.
48589
48590 2008-05-08  Bruno Haible  <bruno@clisp.org>
48591
48592         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48593
48594 2008-05-07  Eric Blake  <ebb9@byu.net>
48595
48596         Support cross-compilation of <wctype.h>.
48597         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48598         AC_CACHE_CHECK.
48599
48600 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48601
48602         * build-aux/vc-list-files: Add support for bzr.
48603
48604 2008-05-03  Jim Meyering  <meyering@redhat.com>
48605
48606         avoid failed assertion with tight malloc
48607         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48608
48609 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48610
48611         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48612         are needed from arpa/inet.h.
48613         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48614         Reported by Bruno Haible.
48615
48616 2008-05-02  Jim Meyering  <meyering@redhat.com>
48617
48618         avoid compilation error on FreeBSD 6
48619         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48620
48621 2008-05-01  Jim Meyering  <meyering@redhat.com>
48622
48623         useless-if-before-free: correct --help's exit status description
48624         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48625         for one or more matches, etc.  Reported by Bruno Haible.
48626
48627         vc-list-files: make the stand-alone gnulib test work
48628         * modules/vc-list-files-tests (configure.ac):
48629         Define and AC_SUBST abs_aux_dir.
48630         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48631         $(abs_top_srcdir) to each script and having each of them
48632         duplicate the work of setting PATH, set PATH here, using
48633         the new variable, abs_aux_dir instead.
48634         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48635         * tests/test-vc-list-files-git.sh: Likewise.
48636         Reported by Bruno Haible.
48637
48638 2008-05-01  Bruno Haible  <bruno@clisp.org>
48639
48640         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48641         reallocation. Rename 'done' to 'found_delimiter'.
48642
48643 2008-05-01  Jim Meyering  <meyering@redhat.com>
48644
48645         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48646         * build-aux/vc-list-files: Use `...`, not $(...).
48647
48648 2008-04-30  Jim Meyering  <meyering@redhat.com>
48649
48650         add tests for vc-list-files
48651         * modules/vc-list-files-tests: New module.
48652         * tests/test-vc-list-files-cvs.sh: New file.
48653         * tests/test-vc-list-files-git.sh: New file.
48654
48655         avoid a warning from gcc
48656         * lib/getndelim2.c (IF_LINT): Define.
48657         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48658
48659         vc-list-files: work properly with build-aux/cvsu, too
48660         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48661         to all cvs-based clauses.
48662
48663         vc-list-files: work properly in the CVS+awk case, too
48664         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48665
48666         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48667         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48668         take more than one file argument, so .  Add quotes, just in case $dir
48669         ever contains a shell meta-character.  Prompted by Soren Hansen in
48670         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48671
48672 2008-04-29  Eric Blake  <ebb9@byu.net>
48673
48674         Optimize getndelim2 to use block operations when possible.
48675         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48676         freadseek, and memchr2.
48677         * lib/getndelim2.c (getndelim2): Use them for block reads.
48678
48679 2008-04-29  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48682         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48683         * modules/inet_ntop (Depends-on): Add extensions.
48684         * modules/inet_pton (Depends-on): Likewise.
48685         Reported by Simon Josefsson.
48686
48687 2008-04-29  Jim Meyering  <meyering@redhat.com>
48688
48689         When the is more than one match in a block, match all of them.
48690         * build-aux/useless-if-before-free: Iterate through each block
48691         until there are no more matches.
48692
48693         Fix broken useless-if-before-free script.
48694         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48695         the expression to match cast of argument to free-like function.
48696
48697 2008-04-29  Eric Blake  <ebb9@byu.net>
48698
48699         Use new header.
48700         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48701
48702 2008-04-29  Jim Meyering  <meyering@redhat.com>
48703
48704         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48705         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48706         by gnulib to exist and to declare e.g., inet_ntop.
48707         Don't include "inet_ntop.h", now removed.
48708
48709         * m4/arpa_inet_h.m4: Remove trailing blanks.
48710
48711 2008-04-29  Eric Blake  <ebb9@byu.net>
48712
48713         Silence valgrind on safe reads beyond potential array bounds.
48714         * lib/rawmemchr.valgrind: New file.
48715         * lib/strchrnul.valgrind: Likewise.
48716         * modules/rawmemchr (Files): Distribute new file.
48717         * modules/strchrnul (Files): Likewise.
48718         Suggested by Bruno Haible.
48719
48720 2008-04-29  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48723         (inet_ntop, inet_pton): Change portability warning's wording.
48724         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48725         Invoke gl_CHECK_NEXT_HEADERS.
48726         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48727         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48728         set ARPA_INET_H.
48729         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48730         * modules/arpa_inet (Description): No longer only for systems that
48731         lack it.
48732         (Depends-on): Add include_next.
48733         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48734         HAVE_ARPA_INET_H.
48735
48736 2008-04-29  Jim Meyering  <meyering@redhat.com>
48737
48738         * modules/mkdir (License): Re-license as LGPLv2+.
48739
48740 2008-04-29  Bruno Haible  <bruno@clisp.org>
48741
48742         * modules/rawmemchr (Maintainer): Set to Eric.
48743         * modules/strchrnul (Maintainer): Likewise.
48744
48745 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48746
48747         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48748         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48749
48750         * modules/arpa_inet (arpa/inet.h): Use them.
48751
48752 2008-04-28  Eric Blake  <ebb9@byu.net>
48753
48754         Test getndelim2.
48755         * modules/getndelim2-tests: New file.
48756         * tests/test-getndelim2.c: Likewise.
48757         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48758         stream.
48759         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48760
48761         * MODULES.html.sh: Document new module.
48762
48763 2008-04-20  Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/c-stack.c (die): Use raise.
48766         * modules/c-stack (Depends-on): Add raise.
48767
48768 2008-04-28  Bruno Haible  <bruno@clisp.org>
48769
48770         Expect rpmatch to be declared.
48771         * lib/yesno.c (rpmatch): Remove declaration.
48772
48773         Declare rpmatch.
48774         * lib/stdlib.in.h (rpmatch): New declaration.
48775         * lib/rpmatch.c: Include <stdlib.h> first.
48776         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48777         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48779         HAVE_RPMATCH.
48780         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48782         (Include): Set to <stdlib.h>.
48783         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48784         HAVE_RPMATCH.
48785         * NEWS: Document the change.
48786
48787 2008-04-28  Bruno Haible  <bruno@clisp.org>
48788
48789         Change rpmatch to use nl_langinfo when appropriate.
48790         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48791         (N_): New macro.
48792         (localized_pattern): New function/macro.
48793         (try): Remove match, nomatch arguments. Copy the pattern into safe
48794         memory before caching it.
48795         (rpmatch): Use localized_pattern. Add translator comments.
48796         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48797         Suggested by Eric Blake.
48798         * modules/rpmatch (Depends-on): Add stdbool.
48799
48800 2008-04-28  Eric Blake  <ebb9@byu.net>
48801
48802         Add rawmemchr module, matching glibc.
48803         * modules/string (Makefile.am): New indicator.
48804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48805         * lib/string.in.h (rawmemchr): Declare when appropriate.
48806         * modules/rawmemchr: New file.
48807         * m4/rawmemchr.m4: Likewise.
48808         * lib/rawmemchr.c: Likewise.
48809         * modules/rawmemchr-tests: Likewise.
48810         * tests/test-rawmemchr.c: Likewise.
48811         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48812         module.
48813         * modules/strchrnul (Depends-on): Add rawmemchr.
48814         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48815
48816         Whitespace cleanup.
48817         * tests/test-strchrnul.c: Reindent.
48818         * lib/strchrnul.c: Likewise.
48819
48820         Optimize and test strchrnul.
48821         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48822         * modules/strchrnul-tests: New file.
48823         * tests/test-strchrnul.c: Likewise.
48824
48825         Remove intprops dependency.
48826         * modules/memchr (Depends-on): Remove intprops.
48827         * modules/memrchr (Depends-on): Likewise.
48828         * modules/memchr2 (Depends-on): Likewise.
48829         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48830         * lib/memrchr.c (__memrchr): Likewise.
48831         * lib/memrchr2.c (memchr2): Likewise.
48832         Reported by Simon Josefsson.
48833
48834 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48835
48836         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48837         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48838
48839 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48840
48841         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48842
48843         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48844
48845         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48846
48847         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48848         declarations.
48849         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48850
48851         * m4/inet_pton.m4: Don't check for header files.
48852
48853         * m4/inet_ntop.m4: Don't check for header files.
48854
48855 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48856
48857         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48858         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48859         trigger for cygwin).
48860         Reported by Bruno Haible  <bruno@clisp.org>.
48861
48862 2008-04-28  Bruno Haible  <bruno@clisp.org>
48863
48864         * doc/posix-functions/strdup.texi: Mention mingw problem.
48865
48866 2008-04-27  Bruno Haible  <bruno@clisp.org>
48867
48868         * modules/stat-time-tests (Depends-on): Add sleep.
48869         * tests/test-stat-time.c (force_unlink): New function.
48870         (cleanup): Use it.
48871         (test_mtime): Remove the ctime related tests.
48872         (test_ctime): New function, containing the ctime related tests.
48873         (main): Call test_ctime, except on native Windows platforms.
48874
48875 2008-04-27  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/rpmatch.c (rpmatch): Add some comments.
48878         Reported by James Youngman <jay@gnu.org>.
48879
48880 2008-04-27  Bruno Haible  <bruno@clisp.org>
48881
48882         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48883         quiet NaNs.
48884
48885 2008-04-27  Bruno Haible  <bruno@clisp.org>
48886
48887         Make test-yesno.sh work on mingw.
48888         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48889         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48890         (main): Set stdin to binary mode.
48891         * modules/yesno-tests (Depends-on): Add binary-io.
48892
48893 2008-04-27  Bruno Haible  <bruno@clisp.org>
48894
48895         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48896         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48897         argument that lie outside the IEEE 854 domain.
48898         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48899         (gl_ISFINITE): Use it.
48900         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48901
48902 2008-04-27  Bruno Haible  <bruno@clisp.org>
48903
48904         Allow local renaming in config.h.
48905         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48906
48907 2008-04-27  Bruno Haible  <bruno@clisp.org>
48908
48909         * lib/memchr.c (__memchr): Change type of 'i'.
48910         * lib/memchr2.c (memchr2): Likewise.
48911
48912 2008-04-26  Eric Blake  <ebb9@byu.net>
48913         and Bruno Haible  <bruno@clisp.org>
48914
48915         Optimize and test memrchr.
48916         * modules/memrchr (Depends-on): Add intprops.
48917         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48918         * modules/memrchr-tests: New file.
48919         * tests/test-memrchr.c: New file.
48920
48921 2008-04-26  Bruno Haible  <bruno@clisp.org>
48922
48923         Add tentative support for DragonFly BSD.
48924         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48925         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48926         fp.
48927         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48928         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48929         * lib/fpurge.c (fpurge): Likewise.
48930         * lib/freadable.c (freaadable): Likewise.
48931         * lib/freadahead.c (freadahead): Likewise.
48932         * lib/freading.c (freading): Likewise.
48933         * lib/freadptr.c (freadptr): Likewise.
48934         * lib/freadseek.c (freadptrinc): Likewise.
48935         * lib/fseeko.c (fseeko): Likewise.
48936         * lib/fseterr.c (fseterr): Likewise.
48937         * lib/fwritable.c (fwritable): Likewise.
48938         * lib/fwriting.c (fwriting): Likewise.
48939
48940 2008-04-26  Bruno Haible  <bruno@clisp.org>
48941
48942         * lib/stdio-impl.h: New file.
48943         * lib/fbufmode.c: Include stdio-impl.h.
48944         (fbufmode): Use fp_, remove redundant #defines.
48945         * lib/fflush.c: Include stdio-impl.h.
48946         (clear_ungetc_buffer): Remove redundant #defines.
48947         * lib/fpurge.c: Include stdio-impl.h.
48948         (fpurge): Remove redundant #defines.
48949         * lib/freadable.c: Include stdio-impl.h.
48950         (freadable): Remove redundant #defines.
48951         * lib/freadahead.c: Include stdio-impl.h.
48952         (freadahead): Remove redundant #defines.
48953         * lib/freading.c: Include stdio-impl.h.
48954         (freading): Remove redundant #defines.
48955         * lib/freadptr.c: Include stdio-impl.h.
48956         (freadptr): Remove redundant #defines.
48957         * lib/freadseek.c: Include stdio-impl.h.
48958         (freadptrinc): Remove redundant #defines.
48959         * lib/fseeko.c: Include stdio-impl.h.
48960         (rpl_fseeko): Remove redundant #defines.
48961         * lib/fseterr.c: Include stdio-impl.h.
48962         (fseterr): Remove redundant #defines.
48963         * lib/fwritable.c: Include stdio-impl.h.
48964         (fwritable: Remove redundant #defines.
48965         * lib/fwriting.c: Include stdio-impl.h.
48966         (fwriting): Remove redundant #defines.
48967         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48968         * modules/fflush (Files): Likewise.
48969         * modules/fpurge (Files): Likewise.
48970         * modules/freadable (Files): Likewise.
48971         * modules/freadahead (Files): Likewise.
48972         * modules/freading (Files): Likewise.
48973         * modules/freadptr (Files): Likewise.
48974         * modules/freadseek (Files): Likewise.
48975         * modules/fseeko (Files): Likewise.
48976         * modules/fseterr (Files): Likewise.
48977         * modules/fwritable (Files): Likewise.
48978         * modules/fwriting (Files): Likewise.
48979
48980 2008-04-26  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48983         restore_seek_optimization, update_fpos_cache): New functions, extracted
48984         from rpl_fflush.
48985         (rpl_fflush): Use them.
48986         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48987         (gl_REPLACE_FFLUSH): Use it.
48988
48989 2008-04-26  Bruno Haible  <bruno@clisp.org>
48990
48991         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48992         on Solaris.
48993         * tests/test-xstrtoimax.sh: Likewise.
48994         * tests/test-xstrtoumax.sh: Likewise.
48995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48996
48997 2008-04-26  Bruno Haible  <bruno@clisp.org>
48998
48999         * modules/memchr-tests: New file.
49000         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49001
49002 2008-04-26  Eric Blake  <ebb9@byu.net>
49003             Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/memchr.c: Include intprops.h.
49006         (__memchr): Optimize parallel detection of matching bytes. Rename local
49007         variables. Add explanatory comments.
49008
49009 2008-04-26  Bruno Haible  <bruno@clisp.org>
49010
49011         Fix module 'memchr', broken since 2000-10-28.
49012         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49013
49014 2008-04-26  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49017         comments.
49018
49019 2008-04-25  Eric Blake  <ebb9@byu.net>
49020
49021         Use native fstatat on cygwin 1.7.0.
49022         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49023         first.
49024
49025 2008-04-23  Eric Blake  <ebb9@byu.net>
49026
49027         Improve memchr2 performance.
49028         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49029         NUL bytes.
49030         * modules/memchr2 (Depends-on): Use intprops.h.
49031
49032 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49033
49034         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49035         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49036         <blp@cs.stanford.edu>.
49037
49038 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49039
49040         * lib/arpa_inet.in.h: New file.
49041
49042         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49043         (Makefile.am): Sed in substitute header file.
49044
49045         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49046         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49047
49048         * modules/inet_ntop (configure.ac): Use
49049         gl_ARPA_INET_MODULE_INDICATOR.
49050
49051         * modules/inet_pton (configure.ac): Use
49052         gl_ARPA_INET_MODULE_INDICATOR.
49053
49054 2008-04-22  Jim Meyering  <meyering@redhat.com>
49055
49056         * modules/verify (License): Re-license as LGPLv2+.
49057
49058 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49059
49060         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49061         parameter to void* as per POSIX standard (MinGW uses char*).
49062
49063 2008-04-21  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49066         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49067         Define to replacements if REPLACE_ISWCNTRL is 1.
49068         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49069         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49070         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49071         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49072         what it fixes.
49073         * doc/posix-functions/iswalpha.texi: Likewise.
49074         * doc/posix-functions/iswblank.texi: Likewise.
49075         * doc/posix-functions/iswcntrl.texi: Likewise.
49076         * doc/posix-functions/iswdigit.texi: Likewise.
49077         * doc/posix-functions/iswgraph.texi: Likewise.
49078         * doc/posix-functions/iswlower.texi: Likewise.
49079         * doc/posix-functions/iswprint.texi: Likewise.
49080         * doc/posix-functions/iswpunct.texi: Likewise.
49081         * doc/posix-functions/iswspace.texi: Likewise.
49082         * doc/posix-functions/iswupper.texi: Likewise.
49083         * doc/posix-functions/iswxdigit.texi: Likewise.
49084         Reported by Alain Guibert.
49085
49086 2008-04-21  Bruno Haible  <bruno@clisp.org>
49087
49088         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49089         Patch by Alain Guibert.
49090
49091 2008-04-21  Bruno Haible  <bruno@clisp.org>
49092
49093         Fix test failures on mingw.
49094         * tests/test-xstrtol.c (print_no_progname): New function.
49095         (main): Install it in error_print_progname hook.
49096         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49097         * tests/test-xstrtoimax.sh: Likewise.
49098         * tests/test-xstrtoumax.sh: Likewise.
49099
49100 2008-04-21  Bruno Haible  <bruno@clisp.org>
49101
49102         Fix test failure on mingw.
49103         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49104
49105 2008-04-21  Bruno Haible  <bruno@clisp.org>
49106
49107         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49108         Actually assign a value.
49109
49110 2008-04-20  Bruno Haible  <bruno@clisp.org>
49111
49112         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49113         take 2.
49114         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49115         'canonicalize-lgpl' module is also used.
49116         * lib/canonicalize-lgpl.c: Undo last change.
49117         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49118
49119 2008-04-20  Bruno Haible  <bruno@clisp.org>
49120
49121         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49122         config.h. Provide _mkdir based fallback for mingw.
49123         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49124         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49125         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49126         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49127         rather than defining mkdir in config.h.
49128         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49129         (gl_SYS_STAT_H_DEFAULTS): New macro.
49130         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49131         HAVE_IO_H any more.
49132         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49133         HAVE_DECL_MKDIR and HAVE_IO_H.
49134
49135 2008-04-20  Bruno Haible  <bruno@clisp.org>
49136
49137         * lib/isapipe.c: Port to native Windows platforms.
49138
49139 2008-04-20  Bruno Haible  <bruno@clisp.org>
49140
49141         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49142
49143 2008-04-21  Eric Blake  <ebb9@byu.net>
49144
49145         Work around preprocessors that don't handle UINTMAX_MAX.
49146         * lib/memchr2.c (memchr2): Avoid embedded #if.
49147         Reported by Alain Guibert, fix suggested by Bruno Haible.
49148
49149 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49150
49151         * doc/posix-functions/strftime.texi (strftime): Explain better
49152         Windows incompatibility.  Suggested by Micah Cowan
49153         <micah@cowan.name>.
49154
49155 2008-04-20  Bruno Haible  <bruno@clisp.org>
49156
49157         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49158         unistr/u8-mblen.
49159
49160 2008-04-20  Bruno Haible  <bruno@clisp.org>
49161
49162         Fix test failure on platforms with non-GNU iconv.
49163         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49164         (U_TO_U8): Use it, rather than u16_to_u8.
49165         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49166         units at the end of the input string.
49167         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49168
49169 2008-04-20  Bruno Haible  <bruno@clisp.org>
49170
49171         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49172         when the resulting length is 0.
49173         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49174
49175 2008-04-20  Bruno Haible  <bruno@clisp.org>
49176
49177         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49178         works.
49179         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49180
49181 2008-04-20  Bruno Haible  <bruno@clisp.org>
49182
49183         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49184         * modules/tsearch-tests (configure.ac): Test for initstate function.
49185
49186 2008-04-20  Bruno Haible  <bruno@clisp.org>
49187
49188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49189         for nlink_t if missing.
49190         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49191
49192 2008-04-19  Bruno Haible  <bruno@clisp.org>
49193
49194         Work around snprintf bug on Linux libc5.
49195         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49196         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49197         gl_SNPRINTF_SIZE1.
49198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49199         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49200         that test failed.
49201         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49202         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49203         * modules/snprintf (Files): Add m4/printf.m4.
49204         * modules/vsnprintf (Files): Likewise.
49205         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49206         * doc/posix-functions/vsnprintf.texi: Likewise.
49207
49208 2008-04-19  Bruno Haible  <bruno@clisp.org>
49209
49210         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49211         from 0.0058 to less than 10^-7.
49212
49213 2008-04-19  Bruno Haible  <bruno@clisp.org>
49214
49215         Fix rounding when a precision is given.
49216         * lib/vasnprintf.c (is_borderline): New function.
49217         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49218         9...9x.
49219         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49220         %e, %g.
49221         * tests/test-vasprintf-posix.c (test_function): Likewise.
49222         * tests/test-snprintf-posix.h (test_function): Likewise.
49223         * tests/test-sprintf-posix.h (test_function): Likewise.
49224         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49225         * tests/test-printf-posix.h (test_function): Likewise.
49226         * tests/test-printf-posix.output: Update.
49227         Reported by John Darrington <john@darrington.wattle.id.au> via
49228         Ben Pfaff <blp@cs.stanford.edu>.
49229
49230 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49231
49232         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49233         Suggested by Bruno Haible <bruno@clisp.org>.
49234
49235 2008-04-17  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49238         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49239         implementation.
49240         Patch by Bruce Merry <bmerry@gmail.com>.
49241
49242 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49243
49244         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49245         doesn't work under Windows.
49246
49247 2008-04-16  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49250         New macros.
49251         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49252         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49253         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49254         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49255         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49256         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49257         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49258         macros.
49259         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49260         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49261         Northern Sotho, Uighur.
49262
49263 2008-04-16  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49266         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49267         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49268         Reported by Daniel Bergström <daniel@octocode.com>.
49269
49270 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49271             Bruno Haible  <bruno@clisp.org>
49272
49273         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49274         function.
49275         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49276         New functions, mostly extracted from gl_locale_name_default.
49277         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49278
49279 2008-04-16  Eric Blake  <ebb9@byu.net>
49280
49281         Adjust strtod detection to catch glibc 2.7 bug.
49282         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49283         Reported by John Gatewood Ham.
49284
49285 2008-04-16  Bruno Haible  <bruno@clisp.org>
49286
49287         Add tentative support for Linux libc5.
49288         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49289         * lib/fpurge.c (fpurge): Likewise.
49290         * lib/freadable.c (freadable): Likewise.
49291         * lib/freadahead.c (freadahead): Likewise.
49292         * lib/freading.c (freading): Likewise.
49293         * lib/freadptr.c (freadptr): Likewise.
49294         * lib/freadseek.c (freadptrinc): Likewise.
49295         * lib/fseeko.c (rpl_fseeko): Likewise.
49296         * lib/fseterr.c (fseterr): Likewise.
49297         * lib/fwritable.c (fwritable): Likewise.
49298         * lib/fwriting.c (fwriting): Likewise.
49299         Reported by Alain Guibert <alguibert+bts@free.fr>.
49300
49301 2008-04-15  Bruno Haible  <bruno@clisp.org>
49302
49303         * modules/mathl (configure.ac): Define module indicator.
49304
49305 2008-04-15  Bruno Haible  <bruno@clisp.org>
49306
49307         * lib/logl.c (logl): Remove unused variables.
49308
49309 2008-04-15  Bruno Haible  <bruno@clisp.org>
49310
49311         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49312         fails.
49313
49314 2008-04-15  Bruno Haible  <bruno@clisp.org>
49315
49316         * lib/trim.c (trim2): Fix argument of isspace() macro.
49317
49318 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49319
49320         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49321         to 0.
49322         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49323
49324 2008-04-14  Bruno Haible  <bruno@clisp.org>
49325
49326         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49327         AC_LANG_PROGRAM argument.
49328         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49329         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49331         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49332         * m4/math_h.m4 (gl_MATH_H): Likewise.
49333         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49334         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49335         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49336         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49337         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49338         * m4/regex.m4 (gl_REGEX): Likewise.
49339         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49340         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49341         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49342         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49343         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49344         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49346         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49347
49348 2008-04-14  Jim Meyering  <meyering@redhat.com>
49349
49350         test-strtod: fix typos: s/abs/fabs/
49351         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49352
49353 2008-04-13  Bruno Haible  <bruno@clisp.org>
49354
49355         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49356         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49357         module is also used and while not building the reloc-wrapper.
49358
49359 2008-04-13  Bruno Haible  <bruno@clisp.org>
49360
49361         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49362
49363 2008-04-13  Bruno Haible  <bruno@clisp.org>
49364
49365         Fix AIX compilation failure introduced on 2008-04-02.
49366         * tests/test-frexp.c (exp): Undefine before redefining.
49367         * tests/test-frexpl.c (exp): Likewise.
49368
49369 2008-04-13  Bruno Haible  <bruno@clisp.org>
49370
49371         Work around a HP-UX stdio bug.
49372         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49373         * tests/test-ftello.c (main): Likewise.
49374         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49375         * doc/posix-functions/ftello.texi: Likewise.
49376
49377 2008-04-13  Bruno Haible  <bruno@clisp.org>
49378
49379         Make test-signbit pass on HP-UX/hppa.
49380         * tests/test-signbit.c (minus_zerol): New variable.
49381         (test_signbitl): Use it.
49382
49383 2008-04-13  Bruno Haible  <bruno@clisp.org>
49384
49385         Make truncl work on OSF/1 4.0.
49386         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49387         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49388         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49390         HAVE_DECL_TRUNCL.
49391         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49392         HAVE_DECL_TRUNCL.
49393         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49394
49395 2008-04-13  Bruno Haible  <bruno@clisp.org>
49396
49397         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49398
49399 2008-04-13  Bruno Haible  <bruno@clisp.org>
49400
49401         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49402         expression, so as to avoid HP-UX 11 cc compiler bug.
49403
49404 2008-04-13  Bruno Haible  <bruno@clisp.org>
49405
49406         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49407
49408 2008-04-13  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/git-merge-changelog.c: Remove empty declaration outside of
49411         functions.
49412
49413 2008-04-13  Bruno Haible  <bruno@clisp.org>
49414
49415         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49416
49417 2008-04-13  Bruno Haible  <bruno@clisp.org>
49418
49419         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49420         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49421         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49422         also if it exists but lacks definitions of the SHUT_* macros.
49423         * modules/sys_socket (Description): Update.
49424         Reported by Elbert Pol <e.pol@chello.nl>.
49425
49426 2008-04-13  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/localcharset.c (OS2): Don't redefine if already defined.
49429         Reported by Elbert Pol <e.pol@chello.nl>.
49430
49431 2008-04-13  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/binary-io.h [__EMX__]: Include <io.h>.
49434         Reported by Elbert Pol <e.pol@chello.nl>.
49435
49436 2008-04-12  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/fpucw.h: Enable the definitions also for x86_64.
49439         Needed for NetBSD/x86_64.
49440         Reported by Thomas Klausner <tk@giga.or.at>.
49441
49442 2008-04-12  Bruno Haible  <bruno@clisp.org>
49443
49444         * tests/test-strtod.c: Include isnand.h.
49445         (main): Use isnand instead of isnan.
49446         Reported by Jim Meyering.
49447
49448 2008-04-12  Bruno Haible  <bruno@clisp.org>
49449
49450         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49451         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49452
49453 2008-04-12  Jim Meyering  <meyering@redhat.com>
49454
49455         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49456
49457 2008-04-12  Bruno Haible  <bruno@clisp.org>
49458
49459         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49460         Reported by Elbert Pol <e.pol@chello.nl>.
49461
49462 2008-04-12  Eric Blake  <ebb9@byu.net>
49463
49464         Work around Solaris 10 math.h bug.
49465         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49466         (gl_MATH_H_DEFAULTS): Set up default.
49467         * modules/math (Makefile.am): Replace new indicators.
49468         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49469         * tests/test-math.c (main): Test this.
49470         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49471         * doc/posix-headers/math.texi (math.h): Mention bug.
49472         Reported by Nelson H. F. Beebe and Jim Meyering.
49473
49474 2008-04-11  Bruno Haible  <bruno@clisp.org>
49475
49476         Adapt to future versions of Apple GCC.
49477         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49478         Reported by Peter O'Gorman <peter@pogma.com>.
49479
49480 2008-04-11  Bruno Haible  <bruno@clisp.org>
49481
49482         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49483
49484 2008-04-11  Bruno Haible  <bruno@clisp.org>
49485
49486         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49487
49488         * modules/getaddrinfo-tests (Makefile.am): Define
49489         test_getaddrinfo_LDADD.
49490
49491 2008-04-11  Bruno Haible  <bruno@clisp.org>
49492
49493         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49494         (init): Fix syntax error.
49495         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49496         is declared.
49497
49498 2008-04-11  Bruno Haible  <bruno@clisp.org>
49499
49500         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49501         * modules/glob (Depends-on): Add stdbool.
49502
49503 2008-04-11  Bruno Haible  <bruno@clisp.org>
49504
49505         * lib/trim.c: Include <string.h>.
49506
49507 2008-04-11  Eric Blake  <ebb9@byu.net>
49508
49509         Avoid compile failure on OS/2.
49510         * lib/regex_internal.h (internal_function): Disable optimization
49511         on OS/2 (__EMX__), where it caused compiler error.
49512         Reported by Elbert Pol.
49513
49514 2008-04-11  Bruno Haible  <bruno@clisp.org>
49515
49516         Flush the standard error stream before aborting. Needed on mingw.
49517         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49518         * tests/test-array_list.c (ASSERT): Likewise.
49519         * tests/test-array_oset.c (ASSERT): Likewise.
49520         * tests/test-avltree_list.c (ASSERT): Likewise.
49521         * tests/test-avltree_oset.c (ASSERT): Likewise.
49522         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49523         * tests/test-binary-io.c (ASSERT): Likewise.
49524         * tests/test-byteswap.c (ASSERT): Likewise.
49525         * tests/test-c-ctype.c (ASSERT): Likewise.
49526         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49527         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49528         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49529         * tests/test-c-strstr.c (ASSERT): Likewise.
49530         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49531         * tests/test-canonicalize.c (ASSERT): Likewise.
49532         * tests/test-carray_list.c (ASSERT): Likewise.
49533         * tests/test-ceilf1.c (ASSERT): Likewise.
49534         * tests/test-ceilf2.c (ASSERT): Likewise.
49535         * tests/test-ceill.c (ASSERT): Likewise.
49536         * tests/test-count-one-bits.c (ASSERT): Likewise.
49537         * tests/test-fbufmode.c (ASSERT): Likewise.
49538         * tests/test-fflush2.c (ASSERT): Likewise.
49539         * tests/test-floorf1.c (ASSERT): Likewise.
49540         * tests/test-floorf2.c (ASSERT): Likewise.
49541         * tests/test-floorl.c (ASSERT): Likewise.
49542         * tests/test-fopen.c (ASSERT): Likewise.
49543         * tests/test-fpending.c (ASSERT): Likewise.
49544         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49545         * tests/test-fpurge.c (ASSERT): Likewise.
49546         * tests/test-freadable.c (ASSERT): Likewise.
49547         * tests/test-freadahead.c (ASSERT): Likewise.
49548         * tests/test-freading.c (ASSERT): Likewise.
49549         * tests/test-freadptr.c (ASSERT): Likewise.
49550         * tests/test-freadptr2.c (ASSERT): Likewise.
49551         * tests/test-freadseek.c (ASSERT): Likewise.
49552         * tests/test-freopen.c (ASSERT): Likewise.
49553         * tests/test-frexp.c (ASSERT): Likewise.
49554         * tests/test-frexpl.c (ASSERT): Likewise.
49555         * tests/test-fseek.c (ASSERT): Likewise.
49556         * tests/test-fseeko.c (ASSERT): Likewise.
49557         * tests/test-fstrcmp.c (ASSERT): Likewise.
49558         * tests/test-ftell.c (ASSERT): Likewise.
49559         * tests/test-ftello.c (ASSERT): Likewise.
49560         * tests/test-func.c (ASSERT): Likewise.
49561         * tests/test-fwritable.c (ASSERT): Likewise.
49562         * tests/test-fwriting.c (ASSERT): Likewise.
49563         * tests/test-getdelim.c (ASSERT): Likewise.
49564         * tests/test-getline.c (ASSERT): Likewise.
49565         * tests/test-i-ring.c (ASSERT): Likewise.
49566         * tests/test-iconv-utf.c (ASSERT): Likewise.
49567         * tests/test-iconv.c (ASSERT): Likewise.
49568         * tests/test-isfinite.c (ASSERT): Likewise.
49569         * tests/test-isnand.c (ASSERT): Likewise.
49570         * tests/test-isnanf.c (ASSERT): Likewise.
49571         * tests/test-isnanl.h (ASSERT): Likewise.
49572         * tests/test-ldexpl.c (ASSERT): Likewise.
49573         * tests/test-linked_list.c (ASSERT): Likewise.
49574         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49575         * tests/test-localename.c (ASSERT): Likewise.
49576         * tests/test-lseek.c (ASSERT): Likewise.
49577         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49578         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49579         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49580         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49581         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49582         * tests/test-mbschr.c (ASSERT): Likewise.
49583         * tests/test-mbscspn.c (ASSERT): Likewise.
49584         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49585         * tests/test-mbspbrk.c (ASSERT): Likewise.
49586         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49587         * tests/test-mbsrchr.c (ASSERT): Likewise.
49588         * tests/test-mbsspn.c (ASSERT): Likewise.
49589         * tests/test-mbsstr1.c (ASSERT): Likewise.
49590         * tests/test-mbsstr2.c (ASSERT): Likewise.
49591         * tests/test-mbsstr3.c (ASSERT): Likewise.
49592         * tests/test-memchr2.c (ASSERT): Likewise.
49593         * tests/test-memmem.c (ASSERT): Likewise.
49594         * tests/test-open.c (ASSERT): Likewise.
49595         * tests/test-printf-frexp.c (ASSERT): Likewise.
49596         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49597         * tests/test-printf-posix.c (ASSERT): Likewise.
49598         * tests/test-quotearg.c (ASSERT): Likewise.
49599         * tests/test-rbtree_list.c (ASSERT): Likewise.
49600         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49601         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49602         * tests/test-round1.c (ASSERT): Likewise.
49603         * tests/test-roundf1.c (ASSERT): Likewise.
49604         * tests/test-roundl.c (ASSERT): Likewise.
49605         * tests/test-signbit.c (ASSERT): Likewise.
49606         * tests/test-sleep.c (ASSERT): Likewise.
49607         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49608         * tests/test-snprintf.c (ASSERT): Likewise.
49609         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49610         * tests/test-stat-time.c (ASSERT): Likewise.
49611         * tests/test-strcasestr.c (ASSERT): Likewise.
49612         * tests/test-strerror.c (ASSERT): Likewise.
49613         * tests/test-striconv.c (ASSERT): Likewise.
49614         * tests/test-striconveh.c (ASSERT): Likewise.
49615         * tests/test-striconveha.c (ASSERT): Likewise.
49616         * tests/test-strsignal.c (ASSERT): Likewise.
49617         * tests/test-strstr.c (ASSERT): Likewise.
49618         * tests/test-strtod.c (ASSERT): Likewise.
49619         * tests/test-trunc1.c (ASSERT): Likewise.
49620         * tests/test-trunc2.c (ASSERT): Likewise.
49621         * tests/test-truncf1.c (ASSERT): Likewise.
49622         * tests/test-truncf2.c (ASSERT): Likewise.
49623         * tests/test-truncl.c (ASSERT): Likewise.
49624         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49625         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49626         * tests/test-vasnprintf.c (ASSERT): Likewise.
49627         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49628         * tests/test-vasprintf.c (ASSERT): Likewise.
49629         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49630         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49631         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49632         * tests/test-vsnprintf.c (ASSERT): Likewise.
49633         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49634         * tests/test-wcwidth.c (ASSERT): Likewise.
49635         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49636         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49637         * tests/test-xvasprintf.c (ASSERT): Likewise.
49638         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49639         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49640         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49641         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49642         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49643         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49644         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49645         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49646         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49647         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49648         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49649         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49650         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49651         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49652         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49653         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49654         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49655         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49656         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49657         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49658         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49659         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49660         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49661         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49662         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49663         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49664         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49665         * tests/unictype/test-combining.c (ASSERT): Likewise.
49666         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49667         * tests/unictype/test-digit.c (ASSERT): Likewise.
49668         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49669         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49670         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49671         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49672         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49673         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49674         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49675         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49676         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49677         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49678         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49679         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49680         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49681         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49682         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49683         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49684         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49685         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49686         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49687         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49688         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49689         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49690         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49691         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49692         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49693         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49694         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49695         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49696         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49697         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49698         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49699         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49700         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49701         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49702         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49703         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49704         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49705         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49706         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49707         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49708         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49709         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49710         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49711         Reported by Eric Blake.
49712
49713 2008-04-11  Bruno Haible  <bruno@clisp.org>
49714
49715         * lib/wchar.in.h: Tweak comment.
49716
49717 2008-04-11  Bruno Haible  <bruno@clisp.org>
49718
49719         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49720         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49721         gl_COMMON.
49722         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49723
49724 2008-04-11  Bruno Haible  <bruno@clisp.org>
49725
49726         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49727
49728 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49729
49730         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49731         of attempting to use non-existing /dev/*random.  Based on patch
49732         from Adam Strzelecki <ono@java.pl> in
49733         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49734
49735 2008-04-08  Bruno Haible  <bruno@clisp.org>
49736
49737         Add tentative support for emx+gcc.
49738         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49739         * lib/fpurge.c (fpurge): Likewise.
49740         * lib/freadable.c (freadable): Likewise.
49741         * lib/freadahead.c (freadahead): Likewise.
49742         * lib/freading.c (freading): Likewise.
49743         * lib/freadptr.c (freadptr): Likewise.
49744         * lib/freadseek.c (freadptrinc): Likewise.
49745         * lib/fseeko.c (rpl_fseeko): Likewise.
49746         * lib/fseterr.c (fseterr): Likewise.
49747         * lib/fwritable.c (fwritable): Likewise.
49748         * lib/fwriting.c (fwriting): Likewise.
49749         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49750
49751 2008-04-09  Eric Blake  <ebb9@byu.net>
49752
49753         Avoid some autoconf warnings.
49754         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49755         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49756         * m4/afs.m4 (gl_AFS): Likewise.
49757         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49758         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49759         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49760         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49761         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49762         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49763         (AC_CHECK_DECLS_ONCE): Likewise.
49764         Rename file...
49765         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49766         gnulib-tool requires autoconf 2.59 or better.
49767         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49768
49769 2008-04-08  Eric Blake  <ebb9@byu.net>
49770
49771         Use 'git describe --match' if present (added in git 1.5.5).
49772         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49773         if possible.
49774
49775 2008-04-08  Bruno Haible  <bruno@clisp.org>
49776
49777         Add tentative support for OpenServer.
49778         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49779         _ptr, _cnt.
49780         * lib/fpurge.c (fpurge): Likewise.
49781         * lib/freadable.c (freadable): Likewise.
49782         * lib/freadahead.c (freadahead): Likewise.
49783         * lib/freading.c (freading): Likewise.
49784         * lib/freadptr.c (freadptr): Likewise.
49785         * lib/freadseek.c (freadptrinc): Likewise.
49786         * lib/fseeko.c (rpl_fseeko): Likewise.
49787         * lib/fseterr.c (fseterr): Likewise.
49788         * lib/fwritable.c (fwritable): Likewise.
49789         * lib/fwriting.c (fwriting): Likewise.
49790         Reported by Roger Cornelius <rac@tenzing.org> and
49791         Brian K. White <brian@aljex.com>.
49792
49793 2008-04-06  Jim Meyering  <meyering@redhat.com>
49794
49795         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49796
49797 2008-04-06  Bruno Haible  <bruno@clisp.org>
49798
49799         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49800         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49801         * tests/test-printf-posix.sh: Likewise.
49802         * tests/test-vfprintf-posix.sh: Likewise.
49803         * tests/test-vprintf-posix.sh: Likewise.
49804         * tests/test-xprintf-posix.sh: Likewise.
49805
49806 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49807
49808         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49809         hide error from 'ls', needed on OS/2.
49810         Report by Elbert Pol <elbert.pol@gmail.com>.
49811
49812 2008-04-04  Eric Blake  <ebb9@byu.net>
49813
49814         Make test-fseeko.c failures meaningful.
49815         * tests/test-fseeko.c: Print line number on failure.
49816         * tests/test-fseek.c: Likewise.
49817         Reported by Nelson H. F. Beebe.
49818
49819         Improve strtod bug detection check.
49820         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49821         required for Solaris 10.
49822         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49823
49824 2008-04-04  Bruno Haible  <bruno@clisp.org>
49825
49826         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49827         by m4/setenv.m4.
49828
49829 2008-04-03  Eric Blake  <ebb9@byu.net>
49830
49831         Ensure sane .version contents.
49832         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49833         version string.
49834         * build-aux/git-version-gen: Improve documentation.
49835
49836         Make GNU make output nicer.
49837         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49838         MAKECMDGOALS to enforce message for all command line targets.  Set
49839         srcdir for use in maint.mk.
49840
49841         Another maintainer tweak.
49842         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49843         a target that regenerates version.
49844
49845 2008-04-03  Jim Meyering  <meyering@redhat.com>
49846
49847         vc-list-files: don't cause coreutils "make po-check" failure
49848         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49849
49850 2008-04-03  Eric Blake  <ebb9@byu.net>
49851
49852         Allow VPATH usage of vc-list-files.
49853         * build-aux/vc-list-files (scriptversion): Add timestamp.
49854         (options): Add --help, --version, -C.
49855         (CVS): Support installed cvsu.
49856
49857 2008-04-02  Bruno Haible  <bruno@clisp.org>
49858
49859         Avoid some "statement with no effect" warnings from gcc.
49860         * tests/test-wctype.c (main): Explicitly ignore unused values.
49861         Reported by Jim Meyering.
49862
49863 2008-04-02  Jim Meyering  <meyering@redhat.com>
49864
49865         Avoid some warnings from "gcc -Wshadow".
49866         * tests/test-frexp.c (exp): Define to a different identifier.
49867         * tests/test-frexpl.c (exp): Likewise.
49868
49869 2008-04-03  Jim Meyering  <meyering@redhat.com>
49870
49871         bootstrap: remove dangling *.[ch] symlinks from lib
49872         * build-aux/bootstrap [dangling symlink removal]: Move find's
49873         -depth option to precede all others, to avoid a warning.
49874         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49875
49876 2008-04-02  Bruno Haible  <bruno@clisp.org>
49877
49878         Avoid some warnings from "gcc -Wshadow".
49879         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49880         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49881         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49882         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49883         Reported by Jim Meyering.
49884
49885 2008-04-01  Bruno Haible  <bruno@clisp.org>
49886
49887         Fix test to work on IRIX 6.5 with cc.
49888         * tests/test-math.c (numeric_equal): New function.
49889         (main): Use it.
49890
49891 2008-04-01  Bruno Haible  <bruno@clisp.org>
49892
49893         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49894
49895 2008-04-01  Bruno Haible  <bruno@clisp.org>
49896
49897         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49898         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49899         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49900         (Depends-on): Remove math.
49901
49902         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49903         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49904         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49905         (Depends-on): Remove math.
49906
49907         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49908         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49909         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49910         (Depends-on): Remove math.
49911         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49912         (Depends-on): Remove math.
49913
49914         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49915         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49916         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49917         (Depends-on): Remove math.
49918         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49919         (Depends-on): Remove math.
49920
49921         * tests/test-round1.c: Include nan.h.
49922         (main): Use NaNd instead of NAN.
49923         * modules/round-tests (Files): Add tests/nan.h.
49924
49925         * tests/test-trunc1.c: Include nan.h.
49926         (main): Use NaNd instead of NAN.
49927         * modules/trunc-tests (Files): Add tests/nan.h.
49928
49929         * tests/test-roundf1.c: Include nan.h.
49930         (main): Use NaNf instead of NAN.
49931         * modules/roundf-tests (Files): Add tests/nan.h.
49932
49933         * tests/test-truncf1.c: Include nan.h.
49934         (main): Use NaNf instead of NAN.
49935         * modules/truncf-tests (Files): Add tests/nan.h.
49936
49937         * tests/test-ceilf1.c: Include nan.h.
49938         (main): Use NaNf instead of NAN.
49939         * modules/ceilf-tests (Files): Add tests/nan.h.
49940
49941         * tests/test-floorf1.c: Include nan.h.
49942         (main): Use NaNf instead of NAN.
49943         * modules/floorf-tests (Files): Add tests/nan.h.
49944
49945         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49946         (main): Use NaNf instead of NAN.
49947         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49948
49949         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49950         (main): Use NaNd instead of NAN.
49951         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49952
49953         * tests/test-frexp.c: Include nan.h.
49954         (main): Use NaNd instead of NAN.
49955         * modules/frexp-tests (Files): Add tests/nan.h.
49956
49957         * lib/isnan.c: Don't include <math.h>.
49958         (FUNC): Don't use NAN macro.
49959         * modules/isnand-nolibm (Depends-on): Remove math.
49960         * modules/isnanf-nolibm (Depends-on): Remove math.
49961         * modules/isnanl (Depends-on): Remove math.
49962         * modules/isnanl-nolibm (Depends-on): Remove math.
49963
49964         * tests/nan.h: New file.
49965
49966 2008-04-01  Eric Blake  <ebb9@byu.net>
49967
49968         Fix typos.
49969         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49970         values to be the right type.
49971
49972         For now, cater to gnulib strtod inaccuracies.
49973         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49974         fractional results.  While not as nice from a QoI perspective, it
49975         is a quicker patch than correctly implementing decimal to binary
49976         rounding.
49977
49978 2008-03-31  Eric Blake  <ebb9@byu.net>
49979
49980         Guarantee a definition of NAN.
49981         * lib/math.in.h (NAN): Define if missing.
49982         * tests/test-math.c (main): Test it.
49983         * doc/posix-headers/math.texi (math.h): Document this.
49984         * lib/isnan.c (rpl_isnand): Use it.
49985         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49986         * tests/test-floorf1.c (NaN): Likewise.
49987         * tests/test-frexp.c (NaN): Likewise.
49988         * tests/test-isnand.c (NaN): Likewise.
49989         * tests/test-isnanf.c (NaN): Likewise.
49990         * tests/test-round1.c (NaN): Likewise.
49991         * tests/test-roundf1.c (NaN): Likewise.
49992         * tests/test-snprintf-posix.h (NaN): Likewise.
49993         * tests/test-sprintf-posix.h (NaN): Likewise.
49994         * tests/test-trunc1.c (NaN): Likewise.
49995         * tests/test-truncf1.c (NaN): Likewise.
49996         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49997         * tests/test-vasprintf-posix.c (NaN): Likewise.
49998         * modules/isnand-nolibm (Depends-on): Add math.
49999         * modules/isnanf-nolibm (Depends-on): Likewise.
50000         * modules/isnanl (Depends-on): Likewise.
50001         * modules/isnanl-nolibm (Depends-on): Likewise.
50002         * modules/snprintf-posix-tests (Depends-on): Likewise.
50003         * modules/sprintf-posix-tests (Depends-on): Likewise.
50004         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50005         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50006         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50007         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50008
50009 2008-03-31  Bruno Haible  <bruno@clisp.org>
50010
50011         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50012         * doc/posix-functions/strtod.texi: Likewise.
50013
50014 2008-03-31  Bruno Haible  <bruno@clisp.org>
50015
50016         * tests/test-strtod.c (main): Don't use C99 syntax.
50017
50018 2008-03-31  Bruno Haible  <bruno@clisp.org>
50019
50020         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50021         Reported by Eric Blake.
50022
50023 2008-03-31  Jim Meyering  <meyering@redhat.com>
50024
50025         Don't compare actual signbit return values.
50026         * tests/test-strtod.c (main): Rather, compare only their
50027         zero/non-zero nature.
50028
50029 2008-03-31  Eric Blake  <ebb9@byu.net>
50030
50031         More strtod documentation.
50032         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50033         failures as distinct bugs.
50034
50035 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50036
50037         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50038         Problem reported by Erik Benada in
50039         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50040
50041 2008-03-30  Bruno Haible  <bruno@clisp.org>
50042
50043         * tests/test-strtod.c: Add comments about which assertion fails on which
50044         platform.
50045         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50046
50047 2008-03-30  Eric Blake  <ebb9@byu.net>
50048
50049         Test signbit behavior on zeros.
50050         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50051         (test_signbitd, test_signbitl): Likewise.
50052
50053         More strtod touchups.
50054         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50055         sign of negative underflow, for now.  Use .5, not .1.
50056         * doc/posix-functions/strtod.texi (strtod): Mention these
50057         limitations.
50058         Reported by Jim Meyering.
50059
50060 2008-03-30  Bruno Haible  <bruno@clisp.org>
50061
50062         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50063         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50064
50065 2008-03-30  Bruno Haible  <bruno@clisp.org>
50066
50067         Avoid failure when attempting to return empty iconv results on some
50068         platforms.
50069         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50070         allocation, don't report ENOMEM when the resulting string is empty.
50071
50072 2008-03-30  Bruno Haible  <bruno@clisp.org>
50073
50074         Fix buffer overrun.
50075         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50076         Don't consider the width for tmp_length. Check count against tmp_length
50077         before doing the padding. Ensure enough allocation during padding.
50078
50079 2008-03-30  Eric Blake  <ebb9@byu.net>
50080
50081         strtod touchups.
50082         * lib/strtod.c (strtod): Avoid compiler warnings.
50083         Reported by Jim Meyering.
50084
50085 2008-03-30  Bruno Haible  <bruno@clisp.org>
50086
50087         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50088         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50089         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50090         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50091         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50092         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50093         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50094         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50095
50096         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50097         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50098         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50099         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50100         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50101         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50102         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50103         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50104
50105         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50106         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50107         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50108         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50109         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50110         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50111         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50112         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50113
50114         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50115         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50116
50117         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50118         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50119
50120         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50121         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50122
50123         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50124         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50125         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50126
50127         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50129         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50130
50131         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50132         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50133         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50134
50135         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50136         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50137         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50138
50139         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50140         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50142         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50143         (Depends-on): Add EOVERFLOW.
50144         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50145         (Depends-on): Add EOVERFLOW.
50146         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50147         (Depends-on): Add EOVERFLOW.
50148         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50149         (Depends-on): Add EOVERFLOW.
50150         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50151         (Depends-on): Add EOVERFLOW.
50152         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50153         (Depends-on): Add EOVERFLOW.
50154         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50155         (Depends-on): Add EOVERFLOW.
50156         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50157         (Depends-on): Add EOVERFLOW.
50158
50159         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50160         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50161         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50162
50163         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50165         * modules/snprintf (Depends-on): Add EOVERFLOW.
50166
50167         * lib/poll.c (EOVERFLOW): Remove fallback.
50168         * modules/poll (Depends-on): Add EOVERFLOW.
50169
50170         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50171         * modules/getugroups (Depends-on): Add EOVERFLOW.
50172
50173         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50174         * modules/getdelim (Depends-on): Add EOVERFLOW.
50175
50176         * lib/ftell.c (EOVERFLOW): Remove fallback.
50177         * modules/ftell (Depends-on): Add EOVERFLOW.
50178
50179         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50180         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50181         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50182
50183         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50184
50185         * modules/EOVERFLOW-tests: New file.
50186         * tests/test-EOVERFLOW.c: New file.
50187
50188         * modules/EOVERFLOW: New file.
50189         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50190
50191 2008-03-30  Bruno Haible  <bruno@clisp.org>
50192
50193         Fix bug introduced on 2007-06-10.
50194         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50195         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50196
50197 2008-03-30  Bruno Haible  <bruno@clisp.org>
50198
50199         Improve freadseek's efficiency after ungetc.
50200         * lib/freadseek.c: Include freadahead.h.
50201         (freadptrinc): New function, extracted from freadseek.
50202         (freadseek): Use it in a loop. Use freadahead to determine the number
50203         of loop iterations.
50204         * modules/freadseek (Depends-on): Add freadahead.
50205         (configure.ac): Require AC_C_INLINE.
50206
50207 2008-03-30  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/freadseek.c (freadseek): Don't ignore the return value of
50210         freadptr.
50211
50212 2008-03-29  Eric Blake  <ebb9@byu.net>
50213
50214         Add hex float support.
50215         * modules/strtod (Depends-on): Add c-ctype.
50216         (Link): Mention POW_LIB.
50217         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50218         whitespace between 'e' and exponent.
50219         * tests/test-strtod.c (main): Enable hex float tests.
50220         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50221         now provides.
50222
50223         Document various strtod bugs, with some fixes.
50224         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50225         "-0x", "inf", "nan", and hex constants.
50226         * doc/posix-functions/atof.texi (atof): Likewise.
50227         * modules/stdlib (Makefile.am): Support strtod.
50228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50229         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50230         detect additional strtod bugs.
50231         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50232         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50233         bool where appropriate.  Parse 'inf' and 'nan'.
50234         * tests/test-strtod.c: New file.
50235         * modules/strtod (Depends-on): Add stdbool, stdlib.
50236         (configure.ac): Turn on module indicator.
50237         * modules/strtod-tests: New module.
50238
50239 2008-03-29  Eric Blake  <ebb9@byu.net>
50240
50241         Fix ftell on mingw.
50242         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50243         * modules/ftell-tests (Depends-on): Add binary-io.
50244         * modules/ftello-tests (Depends-on): Likewise.
50245         * tests/test-ftell.c (main): Enhance test to cover behavior after
50246         ungetc.  Enforce binary mode.
50247         * tests/test-ftello.c (main): Likewise.
50248
50249         Pass test-freadseek on cygwin.
50250         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50251         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50252         ungetc buffer.
50253
50254         * tests/test-fflush2.c (main): Fix typo.
50255
50256 2008-03-29  Bruno Haible  <bruno@clisp.org>
50257
50258         * tests/test-fflush2.c (main): Temporarily disable the contents of
50259         this test.
50260         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50261         Reported by Eric Blake.
50262
50263 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50264
50265         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50266         (GC_SHA224_DIGEST_SIZE): Add.
50267
50268         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50269         (gc_hash_digest_length): Likewise.
50270         (gc_hash_buffer): Likewise.
50271
50272 2008-03-25  Bruno Haible  <bruno@clisp.org>
50273
50274         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50275         detail which gettext release to use.
50276         Reported by Simon Josefsson.
50277
50278 2008-03-26  Jim Meyering  <meyering@redhat.com>
50279
50280         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50281         * modules/gnumakefile (clean-GNUmakefile): Also, use
50282         test ... && ... || : syntax rather than if-then ... fi.
50283
50284         gnumakefile: Don't double-quote-expand $(VPATH) value.
50285         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50286
50287 2008-03-24  Eric Blake  <ebb9@byu.net>
50288
50289         Alter GNUmakefile to install into top directory.
50290         * modules/maintainer-makefile: Split, and add dependency...
50291         * modules/gnumakefile: to this new module.
50292         * build-aux/GNUmakefile: Move...
50293         * top/GNUmakefile: ...here.
50294         * build-aux/maint.mk: Move...
50295         * top/maint.mk: ...here.
50296         * MODULES.html.sh (Support for maintaining...): Document new
50297         module.
50298
50299 2008-03-23  Bruno Haible  <bruno@clisp.org>
50300
50301         * gnulib-tool: New options --vc-files, --no-vc-files.
50302         (func_usage): Document them.
50303         (vc_files): New variable.
50304         (func_import): Consider vc_files.
50305         (func_create_testdir): Set vc_files to empty.
50306         Suggested by Jim Meyering and Karl Berry.
50307
50308 2008-03-23  Bruno Haible  <bruno@clisp.org>
50309
50310         Fix regex compilation error on HP-UX 11.
50311         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50312         * modules/regex (Files): Add m4/mbstate_t.m4.
50313         Reported by Ton Voon <ton.voon@altinity.com>.
50314
50315 2008-03-23  Bruno Haible  <bruno@clisp.org>
50316
50317         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50318
50319 2008-03-23  Eric Blake  <ebb9@byu.net>
50320             Bruno Haible  <bruno@clisp.org>
50321
50322         Install files from top/ in the destination directory.
50323         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50324         augmentation also for the files from top/.
50325         (func_import, func_create_testdir): Rewrite file names:
50326         top/filename -> filename.
50327
50328 2008-03-23  Bruno Haible  <bruno@clisp.org>
50329
50330         Tweak "gnulib --version" output.
50331         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50332
50333 2008-03-23  Bruno Haible  <bruno@clisp.org>
50334
50335         Tweak "gnulib --version" output.
50336         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50337         rather than contents of ChangeLog, when possible.
50338
50339 2008-03-21  Eric Blake  <ebb9@byu.net>
50340
50341         More --version tweaks.
50342         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50343         date of last ChangeLog entry.
50344
50345 2008-03-21  Jim Meyering  <meyering@redhat.com>
50346
50347         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50348
50349 2008-03-20  Eric Blake  <ebb9@byu.net>
50350
50351         VPATH fix.
50352         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50353
50354 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50355
50356         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50357         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50358
50359 2008-03-20  Eric Blake  <ebb9@byu.net>
50360
50361         Sync GNUmakefile with coreutils.
50362         * build-aux/GNUmakefile (have-Makefile): Rename...
50363         (_have-Makefile): ...to this, for namespace consideration.
50364         (GNUmakefile.cfg): Include, if present.
50365         (_autoreconf): Define a default.
50366         (_is-dist-target): New rule for rebuilds to pick up intra-release
50367         version.
50368         (maint-cfg.mk): Rename...
50369         (cfg.mk): ...to this.
50370
50371 2008-03-18  Jim Meyering  <meyering@redhat.com>
50372
50373         New script and module: mktempd
50374         * MODULES.html.sh (maint+release support): Add mktempd.
50375         * build-aux/mktempd: New file.
50376         * modules/mktempd: New file.
50377
50378 2008-03-15  Jim Meyering  <meyering@redhat.com>
50379
50380         Undo last change.
50381         * lib/sha1.c, lib/md5.c: 63 != ~63.
50382         Reported by Andreas Schwab.
50383
50384         sha1.c, md5.c: Hoist a redundant expression.
50385         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50386         "ctx->buflen" only once, before calling *_process_block.
50387         * lib/md5.c (md5_process_bytes): Likewise.
50388
50389 2008-03-14  Eric Blake  <ebb9@byu.net>
50390
50391         Bump copyright year in files generated by gnulib-tool.
50392         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50393         gnulib-tool, rather than hard-coding it.
50394
50395         Fix 'gnulib-tool --version' output to work with git.
50396         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50397         (startup): ...here.
50398         (func_version): Use it to invoke git-version-gen, rather than
50399         relying on CVS keyword expansion.  Modernize wording.
50400         (cvsdatestamp, last_checkin_date, version): Kill unused
50401         variables.
50402
50403 2008-03-12  Jim Meyering  <meyering@redhat.com>
50404
50405         Recognize optional cast of the argument to free.
50406         * build-aux/useless-if-before-free: Update regexps.
50407
50408         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50409
50410 2008-03-11  Bruno Haible  <bruno@clisp.org>
50411
50412         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50413         by a single package.
50414         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50415         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50416         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50417         Reported by Sam Steingold <sds@gnu.org>.
50418
50419 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50420
50421         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50422         repositories.
50423
50424 2008-03-11  Bruno Haible  <bruno@clisp.org>
50425
50426         Avoid conflicts between local macro definitions.
50427         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50428         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50429
50430 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50431             Bruno Haible  <bruno@clisp.org>
50432
50433         Make va_copy work with some version of xlc on AIX 5.1.
50434         * lib/stdarg.in.h: New file.
50435         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50436         On AIX, use a <stdarg.h> file substitute.
50437         * modules/stdarg (Files): Add lib/stdarg.in.h.
50438         (Depends-on): Add include_next.
50439         (Makefile.am): Build a stdarg.h substitute if requested.
50440         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50441
50442 2008-03-10  Bruno Haible  <bruno@clisp.org>
50443
50444         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50445         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50446         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50447
50448 2008-03-10  Bruno Haible  <bruno@clisp.org>
50449
50450         * modules/stdlib (Depends-on): Add include_next, remove
50451         absolute-header.
50452
50453 2008-03-09  Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/freadahead.h (freadahead): Document more precisely.
50456         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50457         the sum of both buffer sizes.
50458         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50459         * NEWS: Document the change.
50460
50461 2008-03-09  Bruno Haible  <bruno@clisp.org>
50462
50463         Extend freadptr to return also the buffer size.
50464         * lib/freadptr.h (freadptr): Add sizep argument.
50465         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50466         (freadptr): Add sizep argument. Determine buffer size like freadahead
50467         does.
50468         * tests/test-freadptr.c: Don't include freadahead.h.
50469         (main): Adapt for new calling convention of freadptr.
50470         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50471         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50472         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50473         tests/test-freadptr2.sh.
50474         (Depends): Remove freadahead.
50475         (TESTS): Add test-freadptr2.sh.
50476         (check_PROGRAMS): Add test-freadptr2.
50477
50478 2008-03-09  Bruno Haible  <bruno@clisp.org>
50479
50480         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50481         Report and solution by Simon Josefsson.
50482
50483 2008-03-06  Bruno Haible  <bruno@clisp.org>
50484
50485         Make fflush after ungetc work on BSD platforms.
50486         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50487         * tests/test-fflush2.c: New file.
50488         * tests/test-fflush2.sh: New file.
50489         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50490         tests/test-fflush2.c.
50491         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50492         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50493
50494 2008-03-06  Eric Blake  <ebb9@byu.net>
50495
50496         Likewise for ftello.
50497         * modules/ftello (Dependencies): Add extensions.
50498         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50499
50500 2008-03-06  Bruno Haible  <bruno@clisp.org>
50501
50502         * modules/fseeko (Dependencies): Add extensions.
50503         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50504         Needed on glibc systems.
50505
50506 2008-03-06  Bruno Haible  <bruno@clisp.org>
50507
50508         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50509         email address.
50510         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50511
50512 2008-03-06  Bruno Haible  <bruno@clisp.org>
50513
50514         * users.txt: Add libgnupdf.
50515
50516 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50517
50518         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50519         (Header File Substitutes, Function Substitutes,
50520         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50521         (Build robot for gnulib): Fix typo.
50522
50523 2008-03-06  Bruno Haible  <bruno@clisp.org>
50524
50525         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50526         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50527
50528 2008-03-06  Bruno Haible  <bruno@clisp.org>
50529
50530         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50531         * doc/gnulib.texi: Include it.
50532
50533 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50534
50535         * modules/func (License): Change license to unlimited; there was
50536         no LGPL parts in the module anyway.
50537
50538 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50539
50540         * modules/__func__: Renamed to modules/func.
50541         * modules/__func__-tests: Renamed to modules/func-tests.
50542         * tests/test-__func__.c: Renamed to tests/test-func.c.
50543         * m4/__func__.m4: Renamed to m4/func.m4.
50544         * doc/gnulib.texi (__func__): Section renamed to func.
50545         Suggested by Eric Blake <ebb9@byu.net>.
50546
50547 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50548
50549         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50550         about __func__.  Make example self-contained.  Suggested by Eric
50551         Blake <ebb9@byu.net>.
50552
50553         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50554         Suggested by Eric Blake <ebb9@byu.net>.
50555
50556 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50557
50558         * modules/__func__: New file.
50559         * modules/__func__-tests: New file.
50560         * tests/test-__func__.c: New file.
50561         * m4/__func__.m4: New file.
50562         * doc/gnulib.texi (__func__): Document __func__ module.
50563
50564 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50565
50566         * modules/byteswap (License): Re-license as LGPLv2+.
50567
50568 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50569
50570         * doc/Makefile: Add pdf target.
50571
50572 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50573
50574         * modules/inline (License): Use 'unlimited', since there are only
50575         *.m4 files in this module.
50576
50577 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50578             Bruno Haible  <bruno@clisp.org>
50579
50580         Add support for HP C 7.1 on OpenVMS 8.3.
50581         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50582
50583 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50584
50585         Update VMS specifics.
50586         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50587
50588 2008-03-02  Jim Meyering  <meyering@redhat.com>
50589
50590         Remove the last dependency on the "free" module.
50591         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50592         Reported by Bob Proulx.
50593
50594         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50595
50596         Remove useless "if" tests before free.  Deprecate "free" module.
50597         * doc/posix-functions/free.texi: Mention that this
50598         module is no longer useful.
50599         * modules/free (Notice): Say this module is obsolete.
50600         * modules/readutmp (Depends-on): Remove free.
50601         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50602         * lib/putenv.c (putenv): Likewise.
50603         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50604         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50605         * tests/test-c-strcasestr.c (main): Likewise.
50606         * tests/test-c-strstr.c (main): Likewise.
50607         * tests/test-mbscasestr1.c (main): Likewise.
50608         * tests/test-mbscasestr2.c (main): Likewise.
50609         * tests/test-mbsstr1.c (main): Likewise.
50610         * tests/test-mbsstr2.c (main): Likewise.
50611         * tests/test-memmem.c (main): Likewise.
50612         * tests/test-strcasestr.c (main): Likewise.
50613         * tests/test-striconv.c (main): Likewise.
50614         * tests/test-striconveh.c (main): Likewise.
50615         * tests/test-striconveha.c (main): Likewise.
50616         * tests/test-strstr.c (main): Likewise.
50617
50618         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50619
50620         bootstrap: sync from coreutils again
50621         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50622
50623 2008-03-01  Jim Meyering  <meyering@redhat.com>
50624
50625         bootstrap: sync from coreutils
50626         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50627         also when the target doesn't exist.
50628
50629 2008-03-01  Eric Blake  <ebb9@byu.net>
50630
50631         Fix bugs in last patch.
50632         * lib/memchr2.c (memchr2): Fix typo.
50633         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50634         extension.
50635         Reported by Bruce Korb.
50636
50637         New module 'memchr2'.
50638         * modules/memchr2: New file.
50639         * modules/memchr2-tests: Likewise.
50640         * lib/memchr2.h: Likewise.
50641         * lib/memchr2.c: Likewise, based on memchr.c.
50642         * tests/test-memchr2.c: New test.
50643         * MODULES.html.sh (String handling): Add memchr2.
50644
50645 2008-02-29  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/freadseek-tests: New file.
50648         * tests/test-freadseek.sh: New file.
50649         * tests/test-freadseek.c: New file.
50650
50651         New module 'freadseek'.
50652         * modules/freadseek: New file.
50653         * lib/freadseek.h: New file.
50654         * lib/freadseek.c: New file.
50655         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50656
50657 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50658
50659         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50660         wydawca.
50661
50662         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50663         program_invocation_name and program_invocation_short_name are
50664         present.
50665
50666 2008-02-28  Bruno Haible  <bruno@clisp.org>
50667
50668         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50669         * tests/test-freadptr.sh: Also test non-seekable stdin.
50670
50671 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50672
50673         * build-aux/bootstrap (source_base, m4_base)
50674         (doc_base, tests_base): New variables.
50675         (gnulib_tool_options): Do not hardcode base directories, use
50676         the above variables instead.
50677
50678 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50679
50680         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50681
50682 2008-02-28  Bruno Haible  <bruno@clisp.org>
50683
50684         * modules/freadptr-tests: New file.
50685         * tests/test-freadptr.sh: New file.
50686         * tests/test-freadptr.c: New file.
50687
50688         New module 'freadptr'.
50689         * modules/freadptr: New file.
50690         * lib/freadptr.h: New file.
50691         * lib/freadptr.c: New file.
50692         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50693
50694 2008-02-26  Karl Berry  <karl@freefriends.org>
50695
50696         Sync from Libtool:
50697         * libltdl/argz.c (argz_add, argz_count): New functions.
50698         * libltdl/argz.in.h: Declare them.
50699         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50700
50701 2008-02-22  Bruno Haible  <bruno@clisp.org>
50702
50703         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50704         is a pointer type.  Needed for HP-UX 10.
50705         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50706         * doc/posix-functions/gmtime_r.texi: Likewise.
50707         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50708
50709 2008-02-24  Bruno Haible  <bruno@clisp.org>
50710
50711         * modules/environ-tests: New file.
50712         * tests/test-environ.c: New file.
50713
50714         New module 'environ'.
50715         * modules/environ: New file.
50716         * lib/unistd.in.h (environ): New declaration.
50717         * m4/environ.m4: New file.
50718         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50719         after use.
50720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50721         HAVE_DECL_ENVIRON.
50722         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50723         HAVE_DECL_ENVIRON.
50724         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50725         wrong claim that 'environ' is missing on some systems.
50726         * modules/execute (Depends-on): Add environ.
50727         * lib/execute.c (environ): Remove fallback declaration.
50728         * modules/pipe (Depends-on): Add environ.
50729         * lib/pipe.c (environ): Remove fallback declaration.
50730         * modules/setenv (Depends-on): Add environ.
50731         * lib/setenv.c (environ): Remove fallback declaration.
50732         * modules/unsetenv (Depends-on): Add environ.
50733         * lib/unsetenv.c (environ): Remove fallback declaration.
50734         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50735         m4/environ.m4.
50736         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50737         (gl_PREREQ_UNSETENV): Likewise.
50738
50739 2008-02-24  Bruno Haible  <bruno@clisp.org>
50740
50741         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50742
50743 2008-02-20  Bob Proulx  <bob@proulx.com>
50744
50745         Enable use of older two part flavor 'git describe'.
50746         * build-aux/git-version-gen: If using the older two part flavor of
50747         git version then recreate the third part now present in the
50748         newer three part flavor of git describe.
50749
50750 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50751
50752         * lib/fts.c (fts_build): Typo correction to comment.
50753
50754 2008-02-17  Bruno Haible  <bruno@clisp.org>
50755
50756         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50757         generating no-op conflicts.
50758
50759 2008-02-17  Bruno Haible  <bruno@clisp.org>
50760
50761         Speed up by 10%.
50762         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50763         result_entries, rather than an index-based loop.
50764
50765 2008-02-17  Bruno Haible  <bruno@clisp.org>
50766
50767         Speed up by 25%.
50768         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50769         'hashcode_cached'.
50770         (entry_create): New function.
50771         (entry_hashcode): Use the cached hashcode if possible.
50772         (read_changelog_file, try_split_merged_entry): Use entry_create.
50773
50774 2008-02-17  Bruno Haible  <bruno@clisp.org>
50775
50776         Speed up from O(n^2) to O(n) for long ChangeLog files.
50777         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50778         (read_changelog_file): Change implementation of entries_reversed list
50779         to rbtreehash.
50780         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50781
50782 2008-02-17  Bruno Haible  <bruno@clisp.org>
50783
50784         New option --split-merged-entry.
50785         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50786         (find_paragraph_end, try_split_merged_entry): New functions.
50787         (long_options): Add option --split-merged-entry.
50788         (usage): Document option --split-merged-entry.
50789         (main): Implement option --split-merged-entry.
50790         Reported by Eric Blake.
50791
50792 2008-02-17  Bruno Haible  <bruno@clisp.org>
50793
50794         * lib/git-merge-changelog.c: Include c-strstr.h.
50795         (main): Support the "git pull --rebase" situation.
50796         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50797         Reported by Eric Blake.
50798
50799 2008-02-16  Eric Blake  <ebb9@byu.net>
50800
50801         Avoid doubling \ in common case of "c-maybe" quoting style.
50802         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50803         eliding outer quotes.
50804         * lib/quotearg.h: Document this.
50805         * tests/test-quotearg.c (result_strings, inputs, results_g)
50806         (flag_results, locale_results): Test it by adding a new string to
50807         each test group.
50808         (compare_strings): Test new string.
50809
50810 2008-02-13  Eric Blake  <ebb9@byu.net>
50811
50812         Avoid trigraph quoting in default output.
50813         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50814         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50815         unless explicitly requested.
50816         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50817
50818 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50819
50820         Don't rely on signed integer overflowing to negative value.
50821         * lib/getugroups.c (getugroups): Include <limits.h>.
50822         Instead, compare against INT_MAX, and increment only if the test passes.
50823
50824 2008-02-13  Jim Meyering  <meyering@redhat.com>
50825         and Eric Blake  <ebb9@byu.net>
50826
50827         Avoid shadowing warning and compile errors on Linux.
50828         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50829         forwarding macros on Linux.
50830         (dcgettext): Define a stub, for Linux.
50831         (results_g, main): Avoid warnings.
50832
50833 2008-02-12  Eric Blake  <ebb9@byu.net>
50834
50835         Silence warning in last patch.
50836         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50837
50838         Quotearg part 4: add tests, fix c-maybe colon quoting.
50839         * lib/quotearg.h: Improve documentation.
50840         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50841         escapes when adding outer quotes.  When quoting trigraphs, use
50842         valid C notation.  When quoting NUL, omit extra characters if next
50843         character is not digit.  Alter prototype.
50844         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50845         callers.
50846         * modules/quotearg-tests: New module.
50847         * tests/test-quotearg.c: New test.
50848
50849 2008-02-07  Eric Blake  <ebb9@byu.net>
50850
50851         Quotearg part 3: add flag to control outer quote elision.
50852         * lib/quotearg.h (c_maybe_quoting_style): New style.
50853         (enum quoting_flags): Better documentation of flags.
50854         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50855         c-maybe style.
50856         (quotearg_buffer_restyled): Handle new flag to elide outer
50857         quotes.
50858
50859         Quotearg part 2: add flag that can control NUL elision.
50860         * lib/quotearg.h (set_quoting_flags): New prototype.
50861         * lib/quotearg.c (struct quoting_options): Add flag field.
50862         (set_quoting_flags): New function.
50863         (quotearg_buffer_restyled): Add flags parameter.
50864         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50865         (quotearg_n_options): Set the flag, since length cannot be
50866         returned.
50867         (quoting_options_from_style): Default flags correctly.
50868
50869         Quotearg part 1: more wrappers, restore quotearg_char state.
50870         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50871         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50872         (quotearg_colon_mem): New wrappers.
50873         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50874         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50875         functions.
50876         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50877         (quotearg_colon_mem): New functions.
50878
50879 2008-02-11  Bruno Haible  <bruno@clisp.org>
50880
50881         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50882         library in the current directory: it does not work with parallel make.
50883         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50884
50885 2008-02-11  Bruno Haible  <bruno@clisp.org>
50886
50887         * .gitattributes: New file.
50888
50889 2008-02-11  Jim Meyering  <meyering@redhat.com>
50890
50891         useless-if-before-free: Fix reversed exit values.
50892         * build-aux/useless-if-before-free: Use correct values
50893         for EXIT_MATCH and EXIT_NO_MATCH.
50894
50895         * build-aux/useless-if-before-free: Close stdout carefully.
50896
50897 2008-02-10  Bruno Haible  <bruno@clisp.org>
50898
50899         New module 'git-merge-changelog'.
50900         * modules/git-merge-changelog: New file.
50901         * lib/git-merge-changelog.c: New file.
50902
50903 2008-02-10  Jim Meyering  <meyering@redhat.com>
50904
50905         useless-if-before-free: New option: --list (-l).
50906
50907         useless-if-before-free: Don't exit immediately upon open failure.
50908         * build-aux/useless-if-before-free: Exit 2 for errors.
50909         Upon failure to open a file, don't exit immediately.
50910         Rather, just warn and continue with any remaining files.
50911
50912 2008-02-10  Bruno Haible  <bruno@clisp.org>
50913
50914         New abstract list operation 'node_set_value'.
50915         * lib/gl_list.h (gl_list_node_set_value): New function.
50916         (struct gl_list_implementation): New field node_set_value.
50917         * lib/gl_list.c (gl_list_node_set_value): New function.
50918         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50919         (gl_array_list_implementation): Update.
50920         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50921         (gl_carray_list_implementation): Update.
50922         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50923         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50924         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50925         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50926         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50927         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50928         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50929         Update.
50930         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50931         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50932         (gl_sublist_list_implementation): Update.
50933
50934 2008-02-10  Bruno Haible  <bruno@clisp.org>
50935
50936         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50937         Needed when ELEMENT is #defined to 'some_type *'.
50938
50939 2008-02-10  Jim Meyering  <meyering@redhat.com>
50940
50941         New script and module: useless-if-before-free
50942         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50943         * build-aux/useless-if-before-free: New file.
50944         * modules/useless-if-before-free: New file.
50945
50946         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50947
50948         xstrtol_error: Fix typo.
50949         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50950         s/exit_failure/exit_status/.
50951
50952 2008-02-09  Jim Meyering  <meyering@redhat.com>
50953
50954         New script and module: gitlog-to-changelog
50955         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50956         * modules/gitlog-to-changelog: New file.
50957         * build-aux/gitlog-to-changelog: New file.
50958
50959 2008-02-08  Jim Meyering  <meyering@redhat.com>
50960
50961         Avoid two "parameter unused" warnings.
50962         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50963         Mark "st" as used.
50964
50965         Use "git COMMAND", not "git-COMMAND".
50966         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50967         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50968         * build-aux/git-version-gen: Use "git status", not "git-status".
50969
50970 2008-02-07  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50973         Avoids a crash on Windows Vista.
50974         Reported by Adam Strzelecki <ono@java.pl> via
50975         Simon Josefsson <simon@josefsson.org>.
50976
50977 2008-02-06  Bruno Haible  <bruno@clisp.org>
50978
50979         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50980         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50981         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50983         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50984         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50985         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50986         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50988         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50989         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50990         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50991         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50992         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50993         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50994         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50995         left-adjust flag.
50996         * tests/test-snprintf-posix.h (test_function): Likewise.
50997         * tests/test-sprintf-posix.h (test_function): Likewise.
50998         * tests/test-vasprintf-posix.c (test_function): Likewise.
50999         * doc/posix-functions/fprintf.texi: Update.
51000         * doc/posix-functions/printf.texi: Update.
51001         * doc/posix-functions/snprintf.texi: Update.
51002         * doc/posix-functions/sprintf.texi: Update.
51003         * doc/posix-functions/vfprintf.texi: Update.
51004         * doc/posix-functions/vprintf.texi: Update.
51005         * doc/posix-functions/vsnprintf.texi: Update.
51006         * doc/posix-functions/vsprintf.texi: Update.
51007         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51008
51009 2008-02-06  Bruno Haible  <bruno@clisp.org>
51010
51011         Fix bug introduced on 2008-01-26.
51012         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51013
51014 2008-02-06  Bruno Haible  <bruno@clisp.org>
51015
51016         Fix bug introduced on 2007-06-10.
51017         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51018         !NEED_PRINTF_FLAG_ZERO.
51019
51020 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51021
51022         getloadavg: use libperfstat on AIX5
51023         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51024
51025 2008-02-03  Bruno Haible  <bruno@clisp.org>
51026
51027         * lib/diffseq.h: Add comments about required #includes.
51028         Reported by Michael Biggs <gnulib@doubleplum.net>.
51029
51030 2008-02-01  Bruno Haible  <bruno@clisp.org>
51031
51032         * users.txt: Add gnuit.
51033
51034 2008-01-31  Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/md4.c (set_uint32): Mark as inline.
51037         * lib/md5.c (set_uint32): Likewise.
51038         * lib/sha1.c (set_uint32): Likewise.
51039         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51040         * m4/md5.m4 (gl_MD5): Likewise.
51041         * m4/sha1.m4 (gl_SHA1): Likewise.
51042
51043 2008-01-31  Jim Meyering  <meyering@redhat.com>
51044
51045         Use "sizeof VAR", rather than a literal "4".
51046         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51047         * lib/md4.c (md4_read_ctx): Likewise.
51048         * lib/sha1.c (sha1_read_ctx): Likewise.
51049
51050 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51051
51052         * tests/test-sha1.c: New file, based on test-md5.c.
51053
51054         * modules/crypto/sha1-tests: New file.
51055
51056 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51057
51058         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51059
51060 2008-01-31  Jim Meyering  <meyering@redhat.com>
51061
51062         Prefer "sizeof v" over the equivalent "4".
51063         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51064         * lib/md5.c (set_uint32): Likewise.
51065         * lib/sha1.c (set_uint32): Likewise.
51066
51067 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51068
51069         * lib/sha1.c (set_uint32): Mark function as static.
51070
51071 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51072
51073         md2: clarify comments to say that alignment is not required.
51074         * lib/md2.h: Remove warning about alignment in comment.
51075         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51076         never been required.
51077
51078 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51079
51080         md4: adapt alignment constraint fix from sha1.
51081         * lib/md4.c (set_uint32): New function, from sha1.c
51082         (md4_read_ctx): Use it.
51083         (md4_finish_ctx): Doc fix.
51084         * lib/md4.h: Doc fix.
51085
51086 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51087
51088         md5: adapt alignment constraint fix from sha1.
51089         * lib/md5.c (set_uint32): New function, from sha1.c
51090         (md5_read_ctx): Use it.
51091         (md5_finish_ctx): Doc fix.
51092         * lib/md5.h: Doc fix.
51093
51094 2008-01-30  Peter Palfrader  <weasel@debian.org>
51095
51096         sha1: remove the result buffer alignment constraint
51097         * lib/sha1.c (set_uint32): New function.
51098         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51099         constraint.
51100         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51101         * lib/sha1.h: Likewise.
51102
51103 2008-01-30  Andreas Schwab  <schwab@suse.de>
51104             Bruno Haible  <bruno@clisp.org>
51105
51106         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51107         correct definition of LDBL_MIN_EXP.
51108
51109 2008-01-30  Karl Berry  <karl@gnu.org>
51110
51111         * config/srclist-update: try to preserve x bit on updates.
51112         * config/srclistvars.sh: update for karl.
51113
51114 2008-01-29  Jim Meyering  <meyering@redhat.com>
51115
51116         vasnprintf.c: Avoid warning about unused label
51117         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51118         "overflow" label definition and associated code with the
51119         same cpp condition that guards the sole use of that label.
51120
51121 2008-01-26  Bruno Haible  <bruno@clisp.org>
51122
51123         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51124         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51125         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51126         * lib/isnanl-nolibm.h (isnanl): Likewise.
51127         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51128
51129 2008-01-26  Bruno Haible  <bruno@clisp.org>
51130
51131         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51132         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51133
51134 2008-01-26  Bruno Haible  <bruno@clisp.org>
51135
51136         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51137         GCC >= 4.0 built-in.
51138         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51139
51140 2008-01-26  Bruno Haible  <bruno@clisp.org>
51141
51142         Rename isnan, applicable to 'double' only, to isnand.
51143         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51144         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51145         (configure.ac): Update.
51146         (Include): Replace "isnan.h" with "isnand.h".
51147         * m4/isnand.m4: Renamed from m4/isnan.m4.
51148         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51149         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51150         instead of isnan.c.
51151         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51152         instead of HAVE_ISNAN_IN_LIBC.
51153         (isnand): Renamed from isnan.
51154         * lib/isnand.c: New file.
51155         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51156         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51157         (Makefile.am): Update.
51158         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51159         Include isnand.h instead of isnan.h.
51160         (main): Test isnand instead of isnan.
51161         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51162         isnan-nolibm.
51163         * modules/frexp (Depends-on): Likewise.
51164         * modules/frexp-tests (Depends-on): Likewise.
51165         * modules/frexp-nolibm (Depends-on): Likewise.
51166         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51167         * modules/isfinite (Depends-on): Likewise.
51168         * modules/round-tests (Depends-on): Likewise.
51169         * modules/signbit (Depends-on): Likewise.
51170         * modules/signbit-tests (Depends-on): Likewise.
51171         * modules/snprintf-posix (Depends-on): Likewise.
51172         * modules/sprintf-posix (Depends-on): Likewise.
51173         * modules/trunc-tests (Depends-on): Likewise.
51174         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51175         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51176         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51177         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51178         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51179         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51180         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51181         * modules/vasnprintf-posix (Depends-on): Likewise.
51182         * modules/vasprintf-posix (Depends-on): Likewise.
51183         * modules/vfprintf-posix (Depends-on): Likewise.
51184         * modules/vsnprintf-posix (Depends-on): Likewise.
51185         * modules/vsprintf-posix (Depends-on): Likewise.
51186         * lib/frexp.c: Include isnand.h instead of isnan.h.
51187         (ISNAN): Set to isnand instead of isnan.
51188         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51189         (gl_isfinited): Use isnand instead of isnan.
51190         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51191         (gl_signbitd): Use isnand instead of isnan.
51192         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51193         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51194         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51195         (main): Use isnand instead of isnan.
51196         * tests/test-round1.c: Include isnand.h.
51197         (main): Use isnand instead of isnan.
51198         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51199         (ISNAN): Set to isnand instead of isnan.
51200         * tests/test-trunc1.c: Include isnand.h.
51201         (main): Use isnand instead of isnan.
51202         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51203         (equal): Use isnand instead of isnan.
51204         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51205         isnand-nolibm.
51206         * NEWS: Mention the change.
51207
51208 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51209             Bruno Haible  <bruno@clisp.org>
51210
51211         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51212         the GCC builtins for signbits are present and set
51213         REPLACE_SIGNBIT_USING_GCC if so.
51214         * lib/math.in.h (signbit): Define using GCC builtins if
51215         REPLACE_SIGNBIT_USING_GCC is set.
51216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51217         REPLACE_SIGNBIT_USING_GCC.
51218         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51219
51220 2008-01-25  Jim Meyering  <meyering@redhat.com>
51221
51222         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51223         * lib/poll.c: Include <config.h>, not "config.h".
51224         * tests/test-getaddrinfo.c: Likewise.
51225
51226 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51227
51228         * modules/sockets-tests: New file.
51229
51230 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51231
51232         * modules/sockets: New module, can be used to call WSA_Startup and
51233         WSA_Cleanup when needed.
51234
51235         * lib/sockets.h, lib/sockets.c: New files.
51236
51237         * m4/sockets.m4: New file.
51238
51239         * tests/test-sockets.c: New file.
51240
51241 2008-01-19  Bruno Haible  <bruno@clisp.org>
51242
51243         * doc/posix-headers: Renamed from doc/headers.
51244         * doc/posix-functions: Renamed from doc/functions.
51245         * doc/gnulib.texi: Update.
51246
51247 2008-01-19  Bruno Haible  <bruno@clisp.org>
51248
51249         * doc/glibc-functions/strcasestr.texi: Include contents of
51250         doc/functions/strcasestr.texi, fixing the list of platforms.
51251         * doc/functions/strcasestr.texi: Remove file.
51252
51253 2008-01-19  Bruno Haible  <bruno@clisp.org>
51254
51255         * doc/glibc-functions/memmem.texi: Include contents of
51256         doc/functions/memmem.texi.
51257         * doc/functions/memmem.texi: Remove file.
51258
51259 2008-01-18  Bruno Haible  <bruno@clisp.org>
51260
51261         * doc/glibc-functions/*.texi: New files.
51262         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51263         to use the new files.
51264
51265 2008-01-17  Bruno Haible  <bruno@clisp.org>
51266
51267         * tests/test-gethostname.c (main): Fix printf statement.
51268
51269 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51270
51271         * modules/gethostname-tests: New file.
51272
51273         * tests/test-gethostname.c: New file.
51274
51275 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51276
51277         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51278         used by the UNAME case.  Reported by Bruno Haible
51279         <bruno@clisp.org>.
51280
51281 2008-01-17  Eric Blake  <ebb9@byu.net>
51282
51283         Convert c-strcasestr to be more efficient.
51284         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51285         (Depends-on): Add c-strcase, remove malloca, strnlen.
51286         * tests/test-c-strcasestr.c (main): Enhance test.
51287         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51288
51289 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51290
51291         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51292         Use it in creating po/Makevars.
51293
51294 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51295
51296         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51297         Applications that requires it should initialize libgcrypt
51298         manually.
51299
51300 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51301
51302         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51303
51304 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51305
51306         Fix problem with getdate on mingw32 reported by Simon Josefsson
51307         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51308         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51309         tzname", when deciding whether to declare tzname.
51310         * lib/strftime.c (tzname): Likewise.
51311
51312 2008-01-15  Bruno Haible  <bruno@clisp.org>
51313
51314         Work around a MacOS X 10.5 bug in frexpl().
51315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51316         * doc/functions/frexpl.texi: Document the bug.
51317         Reported by Elias Pipping <pipping@gentoo.org>.
51318
51319 2008-01-14  Eric Blake  <ebb9@byu.net>
51320
51321         Touch up previous patch.
51322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51323         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51324
51325         Convert strcasestr module to use Two-Way algorithm.
51326         * modules/strcasestr-simple: New module, based on the old
51327         strcasestr, but with Two-Way rather than KMP.
51328         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51329         * lib/string.in.h (rpl_strcasestr): Declare.
51330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51331         performance.
51332         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51333         * modules/string (Makefile.am): Support strcasestr.
51334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51335         * modules/strcasestr-tests (Depends-on): Check for alarm.
51336         * tests/test-strcasestr.c: Augment test.
51337         * lib/str-two-way.h: Clean up stray macro.
51338         * NEWS: Document new module.
51339         * MODULES.html.sh (string handling): Likewise.
51340         * doc/functions/strcasestr.texi: New file.
51341         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51342         here, since it is not a POSIX function.
51343
51344 2008-01-14  Colin Watson  <cjwatson@debian.org>
51345             Bruno Haible  <bruno@clisp.org>
51346
51347         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51348         works fine; if not, set REPLACE_STRSIGNAL.
51349         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51351         REPLACE_STRSIGNAL.
51352         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51353         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51354         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51355
51356 2008-01-14  Bruno Haible  <bruno@clisp.org>
51357
51358         * modules/strsignal (Include): Change to <string.h>.
51359
51360 2008-01-14  Colin Watson  <cjwatson@debian.org>
51361
51362         * modules/argp (Notice): Add a notice recommending to change
51363         XGETTEXT_OPTIONS.
51364         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51365
51366 2008-01-13  Colin Watson  <cjwatson@debian.org>
51367
51368         * modules/strsignal-tests: New file.
51369         * tests/test-strsignal.c: New file.
51370
51371         * lib/strsignal.c: New file, from glibc with modifications.
51372         * lib/siglist.h: New file, from glibc with modifications.
51373         * lib/string.in.h (strsignal): New declaration.
51374         * m4/strsignal.m4: New file.
51375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51376         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51377         * modules/strsignal: New file.
51378         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51379         HAVE_DECL_STRSIGNAL.
51380
51381 2008-01-13  Bruno Haible  <bruno@clisp.org>
51382
51383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51384         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51385         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51387
51388 2008-01-13  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51391         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51392         * lib/argp.h (__attribute__): Likewise.
51393         * lib/c-stack.c (__attribute__): Likewise.
51394         * lib/error.h (__attribute__): Likewise.
51395         * lib/fts.c (__attribute__): Likewise.
51396         * lib/openat.h (__attribute__): Likewise.
51397         * lib/stdio.in.h (__attribute__): Likewise.
51398         * lib/string.in.h (__attribute__): Likewise.
51399         * lib/utimens.c (__attribute__): Likewise.
51400         * lib/vasnprintf.h (__attribute__): Likewise.
51401         * lib/xalloc.h (__attribute__): Likewise.
51402         * lib/xprintf.h (__attribute__): Likewise.
51403         * lib/xstrtol.h (__attribute__): Likewise.
51404         * lib/xvasprintf.h (__attribute__): Likewise.
51405
51406 2008-01-12  Bruno Haible  <bruno@clisp.org>
51407
51408         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51409         * doc/glibc-headers/a.out.texi: New file.
51410         * doc/glibc-headers/aliases.texi: New file.
51411         * doc/glibc-headers/alloca.texi: New file.
51412         * doc/glibc-headers/ar.texi: New file.
51413         * doc/glibc-headers/argp.texi: New file.
51414         * doc/glibc-headers/argz.texi: New file.
51415         * doc/glibc-headers/byteswap.texi: New file.
51416         * doc/glibc-headers/crypt.texi: New file.
51417         * doc/glibc-headers/endian.texi: New file.
51418         * doc/glibc-headers/envz.texi: New file.
51419         * doc/glibc-headers/err.texi: New file.
51420         * doc/glibc-headers/error.texi: New file.
51421         * doc/glibc-headers/execinfo.texi: New file.
51422         * doc/glibc-headers/fpu_control.texi: New file.
51423         * doc/glibc-headers/fstab.texi: New file.
51424         * doc/glibc-headers/fts.texi: New file.
51425         * doc/glibc-headers/getopt.texi: New file.
51426         * doc/glibc-headers/ieee754.texi: New file.
51427         * doc/glibc-headers/ifaddrs.texi: New file.
51428         * doc/glibc-headers/libintl.texi: New file.
51429         * doc/glibc-headers/mcheck.texi: New file.
51430         * doc/glibc-headers/mntent.texi: New file.
51431         * doc/glibc-headers/obstack.texi: New file.
51432         * doc/glibc-headers/paths.texi: New file.
51433         * doc/glibc-headers/printf.texi: New file.
51434         * doc/glibc-headers/pty.texi: New file.
51435         * doc/glibc-headers/resolv.texi: New file.
51436         * doc/glibc-headers/shadow.texi: New file.
51437         * doc/glibc-headers/sysexits.texi: New file.
51438         * doc/glibc-headers/ttyent.texi: New file.
51439
51440 2008-01-12  Jim Meyering  <meyering@redhat.com>
51441
51442         announce-gen: emit Gnulib's git-based version string.
51443         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51444         New option --gnulib-version=V, where V is expected to be
51445         the output of running git describe in the gnulib directory.
51446         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51447         not useful, and plan to stop publishing an xdelta file with each
51448         coreutils release.
51449
51450         * build-aux/announce-gen: Also check for lzma-compressed files.
51451
51452 2008-01-11  Bruno Haible  <bruno@clisp.org>
51453
51454         * tests/test-memmem.c (main): Increase maximum allowed time.
51455         * tests/test-strstr.c (main): Likewise.
51456
51457 2008-01-11  Bruno Haible  <bruno@clisp.org>
51458
51459         * doc/functions/memmem.texi: Add more precisions about platforms.
51460         * doc/functions/strstr.texi: Likewise.
51461
51462 2008-01-10  Eric Blake  <ebb9@byu.net>
51463
51464         * m4/strstr.m4: Delete cruft from copy-n-paste.
51465         Reported by Bruno Haible.
51466
51467 2008-01-10  Bruno Haible  <bruno@clisp.org>
51468
51469         Make c-strstr rely on strstr.
51470         * lib/c-strstr.c: Don't include str-kmp.h.
51471         (c_strstr): Define in terms of strstr.
51472         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51473         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51474
51475 2008-01-10  Bruno Haible  <bruno@clisp.org>
51476
51477         * doc/gnulib.texi (String Functions in C Locale): New section.
51478         * doc/c-ctype.texi: New file.
51479         * doc/c-strcase.texi: New file.
51480         * doc/c-strcaseeq.texi: New file.
51481         * doc/c-strcasestr.texi: New file.
51482         * doc/c-strstr.texi: New file.
51483         * doc/c-strtod.texi: New file.
51484         * doc/c-strtold.texi: New file.
51485
51486 2008-01-10  Eric Blake  <ebb9@byu.net>
51487
51488         * lib/relocatable.h: Fix a comment.
51489
51490 2008-01-10  Eric Blake  <ebb9@byu.net>
51491
51492         Share two-way algorithm.
51493         * lib/str-two-way.h: New file, merged from...
51494         * lib/memmem.c: ...here...
51495         * lib/strstr.c: ...and here.
51496         * modules/memmem (Files): Use it.
51497         * modules/strstr (Files): Likewise.
51498
51499         Avoid quadratic strstr implementations.
51500         * lib/strstr.c: New file.
51501         * m4/strstr.m4: Likewise.
51502         * modules/strstr: Likewise.
51503         * modules/strstr-tests: Likewise.
51504         * tests/test-strstr.c: Likewise.
51505         * lib/string.in.h (rpl_strstr): Declare.
51506         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51508         * modules/string (Makefile.am): Likewise.
51509         * MODULES.html.sh (string handling): Mention new module.
51510         * doc/functions/strstr.texi (strstr): Document the bug.
51511
51512 2008-01-10  Bruno Haible  <bruno@clisp.org>
51513
51514         * lib/relocatable.h (relocate): State whether result is freshly
51515         allocated or not.
51516         * lib/relocatable.c (relocate): Return a freshly allocated string
51517         instead of a pointer to a privately held string.
51518         Reported by Sylvain Beucler <beuc@gnu.org>.
51519
51520 2008-01-10  Colin Watson  <cjwatson@debian.org>
51521
51522         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51523         s/S_ISNLK/S_ISLNK/.
51524
51525 2008-01-09  Bruno Haible  <bruno@clisp.org>
51526
51527         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51528         and other files.
51529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51530         if it's only a guess.
51531         * modules/memmem: Simplify by depending on memmem-simple.
51532
51533 2008-01-09  Bruno Haible  <bruno@clisp.org>
51534
51535         Work around OpenBSD 4.0 tdelete() bug.
51536         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51537         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51538         macros and don't redefine the enum values.
51539         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51540         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51541         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51542
51543 2008-01-09  Bruno Haible  <bruno@clisp.org>
51544
51545         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51546         (main): Don't perform the tests if setlocale did not install a UTF-8
51547         locale. Needed on OpenBSD 4.0.
51548         * modules/wcwidth-tests (Depends-on): Add localcharset.
51549
51550 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51551
51552         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51553         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51554         * NEWS: announce this.
51555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51556
51557 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51558         and Eric Blake  <ebb9@byu.net>
51559
51560         Add memmem-simple module.
51561         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51562         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51563         * modules/memmem-simple: New file.
51564         * modules/memmem (Description): Tweak.
51565         * MODULES.html.sh (string handling): Mention new module.
51566         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51567         addressed by memmem-simple.
51568         * NEWS: Document the difference.
51569
51570 2008-01-09  Eric Blake  <ebb9@byu.net>
51571
51572         Give gcc some memmem optimization hints.
51573         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51574         (strcasestr): Declare as pure.
51575         * modules/memmem (Maintainer): Claim my implementation.
51576
51577 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51578
51579         Support AIX 6.1 and higher.
51580         * build-aux/config.libpath: Likewise.
51581         * build-aux/config.rpath: Likewise.
51582
51583 2008-01-08  Jim Meyering  <meyering@redhat.com>
51584             Bruno Haible  <bruno@clisp.org>
51585
51586         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51587         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51588         Reported by Peter Fales in
51589         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51590
51591 2008-01-08  Bruno Haible  <bruno@clisp.org>
51592
51593         * modules/unictype/category-of (Depends-on): Add
51594         unictype/category-none.
51595         * modules/unictype/category-and-tests (Depends-on): Add
51596         unictype/category-{L,N,Lu,Nd}.
51597         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51598         * modules/unictype/category-or-tests (Depends-on): Add
51599         unictype/category-{L,N}.
51600         * modules/unictype/category-name-tests (Depends-on): Add
51601         unictype/category-{Z,Nl}.
51602         Reported by Simon Josefsson.
51603
51604 2008-01-08  Bruno Haible  <bruno@clisp.org>
51605
51606         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51607         convention better.
51608         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51609         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51610         Reported by Peter Miller <millerp@canb.auug.org.au>.
51611
51612 2008-01-08  Eric Blake  <ebb9@byu.net>
51613
51614         Rewrite memmem to guarantee linear complexity without malloc.
51615         * lib/memmem.c (memmem): Use Two-Way rather than
51616         Knuth-Morris-Pratt, to allow O(1) space usage.
51617         (critical_factorization, two_way_short_needle)
51618         (two_way_long_needle): New functions.
51619         (knuth_morris_pratt): Delete.
51620         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51621         Add stdint.
51622         * tests/test-memmem.c (main): Add tests for periodic needle and
51623         sublinear performance.
51624         * doc/functions/memmem.texi (memmem): Document other deficiencies
51625         in cygwin and older glibc.
51626
51627 2008-01-08  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51630         augmentation.
51631
51632 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51633
51634         Add a configure time option: --disable-acl.
51635         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51636         AC_ARG_ENABLE(acl).
51637
51638 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51639
51640         * tests/test-localename.c: Don't include obsolete "setenv.h".
51641
51642         * modules/localename-tests (Depends-on): Need unsetenv.
51643
51644 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51645
51646         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51647
51648 2008-01-06  Colin Watson  <cjwatson@debian.org>
51649
51650         * users.txt: Add man-db.
51651
51652 2008-01-07  Bruno Haible  <bruno@clisp.org>
51653
51654         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51655         previous section name.
51656
51657 2008-01-07  Bruno Haible  <bruno@clisp.org>
51658
51659         * lib/progname.c (set_program_name): Don't strip off a leading
51660         "lt-" prefix outside a .libs directory.
51661         Suggested by Paul Eggert.
51662
51663 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51664             Bruno Haible  <bruno@clisp.org>
51665
51666         Improve memory cleanup in 'relocatable' module.
51667         * lib/relocatable.h (compute_curr_prefix): Change return type to
51668         'char *'.
51669         * lib/relocatable.c (compute_curr_prefix): Change return type to
51670         'char *'. Free curr_installdir after use.
51671         (relocate): Free curr_prefix_better after use.
51672         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51673
51674 2008-01-01  Bruno Haible  <bruno@clisp.org>
51675
51676         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51677         failure on older glibc systems.
51678         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51679
51680 2008-01-05  Eric Blake  <ebb9@byu.net>
51681
51682         Avoid quadratic system memmem.
51683         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51684         Reported by Ralf Wildenhues.
51685
51686         Fix memmem test for mingw.
51687         * modules/memmem-tests (configure.ac): Check for alarm.
51688         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51689         it.
51690         * doc/functions/memmem.texi: New file.
51691         * doc/gnulib.texi (Function Substitutes): Add memmem.
51692         Reported by Bruno Haible.
51693
51694 2008-01-04  Bruno Haible  <bruno@clisp.org>
51695
51696         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51697         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51698         gl_HEADER_STRING_H_DEFAULTS.
51699
51700 2008-01-04  Eric Blake  <ebb9@byu.net>
51701
51702         Shorten duration of memmem test.
51703         * tests/test-memmem.c (main): Use alarm to declare failure if test
51704         is taking too long.
51705         Reported by Ralf Wildenhues.
51706
51707 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51708
51709         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51710         string, needed by strerror.
51711
51712 2008-01-03  Colin Watson  <cjwatson@debian.org>
51713             Bruno Haible  <bruno@clisp.org>
51714
51715         * doc/gnulib-tool.texi (Localization): New section.
51716
51717 2008-01-02  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51720         variables to 'unsigned char *' type.
51721         Reported by Paul Eggert.
51722
51723 2008-01-02  Jim Meyering  <jim@meyering.net>
51724
51725         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51726
51727 2007-12-31  Jim Meyering  <jim@meyering.net>
51728
51729         Avoid use of private FTS type name.
51730         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51731
51732 2007-12-30  Karl Berry  <karl@gnu.org>
51733
51734         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51735         work around defect in Texinfo and/or the standalone Info browser.
51736
51737 2007-12-30  Bruno Haible  <bruno@clisp.org>
51738
51739         Unify 5 copies of the KMP code.
51740         * lib/str-kmp.h: New file.
51741         * lib/c-strcasestr.c: Include str-kmp.h.
51742         (knuth_morris_pratt): Remove function.
51743         (c_strcasestr): Update.
51744         * lib/c-strstr.c: Include str-kmp.h.
51745         (knuth_morris_pratt): Remove function.
51746         (c_strcasestr): Update.
51747         * lib/mbscasestr.c: Include str-kmp.h.
51748         (knuth_morris_pratt_unibyte): Remove function.
51749         * lib/mbsstr.c: Include str-kmp.h.
51750         (knuth_morris_pratt_unibyte): Remove function.
51751         * lib/strcasestr.c: Include str-kmp.h.
51752         (knuth_morris_pratt): Remove function.
51753         (strcasestr): Update.
51754         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51755         * modules/c-strstr (Files): Likewise.
51756         * modules/mbscasestr (Files): Likewise.
51757         * modules/mbsstr (Files): Likewise.
51758         * modules/strcasestr (Files): Likewise.
51759         Suggested by Paul Eggert.
51760
51761 2007-12-30  Bruno Haible  <bruno@clisp.org>
51762
51763         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51764         defined.
51765
51766 2007-12-30  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/xmalloca.h: Include xalloc.h.
51769         (xnmalloca): New macro.
51770
51771 2007-12-30  Bruno Haible  <bruno@clisp.org>
51772
51773         * lib/malloca.h (nmalloca): New macro.
51774         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51775         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51776         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51777         knuth_morris_pratt_multibyte): Likewise.
51778         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51779         knuth_morris_pratt_multibyte): Likewise.
51780         * lib/memmem.c (knuth_morris_pratt): Likewise.
51781         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51782
51783 2007-12-25  Bruno Haible  <bruno@clisp.org>
51784
51785         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51786         * lib/glob.c: Don't include openat.h.
51787         (link_exists2_p): Add back the code that deals with the
51788         !GLOB_ALTDIRFUNC case.
51789         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51790         let it do the filename concatenation.
51791         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51792         * modules/glob (Depends-on): Remove openat.
51793
51794 2007-12-31  Bruno Haible  <bruno@clisp.org>
51795
51796         * modules/dirfd (License): Change to LGPLv2+.
51797         Approved by Jim Meyering.
51798
51799 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51802         when multiplying M by sizeof (size_t).
51803
51804 2007-12-10  Martin Lambers  <marlam@marlam.de>
51805
51806         Override getpagesize on mingw.
51807         * lib/getpagesize.c: New file.
51808         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51809         * modules/getpagesize (Files): Add lib/getpagesize.c.
51810         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51812         REPLACE_GETPAGESIZE.
51813         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51814
51815 2007-12-25  Bruno Haible  <bruno@clisp.org>
51816
51817         * modules/localcharset (Notice): New field.
51818         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51819         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51820
51821 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51822             Bruno Haible  <bruno@clisp.org>
51823
51824         Avoid using the syntax symbol() in formatted documentation.
51825         * MODULES.html.sh (func_module): When replacing symbol() with a
51826         hyperlink, remove the parentheses. Show an error if some remain.
51827         Recognize and render the '...' syntax.
51828         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51829         Rework. Add paragraph about GCC's inlining.
51830         * doc/alloca.texi: Likewise.
51831         * doc/error.texi: Remove parentheses from symbol reference.
51832         * doc/gnulib-intro.texi: Likewise.
51833         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51834         * modules/fnmatch (Description): Reword to say "the ... function".
51835         * modules/full-read (Description): Likewise.
51836         * modules/full-write (Description): Likewise.
51837         * modules/safe-read (Description): Likewise.
51838         * modules/safe-write (Description): Likewise.
51839         * modules/strchrnul (Description): Likewise.
51840         * modules/trim (Description): Likewise.
51841         * modules/error (Description): Remove parentheses from symbol
51842         references.
51843         * modules/verror (Description): Likewise.
51844         Reported by Karl Berry.
51845
51846 2007-12-25  Bruno Haible  <bruno@clisp.org>
51847
51848         Fixup after 2007-10-16 commit.
51849         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51850
51851 2007-12-24  Bruno Haible  <bruno@clisp.org>
51852
51853         Make --enable-relocatable work with DESTDIR.
51854         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51855         to compute installdir from destprog.
51856         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51857         also set the RELOC_DESTDIR variable.
51858         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51859
51860 2007-12-24  Bruno Haible  <bruno@clisp.org>
51861
51862         Fix link error due to xalloc_die().
51863         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51864         of xreadlink.
51865         * lib/relocwrapper.c: Update comments.
51866         * build-aux/install-reloc: Remove xreadlink.c from file list.
51867         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51868         xreadlink.c.
51869         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51870
51871 2007-12-24  Bruno Haible  <bruno@clisp.org>
51872
51873         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51874         * lib/setenv.h: Remove file.
51875         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51876         lib/setenv.h.
51877         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51878         (Depends-on): Add stdlib.
51879         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51880         gl_FUNC_UNSETENV.
51881         (Include): Replace setenv.h with <stdlib.h>.
51882         * modules/unsetenv: New file.
51883         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51884         * lib/unsetenv.c: Include <stdlib.h> first.
51885         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51886         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51887         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51888         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51889         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51890         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51892         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51893         * doc/functions/unsetenv.texi: Update.
51894         * modules/xsetenv (Depends-on): Add unsetenv.
51895         * modules/getdate (Depends-on): Likewise.
51896         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51897         * lib/xsetenv.c: Don't include setenv.h.
51898         * lib/getdate.y: Likewise.
51899         * lib/relocwrapper.c: Likewise.
51900         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51901         (Depends-on): Add stdlib.
51902         * NEWS: Mention the changes.
51903         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51904
51905 2007-12-23  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51908         indentation.
51909
51910 2007-12-23  Bruno Haible  <bruno@clisp.org>
51911
51912         * lib/c-strcasestr.c: Add more comments.
51913         * lib/c-strstr.c: Likewise.
51914         * lib/mbscasestr.c: Likewise.
51915         * lib/mbsstr.c: Likewise.
51916         * lib/strcasestr.c: Likewise.
51917         * lib/memmem.c: Likewise.
51918
51919 2007-12-23  Bruno Haible  <bruno@clisp.org>
51920
51921         * tests/test-memmem.c: Include <string.h> first.
51922
51923 2007-12-22  Bruno Haible  <bruno@clisp.org>
51924
51925         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51926         the contents of $testsbase.
51927         Reported by Ralf Wildenhues.
51928
51929 2007-12-22  Bruno Haible  <bruno@clisp.org>
51930
51931         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51932         two variables local_ldadd_before, local_ldadd_last.
51933
51934 2007-12-20  Eric Blake  <ebb9@byu.net>
51935
51936         Work around circular library issue when cross-compiling.
51937         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51938         that progname.o does not need to pull in rpl_memcmp.
51939
51940 2007-12-19  Eric Blake  <ebb9@byu.net>
51941
51942         Fix memmem to avoid O(n^2) worst-case complexity.
51943         * lib/memmem.c (knuth_morris_pratt): New function.
51944         (memmem): Use it if first few naive iterations fail.
51945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51946         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51947         * modules/memchr (License): Likewise.
51948         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51949         malloca.
51950         * tests/test-memmem.c: Rewrite, borrowing ideas from
51951         test-mbsstr1.c; the old version wouldn't even compile!
51952         * modules/memmem-tests: New file.
51953         * lib/string.in.h (rpl_memmem): Add declaration.
51954         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51956         REPLACE_MEMMEM.
51957
51958 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51959
51960         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51961         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51962         before any system include files, and undef after them all.  This
51963         should fix a problem on VMS reported by John E. Malmberg in
51964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51965
51966 2007-12-17  Eric Blake  <ebb9@byu.net>
51967
51968         Revert addition of verify, for BSD/OS.
51969         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51970         can't handle large files, for the sake of obsolete platforms.
51971         * modules/fseeko (Depends-on): Remove verify.
51972         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51973         * doc/functions/ftello.texi (ftello): Likewise.
51974         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51975         Reported by Larry Jones.
51976
51977 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51978
51979         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51980         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51981
51982 2007-12-17  Jim Meyering  <meyering@redhat.com>
51983
51984         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51985         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51986         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51987         * modules/getcwd (Depends-on): Add openat.
51988         Reported by Petr Salinger.
51989
51990 2007-12-17  Bruno Haible  <bruno@clisp.org>
51991
51992         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51993         avoid a segmentation fault of the configure test on x86_64 systems.
51994
51995 2007-12-15  Jim Meyering  <meyering@redhat.com>
51996
51997         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51998
51999 2007-12-13  Eric Blake  <ebb9@byu.net>
52000
52001         Another fseek test.
52002         * tests/test-fseek.c (main): Also test ungetc handling.
52003         * tests/test-fseeko.c (main): Likewise.
52004         * modules/fseeko (Depends-on): Add verify.
52005         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52006         large.
52007         Reported by Larry Jones.
52008
52009         Fix fseeko on mingw.
52010         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52011         seek.
52012
52013         Beef up fseek tests.
52014         * tests/test-fseek.c (main): Also test eof handling.
52015         * tests/test-fseeko.c (main): Likewise.
52016         Reported by Larry Jones.
52017
52018 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52019
52020         Fix fseeko on BSD-based platforms.
52021         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52022         successful seek.
52023
52024 2007-12-12  Eric Blake  <ebb9@byu.net>
52025
52026         Allow circular dependency of separate libtests.a
52027         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52028         when use_libtests.
52029
52030 2007-12-11  Eric Blake  <ebb9@byu.net>
52031
52032         Fix bug with -0.0L in previous patch.
52033         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52034         * tests/test-isnan.c (main): Also test on zeroes.
52035         * tests/test-isnanf.c (main): Likewise.
52036         * tests/test-isnanl.h (main): Likewise.
52037
52038         Detect pseudo-denormals on x86 even when cross-compiling.
52039         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52040         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52041         invalid bit patterns that happen to satisfy ==.
52042
52043         Avoid link failures with separate libtests.a.
52044         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52045         last, to satisfy circular dependencies.
52046
52047 2007-12-11  Eric Blake  <ebb9@byu.net>
52048         and Bruno Haible  <bruno@clisp.org>
52049
52050         Fix OpenBSD 4.0 <float.h> handling of long double.
52051         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52052         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52053         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52054
52055 2007-12-11  Jim Meyering  <meyering@redhat.com>
52056
52057         * users.txt: Add libvirt.
52058
52059         Support versions of autoconf prior to 2.59c.
52060         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52061         if it is not already defined.
52062
52063 2007-12-09  Bruno Haible  <bruno@clisp.org>
52064
52065         Let 'gnulib-tool --import' collect sources needed for the tests in
52066         tests/ rather than in lib/.
52067         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52068         argument. If true, add rules to generate libtests.a, and put libtests.a
52069         into $(LDADD). Consider source files in subdirectories and set
52070         uses_subdirs.
52071         (func_emit_initmacro_start, func_emit_initmacro_end,
52072         func_emit_initmacro_done): Pass all arguments explicitly.
52073         (func_import): Determine two module lists main_modules,
52074         testsrelated_modules. Determine use_libtests. Determine two variables
52075         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52076         instead of just sed_transform_lib_file. Determine two variables
52077         main_files and testsrelated_files. Compute 'files' as the union of
52078         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52079         func_add_or_update. In the generated gnulib-comp.m4, collect the
52080         object files for tests/ in different variables than those for lib/.
52081         Substitute LIBTESTS_LIBDEPS.
52082         (func_create_testdir): Combine the uses_subdirs results from
52083         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52084
52085 2007-12-09  Bruno Haible  <bruno@clisp.org>
52086
52087         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52088         the build-aux directory.
52089
52090 2007-12-09  Bruno Haible  <bruno@clisp.org>
52091
52092         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52093         introduced on 2006-09-09.
52094
52095 2007-12-07  Jim Meyering  <meyering@redhat.com>
52096
52097         Let these macros work also with autoconf-2.59.
52098         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52099         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52100         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52101
52102 2007-12-06  Jim Meyering  <meyering@redhat.com>
52103
52104         Avoid a configure-time syntax error in gl_FUNC_ACL.
52105         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52106         function in each branch, before testing the cache variable.
52107
52108 2007-12-04  Eric Blake  <ebb9@byu.net>
52109
52110         Make scripts executable.
52111         * build-aux/config.guess: Add execute permissions.
52112         * build-aux/config.sub: Likewise.
52113         * build-aux/gendocs.sh: Likewise.
52114
52115         Fix frexp on mingw.
52116         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52117         cross-compiling.
52118         * doc/functions/frexp.texi (frexp): Document the bug.
52119
52120         Make cygwin fseeko check more reliable.
52121         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52122         version numbers, rather than unrelated feature check.
52123         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52124         * doc/functions/ftello.texi (ftello): Likewise.
52125         Reported by Bruno Haible.
52126
52127         * m4/strerror.m4: Bump version number.
52128
52129 2007-12-03  Bruno Haible  <bruno@clisp.org>
52130
52131         * doc/functions/mprotect.texi: Mention the mingw problem.
52132
52133 2007-12-03  Eric Blake  <ebb9@byu.net>
52134
52135         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52136         REPLACE_STRERROR is initialized before this macro.
52137
52138 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52139
52140         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52141         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52142         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52143         put -lsec in even for programs other than 'ls'.  This fixes a problem
52144         for gettext reported by Bruno Haible in
52145         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52146         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52147         Add support for Solaris 10.  This isn't efficient, but should get the
52148         job done for now.
52149
52150 2007-12-03  James Youngman  <jay@gnu.org>
52151
52152         * doc/regexprops-generic.texi: change "an close-group" to "a
52153         close-group" and "illegal" to "not allowed".
52154
52155 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52156
52157         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52158         pr_byname.h. Needed for the rare case when the maintainer has done
52159         "make maintainer-clean" in the source directory and then attempts a
52160         build outside the source directory.
52161         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52162         scripts_byname.h.
52163
52164 2007-12-02  Martin Lambers <marlam@marlam.de>
52165             Bruno Haible  <bruno@clisp.org>
52166
52167         * lib/getpagesize.h: Remove file.
52168         * lib/unistd.in.h: Include declaration of getpagesize here.
52169         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52170         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52171         HAVE_SYS_PARAM_H.
52172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52173         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52174         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52175         (Depends-on): Add unistd.
52176         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52177         (Include): Use <unistd.h> instead of getpagesize.h.
52178         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52179         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52180         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52181         gl_GETPAGESIZE invocation, already handled by module dependency.
52182         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52183
52184 2007-12-02  Bruno Haible  <bruno@clisp.org>
52185
52186         * modules/strings-tests: New file.
52187         * tests/test-strings.c: New file.
52188
52189         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52190         * lib/strings.in.h: New file.
52191         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52192         * m4/strings_h.m4: New file.
52193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52194         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52195         * modules/strings: New file.
52196         * modules/string (Makefile.am): Update.
52197         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52198         Reported by Karl Berry.
52199
52200 2007-12-01  Eric Blake  <ebb9@byu.net>
52201
52202         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52203         accomodate fix in cygwin 1.5.25.
52204
52205 2007-12-01  Jim Meyering  <meyering@redhat.com>
52206
52207         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52208         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52209         that would inhibit utf8-optimization of a regexp containing line-
52210         or buffer-anchors, e.g., `^', `$'.
52211
52212 2007-11-30  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52215         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52216         glthread_recursive_lock_init.
52217         * lib/lock.c (glthread_recursive_lock_init)
52218         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52219         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52220
52221 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52222
52223         New function qset_acl, like set_acl but with syscall semantics.
52224         * lib/acl.h (qset_acl): New decl.
52225         * lib/acl.c (qset_acl): New function.
52226         (set_acl): Use new function.  Use more-consistent diagnostics.
52227
52228 2007-11-28  Jim Meyering  <meyering@redhat.com>
52229
52230         * modules/physmem (License): Change from GPL to LGPLv2+.
52231
52232 2007-11-26  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52235         'long double' type has excess precision.
52236         Reported by Jim Meyering in
52237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52238
52239 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52240
52241         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52242         Sync from <http://gnu.org/licenses>.
52243         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52244         with license text from same location.
52245         * doc/maintain.texi, doc/standards.texi:  Sync from
52246         <http://savannah.gnu.org/projects/gnustandards>.
52247
52248 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52249         and Jim Meyering  <meyering@redhat.com>
52250
52251         Adjust getdate' grammar to accept a slightly more regular language.
52252         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52253         Before, the former was rejected.
52254         * lib/getdate.y (digits_to_date_time): New function, factored
52255         out of ...
52256         (number): ...here.  Just call digits_to_date_time.
52257         (hybrid): New non-terminal to handle an <unsigned number,
52258         signed relative offset> sequence consistently.
52259
52260 2007-11-18  Jim Meyering  <meyering@redhat.com>
52261
52262         Pull my changes from coreutils:
52263         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52264         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52265         use of $gnulib_tool_option_extras, so that it's separated from the
52266         preceding argument.
52267
52268         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52269         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52270         parent destination directories before copying a file into place.
52271
52272 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52273
52274         bootstrap: work also with 4-argument variant of AC_INIT
52275         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52276
52277 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52278
52279         Port test-getaddrinfo to Solaris.
52280         Problem reported by Bruno Haible in
52281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52282         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52283         explanation of setting 'hints'.
52284         Don't reject an implementation merely because it returns EAI_SERVICE.
52285         (EAI_SERVICE): Define to 0 if not defined.
52286
52287 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52288
52289         The license of gnu-make and posix-shell is now "GPLed build tool".
52290         * modules/gnu-make (License): Likewise.
52291         * modules/posix-shell (License): Likewise.
52292
52293         New module posix-shell, for determining a POSIX shell
52294         or perhaps something that is close enough to a POSIX shell.
52295         * m4/posix-shell.m4: New file.
52296         * modules/posix-shell: New file.
52297
52298         * MODULES.html.sh: Mention new module.
52299
52300         New module gnu-make, for determining whether we're using GNU Make.
52301         * m4/gnu-make.m4: New file.
52302         * modules/gnu-make: New file.
52303         * MODULES.html.sh: Mention new module.
52304
52305 2007-11-14  Jim Meyering  <meyering@redhat.com>
52306
52307         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52308         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52309         use this macro to create a function _definition_.
52310         Remove useless "#undef ARGMATCH_DIE".
52311
52312 2007-11-14  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/config.charset: Update for OpenBSD 4.1.
52315         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52316
52317 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52318
52319         Document 64-bit #if problems in stdint.texi.
52320         * doc/headers/stdint.texi (stdint.h): Mention problems with
52321         64-bit-#if, and how to work around them.
52322
52323         Don't insist on 'long long int' support in the preprocessor.  It
52324         breaks too many things.  For example, PRIdMAX still uses a 'long
52325         long int' format with the latest Sun compiler, even though
52326         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52327         preprocessor problem.  This causes the latest coreutils to dump
52328         core on Solaris 10 sparc with the Sun C compiler.
52329         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52330         the troublesome expressions at configure-time, not at #if-time.
52331         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52332         preprocessor.
52333         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52334         compile-time C checks, done at 'configure'-time.
52335         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52336         * modules/inttypes (Makefile): Substitute the new symbols that
52337         gl_INTTYPES_H now generates.
52338         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52339
52340 2007-11-12  Bruno Haible  <bruno@clisp.org>
52341
52342         Tests for Unicode character classification functions.
52343
52344         * modules/unictype/bidicategory-byname-tests: New file.
52345         * modules/unictype/bidicategory-name-tests: New file.
52346         * modules/unictype/bidicategory-of-tests: New file.
52347         * modules/unictype/bidicategory-test-tests: New file.
52348         * modules/unictype/block-list-tests: New file.
52349         * modules/unictype/block-of-tests: New file.
52350         * modules/unictype/block-test-tests: New file.
52351         * modules/unictype/category-C-tests: New file.
52352         * modules/unictype/category-Cc-tests: New file.
52353         * modules/unictype/category-Cf-tests: New file.
52354         * modules/unictype/category-Cn-tests: New file.
52355         * modules/unictype/category-Co-tests: New file.
52356         * modules/unictype/category-Cs-tests: New file.
52357         * modules/unictype/category-L-tests: New file.
52358         * modules/unictype/category-Ll-tests: New file.
52359         * modules/unictype/category-Lm-tests: New file.
52360         * modules/unictype/category-Lo-tests: New file.
52361         * modules/unictype/category-Lt-tests: New file.
52362         * modules/unictype/category-Lu-tests: New file.
52363         * modules/unictype/category-M-tests: New file.
52364         * modules/unictype/category-Mc-tests: New file.
52365         * modules/unictype/category-Me-tests: New file.
52366         * modules/unictype/category-Mn-tests: New file.
52367         * modules/unictype/category-N-tests: New file.
52368         * modules/unictype/category-Nd-tests: New file.
52369         * modules/unictype/category-Nl-tests: New file.
52370         * modules/unictype/category-No-tests: New file.
52371         * modules/unictype/category-P-tests: New file.
52372         * modules/unictype/category-Pc-tests: New file.
52373         * modules/unictype/category-Pd-tests: New file.
52374         * modules/unictype/category-Pe-tests: New file.
52375         * modules/unictype/category-Pf-tests: New file.
52376         * modules/unictype/category-Pi-tests: New file.
52377         * modules/unictype/category-Po-tests: New file.
52378         * modules/unictype/category-Ps-tests: New file.
52379         * modules/unictype/category-S-tests: New file.
52380         * modules/unictype/category-Sc-tests: New file.
52381         * modules/unictype/category-Sk-tests: New file.
52382         * modules/unictype/category-Sm-tests: New file.
52383         * modules/unictype/category-So-tests: New file.
52384         * modules/unictype/category-Z-tests: New file.
52385         * modules/unictype/category-Zl-tests: New file.
52386         * modules/unictype/category-Zp-tests: New file.
52387         * modules/unictype/category-Zs-tests: New file.
52388         * modules/unictype/category-and-not-tests: New file.
52389         * modules/unictype/category-and-tests: New file.
52390         * modules/unictype/category-byname-tests: New file.
52391         * modules/unictype/category-name-tests: New file.
52392         * modules/unictype/category-none-tests: New file.
52393         * modules/unictype/category-of-tests: New file.
52394         * modules/unictype/category-or-tests: New file.
52395         * modules/unictype/category-test-withtable-tests: New file.
52396         * modules/unictype/combining-class-tests: New file.
52397         * modules/unictype/ctype-alnum-tests: New file.
52398         * modules/unictype/ctype-alpha-tests: New file.
52399         * modules/unictype/ctype-blank-tests: New file.
52400         * modules/unictype/ctype-cntrl-tests: New file.
52401         * modules/unictype/ctype-digit-tests: New file.
52402         * modules/unictype/ctype-graph-tests: New file.
52403         * modules/unictype/ctype-lower-tests: New file.
52404         * modules/unictype/ctype-print-tests: New file.
52405         * modules/unictype/ctype-punct-tests: New file.
52406         * modules/unictype/ctype-space-tests: New file.
52407         * modules/unictype/ctype-upper-tests: New file.
52408         * modules/unictype/ctype-xdigit-tests: New file.
52409         * modules/unictype/decimal-digit-tests: New file.
52410         * modules/unictype/digit-tests: New file.
52411         * modules/unictype/mirror-tests: New file.
52412         * modules/unictype/numeric-tests: New file.
52413         * modules/unictype/property-alphabetic-tests: New file.
52414         * modules/unictype/property-ascii-hex-digit-tests: New file.
52415         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52416         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52417         * modules/unictype/property-bidi-block-separator-tests: New file.
52418         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52419         * modules/unictype/property-bidi-common-separator-tests: New file.
52420         * modules/unictype/property-bidi-control-tests: New file.
52421         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52422         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52423         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52424         * modules/unictype/property-bidi-european-digit-tests: New file.
52425         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52426         * modules/unictype/property-bidi-left-to-right-tests: New file.
52427         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52428         * modules/unictype/property-bidi-other-neutral-tests: New file.
52429         * modules/unictype/property-bidi-pdf-tests: New file.
52430         * modules/unictype/property-bidi-segment-separator-tests: New file.
52431         * modules/unictype/property-bidi-whitespace-tests: New file.
52432         * modules/unictype/property-byname-tests: New file.
52433         * modules/unictype/property-combining-tests: New file.
52434         * modules/unictype/property-composite-tests: New file.
52435         * modules/unictype/property-currency-symbol-tests: New file.
52436         * modules/unictype/property-dash-tests: New file.
52437         * modules/unictype/property-decimal-digit-tests: New file.
52438         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52439         * modules/unictype/property-deprecated-tests: New file.
52440         * modules/unictype/property-diacritic-tests: New file.
52441         * modules/unictype/property-extender-tests: New file.
52442         * modules/unictype/property-format-control-tests: New file.
52443         * modules/unictype/property-grapheme-base-tests: New file.
52444         * modules/unictype/property-grapheme-extend-tests: New file.
52445         * modules/unictype/property-grapheme-link-tests: New file.
52446         * modules/unictype/property-hex-digit-tests: New file.
52447         * modules/unictype/property-hyphen-tests: New file.
52448         * modules/unictype/property-id-continue-tests: New file.
52449         * modules/unictype/property-id-start-tests: New file.
52450         * modules/unictype/property-ideographic-tests: New file.
52451         * modules/unictype/property-ids-binary-operator-tests: New file.
52452         * modules/unictype/property-ids-trinary-operator-tests: New file.
52453         * modules/unictype/property-ignorable-control-tests: New file.
52454         * modules/unictype/property-iso-control-tests: New file.
52455         * modules/unictype/property-join-control-tests: New file.
52456         * modules/unictype/property-left-of-pair-tests: New file.
52457         * modules/unictype/property-line-separator-tests: New file.
52458         * modules/unictype/property-logical-order-exception-tests: New file.
52459         * modules/unictype/property-lowercase-tests: New file.
52460         * modules/unictype/property-math-tests: New file.
52461         * modules/unictype/property-non-break-tests: New file.
52462         * modules/unictype/property-not-a-character-tests: New file.
52463         * modules/unictype/property-numeric-tests: New file.
52464         * modules/unictype/property-other-alphabetic-tests: New file.
52465         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52466         * modules/unictype/property-other-grapheme-extend-tests: New file.
52467         * modules/unictype/property-other-id-continue-tests: New file.
52468         * modules/unictype/property-other-id-start-tests: New file.
52469         * modules/unictype/property-other-lowercase-tests: New file.
52470         * modules/unictype/property-other-math-tests: New file.
52471         * modules/unictype/property-other-uppercase-tests: New file.
52472         * modules/unictype/property-paired-punctuation-tests: New file.
52473         * modules/unictype/property-paragraph-separator-tests: New file.
52474         * modules/unictype/property-pattern-syntax-tests: New file.
52475         * modules/unictype/property-pattern-white-space-tests: New file.
52476         * modules/unictype/property-private-use-tests: New file.
52477         * modules/unictype/property-punctuation-tests: New file.
52478         * modules/unictype/property-quotation-mark-tests: New file.
52479         * modules/unictype/property-radical-tests: New file.
52480         * modules/unictype/property-sentence-terminal-tests: New file.
52481         * modules/unictype/property-soft-dotted-tests: New file.
52482         * modules/unictype/property-space-tests: New file.
52483         * modules/unictype/property-terminal-punctuation-tests: New file.
52484         * modules/unictype/property-test-tests: New file.
52485         * modules/unictype/property-titlecase-tests: New file.
52486         * modules/unictype/property-unassigned-code-value-tests: New file.
52487         * modules/unictype/property-unified-ideograph-tests: New file.
52488         * modules/unictype/property-uppercase-tests: New file.
52489         * modules/unictype/property-variation-selector-tests: New file.
52490         * modules/unictype/property-white-space-tests: New file.
52491         * modules/unictype/property-xid-continue-tests: New file.
52492         * modules/unictype/property-xid-start-tests: New file.
52493         * modules/unictype/property-zero-width-tests: New file.
52494         * modules/unictype/scripts-tests: New file.
52495         * modules/unictype/syntax-c-ident-tests: New file.
52496         * modules/unictype/syntax-c-whitespace-tests: New file.
52497         * modules/unictype/syntax-java-ident-tests: New file.
52498         * modules/unictype/syntax-java-whitespace-tests: New file.
52499         * tests/unictype/test-bidi_byname.c: New file.
52500         * tests/unictype/test-bidi_name.c: New file.
52501         * tests/unictype/test-bidi_of.c: New file.
52502         * tests/unictype/test-bidi_test.c: New file.
52503         * tests/unictype/test-block_list.c: New file.
52504         * tests/unictype/test-block_of.c: New file.
52505         * tests/unictype/test-block_test.c: New file.
52506         * tests/unictype/test-categ_and.c: New file.
52507         * tests/unictype/test-categ_and_not.c: New file.
52508         * tests/unictype/test-categ_byname.c: New file.
52509         * tests/unictype/test-categ_name.c: New file.
52510         * tests/unictype/test-categ_none.c: New file.
52511         * tests/unictype/test-categ_of.c: New file.
52512         * tests/unictype/test-categ_or.c: New file.
52513         * tests/unictype/test-categ_test_withtable.c: New file.
52514         * tests/unictype/test-combining.c: New file.
52515         * tests/unictype/test-decdigit.c: New file.
52516         * tests/unictype/test-digit.c: New file.
52517         * tests/unictype/test-mirror.c: New file.
52518         * tests/unictype/test-numeric.c: New file.
52519         * tests/unictype/test-pr_byname.c: New file.
52520         * tests/unictype/test-pr_test.c: New file.
52521         * tests/unictype/test-predicate-part1.h: New file.
52522         * tests/unictype/test-predicate-part2.h: New file.
52523         * tests/unictype/test-scripts.c: New file.
52524         * tests/unictype/test-sy_c_ident.c: New file.
52525         * tests/unictype/test-sy_java_ident.c: New file.
52526
52527         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52528         for Unicode 5.0.0.
52529         * tests/unictype/test-categ_Cc.c: Likewise.
52530         * tests/unictype/test-categ_Cf.c: Likewise.
52531         * tests/unictype/test-categ_Cn.c: Likewise.
52532         * tests/unictype/test-categ_Co.c: Likewise.
52533         * tests/unictype/test-categ_Cs.c: Likewise.
52534         * tests/unictype/test-categ_L.c: Likewise.
52535         * tests/unictype/test-categ_Ll.c: Likewise.
52536         * tests/unictype/test-categ_Lm.c: Likewise.
52537         * tests/unictype/test-categ_Lo.c: Likewise.
52538         * tests/unictype/test-categ_Lt.c: Likewise.
52539         * tests/unictype/test-categ_Lu.c: Likewise.
52540         * tests/unictype/test-categ_M.c: Likewise.
52541         * tests/unictype/test-categ_Mc.c: Likewise.
52542         * tests/unictype/test-categ_Me.c: Likewise.
52543         * tests/unictype/test-categ_Mn.c: Likewise.
52544         * tests/unictype/test-categ_N.c: Likewise.
52545         * tests/unictype/test-categ_Nd.c: Likewise.
52546         * tests/unictype/test-categ_Nl.c: Likewise.
52547         * tests/unictype/test-categ_No.c: Likewise.
52548         * tests/unictype/test-categ_P.c: Likewise.
52549         * tests/unictype/test-categ_Pc.c: Likewise.
52550         * tests/unictype/test-categ_Pd.c: Likewise.
52551         * tests/unictype/test-categ_Pe.c: Likewise.
52552         * tests/unictype/test-categ_Pf.c: Likewise.
52553         * tests/unictype/test-categ_Pi.c: Likewise.
52554         * tests/unictype/test-categ_Po.c: Likewise.
52555         * tests/unictype/test-categ_Ps.c: Likewise.
52556         * tests/unictype/test-categ_S.c: Likewise.
52557         * tests/unictype/test-categ_Sc.c: Likewise.
52558         * tests/unictype/test-categ_Sk.c: Likewise.
52559         * tests/unictype/test-categ_Sm.c: Likewise.
52560         * tests/unictype/test-categ_So.c: Likewise.
52561         * tests/unictype/test-categ_Z.c: Likewise.
52562         * tests/unictype/test-categ_Zl.c: Likewise.
52563         * tests/unictype/test-categ_Zp.c: Likewise.
52564         * tests/unictype/test-categ_Zs.c: Likewise.
52565         * tests/unictype/test-ctype_alnum.c: Likewise.
52566         * tests/unictype/test-ctype_alpha.c: Likewise.
52567         * tests/unictype/test-ctype_blank.c: Likewise.
52568         * tests/unictype/test-ctype_cntrl.c: Likewise.
52569         * tests/unictype/test-ctype_digit.c: Likewise.
52570         * tests/unictype/test-ctype_graph.c: Likewise.
52571         * tests/unictype/test-ctype_lower.c: Likewise.
52572         * tests/unictype/test-ctype_print.c: Likewise.
52573         * tests/unictype/test-ctype_punct.c: Likewise.
52574         * tests/unictype/test-ctype_space.c: Likewise.
52575         * tests/unictype/test-ctype_upper.c: Likewise.
52576         * tests/unictype/test-ctype_xdigit.c: Likewise.
52577         * tests/unictype/test-decdigit.h: Likewise.
52578         * tests/unictype/test-digit.h: Likewise.
52579         * tests/unictype/test-numeric.h: Likewise.
52580         * tests/unictype/test-pr_alphabetic.c: Likewise.
52581         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52582         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52583         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52584         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52585         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52586         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52587         * tests/unictype/test-pr_bidi_control.c: Likewise.
52588         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52589         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52590         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52591         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52592         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52593         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52594         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52595         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52596         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52597         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52598         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52599         * tests/unictype/test-pr_combining.c: Likewise.
52600         * tests/unictype/test-pr_composite.c: Likewise.
52601         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52602         * tests/unictype/test-pr_dash.c: Likewise.
52603         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52604         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52605         * tests/unictype/test-pr_deprecated.c: Likewise.
52606         * tests/unictype/test-pr_diacritic.c: Likewise.
52607         * tests/unictype/test-pr_extender.c: Likewise.
52608         * tests/unictype/test-pr_format_control.c: Likewise.
52609         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52610         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52611         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52612         * tests/unictype/test-pr_hex_digit.c: Likewise.
52613         * tests/unictype/test-pr_hyphen.c: Likewise.
52614         * tests/unictype/test-pr_id_continue.c: Likewise.
52615         * tests/unictype/test-pr_id_start.c: Likewise.
52616         * tests/unictype/test-pr_ideographic.c: Likewise.
52617         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52618         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52619         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52620         * tests/unictype/test-pr_iso_control.c: Likewise.
52621         * tests/unictype/test-pr_join_control.c: Likewise.
52622         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52623         * tests/unictype/test-pr_line_separator.c: Likewise.
52624         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52625         * tests/unictype/test-pr_lowercase.c: Likewise.
52626         * tests/unictype/test-pr_math.c: Likewise.
52627         * tests/unictype/test-pr_non_break.c: Likewise.
52628         * tests/unictype/test-pr_not_a_character.c: Likewise.
52629         * tests/unictype/test-pr_numeric.c: Likewise.
52630         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52631         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52632         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52633         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52634         * tests/unictype/test-pr_other_id_start.c: Likewise.
52635         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52636         * tests/unictype/test-pr_other_math.c: Likewise.
52637         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52638         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52639         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52640         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52641         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52642         * tests/unictype/test-pr_private_use.c: Likewise.
52643         * tests/unictype/test-pr_punctuation.c: Likewise.
52644         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52645         * tests/unictype/test-pr_radical.c: Likewise.
52646         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52647         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52648         * tests/unictype/test-pr_space.c: Likewise.
52649         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52650         * tests/unictype/test-pr_titlecase.c: Likewise.
52651         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52652         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52653         * tests/unictype/test-pr_uppercase.c: Likewise.
52654         * tests/unictype/test-pr_variation_selector.c: Likewise.
52655         * tests/unictype/test-pr_white_space.c: Likewise.
52656         * tests/unictype/test-pr_xid_continue.c: Likewise.
52657         * tests/unictype/test-pr_xid_start.c: Likewise.
52658         * tests/unictype/test-pr_zero_width.c: Likewise.
52659         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52660         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52661
52662 2007-11-12  Bruno Haible  <bruno@clisp.org>
52663
52664         Unicode character classification functions.
52665         * lib/unictype.h: New file.
52666         * modules/unictype/base: New file.
52667         * modules/unictype/category-L: New file.
52668         * modules/unictype/category-Lu: New file.
52669         * modules/unictype/category-Ll: New file.
52670         * modules/unictype/category-Lt: New file.
52671         * modules/unictype/category-Lm: New file.
52672         * modules/unictype/category-Lo: New file.
52673         * modules/unictype/category-M: New file.
52674         * modules/unictype/category-Mn: New file.
52675         * modules/unictype/category-Mc: New file.
52676         * modules/unictype/category-Me: New file.
52677         * modules/unictype/category-N: New file.
52678         * modules/unictype/category-Nd: New file.
52679         * modules/unictype/category-Nl: New file.
52680         * modules/unictype/category-No: New file.
52681         * modules/unictype/category-P: New file.
52682         * modules/unictype/category-Pc: New file.
52683         * modules/unictype/category-Pd: New file.
52684         * modules/unictype/category-Ps: New file.
52685         * modules/unictype/category-Pe: New file.
52686         * modules/unictype/category-Pi: New file.
52687         * modules/unictype/category-Pf: New file.
52688         * modules/unictype/category-Po: New file.
52689         * modules/unictype/category-S: New file.
52690         * modules/unictype/category-Sm: New file.
52691         * modules/unictype/category-Sc: New file.
52692         * modules/unictype/category-Sk: New file.
52693         * modules/unictype/category-So: New file.
52694         * modules/unictype/category-Z: New file.
52695         * modules/unictype/category-Zs: New file.
52696         * modules/unictype/category-Zl: New file.
52697         * modules/unictype/category-Zp: New file.
52698         * modules/unictype/category-C: New file.
52699         * modules/unictype/category-Cc: New file.
52700         * modules/unictype/category-Cf: New file.
52701         * modules/unictype/category-Cs: New file.
52702         * modules/unictype/category-Co: New file.
52703         * modules/unictype/category-Cn: New file.
52704         * modules/unictype/category-or: New file.
52705         * modules/unictype/category-of: New file.
52706         * modules/unictype/category-test: New file.
52707         * modules/unictype/category-test-withtable: New file.
52708         * modules/unictype/category-byname: New file.
52709         * modules/unictype/category-none: New file.
52710         * modules/unictype/category-and: New file.
52711         * modules/unictype/category-and-not: New file.
52712         * modules/unictype/category-name: New file.
52713         * modules/unictype/combining-class: New file.
52714         * modules/unictype/category-all: New file.
52715         * modules/unictype/bidicategory-all: New file.
52716         * modules/unictype/bidicategory-byname: New file.
52717         * modules/unictype/bidicategory-name: New file.
52718         * modules/unictype/bidicategory-of: New file.
52719         * modules/unictype/bidicategory-test: New file.
52720         * modules/unictype/decimal-digit: New file.
52721         * modules/unictype/digit: New file.
52722         * modules/unictype/numeric: New file.
52723         * modules/unictype/mirror: New file.
52724         * modules/unictype/property-white-space: New file.
52725         * modules/unictype/property-alphabetic: New file.
52726         * modules/unictype/property-other-alphabetic: New file.
52727         * modules/unictype/property-not-a-character: New file.
52728         * modules/unictype/property-default-ignorable-code-point: New file.
52729         * modules/unictype/property-other-default-ignorable-code-point: New
52730         file.
52731         * modules/unictype/property-deprecated: New file.
52732         * modules/unictype/property-logical-order-exception: New file.
52733         * modules/unictype/property-variation-selector: New file.
52734         * modules/unictype/property-private-use: New file.
52735         * modules/unictype/property-unassigned-code-value: New file.
52736         * modules/unictype/property-uppercase: New file.
52737         * modules/unictype/property-other-uppercase: New file.
52738         * modules/unictype/property-lowercase: New file.
52739         * modules/unictype/property-other-lowercase: New file.
52740         * modules/unictype/property-titlecase: New file.
52741         * modules/unictype/property-soft-dotted: New file.
52742         * modules/unictype/property-id-start: New file.
52743         * modules/unictype/property-other-id-start: New file.
52744         * modules/unictype/property-id-continue: New file.
52745         * modules/unictype/property-other-id-continue: New file.
52746         * modules/unictype/property-xid-start: New file.
52747         * modules/unictype/property-xid-continue: New file.
52748         * modules/unictype/property-pattern-white-space: New file.
52749         * modules/unictype/property-pattern-syntax: New file.
52750         * modules/unictype/property-join-control: New file.
52751         * modules/unictype/property-grapheme-base: New file.
52752         * modules/unictype/property-grapheme-extend: New file.
52753         * modules/unictype/property-other-grapheme-extend: New file.
52754         * modules/unictype/property-grapheme-link: New file.
52755         * modules/unictype/property-bidi-control: New file.
52756         * modules/unictype/property-bidi-left-to-right: New file.
52757         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52758         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52759         * modules/unictype/property-bidi-european-digit: New file.
52760         * modules/unictype/property-bidi-eur-num-separator: New file.
52761         * modules/unictype/property-bidi-eur-num-terminator: New file.
52762         * modules/unictype/property-bidi-arabic-digit: New file.
52763         * modules/unictype/property-bidi-common-separator: New file.
52764         * modules/unictype/property-bidi-block-separator: New file.
52765         * modules/unictype/property-bidi-segment-separator: New file.
52766         * modules/unictype/property-bidi-whitespace: New file.
52767         * modules/unictype/property-bidi-non-spacing-mark: New file.
52768         * modules/unictype/property-bidi-boundary-neutral: New file.
52769         * modules/unictype/property-bidi-pdf: New file.
52770         * modules/unictype/property-bidi-embedding-or-override: New file.
52771         * modules/unictype/property-bidi-other-neutral: New file.
52772         * modules/unictype/property-hex-digit: New file.
52773         * modules/unictype/property-ascii-hex-digit: New file.
52774         * modules/unictype/property-ideographic: New file.
52775         * modules/unictype/property-unified-ideograph: New file.
52776         * modules/unictype/property-radical: New file.
52777         * modules/unictype/property-ids-binary-operator: New file.
52778         * modules/unictype/property-ids-trinary-operator: New file.
52779         * modules/unictype/property-zero-width: New file.
52780         * modules/unictype/property-space: New file.
52781         * modules/unictype/property-non-break: New file.
52782         * modules/unictype/property-iso-control: New file.
52783         * modules/unictype/property-format-control: New file.
52784         * modules/unictype/property-dash: New file.
52785         * modules/unictype/property-hyphen: New file.
52786         * modules/unictype/property-punctuation: New file.
52787         * modules/unictype/property-line-separator: New file.
52788         * modules/unictype/property-paragraph-separator: New file.
52789         * modules/unictype/property-quotation-mark: New file.
52790         * modules/unictype/property-sentence-terminal: New file.
52791         * modules/unictype/property-terminal-punctuation: New file.
52792         * modules/unictype/property-currency-symbol: New file.
52793         * modules/unictype/property-math: New file.
52794         * modules/unictype/property-other-math: New file.
52795         * modules/unictype/property-paired-punctuation: New file.
52796         * modules/unictype/property-left-of-pair: New file.
52797         * modules/unictype/property-combining: New file.
52798         * modules/unictype/property-composite: New file.
52799         * modules/unictype/property-decimal-digit: New file.
52800         * modules/unictype/property-numeric: New file.
52801         * modules/unictype/property-diacritic: New file.
52802         * modules/unictype/property-extender: New file.
52803         * modules/unictype/property-ignorable-control: New file.
52804         * modules/unictype/property-test: New file.
52805         * modules/unictype/property-byname: New file.
52806         * modules/unictype/property-all: New file.
52807         * modules/unictype/scripts: New file.
52808         * modules/unictype/scripts-all: New file.
52809         * modules/unictype/block-of: New file.
52810         * modules/unictype/block-test: New file.
52811         * modules/unictype/block-list: New file.
52812         * modules/unictype/block-all: New file.
52813         * modules/unictype/syntax-c-whitespace: New file.
52814         * modules/unictype/syntax-java-whitespace: New file.
52815         * modules/unictype/syntax-c-ident: New file.
52816         * modules/unictype/syntax-java-ident: New file.
52817         * modules/unictype/ctype-alnum: New file.
52818         * modules/unictype/ctype-alpha: New file.
52819         * modules/unictype/ctype-cntrl: New file.
52820         * modules/unictype/ctype-digit: New file.
52821         * modules/unictype/ctype-graph: New file.
52822         * modules/unictype/ctype-lower: New file.
52823         * modules/unictype/ctype-print: New file.
52824         * modules/unictype/ctype-punct: New file.
52825         * modules/unictype/ctype-space: New file.
52826         * modules/unictype/ctype-upper: New file.
52827         * modules/unictype/ctype-xdigit: New file.
52828         * modules/unictype/ctype-blank: New file.
52829         * lib/unictype/bidi_byname.c: New file.
52830         * lib/unictype/bidi_name.c: New file.
52831         * lib/unictype/bidi_of.c: New file.
52832         * lib/unictype/bidi_test.c: New file.
52833         * lib/unictype/bitmap.h: New file.
52834         * lib/unictype/block_test.c: New file.
52835         * lib/unictype/blocks.c: New file.
52836         * lib/unictype/categ_C.c: New file.
52837         * lib/unictype/categ_Cc.c: New file.
52838         * lib/unictype/categ_Cf.c: New file.
52839         * lib/unictype/categ_Cn.c: New file.
52840         * lib/unictype/categ_Co.c: New file.
52841         * lib/unictype/categ_Cs.c: New file.
52842         * lib/unictype/categ_L.c: New file.
52843         * lib/unictype/categ_Ll.c: New file.
52844         * lib/unictype/categ_Lm.c: New file.
52845         * lib/unictype/categ_Lo.c: New file.
52846         * lib/unictype/categ_Lt.c: New file.
52847         * lib/unictype/categ_Lu.c: New file.
52848         * lib/unictype/categ_M.c: New file.
52849         * lib/unictype/categ_Mc.c: New file.
52850         * lib/unictype/categ_Me.c: New file.
52851         * lib/unictype/categ_Mn.c: New file.
52852         * lib/unictype/categ_N.c: New file.
52853         * lib/unictype/categ_Nd.c: New file.
52854         * lib/unictype/categ_Nl.c: New file.
52855         * lib/unictype/categ_No.c: New file.
52856         * lib/unictype/categ_P.c: New file.
52857         * lib/unictype/categ_Pc.c: New file.
52858         * lib/unictype/categ_Pd.c: New file.
52859         * lib/unictype/categ_Pe.c: New file.
52860         * lib/unictype/categ_Pf.c: New file.
52861         * lib/unictype/categ_Pi.c: New file.
52862         * lib/unictype/categ_Po.c: New file.
52863         * lib/unictype/categ_Ps.c: New file.
52864         * lib/unictype/categ_S.c: New file.
52865         * lib/unictype/categ_Sc.c: New file.
52866         * lib/unictype/categ_Sk.c: New file.
52867         * lib/unictype/categ_Sm.c: New file.
52868         * lib/unictype/categ_So.c: New file.
52869         * lib/unictype/categ_Z.c: New file.
52870         * lib/unictype/categ_Zl.c: New file.
52871         * lib/unictype/categ_Zp.c: New file.
52872         * lib/unictype/categ_Zs.c: New file.
52873         * lib/unictype/categ_and.c: New file.
52874         * lib/unictype/categ_and_not.c: New file.
52875         * lib/unictype/categ_byname.c: New file.
52876         * lib/unictype/categ_name.c: New file.
52877         * lib/unictype/categ_none.c: New file.
52878         * lib/unictype/categ_of.c: New file.
52879         * lib/unictype/categ_or.c: New file.
52880         * lib/unictype/categ_test.c: New file.
52881         * lib/unictype/combining.c: New file.
52882         * lib/unictype/ctype_alnum.c: New file.
52883         * lib/unictype/ctype_alpha.c: New file.
52884         * lib/unictype/ctype_blank.c: New file.
52885         * lib/unictype/ctype_cntrl.c: New file.
52886         * lib/unictype/ctype_digit.c: New file.
52887         * lib/unictype/ctype_graph.c: New file.
52888         * lib/unictype/ctype_lower.c: New file.
52889         * lib/unictype/ctype_print.c: New file.
52890         * lib/unictype/ctype_punct.c: New file.
52891         * lib/unictype/ctype_space.c: New file.
52892         * lib/unictype/ctype_upper.c: New file.
52893         * lib/unictype/ctype_xdigit.c: New file.
52894         * lib/unictype/decdigit.c: New file.
52895         * lib/unictype/digit.c: New file.
52896         * lib/unictype/identsyntaxmap.h: New file.
52897         * lib/unictype/mirror.c: New file.
52898         * lib/unictype/numeric.c: New file.
52899         * lib/unictype/pr_alphabetic.c: New file.
52900         * lib/unictype/pr_ascii_hex_digit.c: New file.
52901         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52902         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52903         * lib/unictype/pr_bidi_block_separator.c: New file.
52904         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52905         * lib/unictype/pr_bidi_common_separator.c: New file.
52906         * lib/unictype/pr_bidi_control.c: New file.
52907         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52908         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52909         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52910         * lib/unictype/pr_bidi_european_digit.c: New file.
52911         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52912         * lib/unictype/pr_bidi_left_to_right.c: New file.
52913         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52914         * lib/unictype/pr_bidi_other_neutral.c: New file.
52915         * lib/unictype/pr_bidi_pdf.c: New file.
52916         * lib/unictype/pr_bidi_segment_separator.c: New file.
52917         * lib/unictype/pr_bidi_whitespace.c: New file.
52918         * lib/unictype/pr_byname.c: New file.
52919         * lib/unictype/pr_byname.gperf: New file.
52920         * lib/unictype/pr_combining.c: New file.
52921         * lib/unictype/pr_composite.c: New file.
52922         * lib/unictype/pr_currency_symbol.c: New file.
52923         * lib/unictype/pr_dash.c: New file.
52924         * lib/unictype/pr_decimal_digit.c: New file.
52925         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52926         * lib/unictype/pr_deprecated.c: New file.
52927         * lib/unictype/pr_diacritic.c: New file.
52928         * lib/unictype/pr_extender.c: New file.
52929         * lib/unictype/pr_format_control.c: New file.
52930         * lib/unictype/pr_grapheme_base.c: New file.
52931         * lib/unictype/pr_grapheme_extend.c: New file.
52932         * lib/unictype/pr_grapheme_link.c: New file.
52933         * lib/unictype/pr_hex_digit.c: New file.
52934         * lib/unictype/pr_hyphen.c: New file.
52935         * lib/unictype/pr_id_continue.c: New file.
52936         * lib/unictype/pr_id_start.c: New file.
52937         * lib/unictype/pr_ideographic.c: New file.
52938         * lib/unictype/pr_ids_binary_operator.c: New file.
52939         * lib/unictype/pr_ids_trinary_operator.c: New file.
52940         * lib/unictype/pr_ignorable_control.c: New file.
52941         * lib/unictype/pr_iso_control.c: New file.
52942         * lib/unictype/pr_join_control.c: New file.
52943         * lib/unictype/pr_left_of_pair.c: New file.
52944         * lib/unictype/pr_line_separator.c: New file.
52945         * lib/unictype/pr_logical_order_exception.c: New file.
52946         * lib/unictype/pr_lowercase.c: New file.
52947         * lib/unictype/pr_math.c: New file.
52948         * lib/unictype/pr_non_break.c: New file.
52949         * lib/unictype/pr_not_a_character.c: New file.
52950         * lib/unictype/pr_numeric.c: New file.
52951         * lib/unictype/pr_other_alphabetic.c: New file.
52952         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52953         * lib/unictype/pr_other_grapheme_extend.c: New file.
52954         * lib/unictype/pr_other_id_continue.c: New file.
52955         * lib/unictype/pr_other_id_start.c: New file.
52956         * lib/unictype/pr_other_lowercase.c: New file.
52957         * lib/unictype/pr_other_math.c: New file.
52958         * lib/unictype/pr_other_uppercase.c: New file.
52959         * lib/unictype/pr_paired_punctuation.c: New file.
52960         * lib/unictype/pr_paragraph_separator.c: New file.
52961         * lib/unictype/pr_pattern_syntax.c: New file.
52962         * lib/unictype/pr_pattern_white_space.c: New file.
52963         * lib/unictype/pr_private_use.c: New file.
52964         * lib/unictype/pr_punctuation.c: New file.
52965         * lib/unictype/pr_quotation_mark.c: New file.
52966         * lib/unictype/pr_radical.c: New file.
52967         * lib/unictype/pr_sentence_terminal.c: New file.
52968         * lib/unictype/pr_soft_dotted.c: New file.
52969         * lib/unictype/pr_space.c: New file.
52970         * lib/unictype/pr_terminal_punctuation.c: New file.
52971         * lib/unictype/pr_test.c: New file.
52972         * lib/unictype/pr_titlecase.c: New file.
52973         * lib/unictype/pr_unassigned_code_value.c: New file.
52974         * lib/unictype/pr_unified_ideograph.c: New file.
52975         * lib/unictype/pr_uppercase.c: New file.
52976         * lib/unictype/pr_variation_selector.c: New file.
52977         * lib/unictype/pr_white_space.c: New file.
52978         * lib/unictype/pr_xid_continue.c: New file.
52979         * lib/unictype/pr_xid_start.c: New file.
52980         * lib/unictype/pr_zero_width.c: New file.
52981         * lib/unictype/scripts.c: New file.
52982         * lib/unictype/sy_c_ident.c: New file.
52983         * lib/unictype/sy_c_whitespace.c: New file.
52984         * lib/unictype/sy_java_ident.c: New file.
52985         * lib/unictype/sy_java_whitespace.c: New file.
52986
52987         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52988         Unicode 5.0.0.
52989         * lib/unictype/blocks.h: Likewise.
52990         * lib/unictype/categ_C.h: Likewise.
52991         * lib/unictype/categ_Cc.h: Likewise.
52992         * lib/unictype/categ_Cf.h: Likewise.
52993         * lib/unictype/categ_Cn.h: Likewise.
52994         * lib/unictype/categ_Co.h: Likewise.
52995         * lib/unictype/categ_Cs.h: Likewise.
52996         * lib/unictype/categ_L.h: Likewise.
52997         * lib/unictype/categ_Ll.h: Likewise.
52998         * lib/unictype/categ_Lm.h: Likewise.
52999         * lib/unictype/categ_Lo.h: Likewise.
53000         * lib/unictype/categ_Lt.h: Likewise.
53001         * lib/unictype/categ_Lu.h: Likewise.
53002         * lib/unictype/categ_M.h: Likewise.
53003         * lib/unictype/categ_Mc.h: Likewise.
53004         * lib/unictype/categ_Me.h: Likewise.
53005         * lib/unictype/categ_Mn.h: Likewise.
53006         * lib/unictype/categ_N.h: Likewise.
53007         * lib/unictype/categ_Nd.h: Likewise.
53008         * lib/unictype/categ_Nl.h: Likewise.
53009         * lib/unictype/categ_No.h: Likewise.
53010         * lib/unictype/categ_P.h: Likewise.
53011         * lib/unictype/categ_Pc.h: Likewise.
53012         * lib/unictype/categ_Pd.h: Likewise.
53013         * lib/unictype/categ_Pe.h: Likewise.
53014         * lib/unictype/categ_Pf.h: Likewise.
53015         * lib/unictype/categ_Pi.h: Likewise.
53016         * lib/unictype/categ_Po.h: Likewise.
53017         * lib/unictype/categ_Ps.h: Likewise.
53018         * lib/unictype/categ_S.h: Likewise.
53019         * lib/unictype/categ_Sc.h: Likewise.
53020         * lib/unictype/categ_Sk.h: Likewise.
53021         * lib/unictype/categ_Sm.h: Likewise.
53022         * lib/unictype/categ_So.h: Likewise.
53023         * lib/unictype/categ_Z.h: Likewise.
53024         * lib/unictype/categ_Zl.h: Likewise.
53025         * lib/unictype/categ_Zp.h: Likewise.
53026         * lib/unictype/categ_Zs.h: Likewise.
53027         * lib/unictype/categ_of.h: Likewise.
53028         * lib/unictype/combining.h: Likewise.
53029         * lib/unictype/ctype_alnum.h: Likewise.
53030         * lib/unictype/ctype_alpha.h: Likewise.
53031         * lib/unictype/ctype_blank.h: Likewise.
53032         * lib/unictype/ctype_cntrl.h: Likewise.
53033         * lib/unictype/ctype_digit.h: Likewise.
53034         * lib/unictype/ctype_graph.h: Likewise.
53035         * lib/unictype/ctype_lower.h: Likewise.
53036         * lib/unictype/ctype_print.h: Likewise.
53037         * lib/unictype/ctype_punct.h: Likewise.
53038         * lib/unictype/ctype_space.h: Likewise.
53039         * lib/unictype/ctype_upper.h: Likewise.
53040         * lib/unictype/ctype_xdigit.h: Likewise.
53041         * lib/unictype/decdigit.h: Likewise.
53042         * lib/unictype/digit.h: Likewise.
53043         * lib/unictype/mirror.h: Likewise.
53044         * lib/unictype/numeric.h: Likewise.
53045         * lib/unictype/pr_alphabetic.h: Likewise.
53046         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53047         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53048         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53049         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53050         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53051         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53052         * lib/unictype/pr_bidi_control.h: Likewise.
53053         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53054         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53055         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53056         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53057         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53058         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53059         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53060         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53061         * lib/unictype/pr_bidi_pdf.h: Likewise.
53062         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53063         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53064         * lib/unictype/pr_combining.h: Likewise.
53065         * lib/unictype/pr_composite.h: Likewise.
53066         * lib/unictype/pr_currency_symbol.h: Likewise.
53067         * lib/unictype/pr_dash.h: Likewise.
53068         * lib/unictype/pr_decimal_digit.h: Likewise.
53069         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53070         * lib/unictype/pr_deprecated.h: Likewise.
53071         * lib/unictype/pr_diacritic.h: Likewise.
53072         * lib/unictype/pr_extender.h: Likewise.
53073         * lib/unictype/pr_format_control.h: Likewise.
53074         * lib/unictype/pr_grapheme_base.h: Likewise.
53075         * lib/unictype/pr_grapheme_extend.h: Likewise.
53076         * lib/unictype/pr_grapheme_link.h: Likewise.
53077         * lib/unictype/pr_hex_digit.h: Likewise.
53078         * lib/unictype/pr_hyphen.h: Likewise.
53079         * lib/unictype/pr_id_continue.h: Likewise.
53080         * lib/unictype/pr_id_start.h: Likewise.
53081         * lib/unictype/pr_ideographic.h: Likewise.
53082         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53083         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53084         * lib/unictype/pr_ignorable_control.h: Likewise.
53085         * lib/unictype/pr_iso_control.h: Likewise.
53086         * lib/unictype/pr_join_control.h: Likewise.
53087         * lib/unictype/pr_left_of_pair.h: Likewise.
53088         * lib/unictype/pr_line_separator.h: Likewise.
53089         * lib/unictype/pr_logical_order_exception.h: Likewise.
53090         * lib/unictype/pr_lowercase.h: Likewise.
53091         * lib/unictype/pr_math.h: Likewise.
53092         * lib/unictype/pr_non_break.h: Likewise.
53093         * lib/unictype/pr_not_a_character.h: Likewise.
53094         * lib/unictype/pr_numeric.h: Likewise.
53095         * lib/unictype/pr_other_alphabetic.h: Likewise.
53096         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53097         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53098         * lib/unictype/pr_other_id_continue.h: Likewise.
53099         * lib/unictype/pr_other_id_start.h: Likewise.
53100         * lib/unictype/pr_other_lowercase.h: Likewise.
53101         * lib/unictype/pr_other_math.h: Likewise.
53102         * lib/unictype/pr_other_uppercase.h: Likewise.
53103         * lib/unictype/pr_paired_punctuation.h: Likewise.
53104         * lib/unictype/pr_paragraph_separator.h: Likewise.
53105         * lib/unictype/pr_pattern_syntax.h: Likewise.
53106         * lib/unictype/pr_pattern_white_space.h: Likewise.
53107         * lib/unictype/pr_private_use.h: Likewise.
53108         * lib/unictype/pr_punctuation.h: Likewise.
53109         * lib/unictype/pr_quotation_mark.h: Likewise.
53110         * lib/unictype/pr_radical.h: Likewise.
53111         * lib/unictype/pr_sentence_terminal.h: Likewise.
53112         * lib/unictype/pr_soft_dotted.h: Likewise.
53113         * lib/unictype/pr_space.h: Likewise.
53114         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53115         * lib/unictype/pr_titlecase.h: Likewise.
53116         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53117         * lib/unictype/pr_unified_ideograph.h: Likewise.
53118         * lib/unictype/pr_uppercase.h: Likewise.
53119         * lib/unictype/pr_variation_selector.h: Likewise.
53120         * lib/unictype/pr_white_space.h: Likewise.
53121         * lib/unictype/pr_xid_continue.h: Likewise.
53122         * lib/unictype/pr_xid_start.h: Likewise.
53123         * lib/unictype/pr_zero_width.h: Likewise.
53124         * lib/unictype/scripts.h: Likewise.
53125         * lib/unictype/scripts_byname.gperf: Likewise.
53126         * lib/unictype/sy_c_ident.h: Likewise.
53127         * lib/unictype/sy_c_whitespace.h: Likewise.
53128         * lib/unictype/sy_java_ident.h: Likewise.
53129         * lib/unictype/sy_java_whitespace.h: Likewise.
53130
53131         * lib/unictype/Makefile: New file.
53132         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53133         glibc.
53134         * lib/unictype/3level.h: New file, copied from glibc.
53135         * lib/unictype/3levelbit.h: New file.
53136
53137 2007-11-11  Bruno Haible  <bruno@clisp.org>
53138
53139         * modules/gperf: New file.
53140         * modules/iconv_open (Depends-on): Add it.
53141         (Makefile.am): Remove the GPERF definition.
53142
53143 2007-11-11  Bruno Haible  <bruno@clisp.org>
53144
53145         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53146         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53147
53148 2007-11-11  Bruno Haible  <bruno@clisp.org>
53149
53150         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53151         (usage): Remove function.
53152
53153 2007-11-11  Bruno Haible  <bruno@clisp.org>
53154
53155         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53156         gl_FUNC_CEILF_LIBS.
53157         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53158         gl_FUNC_CEIL_LIBS.
53159         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53160         gl_FUNC_CEILL_LIBS.
53161         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53162         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53163         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53164
53165 2007-11-11  Bruno Haible  <bruno@clisp.org>
53166
53167         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53168         roundf were declared but do not exist on functions.
53169         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53170         roundl were declared but do not exist on functions.
53171         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53172         HAVE_FLOORL_AND_CEILL, respectively.
53173         Needed for Sun C on Solaris 10.
53174
53175 2007-11-11  Bruno Haible  <bruno@clisp.org>
53176
53177         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53178         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53179         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53180         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53181         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53182         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53183         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53184         HAVE_DECL_ROUNDF.
53185         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53186         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53188         of HAVE_DECL_ROUND*.
53189         * modules/math (Makefile.am): Update.
53190
53191 2007-11-10  Bruno Haible  <bruno@clisp.org>
53192
53193         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53194         ptrdiff_t as m4/intl.m4.
53195
53196 2007-11-10  Jim Meyering  <meyering@redhat.com>
53197
53198         Avoid link failure for the argmatch test.
53199         * tests/test-argmatch.c (usage): Define function to avoid a link
53200         failure: argmatch_die requires a usage function.
53201
53202 2007-11-09  Bruno Haible  <bruno@clisp.org>
53203
53204         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53205         * doc/functions/vsnprintf.texi: Likewise.
53206         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53207         with a size argument < 2.
53208
53209 2007-11-09  Bruno Haible  <bruno@clisp.org>
53210
53211         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53212         buffer. Fixes an inefficiency introduced on 2007-11-03.
53213
53214 2007-11-09  Bruno Haible  <bruno@clisp.org>
53215
53216         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53217         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53218
53219 2007-11-08  Jim Meyering  <meyering@redhat.com>
53220
53221         Change cache variable name prefix "jm_" to "gl_" everywhere.
53222         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53223         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53224         * m4/uptime.m4: s/gl_/jm_/
53225
53226 2007-11-07  Bruno Haible  <bruno@clisp.org>
53227
53228         Update to GNU gettext 0.17.
53229         * m4/intl.m4: Update to GNU gettext 0.17.
53230         * m4/po.m4: Likewise.
53231         * modules/gettext (Files): Remove m4/ulonglong.m4.
53232         (configure.ac): Require gettext infrastructure from version 0.17.
53233
53234 2007-11-06  Bruno Haible  <bruno@clisp.org>
53235
53236         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53237         symbolic values are not defined in a public header.
53238         * lib/freadable.c (freadable) [QNX]: Likewise.
53239         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53240         * lib/freading.c (freading) [QNX]: Likewise.
53241         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53242         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53243         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53244         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53245         Reported by Alain Magloire.
53246
53247         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53248
53249 2007-11-05  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53252         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53253         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53254         Reported by Eric Blake.
53255
53256 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53257             Bruno Haible  <bruno@clisp.org>
53258
53259         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53260         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53261         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53262         (malloc): Undefine also before including <stdlib.h>.
53263         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53264         Needed on OSF/1 4.0.
53265
53266 2007-11-05  Jim Meyering  <meyering@redhat.com>
53267
53268         git-version-gen: sync from coreutils.
53269         * build-aux/git-version-gen: Add comments.
53270         Change the first '-' to '.' in the snapshot version string,
53271         e.g., 6.9-377-08144 -> 6.9.377-08144
53272         Remove first parameter.
53273         Don't declare a version "-dirty" merely because a time
53274         stamp has changed.
53275
53276 2007-11-04  Bruno Haible  <bruno@clisp.org>
53277
53278         * lib/lock.h: Protect all macro definitions containing an 'if'
53279         statement through a "do { ... } while (0)".
53280         * lib/tls.h: Likewise.
53281
53282 2007-11-04  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53285
53286 2007-11-04  Bruno Haible  <bruno@clisp.org>
53287
53288         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53289         * modules/fprintf-posix (Depends-on): Add nocrash.
53290         * modules/snprintf-posix (Depends-on): Likewise.
53291         * modules/sprintf-posix (Depends-on): Likewise.
53292         * modules/vasnprintf-posix (Depends-on): Likewise.
53293         * modules/vasprintf-posix (Depends-on): Likewise.
53294         * modules/vfprintf-posix (Depends-on): Likewise.
53295         * modules/vsnprintf-posix (Depends-on): Likewise.
53296         * modules/vsprintf-posix (Depends-on): Likewise.
53297         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53298         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53299         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53301         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53302         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53303         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53304
53305 2007-11-04  Bruno Haible  <bruno@clisp.org>
53306
53307         * modules/nocrash: New file.
53308         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53309         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53310
53311 2007-11-04  Bruno Haible  <bruno@clisp.org>
53312
53313         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53314         precision handling.
53315         * tests/test-vasprintf-posix.c (test_function): Likewise.
53316         * tests/test-snprintf-posix.h (test_function): Likewise.
53317         * tests/test-sprintf-posix.h (test_function): Likewise.
53318
53319         Fix *printf behaviour for large precisions on mingw and BeOS.
53320         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53321         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53323         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53324         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53325         gl_PRINTF_PRECISION and test its result. Invoke
53326         gl_PREREQ_VASNPRINTF_PRECISION.
53327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53329         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53331         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53333         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53334         * doc/functions/fprintf.texi: Update.
53335         * doc/functions/printf.texi: Update.
53336         * doc/functions/snprintf.texi: Update.
53337         * doc/functions/sprintf.texi: Update.
53338         * doc/functions/vfprintf.texi: Update.
53339         * doc/functions/vprintf.texi: Update.
53340         * doc/functions/vsnprintf.texi: Update.
53341         * doc/functions/vsprintf.texi: Update.
53342
53343 2007-11-04  Bruno Haible  <bruno@clisp.org>
53344
53345         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53346
53347 2007-11-04  Bruno Haible  <bruno@clisp.org>
53348
53349         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53350         Reported by Sylvain Beucler <beuc@gnu.org>.
53351
53352 2007-11-03  Bruno Haible  <bruno@clisp.org>
53353
53354         * tests/test-fprintf-posix2.sh: New file.
53355         * tests/test-fprintf-posix2.c: New file.
53356         * modules/fprintf-posix-tests (Files): Add them.
53357         (TESTS): Add test-fprintf-posix2.sh.
53358         (configure.ac): Check for getrlimit and setrlimit.
53359         (check_PROGRAMS): Add test-fprintf-posix2.
53360
53361         * tests/test-printf-posix2.sh: New file.
53362         * tests/test-printf-posix2.c: New file.
53363         * modules/printf-posix-tests (Files): Add them.
53364         (TESTS): Add test-printf-posix2.sh.
53365         (configure.ac): Check for getrlimit and setrlimit.
53366         (check_PROGRAMS): Add test-printf-posix2.
53367
53368         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53369         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53370         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53371         (decode_double): New function, copied from decode_long_double.
53372         (scale10_round_decimal_decoded): New function, extracted from
53373         scale10_round_decimal_long_double.
53374         (scale10_round_decimal_long_double): Use it.
53375         (scale10_round_decimal_double): New function.
53376         (floorlog10): New function.
53377         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53379         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53380         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53381         gl_PRINTF_ENOMEM and test its result. Invoke
53382         gl_PREREQ_VASNPRINTF_ENOMEM.
53383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53388         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53389         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53390         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53391         * modules/snprintf-posix (Depends-on): Likewise.
53392         * modules/sprintf-posix (Depends-on): Likewise.
53393         * modules/vasnprintf-posix (Depends-on): Likewise.
53394         * modules/vasprintf-posix (Depends-on): Likewise.
53395         * modules/vfprintf-posix (Depends-on): Likewise.
53396         * modules/vsnprintf-posix (Depends-on): Likewise.
53397         * modules/vsprintf-posix (Depends-on): Likewise.
53398         * doc/functions/fprintf.texi: Update.
53399         * doc/functions/printf.texi: Update.
53400         * doc/functions/snprintf.texi: Update.
53401         * doc/functions/sprintf.texi: Update.
53402         * doc/functions/vfprintf.texi: Update.
53403         * doc/functions/vprintf.texi: Update.
53404         * doc/functions/vsnprintf.texi: Update.
53405         * doc/functions/vsprintf.texi: Update.
53406
53407 2007-11-03  Bruno Haible  <bruno@clisp.org>
53408
53409         * modules/frexp-nolibm-tests: New file.
53410
53411         * modules/frexp-nolibm: New file.
53412         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53413
53414 2007-11-03  Bruno Haible  <bruno@clisp.org>
53415
53416         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53417         value is C99 compliant.
53418         Needed for OSF/1 5.1.
53419
53420 2007-11-03  Bruno Haible  <bruno@clisp.org>
53421
53422         Fix out-of-memory handling of vasnprintf.
53423         * lib/printf-parse.c: Include <errno.h>.
53424         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53425         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53426         is already set.
53427
53428 2007-11-02  Eric Blake  <ebb9@byu.net>
53429
53430         Fix tests on cygwin.
53431         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53432
53433 2007-11-01  Bruno Haible  <bruno@clisp.org>
53434
53435         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53436         warning.
53437         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53438         needed for POSIX compatibility.
53439
53440 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53441
53442         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53443         for compatibility with GNU.
53444
53445 2007-11-01  Bruno Haible  <bruno@clisp.org>
53446
53447         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53448         (putenv): Renamed from rpl_putenv. Change argument type from
53449         'const char *' to 'char *'.
53450         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53451         of defining putenv in config.h, just set REPLACE_PUTENV.
53452         * modules/putenv (Depends-on): Add stdlib.
53453         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53454         (Include): Use <stdlib.h>.
53455         * lib/stdlib.in.h (putenv): New declaration.
53456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53457         REPLACE_PUTENV.
53458         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53459         REPLACE_PUTENV.
53460         Needed for MacOS X 10.5.0.
53461         Reported by Peter O'Gorman <peter@pogma.com>.
53462
53463 2007-11-01  Jim Meyering  <meyering@redhat.com>
53464
53465         Treat an empty date string exactly like "0".
53466         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53467         if the remaining date string (to be parsed) is empty, use "0".
53468         Reported by Mischa Molhoek and discussed in this thread:
53469         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53470
53471 2007-10-31  Bruno Haible  <bruno@clisp.org>
53472
53473         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53474         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53475         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53476         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53477         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53478         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53479
53480 2007-10-31  Bruno Haible  <bruno@clisp.org>
53481
53482         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53483         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53484         (AC_TYPE_LONG_LONG_INT): Use it.
53485         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53486         it as well.
53487         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53488         to m4/longlong.m4.
53489         * modules/stdint (Files): Remove m4/ulonglong.m4.
53490         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53491         m4/ulonglong.m4.
53492         * modules/strtoumax (Files): Likewise.
53493
53494 2007-10-30  Bruno Haible  <bruno@clisp.org>
53495
53496         * modules/xvasprintf-posix: New file.
53497         Suggested by Eric Blake.
53498
53499 2007-10-30  Bruno Haible  <bruno@clisp.org>
53500
53501         * modules/xprintf-posix-tests: New file.
53502         * tests/test-xprintf-posix.sh: New file.
53503         * tests/test-xprintf-posix.c: New file.
53504         * tests/test-xfprintf-posix.c: New file.
53505
53506         * modules/xprintf-posix: New file.
53507
53508 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53509
53510         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53511         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53512         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53513
53514 2007-10-29  Bruno Haible  <bruno@clisp.org>
53515
53516         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53517         contain the special marker '_cv_'.
53518         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53519         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53520         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53521         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53522         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53523         Reported by Ralf Wildenhues.
53524
53525 2007-10-29  Bruno Haible  <bruno@clisp.org>
53526
53527         * gnulib-tool (func_import): When --lgpl is not specified, set
53528         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53529         GPLv3.
53530         Reported by Simon Josefsson.
53531
53532 2007-10-28  Bruno Haible  <bruno@clisp.org>
53533
53534         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53535         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53536         HAVE_DECL_ISFINITE.
53537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53538         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53539         HAVE_DECL_ISFINITE.
53540
53541 2007-10-28  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53544         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53545
53546 2007-10-28  Bruno Haible  <bruno@clisp.org>
53547
53548         Fix link errors with Sun C 5.0 on Solaris 10.
53549         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53550         function is declared but not present in the compiler's libm.
53551         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53552         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53553         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53554         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53555         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53556         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53557         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53559         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53560         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53561         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53562         HAVE_DECL_FLOORL.
53563
53564 2007-10-28  Bruno Haible  <bruno@clisp.org>
53565
53566         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53567         gl_FUNC_FLOORL. Cache the result.
53568         (gl_FUNC_FLOORL): Use it.
53569         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53570         gl_FUNC_CEILL. Cache the result.
53571         (gl_FUNC_CEILL): Use it.
53572
53573         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53574         gl_FUNC_FLOOR. Cache the result.
53575         (gl_FUNC_FLOOR): Use it.
53576         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53577         gl_FUNC_CEIL. Cache the result.
53578         (gl_FUNC_CEIL): Use it.
53579
53580         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53581         gl_FUNC_FLOORF. Cache the result.
53582         (gl_FUNC_FLOORF): Use it.
53583         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53584         gl_FUNC_CEILF. Cache the result.
53585         (gl_FUNC_CEILF): Use it.
53586
53587 2007-10-28  Bruno Haible  <bruno@clisp.org>
53588
53589         * gnulib-tool: Allow specifying the LGPL version number through
53590         --lgpl=2 or --lgpl=3.
53591         (func_usage): Document --lgpl with argument.
53592         Handle --lgpl=... arguments.
53593         (func_import): Recognize also gl_LGPL calls with an argument. When
53594         --lgpl=2 is used and the module's license is just LGPL, report an
53595         error. Set sed_transform_lib_file according to the lgpl variable. In
53596         the generated files, use --lgpl or gl_LGPL invocations with argument,
53597         if necessary.
53598         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53599         an LGPv2+ license.
53600         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53601         gl_LGPL macro.
53602
53603 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53604             Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53607         (u16_uctomb_aux): Likewise.
53608         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53609         !HAVE_INLINE.
53610         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53611
53612 2007-10-28  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53615         Invoke AM_GETTEXT_OPTION if it exists.
53616         * modules/vasprintf: Likewise.
53617         * modules/verror: Likewise.
53618         * modules/xprintf: Likewise.
53619         * modules/xvasprintf: Likewise.
53620
53621 2007-10-27  Ben Pfaff  <blp@gnu.org>
53622
53623         * lib/math.in.h: Define isfinite macro and prototypes for
53624         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53625         implementations.
53626         * m4/math_h.m4: New substitutions for isfinite module.
53627         * lib/isfinite.c: New file.
53628         * m4/isfinite.m4: New file.
53629         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53630         * modules/isfinite: New file.
53631         * modules/isfinite-tests: New file.
53632         * tests/tests-isfinite.c: New file.
53633         * doc/functions/isfinite.texi: Mention isfinite module.
53634         * MODULES.html.sh: Mention new module.
53635
53636 2007-10-27  Ben Pfaff  <blp@gnu.org>
53637
53638         Ralf Wildenhues reported that Tru64 4.0D declares the round
53639         functions but does not have definitions.
53640         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53641         cannot be found in any library, set the output variable to
53642         "missing" instead of "".
53643         * m4/round.m4: Also use our substitute if we cannot find round in
53644         any library, even if it is declared.
53645         * m4/roundf.m4: Likewise for roundf.
53646         * m4/roundl.m4: Likewise for roundl.
53647         * lib/math.in.h: Undefine roundf, round, roundl before defining
53648         their replacements, to allow for hypothetical systems where these
53649         may be defined as macros but not available in libraries.
53650
53651 2007-10-27  Bruno Haible  <bruno@clisp.org>
53652
53653         * doc/gnulib.texi: Invoke @firstparagraphindent.
53654         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53655         changes in gnulib.
53656         (Source changes): New section.
53657
53658 2007-10-26  Bruno Haible  <bruno@clisp.org>
53659
53660         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53661         borrowed from autoconf.
53662
53663 2007-10-26  Bruno Haible  <bruno@clisp.org>
53664
53665         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53666         strerror returned the empty string. Needed on HP-UX 11.00.
53667
53668 2007-10-24  Micah Cowan  <micah@cowan.name>
53669
53670         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53671         * build-aux/bootstrap: Remove support for now-unnecessary option,
53672         --cvs-user, and envvars CVS_USER, CVS_RSH.
53673
53674 2007-10-24  Jim Meyering  <meyering@redhat.com>
53675
53676         Avoid diagnostics from sha1sum when there is no cached checksum.
53677         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53678         if the po.s1 file hasn't been created yet.
53679
53680         * build-aux/bootstrap: Sync from coreutils:
53681         2007-10-24  Jim Meyering  <meyering@redhat.com>
53682         Get gnulib from the git repository, not from an obsolete cvs one.
53683         * build-aux/bootstrap: Suggestion from Micah Cowan.
53684         2007-10-04  Jim Meyering  <jim@meyering.net>
53685         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53686         (update_po_files): Work also when there are no .po files in po/.
53687
53688 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53689
53690         * README: Append ".git" to git and cg examples.
53691         Problem reported by Benoit Sigoure.
53692
53693 2007-10-23  Micah Cowan  <micah@cowan.name>
53694
53695         * users.txt: Add wget.
53696
53697 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53698
53699         Fix linking of some unistdio tests on FreeBSD.
53700         * modules/unistdio/u16-vsnprintf-tests
53701         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53702         * modules/unistdio/u16-vsprintf-tests
53703         (test_u16_vsnprintf1_LDADD): Likewise.
53704         * modules/unistdio/u32-vsnprintf-tests
53705         (test_u32_vsnprintf1_LDADD): Likewise.
53706         * modules/unistdio/u32-vsprintf-tests
53707         (test_u32_vsprintf1_LDADD): Likewise.
53708         * modules/unistdio/u8-vsnprintf-tests
53709         (test_u8_vsnprintf1_LDADD): Likewise.
53710         * modules/unistdio/u8-vsprintf-tests
53711         (test_u8_vsprintf1_LDADD): Likewise.
53712         * modules/unistdio/ulc-vsnprintf-tests
53713         (test_ulc_vsnprintf1_LDADD): Likewise.
53714         * modules/unistdio/ulc-vsprintf-tests
53715         (test_ulc_vsprintf1_LDADD): Likewise.
53716
53717         Fix linking of some uniconv tests on FreeBSD.
53718         * modules/uniconv/u16-conv-from-enc-tests
53719         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53720         * modules/uniconv/u16-conv-to-enc-tests
53721         (test_u16_conv_to_enc_LDADD): Likewise.
53722         * modules/uniconv/u16-strconv-from-enc-tests
53723         (test_u16_strconv_from_enc_LDADD): Likewise.
53724         * modules/uniconv/u16-strconv-to-enc-tests
53725         (test_u16_strconv_to_enc_LDADD): Likewise.
53726         * modules/uniconv/u32-conv-from-enc-tests
53727         (test_u32_conv_from_enc_LDADD): Likewise.
53728         * modules/uniconv/u32-conv-to-enc-tests
53729         (test_u32_conv_to_enc_LDADD): Likewise.
53730         * modules/uniconv/u32-strconv-from-enc-tests
53731         (test_u32_strconv_from_enc_LDADD): Likewise.
53732         * modules/uniconv/u32-strconv-to-enc-tests
53733         (test_u32_strconv_to_enc_LDADD): Likewise.
53734         * modules/uniconv/u8-conv-from-enc-tests
53735         (test_u8_conv_from_enc_LDADD): Likewise.
53736         * modules/uniconv/u8-conv-to-enc-tests
53737         (test_u8_conv_to_enc_LDADD): Likewise.
53738         * modules/uniconv/u8-strconv-from-enc-tests
53739         (test_u8_strconv_from_enc_LDADD): Likewise.
53740         * modules/uniconv/u8-strconv-to-enc-tests
53741         (test_u8_strconv_to_enc_LDADD): Likewise.
53742
53743 2007-10-22  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53746         size.
53747
53748 2007-10-22  Eric Blake  <ebb9@byu.net>
53749
53750         Tweak x*printf documentation.
53751         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53752         variable name and comments.
53753         Suggested by Bruno Haible.
53754
53755 2007-10-22  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/acl.c (copy_acl): Fix file name in comment.
53758
53759 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53760
53761         Fix Tru64 problem with stdbool.h.
53762         * lib/stdbool.in.h (false, true):
53763         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53764         Don't declare as an enum in this situation; it runs afoul of Tru64.
53765         Problem reported by Steven M. Schweda in
53766         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53767
53768 2007-10-22  Eric Blake  <ebb9@byu.net>
53769
53770         Also wrap vf?printf.
53771         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53772         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53773         (xvprintf, xvfprintf): New functions.
53774
53775 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53776
53777         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53778         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53779
53780         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53781         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53782
53783 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53786         by Bruno Haible.
53787
53788 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53789
53790         * lib/getloadavg.c
53791         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53792         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53793
53794         * tests/test-i-ring.c: Work for C89.
53795
53796 2007-10-22  Bruno Haible  <bruno@clisp.org>
53797
53798         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53799         -1u, in preprocessor expression, so that we don't test for the bug
53800         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53801         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53802
53803 2007-10-22  Eric Blake  <ebb9@byu.net>
53804
53805         * tests/test-yesno.sh: Silence stderr during test.
53806
53807 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53808
53809         * modules/crypto/gc-camellia: New file.
53810
53811         * m4/gc-camellia.m4: New file.
53812
53813         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53814
53815         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53816
53817 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53818
53819         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53820         --help to stdout.  Reported by sms@antinode.org (Steven
53821         M. Schweda).
53822
53823 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53824
53825         * users.txt: Fix link to libksba.
53826
53827 2007-10-21  Ben Pfaff  <blp@gnu.org>
53828
53829         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53830         round.c roundf implementation that depends on floorf and ceilf to
53831         be tested unconditionally.
53832
53833 2007-10-21  Ben Pfaff  <blp@gnu.org>
53834
53835         * m4/check-libm-func.m4: Removed.
53836         * m4/check-math-lib.m4: New file.
53837         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53838         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53839         definition and lack of AC_LIBOBJ([roundf]).
53840         * m4/roundl.m4: Ditto, and similarly for roundl.
53841         * modules/round: Reference new m4 file.
53842         * modules/roundf: Ditto.
53843         * modules/roundl: Ditto.
53844         * tests/test-round2.c (main): Use ROUND instead of round.
53845         Bug report from Bruno Haible.
53846
53847 2007-10-21  Bruno Haible  <bruno@clisp.org>
53848
53849         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53850         context.
53851
53852 2007-10-21  Bruno Haible  <bruno@clisp.org>
53853
53854         * tests/test-wcwidth.c (main): Allow negative result for some control
53855         characters.
53856
53857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53858         Needed on OSF/1 5.1.
53859
53860 2007-10-21  Bruno Haible  <bruno@clisp.org>
53861
53862         * tests/test-floorf1.c: Include isnanf.h.
53863         (main): Use isnanf() instead of isnan().
53864         * tests/test-ceilf1.c: Include isnanf.h.
53865         (main): Use isnanf() instead of isnan().
53866         * tests/test-truncf1.c: Include isnanf.h.
53867         (main): Use isnanf() instead of isnan().
53868         * tests/test-roundf1.c: Include isnanf.h.
53869         (main): Use isnanf() instead of isnan().
53870
53871 2007-10-21  Eric Blake  <ebb9@byu.net>
53872
53873         * users.txt: Update URL for m4.
53874
53875 2007-10-21  Bruno Haible  <bruno@clisp.org>
53876
53877         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53878
53879 2007-10-21  Bruno Haible  <bruno@clisp.org>
53880
53881         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53882         Git's management files if the CVS files are not present.
53883
53884 2007-10-20  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53887         gcc-3.4.x.
53888
53889 2007-10-20  Ben Pfaff  <blp@gnu.org>
53890
53891         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53892         implementations.
53893         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53894         * lib/round.c: New file.
53895         * lib/roundf.c: New file.
53896         * lib/roundl.c: New file.
53897         * m4/round.m4: New file.
53898         * m4/roundf.m4: New file.
53899         * m4/roundl.m4: New file.
53900         * m4/check-libm-func-m4: New file.
53901         * modules/math: Replace round, roundf, roundl related @VARS@ in
53902         math.in.h.
53903         * modules/round: New file.
53904         * modules/round-tests: New file.
53905         * modules/roundf: New file.
53906         * modules/roundf-tests: New file.
53907         * modules/roundl: New file.
53908         * modules/roundl-tests: New file.
53909         * tests/test-round1.c: New file.
53910         * tests/test-round2.c: New file.
53911         * tests/test-roundf1.c: New file.
53912         * tests/test-roundf2.c: New file.
53913         * tests/test-roundl.c: New file.
53914         * doc/functions/round.texi: Mention round module.
53915         * doc/functions/roundf.texi: Mention roundf module.
53916         * doc/functions/roundl.texi: Mention roundl module.
53917         * MODULES.html.sh: Mention new modules.
53918         Thanks to Bruno Haible for suggestions.
53919
53920 2007-10-20  Jim Meyering  <meyering@redhat.com>
53921
53922         * lib/xprintf.c: Include <config.h> unconditionally.
53923
53924         Change xprintf's license to GPL.
53925         * modules/xprintf (License): s/LGPL/GPL/, since this module
53926         depends on modules (exit and exitfail) which are GPL.
53927         Suggestion from Bruno Haible.
53928
53929         xprintf fixes.
53930         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53931         Use a clearer diagnostic.
53932         Patch from Bruno Haible.
53933
53934 2007-10-20  Bruno Haible  <bruno@clisp.org>
53935
53936         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53937         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53939
53940 2007-10-20  Bruno Haible  <bruno@clisp.org>
53941
53942         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53943         precision in the comparison result > x - 1 or similar.
53944         * tests/test-ceilf2.c (correct_result_p): Likewise.
53945         * tests/test-truncf2.c (correct_result_p): Likewise.
53946         * tests/test-trunc2.c (correct_result_p): Likewise.
53947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53948
53949 2007-10-20  Bruno Haible  <bruno@clisp.org>
53950
53951         * modules/ceil: New file.
53952         * m4/ceil.m4: New file.
53953         * doc/functions/ceil.texi: Mention the 'ceil' module.
53954
53955 2007-10-20  Bruno Haible  <bruno@clisp.org>
53956
53957         * modules/floor: New file.
53958         * m4/floor.m4: New file.
53959         * doc/functions/floor.texi: Mention the 'floor' module.
53960
53961 2007-10-20  Bruno Haible  <bruno@clisp.org>
53962
53963         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53964         of %a.
53965         * modules/floorf-tests (Depends-on): Likewise.
53966         * modules/truncf-tests (Depends-on): Likewise.
53967         * modules/trunc-tests (Depends-on): Likewise.
53968         Reported by Ben Pfaff.
53969
53970 2007-10-19  Jim Meyering  <meyering@redhat.com>
53971
53972         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53973         Don't bother testing specific errno values.  Just test ferror.
53974
53975         New module: xprintf
53976         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53977
53978 2007-10-19  Bruno Haible  <bruno@clisp.org>
53979
53980         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53981         syntax.
53982         * modules/javaexec (Makefile.am): Likewise.
53983         * modules/relocatable-prog (Makefile.am): Likewise.
53984         Suggested by Jim Meyering.
53985
53986 2007-10-18  Bruno Haible  <bruno@clisp.org>
53987
53988         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53989         Reported by Jim Meyering.
53990
53991 2007-10-18  Eric Blake  <ebb9@byu.net>
53992
53993         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53994
53995 2007-10-18  Bruno Haible  <bruno@clisp.org>
53996
53997         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53998         the format string into writable memory. Needed in Fortify conditions.
53999
54000 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54001             Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54004         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54005         * modules/trim (Depends-on): Add mbchar.
54006         (configure.ac): Add gl_FUNC_MBRTOWC.
54007         (Makefile.am): Augment lib_SOURCES.
54008
54009 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         Modify glob.c to use fstatat and dirfd, to simplify it.
54012         Suggested by Eric Blake.
54013         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54014         Don't include <stdbool.h>; not used.
54015         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54016         (link_exists_p): Simplify implementation, since we can now assume
54017         dirfd and fstatat.
54018         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54019
54020 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54021
54022         * gnulib-tool (func_get_dependencies): Fix sed script to
54023         match only tests.
54024
54025 2007-10-17  Bruno Haible  <bruno@clisp.org>
54026
54027         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54028         allow locale names without encoding suffix.
54029         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54030         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54031
54032 2007-10-16  Bruno Haible  <bruno@clisp.org>
54033
54034         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54035         * lib/getgroups.c (getgroups): Likewise.
54036         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54037
54038 2007-10-16  Bruno Haible  <bruno@clisp.org>
54039
54040         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54041         * modules/malloc-posix (License): Likewise.
54042         * modules/realloc-posix (License): Likewise.
54043         * modules/calloc-posix (License): Likewise.
54044         * modules/intprops (License): Change from GPL to LGPL, with
54045         Paul Eggert's approval.
54046
54047 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         Merge glibc changes into lib/glob.c.
54050
54051         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54052         2007-10-15 04:59:03 UTC.  Here are the changes:
54053
54054         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54055
54056         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54057
54058         * lib/glob.c: Add some branch prediction throughout.
54059
54060         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54061
54062         [BZ #5103]
54063         * lib/glob.c (glob): Recognize patterns starting \/.
54064
54065         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54066
54067         [BZ #3996]
54068         * lib/glob.c (attribute_hidden): Define if not defined.
54069         (glob): Unescape dirname, filename or username when needed and not
54070         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54071         is NULL.  Handle unescaped [ in pattern without closing ].
54072         Don't pass GLOB_CHECK down to recursive glob for directories.
54073         (__glob_pattern_type): New function.
54074         (__glob_pattern_p): Implement using __glob_pattern_type.
54075         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54076         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54077         Remove unreachable code.
54078
54079         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54080
54081         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54082         explain why there are no leaks.
54083
54084         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54085
54086         [BZ #3253]
54087         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54088         time, rather allocate increasingly bigger arrays of pointers, if
54089         possible with alloca, if too large with malloc.
54090
54091 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54094         Problem reported by H.Merijn Brand in
54095         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54096         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54097         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54098
54099 2007-10-15  Bruno Haible  <bruno@clisp.org>
54100
54101         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54102         with explicit rpl_ prefix.
54103         * lib/fopen.c (fopen): Likewise.
54104         * lib/freopen.c (freopen): Likewise.
54105         * lib/iconv.c (iconv): Likewise.
54106         * lib/iconv_close.c (iconv_close): Likewise.
54107
54108 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54109
54110         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54111
54112 2007-10-15  Bruno Haible  <bruno@clisp.org>
54113
54114         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54115         <stddef.h> instead of <stdlib.h> since we only need NULL.
54116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54117
54118 2007-10-15  Bruno Haible  <bruno@clisp.org>
54119
54120         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54121         Replace paragraph talking about LIBOBJS.
54122         Reported by Colin Watson <cjwatson@debian.org>.
54123
54124 2007-10-15  Bruno Haible  <bruno@clisp.org>
54125
54126         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54127         <stdlib.h> before using NULL.
54128
54129 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54130
54131         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54132         Reported by Albert Chin <china@thewrittenword.com>.
54133
54134 2007-10-14  Bruno Haible  <bruno@clisp.org>
54135
54136         * modules/iconv_open-utf-tests: New file.
54137         * tests/test-iconv-utf.c: New file.
54138
54139         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54140         * modules/iconv_open-utf: New file.
54141         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54142         (iconv, iconv_close): New declarations.
54143         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54144         be defined.
54145         (iconv_open): Add special handling of conversion between UTF-8 and
54146         UTF-{16,32}{BE,LE}.
54147         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54148         * lib/iconv_close.c: New file.
54149         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54150         gl_FUNC_ICONV_OPEN.
54151         (gl_FUNC_ICONV_OPEN): Use it.
54152         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54153         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54154         and REPLACE_ICONV_UTF.
54155         * modules/iconv_open (Depends-on): Add c-strcase.
54156         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54157         ICONV_CONST.
54158         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54159
54160 2007-10-13  Albert Chin  <china@thewrittenword.com>
54161             Bruno Haible  <bruno@clisp.org>
54162
54163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54164         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54165
54166 2007-10-13  Bruno Haible  <bruno@clisp.org>
54167
54168         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54169         defined, use the ISO C99 inline semantics.
54170         * lib/argp.h (ARGP_EI): Likewise.
54171
54172 2007-10-13  Bruno Haible  <bruno@clisp.org>
54173
54174         Handle 'inline' change in gcc 4.3.0.
54175         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54176         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54177         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54178         argp_fmtstream_point): Disable 'extern' declaration if the function
54179         definition is going to be provided inline.
54180         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54181         semantics, not the ISO C99 inline semantics.
54182         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54183         'extern' declaration if the function definition is going to be provided
54184         inline.
54185         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54186         the GNU C inline semantics, not the ISO C99 inline semantics. With
54187         GCC 4.2, avoid a warning.
54188
54189 2007-10-13  Bruno Haible  <bruno@clisp.org>
54190
54191         * lib/freading.h (freading): Enable the use of __freading for
54192         glibc >= 2.7.
54193         * lib/freading.c (freading): Likewise.
54194
54195 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54196
54197         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54198         "warning: C99 inline functions are not supported; using GNU89".
54199
54200 2007-10-12  Bruno Haible  <bruno@clisp.org>
54201
54202         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54203         of 2.
54204         * tests/test-ceilf2.c: New file.
54205         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54206
54207         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54208         * modules/ceilf-tests: Update.
54209
54210 2007-10-12  Bruno Haible  <bruno@clisp.org>
54211
54212         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54213         of 2.
54214         * tests/test-floorf2.c: New file.
54215         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54216
54217         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54218         * modules/floorf-tests: Update.
54219
54220 2007-10-12  Bruno Haible  <bruno@clisp.org>
54221
54222         * tests/test-trunc2.c: New file.
54223         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54224
54225         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54226         * modules/trunc-tests: Update.
54227
54228 2007-10-12  Bruno Haible  <bruno@clisp.org>
54229
54230         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54231         of 2.
54232         * tests/test-truncf2.c: New file.
54233         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54234
54235         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54236         * modules/truncf-tests: Update.
54237
54238 2007-10-11  Eric Blake  <ebb9@byu.net>
54239
54240         Don't claim strerror is broken on Interix.
54241         * doc/functions/strerror.texi (strerror): Known broken systems are
54242         now Solaris 8, and not Interix.
54243         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54244         Interix on cross-compile.
54245         Reported by Martin Koeppe in
54246         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54247
54248 2007-10-11  Bruno Haible  <bruno@clisp.org>
54249
54250         * modules/i-ring-tests: New file.
54251         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54252         instead of assert.
54253
54254 2007-10-11  Bruno Haible  <bruno@clisp.org>
54255
54256         * modules/filenamecat-tests: New file.
54257         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54258         * lib/filenamecat.c: Remove test code.
54259
54260 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54261
54262         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54263
54264         * lib/strerror.c: Include <string.h> always, to test interface,
54265         and to remove the need for the dummy.
54266         Include intprops.h to compute width instead of doing it ourselves
54267         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54268         (strerror): Define it to return NULL if there's no system strerror.
54269         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54270         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54271         ancient pre-strerror Unix systems well any more.  Saying "unknown
54272         system error" is enough.
54273         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54274         simpler strerror.c implementation.
54275         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54276         Simplify the tests to reflect the simpler strerror implementation.
54277         * modules/strerror (Depends-on): Add intprops.
54278
54279 2007-10-09  Eric Blake  <ebb9@byu.net>
54280
54281         Silence test-fpending.
54282         * modules/fpending-tests (Files): Add wrapper script.
54283         * tests/test-fpending.sh: New file.
54284
54285 2007-10-09  Bruno Haible  <bruno@clisp.org>
54286
54287         * MODULES.html.sh (func_module): Don't create a hyperlink for
54288         function names like 'printf_frexp'.
54289         (Misc): Add crc, memxor.
54290         (Characteristics of floating types): New section.
54291         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54292         isnanf-nolibm, signbit, trunc, truncf, truncl.
54293         (Enhancements for ISO C 99 functions): New subsection Input/output.
54294         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54295         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54296         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54297         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54298         (Enhancements for POSIX:2001 functions): Add chdir-long.
54299         (File system functions): Add areadlink, chdir-safer, read-file.
54300         Remove cycle-check.
54301         (File system as inode set): New section.
54302         (Date and time): Add gethrxtime.
54303         (Multithreading): Add openmp.
54304         (Internationalization functions): Add localename.
54305         (Unicode string functions): Add unistr/u*-mbsnlen.
54306         (Support for maintaining and releasing projects): Add git-version-gen.
54307         (Lone files): Remove directories.
54308
54309 2007-10-08  Ben Pfaff  <blp@gnu.org>
54310
54311         * lib/xmalloca.h: Fix typo in comment.
54312
54313 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54314
54315         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54316         when avoiding problems with integer overflow.  Use a portable test
54317         instead.
54318
54319 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54320
54321         * modules/dummy (License): Change to LGPLv2+.
54322         * modules/float (License): Likewise
54323         * modules/realloc (License): Likewise
54324         * modules/stdlib (License): Likewise
54325
54326 2007-10-07  Bruno Haible  <bruno@clisp.org>
54327
54328         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54329         * floor.c (TWO_MANT_DIG): Likewise.
54330         * ceil.c (TWO_MANT_DIG): Likewise.
54331         Reported by Ben Pfaff.
54332
54333 2007-10-07  Bruno Haible  <bruno@clisp.org>
54334
54335         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54336         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54337         * lib/frexp.c (FUNC): Likewise.
54338         * lib/printf-frexp.h (printf_frexp): Likewise.
54339         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54340         * lib/printf-frexp.c (FUNC): Likewise.
54341         Suggested by Jim Meyering.
54342
54343 2007-10-07  Jim Meyering  <meyering@redhat.com>
54344
54345         Make xnanosleep's integer overflow test more robust.
54346         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54347         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54348
54349 2007-10-07  Bruno Haible  <bruno@clisp.org>
54350
54351         * NEWS: Mention the license change.
54352
54353         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54354         abbreviations in the modules files.
54355
54356         Change copyright notice from GPLv2+ to GPLv3+.
54357         * README: Change copyright notice.
54358         * MODULES.html.sh: Likewise.
54359         * build-aux/bootstrap.conf: Likewise.
54360         * build-aux/config.libpath: Likewise.
54361         * build-aux/csharpcomp.sh.in: Likewise.
54362         * build-aux/csharpexec.sh.in: Likewise.
54363         * build-aux/install-reloc: Likewise.
54364         * build-aux/javacomp.sh.in: Likewise.
54365         * build-aux/javaexec.sh.in: Likewise.
54366         * build-aux/ldd.sh.in: Likewise.
54367         * build-aux/reloc-ldflags: Likewise.
54368         * build-aux/relocatable.sh.in: Likewise.
54369         * build-aux/x-to-1.in: Likewise.
54370         * check-module: Likewise.
54371         * config/srclistvars.sh: Likewise.
54372         * gnulib-tool: Likewise.
54373         * lib/acl-internal.h: Likewise.
54374         * lib/acl.c: Likewise.
54375         * lib/acl.h: Likewise.
54376         * lib/acl_entries.c: Likewise.
54377         * lib/areadlink-with-size.c: Likewise.
54378         * lib/areadlink.c: Likewise.
54379         * lib/areadlink.h: Likewise.
54380         * lib/argmatch.c: Likewise.
54381         * lib/argmatch.h: Likewise.
54382         * lib/argp-ba.c: Likewise.
54383         * lib/argp-eexst.c: Likewise.
54384         * lib/argp-fmtstream.c: Likewise.
54385         * lib/argp-fmtstream.h: Likewise.
54386         * lib/argp-fs-xinl.c: Likewise.
54387         * lib/argp-help.c: Likewise.
54388         * lib/argp-namefrob.h: Likewise.
54389         * lib/argp-parse.c: Likewise.
54390         * lib/argp-pin.c: Likewise.
54391         * lib/argp-pv.c: Likewise.
54392         * lib/argp-pvh.c: Likewise.
54393         * lib/argp-xinl.c: Likewise.
54394         * lib/argp.h: Likewise.
54395         * lib/at-func.c: Likewise.
54396         * lib/atanl.c: Likewise.
54397         * lib/backupfile.c: Likewise.
54398         * lib/backupfile.h: Likewise.
54399         * lib/basename.c: Likewise.
54400         * lib/binary-io.h: Likewise.
54401         * lib/byteswap.in.h: Likewise.
54402         * lib/c-stack.c: Likewise.
54403         * lib/c-stack.h: Likewise.
54404         * lib/c-strcasestr.c: Likewise.
54405         * lib/c-strcasestr.h: Likewise.
54406         * lib/c-strstr.c: Likewise.
54407         * lib/c-strstr.h: Likewise.
54408         * lib/c-strtod.c: Likewise.
54409         * lib/calloc.c: Likewise.
54410         * lib/canon-host.c: Likewise.
54411         * lib/canon-host.h: Likewise.
54412         * lib/canonicalize-lgpl.c: Likewise.
54413         * lib/canonicalize.c: Likewise.
54414         * lib/canonicalize.h: Likewise.
54415         * lib/ceil.c: Likewise.
54416         * lib/ceilf.c: Likewise.
54417         * lib/ceill.c: Likewise.
54418         * lib/chdir-long.c: Likewise.
54419         * lib/chdir-long.h: Likewise.
54420         * lib/chdir-safer.c: Likewise.
54421         * lib/chdir-safer.h: Likewise.
54422         * lib/chown.c: Likewise.
54423         * lib/classpath.c: Likewise.
54424         * lib/classpath.h: Likewise.
54425         * lib/clean-temp.c: Likewise.
54426         * lib/clean-temp.h: Likewise.
54427         * lib/cloexec.c: Likewise.
54428         * lib/close-stream.c: Likewise.
54429         * lib/closein.c: Likewise.
54430         * lib/closein.h: Likewise.
54431         * lib/closeout.c: Likewise.
54432         * lib/closeout.h: Likewise.
54433         * lib/concat-filename.c: Likewise.
54434         * lib/copy-file.c: Likewise.
54435         * lib/copy-file.h: Likewise.
54436         * lib/count-one-bits.h: Likewise.
54437         * lib/crc.c: Likewise.
54438         * lib/crc.h: Likewise.
54439         * lib/creat-safer.c: Likewise.
54440         * lib/csharpcomp.c: Likewise.
54441         * lib/csharpcomp.h: Likewise.
54442         * lib/csharpexec.c: Likewise.
54443         * lib/csharpexec.h: Likewise.
54444         * lib/cycle-check.c: Likewise.
54445         * lib/cycle-check.h: Likewise.
54446         * lib/diacrit.c: Likewise.
54447         * lib/diacrit.h: Likewise.
54448         * lib/diffseq.h: Likewise.
54449         * lib/dirchownmod.c: Likewise.
54450         * lib/dirent.in.h: Likewise.
54451         * lib/dirfd.c: Likewise.
54452         * lib/dirfd.h: Likewise.
54453         * lib/dirname.c: Likewise.
54454         * lib/dirname.h: Likewise.
54455         * lib/dummy.c: Likewise.
54456         * lib/dup-safer.c: Likewise.
54457         * lib/dup2.c: Likewise.
54458         * lib/eealloc.h: Likewise.
54459         * lib/error.c: Likewise.
54460         * lib/error.h: Likewise.
54461         * lib/euidaccess.c: Likewise.
54462         * lib/exclude.c: Likewise.
54463         * lib/exclude.h: Likewise.
54464         * lib/execute.c: Likewise.
54465         * lib/execute.h: Likewise.
54466         * lib/exitfail.c: Likewise.
54467         * lib/exitfail.h: Likewise.
54468         * lib/expl.c: Likewise.
54469         * lib/fatal-signal.c: Likewise.
54470         * lib/fatal-signal.h: Likewise.
54471         * lib/fbufmode.c: Likewise.
54472         * lib/fbufmode.h: Likewise.
54473         * lib/fchdir.c: Likewise.
54474         * lib/fchmodat.c: Likewise.
54475         * lib/fchownat.c: Likewise.
54476         * lib/fcntl--.h: Likewise.
54477         * lib/fcntl-safer.h: Likewise.
54478         * lib/fcntl.in.h: Likewise.
54479         * lib/fd-safer.c: Likewise.
54480         * lib/fflush.c: Likewise.
54481         * lib/file-has-acl.c: Likewise.
54482         * lib/file-set.c: Likewise.
54483         * lib/file-type.c: Likewise.
54484         * lib/file-type.h: Likewise.
54485         * lib/fileblocks.c: Likewise.
54486         * lib/filemode.c: Likewise.
54487         * lib/filemode.h: Likewise.
54488         * lib/filename.h: Likewise.
54489         * lib/filenamecat.c: Likewise.
54490         * lib/filenamecat.h: Likewise.
54491         * lib/findprog.c: Likewise.
54492         * lib/findprog.h: Likewise.
54493         * lib/float.in.h: Likewise.
54494         * lib/floor.c: Likewise.
54495         * lib/floorf.c: Likewise.
54496         * lib/floorl.c: Likewise.
54497         * lib/fopen-safer.c: Likewise.
54498         * lib/fopen.c: Likewise.
54499         * lib/fpending.c: Likewise.
54500         * lib/fpending.h: Likewise.
54501         * lib/fprintf.c: Likewise.
54502         * lib/fprintftime.h: Likewise.
54503         * lib/fpucw.h: Likewise.
54504         * lib/fpurge.c: Likewise.
54505         * lib/fpurge.h: Likewise.
54506         * lib/freadable.c: Likewise.
54507         * lib/freadable.h: Likewise.
54508         * lib/freadahead.c: Likewise.
54509         * lib/freadahead.h: Likewise.
54510         * lib/freading.c: Likewise.
54511         * lib/freading.h: Likewise.
54512         * lib/free.c: Likewise.
54513         * lib/freopen.c: Likewise.
54514         * lib/frexp.c: Likewise.
54515         * lib/frexpl.c: Likewise.
54516         * lib/fseek.c: Likewise.
54517         * lib/fseterr.c: Likewise.
54518         * lib/fseterr.h: Likewise.
54519         * lib/fstatat.c: Likewise.
54520         * lib/fstrcmp.c: Likewise.
54521         * lib/fstrcmp.h: Likewise.
54522         * lib/fsusage.c: Likewise.
54523         * lib/fsusage.h: Likewise.
54524         * lib/ftell.c: Likewise.
54525         * lib/ftello.c: Likewise.
54526         * lib/fts-cycle.c: Likewise.
54527         * lib/fts.c: Likewise.
54528         * lib/fts_.h: Likewise.
54529         * lib/full-read.c: Likewise.
54530         * lib/full-read.h: Likewise.
54531         * lib/full-write.c: Likewise.
54532         * lib/full-write.h: Likewise.
54533         * lib/fwritable.c: Likewise.
54534         * lib/fwritable.h: Likewise.
54535         * lib/fwriteerror.c: Likewise.
54536         * lib/fwriteerror.h: Likewise.
54537         * lib/fwriting.c: Likewise.
54538         * lib/fwriting.h: Likewise.
54539         * lib/gcd.c: Likewise.
54540         * lib/gcd.h: Likewise.
54541         * lib/getcwd.c: Likewise.
54542         * lib/getdate.h: Likewise.
54543         * lib/getdate.y: Likewise.
54544         * lib/getdomainname.c: Likewise.
54545         * lib/getdomainname.h: Likewise.
54546         * lib/getgroups.c: Likewise.
54547         * lib/gethostname.c: Likewise.
54548         * lib/gethrxtime.c: Likewise.
54549         * lib/gethrxtime.h: Likewise.
54550         * lib/getloadavg.c: Likewise.
54551         * lib/getndelim2.c: Likewise.
54552         * lib/getndelim2.h: Likewise.
54553         * lib/getnline.c: Likewise.
54554         * lib/getnline.h: Likewise.
54555         * lib/getopt.c: Likewise.
54556         * lib/getopt.in.h: Likewise.
54557         * lib/getopt1.c: Likewise.
54558         * lib/getopt_int.h: Likewise.
54559         * lib/getpagesize.h: Likewise.
54560         * lib/getsubopt.c: Likewise.
54561         * lib/gettime.c: Likewise.
54562         * lib/getugroups.c: Likewise.
54563         * lib/getugroups.h: Likewise.
54564         * lib/getusershell.c: Likewise.
54565         * lib/gl_anyavltree_list1.h: Likewise.
54566         * lib/gl_anyavltree_list2.h: Likewise.
54567         * lib/gl_anyhash_list1.h: Likewise.
54568         * lib/gl_anyhash_list2.h: Likewise.
54569         * lib/gl_anylinked_list1.h: Likewise.
54570         * lib/gl_anylinked_list2.h: Likewise.
54571         * lib/gl_anyrbtree_list1.h: Likewise.
54572         * lib/gl_anyrbtree_list2.h: Likewise.
54573         * lib/gl_anytree_list1.h: Likewise.
54574         * lib/gl_anytree_list2.h: Likewise.
54575         * lib/gl_anytree_oset.h: Likewise.
54576         * lib/gl_anytreehash_list1.h: Likewise.
54577         * lib/gl_anytreehash_list2.h: Likewise.
54578         * lib/gl_array_list.c: Likewise.
54579         * lib/gl_array_list.h: Likewise.
54580         * lib/gl_array_oset.c: Likewise.
54581         * lib/gl_array_oset.h: Likewise.
54582         * lib/gl_avltree_list.c: Likewise.
54583         * lib/gl_avltree_list.h: Likewise.
54584         * lib/gl_avltree_oset.c: Likewise.
54585         * lib/gl_avltree_oset.h: Likewise.
54586         * lib/gl_avltreehash_list.c: Likewise.
54587         * lib/gl_avltreehash_list.h: Likewise.
54588         * lib/gl_carray_list.c: Likewise.
54589         * lib/gl_carray_list.h: Likewise.
54590         * lib/gl_linked_list.c: Likewise.
54591         * lib/gl_linked_list.h: Likewise.
54592         * lib/gl_linkedhash_list.c: Likewise.
54593         * lib/gl_linkedhash_list.h: Likewise.
54594         * lib/gl_list.c: Likewise.
54595         * lib/gl_list.h: Likewise.
54596         * lib/gl_oset.c: Likewise.
54597         * lib/gl_oset.h: Likewise.
54598         * lib/gl_rbtree_list.c: Likewise.
54599         * lib/gl_rbtree_list.h: Likewise.
54600         * lib/gl_rbtree_oset.c: Likewise.
54601         * lib/gl_rbtree_oset.h: Likewise.
54602         * lib/gl_rbtreehash_list.c: Likewise.
54603         * lib/gl_rbtreehash_list.h: Likewise.
54604         * lib/gl_sublist.c: Likewise.
54605         * lib/gl_sublist.h: Likewise.
54606         * lib/group-member.c: Likewise.
54607         * lib/group-member.h: Likewise.
54608         * lib/hard-locale.c: Likewise.
54609         * lib/hard-locale.h: Likewise.
54610         * lib/hash-pjw.c: Likewise.
54611         * lib/hash-pjw.h: Likewise.
54612         * lib/hash-triple.c: Likewise.
54613         * lib/hash.c: Likewise.
54614         * lib/hash.h: Likewise.
54615         * lib/human.c: Likewise.
54616         * lib/human.h: Likewise.
54617         * lib/i-ring.c: Likewise.
54618         * lib/i-ring.h: Likewise.
54619         * lib/idcache.c: Likewise.
54620         * lib/imaxabs.c: Likewise.
54621         * lib/imaxdiv.c: Likewise.
54622         * lib/inet_pton.c: Likewise.
54623         * lib/inet_pton.h: Likewise.
54624         * lib/intprops.h: Likewise.
54625         * lib/inttostr.c: Likewise.
54626         * lib/inttostr.h: Likewise.
54627         * lib/inttypes.in.h: Likewise.
54628         * lib/isapipe.c: Likewise.
54629         * lib/isdir.c: Likewise.
54630         * lib/isnan.c: Likewise.
54631         * lib/isnan.h: Likewise.
54632         * lib/isnanf.c: Likewise.
54633         * lib/isnanf.h: Likewise.
54634         * lib/isnanl-nolibm.h: Likewise.
54635         * lib/isnanl.c: Likewise.
54636         * lib/isnanl.h: Likewise.
54637         * lib/javacomp.c: Likewise.
54638         * lib/javacomp.h: Likewise.
54639         * lib/javaexec.c: Likewise.
54640         * lib/javaexec.h: Likewise.
54641         * lib/javaversion.c: Likewise.
54642         * lib/javaversion.h: Likewise.
54643         * lib/javaversion.java: Likewise.
54644         * lib/lbrkprop.h: Likewise.
54645         * lib/lchmod.h: Likewise.
54646         * lib/lchown.c: Likewise.
54647         * lib/ldexpl.c: Likewise.
54648         * lib/linebreak.c: Likewise.
54649         * lib/linebreak.h: Likewise.
54650         * lib/linebuffer.c: Likewise.
54651         * lib/linebuffer.h: Likewise.
54652         * lib/locale.in.h: Likewise.
54653         * lib/logl.c: Likewise.
54654         * lib/long-options.c: Likewise.
54655         * lib/long-options.h: Likewise.
54656         * lib/lstat.c: Likewise.
54657         * lib/lstat.h: Likewise.
54658         * lib/math.in.h: Likewise.
54659         * lib/mbchar.c: Likewise.
54660         * lib/mbchar.h: Likewise.
54661         * lib/mbfile.h: Likewise.
54662         * lib/mbiter.h: Likewise.
54663         * lib/mbscasecmp.c: Likewise.
54664         * lib/mbscasestr.c: Likewise.
54665         * lib/mbschr.c: Likewise.
54666         * lib/mbscspn.c: Likewise.
54667         * lib/mbslen.c: Likewise.
54668         * lib/mbsncasecmp.c: Likewise.
54669         * lib/mbsnlen.c: Likewise.
54670         * lib/mbspbrk.c: Likewise.
54671         * lib/mbspcasecmp.c: Likewise.
54672         * lib/mbsrchr.c: Likewise.
54673         * lib/mbssep.c: Likewise.
54674         * lib/mbsspn.c: Likewise.
54675         * lib/mbsstr.c: Likewise.
54676         * lib/mbstok_r.c: Likewise.
54677         * lib/mbswidth.c: Likewise.
54678         * lib/mbswidth.h: Likewise.
54679         * lib/mbuiter.h: Likewise.
54680         * lib/memcasecmp.c: Likewise.
54681         * lib/memcasecmp.h: Likewise.
54682         * lib/memchr.c: Likewise.
54683         * lib/memcmp.c: Likewise.
54684         * lib/memcoll.c: Likewise.
54685         * lib/memcoll.h: Likewise.
54686         * lib/memcpy.c: Likewise.
54687         * lib/memrchr.c: Likewise.
54688         * lib/mkancesdirs.c: Likewise.
54689         * lib/mkdir-p.c: Likewise.
54690         * lib/mkdir-p.h: Likewise.
54691         * lib/mkdir.c: Likewise.
54692         * lib/mkdirat.c: Likewise.
54693         * lib/mkdtemp.c: Likewise.
54694         * lib/mkstemp-safer.c: Likewise.
54695         * lib/mkstemp.c: Likewise.
54696         * lib/modechange.c: Likewise.
54697         * lib/modechange.h: Likewise.
54698         * lib/mountlist.c: Likewise.
54699         * lib/mountlist.h: Likewise.
54700         * lib/mpsort.c: Likewise.
54701         * lib/nanosleep.c: Likewise.
54702         * lib/obstack.c: Likewise.
54703         * lib/obstack.h: Likewise.
54704         * lib/open-safer.c: Likewise.
54705         * lib/open.c: Likewise.
54706         * lib/openat-die.c: Likewise.
54707         * lib/openat-priv.h: Likewise.
54708         * lib/openat-proc.c: Likewise.
54709         * lib/openat.c: Likewise.
54710         * lib/openat.h: Likewise.
54711         * lib/pagealign_alloc.c: Likewise.
54712         * lib/pagealign_alloc.h: Likewise.
54713         * lib/physmem.c: Likewise.
54714         * lib/physmem.h: Likewise.
54715         * lib/pipe-safer.c: Likewise.
54716         * lib/pipe.c: Likewise.
54717         * lib/pipe.h: Likewise.
54718         * lib/posixtm.c: Likewise.
54719         * lib/posixtm.h: Likewise.
54720         * lib/posixver.c: Likewise.
54721         * lib/printf-frexp.c: Likewise.
54722         * lib/printf-frexp.h: Likewise.
54723         * lib/printf-frexpl.c: Likewise.
54724         * lib/printf-frexpl.h: Likewise.
54725         * lib/printf.c: Likewise.
54726         * lib/progname.c: Likewise.
54727         * lib/progname.h: Likewise.
54728         * lib/progreloc.c: Likewise.
54729         * lib/putenv.c: Likewise.
54730         * lib/quote.c: Likewise.
54731         * lib/quote.h: Likewise.
54732         * lib/quotearg.c: Likewise.
54733         * lib/quotearg.h: Likewise.
54734         * lib/raise.c: Likewise.
54735         * lib/readline.c: Likewise.
54736         * lib/readline.h: Likewise.
54737         * lib/readlink.c: Likewise.
54738         * lib/readtokens.c: Likewise.
54739         * lib/readtokens.h: Likewise.
54740         * lib/readtokens0.c: Likewise.
54741         * lib/readtokens0.h: Likewise.
54742         * lib/readutmp.c: Likewise.
54743         * lib/readutmp.h: Likewise.
54744         * lib/realloc.c: Likewise.
54745         * lib/relocwrapper.c: Likewise.
54746         * lib/rename-dest-slash.c: Likewise.
54747         * lib/rename.c: Likewise.
54748         * lib/rmdir.c: Likewise.
54749         * lib/rpmatch.c: Likewise.
54750         * lib/safe-read.c: Likewise.
54751         * lib/safe-read.h: Likewise.
54752         * lib/safe-write.c: Likewise.
54753         * lib/safe-write.h: Likewise.
54754         * lib/same-inode.h: Likewise.
54755         * lib/same.c: Likewise.
54756         * lib/same.h: Likewise.
54757         * lib/save-cwd.c: Likewise.
54758         * lib/save-cwd.h: Likewise.
54759         * lib/savedir.c: Likewise.
54760         * lib/savedir.h: Likewise.
54761         * lib/savewd.c: Likewise.
54762         * lib/savewd.h: Likewise.
54763         * lib/search.in.h: Likewise.
54764         * lib/setenv.c: Likewise.
54765         * lib/setenv.h: Likewise.
54766         * lib/settime.c: Likewise.
54767         * lib/sh-quote.c: Likewise.
54768         * lib/sh-quote.h: Likewise.
54769         * lib/sig2str.c: Likewise.
54770         * lib/sig2str.h: Likewise.
54771         * lib/signal.in.h: Likewise.
54772         * lib/signbitd.c: Likewise.
54773         * lib/signbitf.c: Likewise.
54774         * lib/signbitl.c: Likewise.
54775         * lib/sigprocmask.c: Likewise.
54776         * lib/sincosl.c: Likewise.
54777         * lib/sleep.c: Likewise.
54778         * lib/sprintf.c: Likewise.
54779         * lib/sqrtl.c: Likewise.
54780         * lib/stat-time.h: Likewise.
54781         * lib/stdio--.h: Likewise.
54782         * lib/stdio-safer.h: Likewise.
54783         * lib/stdlib--.h: Likewise.
54784         * lib/stdlib-safer.h: Likewise.
54785         * lib/stdlib.in.h: Likewise.
54786         * lib/stpcpy.c: Likewise.
54787         * lib/stpncpy.c: Likewise.
54788         * lib/strchrnul.c: Likewise.
54789         * lib/strcspn.c: Likewise.
54790         * lib/strerror.c: Likewise.
54791         * lib/strftime.c: Likewise.
54792         * lib/strftime.h: Likewise.
54793         * lib/striconveh.c: Likewise.
54794         * lib/striconveh.h: Likewise.
54795         * lib/striconveha.c: Likewise.
54796         * lib/striconveha.h: Likewise.
54797         * lib/stripslash.c: Likewise.
54798         * lib/strnlen1.c: Likewise.
54799         * lib/strnlen1.h: Likewise.
54800         * lib/strtod.c: Likewise.
54801         * lib/strtoimax.c: Likewise.
54802         * lib/strtok_r.c: Likewise.
54803         * lib/strtol.c: Likewise.
54804         * lib/strtoll.c: Likewise.
54805         * lib/strtoul.c: Likewise.
54806         * lib/strtoull.c: Likewise.
54807         * lib/sysexits.in.h: Likewise.
54808         * lib/tempname.c: Likewise.
54809         * lib/tempname.h: Likewise.
54810         * lib/timespec.h: Likewise.
54811         * lib/tls.c: Likewise.
54812         * lib/tls.h: Likewise.
54813         * lib/tmpdir.c: Likewise.
54814         * lib/tmpdir.h: Likewise.
54815         * lib/tmpfile-safer.c: Likewise.
54816         * lib/tmpfile.c: Likewise.
54817         * lib/trigl.c: Likewise.
54818         * lib/trigl.h: Likewise.
54819         * lib/trim.c: Likewise.
54820         * lib/trim.h: Likewise.
54821         * lib/trunc.c: Likewise.
54822         * lib/truncf.c: Likewise.
54823         * lib/truncl.c: Likewise.
54824         * lib/tsearch.c: Likewise.
54825         * lib/unicodeio.c: Likewise.
54826         * lib/unicodeio.h: Likewise.
54827         * lib/unistd--.h: Likewise.
54828         * lib/unistd-safer.h: Likewise.
54829         * lib/unistdio/ulc-fprintf.c: Likewise.
54830         * lib/unistdio/ulc-vfprintf.c: Likewise.
54831         * lib/unlinkdir.c: Likewise.
54832         * lib/unlinkdir.h: Likewise.
54833         * lib/unlocked-io.h: Likewise.
54834         * lib/unsetenv.c: Likewise.
54835         * lib/userspec.c: Likewise.
54836         * lib/utime.c: Likewise.
54837         * lib/utimecmp.c: Likewise.
54838         * lib/utimecmp.h: Likewise.
54839         * lib/utimens.c: Likewise.
54840         * lib/verify.h: Likewise.
54841         * lib/verror.c: Likewise.
54842         * lib/verror.h: Likewise.
54843         * lib/version-etc-fsf.c: Likewise.
54844         * lib/version-etc.c: Likewise.
54845         * lib/version-etc.h: Likewise.
54846         * lib/vfprintf.c: Likewise.
54847         * lib/vprintf.c: Likewise.
54848         * lib/vsprintf.c: Likewise.
54849         * lib/w32spawn.h: Likewise.
54850         * lib/wait-process.c: Likewise.
54851         * lib/wait-process.h: Likewise.
54852         * lib/wcwidth.c: Likewise.
54853         * lib/write-any-file.c: Likewise.
54854         * lib/xalloc-die.c: Likewise.
54855         * lib/xalloc.h: Likewise.
54856         * lib/xasprintf.c: Likewise.
54857         * lib/xgetcwd.c: Likewise.
54858         * lib/xgetcwd.h: Likewise.
54859         * lib/xgetdomainname.c: Likewise.
54860         * lib/xgetdomainname.h: Likewise.
54861         * lib/xgethostname.c: Likewise.
54862         * lib/xmalloc.c: Likewise.
54863         * lib/xmalloca.c: Likewise.
54864         * lib/xmalloca.h: Likewise.
54865         * lib/xmemcoll.c: Likewise.
54866         * lib/xnanosleep.c: Likewise.
54867         * lib/xreadlink.c: Likewise.
54868         * lib/xreadlink.h: Likewise.
54869         * lib/xsetenv.c: Likewise.
54870         * lib/xsetenv.h: Likewise.
54871         * lib/xstriconv.c: Likewise.
54872         * lib/xstriconv.h: Likewise.
54873         * lib/xstrndup.c: Likewise.
54874         * lib/xstrndup.h: Likewise.
54875         * lib/xstrtod.c: Likewise.
54876         * lib/xstrtod.h: Likewise.
54877         * lib/xstrtol-error.c: Likewise.
54878         * lib/xstrtol.c: Likewise.
54879         * lib/xstrtol.h: Likewise.
54880         * lib/xtime.h: Likewise.
54881         * lib/xvasprintf.c: Likewise.
54882         * lib/xvasprintf.h: Likewise.
54883         * lib/yesno.c: Likewise.
54884         * lib/yesno.h: Likewise.
54885         * posix-modules: Likewise.
54886         * tests/test-alloca-opt.c: Likewise.
54887         * tests/test-arcfour.c: Likewise.
54888         * tests/test-arctwo.c: Likewise.
54889         * tests/test-argmatch.c: Likewise.
54890         * tests/test-argp-2.sh: Likewise.
54891         * tests/test-argp.c: Likewise.
54892         * tests/test-arpa_inet.c: Likewise.
54893         * tests/test-array_list.c: Likewise.
54894         * tests/test-array_oset.c: Likewise.
54895         * tests/test-atexit.c: Likewise.
54896         * tests/test-avltree_list.c: Likewise.
54897         * tests/test-avltree_oset.c: Likewise.
54898         * tests/test-avltreehash_list.c: Likewise.
54899         * tests/test-base64.c: Likewise.
54900         * tests/test-binary-io.c: Likewise.
54901         * tests/test-byteswap.c: Likewise.
54902         * tests/test-c-ctype.c: Likewise.
54903         * tests/test-c-strcasecmp.c: Likewise.
54904         * tests/test-c-strcasestr.c: Likewise.
54905         * tests/test-c-strncasecmp.c: Likewise.
54906         * tests/test-c-strstr.c: Likewise.
54907         * tests/test-canonicalize-lgpl.c: Likewise.
54908         * tests/test-canonicalize.c: Likewise.
54909         * tests/test-carray_list.c: Likewise.
54910         * tests/test-ceilf.c: Likewise.
54911         * tests/test-ceill.c: Likewise.
54912         * tests/test-count-one-bits.c: Likewise.
54913         * tests/test-crc.c: Likewise.
54914         * tests/test-dirname.c: Likewise.
54915         * tests/test-fbufmode.c: Likewise.
54916         * tests/test-fcntl.c: Likewise.
54917         * tests/test-fflush.c: Likewise.
54918         * tests/test-floorf.c: Likewise.
54919         * tests/test-floorl.c: Likewise.
54920         * tests/test-fopen.c: Likewise.
54921         * tests/test-fprintf-posix.c: Likewise.
54922         * tests/test-fprintf-posix.h: Likewise.
54923         * tests/test-fpurge.c: Likewise.
54924         * tests/test-freadable.c: Likewise.
54925         * tests/test-freadahead.c: Likewise.
54926         * tests/test-freading.c: Likewise.
54927         * tests/test-freopen.c: Likewise.
54928         * tests/test-frexp.c: Likewise.
54929         * tests/test-frexpl.c: Likewise.
54930         * tests/test-fseek.c: Likewise.
54931         * tests/test-fseeko.c: Likewise.
54932         * tests/test-fseterr.c: Likewise.
54933         * tests/test-fstrcmp.c: Likewise.
54934         * tests/test-ftell.c: Likewise.
54935         * tests/test-ftello.c: Likewise.
54936         * tests/test-fwritable.c: Likewise.
54937         * tests/test-fwriting.c: Likewise.
54938         * tests/test-getaddrinfo.c: Likewise.
54939         * tests/test-getpass.c: Likewise.
54940         * tests/test-gettimeofday.c: Likewise.
54941         * tests/test-hmac-md5.c: Likewise.
54942         * tests/test-hmac-sha1.c: Likewise.
54943         * tests/test-iconv.c: Likewise.
54944         * tests/test-iconvme.c: Likewise.
54945         * tests/test-inttypes.c: Likewise.
54946         * tests/test-isnan.c: Likewise.
54947         * tests/test-isnanf.c: Likewise.
54948         * tests/test-isnanl-nolibm.c: Likewise.
54949         * tests/test-isnanl.c: Likewise.
54950         * tests/test-isnanl.h: Likewise.
54951         * tests/test-ldexpl.c: Likewise.
54952         * tests/test-linked_list.c: Likewise.
54953         * tests/test-linkedhash_list.c: Likewise.
54954         * tests/test-locale.c: Likewise.
54955         * tests/test-localename.c: Likewise.
54956         * tests/test-lock.c: Likewise.
54957         * tests/test-lseek.c: Likewise.
54958         * tests/test-malloca.c: Likewise.
54959         * tests/test-math.c: Likewise.
54960         * tests/test-mbscasecmp.c: Likewise.
54961         * tests/test-mbscasestr1.c: Likewise.
54962         * tests/test-mbscasestr2.c: Likewise.
54963         * tests/test-mbscasestr3.c: Likewise.
54964         * tests/test-mbscasestr4.c: Likewise.
54965         * tests/test-mbschr.c: Likewise.
54966         * tests/test-mbscspn.c: Likewise.
54967         * tests/test-mbsncasecmp.c: Likewise.
54968         * tests/test-mbspbrk.c: Likewise.
54969         * tests/test-mbspcasecmp.c: Likewise.
54970         * tests/test-mbsrchr.c: Likewise.
54971         * tests/test-mbsspn.c: Likewise.
54972         * tests/test-mbsstr1.c: Likewise.
54973         * tests/test-mbsstr2.c: Likewise.
54974         * tests/test-mbsstr3.c: Likewise.
54975         * tests/test-md5.c: Likewise.
54976         * tests/test-memmem.c: Likewise.
54977         * tests/test-netinet_in.c: Likewise.
54978         * tests/test-open.c: Likewise.
54979         * tests/test-printf-frexp.c: Likewise.
54980         * tests/test-printf-frexpl.c: Likewise.
54981         * tests/test-printf-posix.c: Likewise.
54982         * tests/test-printf-posix.h: Likewise.
54983         * tests/test-rbtree_list.c: Likewise.
54984         * tests/test-rbtree_oset.c: Likewise.
54985         * tests/test-rbtreehash_list.c: Likewise.
54986         * tests/test-read-file.c: Likewise.
54987         * tests/test-rijndael.c: Likewise.
54988         * tests/test-search.c: Likewise.
54989         * tests/test-signbit.c: Likewise.
54990         * tests/test-sleep.c: Likewise.
54991         * tests/test-snprintf-posix.c: Likewise.
54992         * tests/test-snprintf-posix.h: Likewise.
54993         * tests/test-snprintf.c: Likewise.
54994         * tests/test-sprintf-posix.c: Likewise.
54995         * tests/test-sprintf-posix.h: Likewise.
54996         * tests/test-stat-time.c: Likewise.
54997         * tests/test-stdbool.c: Likewise.
54998         * tests/test-stdint.c: Likewise.
54999         * tests/test-stdio.c: Likewise.
55000         * tests/test-stdlib.c: Likewise.
55001         * tests/test-stpncpy.c: Likewise.
55002         * tests/test-strcasestr.c: Likewise.
55003         * tests/test-striconv.c: Likewise.
55004         * tests/test-striconveh.c: Likewise.
55005         * tests/test-striconveha.c: Likewise.
55006         * tests/test-string.c: Likewise.
55007         * tests/test-sys_select.c: Likewise.
55008         * tests/test-sys_socket.c: Likewise.
55009         * tests/test-sys_stat.c: Likewise.
55010         * tests/test-sys_time.c: Likewise.
55011         * tests/test-sysexits.c: Likewise.
55012         * tests/test-time.c: Likewise.
55013         * tests/test-tls.c: Likewise.
55014         * tests/test-trunc.c: Likewise.
55015         * tests/test-truncf.c: Likewise.
55016         * tests/test-truncl.c: Likewise.
55017         * tests/test-unistd.c: Likewise.
55018         * tests/test-vasnprintf-posix.c: Likewise.
55019         * tests/test-vasnprintf-posix2.c: Likewise.
55020         * tests/test-vasnprintf.c: Likewise.
55021         * tests/test-vasprintf-posix.c: Likewise.
55022         * tests/test-vasprintf.c: Likewise.
55023         * tests/test-verify.c: Likewise.
55024         * tests/test-vfprintf-posix.c: Likewise.
55025         * tests/test-vprintf-posix.c: Likewise.
55026         * tests/test-vsnprintf-posix.c: Likewise.
55027         * tests/test-vsnprintf.c: Likewise.
55028         * tests/test-vsprintf-posix.c: Likewise.
55029         * tests/test-wchar.c: Likewise.
55030         * tests/test-wctype.c: Likewise.
55031         * tests/test-wcwidth.c: Likewise.
55032         * tests/test-xstrtol.c: Likewise.
55033         * tests/test-xvasprintf.c: Likewise.
55034         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55035         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55036         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55037         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55038         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55039         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55040         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55041         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55042         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55043         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55044         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55045         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55046         * tests/uniname/test-uninames.c: Likewise.
55047         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55048         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55049         * tests/unistdio/test-u16-printf1.h: Likewise.
55050         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55051         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55052         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55053         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55054         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55055         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55056         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55057         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55058         * tests/unistdio/test-u32-printf1.h: Likewise.
55059         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55060         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55061         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55062         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55063         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55064         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55065         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55066         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55067         * tests/unistdio/test-u8-printf1.h: Likewise.
55068         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55069         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55070         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55071         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55072         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55073         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55074         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55075         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55076         * tests/unistdio/test-ulc-printf1.h: Likewise.
55077         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55078         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55079         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55080         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55081         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55082         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55083         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55084         * tests/uniwidth/test-u16-width.c: Likewise.
55085         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55086         * tests/uniwidth/test-u32-width.c: Likewise.
55087         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55088         * tests/uniwidth/test-u8-width.c: Likewise.
55089         * tests/uniwidth/test-uc_width.c: Likewise.
55090         * config/srclist-update: Likewise.
55091         (fixlicense): Update to GPLv3+.
55092
55093         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55094         * tests/test-tsearch.c: Change copyright notice.
55095
55096         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55097         * lib/c-strcaseeq.h: Change copyright notice.
55098         * lib/streq.h: Likewise.
55099         * lib/uniconv.h: Likewise.
55100         * lib/uniconv/u-conv-from-enc.h: Likewise.
55101         * lib/uniconv/u-conv-to-enc.h: Likewise.
55102         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55103         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55104         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55105         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55106         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55107         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55108         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55109         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55110         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55111         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55112         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55113         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55114         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55115         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55116         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55117         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55118         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55119         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55120         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55121         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55122         * lib/uniname.h: Likewise.
55123         * lib/uniname/uniname.c: Likewise.
55124         * lib/unistdio.h: Likewise.
55125         * lib/unistdio/u-asnprintf.h: Likewise.
55126         * lib/unistdio/u-asprintf.h: Likewise.
55127         * lib/unistdio/u-printf-args.c: Likewise.
55128         * lib/unistdio/u-printf-args.h: Likewise.
55129         * lib/unistdio/u-printf-parse.h: Likewise.
55130         * lib/unistdio/u-snprintf.h: Likewise.
55131         * lib/unistdio/u-sprintf.h: Likewise.
55132         * lib/unistdio/u-vasprintf.h: Likewise.
55133         * lib/unistdio/u-vsnprintf.h: Likewise.
55134         * lib/unistdio/u-vsprintf.h: Likewise.
55135         * lib/unistdio/u16-asnprintf.c: Likewise.
55136         * lib/unistdio/u16-asprintf.c: Likewise.
55137         * lib/unistdio/u16-printf-parse.c: Likewise.
55138         * lib/unistdio/u16-snprintf.c: Likewise.
55139         * lib/unistdio/u16-sprintf.c: Likewise.
55140         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55141         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55142         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55143         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55144         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55145         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55146         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55147         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55148         * lib/unistdio/u16-vasnprintf.c: Likewise.
55149         * lib/unistdio/u16-vasprintf.c: Likewise.
55150         * lib/unistdio/u16-vsnprintf.c: Likewise.
55151         * lib/unistdio/u16-vsprintf.c: Likewise.
55152         * lib/unistdio/u32-asnprintf.c: Likewise.
55153         * lib/unistdio/u32-asprintf.c: Likewise.
55154         * lib/unistdio/u32-printf-parse.c: Likewise.
55155         * lib/unistdio/u32-snprintf.c: Likewise.
55156         * lib/unistdio/u32-sprintf.c: Likewise.
55157         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55158         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55159         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55160         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55161         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55162         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55163         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55164         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55165         * lib/unistdio/u32-vasnprintf.c: Likewise.
55166         * lib/unistdio/u32-vasprintf.c: Likewise.
55167         * lib/unistdio/u32-vsnprintf.c: Likewise.
55168         * lib/unistdio/u32-vsprintf.c: Likewise.
55169         * lib/unistdio/u8-asnprintf.c: Likewise.
55170         * lib/unistdio/u8-asprintf.c: Likewise.
55171         * lib/unistdio/u8-printf-parse.c: Likewise.
55172         * lib/unistdio/u8-snprintf.c: Likewise.
55173         * lib/unistdio/u8-sprintf.c: Likewise.
55174         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55175         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55176         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55177         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55178         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55179         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55180         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55181         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55182         * lib/unistdio/u8-vasnprintf.c: Likewise.
55183         * lib/unistdio/u8-vasprintf.c: Likewise.
55184         * lib/unistdio/u8-vsnprintf.c: Likewise.
55185         * lib/unistdio/u8-vsprintf.c: Likewise.
55186         * lib/unistdio/ulc-asnprintf.c: Likewise.
55187         * lib/unistdio/ulc-asprintf.c: Likewise.
55188         * lib/unistdio/ulc-printf-parse.c: Likewise.
55189         * lib/unistdio/ulc-snprintf.c: Likewise.
55190         * lib/unistdio/ulc-sprintf.c: Likewise.
55191         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55192         * lib/unistdio/ulc-vasprintf.c: Likewise.
55193         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55194         * lib/unistdio/ulc-vsprintf.c: Likewise.
55195         * lib/unistr.h: Likewise.
55196         * lib/unistr/u-cpy-alloc.h: Likewise.
55197         * lib/unistr/u-cpy.h: Likewise.
55198         * lib/unistr/u-endswith.h: Likewise.
55199         * lib/unistr/u-move.h: Likewise.
55200         * lib/unistr/u-set.h: Likewise.
55201         * lib/unistr/u-startswith.h: Likewise.
55202         * lib/unistr/u-stpcpy.h: Likewise.
55203         * lib/unistr/u-stpncpy.h: Likewise.
55204         * lib/unistr/u-strcat.h: Likewise.
55205         * lib/unistr/u-strcpy.h: Likewise.
55206         * lib/unistr/u-strcspn.h: Likewise.
55207         * lib/unistr/u-strdup.h: Likewise.
55208         * lib/unistr/u-strlen.h: Likewise.
55209         * lib/unistr/u-strncat.h: Likewise.
55210         * lib/unistr/u-strncpy.h: Likewise.
55211         * lib/unistr/u-strnlen.h: Likewise.
55212         * lib/unistr/u-strpbrk.h: Likewise.
55213         * lib/unistr/u-strspn.h: Likewise.
55214         * lib/unistr/u-strstr.h: Likewise.
55215         * lib/unistr/u-strtok.h: Likewise.
55216         * lib/unistr/u16-check.c: Likewise.
55217         * lib/unistr/u16-chr.c: Likewise.
55218         * lib/unistr/u16-cmp.c: Likewise.
55219         * lib/unistr/u16-cpy-alloc.c: Likewise.
55220         * lib/unistr/u16-cpy.c: Likewise.
55221         * lib/unistr/u16-endswith.c: Likewise.
55222         * lib/unistr/u16-mblen.c: Likewise.
55223         * lib/unistr/u16-mbsnlen.c: Likewise.
55224         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55225         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55226         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55227         * lib/unistr/u16-mbtouc.c: Likewise.
55228         * lib/unistr/u16-mbtoucr.c: Likewise.
55229         * lib/unistr/u16-move.c: Likewise.
55230         * lib/unistr/u16-next.c: Likewise.
55231         * lib/unistr/u16-prev.c: Likewise.
55232         * lib/unistr/u16-set.c: Likewise.
55233         * lib/unistr/u16-startswith.c: Likewise.
55234         * lib/unistr/u16-stpcpy.c: Likewise.
55235         * lib/unistr/u16-stpncpy.c: Likewise.
55236         * lib/unistr/u16-strcat.c: Likewise.
55237         * lib/unistr/u16-strchr.c: Likewise.
55238         * lib/unistr/u16-strcmp.c: Likewise.
55239         * lib/unistr/u16-strcpy.c: Likewise.
55240         * lib/unistr/u16-strcspn.c: Likewise.
55241         * lib/unistr/u16-strdup.c: Likewise.
55242         * lib/unistr/u16-strlen.c: Likewise.
55243         * lib/unistr/u16-strmblen.c: Likewise.
55244         * lib/unistr/u16-strmbtouc.c: Likewise.
55245         * lib/unistr/u16-strncat.c: Likewise.
55246         * lib/unistr/u16-strncmp.c: Likewise.
55247         * lib/unistr/u16-strncpy.c: Likewise.
55248         * lib/unistr/u16-strnlen.c: Likewise.
55249         * lib/unistr/u16-strpbrk.c: Likewise.
55250         * lib/unistr/u16-strrchr.c: Likewise.
55251         * lib/unistr/u16-strspn.c: Likewise.
55252         * lib/unistr/u16-strstr.c: Likewise.
55253         * lib/unistr/u16-strtok.c: Likewise.
55254         * lib/unistr/u16-to-u32.c: Likewise.
55255         * lib/unistr/u16-to-u8.c: Likewise.
55256         * lib/unistr/u16-uctomb-aux.c: Likewise.
55257         * lib/unistr/u16-uctomb.c: Likewise.
55258         * lib/unistr/u32-check.c: Likewise.
55259         * lib/unistr/u32-chr.c: Likewise.
55260         * lib/unistr/u32-cmp.c: Likewise.
55261         * lib/unistr/u32-cpy-alloc.c: Likewise.
55262         * lib/unistr/u32-cpy.c: Likewise.
55263         * lib/unistr/u32-endswith.c: Likewise.
55264         * lib/unistr/u32-mblen.c: Likewise.
55265         * lib/unistr/u32-mbsnlen.c: Likewise.
55266         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55267         * lib/unistr/u32-mbtouc.c: Likewise.
55268         * lib/unistr/u32-mbtoucr.c: Likewise.
55269         * lib/unistr/u32-move.c: Likewise.
55270         * lib/unistr/u32-next.c: Likewise.
55271         * lib/unistr/u32-prev.c: Likewise.
55272         * lib/unistr/u32-set.c: Likewise.
55273         * lib/unistr/u32-startswith.c: Likewise.
55274         * lib/unistr/u32-stpcpy.c: Likewise.
55275         * lib/unistr/u32-stpncpy.c: Likewise.
55276         * lib/unistr/u32-strcat.c: Likewise.
55277         * lib/unistr/u32-strchr.c: Likewise.
55278         * lib/unistr/u32-strcmp.c: Likewise.
55279         * lib/unistr/u32-strcpy.c: Likewise.
55280         * lib/unistr/u32-strcspn.c: Likewise.
55281         * lib/unistr/u32-strdup.c: Likewise.
55282         * lib/unistr/u32-strlen.c: Likewise.
55283         * lib/unistr/u32-strmblen.c: Likewise.
55284         * lib/unistr/u32-strmbtouc.c: Likewise.
55285         * lib/unistr/u32-strncat.c: Likewise.
55286         * lib/unistr/u32-strncmp.c: Likewise.
55287         * lib/unistr/u32-strncpy.c: Likewise.
55288         * lib/unistr/u32-strnlen.c: Likewise.
55289         * lib/unistr/u32-strpbrk.c: Likewise.
55290         * lib/unistr/u32-strrchr.c: Likewise.
55291         * lib/unistr/u32-strspn.c: Likewise.
55292         * lib/unistr/u32-strstr.c: Likewise.
55293         * lib/unistr/u32-strtok.c: Likewise.
55294         * lib/unistr/u32-to-u16.c: Likewise.
55295         * lib/unistr/u32-to-u8.c: Likewise.
55296         * lib/unistr/u32-uctomb.c: Likewise.
55297         * lib/unistr/u8-check.c: Likewise.
55298         * lib/unistr/u8-chr.c: Likewise.
55299         * lib/unistr/u8-cmp.c: Likewise.
55300         * lib/unistr/u8-cpy-alloc.c: Likewise.
55301         * lib/unistr/u8-cpy.c: Likewise.
55302         * lib/unistr/u8-endswith.c: Likewise.
55303         * lib/unistr/u8-mblen.c: Likewise.
55304         * lib/unistr/u8-mbsnlen.c: Likewise.
55305         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55306         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55307         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55308         * lib/unistr/u8-mbtouc.c: Likewise.
55309         * lib/unistr/u8-mbtoucr.c: Likewise.
55310         * lib/unistr/u8-move.c: Likewise.
55311         * lib/unistr/u8-next.c: Likewise.
55312         * lib/unistr/u8-prev.c: Likewise.
55313         * lib/unistr/u8-set.c: Likewise.
55314         * lib/unistr/u8-startswith.c: Likewise.
55315         * lib/unistr/u8-stpcpy.c: Likewise.
55316         * lib/unistr/u8-stpncpy.c: Likewise.
55317         * lib/unistr/u8-strcat.c: Likewise.
55318         * lib/unistr/u8-strchr.c: Likewise.
55319         * lib/unistr/u8-strcmp.c: Likewise.
55320         * lib/unistr/u8-strcpy.c: Likewise.
55321         * lib/unistr/u8-strcspn.c: Likewise.
55322         * lib/unistr/u8-strdup.c: Likewise.
55323         * lib/unistr/u8-strlen.c: Likewise.
55324         * lib/unistr/u8-strmblen.c: Likewise.
55325         * lib/unistr/u8-strmbtouc.c: Likewise.
55326         * lib/unistr/u8-strncat.c: Likewise.
55327         * lib/unistr/u8-strncmp.c: Likewise.
55328         * lib/unistr/u8-strncpy.c: Likewise.
55329         * lib/unistr/u8-strnlen.c: Likewise.
55330         * lib/unistr/u8-strpbrk.c: Likewise.
55331         * lib/unistr/u8-strrchr.c: Likewise.
55332         * lib/unistr/u8-strspn.c: Likewise.
55333         * lib/unistr/u8-strstr.c: Likewise.
55334         * lib/unistr/u8-strtok.c: Likewise.
55335         * lib/unistr/u8-to-u16.c: Likewise.
55336         * lib/unistr/u8-to-u32.c: Likewise.
55337         * lib/unistr/u8-uctomb-aux.c: Likewise.
55338         * lib/unistr/u8-uctomb.c: Likewise.
55339         * lib/unitypes.h: Likewise.
55340         * lib/uniwidth.h: Likewise.
55341         * lib/uniwidth/cjk.h: Likewise.
55342         * lib/uniwidth/u16-strwidth.c: Likewise.
55343         * lib/uniwidth/u16-width.c: Likewise.
55344         * lib/uniwidth/u32-strwidth.c: Likewise.
55345         * lib/uniwidth/u32-width.c: Likewise.
55346         * lib/uniwidth/u8-strwidth.c: Likewise.
55347         * lib/uniwidth/u8-width.c: Likewise.
55348         * lib/uniwidth/width.c: Likewise.
55349
55350 2007-10-07  Bruno Haible  <bruno@clisp.org>
55351
55352         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55353         The file is still under LGPL (see modules/inttypes).
55354
55355 2007-10-06  Bruno Haible  <bruno@clisp.org>
55356
55357         * modules/trunc (Dependencies): Add 'extensions'.
55358         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55359         Reported by Ben Pfaff <blp@gnu.org>.
55360
55361 2007-10-06  Bruno Haible  <bruno@clisp.org>
55362
55363         * modules/freopen-tests: New file.
55364         * tests/test-freopen.c: New file.
55365
55366         * modules/fopen-tests: New file.
55367         * tests/test-fopen.c: New file.
55368
55369         * modules/fopen: New file.
55370         * lib/fopen.c: New file.
55371         * m4/fopen.m4: New file.
55372         * modules/freopen: New file.
55373         * lib/freopen.c: New file.
55374         * m4/freopen.m4: New file.
55375         * lib/stdio.in.h (fopen, freopen): New declarations.
55376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55377         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55378         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55379         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55380         * doc/functions/fopen.texi: Mention the 'fopen' module.
55381         * doc/functions/freopen.texi: Mention the 'freopen' module.
55382
55383 2007-10-06  Bruno Haible  <bruno@clisp.org>
55384
55385         * modules/open-tests: New file.
55386         * tests/test-open.c: New file.
55387
55388         * modules/open: New file.
55389         * lib/open.c: New file.
55390         * m4/open.m4: New file.
55391         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55392         lib/open.c does.
55393         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55394         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55395         macros.
55396         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55397         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55398         REPLACE_OPEN.
55399         * doc/functions/open.texi: Mention the 'open' module.
55400
55401 2007-10-04  Bruno Haible  <bruno@clisp.org>
55402
55403         * modules/ceill-tests: New file.
55404         * tests/test-ceill.c: New file.
55405
55406         * modules/ceill: New file.
55407         * lib/ceill.c: Replace entire file.
55408         * m4/ceill.m4: New file.
55409         * lib/math.in.h (ceill): Replace declaration.
55410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55411         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55412         * doc/functions/ceill.texi: Mention the 'ceill' module.
55413         * modules/mathl (Files): Remove lib/ceill.c.
55414         (Depends-on): Add ceill.
55415
55416 2007-10-04  Bruno Haible  <bruno@clisp.org>
55417
55418         * modules/ceilf-tests: New file.
55419         * tests/test-ceilf.c: New file.
55420
55421         * modules/ceilf: New file.
55422         * lib/ceil.c: New file.
55423         * lib/ceilf.c: New file.
55424         * m4/ceilf.m4: New file.
55425         * lib/math.in.h (ceilf): New declaration.
55426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55427         HAVE_DECL_CEILF.
55428         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55429         HAVE_DECL_CEILF.
55430         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55431
55432 2007-10-04  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/floorl-tests: New file.
55435         * tests/test-floorl.c: New file.
55436
55437         * modules/floorl: New file.
55438         * lib/floorl.c: Replace entire file.
55439         * m4/floorl.m4: New file.
55440         * lib/math.in.h (floorl): Replace declaration.
55441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55442         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55443         * doc/functions/floorl.texi: Mention the 'floorl' module.
55444         * modules/mathl (Files): Remove lib/floorl.c.
55445         (Depends-on): Add floorl.
55446
55447 2007-10-04  Bruno Haible  <bruno@clisp.org>
55448
55449         * modules/floorf-tests: New file.
55450         * tests/test-floorf.c: New file.
55451
55452         * modules/floorf: New file.
55453         * lib/floor.c: New file.
55454         * lib/floorf.c: New file.
55455         * m4/floorf.m4: New file.
55456         * lib/math.in.h (floorf): New declaration.
55457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55458         HAVE_DECL_FLOORF.
55459         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55460         HAVE_DECL_FLOORF.
55461         * doc/functions/floorf.texi: Mention the 'floorf' module.
55462
55463 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55464             Bruno Haible  <bruno@clisp.org>
55465
55466         Advertise for the Git server instead of the CVS server.
55467         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55468         repository instead of the CVS one.
55469         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55470         about all VCS systems generically.
55471         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55472
55473 2007-10-04  Bruno Haible  <bruno@clisp.org>
55474
55475         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55476         means.
55477         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55478
55479 2007-10-04  Bruno Haible  <bruno@clisp.org>
55480
55481         * modules/truncl-tests: New file.
55482         * tests/test-truncl.c: New file.
55483
55484         * modules/truncl: New file.
55485         * lib/truncl.c: New file.
55486         * m4/truncl.m4: New file.
55487         * lib/math.in.h (truncl): New declaration.
55488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55489         HAVE_DECL_TRUNCL.
55490         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55491         HAVE_DECL_TRUNCL.
55492         * doc/functions/truncl.texi: Mention the 'truncl' module.
55493
55494 2007-10-04  Bruno Haible  <bruno@clisp.org>
55495
55496         * modules/truncf-tests: New file.
55497         * tests/test-truncf.c: New file.
55498
55499         * modules/truncf: New file.
55500         * lib/trunc.c: Make paramerizable through USE_* macros.
55501         * lib/truncf.c: New file.
55502         * m4/truncf.m4: New file.
55503         * lib/math.in.h (truncf): New declaration.
55504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55505         HAVE_DECL_TRUNCF.
55506         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55507         HAVE_DECL_TRUNCF.
55508         * doc/functions/truncf.texi: Mention the 'truncf' module.
55509
55510 2007-10-03  Bruno Haible  <bruno@clisp.org>
55511
55512         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55513         augmentation also for tests modules.
55514         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55515         * modules/atexit-tests (Makefile.am): Likewise.
55516         * modules/binary-io-tests (Makefile.am): Likewise.
55517         * modules/c-strcase-tests (Makefile.am): Likewise.
55518         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55519         * modules/canonicalize-tests (Makefile.am): Likewise.
55520         * modules/closein-tests (Makefile.am): Likewise.
55521         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55522         * modules/freadahead-tests (Makefile.am): Likewise.
55523         * modules/fseek-tests (Makefile.am): Likewise.
55524         * modules/fseeko-tests (Makefile.am): Likewise.
55525         * modules/ftell-tests (Makefile.am): Likewise.
55526         * modules/ftello-tests (Makefile.am): Likewise.
55527         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55528         * modules/isnanl-tests (Makefile.am): Likewise.
55529         * modules/lseek-tests (Makefile.am): Likewise.
55530         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55531         * modules/mbscasestr-tests (Makefile.am): Likewise.
55532         * modules/mbschr-tests (Makefile.am): Likewise.
55533         * modules/mbscspn-tests (Makefile.am): Likewise.
55534         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55535         * modules/mbspbrk-tests (Makefile.am): Likewise.
55536         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55537         * modules/mbsrchr-tests (Makefile.am): Likewise.
55538         * modules/mbsspn-tests (Makefile.am): Likewise.
55539         * modules/mbsstr-tests (Makefile.am): Likewise.
55540         * modules/printf-posix-tests (Makefile.am): Likewise.
55541         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55542         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55543         * modules/tsearch-tests (Makefile.am): Likewise.
55544         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55545         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55546         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55547         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55548         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55549         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55550         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55551         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55552         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55553         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55554         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55555         * modules/xstrtol-tests (Makefile.am): Likewise.
55556         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55557         * modules/yesno-tests (Makefile.am): Likewise.
55558
55559 2007-10-03  Bruno Haible  <bruno@clisp.org>
55560
55561         * modules/trunc-tests: New file.
55562         * tests/test-trunc.c: New file.
55563
55564         * modules/trunc: New file.
55565         * lib/trunc.c: New file.
55566         * m4/trunc.m4: New file.
55567         * lib/math.in.h (trunc): New declaration.
55568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55569         HAVE_DECL_TRUNC.
55570         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55571         HAVE_DECL_TRUNC.
55572         * doc/functions/trunc.texi: Mention the 'trunc' module.
55573
55574 2007-10-03  Bruno Haible  <bruno@clisp.org>
55575
55576         * tests/test-fpending.c: New file, mostly copied
55577         from coreutils/lib/t-fpending.c.
55578         * modules/fpending-tests: New file.
55579
55580 2007-10-03  Bruno Haible  <bruno@clisp.org>
55581
55582         Port the stdio extensions to QNX (untested).
55583         * lib/fseterr.c (fseterr): Add support for QNX.
55584         * lib/fbufmode.c (fbufmode): Likewise.
55585         * lib/freadable.c (freadable): Likewise.
55586         * lib/fwritable.c (fwritable): Likewise.
55587         * lib/freading.c (freading): Likewise.
55588         * lib/fwriting.c (fwriting): Likewise.
55589         * lib/freadahead.c (freadahed): Likewise.
55590         * lib/fpurge.c (fpurge): Likewise.
55591         * lib/fseeko.c (rpl_fseeko): Likewise.
55592
55593 2007-10-03  Bruno Haible  <bruno@clisp.org>
55594             Jim Meyering  <jim@meyering.net>
55595             Eric Blake  <ebb9@byu.net>
55596
55597         * doc/relocatable.texi: Use @command instead of @program.
55598
55599 2007-10-02  Jim Meyering  <jim@meyering.net>
55600
55601         Perform one more "_.h" -> ".in.h" substitution.
55602         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55603         instead of unistd_.h here, too.
55604
55605 2007-10-01  Bruno Haible  <bruno@clisp.org>
55606
55607         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55608         Needed for the alloca-opt module.
55609
55610 2007-09-30  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55613         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55614         alloca_.h.
55615         * lib/argz.in.h: Renamed from lib/argz_.h.
55616         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55617         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55618         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55619         byteswap_.h.
55620         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55621         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55622         dirent_.h.
55623         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55624         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55625         fcntl_.h.
55626         * lib/float.in.h: Renamed from lib/float_.h.
55627         * modules/float (Files, Makefile.am): Use float.in.h instead of
55628         float_.h.
55629         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55630         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55631         fnmatch_.h.
55632         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55633         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55634         getopt_.h.
55635         * lib/glob.in.h: Renamed from lib/glob_.h.
55636         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55637         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55638         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55639         iconv_.h.
55640         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55641         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55642         inttypes_.h.
55643         * lib/locale.in.h: Renamed from lib/locale_.h.
55644         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55645         locale_.h.
55646         * lib/math.in.h: Renamed from lib/math_.h.
55647         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55648         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55649         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55650         of netinet_in_.h. Add dependency.
55651         * lib/poll.in.h: Renamed from lib/poll_.h.
55652         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55653         * lib/search.in.h: Renamed from lib/search_.h.
55654         * modules/search (Files, Makefile.am): Use search.in.h instead of
55655         search_.h.
55656         * lib/signal.in.h: Renamed from lib/signal_.h.
55657         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55658         _signal.h.
55659         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55660         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55661         stdbool_.h.
55662         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55663         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55664         stdint_.h.
55665         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55666         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55667         stdio_.h.
55668         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55669         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55670         stdlib_.h.
55671         * lib/string.in.h: Renamed from lib/string_.h.
55672         * modules/string (Files, Makefile.am): Use string.in.h instead of
55673         string_.h.
55674         * doc/gnulib-tool.texi (Initial import): Update.
55675         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55676         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55677         of sys_select_.h. Add dependency.
55678         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55679         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55680         of sys_socket_.h.
55681         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55682         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55683         sys_stat_.h.
55684         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55685         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55686         sys_time_.h.
55687         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55688         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55689         sysexits_.h.
55690         * lib/time.in.h: Renamed from lib/time_.h.
55691         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55692         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55693         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55694         unistd_.h.
55695         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55696         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55697         wchar_.h.
55698         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55699         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55700         wctype_.h.
55701         * build-aux/bootstrap (slurp): Update.
55702         * lib/.cppi-disable: Update.
55703
55704 2007-09-30  Bruno Haible  <bruno@clisp.org>
55705
55706         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55707         Needed on BeOS.
55708
55709 2007-09-30  Bruno Haible  <bruno@clisp.org>
55710
55711         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55712
55713 2007-09-29  Bruno Haible  <bruno@clisp.org>
55714
55715         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55716
55717 2007-09-29  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55720         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55721         * build-aux/install-reloc: Compile also areadlink.c.
55722         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55723
55724 2007-09-29  Bruno Haible  <bruno@clisp.org>
55725
55726         * gnulib-tool (func_emit_initmacro_done): Indentation.
55727
55728 2007-09-29  Bruno Haible  <bruno@clisp.org>
55729
55730         * README: Add CVS checkout update instructions.
55731         Info from Bob Proulx <bob@proulx.com>.
55732
55733 2007-09-28  Eric Blake  <ebb9@byu.net>
55734
55735         Provide move-if-change.
55736         * build-aux/move-if-change: New file, based on best practice
55737         rather than any canonical upstream location.
55738
55739 2007-09-28  Jim Meyering  <jim@meyering.net>
55740
55741         Fix canonicalize loop-detection corner case.
55742         Do not attempt to stat the symlink values stored via seen_triple.
55743         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55744         on linux-2.6.18, (but not 2.6.22).
55745         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55746         triple_compare.  The former compares dev,ino,filename, while the latter
55747         would actually stat dirname(filename) when dev and ino were equal.
55748         * lib/hash-triple.c: Install <string.h>.
55749         (STREQ): Define.
55750         (triple_compare_ino_str): New function.
55751         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55752
55753 2007-09-28  Eric Blake  <ebb9@byu.net>
55754
55755         Enforce that AC_REPLACE_FUNCS files exist.
55756         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55757         override check for typos.
55758
55759         Fix test-closein on Solaris 10.
55760         * tests/test-closein.c (main): Don't assume stdin can be inherited
55761         closed on all systems.
55762         * tests/test-closein.sh: Likewise.
55763         Reported by Piotr Tarnowski.
55764
55765 2007-09-28  Jim Meyering  <jim@meyering.net>
55766
55767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55768
55769 2007-09-27  Jim Meyering  <jim@meyering.net>
55770
55771         canonicalize: Avoid a false-positive cycle failure.
55772         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55773         Sort.  Remove cycle-check.
55774         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55775         not cycle-check.h.
55776         (seen_triple): New function.
55777         (canonicalize_filename_mode): Use it instead of cycle-check.
55778         * tests/test-canonicalize.c: Add a test for this bug.
55779         * tests/test-canonicalize.sh: Set up and run the test.
55780
55781         New module, file-set, from coreutils.
55782         * modules/file-set: Define it.
55783         * lib/file-set.c, lib/file-set.h: Implement.
55784
55785         New module, hash-triple, from coreutils.
55786         * modules/hash-triple: Define it.
55787         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55788
55789 2007-09-25  Eric Blake  <ebb9@byu.net>
55790
55791         Fix strerror on Interix.
55792         * lib/string_.h (strerror): Declare replacement.
55793         * doc/functions/strerror.texi (strerror): Document the Interix
55794         shortcoming.
55795         * modules/string (Makefile.am): Support new hooks.
55796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55797         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55798         gl_FUNC_STRERROR_SEPARATE.
55799         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55800         * lib/strerror.c (rpl_strerror): Provide replacement.
55801         * modules/strerror (Depends-on): Add string.
55802         (configure.ac): Detect use of module.
55803         * tests/test-strerror.c: New file.
55804         * modules/strerror-tests: New test module.
55805         * modules/argp (Depends-on): Add strerror.
55806         * modules/error (Depends-on): Likewise.
55807         Reported by Martin Koeppe.
55808
55809 2007-09-24  Bruno Haible  <bruno@clisp.org>
55810
55811         * README: Update git instructions.
55812
55813 2007-09-24  Eric Blake  <ebb9@byu.net>
55814
55815         Revert fpending breakage from 2007-09-08.
55816         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55817         __fpending.c.
55818
55819 2007-09-24  Jim Meyering  <jim@meyering.net>
55820
55821         filenamecat.c: Add a test.
55822         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55823         showing how the function works when DIR is the empty string.
55824
55825 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55826
55827         * tests/test-canonicalize.sh: Turn on executable bit.
55828
55829 2007-09-19  Eric Blake  <ebb9@byu.net>
55830
55831         * README: Update CVS instructions.
55832
55833 2007-09-18  Bruno Haible  <bruno@clisp.org>
55834
55835         * modules/areadlink: New file.
55836         * lib/areadlink.h (areadlink): New declaration.
55837         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55838
55839 2007-09-17  Jim Meyering  <jim@meyering.net>
55840
55841         * lib/savewd.c (ESTALE) [!defined]: Define.
55842         Reported to be required on Interix by Martin Koeppe.
55843
55844 2007-09-17  Bruno Haible  <bruno@clisp.org>
55845
55846         * gnulib-tool (func_version): Use $version.
55847
55848 2007-09-16  Bruno Haible  <bruno@clisp.org>
55849
55850         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55851         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55852         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55853         Reported by Greg Schafer <gschafer@zip.com.au>.
55854
55855 2007-09-15  Bruno Haible  <bruno@clisp.org>
55856
55857         * gnulib-tool (sed): Try a little harder to make bash understand the
55858         alias.
55859         Reported by Bruce Korb <bruce.korb@gmail.com>.
55860
55861 2007-09-13  Eric Blake  <ebb9@byu.net>
55862
55863         * ChangeLog: Remove conflict markers.
55864
55865 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55866
55867         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55868         Reported by Bruno Haible <bruno@clisp.org>.
55869
55870 2007-09-12  Bruno Haible  <bruno@clisp.org>
55871
55872         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55873         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55874         is not defined.
55875
55876 2007-09-12  Eric Blake  <ebb9@byu.net>
55877
55878         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55880         Autoconf definition.
55881         * modules/euidaccess (Depends-on): Add extensions, for
55882         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55883         * modules/fnmatch (Depends-on): Likewise.
55884         * modules/getaddrinfo (Depends-on): Likewise.
55885         * modules/getdelim (Depends-on): Likewise.
55886         * modules/getline (Depends-on): Likewise.
55887         * modules/getsubopt (Depends-on): Likewise.
55888         * modules/gettext (Depends-on): Likewise.
55889         * modules/group-member (Depends-on): Likewise.
55890         * modules/mbchar (Depends-on): Likewise.
55891         * modules/memmem (Depends-on): Likewise.
55892         * modules/mempcpy (Depends-on): Likewise.
55893         * modules/memrchr (Depends-on): Likewise.
55894         * modules/pagealign_alloc (Depends-on): Likewise.
55895         * modules/readutmp (Depends-on): Likewise.
55896         * modules/stpcpy (Depends-on): Likewise.
55897         * modules/stpncpy (Depends-on): Likewise.
55898         * modules/strchrnul (Depends-on): Likewise.
55899         * modules/strndup (Depends-on): Likewise.
55900         * modules/strsep (Depends-on): Likewise.
55901         * modules/strverscmp (Depends-on): Likewise.
55902         * modules/vasprintf (Depends-on): Likewise.
55903         * modules/wcwidth (Depends-on): Likewise.
55904         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55905         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55906         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55907         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55908         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55909         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55910         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55911         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55912         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55913         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55914         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55915         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55916         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55917         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55918         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55919         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55920         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55921         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55923         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55924         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55925         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55926         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55927         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55928         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55930         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55931         so that lock.m4 can be used in gettext without extensions module.
55932
55933 2007-09-11  Bruno Haible  <bruno@clisp.org>
55934
55935         * m4/isc-posix.m4: Remove file.
55936         Suggested by Eric Blake.
55937
55938 2007-09-11  Eric Blake  <ebb9@byu.net>
55939
55940         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55941
55942 2007-09-10  Bruno Haible  <bruno@clisp.org>
55943
55944         * posix-modules: Fix typo in error message.
55945         Reported by Matt <mkraai@beckman.com>.
55946
55947 2007-09-09  Bruno Haible  <bruno@clisp.org>
55948
55949         * doc/functions/getdelim.texi: Update list of platforms lacking the
55950         function.
55951         * doc/functions/getline.texi: Likewise.
55952
55953 2007-09-09  Jim Meyering  <jim@meyering.net>
55954
55955         * lib/hash.c (hash_initialize): Detect calloc failure.
55956         Reported by Bruno Haible.
55957
55958 2007-09-09  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55961         malloc or realloc fails.
55962
55963 2007-09-09  Bruno Haible  <bruno@clisp.org>
55964
55965         * modules/getcwd (Depends-on): Add malloc-posix.
55966         * modules/glob (Depends-on): Likewise.
55967         * modules/putenv (Depends-on): Likewise.
55968         * modules/strdup (Depends-on): Likewise.
55969         * modules/getdelim (Depends-on): Add realloc-posix.
55970         * modules/read-file (Depends-on): Likewise.
55971
55972 2007-09-09  Bruno Haible  <bruno@clisp.org>
55973
55974         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55975         (gl_FUNC_MALLOC_POSIX): Require it.
55976         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55977         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55978         * modules/realloc (Files): Add m4/malloc.m4.
55979         * modules/calloc (Files): Likewise.
55980
55981 2007-09-09  Bruno Haible  <bruno@clisp.org>
55982
55983         * modules/malloc-posix: New file.
55984         * modules/malloc (Depends-on): Add malloc-posix.
55985         * lib/malloc.c: Include errno.h.
55986         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55987         and a POSIX-compatible malloc into a single function. Set ENOMEM
55988         when returning NULL.
55989         * m4/malloc.m4: New file.
55990         * doc/functions/malloc.texi: Mention the malloc-posix module.
55991         * lib/stdlib_.h (malloc): New declaration.
55992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55993         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55994         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55995         and HAVE_MALLOC_POSIX.
55996
55997 2007-09-09  Bruno Haible  <bruno@clisp.org>
55998
55999         * modules/realloc-posix: New file.
56000         * modules/realloc (Depends-on): Add realloc-posix.
56001         * lib/realloc.c: Include errno.h.
56002         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56003         and a POSIX-compatible realloc into a single function. Set ENOMEM
56004         when returning NULL.
56005         * m4/realloc.m4: New file.
56006         * doc/functions/realloc.texi: Mention the realloc-posix module.
56007         * lib/stdlib_.h (realloc): New declaration.
56008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56009         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56010         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56011         and HAVE_REALLOC_POSIX.
56012
56013 2007-09-09  Bruno Haible  <bruno@clisp.org>
56014
56015         * modules/calloc-posix: New file.
56016         * modules/calloc (Depends-on): Add calloc-posix.
56017         * lib/calloc.c: Include errno.h.
56018         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56019         and a POSIX-compatible calloc into a single function. Set ENOMEM
56020         when returning NULL.
56021         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56022         * doc/functions/calloc.texi: Mention the calloc-posix module.
56023         * lib/stdlib_.h (calloc): New declaration.
56024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56025         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56026         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56027         and HAVE_CALLOC_POSIX.
56028
56029 2007-09-09  Bruno Haible  <bruno@clisp.org>
56030
56031         Allow for modules to show an arbitrary notice.
56032         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56033         * gnulib-tool: New option --extract-notice.
56034         (func_usage): Document it.
56035         (sed_extract_prog): Update.
56036         (func_get_notice): New function.
56037         (func_modules_notice): New function.
56038         (func_import, func_create_testdir): Invoke it.
56039         Suggested by Jim Meyering.
56040
56041 2007-09-09  Bruno Haible  <bruno@clisp.org>
56042
56043         * gnulib-tool: New options --verbose, --quiet.
56044         (func_usage): Document them.
56045         (verbose): New variable.
56046         (func_execute_command): New function.
56047         (func_import): Don't show the module list and the file list if
56048         $verbose < 0.
56049         (func_create_testdir): Likewise. Use func_execute_command.
56050         (func_create_megatestdir): Use func_execute_command.
56051
56052 2007-09-08  Bruno Haible  <bruno@clisp.org>
56053
56054         * gnulib-tool (func_import): Prefer rsync over wget when available,
56055         for fetching the PO files.
56056
56057 2007-09-08  Bruno Haible  <bruno@clisp.org>
56058
56059         * posix-modules: New file. Portions copied from gnulib-tool.
56060         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56061
56062 2007-09-08  Jim Meyering  <jim@meyering.net>
56063
56064         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56065         * lib/fpending.h: Rename from __fpending.h.
56066         * lib/fpending.c: Rename from __fpending.c.
56067         Include "fpending.h", not "__fpending.h".
56068         * lib/__fpending.h, lib/__fpending.c: Remove files.
56069         * modules/fpending (Files): Reflect new file names.
56070         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56071
56072 2007-09-08  Bruno Haible  <bruno@clisp.org>
56073
56074         * m4/inttypes-h.m4: Remove stub file.
56075
56076 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56077
56078         * doc/headers/stdint.texi: Discuss #include_next issue.
56079
56080 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56081
56082         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56083
56084 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56085
56086         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56087         in variable name.
56088
56089 2007-09-03  Jim Meyering  <jim@meyering.net>
56090
56091         New module: git-version-gen.
56092         * modules/git-version-gen: New file.
56093
56094         Import changes from coreutils for bootstrap script.
56095
56096         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56097
56098         bootstrap: uses rsync to download the .po files
56099         * build-aux/bootstrap (po_download_command_format): New global.
56100         (download_po_files): Use rsync.
56101         (update_po_files): Don't remove .po files after download,
56102         so future rsync runs can take advantage of the copies.
56103
56104         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56105
56106         Solve the unnecessary-.po-file-regeneration problem once and for all.
56107         * build-aux/bootstrap (download_po_files): New function, renamed from
56108         get_translations.  Now, downloads, but doesn't update LINGUAS.
56109         (update_po_files): New function.
56110
56111         bootstrap: Ignore more.
56112         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56113         uniwidth to e.g., lib/.gitignore.
56114         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56115
56116         * build-aux/bootstrap: New setting: vc_ignore.
56117         (insert_sorted_if_absent): Create $file if absent.
56118         Adapt to new, possibly empty, list: $vc_ignore.
56119
56120         bootstrap: generate more ignorable names
56121         * build-aux/bootstrap (slurp): When generating ignorable names,
56122         also map .sin to .sed, .gperf to .c, and .y to .c.
56123
56124 2007-09-03  Jim Meyering  <jim@meyering.net>
56125
56126         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56127         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56128
56129 2007-09-02  Bruno Haible  <bruno@clisp.org>
56130
56131         Fix mis-recognition of 'mcs' on QNX 6.
56132         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56133         output contains the string "Mono".
56134         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56135         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56136
56137 2007-09-01  Bruno Haible  <bruno@clisp.org>
56138
56139         Fix collision between uniwidth/* and linebreak modules.
56140         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56141         u32_width): Remove declarations.
56142         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56143         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56144         streq3, streq2, streq1, streq0): Remove functions.
56145         (STREQ): Remove macro.
56146         (is_cjk_encoding): Remove function.
56147         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56148         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56149         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56150         * NEWS: Document the change.
56151
56152 2007-09-01  Bruno Haible  <bruno@clisp.org>
56153
56154         * lib/streq.h: Add double-inclusion guard.
56155
56156 2007-09-01  Karl Berry  <karl@gnu.org>
56157
56158         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56159
56160 2007-08-28  Jim Meyering  <jim@meyering.net>
56161
56162         Rename mreadlink_with_size to areadlink_with_size.
56163         * NEWS: Document the change.
56164         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56165         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56166         * lib/mreadlink.h: Rename this to...
56167         * lib/areadlink.h: ...this.
56168         * modules/mreadlink-with-size: Rename this to...
56169         * modules/areadlink-with-size: ...this.
56170         * lib/canonicalize.c: Reflect the renaming.
56171         * modules/canonicalize: Likewise.
56172
56173 2007-08-26  Bruno Haible  <bruno@clisp.org>
56174
56175         * gnulib-tool (func_import): When deciding which files to remove,
56176         consider also dangling symbolic links.
56177         Reported by Eric Blake.
56178
56179 2007-08-26  Bruno Haible  <bruno@clisp.org>
56180
56181         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56182
56183 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56184
56185         * lib/readline.c: Don't include getline.h, the prototype is now
56186         found in stdio.h.
56187
56188 2007-08-23  Jim Meyering  <jim@meyering.net>
56189
56190         Getdelim touchup.
56191         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56192         around the funlockfile call, since funlockfile never sets errno.
56193         Don't set errno upon failed realloc.
56194
56195 2007-08-22  Eric Blake  <ebb9@byu.net>
56196
56197         Getline touchups.
56198         * lib/getdelim.c (getdelim): Revert regression that required *n to
56199         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56200         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56201         getdelim, rather than whether implementation is missing.
56202         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56203         * lib/stdio_.h (getline): Also declare if replacement is
56204         required.
56205         * doc/functions/getdelim.texi: New file.
56206         * doc/functions/getline.texi: Likewise.
56207         * doc/gnulib.texi (Function Substitutes): Add new files.
56208         Reported by Bruno Haible.
56209
56210 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56211
56212         * users.txt: Add Guile.
56213
56214 2007-08-22  Eric Blake  <ebb9@byu.net>
56215
56216         * tests/test-getdelim.c (main): Use remove, not unlink.
56217         * tests/test-getline.c (main): Likewise.
56218
56219         Move getline and getdelim into stdio.h, per POSIX 200x.
56220         * modules/getline (Files): Remove getline.h.
56221         (Depends-on): Add stdio.
56222         (configure.ac): Add module indicator.
56223         * modules/getdelim (Files): Remove getdelim.h.
56224         (Depends-on): Add stdio.
56225         (configure.ac): Add module indicator.
56226         * modules/stdio (Makefile.am): Work with new indicators.
56227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56228         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56229         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56230         * lib/getdelim.h: Delete.
56231         * lib/getline.h: Delete.
56232         * lib/stdio_.h (getdelim, getline): Declare.
56233         * modules/getdelim-tests: New module.
56234         * modules/getline-tests: Likewise.
56235         * tests/test-getdelim.c: New file.
56236         * tests/test-getline.c: Likewise.
56237         * NEWS: Document the change.
56238         * lib/getline.c: Update choice of header.
56239         * lib/csharpcomp.c: Likewise.
56240         * lib/getpass.c: Likewise.
56241         * lib/javacomp.c: Likewise.
56242         * lib/javaversion.c: Likewise.
56243         * lib/yesno.c: Likewise.
56244         * lib/getdelim.c: Likewise.
56245         (getdelim): Set errno on failure, and avoid memory leak.
56246
56247 2007-08-19  Bruno Haible  <bruno@clisp.org>
56248
56249         * modules/closein (Depends-on): Add freadahead.
56250         * lib/closein.c: Include freadahead.h.
56251         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56252         is zero.
56253
56254 2007-08-19  Bruno Haible  <bruno@clisp.org>
56255
56256         * modules/freadahead-tests: New file.
56257         * tests/test-freadahead.sh: New file.
56258         * tests/test-freadahead.c: New file.
56259
56260         * modules/freadahead: New file.
56261         * lib/freadahead.h: New file.
56262         * lib/freadahead.c: New file.
56263         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56264         fbufmode, fpurge, freadable, fwritable.
56265
56266 2007-08-19  Eric Blake  <ebb9@byu.net>
56267
56268         Test yesno in combination with closein.
56269         * lib/yesno.c (yesno): Document use of stdin.
56270         * modules/yesno-tests (Files): New module.
56271         * tests/test-yesno.c (main): New file.
56272         * tests/test-yesno.sh: Likewise.
56273
56274 2007-08-19  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56277         * lib/fseeko.c (rpl_fseeko): Likewise.
56278         * lib/fseterr.c (fseterr): Likewise.
56279
56280 2007-08-19  Bruno Haible  <bruno@clisp.org>
56281
56282         * tests/test-lseek.c (main): Disable a test for BeOS.
56283         * doc/functions/lseek.texi: Document the BeOS bug.
56284
56285 2007-08-19  Bruno Haible  <bruno@clisp.org>
56286             Eric Blake  <ebb9@byu.net>
56287
56288         * lib/lseek.c: Include <sys/stat.h>.
56289         (rpl_lseek): Add workaround code also for Unix platforms.
56290         Needed for BeOS.
56291         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56292         * doc/functions/lseek.texi: Document BeOS definiency.
56293
56294 2007-08-18  Bruno Haible  <bruno@clisp.org>
56295
56296         * modules/fstrcmp-tests: New file.
56297         * tests/test-fstrcmp.c: New file.
56298
56299 2007-08-18  Bruno Haible  <bruno@clisp.org>
56300
56301         * modules/fstrcmp: New file, from GNU gettext with modifications.
56302         * lib/fstrcmp.h: New file, from GNU gettext.
56303         * lib/fstrcmp.c: New file, from GNU gettext.
56304         * MODULES.html.sh (String handling): Add fstrcmp.
56305
56306 2007-08-18  Bruno Haible  <bruno@clisp.org>
56307
56308         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56309         'bool'.
56310         (diag, compareseq): Remove const from the ctxt argument.
56311         (USE_HEURISTIC): Undefine at the end.
56312
56313 2007-08-18  Jim Meyering  <jim@meyering.net>
56314
56315         New file: lib/idcache.h
56316         * NEWS: Mention the addition.
56317         * modules/idcache (Files): Add lib/idcache.h
56318         * lib/idcache.c: Include "idcache.h".
56319         Don't include <sys/types.h>.
56320         Add a FIXME comment.
56321         Move file-scoped "static" declarations to the top.
56322         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56323
56324 2007-08-17  Bruno Haible  <bruno@clisp.org>
56325         and Paul Eggert  <eggert@cs.ucla.edu>
56326
56327         * MODULES.html.sh: Add diffseq.
56328         * modules/diffseq: New file.
56329         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56330         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56331
56332 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56333
56334         Import changes from coreutils for bootstrap script.
56335
56336         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * build-aux/bootstrap (slurp): Work even in environments where
56339         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56340         current code does not slurp files whose names start with ".", and
56341         this looks like it might be a troublesome area.
56342
56343         2007-07-11  Jim Meyering  <jim@meyering.net>
56344
56345         If there's a GPL vN copyright comment, require that N == 3.
56346
56347         2007-07-08  Jim Meyering  <jim@meyering.net>
56348
56349         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56350         * build-aux/bootstrap (mam_template): Move definition out of loop.
56351
56352         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56353
56354         * build-aux/bootstrap (symlink_to_dir): Rename function from
56355         symlink_to_gnulib.  Add a directory parameter.  Update all
56356         callers.
56357         (cp_mark_as_generated): Also check for -- and link to -- files in
56358         gl/.
56359
56360         2007-07-08  Jim Meyering  <jim@meyering.net>
56361
56362         Adapt to deeper hierarchy in gnulib.
56363         * build-aux/bootstrap (symlink_to_dir): If the destination
56364         directory doesn't exist, create it. This is required at least for
56365         "lib/uniwidth/cjk.h".
56366
56367         2007-05-15  Jim Meyering  <jim@meyering.net>
56368
56369         * build-aux/bootstrap: Now that generated Makefile.am files
56370         are no longer under version control, they must be created at
56371         bootstrap time.
56372
56373 2007-08-14  Ben Pfaff  <blp@gnu.org>
56374
56375         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56376
56377 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56378
56379         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56380         given the changes below.
56381         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56382         even on hosts that have padding bits beyond the supported 64.
56383
56384 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56385
56386         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56387         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56388         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56389         depends on it.
56390         (xstrtol_error): Remove.
56391         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56392         but with a different signature.
56393         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56394         * lib/xstrtol-error.c: Include exitfail.h.
56395         (xstrtol_fatal): New function, with a different signature from the
56396         old xstrtol_error, so that the caller need not worry about passing
56397         in an exit status, or about storage management of the option argument.
56398         (xstrtol_error): Now a static function.  Redo signature to
56399         implement xstrtol_fatal.  Output the correct number of hyphens in
56400         front of the option so that the caller need not worry about
56401         storage management.
56402         (N_): New macro.
56403         (_): Remove; not used now.
56404         * modules/xstrtol: Depend on getopt.
56405         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56406         of old STRTOL_FATAL_ERROR macro.
56407         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56408         of test program.
56409         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56410         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56411
56412 2007-08-08  Eric Blake  <ebb9@byu.net>
56413
56414         * lib/xstrtol-error.c: Add missing include.
56415
56416         Move xstrtol messages into gnulib domain, when --pobase is used.
56417         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56418         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56419         * modules/xstrtol (Files): Distribute new file.
56420         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56421         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56422         * tests/test-xstrtol.c: ...into new file.
56423         * tests/test-xstrtoul.c: Also test xstrtoul.
56424         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56425         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56426         * tests/test-xstrtol.sh: Drive the tests.
56427         * tests/test-xstrtoimax.sh: Likewise.
56428         * tests/test-xstrtoumax.sh: Likewise.
56429         * modules/xstrtol-tests: New module.
56430         * modules/xstrtoimax-tests: Likewise.
56431         * modules/xstrtoumax-tests: Likewise.
56432
56433 2007-08-08  Jim Meyering  <jim@meyering.net>
56434
56435         New function: mfile_name_concat.
56436         * lib/filenamecat.c (mfile_name_concat): New function, just like
56437         file_name_concat, but return NULL upon failure rather than exiting
56438         with a diagnostic.
56439         * lib/filenamecat.h: Declare it.
56440
56441 2007-08-07  Bruno Haible  <bruno@clisp.org>
56442
56443         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56444         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56445         warning from gcc.
56446         Reported by Eric Blake.
56447
56448 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56449
56450         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56451         * modules/crypto/arcfour (License): Likewise.
56452         * modules/crypto/des-tests (License): Likewise.
56453         * modules/crypto/gc-arctwo-tests (License): Likewise.
56454         * modules/crypto/gc-des-tests (License): Likewise.
56455         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56456         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56457         * modules/crypto/gc-md2-tests (License): Likewise.
56458         * modules/crypto/gc-md4-tests (License): Likewise.
56459         * modules/crypto/gc-md5-tests (License): Likewise.
56460         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56461         * modules/crypto/gc-rijndael-tests (License): Likewise.
56462         * modules/crypto/gc-sha1-tests (License): Likewise.
56463         * modules/crypto/gc-tests (License): Likewise.
56464         * modules/crypto/hmac-md5 (License): Likewise.
56465         * modules/crypto/hmac-sha1 (License): Likewise.
56466         * modules/crypto/md2-tests (License): Likewise.
56467         * modules/crypto/md4-tests (License): Likewise.
56468         * modules/crypto/md5 (License): Likewise.
56469         * modules/crypto/rijndael (License): Likewise.
56470         * modules/crypto/sha1 (License): Likewise.
56471         * modules/memxor (License): Likewise.
56472
56473 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56474         and Bruno Haible  <bruno@clisp.org>
56475
56476         * NEWS: Describe interface changes to human, xstrtol.
56477         * lib/human.h: Include <xstrtol.h>.
56478         (human_options): Return enum strtol_error, not int.  Remove
56479         bool arg; take int * instead.
56480         * lib/human.c: Don't include "gettext.h".
56481         (_): Remove; no longer used.
56482         Don't include <xstrtol.h>, since human.h does it.
56483         (human_options): Adjust to abovementioned interface changes.
56484         Do not report error to stderr; that's now the caller's
56485         responsibility.
56486         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56487         interface change.
56488         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56489         Str, Argument_type_string.  All uses changed.  Put " argument"
56490         in diagnostics to make them clearer.  Change wording of suffix
56491         message for clarity.
56492         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56493         Argument_type_string.
56494         (STRTOL_FATAL_WARN): Remove; no longer used.
56495         * modules/human (Depends-on): Remove gettext-h.
56496
56497 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56498
56499         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56500
56501 2007-07-31  Bruno Haible  <bruno@clisp.org>
56502
56503         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56504         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56505         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56506
56507 2007-07-31  Bruno Haible  <bruno@clisp.org>
56508
56509         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56510         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56511
56512 2007-07-30  Bruno Haible  <bruno@clisp.org>
56513
56514         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56515         * modules/c-ctype (License): Likewise.
56516         * modules/c-strcase (License): Likewise.
56517         * modules/check-version (License): Likewise.
56518         * modules/iconv (License): Likewise.
56519         * modules/iconv_open (License): Likewise.
56520         * modules/read-file (License): Likewise.
56521         * modules/striconv (License): Likewise.
56522         * modules/strverscmp (License): Likewise.
56523         * modules/vasprintf (License): Likewise.
56524         * modules/crypto/des (License): Likewise.
56525         * modules/crypto/gc (License): Likewise.
56526         * modules/crypto/gc-arcfour (License): Likewise.
56527         * modules/crypto/gc-arctwo (License): Likewise.
56528         * modules/crypto/gc-des (License): Likewise.
56529         * modules/crypto/gc-hmac-md5 (License): Likewise.
56530         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56531         * modules/crypto/gc-md2 (License): Likewise.
56532         * modules/crypto/gc-md4 (License): Likewise.
56533         * modules/crypto/gc-md5 (License): Likewise.
56534         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56535         * modules/crypto/gc-random (License): Likewise.
56536         * modules/crypto/gc-rijndael (License): Likewise.
56537         * modules/crypto/gc-sha1 (License): Likewise.
56538         * modules/crypto/md2 (License): Likewise.
56539         * modules/crypto/md4 (License): Likewise.
56540
56541 2007-07-30  Jim Meyering  <jim@meyering.net>
56542
56543         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56544         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56545         it has valid stat data.  This bug would cause du not to count the
56546         sizes of inaccessible directories.
56547         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56548         in <http://bugzilla.redhat.com/250077>.
56549
56550 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56551             Bruno Haible  <bruno@clisp.org>
56552
56553         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56554         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56555         #include_next, gives a diagnostic about it, but reports no error in
56556         the exit code.
56557         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56558
56559 2007-07-24  Ben Pfaff  <blp@gnu.org>
56560
56561         Improve name: "count-one-bits" is better than "popcount".
56562         * MODULES.html.sh: Update name.
56563         * lib/popcount.h: Renamed lib/count-one-bits.h.
56564         (popcount): Renamed count_one_bits.
56565         (popcountl): Renamed count_one_bits_l.
56566         (popcountll): Renamed count_one_bits_ll.
56567         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56568         * modules/popcount: Renamed module/count-one-bits.
56569         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56570         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56571
56572 2007-07-23  Ben Pfaff  <blp@gnu.org>
56573
56574         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56575         better code generation, and add U to large constants to avoid
56576         warnings, in non-GCC case.
56577         Suggested by Bruno Haible.
56578
56579 2007-07-23  Ben Pfaff  <blp@gnu.org>
56580
56581         * lib/popcount.h: Use verify_true instead of if...abort.
56582         * modules/popcount: Depend on verify module.
56583         Suggested by Jim Meyering.
56584
56585 2007-07-23  Bruno Haible  <bruno@clisp.org>
56586
56587         * gnulib-tool (func_import): Create a .cvsignore file also when the
56588         directory is not yet in CVS but the toplevel directory is. When
56589         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56590         Reported by Karl Berry.
56591
56592 2007-07-22  Ben Pfaff  <blp@gnu.org>
56593
56594         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56595         case.
56596         Suggested by Eric Blake.
56597
56598 2007-07-22  Ben Pfaff  <blp@gnu.org>
56599
56600         New module: popcount.
56601         * MODULES.html.sh: Add popcount.
56602         * modules/popcount: New file.
56603         * modules/popcount-tests: New file.
56604         * tests/test-popcount.c: New file.
56605         * lib/popcount.h: New file.
56606         * m4/popcount.m4: New file.
56607
56608 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56609
56610         * build-aux/announce-gen: Update to GPLv3.
56611
56612         * build-aux/config.guess: Update from config.
56613
56614 2007-07-21  Bruno Haible  <bruno@clisp.org>
56615
56616         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56617         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56618
56619 2007-07-20  Jim Meyering  <jim@meyering.net>
56620
56621         * check-module: Diagnose a self-dependency.
56622
56623 2007-07-19  Bruno Haible  <bruno@clisp.org>
56624
56625         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56626         empty.
56627         Reported by Eric Blake.
56628
56629 2007-07-18  Bruno Haible  <bruno@clisp.org>
56630
56631         * gnulib-tool: New options --po-base, --po-domain.
56632         (func_usage): Document them.
56633         (pobase, po_domain): New variables.
56634         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56635         DEFAULT_TEXT_DOMAIN.
56636         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56637         (func_import): Consider pobase and po_domain. Create a po/ directory.
56638         (func_create_testdir): Set pobase and po_domain to empty.
56639         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56640         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56641
56642 2007-07-18  Bruno Haible  <bruno@clisp.org>
56643
56644         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56645         EXTRA_DIST augmentation for files in build-aux/.
56646
56647 2007-07-16  Bruno Haible  <bruno@clisp.org>
56648
56649         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56650         * modules/getdelim (License): Likewise.
56651
56652 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56653
56654         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56655         * modules/d-type (License): Likewise.
56656         * modules/extensions (License): Likewise.
56657         * modules/fnmatch (License): Likewise.
56658         * modules/fseeko (License): Likewise.
56659         * modules/getaddrinfo (License): Likewise.
56660         * modules/getline (License): Likewise.
56661         * modules/getlogin_r (License): Likewise.
56662         * modules/getpass (License): Likewise.
56663         * modules/gettimeofday (License): Likewise.
56664         * modules/glob (License): Likewise.
56665         * modules/inet_ntop (License): Likewise.
56666         * modules/malloc (License): Likewise.
56667         * modules/malloca (License): Likewise.
56668         * modules/memmem (License): Likewise.
56669         * modules/mempcpy (License): Likewise.
56670         * modules/memset (License): Likewise.
56671         * modules/minmax (License): Likewise.
56672         * modules/mktime (License): Likewise.
56673         * modules/netinet_in (License): Likewise.
56674         * modules/pathmax (License): Likewise.
56675         * modules/poll (License): Likewise.
56676         * modules/regex (License): Likewise.
56677         * modules/snprintf (License): Likewise.
56678         * modules/stdbool (License): Likewise.
56679         * modules/stdint (License): Likewise.
56680         * modules/stdio (License): Likewise.
56681         * modules/strcase (License): Likewise.
56682         * modules/strcasestr (License): Likewise.
56683         * modules/strdup (License): Likewise.
56684         * modules/string (License): Likewise.
56685         * modules/strndup (License): Likewise.
56686         * modules/strnlen (License): Likewise.
56687         * modules/strpbrk (License): Likewise.
56688         * modules/strptime (License): Likewise.
56689         * modules/strsep (License): Likewise.
56690         * modules/sys_select (License): Likewise.
56691         * modules/sys_socket (License): Likewise.
56692         * modules/sys_stat (License): Likewise.
56693         * modules/sys_time (License): Likewise.
56694         * modules/time (License): Likewise.
56695         * modules/time_r (License): Likewise.
56696         * modules/timegm (License): Likewise.
56697         * modules/unistd (License): Likewise.
56698         * modules/vsnprintf (License): Likewise.
56699         * modules/wctype (License): Likewise.
56700
56701 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56702
56703         * modules/argz (License): LGPLv2+.
56704
56705 2007-07-15  Karl Berry  <karl@gnu.org>
56706
56707         * doc/gnulib.texi: revise node structure per new fdl.texi.
56708
56709 2007-07-14  Bruno Haible  <bruno@clisp.org>
56710
56711         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56712         the output file.
56713         * lib/uniname/uninames.h: Regenerated.
56714
56715 2007-07-14  Karl Berry  <karl@gnu.org>
56716
56717         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56718         omitting sectioning and index commands.
56719
56720 2007-07-13  Bruno Haible  <bruno@clisp.org>
56721
56722         New gnulib-tool option --more-symlinks.
56723         * gnulib-tool (func_usage): Document --more-symlinks.
56724         (do_copyrights): New variable.
56725         Recognize option --more-symlinks.
56726         (func_import): Don't add a copyright notice transform to
56727         sed_transform_lib_file if do_copyrights is empty.
56728
56729 2007-07-13  Bruno Haible  <bruno@clisp.org>
56730
56731         * lib/vasnprintf.c (decimal_point_char): Define also if
56732         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56733         && !NEED_PRINTF_DIRECTIVE_A.
56734         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56735         Gary V. Vaughan <gary@gnu.org>.
56736
56737 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56738
56739         * lib/inttypes_.h: Undo previous change, since it was fixed
56740         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56741
56742 2007-07-13  Bruno Haible  <bruno@clisp.org>
56743
56744         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56745         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56746
56747 2007-07-13  Jim Meyering  <jim@meyering.net>
56748
56749         df: Don't fail for Tru64's "file-on-file mount".
56750         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56751         so we fall through and use statfs instead.  Details here:
56752         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56753         Reported by Albert Chin.
56754
56755 2007-07-13  Bruno Haible  <bruno@clisp.org>
56756
56757         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56758         * modules/configmake (License): Likewise.
56759         * modules/gettext (License): Likewise.
56760         * modules/gettext-h (License): Likewise.
56761         * modules/include_next (License): Likewise.
56762         * modules/link-warning (License): Likewise.
56763         * modules/localcharset (License): Likewise.
56764         * modules/localename (License): Likewise.
56765         * modules/lock (License): Likewise.
56766         * modules/relocatable-lib-lgpl (License): Likewise.
56767         * modules/size_max (License): Likewise.
56768         * modules/vasnprintf (License): Likewise.
56769         * modules/wchar (License): Likewise.
56770         * modules/xsize (License): Likewise.
56771
56772 2007-07-13  Bruno Haible  <bruno@clisp.org>
56773
56774         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56775         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56776
56777 2007-07-12  Bruno Haible  <bruno@clisp.org>
56778
56779         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56780         in the modules files.
56781
56782 2007-07-11  Karl Berry  <karl@gnu.org>
56783
56784         * MODULES.html.sh (func_module): use
56785          sed -e '\|^'"${includefile}"'$|d'
56786          instead of /.../d, to avoid errors on $includefile's containing /.
56787
56788 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56789
56790         * gnulib-tool (func_import): Avoid duplication of --avoid
56791         statements
56792         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56793         names to `_' in variable names.
56794
56795 2007-07-10  Eric Blake  <ebb9@byu.net>
56796
56797         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56798         * NEWS: Document this change.
56799
56800 2007-07-08  Bruno Haible  <bruno@clisp.org>
56801
56802         Update to Unicode 5.0.
56803         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56804         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56805         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56806         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56807         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56808         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56809         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56810         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56811         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56812         U+10A3F, U+1D242..U+1D244.
56813         (nonspacing_table_ind): Update.
56814         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56815         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56816
56817 2007-07-08  Bruno Haible  <bruno@clisp.org>
56818
56819         Update to Unicode 5.0.
56820         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56821         code transform. Extend the name index field of unicode_name_to_code and
56822         unicode_code_to_name from 16 to 24 bits.
56823         * lib/uniname/uniname.c (unicode_character_name,
56824         unicode_name_character): Add the range 0x12xxx to the code transform.
56825         * lib/uniname/uninames.h: Regenerated.
56826         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56827
56828 2007-07-07  Bruno Haible  <bruno@clisp.org>
56829
56830         * modules/wcwidth-tests: New file.
56831         * tests/test-wcwidth.c: New file.
56832
56833         Work around MacOS X wcwidth() bug.
56834         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56835         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56836         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56837         original wcwidth in non-UTF-8 locales.
56838         * modules/wcwidth (Depends-on): Add localcharset, streq,
56839         uniwidth/width.
56840         * doc/functions/wcwidth.texi: Update.
56841
56842 2007-07-07  Bruno Haible  <bruno@clisp.org>
56843
56844         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56845         (wcwidth): New declaration.
56846         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56847         macros.
56848         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56849         here. Prepare for creating <wchar.h> unconditionally.
56850         * modules/wchar (Depends-on): Add link-warning.
56851         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56852         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56853         * lib/wcwidth.h: Remove file.
56854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56855         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56856         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56857         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56858         (Include): Replace wcwidth.h with <wchar.h>.
56859         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56860         * lib/mbchar.h: Don't include wcwidth.h.
56861         * lib/mbswidth.c: Likewise.
56862         * NEWS: Mention the change.
56863
56864 2007-07-07  Bruno Haible  <bruno@clisp.org>
56865
56866         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56867         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56868         definition with an external declaration.
56869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56870         defined as a function. Remove AC_C_INLINE requirement.
56871         * modules/wcwidth (Files): Add lib/wcwidth.c.
56872         (Makefile.am): Remove redundant statement.
56873
56874 2007-07-07  Bruno Haible  <bruno@clisp.org>
56875
56876         * MODULES.html.sh (Unicode string functions): Add the new modules.
56877
56878         * tests/uniwidth/test-u32-strwidth.c: New file.
56879         * modules/uniwidth/u32-strwidth-tests: New file.
56880
56881         * lib/uniwidth/u32-strwidth.c: New file.
56882         * modules/uniwidth/u32-strwidth: New file.
56883
56884         * tests/uniwidth/test-u16-strwidth.c: New file.
56885         * modules/uniwidth/u16-strwidth-tests: New file.
56886
56887         * lib/uniwidth/u16-strwidth.c: New file.
56888         * modules/uniwidth/u16-strwidth: New file.
56889
56890         * tests/uniwidth/test-u8-strwidth.c: New file.
56891         * modules/uniwidth/u8-strwidth-tests: New file.
56892
56893         * lib/uniwidth/u8-strwidth.c: New file.
56894         * modules/uniwidth/u8-strwidth: New file.
56895
56896         * tests/uniwidth/test-u32-width.c: New file.
56897         * modules/uniwidth/u32-width-tests: New file.
56898
56899         * lib/uniwidth/u32-width.c: New file.
56900         * modules/uniwidth/u32-width: New file.
56901
56902         * tests/uniwidth/test-u16-width.c: New file.
56903         * modules/uniwidth/u16-width-tests: New file.
56904
56905         * lib/uniwidth/u16-width.c: New file.
56906         * modules/uniwidth/u16-width: New file.
56907
56908         * tests/uniwidth/test-u8-width.c: New file.
56909         * modules/uniwidth/u8-width-tests: New file.
56910
56911         * lib/uniwidth/u8-width.c: New file.
56912         * modules/uniwidth/u8-width: New file.
56913
56914         * tests/uniwidth/test-uc_width.c: New file.
56915         * modules/uniwidth/width-tests: New file.
56916
56917         * lib/uniwidth/width.c: New file, from GNU libiconv.
56918         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56919         * modules/uniwidth/width: New file.
56920
56921         * lib/uniwidth.h: New file, from GNU libiconv.
56922         * modules/uniwidth/base: New file.
56923
56924 2007-07-07  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/uniname.h: New file, from GNU gettext.
56927         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56928         * lib/uniname/uninames.h: New file, from GNU gettext.
56929         * lib/uniname/uniname.c: New file, from GNU gettext.
56930         * tests/uniname/test-uninames.sh: New file.
56931         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56932         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56933         * modules/uniname/base: New file.
56934         * modules/uniname/uniname: New file.
56935         * modules/uniname/uniname-tests: New file.
56936         * MODULES.html.sh (Unicode string functions): Add the new modules.
56937
56938 2007-07-06  Bruno Haible  <bruno@clisp.org>
56939
56940         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56941
56942 2007-07-06  Bruno Haible  <bruno@clisp.org>
56943
56944         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56945         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56946         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56947         include <sys/time.h>.
56948         Reported by Eric Blake.
56949
56950 2007-07-06  Eric Blake  <ebb9@byu.net>
56951
56952         Fix testing canonicalize on cygwin.
56953         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56954         Revert patch from 2007-06-19.
56955         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56956         canonicalize module is also in use.
56957         * tests/test-canonicalize.c: New file.
56958         * tests/test-canonicalize.sh: Likewise.
56959         * modules/canonicalize-tests: Likewise.
56960
56961 2007-07-06  Jim Meyering  <jim@meyering.net>
56962
56963         * lib/getugroups.c (getugroups): Detect getgrent failure.
56964         Adjust comment to reflect reality: this function may return -1.
56965
56966 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56967
56968         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56969         the new TP address.
56970         (usage): Fix typo
56971         (gnulib_mk): New variable.
56972
56973 2007-07-05  Jim Meyering  <jim@meyering.net>
56974
56975         Don't let endgrent clobber errno, no matter how improbable.
56976         * lib/getugroups.c (getugroups): Save and restore errno around
56977         endgrent call.
56978
56979         Close the group DB even when failing with 2^31 or more members.
56980         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56981
56982 2007-07-04  Jim Meyering  <jim@meyering.net>
56983
56984         * lib/getugroups.h: New file.
56985         * lib/getugroups.c: Include "getugroups.h".
56986         Remove uses of "register" keyword.
56987         Move local variable, "cp", down into scope where used.
56988         Give "username" parameter the "const" attribute.
56989         * modules/getugroups (Files): Add lib/getugroups.h
56990
56991 2007-07-04  Karl Berry  <karl@gnu.org>
56992
56993         * MODULES.html.sh (func_all_modules): Complete rename of
56994         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56995
56996 2007-07-02  Bruno Haible  <bruno@clisp.org>
56997
56998         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56999         mode, when inttypes.h comes from gnulib.
57000         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57001
57002 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57003
57004         * NEWS: Mention lgpl module name change.
57005
57006         * modules/lgpl-2.1: Renamed from lgpl.
57007
57008         * NEWS: Mention gpl module name change.
57009
57010         * modules/gpl-3.0: New file, based on gpl-2.0.
57011
57012         * modules/gpl-2.0: Renamed from gpl.
57013
57014         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57015         doc/gpl-2.0.texi.
57016
57017 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57018
57019         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57020         #define __STDC_LIMIT_MACROS temporarily while including
57021         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57022         Problem reported by Joel E. Denny in
57023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57024
57025 2007-07-01  Bruno Haible  <bruno@clisp.org>
57026
57027         * lib/unistdio.h: New file.
57028         * lib/unistdio/u-asnprintf.h: New file.
57029         * lib/unistdio/u-asprintf.h: New file.
57030         * lib/unistdio/u-printf-args.c: New file.
57031         * lib/unistdio/u-printf-args.h: New file.
57032         * lib/unistdio/u-printf-parse.h: New file.
57033         * lib/unistdio/u-snprintf.h: New file.
57034         * lib/unistdio/u-sprintf.h: New file.
57035         * lib/unistdio/u-vasprintf.h: New file.
57036         * lib/unistdio/u-vsnprintf.h: New file.
57037         * lib/unistdio/u-vsprintf.h: New file.
57038         * lib/unistdio/ulc-asnprintf.c: New file.
57039         * lib/unistdio/ulc-asprintf.c: New file.
57040         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57041         * lib/unistdio/ulc-printf-parse.c: New file.
57042         * lib/unistdio/ulc-snprintf.c: New file.
57043         * lib/unistdio/ulc-sprintf.c: New file.
57044         * lib/unistdio/ulc-vasnprintf.c: New file.
57045         * lib/unistdio/ulc-vasprintf.c: New file.
57046         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57047         * lib/unistdio/ulc-vsnprintf.c: New file.
57048         * lib/unistdio/ulc-vsprintf.c: New file.
57049         * lib/unistdio/u8-asnprintf.c: New file.
57050         * lib/unistdio/u8-asprintf.c: New file.
57051         * lib/unistdio/u8-printf-parse.c: New file.
57052         * lib/unistdio/u8-snprintf.c: New file.
57053         * lib/unistdio/u8-sprintf.c: New file.
57054         * lib/unistdio/u8-vasnprintf.c: New file.
57055         * lib/unistdio/u8-vasprintf.c: New file.
57056         * lib/unistdio/u8-vsnprintf.c: New file.
57057         * lib/unistdio/u8-vsprintf.c: New file.
57058         * lib/unistdio/u8-u8-asnprintf.c: New file.
57059         * lib/unistdio/u8-u8-asprintf.c: New file.
57060         * lib/unistdio/u8-u8-snprintf.c: New file.
57061         * lib/unistdio/u8-u8-sprintf.c: New file.
57062         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57063         * lib/unistdio/u8-u8-vasprintf.c: New file.
57064         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57065         * lib/unistdio/u8-u8-vsprintf.c: New file.
57066         * lib/unistdio/u16-asnprintf.c: New file.
57067         * lib/unistdio/u16-asprintf.c: New file.
57068         * lib/unistdio/u16-printf-parse.c: New file.
57069         * lib/unistdio/u16-snprintf.c: New file.
57070         * lib/unistdio/u16-sprintf.c: New file.
57071         * lib/unistdio/u16-vasnprintf.c: New file.
57072         * lib/unistdio/u16-vasprintf.c: New file.
57073         * lib/unistdio/u16-vsnprintf.c: New file.
57074         * lib/unistdio/u16-vsprintf.c: New file.
57075         * lib/unistdio/u16-u16-asnprintf.c: New file.
57076         * lib/unistdio/u16-u16-asprintf.c: New file.
57077         * lib/unistdio/u16-u16-snprintf.c: New file.
57078         * lib/unistdio/u16-u16-sprintf.c: New file.
57079         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57080         * lib/unistdio/u16-u16-vasprintf.c: New file.
57081         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57082         * lib/unistdio/u16-u16-vsprintf.c: New file.
57083         * lib/unistdio/u32-asnprintf.c: New file.
57084         * lib/unistdio/u32-asprintf.c: New file.
57085         * lib/unistdio/u32-printf-parse.c: New file.
57086         * lib/unistdio/u32-snprintf.c: New file.
57087         * lib/unistdio/u32-sprintf.c: New file.
57088         * lib/unistdio/u32-vasnprintf.c: New file.
57089         * lib/unistdio/u32-vasprintf.c: New file.
57090         * lib/unistdio/u32-vsnprintf.c: New file.
57091         * lib/unistdio/u32-vsprintf.c: New file.
57092         * lib/unistdio/u32-u32-asnprintf.c: New file.
57093         * lib/unistdio/u32-u32-asprintf.c: New file.
57094         * lib/unistdio/u32-u32-snprintf.c: New file.
57095         * lib/unistdio/u32-u32-sprintf.c: New file.
57096         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57097         * lib/unistdio/u32-u32-vasprintf.c: New file.
57098         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57099         * lib/unistdio/u32-u32-vsprintf.c: New file.
57100         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57101         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57102         * tests/unistdio/test-ulc-printf1.h: New file.
57103         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57104         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57105         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57106         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57107         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57108         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57109         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57110         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57111         * tests/unistdio/test-u8-asnprintf1.c: New file.
57112         * tests/unistdio/test-u8-asnprintf1.h: New file.
57113         * tests/unistdio/test-u8-printf1.h: New file.
57114         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57115         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57116         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57117         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57118         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57119         * tests/unistdio/test-u8-vasprintf1.c: New file.
57120         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57121         * tests/unistdio/test-u8-vsprintf1.c: New file.
57122         * tests/unistdio/test-u16-asnprintf1.c: New file.
57123         * tests/unistdio/test-u16-asnprintf1.h: New file.
57124         * tests/unistdio/test-u16-printf1.h: New file.
57125         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57126         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57127         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57128         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57129         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57130         * tests/unistdio/test-u16-vasprintf1.c: New file.
57131         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57132         * tests/unistdio/test-u16-vsprintf1.c: New file.
57133         * tests/unistdio/test-u32-asnprintf1.c: New file.
57134         * tests/unistdio/test-u32-asnprintf1.h: New file.
57135         * tests/unistdio/test-u32-printf1.h: New file.
57136         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57137         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57138         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57139         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57140         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57141         * tests/unistdio/test-u32-vasprintf1.c: New file.
57142         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57143         * tests/unistdio/test-u32-vsprintf1.c: New file.
57144         * modules/unistdio/base: New file.
57145         * modules/unistdio/u-printf-args: New file.
57146         * modules/unistdio/ulc-asnprintf: New file.
57147         * modules/unistdio/ulc-asprintf: New file.
57148         * modules/unistdio/ulc-fprintf: New file.
57149         * modules/unistdio/ulc-printf-parse: New file.
57150         * modules/unistdio/ulc-snprintf: New file.
57151         * modules/unistdio/ulc-sprintf: New file.
57152         * modules/unistdio/ulc-vasnprintf: New file.
57153         * modules/unistdio/ulc-vasprintf: New file.
57154         * modules/unistdio/ulc-vfprintf: New file.
57155         * modules/unistdio/ulc-vsnprintf: New file.
57156         * modules/unistdio/ulc-vsprintf: New file.
57157         * modules/unistdio/u8-asnprintf: New file.
57158         * modules/unistdio/u8-asprintf: New file.
57159         * modules/unistdio/u8-printf-parse: New file.
57160         * modules/unistdio/u8-snprintf: New file.
57161         * modules/unistdio/u8-sprintf: New file.
57162         * modules/unistdio/u8-vasnprintf: New file.
57163         * modules/unistdio/u8-vasprintf: New file.
57164         * modules/unistdio/u8-vsnprintf: New file.
57165         * modules/unistdio/u8-vsprintf: New file.
57166         * modules/unistdio/u8-u8-asnprintf: New file.
57167         * modules/unistdio/u8-u8-asprintf: New file.
57168         * modules/unistdio/u8-u8-snprintf: New file.
57169         * modules/unistdio/u8-u8-sprintf: New file.
57170         * modules/unistdio/u8-u8-vasnprintf: New file.
57171         * modules/unistdio/u8-u8-vasprintf: New file.
57172         * modules/unistdio/u8-u8-vsnprintf: New file.
57173         * modules/unistdio/u8-u8-vsprintf: New file.
57174         * modules/unistdio/u16-asnprintf: New file.
57175         * modules/unistdio/u16-asprintf: New file.
57176         * modules/unistdio/u16-printf-parse: New file.
57177         * modules/unistdio/u16-snprintf: New file.
57178         * modules/unistdio/u16-sprintf: New file.
57179         * modules/unistdio/u16-vasnprintf: New file.
57180         * modules/unistdio/u16-vasprintf: New file.
57181         * modules/unistdio/u16-vsnprintf: New file.
57182         * modules/unistdio/u16-vsprintf: New file.
57183         * modules/unistdio/u16-u16-asnprintf: New file.
57184         * modules/unistdio/u16-u16-asprintf: New file.
57185         * modules/unistdio/u16-u16-snprintf: New file.
57186         * modules/unistdio/u16-u16-sprintf: New file.
57187         * modules/unistdio/u16-u16-vasnprintf: New file.
57188         * modules/unistdio/u16-u16-vasprintf: New file.
57189         * modules/unistdio/u16-u16-vsnprintf: New file.
57190         * modules/unistdio/u16-u16-vsprintf: New file.
57191         * modules/unistdio/u32-asnprintf: New file.
57192         * modules/unistdio/u32-asprintf: New file.
57193         * modules/unistdio/u32-printf-parse: New file.
57194         * modules/unistdio/u32-snprintf: New file.
57195         * modules/unistdio/u32-sprintf: New file.
57196         * modules/unistdio/u32-vasnprintf: New file.
57197         * modules/unistdio/u32-vasprintf: New file.
57198         * modules/unistdio/u32-vsnprintf: New file.
57199         * modules/unistdio/u32-vsprintf: New file.
57200         * modules/unistdio/u32-u32-asnprintf: New file.
57201         * modules/unistdio/u32-u32-asprintf: New file.
57202         * modules/unistdio/u32-u32-snprintf: New file.
57203         * modules/unistdio/u32-u32-sprintf: New file.
57204         * modules/unistdio/u32-u32-vasnprintf: New file.
57205         * modules/unistdio/u32-u32-vasprintf: New file.
57206         * modules/unistdio/u32-u32-vsnprintf: New file.
57207         * modules/unistdio/u32-u32-vsprintf: New file.
57208         * modules/unistdio/ulc-asnprintf-tests: New file.
57209         * modules/unistdio/ulc-vasnprintf-tests: New file.
57210         * modules/unistdio/ulc-vasprintf-tests: New file.
57211         * modules/unistdio/ulc-vsnprintf-tests: New file.
57212         * modules/unistdio/ulc-vsprintf-tests: New file.
57213         * modules/unistdio/u8-asnprintf-tests: New file.
57214         * modules/unistdio/u8-vasnprintf-tests: New file.
57215         * modules/unistdio/u8-vasprintf-tests: New file.
57216         * modules/unistdio/u8-vsnprintf-tests: New file.
57217         * modules/unistdio/u8-vsprintf-tests: New file.
57218         * modules/unistdio/u16-asnprintf-tests: New file.
57219         * modules/unistdio/u16-vasnprintf-tests: New file.
57220         * modules/unistdio/u16-vasprintf-tests: New file.
57221         * modules/unistdio/u16-vsnprintf-tests: New file.
57222         * modules/unistdio/u16-vsprintf-tests: New file.
57223         * modules/unistdio/u32-asnprintf-tests: New file.
57224         * modules/unistdio/u32-vasnprintf-tests: New file.
57225         * modules/unistdio/u32-vasprintf-tests: New file.
57226         * modules/unistdio/u32-vsnprintf-tests: New file.
57227         * modules/unistdio/u32-vsprintf-tests: New file.
57228         * MODULES.html.sh (Unicode string functions): Add the new modules.
57229
57230 2007-07-01  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/sprintf.c (sprintf): Limit the available length estimation,
57233         to avoid address wraparound.
57234         * lib/vsprintf.c (vsprintf): Likewise.
57235         * modules/sprintf-posix (Dependencies): Add stdint.
57236         * modules/vsprintf-posix (Dependencies): Likewise.
57237
57238 2007-07-01  Bruno Haible  <bruno@clisp.org>
57239
57240         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57241         Windows PATH as well. Conservative double-quoting. Comments.
57242
57243 2007-07-01  Bruno Haible  <bruno@clisp.org>
57244             Eric Blake  <ebb9@byu.net>
57245             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57246
57247         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57248         empty components in $PATH, denoting '.'.
57249
57250 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57251
57252         * gnulib-tool: Fix indentation.
57253         (func_create_megatestdir): Likewise.
57254         Report by Bruno Haible.
57255
57256 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57257
57258         Sync from Automake.
57259         * build-aux/gnupload: Fix shell portability issues with for loops.
57260         Report by Karl Berry.
57261
57262 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57263
57264         * build-aux/maint.mk (POURL): Use translationproject.org.
57265
57266 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57267             Bruno Haible  <bruno@clisp.org>
57268
57269         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57270         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57271         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57272         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57273         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57274
57275 2007-06-27  Bruno Haible  <bruno@clisp.org>
57276
57277         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57278         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57279
57280 2007-06-26  Karl Berry  <karl@gnu.org>
57281
57282         * MODULES.html.sh: remove xreadlink-with-size.
57283
57284 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57285
57286         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57287         method that I hope also handles the double-include problem noted
57288         by Bruno Haible in
57289         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57290
57291 2007-06-23  Bruno Haible  <bruno@clisp.org>
57292
57293         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57294         Don't let the 'mostlyclean' target fail if the last subdirectory could
57295         not be removed.
57296         Reported by Karl Berry.
57297
57298 2007-06-23  Bruno Haible  <bruno@clisp.org>
57299
57300         * gnulib-tool (echo): Add a speedier workaround for ksh.
57301         * tests/test-echo.sh: Likewise.
57302
57303 2007-06-23  Bruno Haible  <bruno@clisp.org>
57304
57305         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57306         * tests/test-echo.sh: Likewise.
57307
57308 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57309
57310         * gnulib-tool (IFS): Initialize early, so we don't set it to
57311         empty later.
57312         (self_abspathname): Rewrite algorithm to set it, reindent.
57313         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57314         (func_create_megatestdir): Merge some sed scripts.
57315
57316 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57317
57318         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57319         exposed by Sun Studio 11 cc on Solaris 8.
57320
57321 2007-06-22  Bruno Haible  <bruno@clisp.org>
57322
57323         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57324         backslashes.
57325         * tests/test-echo.sh: New file.
57326
57327 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57328
57329         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57330         simplify `sed_replace_build_aux' scripts, they are portable but
57331         echoing them with `echo' is not.
57332         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57333
57334 2007-06-21  Karl Berry  <karl@gnu.org>
57335
57336         * config/srclist.txt: guess we can't handle the licenses via
57337         srclist at the moment.
57338
57339 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57340
57341         * MODULES.html.sh: Add include_next.
57342         * modules/include_next: New file.
57343
57344 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57345
57346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57347         INCLUDE_NEXT.
57348         (gl_CHECK_NEXT_HEADERS): New macro.
57349         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57350         the obsolescent gl_ABSOLUTE_HEADER.
57351         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57352         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57353         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57354         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57355         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57356         * m4/math_h.m4 (gl_MATH_H): Likewise.
57357         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57358         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57359         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57360         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57361         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57362         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57363         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57365         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57366         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57368         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57369         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57370         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57371         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57372         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57373         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57374         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57375         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57376         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57377         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57378         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57379         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57380         * lib/float_.h: Likewise.
57381         * lib/inttypes_.h: Likewise.
57382         * lib/math_.h: Likewise.
57383         * lib/search_.h: Likewise.
57384         * lib/signal_.h: Likewise.
57385         * lib/stdint_.h: Likewise.
57386         * lib/stdio_.h: Likewise.
57387         * lib/stdlib_.h: Likewise.
57388         * lib/string_.h: Likewise.
57389         * lib/sys_stat_.h: Likewise.
57390         * lib/sys_time_.h: Likewise.
57391         * lib/time_.h: Likewise.
57392         * lib/unistd_.h: Likewise.
57393         * lib/wchar_.h: Likewise.
57394         * lib/wctype_.h: Likewise.
57395         * lib/dirent_.h: Likewise.
57396         * lib/iconv_.h: Likewise.
57397         * lib/locale_.h: Likewise.
57398         * lib/netinet_in_.h: Likewise.
57399         * lib/sys_select_.h: Likewise.
57400         * lib/sys_socket_.h: Likewise.
57401         * lib/sysexits_.h: Likewise.
57402         * modules/fcntl (Depends-on): Depend on include_next, not
57403         absolute_header.
57404         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57405         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57406         * modules/fchdir: Likewise.
57407         * modules/float: Likewise.
57408         * modules/iconv_open: Likewise.
57409         * modules/inttypes: Likewise.
57410         * modules/locale: Likewise.
57411         * modules/math: Likewise.
57412         * modules/netinet_in: Likewise.
57413         * modules/search: Likewise.
57414         * modules/signal: Likewise.
57415         * modules/stdint: Likewise.
57416         * modules/stdio: Likewise.
57417         * modules/stdlib: Likewise.
57418         * modules/string: Likewise.
57419         * modules/sys_select: Likewise.
57420         * modules/sys_socket: Likewise.
57421         * modules/sys_stat: Likewise.
57422         * modules/sys_time: Likewise.
57423         * modules/sysexits: Likewise.
57424         * modules/time: Likewise.
57425         * modules/unistd: Likewise.
57426         * modules/wchar: Likewise.
57427         * modules/wctype: Likewise.
57428         * modules/sys_stat: Change maintainer to "all".
57429         * modules/unistd: Likewise.
57430
57431 2007-06-20  Karl Berry  <karl@gnu.org>
57432
57433         * config/srclist.txt: track www changes in license files.
57434
57435 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57436
57437         * build-aux/bootstrap: Remove stray dot.
57438         Make sure build_aux settings are honored when linking
57439         gnulib_extra_files.
57440
57441 2007-06-19  Eric Blake  <ebb9@byu.net>
57442
57443         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57444         Allow compilation on cygwin.
57445
57446 2007-06-19  Jim Meyering  <jim@meyering.net>
57447
57448         xreadlink-with-size: Remove module.  No longer used.
57449         Ex-callers now use xreadlink or mreadlink-with-size.
57450         * modules/xreadlink-with-size: Remove module.
57451         * lib/xreadlink-with-size.c: Remove file.
57452         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57453         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57454         just before the function definition *is* accurate.
57455
57456         Eliminate one way canonicalize_filename_mode could exit.
57457         * lib/canonicalize.c (canonicalize_filename_mode):
57458         Use mreadlink_with_size, not xreadlink_with_size.
57459
57460 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57461
57462         Detect porting problems to FreeBSD/arm, which has time_t wider than
57463         long int.  Original problem reported for GNU diff by Xin Li in
57464         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57465         * modules/getdate (Depends-on): Add intprops, verify.
57466         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57467         is an integer type no wider than long int.
57468
57469 2007-06-18  Jim Meyering  <jim@meyering.net>
57470
57471         New module: mreadlink-with-size.
57472         * MODULES.html.sh: Add mreadlink-with-size.
57473         * modules/mreadlink-with-size: New module
57474         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57475         not xreadlink-with-size.
57476         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57477
57478 2007-06-16  Bruno Haible  <bruno@clisp.org>
57479
57480         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57481         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57482         Reported by Gary V. Vaughan <gary@gnu.org>.
57483
57484 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57485
57486         Revamp lchown so that it lives in unistd.h where it belongs.
57487         * lib/lchown.h: Remove.
57488         * lib/dirchownmod.c: Don't include lib/lchown.h.
57489         * lib/fchownat.c: Likewise.
57490         * lib/openat.c: Likewise.
57491         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57492         does not follow symlinks.
57493         (EOPNOTSUPP): Define if not defined.
57494         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57495         is defined to 0.
57496         (lchown): New decl.
57497         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57498         Do not check for lchown decl.
57499         Set REPLACE_LCHOWN.
57500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57501         REPLACE_LCHOWN.
57502         * modules/chown: Make it clear it follows symlinks.
57503         * modules/lchown: Make it clear it doesn't follow symlinks.
57504         (Files): Remove lib/lchown.h
57505         (Depends-on): Add unistd.
57506         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57507         (Include): Include <unistd.h>, not "lchown.h".
57508         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57509         REPLACE_LCHOWN.
57510
57511 2007-06-15  Jim Meyering  <jim@meyering.net>
57512
57513         Change license (GPL to LGPL) of fsusage and dependents.
57514         * modules/fsusage (License): Change to LGPL.
57515         * modules/full-read (License): Likewise.
57516         * modules/full-write (License): Likewise.
57517         * modules/safe-read (License): Likewise.
57518         * modules/safe-write (License): Likewise.
57519
57520 2007-06-14  Ben Pfaff  <blp@gnu.org>
57521
57522         Missing part of allocsa -> malloca transition.
57523         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57524         gl_MALLOCA.
57525
57526 2007-06-12  Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57529         to ia64, x86_64, i386.
57530         Reported by Eric Blake.
57531
57532 2007-06-12  Bruno Haible  <bruno@clisp.org>
57533
57534         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57535         cross-compiling to x86_64.
57536
57537 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57538
57539         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57540         glitch reported by Ralf Wildenhues in
57541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57542
57543         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57544         Vin Shelton.
57545
57546 2007-06-11  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57549         replacement string.
57550         Reported by Eric Blake.
57551
57552 2007-06-10  Bruno Haible  <bruno@clisp.org>
57553
57554         Prepare vasnprintf code for use with Unicode strings.
57555         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57556         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57557         TYPE_U32_STRING.
57558         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57559         a_u32_string variants.
57560         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57561         * lib/printf-args.c: Don't include config.h and the specification
57562         header if PRINTF_FETCHARGS is already defined.
57563         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57564         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57565         TYPE_U16_STRING, TYPE_U32_STRING.
57566         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57567         u16_directive, u16_directives, u32_directive, u32_directives): New
57568         types.
57569         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57570         New declarations.
57571         * lib/printf-parse.c: Don't include config.h and the specification
57572         header if PRINTF_PARSE is already defined. Eliminate the set of
57573         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57574         them now. Include c-ctype.h.
57575         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57576         directive and CHAR_T_ONLY_ASCII.
57577         * lib/vasnprintf.c: Don't include config.h and the specification header
57578         if VASNPRINTF is already defined.
57579         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57580         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57581         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57582         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57583         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57584         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57585         code accordingly.
57586         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57587         pad_ourselves also in this case, with the 'c' and 's' directives, and
57588         with a different notion of "width".
57589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57590
57591 2007-06-10  Bruno Haible  <bruno@clisp.org>
57592
57593         * modules/unistr/u32-mbsnlen: New file.
57594         * lib/unistr/u32-mbsnlen.c: New file.
57595
57596         * modules/unistr/u16-mbsnlen: New file.
57597         * lib/unistr/u16-mbsnlen.c: New file.
57598
57599         * modules/unistr/u8-mbsnlen: New file.
57600         * lib/unistr/u8-mbsnlen.c: New file.
57601
57602         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57603         declarations.
57604
57605 2007-06-10  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/string_.h (mbsnlen): New declaration.
57608         * lib/mbsnlen.c: New file.
57609         * m4/mbsnlen.m4: New file.
57610         * modules/mbsnlen: New file.
57611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57612         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57613         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57614
57615 2007-06-10  Bruno Haible  <bruno@clisp.org>
57616
57617         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57618
57619 2007-06-10  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57622         * lib/mbuiter.h: Likewise.
57623
57624 2007-06-10  Bruno Haible  <bruno@clisp.org>
57625
57626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57627         declaration.
57628
57629 2007-06-10  Karl Berry  <karl@gnu.org>
57630
57631         * config/srclist.txt: remove gettext entries, Bruno prefers
57632         to update individually.
57633
57634 2007-06-10  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57637         'maxlen'. Ensure only length + width bytes are allocated, not
57638         length + 1 + width.
57639
57640 2007-06-09  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57643         (CHAR_T): Remove macro.
57644         (VASNPRINTF): Update.
57645
57646 2007-06-09  Bruno Haible  <bruno@clisp.org>
57647
57648         * MODULES.html.sh (Unicode string functions): Add the new modules.
57649
57650         * modules/uniconv/u32-conv-to-enc: New file.
57651         * lib/uniconv/u32-conv-to-enc.c: New file.
57652         * modules/uniconv/u32-conv-to-enc-tests: New file.
57653         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57654
57655         * modules/uniconv/u16-conv-to-enc: New file.
57656         * lib/uniconv/u16-conv-to-enc.c: New file.
57657         * lib/uniconv/u-conv-to-enc.h: New file.
57658         * modules/uniconv/u16-conv-to-enc-tests: New file.
57659         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57660
57661         * modules/uniconv/u8-conv-to-enc: New file.
57662         * lib/uniconv/u8-conv-to-enc.c: New file.
57663         * modules/uniconv/u8-conv-to-enc-tests: New file.
57664         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57665
57666         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57667         u32_conv_to_encoding): New declarations.
57668
57669 2007-06-09  Bruno Haible  <bruno@clisp.org>
57670
57671         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57672
57673 2007-06-09  Bruno Haible  <bruno@clisp.org>
57674
57675         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57676         * modules/malloca: Renamed from modules/allocsa, updated.
57677         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57678         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57679         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57680         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57681         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57682         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57683         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57684         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57685         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57686         * modules/c-strcasestr (Depends-on): Update.
57687         * lib/c-strcasestr.c: Update.
57688         * modules/c-strstr (Depends-on): Update.
57689         * lib/c-strstr.c: Update.
57690         * modules/canonicalize-lgpl (Depends-on): Update.
57691         * lib/canonicalize-lgpl.c: Update.
57692         * modules/clean-temp (Depends-on): Update.
57693         * lib/clean-temp.c: Update.
57694         * modules/csharpcomp (Depends-on): Update.
57695         * lib/csharpcomp.c: Update.
57696         * modules/csharpexec (Depends-on): Update.
57697         * lib/csharpexec.c: Update.
57698         * modules/javacomp (Depends-on): Update.
57699         * lib/javacomp.c: Update.
57700         * modules/javaexec (Depends-on): Update.
57701         * lib/javaexec.c: Update.
57702         * modules/mbscasestr (Depends-on): Update.
57703         * lib/mbscasestr.c: Update.
57704         * modules/mbsstr (Depends-on): Update.
57705         * lib/mbsstr.c: Update.
57706         * modules/setenv (Depends-on): Update.
57707         * lib/setenv.c: Update.
57708         * modules/strcasestr (Depends-on): Update.
57709         * lib/strcasestr.c: Update.
57710         * modules/striconveha (Depends-on): Update.
57711         * lib/striconveha.c: Update.
57712         * modules/relocatable-prog-wrapper (Files): Update.
57713         * lib/relocwrapper.c: Update.
57714         * build-aux/install-reloc: Update.
57715         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57716
57717 2007-06-08  Bruno Haible  <bruno@clisp.org>
57718
57719         Port to uClibc.
57720         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57721         * lib/fpurge.c (fpurge): Likewise.
57722         * lib/freading.c (freading): Likewise.
57723         * lib/fseeko.c (rpl_fseeko): Likewise.
57724         * lib/fseterr.c (fseterr): Likewise.
57725         * lib/fwriting.c (fwriting): Likewise.
57726         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57727
57728 2007-06-08  Bruno Haible  <bruno@clisp.org>
57729
57730         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57731         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57732         * modules/gettext (Files): Add m4/intlmacosx.m4.
57733
57734 2007-06-07  Bruno Haible  <bruno@clisp.org>
57735
57736         * modules/localename-tests: New file.
57737         * tests/test-localename.c: New file.
57738
57739         New module 'localename'.
57740         * lib/localename.h: New file.
57741         * lib/localename.c: New file, from GNU gettext.
57742         * m4/localename.m4: New file.
57743         * modules/localename: New file.
57744
57745 2007-06-07  Bruno Haible  <bruno@clisp.org>
57746
57747         Work around the lack of <wchar.h> on some builds of uClibc.
57748         * doc/headers/wchar.texi: Update.
57749         * lib/wchar_.h: Include <wchar.h> only if it exists.
57750         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57751         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57752         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57753         doesn't exist.
57754         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57755         * modules/mbfile (Depends-on): Add wchar.
57756         * modules/mbiter (Depends-on): Likewise.
57757         * modules/mbuiter (Depends-on): Likewise.
57758         Reported by Simon Josefsson.
57759
57760 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57761
57762         Work around problem reported by Steven M. Schweda in
57763         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57764         Tru64 5.1B with the Compaq compiler environment installed declares
57765         an 'isblank' function but does not define it in the C library.
57766         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57767         * lib/regex_internal.h (isblank): Likewise.
57768         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57769         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57770
57771 2007-06-05  Bruno Haible  <bruno@clisp.org>
57772
57773         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57774         ia64.
57775         * modules/printf-safe: New file.
57776         * modules/fprintf-posix (Depends-on): Add printf-safe.
57777         * modules/printf-posix (Depends-on): Likewise.
57778         * modules/snprintf-posix (Depends-on): Likewise.
57779         * modules/sprintf-posix (Depends-on): Likewise.
57780         * modules/vasnprintf-posix (Depends-on): Likewise.
57781         * modules/vasprintf-posix (Depends-on): Likewise.
57782         * modules/vfprintf-posix (Depends-on): Likewise.
57783         * modules/vprintf-posix (Depends-on): Likewise.
57784         * modules/vsnprintf-posix (Depends-on): Likewise.
57785         * modules/vsprintf-posix (Depends-on): Likewise.
57786         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57787         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57788         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57789         "no" on i386, x86_64, ia64.
57790         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57791         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57792         on i386, x86_64, ia64.
57793         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57794         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57795         on i386, x86_64, ia64.
57796         * tests/test-vasnprintf-posix.c: Include float.h.
57797         (LDBL80_WORDS): New macro.
57798         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57799         on i386, x86_64, ia64.
57800         * tests/test-vasprintf-posix.c: Include float.h.
57801         (LDBL80_WORDS): New macro.
57802         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57803         on i386, x86_64, ia64.
57804         * tests/test-snprintf-posix.c: Include float.h.
57805         * tests/test-sprintf-posix.c: Likewise.
57806         * tests/test-vsnprintf-posix.c: Likewise.
57807         * tests/test-vsprintf-posix.c: Likewise.
57808
57809 2007-06-05  Bruno Haible  <bruno@clisp.org>
57810
57811         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57812         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57813         non-IEEE numbers on i386, x86_64, ia64.
57814         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57815         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57816         * tests/test-isnanl.h: Include float.h.
57817         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57818
57819 2007-06-05  Bruno Haible  <bruno@clisp.org>
57820
57821         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57822         also the %a / %A. Handle the %a / %A code before this extra handling.
57823
57824 2007-06-05  Bruno Haible  <bruno@clisp.org>
57825
57826         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57827         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57828
57829 2007-06-05  Bruno Haible  <bruno@clisp.org>
57830
57831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57832         typo in variable name.
57833
57834 2007-06-05  Eric Blake  <ebb9@byu.net>
57835
57836         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57837         Reported by Simon Josefsson.
57838
57839 2007-06-04  Bruno Haible  <bruno@clisp.org>
57840
57841         Avoid test failures on some PowerPC platforms.
57842         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57843         Define differently for PowerPC.
57844         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57845         Reported by Gary V. Vaughan <gary@gnu.org>.
57846
57847 2007-06-02  Bruno Haible  <bruno@clisp.org>
57848
57849         Fix test-stdint failure on FreeBSD/ia64.
57850         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57851         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57852         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57853         * doc/headers/stdint.texi: Update.
57854
57855 2007-06-01  Bruno Haible  <bruno@clisp.org>
57856
57857         * tests/test-binary-io.c (main): Pass a third argument to open().
57858         Reported by Gary V. Vaughan <gary@gnu.org>.
57859
57860 2007-06-01  Bruno Haible  <bruno@clisp.org>
57861
57862         * doc/functions/frexpl.texi: Update for mingw.
57863
57864 2007-06-01  Bruno Haible  <bruno@clisp.org>
57865
57866         * tests/test-lseek.c (main): Disable test of errno for invalid third
57867         argument.
57868         * doc/functions/lseek.texi: Update.
57869         Reported by Gary V. Vaughan <gary@gnu.org>.
57870
57871 2007-05-28  Bruno Haible  <bruno@clisp.org>
57872
57873         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57874
57875 2007-05-31  Eric Blake  <ebb9@byu.net>
57876
57877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57878         cross compiling.
57879
57880 2007-05-30  Eric Blake  <ebb9@byu.net>
57881         and Bruno Haible  <bruno@clisp.org>
57882
57883         Work around mingw test failures exposed by m4-1.4.9b.
57884         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57885         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57886         moment.
57887
57888 2007-05-30  Bruno Haible  <bruno@clisp.org>
57889
57890         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57891         assuming that they are closed. Needed on HP-UX 11.
57892
57893 2007-05-29  Bruno Haible  <bruno@clisp.org>
57894
57895         Fix a problem with #include_next.
57896         * lib/dirent_.h: Split the double-inclusion guard.
57897         * lib/fcntl_.h: Likewise.
57898         * lib/float_.h: Likewise.
57899         * lib/iconv_.h: Likewise.
57900         * lib/inttypes_.h: Likewise.
57901         * lib/locale_.h: Likewise.
57902         * lib/math_.h: Likewise.
57903         * lib/netinet_in_.h: Likewise.
57904         * lib/search_.h: Likewise.
57905         * lib/signal_.h: Likewise.
57906         * lib/stdint_.h: Likewise.
57907         * lib/stdio_.h: Likewise.
57908         * lib/stdlib_.h: Likewise.
57909         * lib/string_.h: Likewise.
57910         * lib/sys_select_.h: Likewise.
57911         * lib/sys_socket_.h: Likewise.
57912         * lib/sys_stat_.h: Likewise.
57913         * lib/sys_time_.h: Likewise.
57914         * lib/sysexits_.h: Likewise.
57915         * lib/time_.h: Likewise.
57916         * lib/unistd_.h: Likewise.
57917         * lib/wchar_.h: Likewise.
57918         * lib/wctype_.h: Likewise.
57919
57920 2007-05-29  Bruno Haible  <bruno@clisp.org>
57921
57922         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57923         for the moment.
57924
57925 2007-05-29  Bruno Haible  <bruno@clisp.org>
57926
57927         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57928         invocation.
57929         Reported by Eric Blake.
57930
57931 2007-05-29  Bruno Haible  <bruno@clisp.org>
57932
57933         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57934         compiling case.
57935
57936 2007-05-29  Eric Blake  <ebb9@byu.net>
57937             Bruno Haible  <bruno@clisp.org>
57938
57939         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57940         cross compiles.
57941
57942 2007-05-28  Eric Blake  <ebb9@byu.net>
57943
57944         * modules/closein-tests (test_closein_LDADD): Support test on
57945         cygwin with libtool.
57946
57947 2007-05-28  Bruno Haible  <bruno@clisp.org>
57948
57949         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57950         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57951         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57952         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57953         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57954         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57955         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57956         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57957         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57958
57959 2007-05-28  Eric Blake  <ebb9@byu.net>
57960
57961         Unconditionally include <config.h> in unit tests.
57962         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57963         * tests/test-allocsa.c, tests/test-arcfour.c,
57964         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57965         tests/test-array_list.c, tests/test-array_oset.c,
57966         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57967         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57968         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57969         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57970         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57971         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57972         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57973         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57974         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57975         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57976         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57977         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57978         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57979         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57980         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57981         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57982         test-md5.c, test-memmem.c, test-printf-posix.c,
57983         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57984         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57985         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57986         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57987         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57988         test-vasnprintf-posix2.c, test-vasnprintf.c,
57989         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57990         test-vfprintf-posix.c, test-vprintf-posix.c,
57991         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57992         test-xvasprintf.c: Likewise.
57993
57994 2007-05-28  Bruno Haible  <bruno@clisp.org>
57995
57996         * gnulib-tool (func_import): Remember the --with-tests command-line
57997         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57998         Reported by Eric Blake.
57999
58000 2007-05-28  Bruno Haible  <bruno@clisp.org>
58001
58002         * modules/ftell-tests: New file.
58003         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58004         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58005
58006         * lib/ftell.c: New file.
58007         * modules/ftell: New file.
58008         * m4/ftell.m4: New file.
58009         * doc/functions/ftell.texi: Update.
58010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58011         REPLACE_FTELL.
58012         * lib/stdio_.h (rpl_ftell): New declaration.
58013         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58014         REPLACE_FTELL.
58015
58016 2007-05-28  Eric Blake  <ebb9@byu.net>
58017
58018         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58019
58020 2007-05-28  Bruno Haible  <bruno@clisp.org>
58021
58022         * modules/fseek-tests: New file.
58023         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58024         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58025
58026         * lib/fseek.c: New file.
58027         * modules/fseek: New file.
58028         * m4/fseek.m4: New file.
58029         * doc/functions/fseek.texi: Update.
58030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58031         REPLACE_FSEEK.
58032         * lib/stdio_.h (rpl_fseek): New declaration.
58033         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58034         REPLACE_FSEEK.
58035
58036 2007-05-28  Bruno Haible  <bruno@clisp.org>
58037
58038         * lib/stdio_.h (fflush): More comments.
58039
58040 2007-05-28  Bruno Haible  <bruno@clisp.org>
58041
58042         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58043         runtime test.
58044
58045 2007-05-28  Eric Blake  <ebb9@byu.net>
58046
58047         Improve lseek module.
58048         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58049         * lib/unistd_.h (lseek): Scale back link warning message.
58050         * tests/test-lseek.c: Beef up test.
58051         * tests/test-lseek.sh: Exercise more facets of lseek.
58052         Reported by Bruno Haible.
58053
58054 2007-05-28  Bruno Haible  <bruno@clisp.org>
58055
58056         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58057         to define.
58058
58059 2007-05-27  Bruno Haible  <bruno@clisp.org>
58060
58061         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58062
58063 2007-05-27  Bruno Haible  <bruno@clisp.org>
58064
58065         * modules/openmp: New file.
58066         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58067         Noah Misch.
58068
58069 2007-05-26  Bruno Haible  <bruno@clisp.org>
58070
58071         * modules/chdir-long (Depends-on): Add fchdir.
58072         * modules/chdir-safer (Depends-on): Likewise.
58073         * modules/fts (Depends-on): Likewise.
58074         * modules/fts-lgpl (Depends-on): Likewise.
58075         * modules/openat (Depends-on): Likewise.
58076         * modules/savewd (Depends-on): Likewise.
58077
58078 2007-05-24  Eric Blake  <ebb9@byu.net>
58079
58080         Fix lseek on mingw.
58081         * modules/lseek: New module.
58082         * m4/lseek.m4: New file.
58083         * lib/lseek.c: New file.
58084         * modules/lseek-tests: New file.
58085         * tests/test-lseek.c: New file.
58086         * tests/test-lseek.sh: New file.
58087         * MODULES.html.sh: Document lseek module.
58088         * modules/fflush (Depends-on): Add lseek, fseeko.
58089         * modules/fseeko (Depends-on): Likewise.
58090         * modules/ftello (Depends-on): Likewise.
58091         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58092         broken.
58093         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58094         broken.
58095         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58096         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58097         * lib/ftello.c (rpl_ftello): Likewise.
58098         * tests/test-fseeko.c (main): Test this.
58099         * tests/test-fseeko.sh: Likewise.
58100         * tests/test-ftello.c (main): Likewise.
58101         * tests/test-ftello.sh: Likewise.
58102         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58103         implies replacing fseek.
58104         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58105         HAVE_FTELLO.
58106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58107         * modules/unistd (Makefile.am): Likewise.
58108         * lib/unistd_.h (lseek): Declare a replacement.
58109         * doc/functions/lseek.texi (lseek): Document this fix.
58110         * doc/functions/fseek.texi (fseek): Likewise.
58111         * doc/functions/ftell.texi (ftell): Likewise.
58112
58113 2007-05-24  Bruno Haible  <bruno@clisp.org>
58114
58115         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58116         in the printed representation of a NaN.
58117         * tests/test-vasprintf-posix.c (test_function): Likewise.
58118         * tests/test-snprintf-posix.h (test_function): Likewise.
58119         * tests/test-sprintf-posix.h (test_function): Likewise.
58120         Reported by Eric Blake.
58121
58122 2007-05-23  Eric Blake  <ebb9@byu.net>
58123
58124         Fix fseeko/ftello on cygwin 1.5.24.
58125         * doc/functions/fseeko.texi (fseeko): Document the fix.
58126         * doc/functions/ftello.texi (ftello): Document the fix.
58127         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58128         * doc/functions/stdout.text (stdout): New file.
58129         * doc/functions/stderr.text (stderr): New file.
58130         * doc/gnulib.texi (Function Substitutes): Use new files.
58131         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58132         prior to 1.7.0.
58133         * tests/test-ftello.c (main): Likewise for ftello.
58134         * tests/test-fseeko.sh: New file.
58135         * tests/test-ftello.sh: New file.
58136         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58137         with seekable stdin.
58138         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58139         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58140         (gl_REPLACE_FSEEKO): New macro.
58141         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58142         * modules/fseeko (Files): Distribute fseeko.c.
58143         * modules/ftello (Files): Distribute ftello.c.
58144         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58145         mode.
58146         * lib/ftello.c (rpl_ftello): New file.
58147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58148         fseeko, ftello.
58149         (gl_STDIN_LARGE_OFFSET): New macro.
58150         * modules/stdio (Makefile.am): Perform the replacement.
58151         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58152
58153 2007-05-23  Bruno Haible  <bruno@clisp.org>
58154
58155         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58156         GNULIB_POSIXCHECK is defined.
58157
58158 2007-05-21  Bruno Haible  <bruno@clisp.org>
58159
58160         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58161         Check also the output for NaN arguments. When cross-compiling, guess
58162         no on IRIX.
58163         * lib/vasnprintf.c: Update comments.
58164         * tests/test-vasnprintf-posix.c (strisnan): New function.
58165         (test_function): Use it.
58166         * tests/test-vasprintf-posix.c (strisnan): New function.
58167         (test_function): Use it.
58168         * tests/test-snprintf-posix.h (strisnan): New function.
58169         (test_function): Use it.
58170         * tests/test-sprintf-posix.h (strisnan): New function.
58171         (test_function): Use it.
58172         Reported by Eric Blake.
58173
58174 2007-05-20  Bruno Haible  <bruno@clisp.org>
58175
58176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58177         numbers that fails on BeOS.
58178         * doc/functions/frexpl.texi: Update.
58179
58180 2007-05-20  Jim Meyering  <jim@meyering.net>
58181
58182         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58183         forced upon us by glibc-2.6.
58184
58185 2007-05-20  Bruno Haible  <bruno@clisp.org>
58186
58187         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58188         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58189         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58190         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58191         NEED_PRINTF_INFINITE.
58192         (is_infinitel): New function.
58193         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58195         gl_PREREQ_VASNPRINTF_INFINITE.
58196         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58197         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58198         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58199         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58200         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58201         gl_PREREQ_VASNPRINTF_INFINITE.
58202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58209         * doc/functions/fprintf.texi: Update.
58210         * doc/functions/printf.texi: Update.
58211         * doc/functions/snprintf.texi: Update.
58212         * doc/functions/sprintf.texi: Update.
58213         * doc/functions/vfprintf.texi: Update.
58214         * doc/functions/vprintf.texi: Update.
58215         * doc/functions/vsnprintf.texi: Update.
58216         * doc/functions/vsprintf.texi: Update.
58217
58218 2007-05-20  Bruno Haible  <bruno@clisp.org>
58219
58220         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58221         was not found in libc.
58222         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58223
58224 2007-05-20  Bruno Haible  <bruno@clisp.org>
58225
58226         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58227         printed as "-nan" instead of "nan".
58228         * tests/test-vasprintf-posix.c (test_function): Likewise.
58229         * tests/test-snprintf-posix.h (test_function): Likewise.
58230         * tests/test-sprintf-posix.h (test_function): Likewise.
58231         Needed for HP-UX 11.
58232
58233 2007-05-20  Jim Meyering  <jim@meyering.net>
58234
58235         Fix buggy test for the fchownat-deref bug.
58236         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58237         symlink required for the run-test.  Without it, this test would
58238         always declare that fchownat doesn't work, and client code would
58239         unnecessarily use the replacement function with fixed libc.
58240         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58241         Reported by Greg Schafer.
58242
58243 2007-05-19  Bruno Haible  <bruno@clisp.org>
58244
58245         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58246         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58247         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58248         Needed for IRIX 6.5 and Solaris 2.5.1.
58249
58250 2007-05-19  Bruno Haible  <bruno@clisp.org>
58251
58252         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58253         (test_function): Skip tests involving -0.0 on platforms where
58254         -0.0 = 0.0.
58255         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58256         (test_function): Skip tests involving -0.0 on platforms where
58257         -0.0 = 0.0.
58258         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58259         (test_function): Skip tests involving -0.0 on platforms where
58260         -0.0 = 0.0.
58261         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58262         (test_function): Skip tests involving -0.0 on platforms where
58263         -0.0 = 0.0.
58264         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58265         tests.
58266         * tests/test-printf-posix.h (test_function): Likewise.
58267         * tests/test-printf-posix.output: Remove all -0.0 related results.
58268         Needed for IRIX 6.5.
58269
58270 2007-05-19  Bruno Haible  <bruno@clisp.org>
58271
58272         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58273         printed as "nan0x7fffffff" instead of "nan".
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         * tests/test-fprintf-posix.h (NaN): Remove macro.
58278         (test_function): Remove all NaN related tests.
58279         * tests/test-printf-posix.h (NaN): Remove macro.
58280         (test_function): Remove all NaN related tests.
58281         * tests/test-printf-posix.output: Remove all NaN related results.
58282         Needed for IRIX 6.5.
58283
58284 2007-05-19  Bruno Haible  <bruno@clisp.org>
58285
58286         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58287         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58288
58289 2007-05-19  Bruno Haible  <bruno@clisp.org>
58290
58291         * lib/float_.h: New file.
58292         * m4/float_h.m4: New file.
58293         * modules/float: New file.
58294         * modules/isnanl (Dependencies): Add float.
58295         * modules/isnanl-nolibm (Dependencies): Likewise.
58296         * modules/mathl (Dependencies): Likewise.
58297         * modules/printf-frexpl (Dependencies): Likewise.
58298         * modules/signbit (Dependencies): Likewise.
58299         * modules/vasnprintf (Dependencies): Likewise.
58300         * doc/headers/float.texi: Update.
58301
58302 2007-05-19  Jim Meyering  <jim@meyering.net>
58303
58304         * lib/utimens.c (gl_futimens): Rename from futimens,
58305         now that glibc-2.6 declares futimens.
58306         * lib/utimens.h: Likewise.
58307
58308 2007-05-19  Bruno Haible  <bruno@clisp.org>
58309
58310         Avoid test failures on mingw.
58311         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58312         * tests/test-printf-posix.sh: Likewise.
58313         * tests/test-vfprintf-posix.sh: Likewise.
58314         * tests/test-vprintf-posix.sh: Likewise.
58315
58316 2007-05-19  Bruno Haible  <bruno@clisp.org>
58317
58318         Fix *printf result for NaN, Inf, -0.0 on mingw.
58319         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58320         * lib/vasnprintf.c: Include math.h and isnan.h.
58321         (is_infinite_or_zero): New function.
58322         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58323         values in the %f, %F, %e, %E, %g, %G directives.
58324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58326         gl_PRINTF_INFINITE and test its result. Invoke
58327         gl_PREREQ_VASNPRINTF_INFINITE.
58328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58335         * doc/functions/fprintf.texi: Update.
58336         * doc/functions/printf.texi: Update.
58337         * doc/functions/snprintf.texi: Update.
58338         * doc/functions/sprintf.texi: Update.
58339         * doc/functions/vfprintf.texi: Update.
58340         * doc/functions/vprintf.texi: Update.
58341         * doc/functions/vsnprintf.texi: Update.
58342         * doc/functions/vsprintf.texi: Update.
58343
58344 2007-05-19  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58347         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58348         Instead of multiplying with 10^k, set extra_zeroes to k.
58349         (scale10_round_long_double): Remove function.
58350
58351 2007-05-18  Bruno Haible  <bruno@clisp.org>
58352
58353         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58354         introduced on 2007-05-06.
58355
58356 2007-05-18  Bruno Haible  <bruno@clisp.org>
58357
58358         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58359         %g directives.
58360         * tests/test-vasprintf-posix.c (test_function): Likewise.
58361         * tests/test-snprintf-posix.h (test_function): Likewise.
58362         * tests/test-sprintf-posix.h (test_function): Likewise.
58363
58364 2007-05-18  Bruno Haible  <bruno@clisp.org>
58365
58366         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58367         (strmatch): New function.
58368         (test_function): Test the %f directive on numbers of various exponents.
58369         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58370         (strmatch): New function.
58371         (test_function): Test the %f directive on numbers of various exponents.
58372         * tests/test-snprintf-posix.h (strmatch): New function.
58373         (test_function): Test the %f directive on numbers of various exponents.
58374         * tests/test-sprintf-posix.h (strmatch): New function.
58375         (test_function): Test the %f directive on numbers of various exponents.
58376         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58377         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58378         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58379         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58380
58381 2007-05-18  Bruno Haible  <bruno@clisp.org>
58382
58383         Add support for 'long double' number output.
58384         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58385         * lib/vasnprintf.c: Include math.h and float+.h.
58386         (mp_limb_t): New type.
58387         (GMP_LIMB_BITS): New macro.
58388         (mp_twolimb_t): New type.
58389         (GMP_TWOLIMB_BITS): New macro.
58390         (mpn_t): New type.
58391         (multiply, divide, convert_to_decimal, decode_long_double,
58392         scale10_round_long_double, scale10_round_decimal_long_double,
58393         floorlog10l): New functions.
58394         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58395         for the %f, %F, %e, %E, %g, %G directives.
58396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58397         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58398         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58399         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58404         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58407         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58408         * modules/snprintf-posix (Depends-on): Likewise.
58409         * modules/sprintf-posix (Depends-on): Likewise.
58410         * modules/vasnprintf-posix (Depends-on): Likewise.
58411         * modules/vasprintf-posix (Depends-on): Likewise.
58412         * modules/vfprintf-posix (Depends-on): Likewise.
58413         * modules/vsnprintf-posix (Depends-on): Likewise.
58414         * modules/vsprintf-posix (Depends-on): Likewise.
58415         * modules/vasnprintf (Files): Add lib/float+.h.
58416         * doc/functions/fprintf.texi: Update.
58417         * doc/functions/printf.texi: Update.
58418         * doc/functions/snprintf.texi: Update.
58419         * doc/functions/sprintf.texi: Update.
58420         * doc/functions/vfprintf.texi: Update.
58421         * doc/functions/vprintf.texi: Update.
58422         * doc/functions/vsnprintf.texi: Update.
58423         * doc/functions/vsprintf.texi: Update.
58424
58425 2007-05-18  Bruno Haible  <bruno@clisp.org>
58426
58427         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58428
58429 2007-05-18  Bruno Haible  <bruno@clisp.org>
58430
58431         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58432         for printing 64-bit integers. Needed for mingw.
58433
58434 2007-05-18  Bruno Haible  <bruno@clisp.org>
58435
58436         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58437         gl_FUNC_FREXPL_WORKS.
58438         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58439
58440 2007-05-18  Bruno Haible  <bruno@clisp.org>
58441
58442         * modules/frexpl-nolibm-tests: New file.
58443
58444         * modules/frexpl-nolibm: New file.
58445         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58446
58447 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58450         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58451         GCC 4.2, which otherwise issues a lot of warnings.
58452         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58453         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58454         Likewise.
58455         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58456         * modules/iconv_open (iconv.h): Likewise.
58457         * modules/locale (locale.h): Likewise.
58458         * modules/netinet_in (netinet/in.h): Likewise.
58459         * modules/sys_select (sys_select.h): Likewise.
58460         * modules/sys_socket (sys/socket.h): Likewise.
58461         * modules/sys_stat (sys/stat.h): Likewise.
58462         * modules/sysexits (sysexits.h): Likewise.
58463         * modules/unistd (unistd.h): Likewise.
58464
58465 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58466
58467         * modules/closein-tests (Makefile.am): Distribute
58468         `test-closein.sh'.
58469
58470 2007-05-17  Bruno Haible  <bruno@clisp.org>
58471
58472         * tests/test-printf-posix.output: Renamed from
58473         tests/test-fprintf-posix.out.
58474         * modules/fprintf-posix-tests: Update.
58475         * modules/printf-posix-tests: Update.
58476         * modules/vfprintf-posix-tests: Update.
58477         * modules/vprintf-posix-tests: Update.
58478         * tests/test-fprintf-posix.sh: Update.
58479         * tests/test-printf-posix.sh: Update.
58480         * tests/test-vfprintf-posix.sh: Update.
58481         * tests/test-vprintf-posix.sh: Update.
58482         Reported by Ralf Wildenhues.
58483
58484 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58485
58486         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58487         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58488         GCC 4.2, which otherwise issues a lot of warnings.
58489         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58490         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58491         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58492         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58493         it should no longer be needed.
58494         * lib/string_.h: Likewise.
58495         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58496         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58497         * modules/inttypes (inttypes.h): Likewise.
58498         * modules/math (math.h): Likewise.
58499         * modules/search (search.h): Likewise.
58500         * modules/signal (signal.h): Likewise.
58501         * modules/stdint (stdint.h): Likewise.
58502         * modules/stdio (stdio.h): Likewise.
58503         * modules/stdlib (stdlib.h): Likewise.
58504         * modules/string (string.h): Likewise.
58505         * modules/sys_time (sys/time.h): Likewise.
58506         * modules/time (time.h): Likewise.
58507         * modules/wchar (wchar.h): Likewise.
58508         * modules/wctype (wtype.h): Likewise.
58509
58510 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58511
58512         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58513
58514 2007-05-13  Bruno Haible  <bruno@clisp.org>
58515
58516         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58517         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58518         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58519         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58520         (gl_PREREQ_STRTOK_R): Don't require it here.
58521
58522 2007-05-13  Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58525         when used in C++ mode.
58526
58527 2007-05-12  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/linebuffer.h: Tweak doc.
58530         * lib/linebuffer.c: Likewise.
58531
58532 2007-05-12  James Youngman  <jay@gnu.org>
58533
58534         * lib/linebuffer.c (readlinebuffer_delim): New function,
58535         like readlinebuffer, but use a caller-specified delimiter.
58536         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58537         as the delimiter.
58538         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58539
58540 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58541
58542         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58543         * modules/openat (Files): Remove openat-die.c.
58544         (Depends-on): Add openat-die.
58545         * modules/openat-die: New module.
58546
58547 2007-05-06  Bruno Haible  <bruno@clisp.org>
58548
58549         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58550         Update with info about Cygwin.
58551         * doc/functions/fprintf.texi: Update.
58552         * doc/functions/printf.texi: Update.
58553         * doc/functions/snprintf.texi: Update.
58554         * doc/functions/sprintf.texi: Update.
58555         * doc/functions/vfprintf.texi: Update.
58556         * doc/functions/vprintf.texi: Update.
58557         * doc/functions/vsnprintf.texi: Update.
58558         * doc/functions/vsprintf.texi: Update.
58559         Reported by Eric Blake.
58560
58561 2007-05-06  Bruno Haible  <bruno@clisp.org>
58562
58563         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58564         padding ourselves for the floating-point directives.
58565         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58568         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58569         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58577         * tests/test-snprintf-posix.h (test_function): Also check the width
58578         and some flags in the %f directive.
58579         * tests/test-sprintf-posix.h (test_function): Likewise.
58580         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58581         * tests/test-vasprintf-posix.c (test_function): Likewise.
58582         * doc/functions/fprintf.texi: Update.
58583         * doc/functions/printf.texi: Update.
58584         * doc/functions/snprintf.texi: Update.
58585         * doc/functions/sprintf.texi: Update.
58586         * doc/functions/vfprintf.texi: Update.
58587         * doc/functions/vprintf.texi: Update.
58588         * doc/functions/vsnprintf.texi: Update.
58589         * doc/functions/vsprintf.texi: Update.
58590
58591 2007-05-06  Bruno Haible  <bruno@clisp.org>
58592
58593         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58594         pass the ' flag character to sprintf or snprintf.
58595         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58597         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58598         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58599         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58600         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58602         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58603         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58604         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58605         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58606         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58607         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58608         flag.
58609         * tests/test-sprintf-posix.h (test_function): Likewise.
58610         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58611         * tests/test-vasprintf-posix.c (test_function): Likewise.
58612         * doc/functions/fprintf.texi: Update.
58613         * doc/functions/printf.texi: Update.
58614         * doc/functions/snprintf.texi: Update.
58615         * doc/functions/sprintf.texi: Update.
58616         * doc/functions/vfprintf.texi: Update.
58617         * doc/functions/vprintf.texi: Update.
58618         * doc/functions/vsnprintf.texi: Update.
58619         * doc/functions/vsprintf.texi: Update.
58620
58621 2007-05-01  Bruno Haible  <bruno@clisp.org>
58622
58623         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58624
58625 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58626
58627         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58628         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58629
58630 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58633         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58635
58636 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58637
58638         * lib/argp-help.c (struct hol_entry): New member `ord'.
58639         (HOL_ENTRY_PTRCMP): Use ord for comparison
58640         (hol_sort): Initialize ord.
58641
58642 2007-05-01  Bruno Haible  <bruno@clisp.org>
58643
58644         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58645         Reported by Eric Blake.
58646         * doc/gnulib.texi (Function Substitutes): Update.
58647
58648 2007-05-01  Bruno Haible  <bruno@clisp.org>
58649
58650         * doc/functions.texi: Remove file, now redundant through
58651         doc/functions/*.texi.
58652
58653 2007-05-01  Bruno Haible  <bruno@clisp.org>
58654
58655         * modules/argp (Depends-on): Add sleep.
58656
58657 2007-05-01  Bruno Haible  <bruno@clisp.org>
58658
58659         * modules/sleep-tests: New file.
58660         * tests/test-sleep.c: New file.
58661
58662         * modules/sleep: New file.
58663         * lib/sleep.c: New file.
58664         * m4/sleep.m4: New file.
58665         * lib/unistd_.h (sleep): New declaration.
58666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58667         HAVE_SLEEP.
58668         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58669         * doc/functions/sleep.texi: Document the sleep module.
58670
58671 2007-05-01  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/sigprocmask.h: Remove file.
58674         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58675         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58676         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58677         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58678         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58679         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58680         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58681         HAVE_SIGSET_T as a shell variable.
58682         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58683         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58684         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58685         (Depends-on): Add signal. Remove verify.
58686         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58687         (Include): Mention <signal.h> instead of sigprocmask.h.
58688         * NEWS: Mention the change.
58689         * lib/fatal-signal.c: Don't include sigprocmask.h.
58690
58691 2007-05-01  Bruno Haible  <bruno@clisp.org>
58692
58693         * modules/signal: New file.
58694         * lib/signal_.h: New file.
58695         * m4/signal_h.m4: New file.
58696
58697 2007-05-01  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58700         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58701         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58702         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58703
58704 2007-05-01  Bruno Haible  <bruno@clisp.org>
58705
58706         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58707         configure time.
58708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58709         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58710         * modules/sys_stat (Makefile.am): Substitute their values into
58711         sys/stat.h.
58712
58713 2007-05-01  Bruno Haible  <bruno@clisp.org>
58714
58715         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58716         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58717         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58718
58719 2007-05-01  Bruno Haible  <bruno@clisp.org>
58720
58721         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58722         'assert' module here.
58723
58724 2007-05-01  Bruno Haible  <bruno@clisp.org>
58725
58726         * doc/functions/*.texi: New files.
58727         * doc/functions/google-ranking.txt: New file.
58728         * doc/gnulib.texi (Function Substitutes): New chapter.
58729         (ctime, inet_ntoa): Remove sections.
58730         * doc/ctime.texi: Remove file.
58731         * doc/inet_ntoa.texi: Remove file.
58732         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58733         dependencies.
58734         (%.info): New rule, specifying a --reference-limit.
58735
58736 2007-05-01  Bruno Haible  <bruno@clisp.org>
58737
58738         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58739
58740 2007-05-01  Bruno Haible  <bruno@clisp.org>
58741
58742         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58743         the portability of 'mkdir' to mingw systems.
58744
58745 2007-05-01  Bruno Haible  <bruno@clisp.org>
58746
58747         * doc/headers/google-ranking.txt: New file.
58748
58749 2007-04-30  Eric Blake  <ebb9@byu.net>
58750
58751         Prefer fseeko to fseek.
58752         * modules/getpass (Depends-on): Add fseeko.
58753         * lib/getpass.c (getpass): Use fseeko, not fseek.
58754
58755 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58756
58757         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58758         assumes the sorting is stable, while most qsort implementations
58759         are not.  Use argument addresses to ensure they never compare as
58760         equal.
58761
58762         * tests/test-argp-2.sh (usage-indent test): Fix output
58763         (func_compare): Restore diff options
58764         * tests/test-argp.c: Restore #include "progname.h"
58765
58766 2007-04-29  Bruno Haible  <bruno@clisp.org>
58767
58768         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58770         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58771         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58772         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58773         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58774         (TESTS, check_PROGRAMS): Add test-snprintf.
58775         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58776         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58777         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58778         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58779         assertions that fail on HP-UX, OSF/1, or IRIX.
58780         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58781
58782 2007-04-29  Bruno Haible  <bruno@clisp.org>
58783
58784         * MODULES.html.sh (posix_functions): Remove 'contents'.
58785
58786 2007-04-29  Karl Berry  <karl@gnu.org>
58787
58788         * config/srclist.txt (gendocs_template_min): new entry.
58789
58790 2007-04-29  Bruno Haible  <bruno@clisp.org>
58791
58792         Work around fpurge bug on BSD systems.
58793         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58794         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58795         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58796         fpurge to rpl_fpurge if the system already has this function.
58797         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58798         the case where the system already has this function. Correct invariants
58799         on BSD systems.
58800         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58801         BSD systems.
58802
58803 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58804
58805         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58806         proposed by Sven Verdoolaege.
58807
58808         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58809         options.
58810         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58811         (usage and help tests): Update
58812
58813 2007-04-29  Bruno Haible  <bruno@clisp.org>
58814
58815         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58816         Print more information in case of failure. Disable a test on BeOS.
58817
58818 2007-04-29  Bruno Haible  <bruno@clisp.org>
58819
58820         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58821         This helps debugging on systems on which no gdb is available.
58822
58823 2007-04-29  Bruno Haible  <bruno@clisp.org>
58824
58825         * lib/freading.h: Improve comments.
58826         * lib/fwriting.h: Likewise.
58827         * tests/test-freading.c (main): Don't check freading immediately after
58828         repositioning. Needed for glibc.
58829
58830 2007-04-29  Bruno Haible  <bruno@clisp.org>
58831
58832         * lib/freading.c (freading): Trivial simplification.
58833
58834 2007-04-28  Bruno Haible  <bruno@clisp.org>
58835
58836         * tests/test-fwriting.c (main): Also test the interaction between
58837         fflush and fwriting.
58838         * modules/fwriting-tests (Depends-on): Add fflush.
58839
58840         * tests/test-freading.c (main): Also test the interaction between
58841         fflush and freading.
58842         * modules/freading-tests (Depends-on): Add fflush.
58843
58844 2007-04-28  Bruno Haible  <bruno@clisp.org>
58845
58846         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58847         fseeko and ftello.
58848         Suggested by Eric Blake.
58849
58850 2007-04-28  Jim Meyering  <jim@meyering.net>
58851
58852         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58853         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58854         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58855
58856 2007-04-27  Eric Blake  <ebb9@byu.net>
58857
58858         * doc/headers/assert.texi (assert.h): Document assert module use.
58859
58860 2007-04-27  Bruno Haible  <bruno@clisp.org>
58861
58862         * doc/headers/*.texi: New files.
58863         * doc/gnulib.texi (Header File Substitutes): New chapter.
58864         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58865         dependencies.
58866         (standards.info ,standards.html, standards.dvi): Update dependencies.
58867         (mostlyclean, clean): New targets.
58868
58869 2007-04-27  Bruno Haible  <bruno@clisp.org>
58870
58871         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58872         * modules/sysexits (Files, Makefile.am): Update.
58873
58874         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58875         * modules/sys_socket (Files, Makefile.am): Update.
58876
58877         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58878         * modules/sys_stat (Files, Makefile.am): Update.
58879
58880 2007-04-27  Eric Blake  <ebb9@byu.net>
58881
58882         * lib/freading.h: Improve comments.
58883         * lib/fwriting.h: Likewise.
58884         * lib/fflush.c: Likewise.
58885
58886         Fix closein for mingw.
58887         * modules/closein-tests: Add tests for closein.
58888         * tests/test-closein.c: New file.
58889         * tests/test-closein.sh: Likewise.
58890         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58891         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58892
58893 2007-04-27  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58896         version is < 6.
58897         * lib/math_.h [__DECC]: Likewise.
58898         * lib/stdio_.h [__DECC]: Likewise.
58899         * lib/stdlib_.h [__DECC]: Likewise.
58900         * lib/string_.h [__DECC]: Likewise.
58901         * lib/time_.h [__DECC]: Likewise.
58902         * lib/wchar_.h [__DECC]: Likewise.
58903         * lib/wctype_.h [__DECC]: Likewise.
58904
58905 2007-04-27  Bruno Haible  <bruno@clisp.org>
58906
58907         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58908
58909 2007-04-27  Bruno Haible  <bruno@clisp.org>
58910
58911         * lib/fflush.c: Add comments.
58912         * modules/fpurge-tests (Depends-on): Add fflush.
58913         * modules/freadable-tests (Depends-on): Likewise.
58914         * modules/fwritable-tests (Depends-on): Likewise.
58915
58916 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58917
58918         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58919         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58920         Report by Bruno Haible <bruno@clisp.org>.
58921
58922 2007-04-26  Eric Blake  <ebb9@byu.net>
58923
58924         Fix fflush on mingw.
58925         * modules/fflush (Depends-on): Add freading.
58926         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58927         but unread data.
58928
58929 2007-04-26  Eric Blake  <ebb9@byu.net>
58930         and Bruno Haible  <bruno@clisp.org>
58931
58932         Implement freading and fwriting.
58933         * lib/freading.c: New file.
58934         * lib/freading.h: Likewise.
58935         * m4/freading.m4: Likewise.
58936         * modules/freading: Likewise.
58937         * modules/freading-tests: Likewise.
58938         * tests/test-freading.c: Likewise.
58939         * lib/fwriting.c: New file.
58940         * lib/fwriting.h: Likewise.
58941         * m4/fwriting.m4: Likewise.
58942         * modules/fwriting: Likewise.
58943         * modules/fwriting-tests: Likewise.
58944         * tests/test-fwriting.c: Likewise.
58945         * MODULES.html.sh (File stream based Input/Output): Mention them.
58946
58947 2007-04-26  Bruno Haible  <bruno@clisp.org>
58948
58949         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58950         'long' when we assume it.
58951         Suggested by Eric Blake.
58952
58953 2007-04-26  Bruno Haible  <bruno@clisp.org>
58954
58955         Ensure fseeko, ftello are declared on glibc systems.
58956         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58957         * modules/fseeko (configure.ac-early): Likewise.
58958         * modules/ftello (configure.ac-early): Likewise.
58959         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58960         AC_FUNC_FSEEKO for this.
58961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58962         (gl_CHECK_FSEEKO): Remove macro.
58963
58964 2007-04-26  Bruno Haible  <bruno@clisp.org>
58965
58966         * tests/test-fflush.c (main): Also check the ftell result after
58967         fflush and fseek/fseeko.
58968         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58969         file descriptor position cache in the stream.
58970         * lib/fseeko.c (rpl_fseeko): Likewise.
58971
58972 2007-04-26  Bruno Haible  <bruno@clisp.org>
58973
58974         * modules/fflush-tests (Depends-on): Add fseeko.
58975
58976 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58977             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58978
58979         * lib/argz_.h: ensure error_t definition is obtained in same
58980         mechanism system argz.h would have.
58981         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58982         argz facilities are known bad.  Err on the side of caution if
58983         cross-compiling.
58984
58985 2007-04-25  Eric Blake  <ebb9@byu.net>
58986
58987         * lib/fpurge.c (includes): Use stdlib.h for free.
58988         * tests/test-fflush.c (main): Also test fflush-fseeko.
58989
58990 2007-04-25  Bruno Haible  <bruno@clisp.org>
58991
58992         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58993         * lib/fseeko.c: New file.
58994         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58995         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58996         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58997         gl_FUNC_FSEEKO.
58998         (gl_FUNC_FSEEKO): Invoke it.
58999         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59000         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59001         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59002
59003 2007-04-25  Bruno Haible  <bruno@clisp.org>
59004
59005         * modules/fflush (Depends-on): Add ftello.
59006
59007 2007-04-25  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/ftello-tests: New file.
59010         * tests/test-ftello.c: New file.
59011
59012         * modules/ftello: New file.
59013         * m4/ftello.m4: New file.
59014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59015         HAVE_FTELLO.
59016         * lib/stdio_.h (ftello): New declaration.
59017         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59018         HAVE_FTELLO.
59019
59020 2007-04-25  Bruno Haible  <bruno@clisp.org>
59021
59022         * modules/fseeko-tests: New file.
59023         * tests/test-fseeko.c: New file.
59024
59025         * modules/fseeko: New file.
59026         * m4/fseeko.m4: New file.
59027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59028         HAVE_FSEEKO.
59029         * lib/stdio_.h (fseeko): New declaration.
59030         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59031         HAVE_FSEEKO.
59032
59033 2007-04-25  Bruno Haible  <bruno@clisp.org>
59034
59035         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59036
59037 2007-04-25  Bruno Haible  <bruno@clisp.org>
59038
59039         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59040         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59041         * tests/test-unistd.c: Likewise.
59042         * tests/test-fcntl.c: Likewise.
59043
59044 2007-04-23  Eric Blake  <ebb9@byu.net>
59045
59046         * lib/fflush.c: Fix missing include.
59047         Reported by Bruno Haible.
59048
59049 2007-04-23  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59052         Reported by Eric Blake.
59053
59054 2007-04-23  Bruno Haible  <bruno@clisp.org>
59055
59056         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59057
59058 2007-04-23  Bruno Haible  <bruno@clisp.org>
59059
59060         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59061
59062 2007-04-23  Bruno Haible  <bruno@clisp.org>
59063
59064         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59065         Needed on HP-UX 11.
59066
59067 2007-04-16  Eric Blake  <ebb9@byu.net>
59068
59069         Make fflush rely on fpurge.
59070         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59071         open coding all variants.
59072         * modules/fflush (Depends-on): Add fpurge and unistd.
59073         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59074         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59075
59076         Fix --with-tests compilation on cygwin.
59077         * modules/argmatch-tests (Makefile.am): List gnulib library first
59078         in LDADD.
59079         * modules/argp-tests (Makefile.am): Likewise.
59080         * modules/array-list-tests (Makefile.am): Likewise.
59081         * modules/array-oset-tests (Makefile.am): Likewise.
59082         * modules/avltree-list-tests (Makefile.am): Likewise.
59083         * modules/avltree-oset-tests (Makefile.am): Likewise.
59084         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59085         * modules/carray-list-tests (Makefile.am): Likewise.
59086         * modules/dirname-tests (Makefile.am): Likewise.
59087         * modules/frexp-tests (Makefile.am): Likewise.
59088         * modules/isnanl-tests (Makefile.am): Likewise.
59089         * modules/linked-list-tests (Makefile.am): Likewise.
59090         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59091         * modules/lock-tests (Makefile.am): Likewise.
59092         * modules/rbtree-list-tests (Makefile.am): Likewise.
59093         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59094         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59095         * modules/tls-tests (Makefile.am): Likewise.
59096         * modules/tsearch-tests (Makefile.am): Likewise.
59097         * modules/xvasprintf-tests (Makefile.am): Likewise.
59098
59099         Fix fpurge for cygwin.
59100         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59101         value.
59102         * modules/fpurge-tests (Depends-on): Clean up trash.
59103
59104 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59105
59106         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59107
59108         * m4/autobuild.m4: Re-indent.
59109
59110 2007-04-13  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/fpurge-tests: New file.
59113         * tests/test-fpurge.c: New file.
59114
59115         * modules/fpurge: New file.
59116         * lib/fpurge.h: New file.
59117         * lib/fpurge.c: New file.
59118         * m4/fpurge.m4: New file.
59119
59120 2007-04-13  Bruno Haible  <bruno@clisp.org>
59121
59122         * modules/fbufmode-tests: New file.
59123         * tests/test-fbufmode.c: New file.
59124
59125         * modules/fbufmode: New file.
59126         * lib/fbufmode.h: New file.
59127         * lib/fbufmode.c: New file.
59128         * m4/fbufmode.m4: New file.
59129
59130 2007-04-13  Bruno Haible  <bruno@clisp.org>
59131
59132         * modules/fwritable-tests: New file.
59133         * tests/test-fwritable.c: New file.
59134
59135         * modules/fwritable: New file.
59136         * lib/fwritable.h: New file.
59137         * lib/fwritable.c: New file.
59138         * m4/fwritable.m4: New file.
59139
59140 2007-04-13  Bruno Haible  <bruno@clisp.org>
59141
59142         * modules/freadable-tests: New file.
59143         * tests/test-freadable.c: New file.
59144
59145         * modules/freadable: New file.
59146         * lib/freadable.h: New file.
59147         * lib/freadable.c: New file.
59148         * m4/freadable.m4: New file.
59149
59150 2007-04-13  Bruno Haible  <bruno@clisp.org>
59151
59152         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59153         MOSTLYCLEANFILES.
59154
59155 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59156
59157         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59158         gzip bootstrap.conf to avoid dragging in i18n machinery.
59159         (gnulib_tool_option): Use it.
59160
59161 2007-04-13  Bruno Haible  <bruno@clisp.org>
59162
59163         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59164         %F directives.
59165         * tests/test-vasprintf-posix.c (test_function): Likewise.
59166         * tests/test-snprintf-posix.h (test_function): Likewise.
59167         * tests/test-sprintf-posix.h (test_function): Likewise.
59168         * tests/test-fprintf-posix.h (test_function): Likewise.
59169         * tests/test-printf-posix.h (test_function): Likewise.
59170         * tests/test-fprintf-posix.out: Likewise.
59171
59172 2007-04-13  Bruno Haible  <bruno@clisp.org>
59173
59174         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59175         * modules/tls-tests (configure.ac): Likewise.
59176         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59177
59178 2007-04-13  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/tls.c (glthread_tls_get): Fix return type.
59181         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59182
59183 2007-04-12  Eric Blake  <ebb9@byu.net>
59184
59185         * modules/gettime (Depends-on): Remove gettime.
59186         Reported by Dmitry V. Levin.
59187
59188 2007-04-12  Bruno Haible  <bruno@clisp.org>
59189
59190         * modules/fflush (Include): Mention <stdio.h>.
59191         * modules/strtoimax (Include): Mention <inttypes.h>.
59192         * modules/strtoumax (Include): Likewise.
59193
59194 2007-04-12  Eric Blake  <ebb9@byu.net>
59195
59196         * .cvsignore: New file.
59197         * .gitignore: Likewise.
59198
59199 2007-04-12  Bruno Haible  <bruno@clisp.org>
59200
59201         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59202         not before, since $(LDADD) often contains libgnu.a.
59203         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59204         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59205         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59206         Needed on Cygwin.
59207
59208 2007-04-12  Eric Blake  <ebb9@byu.net>
59209
59210         Work around glibc's failure to flush stdin on fclose.
59211         * lib/closein.c (close_stdin): Flush stdin before closing.
59212
59213         Work around glibc's failure to reset seekable stdin on exit.
59214         * modules/closein: New module.
59215         * lib/closein.c: New file.
59216         * lib/closein.h: Likewise.
59217         * m4/closein.m4: Likewise.
59218         * MODULES.html.sh (File stream based Input/Output): Document it.
59219
59220 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59221
59222         * gnulib-tool: Rename generated 'autobuild' script to
59223         'do-autobuild' in --create-megatestdir output.
59224
59225         * doc/gnulib.texi (Build robot for gnulib): Fix.
59226
59227 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59228
59229         * modules/sysexits (Depends-on): Add absolute-header.
59230
59231 2007-04-12  Eric Blake  <ebb9@byu.net>
59232
59233         No need to preserve errno on success.
59234         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59235         Reported by Bruno Haible.
59236
59237 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59238
59239         * MODULES.html.sh (Support for maintaining and releasing
59240         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59241
59242 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59243
59244         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59245
59246 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59247
59248         * modules/autobuild: New module.
59249
59250         * m4/autobuild.m4: New file.
59251
59252 2007-04-11  Bruno Haible  <bruno@clisp.org>
59253
59254         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59255         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59259         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59260         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59262         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59263         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59265         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59266         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59267         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59268         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59269         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59271         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59272         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59273         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59274         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59275         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59276         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59277         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59278         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59282         Reported by Eric Blake.
59283
59284 2007-04-11  Bruno Haible  <bruno@clisp.org>
59285
59286         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59287
59288 2007-04-10  Bruno Haible  <bruno@clisp.org>
59289
59290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59291         for NaN and Infinity. Needed on FreeBSD 6.1.
59292         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59293         regarding results for "%010a" of Infinity and NaN.
59294         * tests/test-vasprintf-posix.c (test_function): Likewise.
59295         * tests/test-snprintf-posix.h (test_function): Likewise.
59296         * tests/test-sprintf-posix.h (test_function): Likewise.
59297         * tests/test-fprintf-posix.h (test_function): Likewise.
59298         * tests/test-printf-posix.h (test_function): Likewise.
59299         * tests/test-fprintf-posix.out: Likewise.
59300
59301 2007-04-10  Bruno Haible  <bruno@clisp.org>
59302
59303         * modules/locale-tests: New file.
59304         * tests/test-locale.c: New file.
59305
59306         * modules/locale: New file.
59307         * lib/locale_.h: New file.
59308         * m4/locale_h.m4: New file.
59309
59310 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59311             Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59314         be determined, test for availability of the copysignf, copysign,
59315         copysignl functions.
59316         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59317         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59318         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59319
59320 2007-04-09  Eric Blake  <ebb9@byu.net>
59321
59322         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59323         * modules/stdio (Makefile.am): Support fflush.
59324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59325         * modules/fflush: New file.
59326         * lib/fflush.c: Likewise.
59327         * m4/fflush.m4: Likewise.
59328         * modules/fflush-tests: New test.
59329         * tests/test-fflush.c: Likewise.
59330         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59331
59332 2007-04-06  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59335         (VASNPRINTF): Use signbit for faster determination whether to print a
59336         minus sign.
59337         * modules/vasnprintf (Files): Remove lib/float+.h.
59338         * modules/fprintf-posix (Depends-on): Add signbit.
59339         * modules/snprintf-posix (Depends-on): Likewise.
59340         * modules/sprintf-posix (Depends-on): Likewise.
59341         * modules/vasnprintf-posix (Depends-on): Likewise.
59342         * modules/vasprintf-posix (Depends-on): Likewise.
59343         * modules/vfprintf-posix (Depends-on): Likewise.
59344         * modules/vsnprintf-posix (Depends-on): Likewise.
59345         * modules/vsprintf-posix (Depends-on): Likewise.
59346
59347 2007-04-06  Bruno Haible  <bruno@clisp.org>
59348
59349         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59350         * tests/test-frexpl.c (main): Likewise.
59351         * tests/test-ldexpl.c (main): Likewise.
59352         * modules/frexp-tests (Depends-on): Add signbit.
59353         * modules/frexpl-tests (Depdends-on): Likewise.
59354         * modules/ldexpl-tests (Depdends-on): Likewise.
59355
59356 2007-04-06  Bruno Haible  <bruno@clisp.org>
59357
59358         * modules/signbit-tests: New file.
59359         * tests/test-signbit.c: New file.
59360
59361         * modules/signbit: New file.
59362         * lib/signbitf.c: New file.
59363         * lib/signbitd.c: New file.
59364         * lib/signbitl.c: New file.
59365         * m4/signbit.m4: New file.
59366         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59367         (signbit): New macro.
59368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59369         REPLACE_SIGNBIT.
59370         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59371         REPLACE_FREXPL into math.h.
59372
59373 2007-04-06  Bruno Haible  <bruno@clisp.org>
59374
59375         * modules/isnanf-nolibm-tests: New file.
59376         * tests/test-isnanf.c: New file.
59377
59378         * modules/isnanf-nolibm: New file.
59379         * lib/isnanf.h: New file.
59380         * lib/isnanf.c: New file.
59381         * lib/isnan.c: Consider the USE_FLOAT macro.
59382         * m4/isnanf.m4: New file.
59383
59384 2007-04-06  Bruno Haible  <bruno@clisp.org>
59385
59386         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59387         (Link): New section.
59388
59389         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59390
59391 2007-04-06  Bruno Haible  <bruno@clisp.org>
59392
59393         Assume the 'long double' type.
59394         * m4/longdouble.m4: Remove file.
59395         * config/srclist.txt: Don't mention longdouble.m4.
59396         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59397         * lib/float+.h: Likewise.
59398         * lib/frexp.c: Likewise.
59399         * lib/printf-args.h: Likewise.
59400         * lib/printf-args.c: Likewise.
59401         * lib/printf-frexp.c: Likewise.
59402         * lib/printf-parse.c: Likewise.
59403         * lib/vasnprintf.c: Likewise.
59404         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59405         * m4/intl.m4: Likewise.
59406         * m4/isnanl.m4: Likewise.
59407         * m4/printf.m4: Likewise.
59408         * m4/printf-frexpl.m4: Likewise.
59409         * m4/vasnprintf.m4: Likewise.
59410         * modules/allocsa (Files): Remove m4/longdouble.m4.
59411         * modules/gettext (Files): Likewise.
59412         * modules/relocatable-prog-wrapper (Files): Likewise.
59413         * modules/vasnprintf (Files): Likewise.
59414         * modules/isnanl (Files): Likewise.
59415         (Include): Simplify.
59416         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59417         (Include): Simplify.
59418         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59419         (Include): Simplify.
59420         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59421         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59422         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59423         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59424         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59425         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59426         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59427         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59428         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59429         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59430         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59431         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59432         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59433         * tests/test-isnanl.c: Likewise.
59434         * tests/test-snprintf-posix.h: Likewise.
59435         * tests/test-sprintf-posix.h: Likewise.
59436         * tests/test-vasnprintf-posix.c: Likewise.
59437         * tests/test-vasnprintf-posix2.c: Likewise.
59438         * tests/test-vasprintf-posix.c: Likewise.
59439
59440 2007-04-06  Bruno Haible  <bruno@clisp.org>
59441
59442         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59443         * lib/math_.h [__DECC]: Include the overridden include file through
59444         #include_next, outside the double-inclusion guard.
59445         * lib/stdio_.h [__DECC]: Likewise.
59446         * lib/stdlib_.h [__DECC]: Likewise.
59447         * lib/string_.h [__DECC]: Likewise.
59448         * lib/time_.h [__DECC]: Likewise.
59449         * lib/wchar_.h [__DECC]: Likewise.
59450         * lib/wctype_.h [__DECC]: Likewise.
59451         * lib/inttypes_.h [__DECC]: Likewise.
59452         Reported by Albert Chin <china@thewrittenword.com> in
59453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59454
59455 2007-04-04  Eric Blake  <ebb9@byu.net>
59456
59457         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59458         1.5.x.
59459
59460 2007-04-04  Bruno Haible  <bruno@clisp.org>
59461
59462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59463         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59464
59465 2007-04-04  Bruno Haible  <bruno@clisp.org>
59466
59467         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59468         results for "%010a" of Infinity and NaN.
59469         * tests/test-vasprintf-posix.c (test_function): Likewise.
59470         * tests/test-snprintf-posix.h (test_function): Likewise.
59471         * tests/test-sprintf-posix.h (test_function): Likewise.
59472         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59473         * tests/test-printf-posix.h (test_function): Likewise.
59474         * tests/test-fprintf-posix.out: Update.
59475         Needed for FreeBSD 6.1.
59476
59477 2007-04-04  Bruno Haible  <bruno@clisp.org>
59478
59479         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59480         directly used by the gnulib modules nor by gnulib-tool.
59481
59482 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59483
59484         * DEPENDENCIES: Give overall description of version dependency
59485         desirability.  Use more-typical names for apps.
59486         Add shell, coreutils, diffutils, grep, tar, gzip.
59487
59488 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59489
59490         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59491
59492 2007-04-04  Karl Berry  <karl@gnu.org>
59493
59494         * MODULES.html.sh (func_module): missing '.
59495
59496 2007-04-03  Bruno Haible  <bruno@clisp.org>
59497
59498         * modules/argmatch-tests (Makefile.am): New variable
59499         test_argmatch_LDADD.
59500         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59501         * modules/array-list-tests (Makefile.am): New variable
59502         test_array_list_LDADD.
59503         * modules/array-oset-tests (Makefile.am): New variable
59504         test_array_oset_LDADD.
59505         * modules/avltree-list-tests (Makefile.am): New variable
59506         test_avltree_list_LDADD.
59507         * modules/avltree-oset-tests (Makefile.am): New variable
59508         test_avltree_oset_LDADD.
59509         * modules/avltreehash-list-tests (Makefile.am): New variable
59510         test_avltreehash_list_LDADD.
59511         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59512         test_canonicalize_lgpl_LDADD.
59513         * modules/carray-list-tests (Makefile.am): New variable
59514         test_carray_list_LDADD.
59515         * modules/dirname-tests (Makefile.am): New variable
59516         test_dirname_LDADD.
59517         * modules/linked-list-tests (Makefile.am): New variable
59518         test_linked_list_LDADD.
59519         * modules/linkedhash-list-tests (Makefile.am): New variable
59520         test_linkedhash_list_LDADD.
59521         * modules/rbtree-list-tests (Makefile.am): New variable
59522         test_rbtree_list_LDADD.
59523         * modules/rbtree-oset-tests (Makefile.am): New variable
59524         test_rbtree_oset_LDADD.
59525         * modules/rbtreehash-list-tests (Makefile.am): New variable
59526         test_rbtreehash_list_LDADD.
59527         * modules/xvasprintf-tests (Makefile.am): New variable
59528         test_xvasprintf_LDADD.
59529         Reported by Eric Blake.
59530
59531 2007-04-03  Eric Blake  <ebb9@byu.net>
59532
59533         * DEPENDENCIES: Weaken m4 requirements.
59534
59535 2007-04-03  Bruno Haible  <bruno@clisp.org>
59536
59537         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59538         * modules/isnanl-tests (configure.ac): Likewise.
59539
59540 2007-04-03  Ben Pfaff  <blp@gnu.org>
59541
59542         * modules/iconv_open: Add $(srcdir)/ to source directory
59543         references in Makefile fragments that call gperf, to fix VPATH
59544         builds.
59545
59546 2007-04-03  Bruno Haible  <bruno@clisp.org>
59547
59548         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59549         * lib/ldexpl.c: Undo last change.
59550
59551 2007-04-03  Bruno Haible  <bruno@clisp.org>
59552
59553         * modules/printf-frexpl (Depends-on): Undo last change.
59554         (Files): Add m4/ldexpl.m4.
59555
59556 2007-04-03  Bruno Haible  <bruno@clisp.org>
59557
59558         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59559         * modules/isnanl (Link): New section.
59560
59561         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59562         * modules/frexp (Link): New section.
59563
59564         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59565         * modules/frexpl (Link): New section.
59566
59567         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59568         * modules/ldexpl (Link): New section.
59569
59570 2007-04-03  Bruno Haible  <bruno@clisp.org>
59571
59572         * modules/TEMPLATE-EXTENDED: New file.
59573         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59574
59575 2007-04-03  Bruno Haible  <bruno@clisp.org>
59576
59577         * DEPENDENCIES: New file.
59578         Suggested by Simon Josefsson.
59579
59580 2007-04-03  Bruno Haible  <bruno@clisp.org>
59581
59582         * doc/gnulib.texi: Escape @.
59583
59584 2007-04-03  James Youngman  <jay@gnu.org>
59585         and Paul Eggert  <eggert@cs.ucla.edu>
59586
59587         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59588         birthtime on all systems that have birthtime, not just those which
59589         use st_birthtimensec rather than st_birthtim.  Putting zero in
59590         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59591         that the birth time is not available for files on an NFS mount.
59592
59593 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59594
59595         * modules/memxor: Move back from crypto/, suggested by Bruno.
59596         * modules/crypto/hmac-sha1: Fix memxor dependency.
59597
59598         * modules/crypto/gc: Moved from ../.
59599
59600 2007-04-02  Eric Blake  <ebb9@byu.net>
59601
59602         * lib/ldexpl.c (includes): Avoid libm.
59603
59604         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59605
59606 2007-04-02  Bruno Haible  <bruno@clisp.org>
59607
59608         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59609         on IRIX.
59610
59611 2007-04-02  Bruno Haible  <bruno@clisp.org>
59612
59613         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59614         x86 or x86_64 platforms running MacOS X.
59615         Reported by Ryan Schmidt <@ryandesign.com>.
59616
59617 2007-04-02  Bruno Haible  <bruno@clisp.org>
59618
59619         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59620         i386.
59621
59622 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59623
59624         * modules/crypto/arcfour: Moved from ../.
59625         * modules/crypto/arcfour-tests: Moved from ../.
59626         * modules/crypto/arctwo: Moved from ../.
59627         * modules/crypto/arctwo-tests: Moved from ../.
59628         * modules/crypto/des: Moved from ../.
59629         * modules/crypto/des-tests: Moved from ../.
59630         * modules/crypto/gc-arcfour: Moved from ../.
59631         * modules/crypto/gc-arcfour-tests: Moved from ../.
59632         * modules/crypto/gc-arctwo: Moved from ../.
59633         * modules/crypto/gc-arctwo-tests: Moved from ../.
59634         * modules/crypto/gc-des: Moved from ../.
59635         * modules/crypto/gc-des-tests: Moved from ../.
59636         * modules/crypto/gc-hmac-md5: Moved from ../.
59637         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59638         * modules/crypto/gc-hmac-sha1: Moved from ../.
59639         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59640         * modules/crypto/gc-md2: Moved from ../.
59641         * modules/crypto/gc-md2-tests: Moved from ../.
59642         * modules/crypto/gc-md4: Moved from ../.
59643         * modules/crypto/gc-md4-tests: Moved from ../.
59644         * modules/crypto/gc-md5: Moved from ../.
59645         * modules/crypto/gc-md5-tests: Moved from ../.
59646         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59647         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59648         * modules/crypto/gc-random: Moved from ../.
59649         * modules/crypto/gc-rijndael: Moved from ../.
59650         * modules/crypto/gc-rijndael-tests: Moved from ../.
59651         * modules/crypto/gc-sha1: Moved from ../.
59652         * modules/crypto/gc-sha1-tests: Moved from ../.
59653         * modules/crypto/gc-tests: Moved from ../.
59654         * modules/crypto/hmac-md5: Moved from ../.
59655         * modules/crypto/hmac-md5-tests: Moved from ../.
59656         * modules/crypto/hmac-sha1: Moved from ../.
59657         * modules/crypto/hmac-sha1-tests: Moved from ../.
59658         * modules/crypto/md2: Moved from ../.
59659         * modules/crypto/md2-tests: Moved from ../.
59660         * modules/crypto/md4: Moved from ../.
59661         * modules/crypto/md4-tests: Moved from ../.
59662         * modules/crypto/md5: Moved from ../.
59663         * modules/crypto/md5-tests: Moved from ../.
59664         * modules/crypto/memxor: Moved from ../.
59665         * modules/crypto/rijndael: Moved from ../.
59666         * modules/crypto/rijndael-tests: Moved from ../.
59667         * modules/crypto/sha1: Moved from ../.
59668
59669 2007-03-30  James Youngman  <jay@gnu.org>
59670
59671         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59672         rename() to change the ctime of a file (because ctime is unaffected
59673         by rename on jfs2 on AIX 5.1).
59674         (main): Start by doing cleanup, in case a previous run failed leaving
59675         test files behind.
59676
59677 2007-03-31  Bruno Haible  <bruno@clisp.org>
59678
59679         Support old proprietary implementations of iconv.
59680         * modules/iconv_open: New file.
59681         * lib/iconv_.h: New file.
59682         * m4/iconv_h.m4: New file.
59683         * lib/iconv_open.c: New file.
59684         * lib/iconv_open-aix.gperf: New file.
59685         * lib/iconv_open-hpux.gperf: New file.
59686         * lib/iconv_open-irix.gperf: New file.
59687         * lib/iconv_open-osf.gperf: New file.
59688         * m4/iconv_open.m4: New file.
59689         * modules/linebreak (Depends-on): Add iconv_open.
59690         * modules/striconv (Depends-on): Likewise.
59691         * modules/striconveh (Depends-on): Likewise.
59692         * modules/unicodeio (Depends-on): Likewise.
59693         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59694         (iconv_t)(-1).
59695         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59696         conversion if cd is (iconv_t)(-1).
59697         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59698         is not possible.
59699
59700 2007-03-31  Bruno Haible  <bruno@clisp.org>
59701
59702         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59703         work on Solaris either. Protect also second use of "autodetect_jp".
59704
59705 2007-03-31  Bruno Haible  <bruno@clisp.org>
59706
59707         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59708         the function is not present.
59709
59710 2007-03-31  Bruno Haible  <bruno@clisp.org>
59711
59712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59713         the function is not present.
59714
59715 2007-03-31  Bruno Haible  <bruno@clisp.org>
59716
59717         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59718         a bug in HP-UX iconv_open().
59719
59720 2007-03-31  Bruno Haible  <bruno@clisp.org>
59721
59722         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59723         (Mathematics <math.h>): New section, add fpieee.
59724         (Input/output <stdio.h>): Add fseterr.
59725         (Mathematics <math.h>): New section, add printf-frexp.
59726         (Container data structures): Add sublist.
59727         (Core language properties): Add fpucw, inline.
59728         (Functions for greatest-width integer types <inttypes.h>): Add
59729         imaxabs, imaxdiv, inttypes.
59730         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59731         isnanl-nolibm, ldexp.
59732         (Mathematics <math.h>): New section, add printf-frexpl.
59733         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59734         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59735         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59736         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59737         (Unicode string functions): Add unistr/u*-mbtoucr.
59738         (Java): Add javacomp-script, javaexec-script.
59739         (C#): Add csharpcomp-script, csharpexec-script.
59740         (Support for building libraries and executables): Add havelib,
59741         relocatable-*.
59742         (Support for maintaining and releasing projects): Renamed from
59743         'Support for maintaining and release projects'. Add announce-gen.
59744
59745 2007-03-31  Bruno Haible  <bruno@clisp.org>
59746
59747         * README: Talk primarily about git.
59748         (git and CVS): Renamed from CVS.
59749         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59750         gnulib is available through git.
59751         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59752
59753 2007-03-30  Bruno Haible  <bruno@clisp.org>
59754
59755         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59756         * lib/poll_.h: Likewise.
59757         * lib/stat_.h: Likewise.
59758         * lib/sys_time_.h: Likewise.
59759         * lib/sysexit_.h: Likewise.
59760         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59761         * lib/stdbool_.h: Likewise.
59762         * lib/byteswap_.h: Add double-inclusion guard.
59763
59764 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59765
59766         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59767
59768 2007-03-30  Karl Berry  <karl@gnu.org>
59769
59770         * config/srclist-update: double space after USA in the license
59771         substitution, since that's how it's usually (?) written.
59772
59773 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59774
59775         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59776         reported by Bruno Haible.
59777
59778 2007-03-29  Bruno Haible  <bruno@clisp.org>
59779
59780         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59781         a bug in AIX iconv().
59782
59783 2007-03-29  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/ldexpl-tests: New file.
59786         * tests/test-ldexpl.c: New file.
59787
59788 2007-03-29  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/ldexpl.c: Include fpucw.h.
59791         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59792         multiplication.
59793         * modules/ldexpl (Depends-on): Add fpucw.
59794
59795 2007-03-29  Bruno Haible  <bruno@clisp.org>
59796
59797         * modules/ldexpl: New file.
59798         * m4/ldexpl.m4: New file.
59799         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59800         set.
59801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59802         REPLACE_LDEXPL.
59803         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59804         REPLACE_LDEXPL.
59805         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59806         gl_FUNC_LDEXPL_WORKS.
59807         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59808         * modules/mathl (Files): Remove lib/ldexpl.c.
59809         (Depends-on): Add ldexpl.
59810
59811 2007-03-29  Bruno Haible  <bruno@clisp.org>
59812
59813         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59814
59815 2007-03-29  Bruno Haible  <bruno@clisp.org>
59816
59817         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59818         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59819         and possibly also HP-UX.
59820         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59821         work on AIX, IRIX, HP-UX, OSF/1.
59822         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59823         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59824         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59825         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59826         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59827         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59828
59829 2007-03-29  Bruno Haible  <bruno@clisp.org>
59830
59831         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59832
59833 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59834
59835         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59836         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59837
59838 2007-03-29  Eric Blake  <ebb9@byu.net>
59839
59840         * lib/acl-internal.h: Remove redundant include.
59841         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59842         Cygwin when a file is locked.
59843
59844 2007-03-29  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59847         file.
59848         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59849
59850 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59853         try to remove a parent directory if the child couldn't be removed
59854         (except for the first rmdir, which could fail because the child
59855         doesn't exist).  Problem reported by Jeff Blaine in
59856         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59857
59858 2007-03-28  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/striconveh.c (utf8conv_carefully): New function.
59861         (mem_cd_iconveh_internal): Invoke it.
59862
59863 2007-03-28  Bruno Haible  <bruno@clisp.org>
59864
59865         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59866         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59867         input.
59868         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59869         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59870         unistr/u8-uctomb.
59871
59872 2007-03-28  Bruno Haible  <bruno@clisp.org>
59873
59874         * modules/unistr/u8-mbtoucr: New file.
59875         * lib/unistr/u8-mbtoucr.c: New file.
59876         * modules/unistr/u16-mbtoucr: New file.
59877         * lib/unistr/u16-mbtoucr.c: New file.
59878         * modules/unistr/u16-mbtoucr: New file.
59879         * lib/unistr/u16-mbtoucr.c: New file.
59880         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59881
59882 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59883             Bruno Haible  <bruno@clisp.org>
59884
59885         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59886         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59887         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59888
59889         * m4/stdio_h.m4: Add stubs for vasprintf too.
59890
59891         * modules/stdio: Support vasprintf in sed command.
59892
59893         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59894         vasprintf.h.  Add stdio module indicator.
59895
59896         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59897         vasprintf.h.
59898
59899         * lib/vasprintf.h: File removed.
59900
59901         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59902         * lib/vasprintf.c: Ditto.
59903         * lib/xvasprintf.c: Ditto.
59904         * tests/test-vasprintf-posix.c: Ditto.
59905         * tests/test-vasprintf.c: Ditto.
59906
59907 2007-03-27  Bruno Haible  <bruno@clisp.org>
59908
59909         Make vasnprintf multithread-safe.
59910         * lib/vasnprintf.c (decimal_point_char): New function.
59911         (VASNPRINTF): Use it.
59912         Suggested by Simon Josefsson.
59913
59914 2007-03-27  Eric Blake  <ebb9@byu.net>
59915
59916         Support sub-second birthtime on cygwin.
59917         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59918         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59919         (get_stat_birthtime): Also work with st_birthtim.
59920
59921 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59924         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59925         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59926         (get_stat_birthtime_ns): Simplify compile-time tests.
59927         (get_stat_birthtime): Change the API to look like
59928         get_stat_mtime etc., except return a negative tv_nsec on error.
59929         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59930         Don't check for "spare" fields.
59931         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59932         or for struct stat.st_birthtime, as these tests aren't used.
59933         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59934
59935 2007-03-27  Bruno Haible  <bruno@clisp.org>
59936
59937         * lib/stat-time.h: Include <sys/stat.h>.
59938
59939 2007-03-27  James Youngman  <jay@gnu.org>
59940
59941         * lib/stat-time.h (get_stat_birthtime): New function for
59942           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59943         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59944           and its variants.
59945         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59946         * modules/stat-time-test: New file.
59947         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59948
59949 2007-03-26  Bruno Haible  <bruno@clisp.org>
59950
59951         Better support of signalling NaNs.
59952         * lib/atanl.c: Include isnanl.h.
59953         (atanl): Perform test for NaN at the beginning of the function and
59954         through a call to isnanl.
59955         * lib/cosl.c: Include isnanl.h.
59956         (cosl): Perform test for NaN at the beginning of the function and
59957         through a call to isnanl.
59958         * lib/ldexpl.c: Include isnanl.h.
59959         (ldexpl): Perform test for NaN through a call to isnanl.
59960         * lib/logl.c: Include isnanl.h.
59961         (logl): Perform test for NaN at the beginning of the function and
59962         through a call to isnanl.
59963         * lib/sinl.c: Include isnanl.h.
59964         (sinl): Perform test for NaN at the beginning of the function and
59965         through a call to isnanl.
59966         * lib/sqrtl.c: Include isnanl.h.
59967         (sqrtl): Perform test for NaN at the beginning of the function and
59968         through a call to isnanl.
59969         * lib/tanl.c: Include isnanl.h.
59970         (tanl): Perform test for NaN at the beginning of the function and
59971         through a call to isnanl.
59972         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59973         * modules/mathl (Depends-on): Add isnanl.
59974
59975 2007-03-26  Eric Blake  <ebb9@byu.net>
59976
59977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59978         regression in logic sense of previous patch.
59979
59980 2007-03-26  Bruno Haible  <bruno@clisp.org>
59981
59982         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59983         unportable shell command "if ! ...".
59984         Reported by Ralf Wildenhues.
59985
59986 2007-03-25  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59989         <sysexits.h> file, and only add EX_CONFIG.
59990         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59991         absolute file name and whether it is sufficient. Substitute also
59992         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59993         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59994         ABSOLUTE_SYSEXITS_H into sysexits.h.
59995
59996 2007-03-25  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59999         hints is NULL.
60000
60001 2007-03-25  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60004         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60005
60006 2007-03-25  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/vasnprintf.c: Include langinfo.h.
60009         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60010         multithread-safe.
60011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60012         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60013         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60014         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60017         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60019         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60020         Reported by Simon Josefsson.
60021
60022 2007-03-25  Bruno Haible  <bruno@clisp.org>
60023
60024         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60025         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60026         * modules/vasnprintf (Depends-on): Add stdint.
60027
60028 2007-03-25  Bruno Haible  <bruno@clisp.org>
60029
60030         * modules/fpieee: New file.
60031         * m4/fpieee.m4: New file.
60032         * modules/isnan-nolibm (Depends-on): Add fpieee.
60033         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60034         * modules/isnanl (Depends-on): Add fpieee.
60035
60036 2007-03-25  Bruno Haible  <bruno@clisp.org>
60037
60038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60039
60040 2007-03-25  Bruno Haible  <bruno@clisp.org>
60041
60042         Avoid test failures on IRIX 6.5.
60043         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60044         (main): Use it.
60045         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60046         macros.
60047         (main): Use them.
60048
60049 2007-03-25  Bruno Haible  <bruno@clisp.org>
60050
60051         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60052         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60053         exists but doesn't work.
60054         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60055         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60057         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60058         math.h.
60059
60060 2007-03-25  Bruno Haible  <bruno@clisp.org>
60061
60062         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60063         returns inf. Needed on IRIX 6.5.
60064
60065 2007-03-25  Bruno Haible  <bruno@clisp.org>
60066
60067         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60068         (main): Use isnanl instead of x != x idiom.
60069         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60070
60071         * tests/test-frexp.c: Include isnan.h.
60072         (main): Use isnan instead of x != x idiom.
60073         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60074
60075 2007-03-25  Bruno Haible  <bruno@clisp.org>
60076
60077         * tests/test-frexp.c (NaN): New function/macro.
60078         (main): Use it instead of 0.0 / 0.0.
60079         * tests/test-isnan.c (NaN): New function/macro.
60080         (main): Use it instead of 0.0 / 0.0.
60081         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60082         (test_function): Use it instead of 0.0 / 0.0.
60083         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60084         (test_function): Use it instead of 0.0 / 0.0.
60085         * tests/test-snprintf-posix.h (NaN): New function/macro.
60086         (test_function): Use it instead of 0.0 / 0.0.
60087         * tests/test-sprintf-posix.h (NaN): New function/macro.
60088         (test_function): Use it instead of 0.0 / 0.0.
60089         * tests/test-fprintf-posix.h (NaN): New function/macro.
60090         (test_function): Use it instead of 0.0 / 0.0.
60091         * tests/test-printf-posix.h (NaN): New function/macro.
60092         (test_function): Use it instead of 0.0 / 0.0.
60093
60094         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60095
60096 2007-03-25  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60099
60100 2007-03-25  Bruno Haible  <bruno@clisp.org>
60101
60102         * lib/regexec.c (merge_state_with_log): Make static.
60103
60104 2007-03-25  Bruno Haible  <bruno@clisp.org>
60105
60106         * lib/trigl.c (kernel_rem_pio2): Make static.
60107
60108 2007-03-25  Bruno Haible  <bruno@clisp.org>
60109
60110         * lib/sincosl.c (sincosl_table): Make static.
60111
60112 2007-03-25  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60115         if the compiler does not support C99.
60116
60117 2007-03-25  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/time (Makefile.am): Ensure all rule action lines start with a
60120         tab.
60121
60122 2007-03-24  Bruno Haible  <bruno@clisp.org>
60123
60124         * modules/tsearch-tests: New file.
60125         * tests/test-tsearch.sh: New file.
60126         * tests/test-tsearch.c: New file, mostly copied from glibc.
60127
60128         * modules/search-tests: New file.
60129         * tests/test-search.c: New file.
60130
60131         * modules/search: New file.
60132         * lib/search_.h: New file, incorporating lib/tsearch.h.
60133         * m4/search_h.m4: New file.
60134         * lib/tsearch.h: Remove file.
60135         * lib/tsearch.c: Include search.h instead of tsearch.h.
60136         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60137         HAVE_TSEARCH.
60138         * modules/tsearch (Files): Remove lib/tsearch.h.
60139         (Depends-on): Add search.
60140         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60141         (Include): Change tsearch.h into search.h.
60142
60143 2007-03-24  Bruno Haible  <bruno@clisp.org>
60144
60145         * modules/fpucw: New file.
60146         * lib/fpucw.h: New file.
60147         * lib/frexp.c: Include fpucw.h.
60148         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60149         (FUNC): Use them.
60150         * lib/printf-frexp.c: Include fpucw.h.
60151         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60152         (FUNC): Use them.
60153         * lib/vasnprintf.c: Include fpucw.h.
60154         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60155         'long double' calculations.
60156         * tests/test-frexpl.c: Include fpucw.h.
60157         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60158         * tests/test-printf-frexpl.c: Include fpucw.h.
60159         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60160         * modules/frexpl (Depends-on): Add fpucw.
60161         * modules/printf-frexpl (Depends-on): Likewise.
60162         * modules/fprintf-posix (Depends-on): Likewise.
60163         * modules/snprintf-posix (Depends-on): Likewise.
60164         * modules/sprintf-posix (Depends-on): Likewise.
60165         * modules/vasnprintf-posix (Depends-on): Likewise.
60166         * modules/vasprintf-posix (Depends-on): Likewise.
60167         * modules/vfprintf-posix (Depends-on): Likewise.
60168         * modules/vsnprintf-posix (Depends-on): Likewise.
60169         * modules/vsprintf-posix (Depends-on): Likewise.
60170         * modules/frexpl-tests (Depends-on): Likewise.
60171         * modules/printf-frexpl-tests (Depends-on): Likewise.
60172
60173 2007-03-24  Bruno Haible  <bruno@clisp.org>
60174
60175         * lib/float+.h: New file.
60176         * lib/isnan.c: Include float+.h.
60177         (SIZE): New macro.
60178         (FUNC): Compare only SIZE bytes of the value.
60179         * lib/vasnprintf.c: Include float+.h.
60180         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60181         SIZEOF_LDBL or SIZEOF_DBL bytes.
60182         * modules/isnan-nolibm (Files): Add lib/float+.h.
60183         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60184         * modules/isnanl (Files): Add lib/float+.h.
60185         * modules/vasnprintf (Files): Add lib/float+.h.
60186
60187 2007-03-24  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60190         include isnanl-nolibm.h.
60191
60192 2007-03-24  Bruno Haible  <bruno@clisp.org>
60193
60194         * tests/test-read-file.c (main): Don't produce spurious output for
60195         expected situations. Make the test fail if it encountered unexpected
60196         results.
60197
60198 2007-03-24  Bruno Haible  <bruno@clisp.org>
60199
60200         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60201         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60202
60203 2007-03-24  Bruno Haible  <bruno@clisp.org>
60204
60205         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60206
60207 2007-03-24  Bruno Haible  <bruno@clisp.org>
60208
60209         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60210         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60211
60212         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60213         * modules/utf8-ucs4: Turn into a symbolic link to module
60214         unistr/u8-mbtouc.
60215
60216         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60217         utf8-ucs4-unsafe.
60218         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60219         unistr/u8-mbtouc-unsafe.
60220
60221         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60222         * modules/utf16-ucs4: Turn into a symbolic link to module
60223         unistr/u16-mbtouc.
60224
60225         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60226         utf16-ucs4-unsafe.
60227         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60228         unistr/u16-mbtouc-unsafe.
60229
60230         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60231         * modules/ucs4-utf8: Turn into a symbolic link to module
60232         unistr/u8-ubtomb.
60233
60234         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60235         * modules/ucs4-utf16: Turn into a symbolic link to module
60236         unistr/u16-ubtomb.
60237
60238 2007-03-24  Bruno Haible  <bruno@clisp.org>
60239
60240         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60241         Enable the function only if HAVE_INLINE.
60242         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60243         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60244         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60245         Enable the function only if HAVE_INLINE.
60246         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60247         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60248         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60249         Enable the function only if HAVE_INLINE.
60250         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60251         Enable the function only if HAVE_INLINE.
60252         * modules/utf8-ucs4: Update.
60253         * modules/utf8-ucs4-unsafe: Update.
60254         * modules/utf16-ucs4: Update.
60255         * modules/utf16-ucs4-unsafe: Update.
60256         * modules/ucs4-utf8: Update.
60257         * modules/ucs4-utf16: Update.
60258
60259 2007-03-24  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/utf8-ucs4.h: Remove file.
60262         * lib/utf8-ucs4-unsafe.h: Remove file.
60263         * lib/utf16-ucs4.h: Remove file.
60264         * lib/utf16-ucs4-unsafe.h: Remove file.
60265         * lib/ucs4-utf8.h: Remove file.
60266         * lib/ucs4-utf16.h: Remove file.
60267         * lib/unistr.h: Include their previous contents.
60268         * m4/utf-ucs4.m4: Remove file.
60269         * m4/ucs4-utf.m4: Remove file.
60270         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60271         (Depends-on): Add unistr/base.
60272         (configure.ac): Remove gl_UTF_UCS4.
60273         (Makefile.am): Update.
60274         (Include): Change to unistr.h.
60275         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60276         (Depends-on): Add unistr/base.
60277         (configure.ac): Remove gl_UTF_UCS4.
60278         (Makefile.am): Update.
60279         (Include): Change to unistr.h.
60280         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60281         (Depends-on): Add unistr/base.
60282         (configure.ac): Remove gl_UTF_UCS4.
60283         (Makefile.am): Update.
60284         (Include): Change to unistr.h.
60285         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60286         (Depends-on): Add unistr/base.
60287         (configure.ac): Remove gl_UTF_UCS4.
60288         (Makefile.am): Update.
60289         (Include): Change to unistr.h.
60290         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60291         (Depends-on): Add unistr/base.
60292         (configure.ac): Remove gl_UCS4_UTF.
60293         (Makefile.am): Update.
60294         (Include): Change to unistr.h.
60295         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60296         (Depends-on): Add unistr/base.
60297         (configure.ac): Remove gl_UCS4_UTF.
60298         (Makefile.am): Update.
60299         (Include): Change to unistr.h.
60300         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60301         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60302         utf8-ucs4-unsafe.h.
60303         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60304         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60305         utf16-ucs4-unsafe.h.
60306         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60307         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60308         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60309         * lib/unistr/u8-strchr.c: Likewise.
60310         * lib/unistr/u8-strrchr.c: Likewise.
60311         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60312         * lib/unistr/u16-strchr.c: Likewise.
60313         * lib/unistr/u16-strrchr.c: Likewise.
60314         * lib/striconveh.c: Update.
60315         * lib/linebreak.c: Update.
60316
60317 2007-03-24  Bruno Haible  <bruno@clisp.org>
60318
60319         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60320         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60321
60322 2007-03-22  Bruno Haible  <bruno@clisp.org>
60323
60324         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60325
60326 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         * MODULES.html.sh (File system functions): New module write-any-file.
60329         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60330         * m4/write-any-file.m4: New files.
60331
60332 2007-03-23  Eric Blake  <ebb9@byu.net>
60333
60334         * gnulib-tool: Rearrange space-tab sequences, since some editors
60335         like to eat them.
60336
60337 2007-03-23  Eric Blake  <ebb9@byu.net>
60338
60339         * lib/version-etc.c (version_etc_va): Update license wording to
60340         be more concise.  Recommended by Richard Stallman.
60341
60342 2007-03-22  Bruno Haible  <bruno@clisp.org>
60343
60344         * lib/poll.c (MSG_PEEK): New fallback definition.
60345
60346 2007-03-22  Bruno Haible  <bruno@clisp.org>
60347
60348         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60349         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60350         (main): Update.
60351         Fixes a compilation error on BeOS.
60352
60353 2007-03-22  Bruno Haible  <bruno@clisp.org>
60354
60355         * modules/frexpl-tests: New file.
60356         * tests/test-frexpl.c: New file.
60357
60358         * modules/frexpl: New file.
60359         * m4/frexpl.m4: New file.
60360         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60361         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60363         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60364         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60365         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60366
60367 2007-03-22  Bruno Haible  <bruno@clisp.org>
60368
60369         * lib/frexpl.c: Share code with lib/frexp.c.
60370         * modules/mathl (Files): Add lib/frexp.c.
60371         (Depends-on): Add isnanl-nolibm.
60372
60373 2007-03-22  Bruno Haible  <bruno@clisp.org>
60374
60375         * modules/printf-frexp (Files): Add m4/frexp.m4.
60376         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60377         only if the found frexp function actually works.
60378
60379 2007-03-22  Bruno Haible  <bruno@clisp.org>
60380
60381         * lib/frexp.c: Remove older implementation that uses divisions.
60382
60383 2007-03-21  Bruno Haible  <bruno@clisp.org>
60384
60385         * modules/frexp-tests: New file.
60386         * tests/test-frexp.c: New file.
60387
60388         * modules/frexp: New file.
60389         * lib/frexp.c: New file.
60390         * m4/frexp.m4: New file.
60391         * lib/math_.h (frexp): New declaration.
60392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60393         REPLACE_FREXP.
60394         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60395
60396 2007-03-21  Bruno Haible  <bruno@clisp.org>
60397
60398         * modules/isnanl-tests: New file.
60399         * tests/test-isnanl.c: New file.
60400
60401         * modules/isnanl: New file.
60402         * lib/isnanl.h: New file.
60403         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60404         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60405         gl_FUNC_ISNANL_WORKS.
60406         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60407         New macros.
60408
60409 2007-03-21  Bruno Haible  <bruno@clisp.org>
60410
60411         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60412         lib/isnanl.h.
60413         (Include): Update.
60414         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60415         * lib/vasnprintf.c: Update.
60416         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60417         tests/test-isnanl.h, remove tests/test-isnanl.c.
60418         (Makefile.am): Update.
60419         * tests/test-isnanl-nolibm.c: New file.
60420         * tests/test-isnanl.h: New file.
60421         * tests/test-isnanl.c: Remove file.
60422
60423 2007-03-21  Jim Meyering  <jim@meyering.net>
60424
60425         When trying to open ".", treat ESTALE like EACCES.
60426         * lib/savewd.c (savewd_save): Resort to forking not just upon
60427         failure with EACCES, but also when errno is ESTALE.
60428
60429 2007-03-20  Bruno Haible  <bruno@clisp.org>
60430
60431         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60432         Needed on AIX 5.1. Reported by Matthew Woehlke.
60433
60434 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60435
60436         Suggestions by Bruno Haible:
60437         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60438         our own.
60439         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60440         * modules/acl (Depends-on): Add gettext.
60441
60442 2007-03-19  Bruno Haible  <bruno@clisp.org>
60443
60444         * modules/iconvme: Remove file.
60445         * lib/iconvme.h: Remove file.
60446         * lib/iconvme.c: Remove file.
60447         * m4/iconvme.m4: Remove file.
60448
60449 2007-03-19  Bruno Haible  <bruno@clisp.org>
60450
60451         * doc/relocatable-maint.texi: Break long shell script line.
60452         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60453
60454 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60455
60456         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60457         handle file_has_acl.
60458         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60459         * lib/acl.c: Move header inclusions and related macro defns into
60460         lib/acl-internal.h.
60461         (S_ISLNK): Remove defn, since that's now done for us.
60462         (file_has_acl): Move to lib/file-has-acl.c.
60463         Call acl_trivial if available.  This is the crucial part of the fix.
60464         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60465         shared within the library.  Rewrite a bit, partly to make it compatible
60466         with the GNU coding style.
60467         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60468         Remove unnecessary double-quotes.
60469         Don't test for acl_to_text; the build will catch that.
60470         Replace acl_entries if it doesn't exist and it is needed.
60471         Check for -lsec and acl_trivial (as used on Solaris 10).
60472         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60473         lib/file-has-acl.c.
60474         (Depends-on): Add sys_stat, for S_ISLNK.
60475
60476 2007-03-19  Ben Pfaff  <blp@gnu.org>
60477
60478         * doc/gnulib.texi: Fix typos.
60479         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60480
60481 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60484         If size is zero here, buf must be zero.
60485
60486 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60487
60488         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60489         <bruno@clisp.org>.
60490
60491 2007-03-18  Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60494         Suggested by Eric Blake.
60495
60496 2007-03-18  Ben Pfaff  <blp@gnu.org>
60497
60498         * doc/relocatable.texi: Recommend using as prefix a directory
60499         that does not exist and will never be created.  Based on
60500         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60501         and others.
60502
60503 2007-03-17  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/fchownat.c: Include lchown.h.
60506
60507 2007-03-17  Bruno Haible  <bruno@clisp.org>
60508
60509         Fix endless loop when the given allocated size was > INT_MAX.
60510         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60511         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60512         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60513         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60514         * lib/sprintf.c (sprintf): Likewise.
60515
60516 2007-03-17  Bruno Haible  <bruno@clisp.org>
60517
60518         * tests/test-argp-2.sh (func_compare): Output a context diff.
60519
60520 2007-03-17  Bruno Haible  <bruno@clisp.org>
60521
60522         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60523         locale's decimal-point character.
60524
60525 2007-03-17  Bruno Haible  <bruno@clisp.org>
60526
60527         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60528         before comparing it. Needed because on some platforms (e.g. x86) a
60529         'long double' occupies less bytes than sizeof (long double).
60530
60531 2007-03-17  Bruno Haible  <bruno@clisp.org>
60532
60533         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60534         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60535         * tests/test-getaddrinfo.c (simple): Likewise.
60536         * tests/test-read-file.c (main): Likewise.
60537
60538 2007-03-17  Bruno Haible  <bruno@clisp.org>
60539
60540         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60541
60542 2007-03-17  Bruno Haible  <bruno@clisp.org>
60543
60544         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60545         unused variable.
60546
60547 2007-03-17  Bruno Haible  <bruno@clisp.org>
60548
60549         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60550         * tests/test-c-strncasecmp.c: Likewise.
60551
60552 2007-03-17  Bruno Haible  <bruno@clisp.org>
60553
60554         * modules/stdlib (Depends-on): Add unistd.
60555         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60556         Needed for MacOS X 10.3.
60557
60558 2007-03-17  Bruno Haible  <bruno@clisp.org>
60559
60560         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60561
60562 2007-03-17  Bruno Haible  <bruno@clisp.org>
60563
60564         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60565
60566 2007-03-17  Bruno Haible  <bruno@clisp.org>
60567
60568         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60569         to reflect files copied from gnulib (with or without modifications).
60570         Suggested by Jim Meyering.
60571
60572 2007-03-17  Eric Blake  <ebb9@byu.net>
60573
60574         * NEWS: Document stdlib change from 2007-02-18.
60575
60576 2007-03-17  Jim Meyering  <jim@meyering.net>
60577
60578         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60579         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60580         someone uses a name containing shell meta-characters.
60581         Reported by Alfred M. Szmidt.
60582
60583         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60584
60585 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60586
60587         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60588         and copy gettext configuration files only if configure.ac contains
60589         a use of AM_GNU_GETTEXT_VERSION.
60590
60591 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60592
60593         * build-aux/bootstrap (gnulib_name): New variable.
60594         (gnulib_tool_options): Use it.
60595
60596 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60597
60598         * tests/test-des.c: Use new namespace.
60599
60600 2007-03-15  Bruno Haible  <bruno@clisp.org>
60601
60602         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60603         Reported by James Youngman <jay@gnu.org>.
60604
60605 2007-03-15  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60608         declared prototype. Needed with cc on OSF/1 5.1.
60609
60610 2007-03-15  Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60613         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60614         (struct gl_list_implementation): Add dispose_fn argument to the
60615         'create_empty', 'create' methods.
60616         (struct gl_list_impl_base): Add field 'dispose_fn'.
60617         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60618         argument.
60619         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60620         dispose_fn argument.
60621         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60622         dispose_fn on the dropped values.
60623         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60624         dispose_fn argument.
60625         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60626         dropped values.
60627         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60628         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60629         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60630         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60631         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60632         argument.
60633         (gl_tree_list_free): Call dispose_fn on the dropped values.
60634         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60635         the dropped values.
60636         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60637         Add dispose_fn argument.
60638         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60639         Call dispose_fn on the dropped values.
60640         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60641         Add dispose_fn argument.
60642         (gl_sublist_create): Initialize the 'dispose_fn' field.
60643         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60644         * tests/test-array_list.c (main): Update.
60645         * tests/test-carray_list.c (main): Update.
60646         * tests/test-avltree_list.c (main): Update.
60647         * tests/test-rbtree_list.c (main): Update.
60648         * tests/test-avltreehash_list.c (main): Update.
60649         * tests/test-rbtreehash_list.c (main): Update.
60650         * tests/test-linked_list.c (main): Update.
60651         * tests/test-linkedhash_list.c (main): Update.
60652         * tests/test-array_oset.c (main): Update.
60653
60654 2007-03-15  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60657         (gl_oset_create_empty): Add dispose_fn argument.
60658         (struct gl_oset_implementation): Add dispose_fn argument to
60659         'create_empty' method.
60660         (struct gl_oset_impl_base): Add dispose_fn field.
60661         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60662         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60663         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60664         values.
60665         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60666         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60667         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60668         dropped value.
60669         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60670         dropped value.
60671         * tests/test-array_oset.c (main): Update.
60672         * tests/test-avltree_oset.c (main): Update.
60673         * tests/test-rbtree_oset.c (main): Update.
60674         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60675
60676 2007-03-13  Bruno Haible  <bruno@clisp.org>
60677
60678         * tests/test-stdbool.c (i): Update after last patch.
60679
60680 2007-03-12  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60683         the iswprint macro. Needed on Solaris 2.5.1.
60684
60685 2007-03-12  Bruno Haible  <bruno@clisp.org>
60686
60687         * tests/test-printf-frexp.c (main): Declare x as volatile.
60688
60689 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60690
60691         * doc/gnulib.texi (Build robot for gnulib): New section.
60692
60693 2007-03-12  Jim Meyering  <jim@meyering.net>
60694
60695         * build-aux/bootstrap: New file.
60696         * build-aux/bootstrap.conf: New file, from coreutils.
60697
60698 2007-03-11  Bruno Haible  <bruno@clisp.org>
60699
60700         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60701
60702 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60703
60704         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60705         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60706         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60707
60708 2007-03-11  Bruno Haible  <bruno@clisp.org>
60709
60710         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60711         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60712
60713 2007-03-11  Bruno Haible  <bruno@clisp.org>
60714
60715         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60716         formula. Needed for SunPRO C 5.0.
60717
60718 2007-03-11  Bruno Haible  <bruno@clisp.org>
60719
60720         * modules/long-options (Depends-on): Add getopt.
60721
60722 2007-03-11  Bruno Haible  <bruno@clisp.org>
60723
60724         * modules/modechange (Depends-on): Add stdbool.
60725
60726 2007-03-11  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/i-ring (Depends-on): Add stdbool.
60729
60730 2007-03-11  Bruno Haible  <bruno@clisp.org>
60731
60732         * modules/gc-des (Depends-on): Add stdbool.
60733
60734 2007-03-11  Bruno Haible  <bruno@clisp.org>
60735
60736         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60737
60738 2007-03-11  Bruno Haible  <bruno@clisp.org>
60739
60740         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60741
60742 2007-03-11  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60745
60746 2007-03-11  Bruno Haible  <bruno@clisp.org>
60747
60748         * lib/vasnprintf.c (sprintf): Undefine.
60749
60750 2007-03-11  Bruno Haible  <bruno@clisp.org>
60751
60752         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60753         initializers in SunPRO C and Compaq C compilers.
60754
60755 2007-03-11  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60758         decrementing code ANSI C compliant.
60759
60760 2007-03-11  Bruno Haible  <bruno@clisp.org>
60761
60762         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60763         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60764
60765 2007-03-11  Bruno Haible  <bruno@clisp.org>
60766
60767         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60768         <stdbool.h> substitute doesn't pass.
60769
60770 2007-03-11  Bruno Haible  <bruno@clisp.org>
60771
60772         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60773
60774 2007-03-11  Bruno Haible  <bruno@clisp.org>
60775
60776         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60777         script, for submission to autobuild.josefsson.org.
60778
60779 2007-03-10  Bruno Haible  <bruno@clisp.org>
60780
60781         * modules/canonicalize-lgpl-tests: New file.
60782         * tests/test-canonicalize-lgpl.sh: New file.
60783         * tests/test-canonicalize-lgpl.c: New file.
60784
60785         * modules/c-strcase-tests: New file.
60786         * tests/test-c-strcase.sh: New file.
60787         * tests/test-c-strcasecmp.c: New file.
60788         * tests/test-c-strncasecmp.c: New file.
60789
60790         * modules/atexit-tests: New file.
60791         * tests/test-atexit.sh: New file.
60792         * tests/test-atexit.c: New file.
60793
60794 2007-03-10  Bruno Haible  <bruno@clisp.org>
60795
60796         * tests/test-binary-io.sh: Use temporary filenames that are not so
60797         likely to clash with those of other tests (in a parallel make).
60798         * tests/test-binary-io.c: Likewise.
60799
60800 2007-03-10  Bruno Haible  <bruno@clisp.org>
60801
60802         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60803         fallback; use #error instead.
60804         Suggested by Simon Josefsson.
60805
60806 2007-03-10  Bruno Haible  <bruno@clisp.org>
60807
60808         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60809         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60810         first and the last.
60811
60812 2007-03-10  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60815
60816 2007-03-10  Bruno Haible  <bruno@clisp.org>
60817
60818         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60819         "make distcheck".
60820         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60821         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60822         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60823
60824 2007-03-10  Bruno Haible  <bruno@clisp.org>
60825
60826         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60827         variable.
60828         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60829         variable.
60830
60831 2007-03-09  Eric Blake  <ebb9@byu.net>
60832         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60833
60834         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60835         types are not being provided by gnulib.
60836         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60837         types are supported.
60838
60839 2007-03-10  Bruno Haible  <bruno@clisp.org>
60840
60841         * lib/stdio_.h (__attribute__): New macro.
60842         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60843         vsprintf): Specify __attribute__ __format__ for GCC.
60844         Suggested by Eric Blake.
60845
60846 2007-03-09  Bruno Haible  <bruno@clisp.org>
60847
60848         * modules/printf-posix-tests: New file.
60849         * tests/test-printf-posix.sh: New file.
60850         * tests/test-printf-posix.c: New file.
60851
60852         * modules/printf-posix: New file.
60853         * lib/printf.c: New file.
60854         * m4/printf-posix-rpl.m4: New file.
60855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60856         REPLACE_PRINTF.
60857         * lib/stdio_.h (printf): New declaration.
60858         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60859         ____strfmon____): New macros.
60860         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60861         REPLACE_PRINTF.
60862
60863 2007-03-09  Bruno Haible  <bruno@clisp.org>
60864
60865         * tests/test-vasnprintf-posix2.sh: New file.
60866         * tests/test-vasnprintf-posix2.c: New file.
60867         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60868         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60869         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60870
60871         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60872         a locale dependent decimal point, rather than always '.'.
60873
60874 2007-03-09  Eric Blake  <ebb9@byu.net>
60875
60876         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60877         spite of platforms like Tandem/NSK that define it to -1.
60878
60879 2007-03-08  Bruno Haible  <bruno@clisp.org>
60880
60881         * modules/vprintf-posix-tests: New file.
60882         * tests/test-vprintf-posix.sh: New file.
60883         * tests/test-vprintf-posix.c: New file.
60884         * tests/test-printf-posix.h: New file.
60885
60886         * modules/vprintf-posix: New file.
60887         * lib/vprintf.c: New file.
60888         * m4/vprintf-posix.m4: New file.
60889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60890         REPLACE_VPRINTF.
60891         * lib/stdio_.h (vprintf): New declaration.
60892         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60893         REPLACE_VPRINTF.
60894
60895 2007-03-08  Bruno Haible  <bruno@clisp.org>
60896
60897         * modules/fprintf-posix-tests: New file.
60898         * tests/test-fprintf-posix.sh: New file.
60899         * tests/test-fprintf-posix.c: New file.
60900
60901         * modules/fprintf-posix: New file.
60902         * lib/fprintf.c: New file.
60903         * m4/fprintf-posix.m4: New file.
60904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60905         REPLACE_FPRINTF.
60906         * lib/stdio_.h (fprintf): New declaration.
60907         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60908         REPLACE_FPRINTF.
60909
60910 2007-03-08  Bruno Haible  <bruno@clisp.org>
60911
60912         * modules/vfprintf-posix-tests: New file.
60913         * tests/test-vfprintf-posix.sh: New file.
60914         * tests/test-vfprintf-posix.c: New file.
60915         * tests/test-fprintf-posix.h: New file.
60916         * tests/test-fprintf-posix.out: New file.
60917
60918         * modules/vfprintf-posix: New file.
60919         * lib/vfprintf.c: New file.
60920         * m4/vfprintf-posix.m4: New file.
60921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60922         REPLACE_VFPRINTF.
60923         * lib/stdio_.h (vfprintf): New declaration.
60924         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60925         REPLACE_VFPRINTF.
60926
60927 2007-03-08  Bruno Haible  <bruno@clisp.org>
60928
60929         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60930
60931 2007-03-08  Bruno Haible  <bruno@clisp.org>
60932
60933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60934         instead of 'expr' invocations.
60935         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60939         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60940         Suggested by Paul Eggert.
60941
60942 2007-03-08  Bruno Haible  <bruno@clisp.org>
60943
60944         * modules/fseterr-tests: New file.
60945         * tests/test-fseterr.c: New file.
60946
60947         * modules/fseterr: New file.
60948         * lib/fseterr.h: New file.
60949         * lib/fseterr.c: New file.
60950
60951 2007-03-08  Bruno Haible  <bruno@clisp.org>
60952
60953         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60954         * lib/getopt_.h: Likewise.
60955         * lib/mbswidth.h: Likewise.
60956         * lib/setenv.h: Likewise.
60957         * lib/vasnprintf.h: Likewise.
60958         * lib/vasprintf.h: Likewise.
60959         * lib/verror.h: Likewise.
60960         * lib/xsetenv.h: Likewise.
60961         * lib/xvasprintf.h: Likewise.
60962
60963 2007-03-08  Jim Meyering  <jim@meyering.net>
60964
60965         * users.txt: Add parted.
60966
60967         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60968
60969 2007-03-07  Bruno Haible  <bruno@clisp.org>
60970
60971         * m4/printf.m4: Make the shell script snippets copy&pastable.
60972
60973 2007-03-02  Bruno Haible  <bruno@clisp.org>
60974
60975         * lib/netinet_in_.h: New file.
60976         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60977         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60978         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60979         (Depends-on): Add absolute-header.
60980         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60981         into netinet/in.h.
60982
60983 2007-03-03  Bruno Haible  <bruno@clisp.org>
60984
60985         * lib/sys_select_.h: New file.
60986         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60987         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60988         * modules/sys_select (Files): Add lib/sys_select_.h.
60989         (Depends-on): Add absolute-header.
60990         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60991         into sys/select.h.
60992
60993 2007-03-02  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60996         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60997         values.
60998         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60999         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61000         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61001         * modules/sys_socket (Depends-on): Add absolute-header.
61002         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61003         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61004         (Include): Remove requirement of inclusion of <sys/types.h>.
61005
61006 2007-03-02  Bruno Haible  <bruno@clisp.org>
61007
61008         * lib/byteswap_.h (bswap_32): Fix formula.
61009
61010 2007-03-06  Bruno Haible  <bruno@clisp.org>
61011
61012         * modules/sprintf-posix-tests: New file.
61013         * tests/test-sprintf-posix.c: New file.
61014
61015         * modules/sprintf-posix: New file.
61016         * lib/sprintf.c: New file.
61017         * m4/sprintf-posix.m4: New file.
61018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61019         REPLACE_SPRINTF.
61020         * lib/stdio_.h (sprintf): New declaration.
61021         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61022         REPLACE_SPRINTF.
61023
61024 2007-03-06  Bruno Haible  <bruno@clisp.org>
61025
61026         * modules/vsprintf-posix-tests: New file.
61027         * tests/test-vsprintf-posix.c: New file.
61028         * tests/test-sprintf-posix.h: New file.
61029
61030         * modules/vsprintf-posix: New file.
61031         * lib/vsprintf.c: New file.
61032         * m4/vsprintf-posix.m4: New file.
61033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61034         REPLACE_VSPRINTF.
61035         * lib/stdio_.h (vsprintf): New declaration.
61036         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61037         REPLACE_VSPRINTF.
61038
61039 2007-03-06  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/vsnprintf (Depend-on): Remove minmax.
61042
61043 2007-03-06  Bruno Haible  <bruno@clisp.org>
61044
61045         * modules/snprintf-posix-tests: New file.
61046         * tests/test-snprintf-posix.c: New file.
61047
61048         * modules/snprintf-posix: New file.
61049         * m4/snprintf-posix.m4: New file.
61050         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61051         gl_FUNC_SNPRINTF.
61052         (gl_FUNC_SNPRINTF): Invoke it.
61053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61054         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61055         is set.
61056         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61057
61058 2007-03-06  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/vsnprintf-posix-tests: New file.
61061         * tests/test-vsnprintf-posix.c: New file.
61062         * tests/test-snprintf-posix.h: New file.
61063
61064         * modules/vsnprintf-posix: New file.
61065         * m4/vsnprintf-posix.m4: New file.
61066         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61067         gl_FUNC_VSNPRINTF.
61068         (gl_FUNC_VSNPRINTF): Invoke it.
61069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61070         * lib/stdio_.h (vsnprintf): Define as a replacement if
61071         REPLACE_VSNPRINTF is set.
61072         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61073
61074 2007-03-06  Bruno Haible  <bruno@clisp.org>
61075
61076         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61078
61079 2007-03-06  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61082         (asinl): Declare also if HAVE_DECL_ASINL is set.
61083         (atanl): Declare also if HAVE_DECL_ATANL is set.
61084         (ceill): Declare also if HAVE_DECL_CEILL is set.
61085         (cosl): Declare also if HAVE_DECL_COSL is set.
61086         (expl): Declare also if HAVE_DECL_EXPL is set.
61087         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61088         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61089         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61090         (logl): Declare also if HAVE_DECL_LOGL is set.
61091         (sinl): Declare also if HAVE_DECL_SINL is set.
61092         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61093         (tanl): Declare also if HAVE_DECL_TANL is set.
61094         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61096         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61097         declaration of frexpl, ldexpl.
61098         * modules/printf-frexpl (Depends-on): Add math.
61099         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61100
61101 2007-03-05  Bruno Haible  <bruno@clisp.org>
61102
61103         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61104         frexpl and ldexpl are declared.
61105         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61106
61107 2007-03-05  Bruno Haible  <bruno@clisp.org>
61108
61109         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61110         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61111
61112 2007-03-05  Bruno Haible  <bruno@clisp.org>
61113
61114         * lib/stdio_.h: Include <stddef.h>.
61115
61116 2007-03-05  Bruno Haible  <bruno@clisp.org>
61117
61118         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61119
61120 2007-03-05  Bruno Haible  <bruno@clisp.org>
61121
61122         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61123         NetBSD 4, from Ralf Wildenhues.
61124
61125 2007-03-04  Bruno Haible  <bruno@clisp.org>
61126
61127         * lib/vasprintf.h: Update #if logic for the case when the functions
61128         exist but are overridden.
61129
61130 2007-03-04  Bruno Haible  <bruno@clisp.org>
61131
61132         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61133         implementations: glibc-2.4 and MacOS X 10.3.
61134         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61135         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61136         * tests/test-vasprintf-posix.c (test_function): Likewise.
61137
61138 2007-03-04  Bruno Haible  <bruno@clisp.org>
61139
61140         * modules/vasprintf-posix-tests: New file.
61141         * tests/test-vasprintf-posix.c: New file.
61142
61143         * modules/vasprintf-posix: New file.
61144         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61145         defined.
61146         * m4/vasprintf-posix.m4: New file.
61147         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61148         gl_FUNC_VASPRINTF.
61149         (gl_FUNC_VASPRINTF): Invoke it.
61150         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61151         here.
61152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61153
61154 2007-03-04  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61157         REPLACE_GETTIMEOFDAY.
61158         * modules/sys_time (Makefile.am): Likewise.
61159         * m4/sys_time_h.m4: Likewise.
61160         * m4/gettimeofday.m4: Likewise.
61161
61162 2007-03-04  Bruno Haible  <bruno@clisp.org>
61163
61164         * modules/vasnprintf-posix-tests: New file.
61165         * tests/test-vasnprintf-posix.c: New file.
61166
61167         * modules/vasnprintf-posix: New file.
61168         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61169         printf-frexpl.h.
61170         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61171         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61172         REPLACE_VASNPRINTF is defined.
61173         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61174         gl_FUNC_VASNPRINTF.
61175         (gl_FUNC_VASNPRINTF): Invoke it.
61176         * m4/vasnprintf-posix.m4: New file.
61177         * m4/printf.m4: New file.
61178
61179 2007-03-04  Bruno Haible  <bruno@clisp.org>
61180
61181         Compile progreloc.c only if --enable-relocatable is specified.
61182         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61183         if --enable-relocatable was specified.
61184         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61185         lib_SOURCES.
61186
61187 2007-03-04  Jim Meyering  <jim@meyering.net>
61188
61189         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61190         Use it consistently, rather than enumerating errno constants.
61191
61192 2007-03-04  Bruno Haible  <bruno@clisp.org>
61193
61194         * modules/xvasprintf-tests: New file.
61195         * tests/test-xvasprintf.c: New file.
61196
61197         * modules/vasprintf-tests: New file.
61198         * tests/test-vasprintf.c: New file.
61199
61200         * modules/vasnprintf-tests: New file.
61201         * tests/test-vasnprintf.c: New file.
61202
61203         * modules/vsnprintf-tests: New file.
61204         * tests/test-vsnprintf.c: New file.
61205
61206         * modules/snprintf-tests: New file.
61207         * tests/test-snprintf.c: New file.
61208
61209 2007-03-04  Bruno Haible  <bruno@clisp.org>
61210
61211         Compile relocatable.c only if --enable-relocatable is specified.
61212         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61213         gl_RELOCATABLE_LIBRARY.
61214         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61215         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61216         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61217         gl_RELOCATABLE_LIBRARY.
61218         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61219         (Makefile.am): Remove lib_SOURCES.
61220         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61221         gl_RELOCATABLE_LIBRARY.
61222         (Makefile.am): Remove lib_SOURCES.
61223         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61224         always.
61225         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61226         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61227
61228 2007-03-04  Bruno Haible  <bruno@clisp.org>
61229
61230         * modules/argmatch-tests: New file.
61231         * tests/test-argmatch.c: New file.
61232
61233         * tests/test-allocsa.c (main): Halve the number of loop runs.
61234
61235         * modules/alloca-opt-tests: New file.
61236         * tests/test-alloca-opt.c: New file.
61237
61238 2007-03-04  Jim Meyering  <jim@meyering.net>
61239
61240         Work around difference between Linux ACLs and Solaris 10 ZFS.
61241         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61242         for EINVAL.
61243
61244 2007-03-03  Bruno Haible  <bruno@clisp.org>
61245
61246         * modules/relocatable-prog (Depends-on): Add back progreloc's
61247         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61248
61249 2007-03-03  Bruno Haible  <bruno@clisp.org>
61250
61251         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61252         * modules/relocatable-lib: New file.
61253
61254 2007-03-03  Bruno Haible  <bruno@clisp.org>
61255
61256         * modules/relocatable-prog: Renamed from modules/relocatable.
61257         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61258
61259 2007-03-03  Bruno Haible  <bruno@clisp.org>
61260
61261         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61262         m4/relocatable-lib.m4.
61263         (Depends-on): Remove 'relocatable'.
61264         (configure.ac): Add gl_RELOCATABLE_NOP.
61265
61266 2007-03-03  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/relocatable-prog-wrapper: New file.
61269         * modules/relocatable (Depends-on): Add it. Remove all other
61270         dependencies except progname.
61271         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61272
61273         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61274         (gl_FUNC_STRERROR): Nop.
61275         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61276
61277         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61278         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61279
61280         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61281         (gl_FUNC_READLINK): Update.
61282
61283         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61284
61285 2007-03-03  Bruno Haible  <bruno@clisp.org>
61286
61287         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61288         * modules/xreadlink (Depends-on): Add unistd.
61289         * modules/xreadlink-with-size (Depends-on): Likewise.
61290
61291 2007-03-03  Bruno Haible  <bruno@clisp.org>
61292
61293         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61294         extracted from gt_FUNC_SETENV.
61295         (gt_FUNC_SETENV): Remove macro.
61296         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61297         remove gt_FUNC_SETENV.
61298
61299 2007-03-03  Bruno Haible  <bruno@clisp.org>
61300
61301         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61302         ENABLE_RELOCATABLE here.
61303         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61304
61305 2007-03-03  Bruno Haible  <bruno@clisp.org>
61306
61307         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61308         * tests/test-rbtreehash_list.c: Include progname.h.
61309         (main): Call set_program_name.
61310
61311         * modules/rbtree-oset-tests (Depends-on): Add progname.
61312         * tests/test-rbtree_oset.c: Include progname.h.
61313         (main): Call set_program_name.
61314
61315         * modules/rbtree-list-tests (Depends-on): Add progname.
61316         * tests/test-rbtree_list.c: Include progname.h.
61317         (main): Call set_program_name.
61318
61319         * modules/linked-list-tests (Depends-on): Add progname.
61320         * tests/test-linked_list.c: Include progname.h.
61321         (main): Call set_program_name.
61322
61323 2007-03-03  Bruno Haible  <bruno@clisp.org>
61324
61325         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61326         All uses of __restrict changed to _Restrict_.
61327         * lib/glob_.h (__restrict): Remove macro.
61328
61329 2007-03-02  Bruno Haible  <bruno@clisp.org>
61330
61331         * modules/gettext (configure.ac): Require gettext infrastructure
61332         from version 0.16.1.
61333
61334 2007-03-02  Bruno Haible  <bruno@clisp.org>
61335
61336         * modules/linkedhash-list-tests (Depends-on): Add progname.
61337         * tests/test-linkedhash_list.c: Include progname.h.
61338         (main): Call set_program_name.
61339
61340         * modules/carray-list-tests (Depends-on): Add progname.
61341         * tests/test-carray_list.c: Include progname.h.
61342         (main): Call set_program_name.
61343
61344         * modules/avltreehash-list-tests (Depends-on): Add progname.
61345         * tests/test-avltreehash_list.c: Include progname.h.
61346         (main): Call set_program_name.
61347
61348         * modules/avltree-oset-tests (Depends-on): Add progname.
61349         * tests/test-avltree_oset.c: Include progname.h.
61350         (main): Call set_program_name.
61351
61352         * modules/avltree-list-tests (Depends-on): Add progname.
61353         * tests/test-avltree_list.c: Include progname.h.
61354         (main): Call set_program_name.
61355
61356         * modules/array-oset-tests (Depends-on): Add progname.
61357         * tests/test-array_oset.c: Include progname.h.
61358         (main): Call set_program_name.
61359
61360         * modules/array-list-tests (Depends-on): Add progname.
61361         * tests/test-array_list.c: Include progname.h.
61362         (main): Call set_program_name.
61363
61364         * modules/argp-tests (Depends-on): Add progname.
61365         * tests/test-argp.c: Include argp.h first. Include progname.h.
61366         (main): Call set_program_name.
61367
61368 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61369
61370         * doc/gnulib-tool.texi (Initial import): Reword description of
61371         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61372         limited effect even if defined after the first system include.
61373
61374 2007-03-01  Bruno Haible  <bruno@clisp.org>
61375
61376         * build-aux/config.libpath: Update to libtool-1.5.22.
61377         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61378
61379 2007-03-01  Bruno Haible  <bruno@clisp.org>
61380
61381         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61382         foo_CFLAGS.
61383         Reported by Ralf Wildenhues.
61384
61385 2007-03-01  Bruno Haible  <bruno@clisp.org>
61386
61387         * build-aux/install-reloc: Remove object files left over by some
61388         compilers.
61389         Reported by Ralf Wildenhues.
61390
61391 2007-03-01  Bruno Haible  <bruno@clisp.org>
61392
61393         * build-aux/install-reloc: Break long lines.
61394
61395 2007-03-01  Bruno Haible  <bruno@clisp.org>
61396
61397         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61398         Reported by Ralf Wildenhues.
61399
61400 2007-03-01  Bruno Haible  <bruno@clisp.org>
61401
61402         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61403         include ordering constraints.
61404
61405 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61406
61407         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61408         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61409         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61410         as another example.
61411         * lib/time_.h: Fix misspelling.
61412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61413         Require gl_HEADER_TIME_H_DEFAULTS.
61414         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61415         * m4/time_r.m4 (gl_TIME_R): Likewise.
61416         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61417
61418 2007-03-01  Bruno Haible  <bruno@clisp.org>
61419
61420         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61421         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61422
61423 2007-03-01  Jim Meyering  <jim@meyering.net>
61424
61425         * modules/xreadlink (Maintainer): Add my name.
61426         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61427
61428 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61429             Bruno Haible  <bruno@clisp.org>
61430
61431         * build-aux/install-reloc: Compile also c-ctype.c.
61432         * build-aux/relocatable.sh.in: New file.
61433         * doc/relocatable.texi: New file.
61434         * doc/relocatable-maint.texi: New file.
61435         * doc/gnulib.texi: Include relocatable-maint.texi.
61436         * lib/progreloc.c: Include unistd.h unconditionally.
61437         * lib/relocwrapper.c: Include unistd.h unconditionally.
61438         Include c-ctype.h.
61439         (add_dotbin): Use c_tolower.
61440         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61441         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61442         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61443         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61444         to m4/relocatable-lib.m4.
61445         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61446         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61447         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61448         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61449         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61450         * modules/relocatable: New file.
61451         * modules/relocatable-lib: New file.
61452         * modules/relocatable-script: New file.
61453
61454 2007-02-28  Bruno Haible  <bruno@clisp.org>
61455
61456         Import --enable-relocatable infrastructure.
61457         * build-aux/config.libpath: New file, from GNU gettext.
61458         * build-aux/install-reloc: New file, from GNU gettext.
61459         * build-aux/reloc-ldflags: New file, from GNU gettext.
61460         * lib/relocatable.h: New file, from GNU gettext.
61461         * lib/relocatable.c: New file, from GNU gettext.
61462         * lib/relocwrapper.c: New file, from GNU gettext.
61463         * m4/relocatable.m4: New file, from GNU gettext.
61464
61465 2007-02-28  Bruno Haible  <bruno@clisp.org>
61466
61467         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61468
61469         * modules/xreadlink: New file, from GNU gettext with modifications.
61470         * lib/xreadlink.c: New file, from GNU gettext.
61471         * lib/xreadlink.h: Add comments.
61472         (xreadlink): New declaration.
61473
61474         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61475         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61476         lib/xreadlink-with-size.c.
61477         (configure.ac): Remove gl_XREADLINK invocation.
61478         (Makefile.am): Augment lib_SOURCES.
61479         * m4/xreadlink.m4: Remove file.
61480         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61481         (xreadlink_with_size): Renamed from xreadink.
61482         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61483         * modules/canonicalize (Depends-on): Replace xreadlink with
61484         xreadlink-with-size.
61485         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61486
61487 2007-02-25  Jim Meyering  <jim@meyering.net>
61488
61489         * build-aux/announce-gen: When complaining about excess arguments,
61490         list them.
61491
61492 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * README: Document signed integer overflow situation more
61495         accurately.
61496
61497 2007-02-25  Bruno Haible  <bruno@clisp.org>
61498
61499         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61500         'a' or 'A' conversion.
61501
61502 2007-02-25  Bruno Haible  <bruno@clisp.org>
61503
61504         * modules/filename: Renamed from modules/pathname.
61505         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61506         lib/concatpath.c with lib/concat-filename.c.
61507         (Makefile.am): Update.
61508         (Include): Replace pathname.h with filename.h.
61509         * lib/filename.h: Renamed from lib/pathname.h.
61510         (concatenated_filename): Renamed from concatenated_pathname.
61511         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61512         (concatenated_filename): Renamed from concatenated_pathname.
61513         * lib/findprog.c: Include filename.h instead of pathname.h.
61514         (find_in_path): Update.
61515         * lib/javacomp.c: Include filename.h instead of pathname.h.
61516         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61517         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61518         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61519         is_oldgcj_14_13_usable, is_javac_usable): Update.
61520         * lib/javaexec.c: Include filename.h instead of pathname.h.
61521         (execute_java_class): Update.
61522         * modules/findprog: Update.
61523         * modules/javacomp: Update.
61524         * modules/javaexec: Update.
61525         * MODULES.html.sh (File system functions): Add 'filename', remove
61526         'pathname'.
61527
61528 2007-02-25  Bruno Haible  <bruno@clisp.org>
61529
61530         * modules/printf-frexpl-tests: New file.
61531         * tests/test-printf-frexpl.c: New file.
61532
61533         * modules/printf-frexpl: New file.
61534         * lib/printf-frexpl.h: New file.
61535         * lib/printf-frexpl.c: New file.
61536         * m4/printf-frexpl.m4: New file.
61537
61538 2007-02-25  Bruno Haible  <bruno@clisp.org>
61539
61540         * modules/printf-frexp-tests: New file.
61541         * tests/test-printf-frexp.c: New file.
61542
61543         * modules/printf-frexp: New file.
61544         * lib/printf-frexp.h: New file.
61545         * lib/printf-frexp.c: New file.
61546         * m4/printf-frexp.m4: New file.
61547
61548 2007-02-25  Bruno Haible  <bruno@clisp.org>
61549
61550         Assume automake >= 1.10 for the tests.
61551         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61552         * modules/arctwo-tests: Likewise.
61553         * modules/argp-tests: Likewise.
61554         * modules/avltree-list-tests: Likewise.
61555         * modules/avltree-oset-tests: Likewise.
61556         * modules/avltreehash-list-tests: Likewise.
61557         * modules/carray-list-tests: Likewise.
61558         * modules/crc-tests: Likewise.
61559         * modules/des-tests: Likewise.
61560         * modules/gc-arcfour-tests: Likewise.
61561         * modules/gc-arctwo-tests: Likewise.
61562         * modules/gc-des-tests: Likewise.
61563         * modules/gc-hmac-md5-tests: Likewise.
61564         * modules/gc-hmac-sha1-tests: Likewise.
61565         * modules/gc-md2-tests: Likewise.
61566         * modules/gc-md4-tests: Likewise.
61567         * modules/gc-md5-tests: Likewise.
61568         * modules/gc-pbkdf2-sha1-tests: Likewise.
61569         * modules/gc-rijndael-tests: Likewise.
61570         * modules/gc-sha1-tests: Likewise.
61571         * modules/gc-tests: Likewise.
61572         * modules/getaddrinfo-tests: Likewise.
61573         * modules/hmac-md5-tests: Likewise.
61574         * modules/hmac-sha1-tests: Likewise.
61575         * modules/linked-list-tests: Likewise.
61576         * modules/linkedhash-list-tests: Likewise.
61577         * modules/lock-tests: Likewise.
61578         * modules/md2-tests: Likewise.
61579         * modules/md4-tests: Likewise.
61580         * modules/md5-tests: Likewise.
61581         * modules/rbtree-list-tests: Likewise.
61582         * modules/rbtree-oset-tests: Likewise.
61583         * modules/rbtreehash-list-tests: Likewise.
61584         * modules/read-file-tests: Likewise.
61585         * modules/rijndael-tests: Likewise.
61586         * modules/stdint-tests: Likewise.
61587         * modules/tls-tests: Likewise.
61588
61589 2007-02-24  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61592         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61593         function; instead check whether isnan with a double argument links.
61594         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61595         function; instead check whether isnan with a 'long double' argument
61596         links.
61597         Reported by Eric Blake <ebb9@byu.net>.
61598
61599 2007-02-24  Bruno Haible  <bruno@clisp.org>
61600
61601         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61602         defined.
61603         * lib/isnanl.c: Remove all code. Just include isnan.c.
61604         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61605
61606 2007-02-25  Jim Meyering  <jim@meyering.net>
61607
61608         Avoid conflicting types for 'unsetenv' on FreeBSD.
61609         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61610         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61611         in stdlib.h.
61612
61613 2007-02-24  Bruno Haible  <bruno@clisp.org>
61614
61615         * modules/isnanl-nolibm-tests: New file.
61616         * tests/test-isnanl.c: New file.
61617
61618         * modules/isnanl-nolibm: New file.
61619         * lib/isnanl.h: New file.
61620         * lib/isnanl.c: New file.
61621         * m4/isnanl.m4: New file.
61622
61623 2007-02-24  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/isnan-nolibm-tests: New file.
61626         * tests/test-isnan.c: New file.
61627
61628         * modules/isnan-nolibm: New file.
61629         * lib/isnan.h: New file.
61630         * lib/isnan.c: New file.
61631         * m4/isnan.m4: New file.
61632
61633 2007-02-24  Bruno Haible  <bruno@clisp.org>
61634
61635         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61636         assume that an exponent fits in 20 bits.
61637
61638 2007-02-24  Jim Meyering  <jim@meyering.net>
61639
61640         * m4/regex.m4: Update the description of the configure-time option,
61641         --without-included-regex, to state accurately what the defaults are,
61642         and perhaps to give people an idea why using this option is risky.
61643
61644 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61645
61646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61647         loops on small arguments.  This attempts to avoid the problem
61648         Bruno Haible reported for AIX 4.3.2 in
61649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61650
61651 2007-02-23  Bruno Haible  <bruno@clisp.org>
61652
61653         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61654         Needed for help2man.
61655
61656 2007-02-23  Karl Berry  <karl@gnu.org>
61657
61658         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61659         exists, foo.h should be cvs-ignored, not committed.
61660
61661 2007-02-23  Eric Blake  <ebb9@byu.net>
61662
61663         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61664         * lib/stat-time.h (includes): Likewise.
61665         * lib/utimecmp.c (includes): Likewise.
61666         * lib/utimens.h (includes): Likewise.
61667         * lib/getdate.y (includes): Also include "timespec.h" for use
61668         internal to the module.
61669         * modules/utimens (Depends-on): Revert yesterday's patch.
61670         * modules/nanosleep (Depends-on): Add missing dependency.
61671
61672 2007-02-22  Bruno Haible  <bruno@clisp.org>
61673
61674         * lib/glob.c: Don't include getlogin_r.h.
61675
61676 2007-02-22  Jim Meyering  <jim@meyering.net>
61677
61678         * modules/utimens (Depends-on): Add timespec, required for
61679         utimens.h's inclusion of timespec.h.
61680
61681 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61682
61683         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61684         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61685         Schwab in
61686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61687         I'll try to think of a better way to fix the Solaris problem.
61688
61689         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61690         like glibc; on Solaris 10, it fails with errno == EINVAL.
61691         POSIX says the behavior is unspecified if the first argument is NULL,
61692         so play it safe and never pass NULL to the system getcwd.
61693
61694 2007-02-21  Jim Meyering  <jim@meyering.net>
61695
61696         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61697         of gettimeofday.  It would conflict with the one now always
61698         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61699         an IRIX 6.5 build failure.
61700
61701 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         Minor fixups to port to Solaris 10 with Sun C 5.8.
61704         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61705         * modules/getcwd (Depends-on): Add dirfd.
61706         * lib/putenv.c (putenv): #undef it.
61707         (rpl_putenv): New decl.
61708         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61709
61710 2007-02-20  Bruno Haible  <bruno@clisp.org>
61711
61712         * modules/stdio-tests: New file.
61713         * tests/test-stdio.c: New file.
61714
61715         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61716         (Depends-on): Add stdio.
61717         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61718         (Include): Use <stdio.h> instead of vsnprintf.h.
61719         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61720         HAVE_DECL_VSNPRINTF.
61721         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61722
61723         * modules/snprintf (Files): Remove lib/snprintf.h.
61724         (Depends-on): Add stdio.
61725         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61726         (Include): Use <stdio.h> instead of snprintf.h.
61727         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61728         HAVE_DECL_SNPRINTF.
61729         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61730         * lib/getaddrinfo.c: Likewise.
61731
61732         * modules/stdio: New file.
61733         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61734         * lib/snprintf.h: Remove file.
61735         * lib/vsnprintf.h: Remove file.
61736         * lib/.cppi-disable: Remove snprintf.h.
61737         * m4/stdio_h.m4: New file.
61738         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61739
61740 2007-02-20  Jim Meyering  <jim@meyering.net>
61741
61742         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61743         used by e.g., mingw.  From Bruno Haible.
61744
61745 2007-02-19  Bruno Haible  <bruno@clisp.org>
61746
61747         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61748         warnings.
61749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61750
61751 2007-02-19  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61754         from mingw users.
61755
61756 2007-02-19  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61759         warnings.
61760         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61761
61762 2007-02-19  Jim Meyering  <jim@meyering.net>
61763
61764         Don't use FD after a successful "fdopendir (fd)".
61765         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61766         Reset it by calling dirfd on the just-obtained DIR*.
61767
61768         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61769         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61770
61771 2007-02-18  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/readlink.c: Include <unistd.h>.
61774         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61775         HAVE_READLINK.
61776         * modules/readlink (Depends-on): Add unistd.
61777         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61778         (Include): Add <unistd.h>.
61779
61780         * lib/getlogin_r.h: Remove file.
61781         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61782         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61783         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61784         HAVE_DECL_GETLOGIN_R.
61785         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61787         (Include): Use <unistd.h> instead of getlogin_r.h.
61788
61789         * lib/getcwd.h: Remove file.
61790         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61791         * lib/xgetcwd.c: Likewise.
61792         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61793         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61794         * modules/getcwd (Files): Remove lib/getcwd.h.
61795         (Depends-on): Add unistd.
61796         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61797         (Include): Use <unistd.h> instad of getcwd.h.
61798
61799         * lib/ftruncate.c: Include <unistd.h> first.
61800         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61801         Set HAVE_FTRUNCATE.
61802         * modules/ftruncate (Depends-on): Add unistd.
61803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61804
61805         * lib/fchdir.c: Include <unistd.h> first.
61806         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61807         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61808         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61809         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61810         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61811
61812         * lib/dup2.c: Include <unistd.h> first.
61813         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61814         HAVE_DUP2.
61815         * modules/dup2 (Depends-on): Add unistd.
61816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61817
61818         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61819         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61820         REPLACE_CHOWN. Don't define chown as a macro here.
61821         * modules/chown (Depends-on): Add unistd.
61822         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61823
61824         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61825         Add definition for GL_LINK_WARNING.
61826         (chown, dup2): New declarations.
61827         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61828         link warning.
61829         (ftruncate): New declaration.
61830         (getcwd): New declaration, taken from old getcwd.h.
61831         (getlogin_r): New declaration, taken from old getlogin_r.h.
61832         (readlink): New declaration.
61833         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61834         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61835         (gl_PREREQ_UNISTD): Remove macro.
61836         (gl_UNISTD_MODULE_INDICATOR): New macro.
61837         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61838         many new variables. Don't set UNISTD_H.
61839         * modules/unistd (Description): Change.
61840         (Depends-on): Add link-warning.
61841         (configure.ac): Update.
61842         (Makefile.am): Create unistd.h always. Substitute many new variables
61843         into it.
61844
61845 2007-02-18  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61848         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61849         HAVE_GETSUBOPT.
61850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61851         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61852         * lib/getsubopt.h: Remove file.
61853         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61854         (Depends-on): Add stdlib.
61855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61856         (Includes): Use <stdlib.h> instead of getsubopt.h.
61857         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61858         Set HAVE_GETSUBOPT.
61859         * lib/getsubopt.c: Don't include getsubopt.h.
61860
61861 2007-02-18  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/fchdir (Depends-on): Add dup2.
61864
61865 2007-02-18  Bruno Haible  <bruno@clisp.org>
61866
61867         * lib/stdlib_.h: Handle glibc's special invocation convention
61868         specially.
61869
61870 2007-02-18  Bruno Haible  <bruno@clisp.org>
61871
61872         * modules/stdlib-tests: New file.
61873         * tests/test-stdlib.c: New file.
61874
61875         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61876         (Depends-on): Add stdlib.
61877         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61878         (Includes): Use <stdlib.h> instead of mkstemp.h.
61879         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61880         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61881         * lib/mkstemp.c: Don't include mkstemp.h.
61882         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61883         * lib/stdlib--.h: Don't include mkstemp.h.
61884
61885         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61886         (Depends-on): Add stdlib.
61887         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61888         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61889         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61890         HAVE_MKDTEMP.
61891         * lib/mkdtemp.c: Don't include mkdtemp.h.
61892         * lib/clean-temp.c: Don't include mkdtemp.h.
61893
61894         * modules/exit (Files): Remove lib/exit.h.
61895         (Depends-on): Add stdlib.
61896         (Makefile.am): Remove lib_SOURCES.
61897         (Include): Use <stdlib.h> instead of exit.h.
61898         * lib/argmatch.c: Don't include exit.h.
61899         * lib/execute.c: Likewise.
61900         * lib/pagealign_alloc.c: Likewise.
61901         * lib/pipe.c: Likewise.
61902         * lib/wait-process.c: Likewise.
61903         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61904         * lib/exitfail.c: Likewise.
61905         * lib/savewd.c: Likewise.
61906         * lib/xsetenv.c: Likewise.
61907
61908         * modules/stdlib: New file.
61909         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61910         and extra comments about mkstemp().
61911         * lib/exit.h: Remove file.
61912         * lib/mkdtemp.h: Remove file.
61913         * lib/mkstemp.h: Remove file.
61914         * m4/stdlib_h.m4: New file.
61915         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61916
61917 2007-02-18  Bruno Haible  <bruno@clisp.org>
61918
61919         * modules/math-tests: New file.
61920         * tests/test-math.c: New file.
61921
61922         * modules/math: New file.
61923         * modules/mathl (Files): Remove lib/mathl.h.
61924         (Depends-on): Add math.
61925         (Makefile.am): Don't mention mathl.h.
61926         (Include): Use <math.h> instead of mathl.h.
61927         * lib/math_.h: New file.
61928         * lib/mathl.h: Remove file.
61929         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61930         mathl.h.
61931         * lib/asinl.c: Likewise.
61932         * lib/atanl.c: Likewise.
61933         * lib/ceill.c: Likewise.
61934         * lib/cosl.c: Likewise.
61935         * lib/expl.c: Likewise.
61936         * lib/floorl.c: Likewise.
61937         * lib/frexpl.c: Likewise.
61938         * lib/ldexpl.c: Likewise.
61939         * lib/logl.c: Likewise.
61940         * lib/sincosl.c: Likewise.
61941         * lib/sinl.c: Likewise.
61942         * lib/sqrtl.c: Likewise.
61943         * lib/tanl.c: Likewise.
61944         * lib/trigl.c: Likewise.
61945         * m4/math_h.m4: New file.
61946         * MODULES.html.sh (Mathematics): Add math.
61947
61948 2007-02-17  Bruno Haible  <bruno@clisp.org>
61949
61950         * modules/wctype-tests: New file.
61951         * tests/test-wctype.c: New file.
61952
61953         * modules/wchar-tests: New file.
61954         * tests/test-wchar.c: New file.
61955
61956         * modules/unistd-tests: New file.
61957         * tests/test-unistd.c: New file.
61958
61959         * modules/time-tests: New file.
61960         * tests/test-time.c: New file.
61961
61962         * modules/sysexits-tests: New file.
61963         * tests/test-sysexits.c: New file.
61964
61965         * modules/sys_time-tests: New file.
61966         * tests/test-sys_time.c: New file.
61967
61968         * modules/sys_stat-tests: New file.
61969         * tests/test-sys_stat.c: New file.
61970
61971         * modules/sys_socket-tests: New file.
61972         * tests/test-sys_socket.c: New file.
61973
61974         * modules/sys_select-tests: New file.
61975         * tests/test-sys_select.c: New file.
61976
61977         * modules/string-tests: New file.
61978         * tests/test-string.c: New file.
61979
61980         * modules/stdbool-tests: New file.
61981         * tests/test-stdbool.c: New file.
61982
61983         * modules/netinet_in-tests: New file.
61984         * tests/test-netinet_in.c: New file.
61985
61986         * modules/inttypes-tests: New file.
61987         * tests/test-inttypes.c: New file.
61988
61989         * modules/fcntl-tests: New file.
61990         * tests/test-fcntl.c: New file.
61991
61992         * modules/byteswap-tests: New file.
61993         * tests/test-byteswap.c: New file.
61994
61995         * modules/arpa_inet-tests: New file.
61996         * tests/test-arpa_inet.c: New file.
61997
61998 2007-02-17  Bruno Haible  <bruno@clisp.org>
61999
62000         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62001         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62002         if the corresponding module is not enabled. Emit link warnings if
62003         the function is used nevertheless.
62004         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62005         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62006         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62007         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62008         * modules/inttypes (Depends-on): Add link-warning.
62009         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62010         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62011         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62012         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62013         * modules/imaxdiv (configure.ac): Likewise.
62014         * modules/strtoimax (configure.ac): Likewise.
62015         * modules/strtoumax (configure.ac): Likewise.
62016
62017 2007-02-17  Bruno Haible  <bruno@clisp.org>
62018
62019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62020         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62021         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62022         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62023
62024 2007-02-17  Bruno Haible  <bruno@clisp.org>
62025
62026         * modules/link-warning: New file.
62027         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62028         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62029         * modules/string (Depends-on): Add link-warning.
62030         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62031         string.h.
62032         * MODULES.html.sh (Support for building libraries and executables): Add
62033         link-warning.
62034
62035 2007-02-17  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62038         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62039         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62040         long lines.
62041
62042 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62043             Bruno Haible  <bruno@clisp.org>
62044
62045         * modules/tmpfile: New file.
62046         * lib/tmpfile.c: New file.
62047         * m4/tmpfile.m4: New file.
62048         * MODULES.html.sh (func_all_modules): New section "Input/output".
62049
62050 2007-02-15  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62053         (supports_delete_on_close): New function.
62054         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62055
62056 2007-02-14  Bruno Haible  <bruno@clisp.org>
62057
62058         * modules/mbspcasecmp-tests: New file.
62059         * tests/test-mbspcasecmp.sh: New file.
62060         * tests/test-mbspcasecmp.c: New file.
62061
62062         New module mbspcasecmp.
62063         * modules/mbspcasecmp: New file.
62064         * lib/mbspcasecmp.c: New file.
62065         * lib/string_.h (strncasecmp): Change warning message.
62066         (mbspcasecmp): New declaration.
62067         * m4/mbspcasecmp.m4: New file.
62068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62069         GNULIB_MBSPCASECMP.
62070         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62071         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62072
62073 2007-02-14  Bruno Haible  <bruno@clisp.org>
62074
62075         * modules/mbsncasecmp-tests: New file.
62076         * tests/test-mbsncasecmp.sh: New file.
62077         * tests/test-mbsncasecmp.c: New file.
62078
62079         New module mbsncasecmp.
62080         * modules/mbsncasecmp: New file.
62081         * lib/mbsncasecmp.c: New file.
62082         * lib/string_.h (mbsncasecmp): New declaration.
62083         * m4/mbsncasecmp.m4: New file.
62084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62085         GNULIB_MBSNCASECMP.
62086         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62087         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62088
62089 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62090
62091         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62092         Verify that it doesn't overlap with our flags.
62093         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62094         do not have the desired effect in multibyte locales; instead, use
62095         mbscasecmp.
62096         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62097         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62098         we don't require GNU fnmatch ourselves (if our users require it, they
62099         should do so explicitly).
62100
62101         Fix regex code so it doesn't rely on strcasecmp.
62102         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62103         Otherwise, include gnulib's langinfo.h.
62104         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62105         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62106         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62107         * modules/regex (FILES): Remove m4/codeset.m4.
62108         (Depends-on): Add localcharset.  Remove strcase.
62109
62110 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62111
62112         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62113         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62114
62115 2007-02-13  Bruno Haible  <bruno@clisp.org>
62116
62117         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62119
62120 2007-02-12  Bruno Haible  <bruno@clisp.org>
62121
62122         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62123         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62124         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62125         time warning rather than a link error.
62126
62127 2007-02-12  Bruno Haible  <bruno@clisp.org>
62128
62129         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62130         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62132
62133 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62136         args, not 2.
62137
62138 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62139
62140         New module 'time', so that apps can include <time.h> as per
62141         POSIX and GNU instead of separate include files like time_r.h
62142         and timegm.h.  This implementation tries out a simpler approach
62143         for replacing decls in standard include files (as compared to
62144         the string module), somewhat as an experiment.
62145
62146         * config/srclist.txt: Comment out mktime.c for now.
62147         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62148         since it doesn't apply any more.  Use generic wording instead.
62149         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62150         'time'.
62151         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62152         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62153         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62154         Don't include <sys/types.h>; no longer needed since we assume C89.
62155         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62156         * lib/strftime.c: Likewise.
62157         * lib/time_r.c: Likewise.
62158         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62159         * lib/nanosleep.c: Include <time.h> first, to check interface.
62160         * lib/strptime.c: Likewise.
62161         * lib/time_r.c: Likewise.
62162         * lib/timegm.c: Likewise.
62163         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62164         needed.
62165         * lib/timegm.c: Don't include timegm.h; no longer needed.
62166         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62167         time.h now handles any problems in that area.
62168         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62169         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62170         that time.h defines struct timespec.
62171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62172         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62173         handles that.
62174         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62175         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62176         needed.  Set REPLACE_LOCALTIME.
62177         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62178         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62179         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62180         nanosleep; time_h.m4 now does that.  Don't require
62181         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62182         module handles this now.
62183         * modules/getdate (Depends-on): Remove timespec.  Add time.
62184         * modules/nanosleep (Depends-on): Likewise.
62185         * modules/stat-time (Depends-on): Likewise.
62186         * modules/nanosleep (Include): Include time.h, not timespec.h.
62187         * modules/strptime (Files): Remove lib/strptime.h.
62188         (Depends-on): Add extensions, time.
62189         (Include): Include time.h, not strptime.h.
62190         * modules/time_r (Files): Remove lib/time_r.h.
62191         (Depends-on): Add time.
62192         (Include): Include time.h, not time_r.h.
62193         * modules/timegm: Likewise.
62194         * modules/timespec (Description): Now does timespec-related decls
62195         of our own, instead of struct timespec itself.
62196         (Depends-on): Add time; remove extensions.
62197         (Maintainer): Add self.
62198         * modules/utimecmp (Depends-on): Add time; remove timespec.
62199         * modules/utimens (Depends-on): Likewise.
62200         * modules/xnanosleep (Depends-on): Likewise.
62201
62202 2007-02-11  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/c-strstr.c: Include allocsa.h.
62205         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62206         * lib/c-strcasestr.c: Include allocsa.h.
62207         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62208         * lib/strcasestr.c: Include allocsa.h.
62209         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62210         * lib/mbsstr.c: Include allocsa.h.
62211         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62212         allocsa/freesa instead of malloc/free.
62213         * lib/mbscasestr.c: Include allocsa.h.
62214         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62215         allocsa/freesa instead of malloc/free.
62216         * modules/c-strstr (Depends-on): Add allocsa.
62217         * modules/c-strcasestr (Depends-on): Likewise.
62218         * modules/strcasestr (Depends-on): Likewise.
62219         * modules/mbsstr (Depends-on): Likewise.
62220         * modules/mbscasestr (Depends-on): Likewise.
62221
62222 2007-02-11  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62225
62226         * modules/mbsspn-tests: New file.
62227         * tests/test-mbsspn.sh: New file.
62228         * tests/test-mbsspn.c: New file.
62229
62230 2007-02-11  Bruno Haible  <bruno@clisp.org>
62231
62232         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62233
62234         * modules/mbspbrk-tests: New file.
62235         * tests/test-mbspbrk.sh: New file.
62236         * tests/test-mbspbrk.c: New file.
62237
62238 2007-02-11  Bruno Haible  <bruno@clisp.org>
62239
62240         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62241         unneeded cast.
62242
62243         * modules/mbscspn-tests: New file.
62244         * tests/test-mbscspn.sh: New file.
62245         * tests/test-mbscspn.c: New file.
62246
62247 2007-02-11  Bruno Haible  <bruno@clisp.org>
62248
62249         * modules/mbscasecmp-tests: New file.
62250         * tests/test-mbscasecmp.sh: New file.
62251         * tests/test-mbscasecmp.c: New file.
62252
62253 2007-02-11  Bruno Haible  <bruno@clisp.org>
62254
62255         Ensure O(n) worst-case complexity of mbscasestr.
62256         * lib/mbscasestr.c: Include stdbool.h.
62257         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62258         functions.
62259         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62260         the bookkeeping indicates that it's worth it.
62261         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62262
62263         * modules/mbscasestr-tests: New file.
62264         * tests/test-mbscasestr1.c: New file.
62265         * tests/test-mbscasestr2.sh: New file.
62266         * tests/test-mbscasestr2.c: New file.
62267         * tests/test-mbscasestr3.sh: New file.
62268         * tests/test-mbscasestr3.c: New file.
62269         * tests/test-mbscasestr4.sh: New file.
62270         * tests/test-mbscasestr4.c: New file.
62271         * m4/locale-tr.m4: New file.
62272
62273 2007-02-11  Bruno Haible  <bruno@clisp.org>
62274
62275         Ensure O(n) worst-case complexity of mbsstr.
62276         * lib/mbsstr.c: Include stdbool.h.
62277         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62278         functions.
62279         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62280         bookkeeping indicates that it's worth it.
62281         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62282
62283         * modules/mbsstr-tests: New file.
62284         * tests/test-mbsstr1.c: New file.
62285         * tests/test-mbsstr2.sh: New file.
62286         * tests/test-mbsstr2.c: New file.
62287         * tests/test-mbsstr3.sh: New file.
62288         * tests/test-mbsstr3.c: New file.
62289         * m4/locale-fr.m4: New file.
62290
62291 2007-02-11  Bruno Haible  <bruno@clisp.org>
62292
62293         * lib/mbsrchr.c (mbsrchr): Fix bug.
62294
62295         * modules/mbsrchr-tests: New file.
62296         * tests/test-mbsrchr.sh: New file.
62297         * tests/test-mbsrchr.c: New file.
62298
62299 2007-02-11  Bruno Haible  <bruno@clisp.org>
62300
62301         * lib/mbschr.c (mbschr): Fix bug.
62302
62303         * modules/mbschr-tests: New file.
62304         * tests/test-mbschr.sh: New file.
62305         * tests/test-mbschr.c: New file.
62306         * m4/locale-zh.m4: New file.
62307
62308 2007-02-11  Bruno Haible  <bruno@clisp.org>
62309
62310         Support for copying multibyte string iterators.
62311         * lib/mbiter.h: Include <string.h>.
62312         (mbiter_multi_copy): New function.
62313         (mbi_copy): New macro.
62314         * lib/mbuiter.h: Include <string.h>.
62315         (mbuiter_multi_copy): New function.
62316         (mbui_copy): New macro.
62317
62318 2007-02-11  Bruno Haible  <bruno@clisp.org>
62319
62320         New module mbslen.
62321         * modules/mbslen: New file.
62322         * lib/mbslen.c: New file.
62323         * lib/string_.h (mbslen): New declaration.
62324         * m4/mbslen.m4: New file.
62325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62326         GNULIB_MBSLEN.
62327         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62328         * MODULES.html.sh (Internationalization functions): Add mbslen.
62329
62330 2007-02-11  Bruno Haible  <bruno@clisp.org>
62331
62332         Ensure O(n) worst-case complexity of strcasestr substitute.
62333         * lib/strcasestr.c: Include stdbool.h.
62334         (knuth_morris_pratt): New function.
62335         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62336         bookkeeping indicates that it's worth it.
62337         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62338
62339         * modules/strcasestr-tests: New file.
62340         * tests/test-strcasestr.c: New file.
62341
62342 2007-02-11  Bruno Haible  <bruno@clisp.org>
62343
62344         Ensure O(n) worst-case complexity of c_strcasestr.
62345         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62346         (knuth_morris_pratt): New function.
62347         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62348         the bookkeeping indicates that it's worth it.
62349         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62350
62351         * modules/c-strcasestr-tests: New file.
62352         * tests/test-c-strcasestr.c: New file.
62353
62354 2007-02-11  Bruno Haible  <bruno@clisp.org>
62355
62356         Ensure O(n) worst-case complexity of c_strstr.
62357         * lib/c-strstr.c: Include stdbool.h, string.h.
62358         (knuth_morris_pratt): New function.
62359         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62360         bookkeeping indicates that it's worth it.
62361         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62362
62363         * lib/c-strstr.c: Complete rewrite for maintainability.
62364
62365         * modules/c-strstr-tests: New file.
62366         * tests/test-c-strstr.c: New file.
62367
62368 2007-02-11  Bruno Haible  <bruno@clisp.org>
62369
62370         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62371         5.2.1 and earlier, whereby \055 was treated just like the range
62372         delimiter '-'.
62373         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62374
62375 2007-02-08  Bruno Haible  <bruno@clisp.org>
62376
62377         * modules/regex (Depends-on): Add stdbool.
62378         Reported by Dalibor Topic <robilad@kaffe.org>.
62379
62380 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62383         Prefer returning from main to exiting from it.
62384         Remove unnecessary parens after sizeof.
62385
62386 2007-02-05  Bruno Haible  <bruno@clisp.org>
62387
62388         New module mbssep.
62389         * modules/mbssep: New file.
62390         * lib/mbssep.c: New file.
62391         * lib/string_.h (strsep): Add a conditional link warning.
62392         (mbssep): New declaration.
62393         * m4/mbssep.m4: New file.
62394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62395         GNULIB_MBSSEP.
62396         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62397         * MODULES.html.sh (Internationalization functions): Add mbssep.
62398
62399 2007-02-05  Bruno Haible  <bruno@clisp.org>
62400
62401         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62402         Optimize search in case of 1 delimiter.
62403
62404 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62405
62406         * lib/acl.h: Include sys/types.h before sys/acl.h.
62407
62408 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62409
62410         Merge upstream fix for glibc bugzilla #3957:
62411
62412         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62413
62414         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62415         bit for RE_HAT_LISTS_NOT_NEWLINE.
62416         (build_charclass_op): Remove bogus comment.
62417
62418 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62419
62420         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62421
62422 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62425         * lib/memmem.c [!defined _LIBC]: Include config.h.
62426
62427 2007-02-04  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62430         warning message.
62431
62432 2007-02-04  Bruno Haible  <bruno@clisp.org>
62433
62434         New module mbstok_r.
62435         * modules/mbstok_r: New file.
62436         * lib/mbstok_r.c: New file.
62437         * lib/string_.h (strtok_r): Change argument names to match the
62438         comments. Add a conditional link warning.
62439         (mbstok_r): New declaration.
62440         * m4/mbstok_r.m4: New file.
62441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62442         GNULIB_MBSTOK_R.
62443         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62444         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62445
62446 2007-02-04  Bruno Haible  <bruno@clisp.org>
62447
62448         New module mbsspn.
62449         * modules/mbsspn: New file.
62450         * lib/mbsspn.c: New file.
62451         * lib/string_.h (strspn): Add a conditional link warning.
62452         (mbsspn): New declaration.
62453         * m4/mbsspn.m4: New file.
62454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62455         GNULIB_MBSSPN.
62456         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62457         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62458
62459 2007-02-04  Bruno Haible  <bruno@clisp.org>
62460
62461         New module mbspbrk.
62462         * modules/mbspbrk: New file.
62463         * lib/mbspbrk.c: New file.
62464         * lib/string_.h (strpbrk): Add a conditional link warning.
62465         (mbspbrk): New declaration.
62466         * m4/mbspbrk.m4: New file.
62467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62468         GNULIB_MBSPBRK.
62469         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62470         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62471
62472 2007-02-04  Bruno Haible  <bruno@clisp.org>
62473
62474         New module mbscspn.
62475         * modules/mbscspn: New file.
62476         * lib/mbscspn.c: New file.
62477         * lib/string_.h (strcspn): Add a conditional link warning.
62478         (mbscspn): New declaration.
62479         * m4/mbscspn.m4: New file.
62480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62481         GNULIB_MBSCSPN.
62482         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62483         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62484
62485 2007-02-04  Bruno Haible  <bruno@clisp.org>
62486
62487         New module mbscasestr, reduced goal of strcasestr.
62488         * modules/mbscasestr: New file.
62489         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62490         (mbscasestr): Renamed from strcasestr.
62491         * lib/strcasestr.c: Don't include mbuiter.h.
62492         (strcasestr): Remove support for multibyte locales.
62493         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62494         Change the conditional link warning.
62495         (mbscasestr): New declaration.
62496         * m4/mbscasestr.m4: New file.
62497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62498         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62499         REPLACE_STRCASESTR.
62500         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62502         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62503         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62504         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62505         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62506         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62507         (Depends-on): Remove mbuiter.
62508         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62509
62510 2007-02-04  Bruno Haible  <bruno@clisp.org>
62511
62512         Simplify handling of strncasecmp.
62513         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62514         the conditional link warning.
62515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62516         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62517         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62518         * modules/strcase (configure.ac): Don't invoke
62519         gl_STRING_MODULE_INDICATOR.
62520         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62521
62522 2007-02-04  Bruno Haible  <bruno@clisp.org>
62523
62524         New module mbscasecmp, reduced goal of strcasecmp.
62525         * modules/mbscasecmp: New file.
62526         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62527         (mbscasecmp): Renamed from strcasecmp.
62528         * lib/strcasecmp.c: Don't include mbuiter.h.
62529         (strcasecmp): Remove support for multibyte locales.
62530         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62531         Change the conditional link warning.
62532         (mbscasecmp): New declaration.
62533         * m4/mbscasecmp.m4: New file.
62534         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62535         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62536         REPLACE_STRCASECMP.
62537         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62539         GNULIB_MBSCASECMP.
62540         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62541         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62542         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62543         (Depends-on): Remove mbuiter.
62544         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62545
62546 2007-02-04  Bruno Haible  <bruno@clisp.org>
62547
62548         New module mbsstr. Remove module strstr.
62549         * modules/mbsstr: New file.
62550         * modules/strstr: Remove file.
62551         * lib/mbsstr.c: Renamed from lib/strstr.c.
62552         (mbsstr): Renamed from strstr.
62553         * lib/string_.h (strstr): Remove declaration. Change the conditional
62554         link warning.
62555         (mbsstr): New declaration.
62556         * m4/mbsstr.m4: New file.
62557         * m4/strstr.m4: Remove file.
62558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62559         REPLACE_STRSTR.
62560         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62561         Don't initialize GNULIB_STRSTR.
62562         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62563         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62564         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62565         (Support for systems lacking ANSI C 89): Remove strstr.
62566
62567 2007-02-04  Bruno Haible  <bruno@clisp.org>
62568
62569         New module mbsrchr.
62570         * modules/mbsrchr: New file.
62571         * lib/mbsrchr.c: New file.
62572         * lib/string_.h (strrchr): Add a conditional link warning.
62573         (mbsrchr): New declaration.
62574         * m4/mbsrchr.m4: New file.
62575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62576         GNULIB_MBSRCHR.
62577         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62578         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62579
62580 2007-02-04  Bruno Haible  <bruno@clisp.org>
62581
62582         New module mbschr.
62583         * modules/mbschr: New file.
62584         * lib/mbschr.c: New file.
62585         * lib/string_.h (strchr): Add a conditional link warning.
62586         (mbschr): New declaration.
62587         * m4/mbschr.m4: New file.
62588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62589         GNULIB_MBSCHR.
62590         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62591         * MODULES.html.sh (Internationalization functions): Add mbschr.
62592
62593 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62594
62595         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62596
62597         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62598
62599 2007-02-04  Bruno Haible  <bruno@clisp.org>
62600
62601         New module description section 'configure.ac-early'.
62602         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62603         (func_get_autoconf_early_snippet): New function.
62604         (func_import, func_create_testdir): Use it. Remove special cases for
62605         modules 'extensions' and 'lock'.
62606         * modules/extensions (configure.ac-early): Require
62607         gl_USE_SYSTEM_EXTENSIONS.
62608         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62609
62610 2007-02-04  Bruno Haible  <bruno@clisp.org>
62611
62612         Make use of gcj-4.3's -fsource and -ftarget option.
62613         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62614         and if so try the options -fsource and -ftarget.
62615         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62616         source_version, ftarget_option, target_version arguments.
62617         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62618         (is_envjavac_oldgcj_14_14_usable): Renamed from
62619         is_envjavac_gcj_14_14_usable.
62620         (is_envjavac_oldgcj_14_13_usable): Renamed from
62621         is_envjavac_gcj_14_13_usable.
62622         (is_gcj_present): Update.
62623         (is_gcj_43, is_gcj43_usable): New functions.
62624         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62625         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62626         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62627         try the options -fsource and -ftarget.
62628
62629 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62630
62631         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62632         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62633         larger value.
62634
62635 2007-02-03  Jim Meyering  <jim@meyering.net>
62636
62637         Give tools a better chance to allocate space for very large buffers.
62638         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62639
62640         Make pwd and readlink work also when run with an unreadable parent dir
62641         on systems with openat support.
62642         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62643         provided getcwd function, even when we have openat support.
62644         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62645
62646 2007-02-02  Bruno Haible  <bruno@clisp.org>
62647
62648         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62649         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62650         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62651         portability problems if one of these functions is only used on specific
62652         platforms.
62653         Reported by Paul Eggert.
62654
62655 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62658         is causing more trouble than it's curing.
62659         * lib/regex_internal.h (__mempcpy): Remove.
62660         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62661         (and make the code a tad smaller to boot).
62662         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62663
62664 2007-02-02  Jim Meyering  <jim@meyering.net>
62665
62666         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62667         section, not in the Makefile.am: one.
62668
62669 2007-02-02  Eric Blake  <ebb9@byu.net>
62670
62671         * lib/strchrnul.c: Always include config.h first.
62672
62673         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62674         gnulib strstr is not necessary here.
62675
62676 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62677
62678         * m4/socklen.m4: Fix typo.
62679
62680 2007-02-02  Eric Blake  <ebb9@byu.net>
62681
62682         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62683         * modules/netinet_in (Makefile.am): Likewise.
62684
62685 2007-02-01  Bruno Haible  <bruno@clisp.org>
62686
62687         * lib/string_.h (GL_LINK_WARNING): New macro.
62688         (strcasecmp, strstr, strcasestr): If provided by the system,
62689         conditionally define as a macro that leads to a warning instead of to
62690         an error.
62691         (strncasecmp): Conditionally define as a macro that leads to a warning.
62692
62693 2007-02-01  Karl Berry  <karl@gnu.org>
62694
62695         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62696
62697 2007-02-01  Bruno Haible  <bruno@clisp.org>
62698
62699         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62700         renamings.
62701
62702 2007-02-01  Eric Blake  <ebb9@byu.net>
62703
62704         * modules/regex (Depends-on): Revert dependence on mempcpy.
62705         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62706         module's definition of mempcpy.
62707         Reported by Paul Eggert.
62708
62709 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62710
62711         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62712         the symbol XYZ before redefining it.  This fixes a problem with
62713         programs that don't use XYZ, when compiled on systems that define
62714         XYZ to something else.
62715
62716 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62719         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62720         writeable to group or other and (2) is intended to have a special
62721         mode bit that is set or cleared.  In such a case, the directory
62722         should be neither group- nor other-writeable until the special
62723         mode bits are right.
62724
62725 2007-01-31  Eric Blake  <ebb9@byu.net>
62726
62727         * modules/mountlist (Depends-on): Add strstr.
62728
62729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62730         bug.
62731         * modules/string (Makefile.am): Remove redundant replacement.
62732         * modules/regex (Depends-on): Add mempcpy.
62733
62734 2007-01-31  Bruno Haible  <bruno@clisp.org>
62735
62736         New module description field 'Link'.
62737         * gnulib-tool (func_usage): Document --extract-link-directive.
62738         (sed_extract_prog): Recognize 'Link' directive.
62739         (func_get_link_directive): New function.
62740         (func_import): Show summary of link directives.
62741         Handle --extract-link-directive option.
62742         * modules/acl (Link): New section.
62743         * modules/clock-time (Link): New section.
62744         * modules/euidaccess (Link): New section.
62745         * modules/gettext (Link): New section.
62746         * modules/iconv (Link): New section.
62747         * modules/lock (Link): New section.
62748         * modules/nanosleep (Link): New section.
62749         * modules/readline (Link): New section.
62750
62751 2007-01-27  Bruno Haible  <bruno@clisp.org>
62752
62753         Enforce the use of gnulib modules for unportable <string.h> functions.
62754         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62755         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62756         (gl_HEADER_STRING_H_BODY): Require it.
62757         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62758         the symbol XYZ to one that gives a link error.
62759         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62760         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62761         * modules/mempcpy (configure.ac): Likewise.
62762         * modules/memrchr (configure.ac): Likewise.
62763         * modules/stpcpy (configure.ac): Likewise.
62764         * modules/stpncpy (configure.ac): Likewise.
62765         * modules/strcase (configure.ac): Likewise.
62766         * modules/strcasestr (configure.ac): Likewise.
62767         * modules/strchrnul (configure.ac): Likewise.
62768         * modules/strdup (configure.ac): Likewise.
62769         * modules/strndup (configure.ac): Likewise.
62770         * modules/strnlen (configure.ac): Likewise.
62771         * modules/strpbrk (configure.ac): Likewise.
62772         * modules/strsep (configure.ac): Likewise.
62773         * modules/strstr (configure.ac): Likewise.
62774         * modules/strtok_r (configure.ac): Likewise.
62775
62776 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62777
62778         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62779
62780 2007-01-30  Jim Meyering  <jim@meyering.net>
62781
62782         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62783
62784 2007-01-29  Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62787         * lib/execute.c: Likewise.
62788         * lib/pipe.c: Likewise.
62789         * lib/printf-args.h: Likewise.
62790         * lib/printf-args.c: Likewise.
62791         * lib/printf-parse.c: Likewise.
62792         * lib/vasnprintf.c: Likewise.
62793
62794 2007-01-29  Eric Blake  <ebb9@byu.net>
62795
62796         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62797         declaration.
62798
62799 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62800
62801         * lib/strptime.h (strptime): Use 'restrict' for args where
62802         POSIX requires this.
62803         * lib/strptime.c (strptime): Likewise.
62804         Change license notice from LGPL to GPL, since gnulib-tool will
62805         change this as needed.
62806         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62807         defined.
62808         Include "strptime.h" first, to check interface.
62809         Do not #undef _LIBC and _NL_CURRENT.
62810         Do not include <stdlib.h>; no longer needed.
62811         Include "time_r.h" and declare ptime_locale_status
62812         only if _LIBC is not defined.
62813         (__P): Remove unused macro.
62814         (match_string): Bring back glibc version, but use it only if _LIBC
62815         is defined.
62816         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62817         Remove unnecessary assertion and abort() call.
62818         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62819         * m4/strptime.m4: Fix serial number comment.
62820         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62821         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62822         (Depends-on): Add time_r.
62823
62824 2007-01-29  Bruno Haible  <bruno@clisp.org>
62825
62826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62827         strptime.
62828         * modules/strptime (Depends-on): Add stdbool.
62829         * lib/strptime.h: Include <time.h> always. Add comments.
62830
62831 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62832
62833         * modules/strptime: New file.
62834         * lib/strptime.h: New file.
62835         * lib/strptime.c: New file.
62836         * m4/strptime.m4: New file.
62837
62838 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * MODULES.html.sh: New module mpsort.
62841         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62842
62843         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62844         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62846         All uses changed.
62847         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62848         All uses changed.
62849         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62850         to _Restrict_.
62851         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62852         the parameter matches the prototype.
62853
62854 2007-01-28  Jim Meyering  <jim@meyering.net>
62855
62856         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62857         sys/time.h here, reverting that part of the previous patch:
62858         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62859
62860 2007-01-28  Bruno Haible  <bruno@clisp.org>
62861
62862         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62863         value of $(SYS_TIME_H).
62864         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62865         remove it conditionally, too. [added by Jim Meyering]
62866         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62867         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62868         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62869         GETTIMEOFDAY_REPLACEMENT to 1.
62870
62871 2007-01-28  Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62874         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62876         Set UNISTD_H instead of UNISTD_H2.
62877         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62878
62879 2007-01-28  Bruno Haible  <bruno@clisp.org>
62880
62881         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62882         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62883
62884 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62885
62886         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62887         (func_create_testdir): Ensure C locale for `grep' and `tr'
62888         character ranges.
62889         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62890         ACLOCAL_AMFLAGS parsing state machine.
62891
62892 2007-01-27  Bruno Haible  <bruno@clisp.org>
62893
62894         * modules/unistr/base: Update.
62895
62896 2007-01-27  Bruno Haible  <bruno@clisp.org>
62897
62898         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62899         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62900         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62901         modules/unistr/u32-mbtouc.
62902         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62903         * lib/unistr.h: Update.
62904         * lib/linebreak.c: Update.
62905         * modules/unistr/u32-mbtouc: Renamed from
62906         modules/unistr/u32-mbtouc-safe.
62907         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62908         * lib/unistr.h: Update.
62909         * lib/unistr/u32-to-u8.c: Update.
62910         * lib/unistr/u32-to-u16.c: Update.
62911
62912 2007-01-27  Bruno Haible  <bruno@clisp.org>
62913
62914         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62915         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62916         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62917         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62918         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62919         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62920         modules/unistr/u16-mbtouc.
62921         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62922         * lib/unistr.h: Update.
62923         * lib/linebreak.c: Update.
62924         * modules/linebreak: Update.
62925         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62926         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62927         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62928         * modules/unistr/u16-mbtouc: Renamed from
62929         modules/unistr/u16-mbtouc-safe.
62930         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62931         * lib/unistr.h: Update.
62932         * lib/unistr/u16-to-u8.c: Update.
62933         * modules/unistr/u16-to-u8: Update.
62934         * lib/unistr/u16-to-u32.c: Update.
62935         * modules/unistr/u16-to-u32: Update.
62936
62937 2007-01-27  Bruno Haible  <bruno@clisp.org>
62938
62939         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62940         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62941         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62942         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62943         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62944         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62945         modules/unistr/u8-mbtouc.
62946         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62947         * lib/unistr.h: Update.
62948         * lib/striconveh.c: Update.
62949         * modules/striconveh: Update.
62950         * lib/linebreak.c: Update.
62951         * modules/linebreak: Update.
62952         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62953         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62954         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62955         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62956         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62957         * lib/unistr.h: Update.
62958         * lib/striconveh.c: Update.
62959         * modules/striconveh: Update.
62960         * lib/unistr/u8-to-u16.c: Update.
62961         * modules/unistr/u8-to-u16: Update.
62962         * lib/unistr/u8-to-u32.c: Update.
62963         * modules/unistr/u8-to-u32: Update.
62964
62965 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62966
62967         Sync from Libtool.
62968         * lib/argz.c: Do not include strings.h nor memory.h, include
62969         string.h unconditionally.  Patch by Simon Josefsson.
62970
62971 2007-01-27  Bruno Haible  <bruno@clisp.org>
62972
62973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62974         from gl_HEADER_STRING_H_BODY.
62975         (gl_HEADER_STRING_H_BODY): Require it.
62976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62977         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62978         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62979         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62981         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62983         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62984         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62986         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62987         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62988         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62989         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62990         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62991
62992 2007-01-27  Bruno Haible  <bruno@clisp.org>
62993
62994         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62995         check_PROGRAMS into noinst_PROGRAMS.
62996         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62997         check_PROGRAMS in this case.
62998         (func_import): Set for_test to false.
62999         (func_create_testdir): Set for_test to true.
63000
63001 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63002             Bruno Haible  <bruno@clisp.org>
63003
63004         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63005         (Depends-on): Add string.
63006         (Includes): Use <string.h> instead of strcasestr.h.
63007         * modules/string (Makefile.am): Also substitute the value of
63008         REPLACE_STRCASESTR.
63009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63010         assume strcasestr is declared in <string.h> not <strings.h>. Also
63011         set REPLACE_STRCASESTR.
63012         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63013         REPLACE_STRCASESTR.
63014         * lib/strcasestr.h: Remove file.
63015         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63016         * lib/string_.h (strcasestr): New declaration.
63017
63018 2007-01-27  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/string_.h: Use 'extern'.
63021
63022 2007-01-27  Jim Meyering  <jim@meyering.net>
63023
63024         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63025         of set-but-not-used local, "q".
63026
63027         * lib/mempcpy.c: Include <config.h> before <string.h>.
63028         This fixes a compilation error on HP-UX, due to the system's
63029         "restrict"-using mempcpy prototype.
63030
63031 2007-01-26  Bruno Haible  <bruno@clisp.org>
63032
63033         Small optimization.
63034         * lib/javacomp.c: Include c-strstr.h.
63035          (is_envjavac_gcj): Use c_strstr instead of strstr.
63036         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63037
63038 2007-01-26  Bruno Haible  <bruno@clisp.org>
63039
63040         * MODULES.html.sh (Unicode string functions): Add the new modules.
63041
63042         * modules/uniconv/u32-strconv-to-locale: New file.
63043         * lib/uniconv/u32-strconv-to-locale.c: New file.
63044
63045         * modules/uniconv/u16-strconv-to-locale: New file.
63046         * lib/uniconv/u16-strconv-to-locale.c: New file.
63047
63048         * modules/uniconv/u8-strconv-to-locale: New file.
63049         * lib/uniconv/u8-strconv-to-locale.c: New file.
63050
63051         * modules/uniconv/u32-strconv-from-locale: New file.
63052         * lib/uniconv/u32-strconv-from-locale.c: New file.
63053
63054         * modules/uniconv/u16-strconv-from-locale: New file.
63055         * lib/uniconv/u16-strconv-from-locale.c: New file.
63056
63057         * modules/uniconv/u8-strconv-from-locale: New file.
63058         * lib/uniconv/u8-strconv-from-locale.c: New file.
63059
63060         * modules/uniconv/u32-strconv-to-enc: New file.
63061         * lib/uniconv/u32-strconv-to-enc.c: New file.
63062         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63063         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63064
63065         * modules/uniconv/u16-strconv-to-enc: New file.
63066         * lib/uniconv/u16-strconv-to-enc.c: New file.
63067         * lib/uniconv/u-strconv-to-enc.h: New file.
63068         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63069         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63070
63071         * modules/uniconv/u8-strconv-to-enc: New file.
63072         * lib/uniconv/u8-strconv-to-enc.c: New file.
63073         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63074         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63075
63076         * modules/uniconv/u32-strconv-from-enc: New file.
63077         * lib/uniconv/u32-strconv-from-enc.c: New file.
63078         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63079         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63080
63081         * modules/uniconv/u16-strconv-from-enc: New file.
63082         * lib/uniconv/u16-strconv-from-enc.c: New file.
63083         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63084         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63085
63086         * modules/uniconv/u8-strconv-from-enc: New file.
63087         * lib/uniconv/u8-strconv-from-enc.c: New file.
63088         * lib/uniconv/u-strconv-from-enc.h: New file.
63089         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63090         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63091
63092         * modules/uniconv/u32-conv-from-enc: New file.
63093         * lib/uniconv/u32-conv-from-enc.c: New file.
63094         * modules/uniconv/u32-conv-from-enc-tests: New file.
63095         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63096
63097         * modules/uniconv/u16-conv-from-enc: New file.
63098         * lib/uniconv/u16-conv-from-enc.c: New file.
63099         * lib/uniconv/u-conv-from-enc.h: New file.
63100         * modules/uniconv/u16-conv-from-enc-tests: New file.
63101         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63102
63103         * modules/uniconv/u8-conv-from-enc: New file.
63104         * lib/uniconv/u8-conv-from-enc.c: New file.
63105         * modules/uniconv/u8-conv-from-enc-tests: New file.
63106         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63107
63108         * modules/uniconv/base: New file.
63109         * lib/uniconv.h: New file.
63110
63111 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63112
63113         * doc/gnulib-tool.texi (Initial import): Update to match current
63114         behavior with strdup module.
63115         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63116         * lib/memmem.h: Remove; all uses removed.  This is now done
63117         by <string.h>.
63118         * lib/mempcpy.h: Likewise.
63119         * lib/memrchr.h: Likewise.
63120         * lib/stpcpy.h: Likewise.
63121         * lib/stpncpy.h: Likewise.
63122         * lib/strcase.h: Likewise.
63123         * lib/strchrnul.h: Likewise.
63124         * lib/strdup.h: Likewise.
63125         * lib/strndup.h: Likewise.
63126         * lib/strnlen.h: Likewise.
63127         * lib/strpbrk.h: Likewise.
63128         * lib/strsep.h: Likewise.
63129         * lib/strstr.h: Likewise.
63130         * lib/strtok_r.h: Likewise.
63131         * lib/string_.h: New file.
63132         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63133         Rely on <string.h> instead.
63134         * lib/canon-host.c: Likewise.
63135         * lib/chdir-long.c: Likewise.
63136         * lib/concatpath.c: Likewise.
63137         * lib/exclude.c: Likewise.
63138         * lib/fchdir.c: Likewise.
63139         * lib/getaddrinfo.c: Likewise.
63140         * lib/getcwd.c: Likewise.
63141         * lib/getsubopt.c: Likewise.
63142         * lib/glob.c: Likewise.
63143         * lib/hard-locale.c: Likewise.
63144         * lib/iconvme.c: Likewise.
63145         * lib/javacomp.c: Likewise.
63146         * lib/mempcpy.c: Likewise.
63147         * lib/memrchr.c: Likewise.
63148         * lib/regex_internal.h: Likewise.
63149         * lib/stpncpy.c: Likewise.
63150         * lib/strcasecmp.c: Likewise.
63151         * lib/strchrnul.c: Likewise.
63152         * lib/strdup.c: Likewise.
63153         * lib/striconv.c: Likewise.
63154         * lib/striconveh.c: Likewise.
63155         * lib/striconveha.c: Likewise.
63156         * lib/strncasecmp.c: Likewise.
63157         * lib/strndup.c: Likewise.
63158         * lib/strnlen.c: Likewise.
63159         * lib/strsep.c: Likewise.
63160         * lib/strstr.c: Likewise.
63161         * lib/strtok_r.c: Likewise.
63162         * lib/userspec.c: Likewise.
63163         * lib/w32spawn.h: Likewise.
63164         * lib/xstrndup.c: Likewise.
63165         * lib/mountlist.c (strstr): Remove decl.
63166         * m4/string_h.m4: New file.
63167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63168         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63169         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63170         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63171         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63172         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63173         Set REPLACE_STRCASECMP if necessary.
63174         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63175         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63176         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63178         HAVE_DECL_STRDUP if necessary.
63179         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63180         since gl_FUNC_STRNDUP does that now.
63181         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63182         Check for decl here...
63183         (gl_PREREQ_STRNLEN): ... not here.
63184         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63185         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63186         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63188         necessary.
63189         * modules/string: New file.
63190         * modules/memmem (Files): Remove special-purpose include file.
63191         (Depends-on): Add string.
63192         (Include): Include <string.h>, not the removed file.
63193         * modules/mempcpy: Likewise.
63194         * modules/memrchr: Likewise.
63195         * modules/stpcpy: Likewise.
63196         * modules/stpncpy: Likewise.
63197         * modules/strcase: Likewise.
63198         * modules/strchrnul: Likewise.
63199         * modules/strdup: Likewise.
63200         * modules/strndup: Likewise.
63201         * modules/strnlen: Likewise.
63202         * modules/strpbrk: Likewise.
63203         * modules/strsep: Likewise.
63204         * modules/strstr: Likewise.
63205         * modules/strtok_r: Likewise.
63206         * tests/test-dirname.c: Don't include "strdup.h", since
63207         <string.h> now suffices.
63208         * tests/test-memmem.c: Don't include "memmem.h", since
63209         <string.h> now suffices.
63210
63211 2007-01-25  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63214         *resultp is 0.
63215
63216         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63217         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63218         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63219         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63220
63221         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63222         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63223         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63224         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63225         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63226         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63227
63228 2007-01-24  Bruno Haible  <bruno@clisp.org>
63229
63230         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63231         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63232         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63233         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63234         gl_FUNC_FTS_CORE.
63235         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63236         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63237         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63238         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63239         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63240         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63241         gl_FUNC_FCHOWNAT.
63242         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63243         gl_FUNC_STRFTIME.
63244         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63245         Reported by Ralf Wildenhues.
63246
63247 2007-01-24  Bruno Haible  <bruno@clisp.org>
63248
63249         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63250         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63251         gl_GETADDRINFO.
63252         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63253         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63254         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63255
63256 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63259         Don't use 'exit'; just return from 'main'.
63260         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63261
63262         * lib/fnmatch_.h: Readjust white space and comments to match
63263         glibc, to avoid spurious diffs.
63264
63265 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63266
63267         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63268         2004-12-01 change by Jakub Jelinek, since this code won't compile
63269         if !LIBC.  Problem reported by Bob Proulx.
63270
63271 2007-01-23  Bruno Haible  <bruno@clisp.org>
63272
63273         * lib/striconveh.c: Include c-strcaseeq.h.
63274         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63275         * modules/striconveh (Depends-on): Add c-strcaseeq.
63276
63277 2007-01-23  Bruno Haible  <bruno@clisp.org>
63278
63279         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63280
63281         * modules/c-strcaseeq: New file.
63282         * lib/c-strcaseeq.h: New file.
63283
63284         * modules/streq: New file.
63285         * lib/streq.h: New file.
63286
63287 2007-01-23  Bruno Haible  <bruno@clisp.org>
63288
63289         * modules/striconveha-tests: New file.
63290         * tests/test-striconveha.c: New file.
63291
63292         * lib/striconveha.h: Include <stdbool.h>.
63293         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63294         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63295         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63296         (mem_iconveha): New function.
63297         (str_iconveha_notranslit): Renamed from str_iconveha.
63298         (str_iconveha): New function.
63299         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63300         c-strcase.
63301
63302 2007-01-23  Bruno Haible  <bruno@clisp.org>
63303
63304         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63305         encodings without forgiving before trying any encoding with handler.
63306         (str_iconveha): Try all encodings without forgiving before trying any
63307         encoding with handler.
63308
63309 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63310
63311         Import the following changes from libc.
63312
63313         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63314
63315         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63316
63317         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63318
63319         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63320         normal_bracket label.
63321
63322         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63323
63324         [BZ #361]
63325         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63326         to normal_bracket after fetching the next character.
63327
63328 2007-01-22  Bruno Haible  <bruno@clisp.org>
63329
63330         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63331         argument.
63332         * lib/striconveh.c (iconv_carefully_1): New function.
63333         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63334         argument.
63335         (str_cd_iconveh): Update.
63336         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63337         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63338         * tests/test-striconveh.c (MAGIC): New macro.
63339         (new_offsets): New function.
63340         (main): Test call with and without offsets.
63341
63342 2007-01-22  Bruno Haible  <bruno@clisp.org>
63343
63344         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63345         * modules/sys_select (Makefile.am): Likewise.
63346         * modules/sys_socket (Makefile.am): Likewise.
63347         * modules/sys_time (Makefile.am): Likewise.
63348
63349 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63350
63351         * modules/gettimeofday (License): Change from GPL to LGPL, since
63352         gettimeofday is a library function.
63353
63354 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63355
63356         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63357
63358 2007-01-21  Bruno Haible  <bruno@clisp.org>
63359
63360         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63361
63362 2007-01-21  Bruno Haible  <bruno@clisp.org>
63363
63364         * modules/striconveha: New file.
63365         * lib/striconveha.h: New file.
63366         * lib/striconveha.c: New file.
63367         * MODULES.html.sh (Internationalization functions): Add striconveha.
63368         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63369         string.
63370         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63371
63372 2007-01-21  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63375         * lib/striconveh.c (str_iconveh): Likewise.
63376
63377 2007-01-21  Bruno Haible  <bruno@clisp.org>
63378
63379         * lib/striconveh.h (mem_iconveh): New declaration.
63380         * lib/striconveh.c (mem_iconveh): New function.
63381         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63382
63383 2007-01-21  Bruno Haible  <bruno@clisp.org>
63384
63385         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63386
63387         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63388         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63389         original result buffer.
63390         (str_cd_iconveh): Update.
63391         * tests/test-striconveh.c (main): Update.
63392
63393         * lib/striconv.h (mem_cd_iconv): Change specification.
63394         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63395         result buffer.
63396         (str_cd_iconv): Update.
63397         * tests/test-striconv.c (main): Update.
63398
63399 2007-01-21  Bruno Haible  <bruno@clisp.org>
63400
63401         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63402
63403 2007-01-20  Jim Meyering  <jim@meyering.net>
63404
63405         * lib/userspec.c (parse_with_separator): If a user or group string
63406         starts with "+", skip the corresponding name-to-ID look-up, since
63407         such a look-up must fail: user and group names may not include "+".
63408
63409 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63410
63411         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63412         since we now assume the sys_time module.
63413         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63414         check for sys/time.h; no longer needed.
63415         * modules/poll (Depends-on): Depend on sys_time.
63416
63417 2007-01-18  Bruno Haible  <bruno@clisp.org>
63418
63419         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63420         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63421
63422         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63423         gettimeofday.
63424
63425         * tests/test-gettimeofday.c: Include <time.h>.
63426         (dummy): Remove variable.
63427
63428         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63429         gl_HEADER_SYS_TIME_H.
63430         (gl_HEADER_SYS_TIME_H): New macro.
63431
63432         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63433         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63435         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63436         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63438         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63439         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63440         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63441         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63442         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63443
63444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63445         last change; it caused a compilation error when cross-compiling to
63446         Cygwin.
63447
63448 2007-01-18  Jim Meyering  <jim@meyering.net>
63449
63450         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63451         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63452         than the race-prone "test -d sys || mkdir sys".
63453         (configure.ac): Use AC_PROG_MKDIR_P.
63454         * modules/sys_select: Likewise.
63455         * modules/sys_socket: Likewise.
63456         * modules/sys_time: Likewise.
63457
63458 2007-01-18  Eric Blake  <ebb9@byu.net>
63459
63460         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63461         replace gettimeofday.
63462         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63463         name, to avoid infinite recursion.
63464
63465 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63466
63467         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63468         module sys_time.
63469         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63470         assume timespec.h defines struct timeval.
63471         * lib/settime.c: Likewise.
63472         * lib/utimens.c: Likewise.
63473         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63474         since we now assume the gettimeofday module.
63475         * lib/tempname.c (__gen_tempname): Likewise.
63476         * lib/gettimeofday.h: Remove.
63477         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63478         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63479         Include <time.h>, for 'time()'.
63480         (localtime_buffer_addr): Also use this workaround if
63481         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63482         to simplify the uses.  All uses changed.
63483         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63484         that #undef is inside {}, and 'const' follows type name consistently.
63485         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63486         (gettimeofday): Do not use the maximum possible value for
63487         tv->tv_usec, since that might break usages other than ls.c.
63488         Instead, we'll leave ls.c alone.  This undoes today's patch
63489         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63490         we've never observed the problem but might as well keep the
63491         canary.
63492         * lib/nanosleep.c: Include timespec.h first, for interface check.
63493         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63494         now assume the sys_time module.
63495         * lib/tempname.c: Likewise.
63496         * lib/timespec.h: Likewise.
63497         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63498         needed.
63499         * lib/strftime.c: Likewise.
63500         * lib/timespec.h: Likewise.
63501         * lib/posixtm.c: Include posixtm.h first, for interface check.
63502         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63503         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63504         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63505         * lib/sys_time_.h: New file.
63506         * lib/timespec.h (struct timespec): Use long int, not long.
63507         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63508         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63509         Remove obsolescent call to AC_HEADER_TIME.
63510         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63512         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63513         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63514         Likewise.
63515         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63516         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63517         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63518         into the sys_time module.  Check for gettimeofday just once.
63519         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63520         for gettimeofday signature to just check the signature.  Merely
63521         compile it, since linking doesn't test signature.  Improve test for
63522         whether gettimeofday.o is actually needed.
63523         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63524         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63525         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63526         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63527         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63528         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63529         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63530         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63531         than worrying about sys/time.h.
63532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63533         Don't bother worrying about TIME_WITH_SYS_TIME.
63534         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63535         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63536         * m4/sys_time_h.m4: New file.
63537         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63538         Don't include sys/time.h.  Return from main rather than exiting.
63539         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63540         all uses changed.
63541         * modules/gethrxtime (Depends-on): Add sys_time.
63542         * modules/gettime (Depends-on): Likewise.
63543         * modules/gettimeofday (Depends-on): Likewise.
63544         * modules/nanosleep (Depends-on): Likewise.
63545         * modules/settime (Depends-on): Likewise.
63546         * modules/tempname (Depends-on): Likewise.
63547         * modules/utimens (Depends-on): Likewise.
63548         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63549         (Include): Change back to <sys/time.h>.
63550         (Maintainer): Add self.
63551         * modules/sys_time: New file.
63552         * modules/tempname (Depends-on): Add gettimeofday.
63553         * tests/test-gettimeofday.c: Include <sys/time.h>
63554         rather than gettimeofday.h.
63555
63556 2007-01-17  Bruno Haible  <bruno@clisp.org>
63557
63558         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63559         the license default to GPL.
63560         (func_create_testdir): Don't complain if a module is LGPL and its
63561         tests module depends on GPLed modules.
63562
63563 2007-01-17  Bruno Haible  <bruno@clisp.org>
63564
63565         * lib/gettimeofday.c (gettimeofday): Add code for the case
63566         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63567         maximum possible value for tv->tv_usec, rather than the minimum one.
63568
63569 2005-10-08  Martin Lambers  <marlam@marlam.de>
63570 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63571 2007-01-16  Bruno Haible  <bruno@clisp.org>
63572
63573         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63574         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63575         gl_FUNC_GETTIMEOFDAY.
63576         (Include): Add gettimeofday.h.
63577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63578         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63579         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63580         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63581         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63582         * lib/gettimeofday.h: New file.
63583         * lib/gettimeofday.c: Include <sys/timeb.h>.
63584         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63585         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63586         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63587         fall back on time().
63588
63589         * tests/test-gettimeofday.c: New file.
63590         * modules/gettimeofday-tests: New file.
63591
63592 2007-01-16  Eric Blake  <ebb9@byu.net>
63593
63594         * modules/fnmatch (Depends-on): Depend on wchar.
63595         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63596         * m4/fnmatch.m4: Likewise.
63597         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63598         * m4/mbchar.m4: Likewise.
63599         * modules/mbswidth (Depends-on): Depend on wchar.
63600         * lib/mbswidth.c: Assume <wchar.h>.
63601         * m4/mbswidth.m4: Likewise.
63602         * modules/quotearg (Depends-on): Depend on wchar.
63603         * lib/quotearg.c: Assume <wchar.h>.
63604         * m4/quotearg.m4: Likewise.
63605         * modules/regex (Depends-on): Depend on wchar.
63606         * lib/regex_internal.h: Assume <wchar.h>.
63607         * m4/regex.m4: Likewise.
63608         * modules/stdint (Depends-on): Depend on wchar.
63609         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63610         * m4/stdint.m4: Likewise.
63611         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63612         * modules/strftime (Depends-on): Depend on wchar.
63613         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63614         * modules/strtol (Depends-on): Depend on wchar.
63615         * lib/strtol.c: Assume <wchar.h>.
63616         * modules/wcwidth (Depends-on): Depend on wchar.
63617         * lib/wcwidth.h: Assume <wchar.h>.
63618         * m4/wcwidth.m4: Likewise.
63619
63620 2007-01-16  Bruno Haible  <bruno@clisp.org>
63621
63622         * modules/csharpexec-script: New, created from...
63623         * modules/csharpexec: ... this.
63624
63625 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63626
63627         * modules/javaexec-script: New, created from...
63628         * modules/javaexec: ... this.
63629
63630 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63631
63632         * modules/poll (Dependencies): Add sys_select.
63633
63634 2007-01-15  Jim Meyering  <jim@meyering.net>
63635
63636         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63637         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63638         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63639         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63640
63641 2007-01-15  Bruno Haible  <bruno@clisp.org>
63642
63643         * modules/striconveh: New file.
63644         * lib/striconveh.h: New file.
63645         * lib/striconveh.c: New file.
63646         * MODULES.html.sh (Internationalization functions): Add striconveh.
63647
63648         * modules/striconveh-tests: New file.
63649         * tests/test-striconveh.c: New file.
63650
63651 2007-01-15  Bruno Haible  <bruno@clisp.org>
63652
63653         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63654         not from GNU libiconv or GNU libc.
63655
63656 2007-01-15  Bruno Haible  <bruno@clisp.org>
63657
63658         * doc/gnulib-intro.texi (Copyright): Explain the different license
63659         terms for module descriptions, autoconf macros, tests, documentation.
63660
63661 2007-01-14  Bruno Haible  <bruno@clisp.org>
63662
63663         * modules/striconv-tests: New file.
63664         * tests/test-striconv.c: New file.
63665
63666 2007-01-14  Bruno Haible  <bruno@clisp.org>
63667
63668         * modules/iconv-tests: New file.
63669         * tests/test-iconv.c: New file.
63670
63671 2007-01-14  Bruno Haible  <bruno@clisp.org>
63672
63673         * gnulib-tool (func_get_license): For test modules, use the license of
63674         the main module.
63675
63676 2007-01-14  Bruno Haible  <bruno@clisp.org>
63677
63678         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63679         if iconv is found to exist.
63680
63681 2007-01-14  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/c-ctype-tests: New file.
63684         * tests/test-c-ctype.c: New file.
63685
63686 2007-01-14  Bruno Haible  <bruno@clisp.org>
63687
63688         * modules/binary-io-tests: New file.
63689         * tests/test-binary-io.sh: New file.
63690         * tests/test-binary-io.c: New file.
63691
63692 2007-01-14  Bruno Haible  <bruno@clisp.org>
63693
63694         * modules/array-oset-tests: New file.
63695         * tests/test-array_oset.c: New file.
63696
63697 2007-01-14  Bruno Haible  <bruno@clisp.org>
63698
63699         * modules/array-list-tests: New file.
63700         * tests/test-array_list.c: New file.
63701
63702 2007-01-14  Bruno Haible  <bruno@clisp.org>
63703
63704         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63705         and make.
63706         Reported by Simon Josefsson in
63707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63708
63709 2007-01-14  Bruno Haible  <bruno@clisp.org>
63710
63711         * modules/allocsa-tests: New file.
63712         * tests/test-allocsa.c: New file.
63713
63714 2007-01-14  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/fchdir (Depends-on): Add absolute-header.
63717         * modules/unistd (Depends-on): Likewise.
63718
63719 2006-12-30  Bruno Haible  <bruno@clisp.org>
63720
63721         * modules/fchdir: New file.
63722         * modules/unistd (Files): Add lib/unistd_.h.
63723         (Makefile.am): Generate unistd.h from unistd_.h.
63724         * lib/fchdir.c: New file.
63725         * lib/dirent_.h: New file.
63726         * lib/unistd_.h: New file.
63727         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63728         * m4/fchdir.m4: New file.
63729         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63730         (gl_HEADER_UNISTD): Invoke it.
63731         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63732         function.
63733         * lib/backupfile.c (opendir, closedir): Undefine.
63734         * lib/chown.c (open, close): Undefine.
63735         * lib/clean-temp.c (open, close): Undefine.
63736         * lib/copy-file.c (open, close): Undefine.
63737         * lib/execute.c (open, close): Undefine.
63738         * lib/fsusage.c (open, close): Undefine.
63739         * lib/gc-gnulib.c (open, close): Undefine.
63740         * lib/getcwd.c (opendir, closedir): Undefine.
63741         * lib/glob.c (opendir, closedir): Undefine.
63742         * lib/javacomp.c (open, close): Undefine.
63743         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63744         * lib/openat-proc.c (open, close): Undefine.
63745         * lib/pagealign_alloc.c (open, close): Undefine.
63746         * lib/pipe.c (open, close): Undefine.
63747         * lib/progreloc.c (open, close): Undefine.
63748         * lib/savedir.c (opendir, closedir): Undefine.
63749         * lib/utime.c (open, close): Undefine.
63750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63751
63752 2007-01-10  Bruno Haible  <bruno@clisp.org>
63753
63754         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63755
63756 2007-01-12  Eric Blake  <ebb9@byu.net>
63757
63758         Provide a robust <wchar.h>.  Further simplifications are now
63759         possible in other modules, but not included here.
63760         * modules/wchar: New module.
63761         * m4/wchar.m4: New file.
63762         * lib/wchar_.h: Likewise.
63763         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63764         of the new module.
63765         * MODULES.html.sh (Extended multibyte and wide character utilities):
63766         New section.
63767
63768 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63769
63770         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63771         to a reasonable default for memory allocation.
63772         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63773         file system that reports garbage st_size values for symlinks.
63774         Problem reported by Liyang Hu.
63775
63776 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63777
63778         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63779         Emacs .#* auto-save files).
63780
63781 2007-01-11  Bruno Haible  <bruno@clisp.org>
63782
63783         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63784         directory.
63785
63786 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         Use @...@ consistently in lib/wctype_.h.
63789         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63790         on it being set to 1 or 0.
63791         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63792         go back to AC_SUBSTing it.
63793         * modules/wctype (Makefile.am): Undo previous change.
63794
63795 2007-01-10  Eric Blake  <ebb9@byu.net>
63796
63797         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63798         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63799         * modules/wctype (Makefile.am): Likewise.
63800         Reported by Chris McGuire.
63801
63802 2007-01-10  Jim Meyering  <jim@meyering.net>
63803
63804         fts.c: a small readability/maintainability improvement
63805         * lib/fts.c (fts_read): Make this code slightly more readable and
63806         maintainable by hoisting the "sp->fts_cur = p" assignments to
63807         immediately follow the statements that set P.  Derived from
63808         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63809
63810 2007-01-10  Eric Blake  <ebb9@byu.net>
63811
63812         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63813         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63815         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63816         Reported by Chris McGuire.
63817
63818 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63819
63820         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63821         in sed script.
63822
63823 2007-01-09  Bruno Haible  <bruno@clisp.org>
63824
63825         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63826         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63827         variables.
63828         (func_module): Use them.
63829
63830 2007-01-09  Bruno Haible  <bruno@clisp.org>
63831
63832         * modules/unistr/base: New file.
63833         * lib/unistr.h: New file.
63834
63835         * modules/unistr/u8-to-u16: New file.
63836         * lib/unistr/u8-to-u16.c: New file.
63837
63838         * modules/unistr/u8-to-u32: New file.
63839         * lib/unistr/u8-to-u32.c: New file.
63840
63841         * modules/unistr/u16-to-u8: New file.
63842         * lib/unistr/u16-to-u8.c: New file.
63843
63844         * modules/unistr/u16-to-u32: New file.
63845         * lib/unistr/u16-to-u32.c: New file.
63846
63847         * modules/unistr/u32-to-u8: New file.
63848         * lib/unistr/u32-to-u8.c: New file.
63849
63850         * modules/unistr/u32-to-u16: New file.
63851         * lib/unistr/u32-to-u16.c: New file.
63852
63853         * modules/unistr/u8-check: New file.
63854         * modules/unistr/u16-check: New file.
63855         * modules/unistr/u32-check: New file.
63856         * lib/unistr/u8-check.c: New file.
63857         * lib/unistr/u16-check.c: New file.
63858         * lib/unistr/u32-check.c: New file.
63859
63860         * modules/unistr/u8-chr: New file.
63861         * modules/unistr/u16-chr: New file.
63862         * modules/unistr/u32-chr: New file.
63863         * lib/unistr/u8-chr.c: New file.
63864         * lib/unistr/u16-chr.c: New file.
63865         * lib/unistr/u32-chr.c: New file.
63866
63867         * modules/unistr/u8-cmp: New file.
63868         * modules/unistr/u16-cmp: New file.
63869         * modules/unistr/u32-cmp: New file.
63870         * lib/unistr/u8-cmp.c: New file.
63871         * lib/unistr/u16-cmp.c: New file.
63872         * lib/unistr/u32-cmp.c: New file.
63873
63874         * modules/unistr/u8-cpy: New file.
63875         * modules/unistr/u16-cpy: New file.
63876         * modules/unistr/u32-cpy: New file.
63877         * lib/unistr/u8-cpy.c: New file.
63878         * lib/unistr/u16-cpy.c: New file.
63879         * lib/unistr/u32-cpy.c: New file.
63880         * lib/unistr/u-cpy.h: New file.
63881
63882         * modules/unistr/u8-cpy-alloc: New file.
63883         * modules/unistr/u16-cpy-alloc: New file.
63884         * modules/unistr/u32-cpy-alloc: New file.
63885         * lib/unistr/u8-cpy-alloc.c: New file.
63886         * lib/unistr/u16-cpy-alloc.c: New file.
63887         * lib/unistr/u32-cpy-alloc.c: New file.
63888         * lib/unistr/u-cpy-alloc.h: New file.
63889
63890         * modules/unistr/u8-endswith: New file.
63891         * modules/unistr/u16-endswith: New file.
63892         * modules/unistr/u32-endswith: New file.
63893         * lib/unistr/u8-endswith.c: New file.
63894         * lib/unistr/u16-endswith.c: New file.
63895         * lib/unistr/u32-endswith.c: New file.
63896         * lib/unistr/u-endswith.h: New file.
63897
63898         * modules/unistr/u8-mblen: New file.
63899         * modules/unistr/u16-mblen: New file.
63900         * modules/unistr/u32-mblen: New file.
63901         * lib/unistr/u8-mblen.c: New file.
63902         * lib/unistr/u16-mblen.c: New file.
63903         * lib/unistr/u32-mblen.c: New file.
63904
63905         * modules/unistr/u8-mbtouc: New file.
63906         * modules/unistr/u16-mbtouc: New file.
63907         * modules/unistr/u32-mbtouc: New file.
63908         * lib/unistr/u8-mbtouc.c: New file.
63909         * lib/unistr/u16-mbtouc.c: New file.
63910         * lib/unistr/u32-mbtouc.c: New file.
63911
63912         * modules/unistr/u8-mbtouc-safe: New file.
63913         * modules/unistr/u16-mbtouc-safe: New file.
63914         * modules/unistr/u32-mbtouc-safe: New file.
63915         * lib/unistr/u8-mbtouc-safe.c: New file.
63916         * lib/unistr/u16-mbtouc-safe.c: New file.
63917         * lib/unistr/u32-mbtouc-safe.c: New file.
63918
63919         * modules/unistr/u8-move: New file.
63920         * modules/unistr/u16-move: New file.
63921         * modules/unistr/u32-move: New file.
63922         * lib/unistr/u8-move.c: New file.
63923         * lib/unistr/u16-move.c: New file.
63924         * lib/unistr/u32-move.c: New file.
63925         * lib/unistr/u-move.h: New file.
63926
63927         * modules/unistr/u8-next: New file.
63928         * modules/unistr/u16-next: New file.
63929         * modules/unistr/u32-next: New file.
63930         * lib/unistr/u8-next.c: New file.
63931         * lib/unistr/u16-next.c: New file.
63932         * lib/unistr/u32-next.c: New file.
63933
63934         * modules/unistr/u8-prev: New file.
63935         * modules/unistr/u16-prev: New file.
63936         * modules/unistr/u32-prev: New file.
63937         * lib/unistr/u8-prev.c: New file.
63938         * lib/unistr/u16-prev.c: New file.
63939         * lib/unistr/u32-prev.c: New file.
63940
63941         * modules/unistr/u8-set: New file.
63942         * modules/unistr/u16-set: New file.
63943         * modules/unistr/u32-set: New file.
63944         * lib/unistr/u8-set.c: New file.
63945         * lib/unistr/u16-set.c: New file.
63946         * lib/unistr/u32-set.c: New file.
63947         * lib/unistr/u-set.h: New file.
63948
63949         * modules/unistr/u8-startswith: New file.
63950         * modules/unistr/u16-startswith: New file.
63951         * modules/unistr/u32-startswith: New file.
63952         * lib/unistr/u8-startswith.c: New file.
63953         * lib/unistr/u16-startswith.c: New file.
63954         * lib/unistr/u32-startswith.c: New file.
63955         * lib/unistr/u-startswith.h: New file.
63956
63957         * modules/unistr/u8-stpcpy: New file.
63958         * modules/unistr/u16-stpcpy: New file.
63959         * modules/unistr/u32-stpcpy: New file.
63960         * lib/unistr/u8-stpcpy.c: New file.
63961         * lib/unistr/u16-stpcpy.c: New file.
63962         * lib/unistr/u32-stpcpy.c: New file.
63963         * lib/unistr/u-stpcpy.h: New file.
63964
63965         * modules/unistr/u8-stpncpy: New file.
63966         * modules/unistr/u16-stpncpy: New file.
63967         * modules/unistr/u32-stpncpy: New file.
63968         * lib/unistr/u8-stpncpy.c: New file.
63969         * lib/unistr/u16-stpncpy.c: New file.
63970         * lib/unistr/u32-stpncpy.c: New file.
63971         * lib/unistr/u-stpncpy.h: New file.
63972
63973         * modules/unistr/u8-strcat: New file.
63974         * modules/unistr/u16-strcat: New file.
63975         * modules/unistr/u32-strcat: New file.
63976         * lib/unistr/u8-strcat.c: New file.
63977         * lib/unistr/u16-strcat.c: New file.
63978         * lib/unistr/u32-strcat.c: New file.
63979         * lib/unistr/u-strcat.h: New file.
63980
63981         * modules/unistr/u8-strchr: New file.
63982         * modules/unistr/u16-strchr: New file.
63983         * modules/unistr/u32-strchr: New file.
63984         * lib/unistr/u8-strchr.c: New file.
63985         * lib/unistr/u16-strchr.c: New file.
63986         * lib/unistr/u32-strchr.c: New file.
63987
63988         * modules/unistr/u8-strcmp: New file.
63989         * modules/unistr/u16-strcmp: New file.
63990         * modules/unistr/u32-strcmp: New file.
63991         * lib/unistr/u8-strcmp.c: New file.
63992         * lib/unistr/u16-strcmp.c: New file.
63993         * lib/unistr/u32-strcmp.c: New file.
63994
63995         * modules/unistr/u8-strcpy: New file.
63996         * modules/unistr/u16-strcpy: New file.
63997         * modules/unistr/u32-strcpy: New file.
63998         * lib/unistr/u8-strcpy.c: New file.
63999         * lib/unistr/u16-strcpy.c: New file.
64000         * lib/unistr/u32-strcpy.c: New file.
64001         * lib/unistr/u-strcpy.h: New file.
64002
64003         * modules/unistr/u8-strcspn: New file.
64004         * modules/unistr/u16-strcspn: New file.
64005         * modules/unistr/u32-strcspn: New file.
64006         * lib/unistr/u8-strcspn.c: New file.
64007         * lib/unistr/u16-strcspn.c: New file.
64008         * lib/unistr/u32-strcspn.c: New file.
64009         * lib/unistr/u-strcspn.h: New file.
64010
64011         * modules/unistr/u8-strdup: New file.
64012         * modules/unistr/u16-strdup: New file.
64013         * modules/unistr/u32-strdup: New file.
64014         * lib/unistr/u8-strdup.c: New file.
64015         * lib/unistr/u16-strdup.c: New file.
64016         * lib/unistr/u32-strdup.c: New file.
64017         * lib/unistr/u-strdup.h: New file.
64018
64019         * modules/unistr/u8-strlen: New file.
64020         * modules/unistr/u16-strlen: New file.
64021         * modules/unistr/u32-strlen: New file.
64022         * lib/unistr/u8-strlen.c: New file.
64023         * lib/unistr/u16-strlen.c: New file.
64024         * lib/unistr/u32-strlen.c: New file.
64025         * lib/unistr/u-strlen.h: New file.
64026
64027         * modules/unistr/u8-strmblen: New file.
64028         * modules/unistr/u16-strmblen: New file.
64029         * modules/unistr/u32-strmblen: New file.
64030         * lib/unistr/u8-strmblen.c: New file.
64031         * lib/unistr/u16-strmblen.c: New file.
64032         * lib/unistr/u32-strmblen.c: New file.
64033
64034         * modules/unistr/u8-strmbtouc: New file.
64035         * modules/unistr/u16-strmbtouc: New file.
64036         * modules/unistr/u32-strmbtouc: New file.
64037         * lib/unistr/u8-strmbtouc.c: New file.
64038         * lib/unistr/u16-strmbtouc.c: New file.
64039         * lib/unistr/u32-strmbtouc.c: New file.
64040
64041         * modules/unistr/u8-strncat: New file.
64042         * modules/unistr/u16-strncat: New file.
64043         * modules/unistr/u32-strncat: New file.
64044         * lib/unistr/u8-strncat.c: New file.
64045         * lib/unistr/u16-strncat.c: New file.
64046         * lib/unistr/u32-strncat.c: New file.
64047         * lib/unistr/u-strncat.h: New file.
64048
64049         * modules/unistr/u8-strncmp: New file.
64050         * modules/unistr/u16-strncmp: New file.
64051         * modules/unistr/u32-strncmp: New file.
64052         * lib/unistr/u8-strncmp.c: New file.
64053         * lib/unistr/u16-strncmp.c: New file.
64054         * lib/unistr/u32-strncmp.c: New file.
64055
64056         * modules/unistr/u8-strncpy: New file.
64057         * modules/unistr/u16-strncpy: New file.
64058         * modules/unistr/u32-strncpy: New file.
64059         * lib/unistr/u8-strncpy.c: New file.
64060         * lib/unistr/u16-strncpy.c: New file.
64061         * lib/unistr/u32-strncpy.c: New file.
64062         * lib/unistr/u-strncpy.h: New file.
64063
64064         * modules/unistr/u8-strnlen: New file.
64065         * modules/unistr/u16-strnlen: New file.
64066         * modules/unistr/u32-strnlen: New file.
64067         * lib/unistr/u8-strnlen.c: New file.
64068         * lib/unistr/u16-strnlen.c: New file.
64069         * lib/unistr/u32-strnlen.c: New file.
64070         * lib/unistr/u-strnlen.h: New file.
64071
64072         * modules/unistr/u8-strpbrk: New file.
64073         * modules/unistr/u16-strpbrk: New file.
64074         * modules/unistr/u32-strpbrk: New file.
64075         * lib/unistr/u8-strpbrk.c: New file.
64076         * lib/unistr/u16-strpbrk.c: New file.
64077         * lib/unistr/u32-strpbrk.c: New file.
64078         * lib/unistr/u-strpbrk.h: New file.
64079
64080         * modules/unistr/u8-strrchr: New file.
64081         * modules/unistr/u16-strrchr: New file.
64082         * modules/unistr/u32-strrchr: New file.
64083         * lib/unistr/u8-strrchr.c: New file.
64084         * lib/unistr/u16-strrchr.c: New file.
64085         * lib/unistr/u32-strrchr.c: New file.
64086
64087         * modules/unistr/u8-strspn: New file.
64088         * modules/unistr/u16-strspn: New file.
64089         * modules/unistr/u32-strspn: New file.
64090         * lib/unistr/u8-strspn.c: New file.
64091         * lib/unistr/u16-strspn.c: New file.
64092         * lib/unistr/u32-strspn.c: New file.
64093         * lib/unistr/u-strspn.h: New file.
64094
64095         * modules/unistr/u8-strstr: New file.
64096         * modules/unistr/u16-strstr: New file.
64097         * modules/unistr/u32-strstr: New file.
64098         * lib/unistr/u8-strstr.c: New file.
64099         * lib/unistr/u16-strstr.c: New file.
64100         * lib/unistr/u32-strstr.c: New file.
64101         * lib/unistr/u-strstr.h: New file.
64102
64103         * modules/unistr/u8-strtok: New file.
64104         * modules/unistr/u16-strtok: New file.
64105         * modules/unistr/u32-strtok: New file.
64106         * lib/unistr/u8-strtok.c: New file.
64107         * lib/unistr/u16-strtok.c: New file.
64108         * lib/unistr/u32-strtok.c: New file.
64109         * lib/unistr/u-strtok.h: New file.
64110
64111         * modules/unistr/u8-uctomb: New file.
64112         * modules/unistr/u16-uctomb: New file.
64113         * modules/unistr/u32-uctomb: New file.
64114         * lib/unistr/u8-uctomb.c: New file.
64115         * lib/unistr/u16-uctomb.c: New file.
64116         * lib/unistr/u32-uctomb.c: New file.
64117
64118         * MODULES.html.sh (Unicode string functions): Add the new modules.
64119
64120 2007-01-08  Bruno Haible  <bruno@clisp.org>
64121
64122         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64123         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64124         subdirectories.
64125
64126 2007-01-08  Karl Berry  <karl@gnu.org>
64127
64128         * doc/error.texi: mention that main() fns must set program_name
64129         when progname is used.
64130
64131 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64132
64133         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64134         WCTYPE_H is empty, for the benefit of builds from non-distclean
64135         directories.  Problem reported by Eric Blake in
64136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64137
64138 2007-01-08  Bruno Haible  <bruno@clisp.org>
64139
64140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64141         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64142         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64143         PROVIDE_CANONICALIZE_FILENAME_MODE.
64144         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64145
64146 2007-01-08  Bruno Haible  <bruno@clisp.org>
64147
64148         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64149         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64150         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64151         * lib/fts.c: Likewise.
64152         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64153
64154 2006-12-25  Bruno Haible  <bruno@clisp.org>
64155
64156         * modules/utf8-ucs4-safe: New file.
64157         * lib/utf8-ucs4-safe.h: New file.
64158         * lib/unistr/utf8-ucs4-safe.c: New file.
64159
64160         * modules/utf16-ucs4-safe: New file.
64161         * lib/utf16-ucs4-safe.h: New file.
64162         * lib/unistr/utf16-ucs4-safe.c: New file.
64163
64164         * MODULES.html.sh (Unicode string functions): Add the new modules.
64165
64166 2007-01-08  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64169         (Depends-on): Add unitypes.
64170         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64171         (u8_mbtouc_aux): Move out to separate file.
64172         (u8_mbtouc): Use ucs4_t, uint8_t types.
64173         * lib/unistr/utf8-ucs4.c: New file.
64174
64175         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64176         (Depends-on): Add unitypes.
64177         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64178         (u16_mbtouc_aux): Move out to separate file.
64179         (u16_mbtouc): Use ucs4_t, uint16_t types.
64180         * lib/unistr/utf16-ucs4.c: New file.
64181
64182         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64183         (Depends-on): Add unitypes.
64184         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64185         (u8_uctomb_aux): Move out to separate file.
64186         (u8_uctomb): Use ucs4_t, uint8_t types.
64187         * lib/unistr/ucs4-utf8.c: New file.
64188
64189         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64190         (Depends-on): Add unitypes.
64191         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64192         (u16_uctomb_aux): Move out to separate file.
64193         (u16_uctomb): Use ucs4_t, uint16_t types.
64194         * lib/unistr/ucs4-utf16.c: New file.
64195
64196 2006-12-25  Bruno Haible  <bruno@clisp.org>
64197
64198         * modules/unitypes: New file.
64199         * lib/unitypes.h: New file.
64200         * MODULES.html.sh (func_all_modules): New section "Unicode string
64201         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64202         this section. Add unitypes.
64203
64204 2007-01-08  Bruno Haible  <bruno@clisp.org>
64205
64206         Avoid variable names that conflict with those from libtool.
64207         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64208         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64209         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64210         library_names_spec to acl_library_names_spec, hardcode_* to
64211         acl_hardcode_*.
64212         Reported by Ralf Wildenhues.
64213
64214 2007-01-08  Bruno Haible  <bruno@clisp.org>
64215
64216         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64217         definition.
64218         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64219         definition.
64220         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64221         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64222         definition.
64223         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64224         definition.
64225         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64226         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64227         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64228         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64229         definition.
64230         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64231         definition.
64232         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64233         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64234         GC_USE_<algorithm>.
64235         * lib/gc-libgcrypt.c: Likewise.
64236         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64237         * modules/gc-arctwo (configure.ac): Likewise.
64238         * modules/gc-des (configure.ac): Likewise.
64239         * modules/gc-hmac-md5 (configure.ac): Likewise.
64240         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64241         * modules/gc-md2 (configure.ac): Likewise.
64242         * modules/gc-md4 (configure.ac): Likewise.
64243         * modules/gc-md5 (configure.ac): Likewise.
64244         * modules/gc-random (configure.ac): Likewise.
64245         * modules/gc-rijndael (configure.ac): Likewise.
64246         * modules/gc-sha1 (configure.ac): Likewise.
64247
64248 2007-01-08  Bruno Haible  <bruno@clisp.org>
64249
64250         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64251         macro definition.
64252         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64253         definition.
64254         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64255         definition.
64256         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64257         * modules/fcntl-safer (configure.ac): Likewise.
64258         * modules/fopen-safer (configure.ac): Likewise.
64259         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64260         GNULIB_FWRITEERROR macro definition.
64261
64262 2007-01-08  Bruno Haible  <bruno@clisp.org>
64263
64264         * m4/gnulib-common.m4: New file.
64265         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64266         (func_get_filelist): Add m4/gnulib-common.m4.
64267
64268 2007-01-08  Bruno Haible  <bruno@clisp.org>
64269
64270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64271         command.
64272
64273 2007-01-08  Jim Meyering  <jim@meyering.net>
64274
64275         Use a more robust test for a "can't happen" condition.
64276         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64277         narrowed the st_size value.  Presuming the "can't happen" condition
64278         is true, that narrowing could conceivably convert an invalid st_size
64279         value into a valid one.  Instead, use a change based on Matthew
64280         Woehlke's original patch.
64281
64282         Slight readability improvement: use an assert-like macro
64283         in place of literal "abort ()" uses.
64284         * lib/fts.c (fts_assert): Define.
64285         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64286         Use this macro instead of a bare 'abort'.
64287
64288 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64289
64290         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64291         simply work around them.
64292         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64293         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64294         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64295         declaring.
64296         Don't bother to define as macros, since the standard doesn't require it.
64297         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64298         longer worry about IRIX 5.3.
64299         (HAVE_WCTYPE_CTMP_BUG): Remove.
64300
64301 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64304         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64305         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64306         Problems reported by Georg Schwarz for IRIX 5.3.
64307
64308         * gnulib-tool (autoconf_minversion): Take the maximum version number
64309         found, not the minimum.  Problem reported by James Youngman.
64310
64311 2007-01-03  Karl Berry  <karl@gnu.org>
64312
64313         * doc/error.texi: new file, explaining interaction with progname.
64314         * doc/gnulib.texi: include it.  Update copyright.
64315
64316 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64317
64318         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64319         AC_CANONICAL_HOST, to improve autobuild outputs.
64320
64321 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64322             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64323
64324         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64325         sockets, server sockets, and other file descriptors.  Count errors
64326         to compute the return value.  Reorder the code a bit to be easier
64327         to follow.  Don't set event bits that were not requested (except
64328         POLLERR and POLLHUP).
64329
64330 2007-01-01  Bruno Haible  <bruno@clisp.org>
64331
64332         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64333
64334 2007-01-03  Jim Meyering  <jim@meyering.net>
64335
64336         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64337
64338 2007-01-02  Bruno Haible  <bruno@clisp.org>
64339
64340         * modules/settime (Include): Require timespec.h.
64341         * modules/nanosleep (Include): Likewise.
64342
64343 2007-01-01  Bruno Haible  <bruno@clisp.org>
64344
64345         * gnulib-tool (func_emit_copyright_notice): Bump year.
64346         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64347
64348 2007-01-01  Bruno Haible  <bruno@clisp.org>
64349
64350         Improve support for OpenBSD.
64351         * build-aux/config.rpath (libname_spec): Export.
64352         (library_names_spec): New variable. Export.
64353         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64354         library_names_spec from the config.rpath output. Locate shared library
64355         through the name pattern in library_names_spec.
64356
64357 2007-01-01  Eric Blake  <ebb9@byu.net>
64358
64359         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64360
64361 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64362
64363         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64364         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64365         assume the C locale, and avoid an "eval" that could cause trouble.
64366         Problem with SORT reported by Bob Proulx.
64367
64368         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64369         Define.  Trivial patch from Henning Nielsen Lund, originally
64370         sent to bug-grep@gnu.org today.
64371
64372 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64375         struct stat.  Problem reported by Henning Nielsen Lund.
64376         * lib/acl.c: Include acl.h first, to check interface.  Don't
64377         bother to include sys/types.h and sys/stat.h again.
64378
64379 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         Import the following change from libc; problem reported by
64382         Sven Verdoolaege.
64383
64384         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64385
64386         [BZ #1373]
64387         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64388
64389 2006-12-28  Jim Meyering  <jim@meyering.net>
64390
64391         * build-aux/announce-gen: Do not assume that the package
64392         builds any of tar.gz, tar.bz2, and .xdelta files.
64393         Suggestion from Simon Josefsson.
64394
64395 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64396
64397         * modules/announce-gen: New file.
64398
64399 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64400
64401         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64402         handles its gotchas now.
64403         * lib/mbswidth.c: Likewise.
64404         * lib/wcwidth.h: Likewise.
64405         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64406         and iswcntrl; the wctype module does this stuff now.
64407         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64409         * modules/mbchar (Depends-on): Add wctype.
64410         * modules/mbswidth (Depends-on): Likewise.
64411         * modules/wcwidth (Depends-on): Likewise.
64412
64413 2006-12-27  Eric Blake  <ebb9@byu.net>
64414
64415         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64416         module uses more than what <wctype.h> is required to provide.
64417
64418 2006-12-26  Eric Blake  <ebb9@byu.net>
64419
64420         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64421
64422 2006-12-26  Eric Blake  <ebb9@byu.net>
64423
64424         * modules/absolute-header: New module.
64425         * modules/fcntl (Depends-on): Depend on it.
64426         * modules/inttypes (Depends-on): Likewise.
64427         * modules/stdint (Depends-on): Likewise.
64428         * modules/sys_stat (Depends-on): Likewise.
64429         * modules/wctype (Depends-on): Likewise.
64430         * MODULES.html.sh (Support for building libraries and
64431         executables): Document it.
64432
64433 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64434
64435         * gnulib-tool (SED): Remove, undoing previous change.
64436         The problem was that it broke coreutils on Solaris, because
64437         "sed --posix" leaked into a makefile.
64438         (sed): New alias, if 'alias' and GNU sed.
64439
64440 2006-12-24  Jim Meyering  <jim@meyering.net>
64441
64442         Work around an fchownat bug in glibc-2.4:
64443         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64444         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64445         in spite of the -P option.
64446         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64447         New macros.
64448         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64449         * modules/openat (Files): Add lib/fchownat.c.
64450         * lib/openat.c (fchownat): Don't define here.  Move to...
64451         * lib/fchownat.c: ...this new file.
64452
64453 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         Fix bug reported by Bruno Haible in
64456         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64457         where quotearg.c didn't compile on Mac OS X 10.2 because it
64458         lacks <wchar.h> and wint_t.
64459         * lib/wctype_.h (__wctype_wint_t): New type.
64460         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64461         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64462         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64463         Arg is now of type __wctype_wint_t, not wint_t.
64464         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64465         substitute HAVE_WINT_T.
64466         * modules/wctype (Files): Add m4/wint_t.m4.
64467         (wctype.h): Substitute HAVE_WINT_T.
64468
64469 2006-12-23  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64472
64473 2006-12-23  Bruno Haible  <bruno@clisp.org>
64474
64475         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64476         S_ISLNK.
64477         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64478         mingw.
64479
64480 2006-12-22  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/copy-file.c: Include acl.h.
64483         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64484         Close the file descriptors only after being done with copy_acl.
64485         * modules/copy-file (Depends-on): Add acl.
64486
64487 2006-12-22  Bruno Haible  <bruno@clisp.org>
64488
64489         * gnulib-tool (SED): New variable.
64490         Use $SED instead of sed everywhere.
64491
64492 2006-12-22  Bruno Haible  <bruno@clisp.org>
64493
64494         * modules/no-c++: New file.
64495         * m4/no-c++.m4: New file.
64496         * MODULES.html.sh (Support for building libraries and executables):
64497         Add no-c++.
64498
64499 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64502         Include <limits.h>, and use its INT_MAX to rewrite the
64503         j loop so that it does not overflow 'int'.  Problem reported by
64504         Ralf Wildenhues in
64505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64506         Play it safe by shifting left by 1 rather than multiplying by 2,
64507         as GCC is less likely to optimize this away when the value
64508         is signed (when it assumes overflow leads to undefined behavior).
64509         Also, don't assume time_t uses two's complement.
64510
64511 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * MODULES.html.sh: New module wctype.
64514         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64515         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64516         <wctype.h>, since the new wctype module should fix this.
64517         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64518         the wctype module should arrange for it.
64519         * lib/regex_internal.h: Likewise.
64520         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64521         since the wctype module should handle this now.
64522         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64523         * modules/fnmatch (Depends-on): Add wctype.
64524         * modules/quotearg (Depends-on): Likewise.
64525         * modules/regex (Depends-on): Likewise.
64526
64527 2006-12-19  Bruno Haible  <bruno@clisp.org>
64528
64529         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64530         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64531
64532 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64533
64534         * modules/savewd (Depends-on): Fix dependency on fcntl.
64535
64536 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64539         conforms to C99, rather than relying on the user's environment
64540         setting of STDINT_H.
64541
64542 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64543         and Eric Blake  <ebb9@byu.net>
64544
64545         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64546         This is more consistent with the other defines here.
64547         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64548         Port to z/OS.  Problem reported by Paul Gilmartin.
64549         Change local vars to use gl_ prefix rather than ac_.
64550         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64551         with other defines.
64552         * modules/double-slash-root: New module.
64553         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64554         (Depends-on): Add double-slash-root.
64555         * MODULES.html.sh (File system functions): Mention new module.
64556
64557 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64560         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64561         This is for the benefit of gzip, which doesn't do i18n.
64562
64563 2006-12-12  Jim Meyering  <jim@meyering.net>
64564
64565         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64566         Reported by Andreas Schwab <schwab@suse.de>.
64567
64568 2006-12-12  Bruno Haible  <bruno@clisp.org>
64569
64570         Merge these changes.
64571         2006-09-05  Bruno Haible  <bruno@clisp.org>
64572         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64573         iconv_alloc succeeded.
64574         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64575         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64576         test for " && dest " at the end - dest is always != NULL there. Call
64577         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64578         with 2xNULL arguments, also to flush the state storage. Handle the
64579         IRIX iconv behaviour. Realloc the final result, to throw away unused
64580         memory.
64581
64582 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64585         and fchmodat unconditionally, since glibc 2.4 has them.
64586         Problem reported by Arkadiusz Miskiewicz.
64587
64588 2006-12-10  Bruno Haible  <bruno@clisp.org>
64589
64590         * gnulib-tool (func_import): Show the include files only for those
64591         modules that are copied and specified.
64592         Reported by Karl Berry.
64593
64594 2006-12-08  Jim Meyering  <jim@meyering.net>
64595
64596         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64597         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64598
64599         * build-aux/announce-gen: Add two new options, both optional:
64600         --bootstrap-tools=TOOL_LIST
64601               a comma-separated list of tools, e.g.,
64602               autoconf,automake,bison,gnulib
64603         --gnulib-snapshot-date=DATE
64604               if gnulib is in the bootstrap tool list,
64605               then report this as the snapshot date.
64606               If not specified, use the current date/time.
64607               If you specify a date here, be sure it's UTC.
64608
64609 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64610
64611         * tests/test-argp-2.sh: Fix test to match actual output.
64612         (func_compare): Fix sed script to be portable.
64613
64614 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64617         workaround for this case.  It is not autoconfigured now; offhand
64618         it's hard to see how to autoconfigure it.
64619
64620 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64621
64622         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64623         a directory that is about to be chowned.  Such a directory's
64624         initial file permissions should permit the owner only and this
64625         should not be changed until after the chown, since the group and
64626         other bits would be incorrect if they granted permission before
64627         the chown.
64628
64629         Fix porting problem for iswctype reported by Georg Schwarz in:
64630         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64631         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64632         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64633         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64634         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64635
64636 2006-12-03  Jim Meyering  <jim@meyering.net>
64637
64638         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64639         p->fts_statp may not yet be defined.
64640         (fts_read): Instead, set it in the caller, once p->fts_statp is
64641         sure to be defined, and corresponds to a top-level directory.
64642         This bug made du -x fail.  Here's the coreutils test case:
64643         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64644         Reported by Mike Frysinger.
64645
64646 2006-12-01  Jim Meyering  <jim@meyering.net>
64647
64648         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64649         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64650         Reported by Simon Josefsson.
64651
64652 2006-11-30  Jim Meyering  <jim@meyering.net>
64653
64654         * m4/warning.m4: Use the all-permissive copyright notice
64655         recommended by RMS (rather than LGPL).
64656         * m4/vararrays.m4: Likewise.
64657         * m4/flexmember.m4: Likewise.
64658
64659 2006-11-29  Bruno Haible  <bruno@clisp.org>
64660
64661         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64662         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64663         using +=.
64664         Reported by Simon Josefsson <simon@josefsson.org>.
64665
64666 2006-11-28  James Youngman <jay@gnu.org>
64667
64668         * README: Advise users that they might find the bug-gnulib@gnu.org
64669         and autotools-announce@gnu.org mailing lists useful.
64670
64671 2006-11-28  Bruno Haible  <bruno@clisp.org>
64672
64673         * m4/ptrdiff_max.m4: Remove file.
64674
64675 2006-11-21  Bruno Haible  <bruno@clisp.org>
64676
64677         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64678         _AC_COMPUTE_INT.
64679         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64680         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64681         _AC_COMPUTE_INT.
64682         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64683         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64684         _AC_COMPUTE_INT.
64685         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64686
64687 2006-11-28  Jim Meyering  <jim@meyering.net>
64688
64689         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64690         warning from "gcc -Wshadow" about shadowing the builtin.
64691
64692 2006-11-27  Bruno Haible  <bruno@clisp.org>
64693
64694         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64695         _AC_COMPUTE_INT.
64696         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64697
64698 2006-11-27  Bruno Haible  <bruno@clisp.org>
64699             Paul Eggert  <eggert@cs.ucla.edu>
64700
64701         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64702
64703 2006-11-26  Bruno Haible  <bruno@clisp.org>
64704
64705         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64706         noinst_LTLIBRARIES.
64707
64708 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64709             Bruno Haible  <bruno@clisp.org>
64710
64711         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64712         if compiling with "gcc -ansi".
64713
64714 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         Fix some incompatibilities with gcc -ansi -pedantic.
64717         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64718         if compiling pedantically with GCC, unless it's C99 or later.
64719         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64720         it mishandles gcc -ansi -pedantic as well.
64721         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64722         if gcc -pedantic.
64723         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64724         initializers for struct if -pedantic, unless it's C99 or later.
64725
64726 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64727
64728         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64729         Don't close an fd more than once. Identical atimes indicate
64730         success, not failure.
64731
64732 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64733
64734         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64735
64736 2006-11-23  Jim Meyering  <jim@meyering.net>
64737
64738         * build-aux/announce-gen: New file.  From coreutils.
64739
64740 2006-11-22  Jim Meyering  <jim@meyering.net>
64741
64742         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64743         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64744         (fts_read): Use a temporary to narrow the overused st_size member
64745         before using it in a switch statement.  Reported by Matthew Woehlke.
64746
64747         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64748         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64749
64750 2006-11-20  Bruno Haible  <bruno@clisp.org>
64751
64752         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64753         changequote instead of pairs of brackets.
64754         Reported by Andreas Schwab <schwab@suse.de>.
64755
64756 2006-11-21  Jim Meyering  <jim@meyering.net>
64757
64758         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64759         so as to remain compatible with older compilers.
64760         Patch from Michael Deutschmann.
64761
64762 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64763
64764         * MODULES.html.sh (File system functions): Add openat.
64765
64766         * lib/openat.h (rpl_fstatat): New macro, if
64767         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64768         (fstatat): Define to rpl_fstatat under the same conditions,
64769         unless COMPILING_FSTATAT.
64770         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64771         seems to have the bug.
64772         * lib/fstatat.c: New file.
64773         * modules/openat (Files): Add it.
64774
64775 2006-11-20  Bruno Haible  <bruno@clisp.org>
64776
64777         * Makefile: New file.
64778
64779 2006-11-20  Jim Meyering  <jim@meyering.net>
64780
64781         The beginnings of syntax-related checks for gnulib.
64782         * lib/Makefile: New file.
64783         * lib/t-idcache: New script.  Ensure that the two halves of
64784         idcache.c stay in sync.
64785
64786         * lib/idcache.c: Adjust comments in user- and group- portions to
64787         be more accurate, and to be consistent with one another.
64788
64789 2006-11-20  Jim Meyering  <jim@meyering.net>
64790
64791         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64792         continue using the flexible array member (thus, this module performs
64793         half as many malloc calls), with the addition that...
64794         (getgroup, getuser): Consistently record a non-match via an empty
64795         "name" string, and map an empty string match to a NULL return value.
64796         * modules/idcache (Depends-on): Re-add flexmember.
64797
64798         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64799         (getuidbyname, getgroup, getgidbyname): Likewise.
64800
64801         Use cleaner syntax: NULL rather than 0.
64802         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64803
64804 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64807         It mishandled the case where the group was missing.
64808         Problem reported by Greg Schafer.
64809         * modules/idcache: Likewise.
64810
64811 2006-11-18  Jim Meyering  <jim@meyering.net>
64812
64813         * check-module (%exempt_header): Add exception for some
64814         conditionally-included headers.
64815
64816         * modules/i-ring (Depends-on): Add verify.
64817         (License): Change to LGPL.
64818
64819 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64822         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64823         and inttostr.h.  Use snprintf rather than uinttostr, so that
64824         LGPLed code doesn't depend on GPLed.
64825
64826 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64827
64828         * modules/inline (License): Change from GPL to LGPL.
64829
64830 2006-11-17  Jim Meyering  <jim@meyering.net>
64831
64832         * modules/d-type (License): Switch to LGPL.
64833
64834 2006-11-15  Bruno Haible  <bruno@clisp.org>
64835
64836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64837
64838 2006-11-15  Eric Blake  <ebb9@byu.net>
64839
64840         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64841         the module dependency.
64842
64843 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64844             Bruno Haible  <bruno@clisp.org>
64845
64846         * gnulib-tool (func_create_testdir): Add license consistency check.
64847
64848 2006-11-15  Eric Blake  <ebb9@byu.net>
64849
64850         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64851         random "(cached)" in configure output.
64852
64853 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64854
64855         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64856         test for conforming inttypes.h is both announced and cached.
64857
64858         * MODULES.html.sh (seen_modules, seen_files): New variables.
64859         (func_module): Rewrite to use a few less gnulib-tool and sed
64860         invocations.  Avoid a couple of quadratic algorithms for ...
64861         (missed_modules, missed_files): ... these, with ...
64862         (func_append, func_tmpdir): ... these new functions, from
64863         gnulib-tool.  Analogously, install traps for cleanup.
64864
64865         * tests/test-gc.c (main): Remove unused variables.
64866         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64867
64868 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * modules/inttostr (License): Change to LGPL.
64871
64872 2006-11-14  Eric Blake  <ebb9@byu.net>
64873
64874         * modules/tempname (License): Change to LGPL.
64875
64876 2006-11-14  Eric Blake  <ebb9@byu.net>
64877
64878         * doc/functions.texi (Function Portability): *printf functions on
64879         Cygwin now understand all POSIX size specifiers.
64880
64881 2006-11-14  Bruno Haible  <bruno@clisp.org>
64882
64883         * modules/c-ctype (License): Change to LGPL.
64884
64885 2006-11-12  Bruno Haible  <bruno@clisp.org>
64886
64887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64888         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64889         for GNOME libraries, for which the include files are installed in
64890         subdirectories of $prefix/include.
64891
64892 2006-11-12  Bruno Haible  <bruno@clisp.org>
64893
64894         * m4/lib-link.m4: Require at least autoconf-2.54.
64895         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64896         name to underscores for the --with option.
64897
64898 2006-11-13  Bruno Haible  <bruno@clisp.org>
64899
64900         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64901         the tests directory.
64902         Reported by Ralf Wildenhues.
64903
64904 2006-11-13  Bruno Haible  <bruno@clisp.org>
64905
64906         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64907         (func_emit_initmacro_end): Undo the override here.
64908         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64909         Works around the famous automake error in coreutils.
64910
64911 2006-11-13  Eric Blake  <ebb9@byu.net>
64912
64913         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64914         element, not its node.
64915
64916 2006-11-12  Bruno Haible  <bruno@clisp.org>
64917
64918         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64919         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64920
64921 2006-11-12  Bruno Haible  <bruno@clisp.org>
64922
64923         * gnulib-tool: New option --local-symlink.
64924         (func_usage): Document it.
64925         (lsymbolic): New variable.
64926         (func_import, func_create_testdir): If --symlink was not specified,
64927         test whether --local-symlink was specified and the file comes from
64928         the local_gnulib_dir.
64929
64930 2006-11-12  Bruno Haible  <bruno@clisp.org>
64931
64932         * gnulib-tool (func_ln): New function.
64933         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64934
64935 2006-11-12  Bruno Haible  <bruno@clisp.org>
64936
64937         Finish support for source files in subdirectories.
64938         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64939         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64940         AUTOMAKE_OPTIONS.
64941         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64942
64943 2006-11-12  Bruno Haible  <bruno@clisp.org>
64944
64945         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64946         EXTRA_lib_SOURCES augmentation.
64947         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64948
64949 2006-11-12  Jim Meyering  <jim@meyering.net>
64950
64951         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64952         file descriptors.  This also averts a failure on systems with
64953         native openat support when a traversed directory lacks "x" access.
64954         * lib/fts_.h: Include "i-ring.h"
64955         (struct FTS) [fts_fd_ring]: New member.
64956         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64957         (FCHDIR): Add parentheses.
64958         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64959         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64960         When descending, rather than simply closing the previous
64961         fts_cwd_fd value, push that file descriptor onto the ring.
64962         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64963         (fts_open): Initialize the new fd_ring member.
64964         (fts_close): Clear the ring.
64965         (fts_safe_changedir): When possible, use our new fd_ring to skip
64966         the diropen and fstat and dev/ino comparison that would normally
64967         accompany a virtual `chdir ("..")'.
64968
64969         * modules/fts (Depends-on): Add i-ring.
64970         * modules/i-ring: New module.
64971         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64972         * m4/i-ring.m4: New file.
64973
64974 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64975
64976         * gnulib-tool (func_create_testdir): Fix replacement of
64977         `build-aux' in configure.ac.  Run autotools in gltests
64978         subdirectory.
64979         (func_create_testdir, func_create_megatestdir, test): There is
64980         no need for '--force' in most autotool invocations in a new
64981         tree.  Actually fail the whole test if any of the tools, or the
64982         configure or make stages fail.
64983
64984         Sync from Automake.
64985         * build-aux/gnupload: Revert last change.  Add pointer to upload
64986         instructions of the GNU Maintenance Instructions.
64987         Suggestion by Karl Berry.
64988
64989 2006-11-10  Jim Meyering  <jim@meyering.net>
64990
64991         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64992
64993 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64996         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64997         (bind_textdomain_codeset) [! ENABLE_NLS]:
64998         Evaluate all the arguments.  That way, callers get compatible behavior
64999         if the arguments have side effects.  Also, it avoids some GCC
65000         diagnostics in some cases; Joel E. Denny reported problems when Bison
65001         was configured with --enable-gcc-warnigs.
65002
65003 2006-11-10  Jim Meyering  <jim@meyering.net>
65004
65005         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65006         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65007         account.
65008
65009 2006-11-10  Jim Meyering  <jim@meyering.net>
65010
65011         * modules/inline: New file/module.
65012         * modules/xalloc (Files): Remove m4/inline.m4.
65013         (Depends-on): Add inline, instead.
65014         * modules/oset: Likewise.
65015         * modules/list: Likewise.
65016
65017 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65018
65019         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65020         Problem reported by Matthew Woehlke.
65021
65022 2006-11-09  Bruno Haible  <bruno@clisp.org>
65023
65024         * lib/tempname.c (gen_tempname): Remove variant that invokes
65025         __gen_tempname.
65026         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65027         __gen_tempname.
65028
65029 2006-11-08  Bruno Haible  <bruno@clisp.org>
65030
65031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65032         to 'yes' instead of 'cross-compiling'.
65033
65034 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * lib/quotearg.h (quotearg_free): New decl.
65037         * lib/quotearg.c (quotearg_free): New function.
65038         (slot0, nslots, slotvec0, slotvec):
65039         Now file-scope so that quotearg_free can get at them.
65040
65041 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65042
65043         Sync from Automake.
65044         * build-aux/gnupload: Add missing 'gnu' to example URL.
65045         Report by Karl Berry.
65046
65047 2006-11-08  Bruno Haible  <bruno@clisp.org>
65048
65049         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65050         Suggested by Paul Eggert.
65051
65052 2006-11-08  Jim Meyering  <jim@meyering.net>
65053
65054         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65055         It's already included if !_LIBC.
65056         (fts_safe_changedir): Add a comment.
65057
65058 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65059
65060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65061         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65062         Matthew Woehlke.
65063
65064         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65065         definitions up, to avoid colliding with change below.
65066         (static_inline) [HAVE_INLINE]: New macro.
65067         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65068         Provide extern decls when !HAVE_INLINE.  Do not define unless
65069         static_inline is defined, either by us or by xmalloc.c.  Use
65070         static_inline rather than static inline.
65071         (XCALLOC): Optimize sizeof(T) = 1 case.
65072         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65073
65074 2006-11-07  Bruno Haible  <bruno@clisp.org>
65075
65076         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65077         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65078         AC_C_INLINE.
65079         * modules/xalloc (Files): Add m4/inline.m4.
65080
65081 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65082
65083         * README: Fix typo.
65084         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65085         (Miscellanous Notes): ...from this.
65086
65087 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65088
65089         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65090         Mention that offsetof should be used instead of sizeof.
65091         From Bruno Haible.
65092
65093 2006-11-07  Bruno Haible  <bruno@clisp.org>
65094
65095         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65096
65097 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65098
65099         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65100         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65101         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65102         (gl_tree_add_before, gl_tree_add_after):
65103         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65104         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65105         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65106         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65107         (gl_linked_add_after, gl_linked_add_at): Likewise.
65108         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65109         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65110         (gl_tree_add_before, gl_tree_add_after): Likewise.
65111         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65112         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65113         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65114
65115 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65116
65117         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65118
65119 2006-11-06  Bruno Haible  <bruno@clisp.org>
65120
65121         * m4/inline.m4: New file.
65122         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65123         * modules/list (Files): Add m4/inline.m4.
65124         * modules/oset (Files): Likewise.
65125
65126 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65127
65128         * lib/idcache.c: Include <stddef.h>, for offsetof.
65129         (struct userid.name): Change from char * to a flexible array member.
65130         All uses changed.
65131         * modules/idcache (Depends-on): Add flexmember.
65132
65133         * MODULES.html.sh (Core language properties): New module flexmember.
65134         * modules/flexmember, m4/flexmember.m4: New files.
65135
65136         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65137         inline functions that are identical with the old xnmalloc_inline,
65138         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65139         that we can avoid some unnecessary integer multiplications and
65140         divisions in the common case where the element size is known at
65141         compile time.
65142         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65143         needed.
65144         (xnboundedmalloc): Remove.
65145         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65146         arguments, for consistency with rest of this header.
65147         (xcharalloc): Rewrite using XNMALLOC.
65148         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65149         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65150         versions have been moved to lib/xalloc.h and renamed to be the
65151         non-*_inline versions.
65152         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65153         and xnrealloc functions, since those functions are now inline and
65154         now call us.
65155         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65156         renaming described above.
65157         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65158         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65159         captures the dependency in AC_C_INLINE.
65160
65161         New module canonicalize-lgpl, proposed by Charles Wilson in
65162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65163         with a few small changes afterwards.
65164         * MODULES.html.sh (File system functions): New module
65165         canonicalize-lgpl.
65166         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65167         and canonicalize_file_name.
65168         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65169         * modules/canonicalize-lgpl: New files.
65170
65171 2006-11-05  Bruno Haible  <bruno@clisp.org>
65172
65173         * gnulib-tool (func_import, func_create_testdir): Create directories
65174         also for files in subdirectories of lib/.
65175
65176 2006-11-05  Bruno Haible  <bruno@clisp.org>
65177
65178         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65179         ANSI C compliant.
65180
65181 2006-11-03  Bruno Haible  <bruno@clisp.org>
65182
65183         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65184         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65185         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65186         (xnboundedmalloc): New inline function.
65187         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65188         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65189         xmalloc.
65190         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65191         xmalloc.
65192         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65193         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65194         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65195         xmalloc.
65196         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65197         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65198         xmalloc.
65199         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65200         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65201         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65202         xmalloc.
65203         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65204         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65205         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65206         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65207         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65208         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65209         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65210
65211 2006-11-03  Bruno Haible  <bruno@clisp.org>
65212
65213         * lib/c-ctype.h [C++]: Define functions without name mangling.
65214         * lib/fwriteerror.h [C++]: Likewise.
65215         * lib/gcd.h [C++]: Likewise.
65216         * lib/linebreak.h [C++]: Likewise.
65217
65218 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65221         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65222         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65223         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65224         Check for functions and headers just once.
65225         Check for declaration of canonicalize_file_name.
65226         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65227
65228 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65229
65230         * gnulib-tool (func_import): Fix typo in actioncmd.
65231
65232 2006-11-02  Bruno Haible  <bruno@clisp.org>
65233
65234         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65235         newline sequence in the Makefile.am snippet as a space, like "make"
65236         does.
65237         Reported by Roger Persson <perrog@gmail.com>.
65238
65239 2006-11-01  Bruno Haible  <bruno@clisp.org>
65240
65241         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65242         already declared in <string.h>.
65243         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65244
65245 2006-11-01  Bruno Haible  <bruno@clisp.org>
65246
65247         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65248         * lib/strcase.h: Include <string.h>.
65249         (strcasecmp): Define to rpl_strcasecmp here.
65250
65251 2006-11-01  Bruno Haible  <bruno@clisp.org>
65252
65253         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65254
65255 2006-11-01  Eric Blake  <ebb9@byu.net>
65256
65257         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65258
65259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65260
65261 2006-10-29  Bruno Haible  <bruno@clisp.org>
65262
65263         Make it compile in C++ mode.
65264         * lib/full-write.c (full_rw): Add a cast.
65265
65266 2006-11-01  Bruno Haible  <bruno@clisp.org>
65267
65268         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65269         be POSIX compliant.
65270         Reported by Roger Persson <perrog@gmail.com>.
65271
65272 2006-11-01  Eric Blake  <ebb9@byu.net>
65273
65274         * lib/getopt_.h: Fix comments.
65275
65276 2006-10-31  Eric Blake  <ebb9@byu.net>
65277
65278         * modules/tmpdir (Depends-on): Add sys_stat.
65279         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65280         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65281         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65282         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65283         tempname.
65284
65285 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         Avoid some C++ diagnostics reported by Bruno Haible.
65288         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65289         xmalloc.
65290         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65291         (struct slotvec): Move to top level.
65292         (quotearg_n_options): Rewrite to avoid xmalloc.
65293         * lib/xalloc.h (xcharalloc): New function.
65294         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65295         [defined __cplusplus]: Add function template that provides result
65296         type propagation.  This part of the change is from Bruno Haible.
65297
65298 2006-10-29  Bruno Haible  <bruno@clisp.org>
65299
65300         Make it compile in C++ mode.
65301         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65302         * lib/strnlen1.c (strnlen1): Cast memchr result.
65303         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65304         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65305         (create_temp_dir): Rename local variable 'template'.
65306         (compile_csharp_using_sscli): Add cast.
65307         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65308         * lib/findprog.c (find_in_path): Likewise.
65309         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65310         * lib/wait-process.c (register_slave_subprocess): Likewise.
65311
65312 2006-10-22  Bruno Haible  <bruno@clisp.org>
65313
65314         * modules/tsearch: New file.
65315         * lib/tsearch.h: New file.
65316         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65317         * m4/tsearch.m4: New file.
65318         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65319
65320 2006-10-29  Eric Blake  <ebb9@byu.net>
65321
65322         * lib/arcfour.c: Assume config.h.
65323         * lib/arctwo.c: Likewise.
65324         * lib/base64.c: Likewise.
65325         * lib/check-version.c: Likewise.
65326         * lib/crc.c: Likewise.
65327         * lib/des.c: Likewise.
65328         * lib/gc-gnulib.c: Likewise.
65329         * lib/gc-libgcrypt.c: Likewise.
65330         * lib/gc-pbkdf2-sha1.c: Likewise.
65331         * lib/getaddrinfo.c: Likewise.
65332         * lib/getdelim.c: Likewise.
65333         * lib/getline.c: Likewise.
65334         * lib/hmac-md5.c: Likewise.
65335         * lib/hmac-sha1.c: Likewise.
65336         * lib/iconvme.c: Likewise.
65337         * lib/md2.c: Likewise.
65338         * lib/md4.c: Likewise.
65339         * lib/memxor.c: Likewise.
65340         * lib/read-file.c: Likewise.
65341         * lib/readline.c: Likewise.
65342         * lib/rijndael-alg-fst.c: Likewise.
65343         * lib/rijndael-api-fst.c: Likewise.
65344         * lib/xgetdomainname.c: Likewise.
65345
65346 2006-10-28  Eric Blake  <ebb9@byu.net>
65347
65348         * lib/xstrndup.c: Assume config.h.
65349
65350 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65351
65352         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65353         stat-macros.h is now for our own macros, whereas stat_h is for
65354         macros in the <sys/stat.h> name space.
65355         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65356         (STAT_MACROS_H): Remove.
65357         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65358         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65359         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65360         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65361         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65362         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65363         Move these macros to ...
65364         * lib/stat_.h: here.  Don't include stat-macros.h.
65365         * lib/canonicalize.c: Don't include stat-macros.h.
65366         * lib/chown.c: Likewise.
65367         * lib/euidaccess.c: Likewise.
65368         * lib/file-type.c: Likewise.
65369         * lib/filemode.c: Likewise.
65370         * lib/glob.c: Likewise.
65371         * lib/isapipe.c: Likewise.
65372         * lib/lchown.c: Likewise.
65373         * lib/lstat.c: Likewise.
65374         * lib/mkdir-p.c: Likewise.
65375         * lib/rmdir.c: Likewise.
65376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65377         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65378         unless mkdir isn't declared, to speed up 'configure'.
65379         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65380         would define all the S_* symbols.
65381         * modules/canonicalize (Depends-on):
65382         Depend on sys_stat, not stat-macros.
65383         * modules/chown: Likewise.
65384         * modules/euidaccess: Likewise.
65385         * modules/filemode: Likewise.
65386         * modules/file-type: Likewise.
65387         * modules/glob: Likewise.
65388         * modules/isapipe: Likewise.
65389         * modules/lchown: Likewise.
65390         * modules/lstat: Likewise.
65391         * modules/mkancesdirs: Likewise.
65392         * modules/rmdir: Likewise.
65393         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65394         * modules/modechange: Likewise.
65395         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65396         (configure.ac): Remove gl_STAT_MACROS.
65397         * modules/sys_stat (Depends-on): Remove stat-macros.
65398
65399 2006-10-27  Bruno Haible  <bruno@clisp.org>
65400
65401         * m4/signed.m4: Remove file.
65402         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65403         invocation.
65404         * modules/vasnprintf (Files): Remove m4/signed.m4.
65405
65406 2006-10-27  Bruno Haible  <bruno@clisp.org>
65407
65408         Update to GNU gettext 0.16.
65409         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65410         m4/inttypes-h.m4, m4/signed.m4.
65411         * m4/gettext.m4: Update to GNU gettext 0.16.
65412         * m4/intl.m4: New file, from GNU gettext.
65413         * m4/intldir.m4: New file, from GNU gettext.
65414         * config/srclist.txt: Update
65415
65416 2006-10-27  Eric Blake  <ebb9@byu.net>
65417
65418         * MODULES.html.sh: Document tempname.
65419         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65420         dependencies.
65421         (Files): Move lib/tempname.c...
65422         * modules/tempname: ...to this new module.
65423         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65424         (gl_PREREQ_TEMPNAME): Move...
65425         * m4/tempname.m4: ...to this new file.
65426         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65427         * modules/sys_stat (Depends-on): Add stat-macros.
65428         * lib/stat_.h (includes): Pick up stat macros.
65429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65430         if stat macros are broken.
65431         * lib/tempname.c (includes): No need to include "stat-macros.h".
65432         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65433         (direxists, __path_search) [!_LIBC]: Don't compile these in
65434         gnulib; the tmpdir module covers that.
65435         * lib/tempname.h: New file.
65436
65437 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65438
65439         * COPYING: Explain how gnulib-tool converts licence headers.
65440         Almost all wording by Eric Blake.
65441
65442 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65443
65444         * lib/mbchar.h (is_basic_table): Make read-only.
65445         * lib/mbchar.c (is_basic_table): Likewise.
65446         Reported by John Darrington.
65447
65448 2006-10-25  Bruno Haible  <bruno@clisp.org>
65449
65450         * lib/progname.h (set_program_name): Undefine before defining.
65451
65452 2006-10-25  Bruno Haible  <bruno@clisp.org>
65453
65454         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65455         false for non-gcc C++ compilers.
65456         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65457
65458 2006-10-24  Bruno Haible  <bruno@clisp.org>
65459
65460         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65461         iconv implementations like Irix iconv.
65462
65463 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         * modules/vararrays: New file.
65466         * m4/vararrays.m4: New file, taken from diffutils.
65467         * MODULES.html.sh: New module vararrays.
65468
65469 2006-10-24  Karl Berry  <karl@gnu.org>
65470
65471         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65472         Don't call GNU Unix.
65473
65474 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65475
65476         * users.txt: Add Libtool.
65477
65478         Sync from Libtool:
65479
65480         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65481
65482         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65483         to gnulib's policy of including config.h unconditionally.
65484
65485 2006-10-24  Bruno Haible  <bruno@clisp.org>
65486
65487         * modules/wcwidth (Files): Add m4/wint_t.m4.
65488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65489         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65490
65491 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65492
65493         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65494         to pacify GCC with some -W flags enabled.  Problem reported by
65495         Bruno Haible.
65496
65497 2006-10-24  Jim Meyering  <jim@meyering.net>
65498
65499         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65500         Reported by Karl Berry.
65501
65502 2006-10-23  Bruno Haible  <bruno@clisp.org>
65503
65504         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65505
65506 2006-10-24  Bruno Haible  <bruno@clisp.org>
65507
65508         * lib/gl_list.h: Use C comment style, not C++ comment style.
65509
65510 2006-10-23  Eric Blake  <ebb9@byu.net>
65511
65512         * lib/getaddrinfo.c (includes): Add missing include.
65513
65514 2006-10-23  Bruno Haible  <bruno@clisp.org>
65515             Paul Eggert  <eggert@cs.ucla.edu>
65516
65517         Ability to rename obstack_free.
65518         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65519         obstack_free.
65520         (obstack_free): Invoke the __obstack_free macro.
65521         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65522
65523 2006-10-23  Bruno Haible  <bruno@clisp.org>
65524             Paul Eggert  <eggert@cs.ucla.edu>
65525
65526         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65527         __argc, __argv from the declaration. (They are defined as macros on
65528         mingw.)
65529
65530 2006-10-22  Bruno Haible  <bruno@clisp.org>
65531
65532         * doc/gnulib-intro.texi: New file.
65533         * doc/gnulib.texi: Include it.
65534
65535 2006-10-21  Bruno Haible  <bruno@clisp.org>
65536
65537         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65538         "Introduction", "Miscellanous Notes", "Particular Modules".
65539
65540 2006-10-21  Bruno Haible  <bruno@clisp.org>
65541
65542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65543         Change mostlyclean-local rule to avoid sh syntax error from bash
65544         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65545
65546 2006-10-23  Jim Meyering  <jim@meyering.net>
65547
65548         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65549         in place of snprintf.
65550
65551         * modules/inttostr (Files): Add lib/uinttostr.c.
65552         * lib/uinttostr.c (inttostr): New file/function.
65553         * lib/inttostr.h (uinttostr): Declare.
65554         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65555         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65556         Add uinttostr.
65557         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65558
65559 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * lib/canonicalize.c (ELOOP): Define if not already defined.
65562         Problem reported by Bruno Haible in
65563         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65564
65565 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65566
65567         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65568         Problem reported by Perry Smith and Ville Laurikari.
65569
65570         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65571         uses.
65572
65573 2006-10-19  Bruno Haible  <bruno@clisp.org>
65574
65575         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65576         for mingw.
65577
65578 2006-10-19  Bruno Haible  <bruno@clisp.org>
65579
65580         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65581         Needed for mingw.
65582
65583 2006-10-19  Bruno Haible  <bruno@clisp.org>
65584
65585         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65586
65587 2006-10-19  Bruno Haible  <bruno@clisp.org>
65588
65589         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65590         it.
65591
65592 2006-10-19  Bruno Haible  <bruno@clisp.org>
65593
65594         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65595         invocation.
65596
65597 2006-10-19  Bruno Haible  <bruno@clisp.org>
65598
65599         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65600         mountlist by default.
65601
65602 2006-10-16  Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/c-strstr.c: Include c-strstr.h.
65605
65606 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65607
65608         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65609         in a slash.
65610
65611 2006-10-18  Bruno Haible  <bruno@clisp.org>
65612
65613         * lib/lock.h [C++]: Wrap definitions in extern "C".
65614
65615 2006-10-18  Bruno Haible  <bruno@clisp.org>
65616
65617         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65618         gl_LIBOBJS list.
65619
65620 2006-10-18  Bruno Haible  <bruno@clisp.org>
65621
65622         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65623
65624 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         * lib/xstrtol.h: Include gettext.h.
65627         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65628         Problem reported by Eric Blake.
65629         * modules/xstrtol (Depends-on): Add gettext-h.
65630
65631 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65632
65633         * lib/strftime.c (advance): New macro.
65634         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65635         incomplete type, so you can't add 0 to it.  Problem and patch
65636         reported by Eelco Dolstra for dietlibc.
65637
65638 2006-10-18  Jim Meyering  <jim@meyering.net>
65639
65640         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65641         type for a local, and rename it: s/up/user_proc/.
65642
65643 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65644
65645         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65646         READ_UTMP_USER_PROCESS.
65647         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65648
65649 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65650
65651         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65652         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65653
65654 2006-10-17  Eric Blake  <ebb9@byu.net>
65655
65656         * lib/sigprocmask.c (sigprocmask): Fix typo.
65657
65658         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65659
65660         * modules/clean-temp (Makefile.am): Don't add to make output...
65661         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65662         config.h.
65663
65664 2006-10-17  Bruno Haible  <bruno@clisp.org>
65665
65666         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65667         differently if DEFAULT_TEXT_DOMAIN is set.
65668
65669 2006-10-16  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/clean-temp.c: Include fwriteerror.h.
65672
65673 2006-10-16  Bruno Haible  <bruno@clisp.org>
65674
65675         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65676
65677 2006-10-16  Bruno Haible  <bruno@clisp.org>
65678
65679         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65680         * lib/sigprocmask.h: Include <sys/types.h>.
65681         (sigset_t): Use the system's definition if present.
65682
65683 2006-10-17  Eric Blake  <ebb9@byu.net>
65684
65685         * lib/xvasprintf.c (includes): Assume config.h.
65686         * lib/xasprintf.c (includes): Likewise.
65687
65688 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65689
65690         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65691         at least as wide as intmax_t.
65692
65693 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65694
65695         (Imported from Automake.)
65696         * build-aux/gnupload: Update to version 1.1 of directive file.
65697
65698 2006-10-16  Eric Blake  <ebb9@byu.net>
65699
65700         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65701         match Automake 1.10a.
65702
65703 2006-10-14  Bruno Haible  <bruno@clisp.org>
65704
65705         * modules/sigprocmask: New file.
65706         * lib/sigprocmask.h: New file.
65707         * lib/sigprocmask.c: New file.
65708         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65709         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65710         request sigprocmask.o.
65711         (gl_PREREQ_SIGPROCMASK): New macro.
65712         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65713         (Depends-on): Add sigprocmask.
65714         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65715         gt_SIGNALBLOCKING. Test for 'raise' only once.
65716         * lib/fatal-signal.c: Include sigprocmask.h.
65717         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65718         unblock_fatal_signals): Define always.
65719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65720         sigprocmask.
65721
65722 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         Sync from Automake.
65725         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65726         which incorrectly sets the mode of an existing destination
65727         directory.  In some cases the unpatched install-sh could do the
65728         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65729         system.  We hope this is rare in practice, but it's clearly worth
65730         fixing.  Problem reported by Alex Unleashed in
65731         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65732         Also, don't bother to check for -m bugs unless we're using -m;
65733         suggested by Stepan Kasal.
65734
65735 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65736
65737         Sync from Automake.
65738         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65739         `-c' flag, so they appear at the same position as in %FASTDEP%
65740         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65741         which ignores unknown options only after the first non-option.
65742         Bug report against M4 by Nelson H. F. Beebe.
65743
65744 2006-10-13  Jim Meyering  <jim@meyering.net>
65745
65746         Fix a bug in yesterday's change.
65747         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65748         p->fts_statp->st_dev would be used uninitialized.
65749         Ensures that we always call fts_stat on the very first entry.
65750         Miklos Szeredi reported that find -xdev stopped working.
65751
65752 2006-10-12  Bruno Haible  <bruno@clisp.org>
65753
65754         * gnulib-tool (func_get_automake_snippet): Append an automatically
65755         computed EXTRA_DIST augmentation.
65756         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65757         * modules/alloca-opt (Makefile.am): Likewise.
65758         * modules/allocsa (Makefile.am): Likewise.
65759         * modules/arcfour (Makefile.am): Likewise.
65760         * modules/arctwo (Makefile.am): Likewise.
65761         * modules/argmatch (Makefile.am): Likewise.
65762         * modules/argz (Makefile.am): Likewise.
65763         * modules/atexit (Makefile.am): Likewise.
65764         * modules/backupfile (Makefile.am): Likewise.
65765         * modules/byteswap (Makefile.am): Likewise.
65766         * modules/c-strtod (Makefile.am): Likewise.
65767         * modules/c-strtold (Makefile.am): Likewise.
65768         * modules/calloc (Makefile.am): Likewise.
65769         * modules/canon-host (Makefile.am): Likewise.
65770         * modules/canonicalize (Makefile.am): Likewise.
65771         * modules/chdir-long (Makefile.am): Likewise.
65772         * modules/chdir-safer (Makefile.am): Likewise.
65773         * modules/check-version (Makefile.am): Likewise.
65774         * modules/chown (Makefile.am): Likewise.
65775         * modules/cloexec (Makefile.am): Likewise.
65776         * modules/close-stream (Makefile.am): Likewise.
65777         * modules/closeout (Makefile.am): Likewise.
65778         * modules/crc (Makefile.am): Likewise.
65779         * modules/csharpexec (Makefile.am): Likewise.
65780         * modules/cycle-check (Makefile.am): Likewise.
65781         * modules/des (Makefile.am): Likewise.
65782         * modules/dev-ino (Makefile.am): Likewise.
65783         * modules/dirfd (Makefile.am): Likewise.
65784         * modules/dirname (Makefile.am): Likewise.
65785         * modules/dup2 (Makefile.am): Likewise.
65786         * modules/eealloc (Makefile.am): Likewise.
65787         * modules/error (Makefile.am): Likewise.
65788         * modules/euidaccess (Makefile.am): Likewise.
65789         * modules/exclude (Makefile.am): Likewise.
65790         * modules/exitfail (Makefile.am): Likewise.
65791         * modules/fcntl-safer (Makefile.am): Likewise.
65792         * modules/fcntl (Makefile.am): Likewise.
65793         * modules/file-type (Makefile.am): Likewise.
65794         * modules/fileblocks (Makefile.am): Likewise.
65795         * modules/filemode (Makefile.am): Likewise.
65796         * modules/filenamecat (Makefile.am): Likewise.
65797         * modules/fnmatch (Makefile.am): Likewise.
65798         * modules/fopen-safer (Makefile.am): Likewise.
65799         * modules/fpending (Makefile.am): Likewise.
65800         * modules/fprintftime (Makefile.am): Likewise.
65801         * modules/free (Makefile.am): Likewise.
65802         * modules/fsusage (Makefile.am): Likewise.
65803         * modules/ftruncate (Makefile.am): Likewise.
65804         * modules/fts (Makefile.am): Likewise.
65805         * modules/gc-arcfour (Makefile.am): Likewise.
65806         * modules/gc-des (Makefile.am): Likewise.
65807         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65808         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65809         * modules/gc-md4 (Makefile.am): Likewise.
65810         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65811         * modules/gc-sha1 (Makefile.am): Likewise.
65812         * modules/gc (Makefile.am): Likewise.
65813         * modules/getaddrinfo (Makefile.am): Likewise.
65814         * modules/getcwd (Makefile.am): Likewise.
65815         * modules/getdelim (Makefile.am): Likewise.
65816         * modules/getdomainname (Makefile.am): Likewise.
65817         * modules/getgroups (Makefile.am): Likewise.
65818         * modules/gethostname (Makefile.am): Likewise.
65819         * modules/gethrxtime (Makefile.am): Likewise.
65820         * modules/getline (Makefile.am): Likewise.
65821         * modules/getloadavg (Makefile.am): Likewise.
65822         * modules/getlogin_r (Makefile.am): Likewise.
65823         * modules/getndelim2 (Makefile.am): Likewise.
65824         * modules/getopt (Makefile.am): Likewise.
65825         * modules/getpagesize (Makefile.am): Likewise.
65826         * modules/getpass-gnu (Makefile.am): Likewise.
65827         * modules/getpass (Makefile.am): Likewise.
65828         * modules/getsubopt (Makefile.am): Likewise.
65829         * modules/gettime (Makefile.am): Likewise.
65830         * modules/gettimeofday (Makefile.am): Likewise.
65831         * modules/getugroups (Makefile.am): Likewise.
65832         * modules/getusershell (Makefile.am): Likewise.
65833         * modules/glob (Makefile.am): Likewise.
65834         * modules/group-member (Makefile.am): Likewise.
65835         * modules/hard-locale (Makefile.am): Likewise.
65836         * modules/hash (Makefile.am): Likewise.
65837         * modules/hmac-md5 (Makefile.am): Likewise.
65838         * modules/hmac-sha1 (Makefile.am): Likewise.
65839         * modules/human (Makefile.am): Likewise.
65840         * modules/idcache (Makefile.am): Likewise.
65841         * modules/imaxabs (Makefile.am): Likewise.
65842         * modules/imaxdiv (Makefile.am): Likewise.
65843         * modules/inet_ntop (Makefile.am): Likewise.
65844         * modules/inet_pton (Makefile.am): Likewise.
65845         * modules/intprops (Makefile.am): Likewise.
65846         * modules/inttostr (Makefile.am): Likewise.
65847         * modules/inttypes (Makefile.am): Likewise.
65848         * modules/isapipe (Makefile.am): Likewise.
65849         * modules/javaversion (Makefile.am): Likewise.
65850         * modules/lchmod (Makefile.am): Likewise.
65851         * modules/lchown (Makefile.am): Likewise.
65852         * modules/localcharset (Makefile.am): Likewise.
65853         * modules/long-options (Makefile.am): Likewise.
65854         * modules/lstat (Makefile.am): Likewise.
65855         * modules/malloc (Makefile.am): Likewise.
65856         * modules/mathl (Makefile.am): Likewise.
65857         * modules/mbchar (Makefile.am): Likewise.
65858         * modules/md2 (Makefile.am): Likewise.
65859         * modules/md4 (Makefile.am): Likewise.
65860         * modules/md5 (Makefile.am): Likewise.
65861         * modules/memcasecmp (Makefile.am): Likewise.
65862         * modules/memchr (Makefile.am): Likewise.
65863         * modules/memcmp (Makefile.am): Likewise.
65864         * modules/memcoll (Makefile.am): Likewise.
65865         * modules/memcpy (Makefile.am): Likewise.
65866         * modules/memmem (Makefile.am): Likewise.
65867         * modules/memmove (Makefile.am): Likewise.
65868         * modules/mempcpy (Makefile.am): Likewise.
65869         * modules/memrchr (Makefile.am): Likewise.
65870         * modules/memset (Makefile.am): Likewise.
65871         * modules/memxor (Makefile.am): Likewise.
65872         * modules/mkancesdirs (Makefile.am): Likewise.
65873         * modules/mkdir-p (Makefile.am): Likewise.
65874         * modules/mkdir (Makefile.am): Likewise.
65875         * modules/mkdtemp (Makefile.am): Likewise.
65876         * modules/mkstemp (Makefile.am): Likewise.
65877         * modules/mktime (Makefile.am): Likewise.
65878         * modules/modechange (Makefile.am): Likewise.
65879         * modules/mountlist (Makefile.am): Likewise.
65880         * modules/nanosleep (Makefile.am): Likewise.
65881         * modules/obstack (Makefile.am): Likewise.
65882         * modules/openat (Makefile.am): Likewise.
65883         * modules/pagealign_alloc (Makefile.am): Likewise.
65884         * modules/pathmax (Makefile.am): Likewise.
65885         * modules/physmem (Makefile.am): Likewise.
65886         * modules/poll (Makefile.am): Likewise.
65887         * modules/posixtm (Makefile.am): Likewise.
65888         * modules/posixver (Makefile.am): Likewise.
65889         * modules/putenv (Makefile.am): Likewise.
65890         * modules/quote (Makefile.am): Likewise.
65891         * modules/quotearg (Makefile.am): Likewise.
65892         * modules/raise (Makefile.am): Likewise.
65893         * modules/read-file (Makefile.am): Likewise.
65894         * modules/readline (Makefile.am): Likewise.
65895         * modules/readlink (Makefile.am): Likewise.
65896         * modules/readtokens (Makefile.am): Likewise.
65897         * modules/readutmp (Makefile.am): Likewise.
65898         * modules/realloc (Makefile.am): Likewise.
65899         * modules/regex (Makefile.am): Likewise.
65900         * modules/rename-dest-slash (Makefile.am): Likewise.
65901         * modules/rename (Makefile.am): Likewise.
65902         * modules/rijndael (Makefile.am): Likewise.
65903         * modules/rmdir (Makefile.am): Likewise.
65904         * modules/rpmatch (Makefile.am): Likewise.
65905         * modules/safe-read (Makefile.am): Likewise.
65906         * modules/safe-write (Makefile.am): Likewise.
65907         * modules/same-inode (Makefile.am): Likewise.
65908         * modules/same (Makefile.am): Likewise.
65909         * modules/save-cwd (Makefile.am): Likewise.
65910         * modules/savedir (Makefile.am): Likewise.
65911         * modules/setenv (Makefile.am): Likewise.
65912         * modules/settime (Makefile.am): Likewise.
65913         * modules/sha1 (Makefile.am): Likewise.
65914         * modules/sig2str (Makefile.am): Likewise.
65915         * modules/snprintf (Makefile.am): Likewise.
65916         * modules/stat-macros (Makefile.am): Likewise.
65917         * modules/stat-time (Makefile.am): Likewise.
65918         * modules/stdbool (Makefile.am): Likewise.
65919         * modules/stdint (Makefile.am): Likewise.
65920         * modules/stdlib-safer (Makefile.am): Likewise.
65921         * modules/stpcpy (Makefile.am): Likewise.
65922         * modules/stpncpy (Makefile.am): Likewise.
65923         * modules/strcase (Makefile.am): Likewise.
65924         * modules/strcasestr (Makefile.am): Likewise.
65925         * modules/strchrnul (Makefile.am): Likewise.
65926         * modules/strcspn (Makefile.am): Likewise.
65927         * modules/strdup (Makefile.am): Likewise.
65928         * modules/strerror (Makefile.am): Likewise.
65929         * modules/strftime (Makefile.am): Likewise.
65930         * modules/strndup (Makefile.am): Likewise.
65931         * modules/strnlen (Makefile.am): Likewise.
65932         * modules/strpbrk (Makefile.am): Likewise.
65933         * modules/strsep (Makefile.am): Likewise.
65934         * modules/strstr (Makefile.am): Likewise.
65935         * modules/strtod (Makefile.am): Likewise.
65936         * modules/strtoimax (Makefile.am): Likewise.
65937         * modules/strtok_r (Makefile.am): Likewise.
65938         * modules/strtol (Makefile.am): Likewise.
65939         * modules/strtoll (Makefile.am): Likewise.
65940         * modules/strtoul (Makefile.am): Likewise.
65941         * modules/strtoull (Makefile.am): Likewise.
65942         * modules/strtoumax (Makefile.am): Likewise.
65943         * modules/strverscmp (Makefile.am): Likewise.
65944         * modules/sys_socket (Makefile.am): Likewise.
65945         * modules/sys_stat (Makefile.am): Likewise.
65946         * modules/sysexits (Makefile.am): Likewise.
65947         * modules/time_r (Makefile.am): Likewise.
65948         * modules/timegm (Makefile.am): Likewise.
65949         * modules/timespec (Makefile.am): Likewise.
65950         * modules/tmpfile-safer (Makefile.am): Likewise.
65951         * modules/trim (Makefile.am): Likewise.
65952         * modules/unistd-safer (Makefile.am): Likewise.
65953         * modules/unlinkdir (Makefile.am): Likewise.
65954         * modules/unlocked-io (Makefile.am): Likewise.
65955         * modules/userspec (Makefile.am): Likewise.
65956         * modules/utime (Makefile.am): Likewise.
65957         * modules/utimecmp (Makefile.am): Likewise.
65958         * modules/utimens (Makefile.am): Likewise.
65959         * modules/vasnprintf (Makefile.am): Likewise.
65960         * modules/vasprintf (Makefile.am): Likewise.
65961         * modules/vsnprintf (Makefile.am): Likewise.
65962         * modules/xalloc (Makefile.am): Likewise.
65963         * modules/xgetcwd (Makefile.am): Likewise.
65964         * modules/xnanosleep (Makefile.am): Likewise.
65965         * modules/xreadlink (Makefile.am): Likewise.
65966         * modules/xstrtod (Makefile.am): Likewise.
65967         * modules/xstrtol (Makefile.am): Likewise.
65968         * modules/xstrtold (Makefile.am): Likewise.
65969         * modules/yesno (Makefile.am): Likewise.
65970         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65971
65972 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65973
65974         * modules/error (Makefile.am): Distribute files through
65975         EXTRA_DIST, not lib_SOURCES.
65976
65977 2006-10-12  Eric Blake  <ebb9@byu.net>
65978
65979         * modules/error (Makefile.am): Distribute files in /lib.
65980         * modules/obstack (Makefile.am): Likewise.
65981
65982 2006-10-12  Bruno Haible  <bruno@clisp.org>
65983
65984         * modules/acl (Makefile.am): Distribute all files in lib/ through
65985         EXTRA_DIST.
65986         * modules/arcfour (Makefile.am): Likewise.
65987         * modules/arctwo (Makefile.am): Likewise.
65988         * modules/argmatch (Makefile.am): Likewise.
65989         * modules/argz (Makefile.am): Likewise.
65990         * modules/atexit (Makefile.am): Likewise.
65991         * modules/backupfile (Makefile.am): Likewise.
65992         * modules/c-strtod (Makefile.am): Likewise.
65993         * modules/c-strtold (Makefile.am): Likewise.
65994         * modules/calloc (Makefile.am): Likewise.
65995         * modules/canon-host (Makefile.am): Likewise.
65996         * modules/canonicalize (Makefile.am): Likewise.
65997         * modules/chdir-long (Makefile.am): Likewise.
65998         * modules/chdir-safer (Makefile.am): Likewise.
65999         * modules/check-version (Makefile.am): Likewise.
66000         * modules/chown (Makefile.am): Likewise.
66001         * modules/cloexec (Makefile.am): Likewise.
66002         * modules/close-stream (Makefile.am): Likewise.
66003         * modules/closeout (Makefile.am): Likewise.
66004         * modules/crc (Makefile.am): Likewise.
66005         * modules/cycle-check (Makefile.am): Likewise.
66006         * modules/des (Makefile.am): Likewise.
66007         * modules/dirfd (Makefile.am): Likewise.
66008         * modules/dirname (Makefile.am): Likewise.
66009         * modules/dup2 (Makefile.am): Likewise.
66010         * modules/euidaccess (Makefile.am): Likewise.
66011         * modules/exclude (Makefile.am): Likewise.
66012         * modules/exitfail (Makefile.am): Likewise.
66013         * modules/fcntl-safer (Makefile.am): Likewise.
66014         * modules/file-type (Makefile.am): Likewise.
66015         * modules/fileblocks (Makefile.am): Likewise.
66016         * modules/filemode (Makefile.am): Likewise.
66017         * modules/filenamecat (Makefile.am): Likewise.
66018         * modules/fnmatch (Makefile.am): Likewise.
66019         * modules/fopen-safer (Makefile.am): Likewise.
66020         * modules/fpending (Makefile.am): Likewise.
66021         * modules/fprintftime (Makefile.am): Likewise.
66022         * modules/free (Makefile.am): Likewise.
66023         * modules/fsusage (Makefile.am): Likewise.
66024         * modules/ftruncate (Makefile.am): Likewise.
66025         * modules/fts (Makefile.am): Likewise.
66026         * modules/gc (Makefile.am): Likewise.
66027         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66028         * modules/getaddrinfo (Makefile.am): Likewise.
66029         * modules/getcwd (Makefile.am): Likewise.
66030         * modules/getdelim (Makefile.am): Likewise.
66031         * modules/getdomainname (Makefile.am): Likewise.
66032         * modules/getgroups (Makefile.am): Likewise.
66033         * modules/gethostname (Makefile.am): Likewise.
66034         * modules/gethrxtime (Makefile.am): Likewise.
66035         * modules/getline (Makefile.am): Likewise.
66036         * modules/getloadavg (Makefile.am): Likewise.
66037         * modules/getlogin_r (Makefile.am): Likewise.
66038         * modules/getopt (Makefile.am): Likewise.
66039         * modules/getpass (Makefile.am): Likewise.
66040         * modules/getpass-gnu (Makefile.am): Likewise.
66041         * modules/getsubopt (Makefile.am): Likewise.
66042         * modules/gettime (Makefile.am): Likewise.
66043         * modules/gettimeofday (Makefile.am): Likewise.
66044         * modules/getugroups (Makefile.am): Likewise.
66045         * modules/getusershell (Makefile.am): Likewise.
66046         * modules/glob (Makefile.am): Likewise.
66047         * modules/group-member (Makefile.am): Likewise.
66048         * modules/hard-locale (Makefile.am): Likewise.
66049         * modules/hash (Makefile.am): Likewise.
66050         * modules/hmac-md5 (Makefile.am): Likewise.
66051         * modules/hmac-sha1 (Makefile.am): Likewise.
66052         * modules/human (Makefile.am): Likewise.
66053         * modules/idcache (Makefile.am): Likewise.
66054         * modules/imaxabs (Makefile.am): Likewise.
66055         * modules/imaxdiv (Makefile.am): Likewise.
66056         * modules/inet_ntop (Makefile.am): Likewise.
66057         * modules/inet_pton (Makefile.am): Likewise.
66058         * modules/inttostr (Makefile.am): Likewise.
66059         * modules/isapipe (Makefile.am): Likewise.
66060         * modules/lchown (Makefile.am): Likewise.
66061         * modules/long-options (Makefile.am): Likewise.
66062         * modules/lstat (Makefile.am): Likewise.
66063         * modules/malloc (Makefile.am): Likewise.
66064         * modules/mathl (Makefile.am): Likewise.
66065         * modules/mbchar (Makefile.am): Likewise.
66066         * modules/md2 (Makefile.am): Likewise.
66067         * modules/md4 (Makefile.am): Likewise.
66068         * modules/md5 (Makefile.am): Likewise.
66069         * modules/memcasecmp (Makefile.am): Likewise.
66070         * modules/memchr (Makefile.am): Likewise.
66071         * modules/memcmp (Makefile.am): Likewise.
66072         * modules/memcoll (Makefile.am): Likewise.
66073         * modules/memcpy (Makefile.am): Likewise.
66074         * modules/memmem (Makefile.am): Likewise.
66075         * modules/memmove (Makefile.am): Likewise.
66076         * modules/mempcpy (Makefile.am): Likewise.
66077         * modules/memrchr (Makefile.am): Likewise.
66078         * modules/memset (Makefile.am): Likewise.
66079         * modules/memxor (Makefile.am): Likewise.
66080         * modules/mkancesdirs (Makefile.am): Likewise.
66081         * modules/mkdir (Makefile.am): Likewise.
66082         * modules/mkdir-p (Makefile.am): Likewise.
66083         * modules/mkdtemp (Makefile.am): Likewise.
66084         * modules/mkstemp (Makefile.am): Likewise.
66085         * modules/mktime (Makefile.am): Likewise.
66086         * modules/modechange (Makefile.am): Likewise.
66087         * modules/mountlist (Makefile.am): Likewise.
66088         * modules/nanosleep (Makefile.am): Likewise.
66089         * modules/openat (Makefile.am): Likewise.
66090         * modules/pagealign_alloc (Makefile.am): Likewise.
66091         * modules/physmem (Makefile.am): Likewise.
66092         * modules/poll (Makefile.am): Likewise.
66093         * modules/posixtm (Makefile.am): Likewise.
66094         * modules/posixver (Makefile.am): Likewise.
66095         * modules/putenv (Makefile.am): Likewise.
66096         * modules/quote (Makefile.am): Likewise.
66097         * modules/quotearg (Makefile.am): Likewise.
66098         * modules/raise (Makefile.am): Likewise.
66099         * modules/read-file (Makefile.am): Likewise.
66100         * modules/readline (Makefile.am): Likewise.
66101         * modules/readlink (Makefile.am): Likewise.
66102         * modules/readtokens (Makefile.am): Likewise.
66103         * modules/readutmp (Makefile.am): Likewise.
66104         * modules/realloc (Makefile.am): Likewise.
66105         * modules/regex (Makefile.am): Likewise.
66106         * modules/rename (Makefile.am): Likewise.
66107         * modules/rename-dest-slash (Makefile.am): Likewise.
66108         * modules/rijndael (Makefile.am): Likewise.
66109         * modules/rmdir (Makefile.am): Likewise.
66110         * modules/rpmatch (Makefile.am): Likewise.
66111         * modules/safe-read (Makefile.am): Likewise.
66112         * modules/safe-write (Makefile.am): Likewise.
66113         * modules/same (Makefile.am): Likewise.
66114         * modules/save-cwd (Makefile.am): Likewise.
66115         * modules/savedir (Makefile.am): Likewise.
66116         * modules/setenv (Makefile.am): Likewise.
66117         * modules/settime (Makefile.am): Likewise.
66118         * modules/sha1 (Makefile.am): Likewise.
66119         * modules/sig2str (Makefile.am): Likewise.
66120         * modules/snprintf (Makefile.am): Likewise.
66121         * modules/stdlib-safer (Makefile.am): Likewise.
66122         * modules/stpcpy (Makefile.am): Likewise.
66123         * modules/stpncpy (Makefile.am): Likewise.
66124         * modules/strcase (Makefile.am): Likewise.
66125         * modules/strcasestr (Makefile.am): Likewise.
66126         * modules/strchrnul (Makefile.am): Likewise.
66127         * modules/strcspn (Makefile.am): Likewise.
66128         * modules/strdup (Makefile.am): Likewise.
66129         * modules/strerror (Makefile.am): Likewise.
66130         * modules/strftime (Makefile.am): Likewise.
66131         * modules/strndup (Makefile.am): Likewise.
66132         * modules/strnlen (Makefile.am): Likewise.
66133         * modules/strpbrk (Makefile.am): Likewise.
66134         * modules/strsep (Makefile.am): Likewise.
66135         * modules/strstr (Makefile.am): Likewise.
66136         * modules/strtod (Makefile.am): Likewise.
66137         * modules/strtoimax (Makefile.am): Likewise.
66138         * modules/strtok_r (Makefile.am): Likewise.
66139         * modules/strtol (Makefile.am): Likewise.
66140         * modules/strtoll (Makefile.am): Likewise.
66141         * modules/strtoul (Makefile.am): Likewise.
66142         * modules/strtoull (Makefile.am): Likewise.
66143         * modules/strtoumax (Makefile.am): Likewise.
66144         * modules/strverscmp (Makefile.am): Likewise.
66145         * modules/time_r (Makefile.am): Likewise.
66146         * modules/timegm (Makefile.am): Likewise.
66147         * modules/tmpfile-safer (Makefile.am): Likewise.
66148         * modules/unistd-safer (Makefile.am): Likewise.
66149         * modules/unlinkdir (Makefile.am): Likewise.
66150         * modules/userspec (Makefile.am): Likewise.
66151         * modules/utime (Makefile.am): Likewise.
66152         * modules/utimecmp (Makefile.am): Likewise.
66153         * modules/utimens (Makefile.am): Likewise.
66154         * modules/vasnprintf (Makefile.am): Likewise.
66155         * modules/vasprintf (Makefile.am): Likewise.
66156         * modules/vsnprintf (Makefile.am): Likewise.
66157         * modules/xalloc (Makefile.am): Likewise.
66158         * modules/xgetcwd (Makefile.am): Likewise.
66159         * modules/xnanosleep (Makefile.am): Likewise.
66160         * modules/xreadlink (Makefile.am): Likewise.
66161         * modules/xstrtod (Makefile.am): Likewise.
66162         * modules/xstrtol (Makefile.am): Likewise.
66163         * modules/xstrtold (Makefile.am): Likewise.
66164         * modules/yesno (Makefile.am): Likewise.
66165
66166 2006-10-12  Jim Meyering  <jim@meyering.net>
66167
66168         * m4/getloadavg.m4: Revert the change below.
66169
66170         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66171         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66172         fail with a symlink, which is what coreutils' ./bootstrap now
66173         creates by default.
66174
66175 2006-10-12  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66178         mingw.
66179         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66180         MSVC and mingw explicitly.
66181
66182 2006-10-11  Simon Josefsson  <jas@extundo.com>
66183             Bruno Haible  <bruno@clisp.org>
66184
66185         Add support for multiple gnulib-tool invocations in the scope of a
66186         single configure.ac file.
66187         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66188         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66189         with the same contents as the _LIBADD variable.
66190         (func_emit_initmacro_start, func_emit_initmacro_end,
66191         func_emit_initmacro_done): New functions.
66192         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66193         gl_LIBOBJS and gl_LTLIBOBJS.
66194
66195 2006-10-11  Bruno Haible  <bruno@clisp.org>
66196
66197         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66198         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66199         autoreconf. Instead, invoke autopoint explicitly but move back the
66200         *.m4 files from gnulib.
66201
66202 2006-10-11  Bruno Haible  <bruno@clisp.org>
66203
66204         * gnulib-tool (func_usage): Make module names after --create-testdir
66205         optional.
66206         (func_create_testdir): If no module was specified, use nearly all
66207         modules.
66208
66209 2006-10-12  Jim Meyering  <jim@meyering.net>
66210
66211         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66212         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66213         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66214         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66215         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66216         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66217         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66218         (fts_set_stat_required): New function.
66219         (fts_open): Defer the calls to fts_stat, if possible or requested.
66220         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66221         into fts_stat itself.
66222         (fts_read): Perform any required (deferred) fts_stat call.
66223         (fts_build): Likewise, for the directory we're about to open and read.
66224         In the readdir loop, carefully decide whether each entry will require
66225         an eventual call to fts_stat, using dirent.d_type info if available.
66226         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66227         a command line argument into this function.  Update all callers.
66228         Map a return value of FTS_DOT to FTS_D for a command line argument.
66229         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66230         Thanks to Miklos Szeredi for his tenacity and for the initial
66231         bug report about "find" failing on a FUSE-based file system.
66232
66233         * lib/fts.c (fts_open): Use consistent indentation.
66234
66235 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66238         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66239         reported by Jim Meyering.  All uses of cache variables renamed
66240         to match Autoconf's.
66241         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66242         the other one.
66243
66244         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66245         Fix misspelling in diagnostic.
66246
66247 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66250         defined.  Problem reported by Matthew Woehlke.
66251
66252         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66253         Add support for Tandem NonStop R series.
66254         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66255         Use new macro.
66256
66257         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66258         (has_trailing_slash): Omit size arg; all callers changed.
66259         Omit 'inline', since it doesn't help performance and we'd
66260         need to configure it.
66261         Don't count //, ///, etc. as having a trailing slash.
66262         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66263         (rpl_rename_dest_slash): On failure, use rename's errno rather
66264         than (in some cases) an incorrect or junk errno.
66265         Simplify code by removing need to compute length; this does
66266         cause it to make two passes instead of one over the file name,
66267         but it's worth it.
66268
66269         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66270         change, since Autoconf's version may no longer be appropriate now
66271         that we are using CVS Autoconf's version.  Add support for Tandem.
66272
66273 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66274             Bruno Haible  <bruno@clisp.org>
66275
66276         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66277         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66278         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66279         gl_AC_TYPE_LONG_LONG.
66280
66281         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66282         instead of HAVE_LONG_LONG.
66283         * lib/printf-args.c (printf_fetchargs): Likewise.
66284         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66285         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66286         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66287         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66288         gl_AC_TYPE_LONG_LONG.
66289
66290 2006-10-11  Bruno Haible  <bruno@clisp.org>
66291
66292         * m4/longlong.m4: Add comments.
66293         * m4/ulonglong.m4: Likewise.
66294
66295 2006-10-10  Bruno Haible  <bruno@clisp.org>
66296
66297         Make it possible to #define stpcpy, strdup to aliases.
66298         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66299         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66300
66301 2006-10-10  Bruno Haible  <bruno@clisp.org>
66302
66303         Make it possible to #define gcd to an alias.
66304         * lib/gcd.c: Include config.h.
66305
66306 2006-10-10  Bruno Haible  <bruno@clisp.org>
66307
66308         Make it possible to #define c_isascii to an alias.
66309         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66310         defined. Undefine the macros before defining them, to avoid gcc
66311         warnings.
66312         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66313         define NO_C_CTYPE_MACROS early.
66314
66315 2006-10-10  Bruno Haible  <bruno@clisp.org>
66316
66317         Make it possible to #define set_program_name to an alias.
66318         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66319         ENABLE_RELOCATABLE early.
66320
66321 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66322
66323         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66324         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66325         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66326         More generally, don't assume that 64-bit signed int is available
66327         if unsigned int is, and vice versa.
66328         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66329         unsigned symbols, not on their signed counterparts.
66330         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66331         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66332         (UINT64_C, UINTMAX_C):
66333         Likewise.
66334         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66335         unsigned counterparts.
66336         (Have_long_long, Unsigned): New macros.
66337         (Int): Renamed from INT.
66338         (strtoimax): Use the new macros.
66339         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66340         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66341         * modules/inttypes (inttypes.h): Substitute
66342         HAVE_UNSIGNED_LONG_LONG_INT.
66343         * modules/stdint (stdint.h): Likewise.
66344         (Files): Add m4/ulonglong.m4.
66345
66346 2006-10-10  Bruno Haible  <bruno@clisp.org>
66347
66348         Fix a gcc -Wshadow warning.
66349         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66350         to 'bucket'.
66351         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66352         gl_linked_indexof_from_to): Likewise.
66353         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66354         Likewise.
66355         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66356         Likewise.
66357         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66358         Reported by Eric Blake.
66359
66360 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66361
66362         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66363         for NetBSD.  Problem reported by Bruno Haible.
66364
66365 2006-10-09  Jim Meyering  <jim@meyering.net>
66366
66367         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66368         Patch from Bruno Haible.
66369
66370 2006-10-09  Jim Meyering  <jim@meyering.net>
66371
66372         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66373         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66374         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66375
66376 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66377
66378         Don't include <config.h> twice; this doesn't work in some cases,
66379         e.g., when config.h has "#define intmax_t long long int" and
66380         we include <config.h>, <inttypes.h>, <config.h> in that order.
66381         Problem reported by Matthew Woehlke in:
66382         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66383         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66384         * lib/fts-cycle.c: Don't include config.h.
66385         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66386         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66387         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66388         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66389         inttypes.h.
66390         * lib/xstrtoumax.c: Likewise.
66391         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66392         __strtol and the like, so that this module is more like its siblings.
66393         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66394         Remove; no longer needed now that we assume gnulib inttypes.h.
66395
66396 2006-10-08  Bruno Haible  <bruno@clisp.org>
66397
66398         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66399         option.
66400
66401 2006-10-07  Jim Meyering  <jim@meyering.net>
66402
66403         * modules/inttypes (inttypes.h): Revert what seems to have been
66404         an inadvertent part of today's change: use "|", not "/" in the
66405         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66406
66407 2006-10-07  Bruno Haible  <bruno@clisp.org>
66408
66409         * modules/sublist: New file.
66410
66411 2006-10-07  Bruno Haible  <bruno@clisp.org>
66412
66413         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66414         * modules/argz (argz.h): Likewise.
66415         * modules/arpa_inet (arpa/inet.h): Likewise.
66416         * modules/byteswap (byteswap.h): Likewise.
66417         * modules/configmake (configmake.h): Likewise.
66418         * modules/fcntl (fcntl.h): Likewise.
66419         * modules/fnmatch (fnmatch.h): Likewise.
66420         * modules/getopt (getopt.h): Likewise.
66421         * modules/glob (glob.h): Likewise.
66422         * modules/inttypes (inttypes.h): Likewise.
66423         * modules/netinet_in (netinet/in.h): Likewise.
66424         * modules/poll (poll.h): Likewise.
66425         * modules/stdbool (stdbool.h): Likewise.
66426         * modules/stdint (stdint.h): Likewise.
66427         * modules/sys_select (sys/select.h): Likewise.
66428         * modules/sys_socket (sys/socket.h): Likewise.
66429         * modules/sys_stat (sys/stat.h): Likewise.
66430         * modules/sysexits (sysexits.h): Likewise.
66431         * modules/unistd (unistd.h): Likewise.
66432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66433         Add a "DO NOT EDIT" comment to the generated file.
66434         (func_import): Likewise for gnulib-comp.m4.
66435
66436 2006-10-07  Bruno Haible  <bruno@clisp.org>
66437
66438         * lib/gl_sublist.h: New file.
66439         * lib/gl_sublist.c: New file.
66440
66441 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66444         name (relative to the original working directory) and the file
66445         name component (relative to the temporary working directory).  All
66446         callers changed.
66447         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66448         * lib/mkdir-p.c (make_dir_parents): Likewise.
66449         * lib/mkdir-p.h (make_dir_parents): Likewise.
66450
66451 2006-10-06  Eric Blake  <ebb9@byu.net>
66452
66453         Define several macros for use by the clean-temp module.
66454         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66455         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66456         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66457
66458         * lib/clean-temp.h (close_stream_temp): New declaration.
66459         * lib/clean-temp.c (includes): Pull in headers according to what
66460         other modules are in use.
66461         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66462
66463 2006-10-06  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66466         instead of fopen, fwriteerror.
66467
66468 2006-10-06  Bruno Haible  <bruno@clisp.org>
66469
66470         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66471         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66472         int.
66473         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66474         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66475         Return an error indicator.
66476         Suggested by Eric Blake.
66477
66478 2006-10-06  Bruno Haible  <bruno@clisp.org>
66479
66480         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66481         Reported by Eric Blake.
66482
66483 2006-10-06  Bruno Haible  <bruno@clisp.org>
66484
66485         * modules/closeout (Description): Mention stderr too.
66486
66487 2006-10-06  Bruno Haible  <bruno@clisp.org>
66488         and Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * lib/closeout.c (close_stdout): Also close stderr.
66491         * lib/closeout.h: Update comment.
66492
66493 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66494
66495         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66496         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66497         * lib/dirchownmod.c: Include lchown.h.
66498         * lib/lchown.c: Don't include files that lchown.h now includes.
66499         Don't declare chown, since lchown.h now does that.
66500         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66501         (lchown): Define to rpl_chown if lchown is declared but
66502         does not exist.  Declare using a prototype if lchown is not
66503         declared.  Add a copyright notice.
66504         * lib/mkstemp.h: Include <unistd.h>.
66505         * lib/openat.c: Include lchown.h.
66506
66507         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66508         we now test for that separately.
66509         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66510         rather than O_NOFOLLOW, when testing whether it's possible to
66511         avoid a race condition reliably.
66512         * lib/savewd.c (savewd_chdir): Likewise.
66513
66514         Remove macros that are no longer needed now that stdint.h is
66515         reliable.
66516         * lib/fsusage.c (UINTMAX_MAX): Remove.
66517         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66518         * lib/utimecmp.c (SIZE_MAX): Remove.
66519
66520         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66521
66522         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66523         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66524         O_NOATIME works.
66525
66526 2006-10-05  Bruno Haible  <bruno@clisp.org>
66527
66528         * lib/gl_list.h (gl_sortedlist_search_from_to,
66529         gl_sortedlist_indexof_from_to): New declarations.
66530         (gl_list_implementation): New fields sortedlist_search_from_to,
66531         sortedlist_indexof_from_to.
66532         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66533         inline functions.
66534         * lib/gl_list.c (gl_sortedlist_search_from_to,
66535         gl_sortedlist_indexof_from_to): New functions.
66536         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66537         function.
66538         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66539         (gl_array_sortedlist_search_from_to): New function.
66540         (gl_array_list_implementation): Update.
66541         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66542         function.
66543         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66544         (gl_carray_sortedlist_search_from_to): New function.
66545         (gl_carray_list_implementation): Update.
66546         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66547         gl_linked_sortedlist_indexof_from_to): New functions.
66548         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66549         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66550         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66551         gl_tree_sortedlist_indexof_from_to): New functions.
66552         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66553         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66554         Update.
66555         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66556         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66557         Update.
66558
66559 2006-10-05  Bruno Haible  <bruno@clisp.org>
66560
66561         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66562         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66563         (struct gl_list_implementation): Add fields search_from_to,
66564         indexof_from_to. Remove fields search, indexof.
66565         (gl_list_search): Use the search_from_to method.
66566         (gl_list_search_from, gl_list_search_from_to): New functions.
66567         (gl_list_indexof): Use the indexof_from_to method.
66568         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66569         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66570         (gl_list_search_from, gl_list_search_from_to): New functions.
66571         (gl_list_indexof): Use the indexof_from_to method.
66572         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66573         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66574         gl_array_indexof. Add start_index, end_index arguments.
66575         (gl_array_search_from_to): Renamed from gl_array_search. Add
66576         start_index, end_index arguments.
66577         (gl_array_remove, gl_array_list_implementation): Update.
66578         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66579         gl_carray_indexof. Add start_index, end_index arguments.
66580         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66581         start_index, end_index arguments.
66582         (gl_carray_remove, gl_carray_list_implementation): Update.
66583         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66584         gl_linked_search. Add start_index, end_index arguments.
66585         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66586         start_index, end_index arguments.
66587         (gl_linked_remove): Update.
66588         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66589         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66590         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66591         field to 'size_t'.
66592         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66593         gl_tree_search. Add start_index, end_index arguments.
66594         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66595         start_index, end_index arguments.
66596         (gl_tree_remove): Update.
66597         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66598         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66599         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66600         function.
66601         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66602         gl_tree_search. Add start_index, end_index arguments.
66603         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66604         start_index, end_index arguments.
66605         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66606         Update.
66607         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66608
66609 2006-10-05  Bruno Haible  <bruno@clisp.org>
66610
66611         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66612
66613         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66614         fwriteerror_temp): New declarations.
66615         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66616         (descriptors): New variable.
66617         (cleanup): First, close the descriptors.
66618         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66619         fclose_temp, fwriteerror_temp): New functions.
66620
66621 2006-10-04  Jim Meyering  <jim@meyering.net>
66622
66623         * lib/fts.c (fts_open): Tiny comment change.
66624
66625 2006-10-04  Bruno Haible  <bruno@clisp.org>
66626
66627         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66628         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66629         gl_LOCK_BODY.
66630         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66631         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66632         gl_LOCK_EARLY_BODY.
66633         (gl_LOCK): Require gl_LOCK_BODY.
66634
66635 2006-10-04  Bruno Haible  <bruno@clisp.org>
66636
66637         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66638         (gl_oset_search_atleast): New declaration.
66639         (struct gl_oset_implementation): Add field 'search_atleast'.
66640         (gl_oset_search_atleast): New inline function.
66641         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66642         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66643         (gl_array_oset_implementation): Update.
66644         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66645         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66646         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66647
66648 2006-10-04  Bruno Haible  <bruno@clisp.org>
66649
66650         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66651
66652 2006-10-03  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66655         from gl_avltreehash_list_implementation.
66656
66657 2006-10-03  Bruno Haible  <bruno@clisp.org>
66658
66659         * lib/gl_oset.c (gl_oset_add): Fix return type.
66660
66661 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66662
66663         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66664
66665 2006-10-02  Eric Blake  <ebb9@byu.net>
66666
66667         * modules/strnlen (Depends-on): Add extensions.
66668
66669 2006-10-02  Eric Blake  <ebb9@byu.net>
66670
66671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66672         definition in 2.60+.
66673
66674 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66675
66676         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66677         checks.
66678
66679 2006-10-02  Bruno Haible  <bruno@clisp.org>
66680
66681         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66682         to the AUTOMAKE_OPTIONS.
66683         Reported by Jim Meyering.
66684
66685 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66686
66687         Work around bug in Solaris 10 /proc file system:
66688         /proc/self/fd/NNN/.. isn't the parent directory of
66689         the directory whose file descriptor is NNN.  This needs to
66690         be worked around at run time, not compile time, since a
66691         program might be built on Solaris 8, where things work, and
66692         run on Solaris 10.
66693         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66694         to use the following interface instead:
66695         (OPENAT_BUFFER_SIZE): New macro.
66696         (openat_proc_name): New function.
66697         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66698         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66699         Likewise.
66700         * lib/openat-proc.c: New file.
66701         * modules/openat (Files): Add lib/openat-proc.c.
66702         (Depends-on): Add same-inode, stdbool.
66703         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66704
66705 2006-09-29  Bruno Haible  <bruno@clisp.org>
66706
66707         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66708         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66709         argument. Set stdout_closed before testing for ferror, not after.
66710         (fwriteerror, fwriteerror_no_ebadf): New functions.
66711
66712 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66713
66714         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66715
66716 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66717
66718         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66719         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66720
66721 2006-09-28  Jim Meyering  <jim@meyering.net>
66722
66723         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66724         Include <unistd.h>.
66725
66726 2006-09-28  Bruno Haible  <bruno@clisp.org>
66727
66728         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66729         * modules/linkedhash-list (Depends-on): Likewise.
66730         * modules/rbtreehash-list (Depends-on): Likewise.
66731
66732 2006-09-28  Bruno Haible  <bruno@clisp.org>
66733
66734         * lib/strndup.h: Simplify the redefinition of strndup.
66735         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66736         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66737
66738 2006-09-28  Bruno Haible  <bruno@clisp.org>
66739
66740         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66741         * lib/gl_linkedhash_list.c: Likewise.
66742         * lib/gl_rbtreehash_list.c: Likewise.
66743
66744 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66745
66746         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66747         getaddrinfo.
66748
66749         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66750         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66751         it causes <stdio_ext.h> to cause a compile-time error.
66752         Problem reported by Nelson H. F. Beebe.
66753         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66754         of HAVE_DECL___PENDING.
66755
66756         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66757         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66758         declaration.
66759
66760 2006-09-27  Jim Meyering  <jim@meyering.net>
66761
66762         This file could end up with a definition for a function
66763         named __strndup, rather than rpl_strndup on a system with
66764         incomplete weak_alias support.
66765         * lib/strndup.c (strndup): Rename from __strndup.
66766         Remove #defines that used to map __strndup to strndup.
66767         Don't use K&R prototypes.
66768         Remove LIBC-related code, since this file is not sync'd with glibc.
66769         * lib/strndup.h: Revamp, accordingly.
66770         * m4/strndup.m4: Modernize.
66771
66772 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * modules/savewd (Depends-on): Add 'raise'.
66775         * lib/savewd.c: Include <signal.h>, for 'raise'.
66776
66777 2006-09-26  Jim Meyering  <jim@meyering.net>
66778
66779         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66780         when we detect Darwin 8.7.0's acl_get_file bug.
66781         Rearrange to perform the new (below) run-test while $LIBS
66782         contains any acl-related library.  Set USE_ACL at the end.
66783         (gl_ACL_GET_FILE): New function.
66784
66785 2006-09-26  Eric Blake  <ebb9@byu.net>
66786
66787         * lib/verror.c: Include <config.h> unconditionally.
66788
66789 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * modules/clock-time (Maintainer): Add self.
66792         * modules/getlogin_r (Depends-on): Add extensions.
66793
66794 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66795
66796         * modules/clock-time: New module.
66797         * modules/nanosleep (Depends-on): Add clock-time.
66798         * modules/gethrxtime (Depends-on): Likewise.
66799         * modules/gettime (Depends-on): Likewise.
66800         * modules/settime (Depends-on): Likewise.
66801
66802         * modules/fts-lgpl: Depend on openat.
66803         * modules/mkancesdirs: Depend on savewd.
66804         * modules/mkdir-p: Likewise.
66805
66806 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66807
66808         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66809
66810         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66811         `gl_have_arbitrary_file_name_length_limit' to
66812         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66813         actually works between configure runs.
66814
66815 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66816             Bruno Haible  <bruno@clisp.org>
66817
66818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66819
66820 2006-09-25  Jim Meyering  <jim@meyering.net>
66821
66822         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66823         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66824
66825 2006-09-25  Eric Blake  <ebb9@byu.net>
66826
66827         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66828         exec's in 2006-09-18 patch when shuffling fds.
66829
66830 2006-09-25  Bruno Haible  <bruno@clisp.org>
66831
66832         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66833         Reported by Jim Meyering.
66834
66835 2006-09-24  Jim Meyering  <jim@meyering.net>
66836
66837         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66838         compare a pointer against a literal "0".  That caused failures with
66839         at least HP-UX's hpcc.
66840
66841 2006-09-22  Simon Josefsson  <jas@extundo.com>
66842
66843         * modules/gc-sha1:
66844         * modules/gc-md4:
66845         * modules/gc-hmac-sha1:
66846         * modules/gc-hmac-md5:
66847         * modules/gc-des:
66848         * modules/gc-arcfour: Distribute more files.
66849
66850 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66851
66852         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66853         (gl_linked_iterator_from_to): Initialize struct completely.
66854         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66855         (gl_tree_iterator_from_to): Likewise
66856         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66857         * lib/gl_array_list.c [lint] (gl_array_iterator)
66858         (gl_array_iterator_from_to): Likewise.
66859         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66860         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66861         (gl_carray_iterator_from_to): Likewise.
66862
66863         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66864         * lib/md4.c (md4_process_block): Remove unused variable.
66865         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66866         parentheses for clarity.
66867
66868 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66869
66870         * modules/bison-i18n (Depends-on): Add gettext.
66871
66872 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66873
66874         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66875         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66876         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66877         also add missing comma that caused broken test.
66878         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66879         stdlib.h, for `abort'.
66880         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66881         variables.
66882         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66883         include unistd.h if present, for `rmdir'.
66884         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66885         variables.
66886         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66887         in the process include standard headers for prototypes.
66888         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66889         gets declared on GNU/Linux.
66890         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66891         unistd.h, for `rmdir'.
66892         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66893
66894         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66895         always true.
66896         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66897
66898         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66899
66900 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66901
66902         * gnulib-tool (func_version): Create output all at once.  This
66903         may help avoid triggering unnecessary SIGPIPEs, and at any
66904         rate it doesn't hurt.
66905
66906 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66907             Bruno Haible  <bruno@clisp.org>
66908
66909         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66910         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66911         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66912
66913         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66914         (gl_FUNC_VASPRINTF): Invoke it.
66915
66916 2006-09-22  Bruno Haible  <bruno@clisp.org>
66917
66918         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66919         getloadavg.c as first argument.
66920
66921 2006-09-22  Bruno Haible  <bruno@clisp.org>
66922
66923         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66924         at the beginning of the gl_INIT macro.
66925         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66926         gl_GETLOADAVG.
66927
66928 2006-09-22  Bruno Haible  <bruno@clisp.org>
66929
66930         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66931         module.
66932         Suggested by Ralf Wildenhues.
66933
66934 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         Import this patch from libc:
66937
66938         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66939
66940         * lib/regex_internal.c (re_string_reconstruct): Handle
66941         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66942         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66943         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66944         re_string_context_at.
66945
66946         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66947         now requires it.
66948         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66949         gl_REGEX now does it for us.
66950         (gl_REGEX): Add test taken from
66951         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66952
66953         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66954         Check that large offsets work.  Modernize Autoconf usages.
66955         Prefer "yes" to mean a good thing rather than a bad.
66956         Don't put "#define mkstemp" in config.h, as this might interfere
66957         with standard system headers that "#define mkstemp mkstemp64".
66958
66959         * modules/mkstemp (Depends-on): Add extensions, so that
66960         mkstemp is visible on some platforms.
66961         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66962         (Include): Change to "mkstemp.h" from <stdlib.h>.
66963         (Files): Add mkstemp.h.
66964
66965         * lib/mkstemp.h: New file, since some standard headers
66966         #define mkstemp.
66967         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66968         Include "mkstemp.h".
66969         Make the _LIBC code resemble glibc original more,
66970         e.g., use K&R style.
66971         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66972         (mkstemp): Remove, since mkstemp.h does this for us.
66973         * lib/stdlib--.h: Include mkstemp.h.
66974
66975         Import this patch from libc:
66976
66977         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66978
66979         * lib/tempname.c (__gen_tempname): Change attempts_min
66980         into a macro.  Use preprocessor to decide how to initialize
66981         attempts [Coverity CID 67].
66982
66983 2006-09-20  Bruno Haible  <bruno@clisp.org>
66984
66985         * lib/mkdtemp.c: Import from libc.
66986         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66987                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66988                 attempts_min into a macro.  Use preprocessor to decide how to
66989                 initialize attempts [Coverity CID 67].
66990         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66991                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66992                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66993
66994 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66995
66996         * gnulib-tool (func_exit): New function, to allow to pass the
66997         exit status portably through the trap.  Use everywhere.
66998         (--help, --version): Signal a write error.
66999         (trap): catch SIGPIPE, for write errors.
67000         Exit at the end of the trap, with the correct exit status.
67001
67002 2006-09-19  Karl Berry  <karl@gnu.org>
67003
67004         * doc/gnulib.texi: note about the license texinfo files.
67005
67006 2006-09-19  Eric Blake  <ebb9@byu.net>
67007
67008         * gnulib-tool: Avoid space-tab.
67009
67010 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67011
67012         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67013         that prevented coreutils 6.1 from building.  Problem reported
67014         by Petter Reinholdtsen.
67015
67016 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         * gnulib-tool (avoidlist): Fix typo that broke options like
67019         --avoid=lock that are used by coreutils bootstrap.
67020
67021 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67022
67023         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67024         more systematically.
67025
67026 2006-09-18  Jim Meyering  <jim@meyering.net>
67027
67028         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67029
67030 2006-09-18  Bruno Haible  <bruno@clisp.org>
67031
67032         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67033
67034 2006-09-18  Bruno Haible  <bruno@clisp.org>
67035
67036         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67037         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67038         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67039         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67040         * m4/gettext.m4: Require autoconf >= 2.52.
67041         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67042         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67043         of gl_cv_header_inttypes_h.
67044
67045 2006-09-18  Bruno Haible  <bruno@clisp.org>
67046
67047         * lib/javaversion.c: Include configmake.h.
67048
67049 2006-09-18  Bruno Haible  <bruno@clisp.org>
67050
67051         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67052         avoid that the while loops be executed in a subshell.
67053
67054 2006-09-18  Bruno Haible  <bruno@clisp.org>
67055
67056         * MODULES.html.sh (func_module): Break long lines.
67057         Suggested by Bruce Korb <bkorb@gnu.org>.
67058
67059 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67060
67061         Speed up by a factor of 1.12.
67062         * gnulib-tool (nl): New variable.
67063         (func_import): Rewrite include directive extraction to only read each
67064         directive once.
67065
67066 2006-09-17  Bruno Haible  <bruno@clisp.org>
67067
67068         * modules/javaversion (Makefile.am): Remove DEFS setting.
67069         (Depends-on): Add configmake, for PKGDATADIR definition.
67070
67071 2006-09-17  Bruno Haible  <bruno@clisp.org>
67072
67073         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67074
67075 2006-09-17  Bruno Haible  <bruno@clisp.org>
67076
67077         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67078         (func_modules_transitive_closure, func_modules_add_dummy,
67079         func_modules_to_filelist, func_import, func_create_testdir,
67080         func_create_megatestdir, ...): Use it wherever possible.
67081         Suggested by Ralf Wildenhues.
67082
67083 2006-09-16  Karl Berry  <karl@gnu.org>
67084
67085         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67086         to avoid sectioning errors.
67087         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67088         [ifinfo]: blank line after @center-ed titles.
67089         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67090         Spell FSF address consistently with others.
67091         (These changes approved by rms.)
67092
67093 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67094
67095         Speed up by a factor of 1.61.
67096         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67097         already checked module names again.
67098
67099 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67100
67101         Speed up by a factor of 1.13.
67102         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67103         for new_files, and the input to func_add_or_update.
67104
67105 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67106
67107         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67108         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67109
67110 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67111
67112         * modules/mkancesdirs (Depends-on): Add fcntl.
67113         * modules/savewd: New file.
67114         * MODULES.html.sh (File system functions): Add savewd.
67115
67116         * modules/configmake (Makefile.am): Add support for the
67117         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67118
67119 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         * m4/savewd.m4: New file.
67122
67123 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67124
67125         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67126         (dirchownmod): New arg FD.  All callers changed.
67127         Use FD rather than opening the directory ourself, as opening is
67128         now the caller's responsibility.
67129         * lib/dirchownmod.h: Likewise.
67130         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67131         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67132         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67133         (test_dir): Remove.
67134         (mkancesdirs): Return length of prefix of FILE that has already
67135         been made, or -2 if there is a child doing the work.  Redo
67136         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67137         ".", and treat ".." specially since it might stray back into
67138         already-created areas.  Use a subprocess if necessary.  New arg
67139         WD; all users changed.  MAKE_DIR function should now return 1
67140         if it creates a directory that is not readable.  Return -2 if
67141         a child process is spun off.
67142         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67143         Adjust signature to match code.
67144         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67145         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67146         all users changed.
67147         * lib/savewd.c, lib/savewd.h: New files.
67148
67149 2006-09-15  Jim Meyering  <jim@meyering.net>
67150
67151         * modules/rename-dest-slash: New module.
67152         * MODULES.html.sh (posix_compat): Add it here.
67153
67154         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67155
67156 2006-09-15  Jim Meyering  <jim@meyering.net>
67157
67158         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67159         file.
67160
67161         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67162
67163 2006-09-15  Jim Meyering  <jim@meyering.net>
67164
67165         * lib/rename-dest-slash.c (has_trailing_slash): Use
67166         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67167         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67168         test before testing whether SRC is a directory.
67169         Suggestions from Bruno Haible.
67170
67171         Avoid a warning about an unused variable.
67172         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67173         into the #ifdef block where it's used.
67174
67175         * lib/rename-dest-slash.c: New file.
67176
67177 2006-09-14  Bruno Haible  <bruno@clisp.org>
67178
67179         * lib/allocsa.c: Include <config.h> unconditionally.
67180         * lib/asnprintf.c: Likewise.
67181         * lib/asprintf.c: Likewise.
67182         * lib/c-strcasecmp.c: Likewise.
67183         * lib/c-strcasestr.c: Likewise.
67184         * lib/c-strncasecmp.c: Likewise.
67185         * lib/c-strstr.c: Likewise.
67186         * lib/classpath.c: Likewise.
67187         * lib/clean-temp.c: Likewise.
67188         * lib/concatpath.c: Likewise.
67189         * lib/copy-file.c: Likewise.
67190         * lib/csharpcomp.c: Likewise.
67191         * lib/csharpexec.c: Likewise.
67192         * lib/execute.c: Likewise.
67193         * lib/fatal-signal.c: Likewise.
67194         * lib/findprog.c: Likewise.
67195         * lib/fwriteerror.c: Likewise.
67196         * lib/gl_array_list.c: Likewise.
67197         * lib/gl_array_oset.c: Likewise.
67198         * lib/gl_avltree_list.c: Likewise.
67199         * lib/gl_avltree_oset.c: Likewise.
67200         * lib/gl_avltreehash_list.c: Likewise.
67201         * lib/gl_carray_list.c: Likewise.
67202         * lib/gl_linked_list.c: Likewise.
67203         * lib/gl_linkedhash_list.c: Likewise.
67204         * lib/gl_list.c: Likewise.
67205         * lib/gl_oset.c: Likewise.
67206         * lib/gl_rbtree_list.c: Likewise.
67207         * lib/gl_rbtree_oset.c: Likewise.
67208         * lib/gl_rbtreehash_list.c: Likewise.
67209         * lib/imaxabs.c: Likewise.
67210         * lib/imaxdiv.c: Likewise.
67211         * lib/javacomp.c: Likewise.
67212         * lib/javaexec.c: Likewise.
67213         * lib/javaversion.c: Likewise.
67214         * lib/linebreak.c: Likewise.
67215         * lib/localcharset.c: Likewise.
67216         * lib/lock.c: Likewise.
67217         * lib/mbchar.c: Likewise.
67218         * lib/mbswidth.c: Likewise.
67219         * lib/mkdtemp.c: Likewise.
67220         * lib/pipe.c: Likewise.
67221         * lib/printf-args.c: Likewise.
67222         * lib/printf-parse.c: Likewise.
67223         * lib/progname.c: Likewise.
67224         * lib/progreloc.c: Likewise.
67225         * lib/readlink.c: Likewise.
67226         * lib/sh-quote.c: Likewise.
67227         * lib/stpcpy.c: Likewise.
67228         * lib/stpncpy.c: Likewise.
67229         * lib/strcasecmp.c: Likewise.
67230         * lib/strcasestr.c: Likewise.
67231         * lib/strcspn.c: Likewise.
67232         * lib/striconv.c: Likewise.
67233         * lib/strncasecmp.c: Likewise.
67234         * lib/strnlen1.c: Likewise.
67235         * lib/strstr.c: Likewise.
67236         * lib/strtok_r.c: Likewise.
67237         * lib/tls.c: Likewise.
67238         * lib/tmpdir.c: Likewise.
67239         * lib/unicodeio.c: Likewise.
67240         * lib/unsetenv.c: Likewise.
67241         * lib/vasnprintf.c: Likewise.
67242         * lib/vasprintf.c: Likewise.
67243         * lib/wait-process.c: Likewise.
67244         * lib/xallocsa.c: Likewise.
67245         * lib/xsetenv.c: Likewise.
67246         * lib/xstriconv.c: Likewise.
67247
67248 2006-09-13  Simon Josefsson  <jas@extundo.com>
67249
67250         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67251         that internally, suggested by Ralf Wildenhues
67252         <Ralf.Wildenhues@gmx.de>.
67253
67254 2006-09-13  Simon Josefsson  <jas@extundo.com>
67255
67256         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67257         @LIBOBJS@.
67258         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67259
67260 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67261
67262         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67263         longer worry about uses that don't define HAVE_CONFIG_H.
67264         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67265         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67266         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67267         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67268         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67269         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67270         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67271         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67272         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67273         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67274         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67275         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67276         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67277         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67278         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67279         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67280         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67281         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67282         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67283         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67284         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67285         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67286         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67287         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67288         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67289         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67290         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67291         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67292         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67293         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67294         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67295         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67296         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67297         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67298         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67299         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67300         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67301         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67302         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67303         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67304         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67305         Likewise.
67306
67307 2006-09-13  Eric Blake  <ebb9@byu.net>
67308
67309         * lib/getopt.c: Fix typo in last commit.
67310
67311 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67312
67313         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67314         dgettext.
67315
67316 2006-09-12  Jim Meyering  <jim@meyering.net>
67317
67318         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67319         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67320         Reported by Nelson H. F. Beebe.
67321
67322 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67323
67324         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67325         program_invocation_name and program_invocation_short_name are
67326         initialized.
67327         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67328         and program_invocation_short_name to argp.h, so they are visible
67329         to user programs.
67330         * lib/argp.h: Likewise
67331
67332 2006-09-10  Bruno Haible  <bruno@clisp.org>
67333
67334         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67335         m4/inttypes_h.m4, m4/uintmax_t.m4.
67336
67337 2006-09-10  Bruno Haible  <bruno@clisp.org>
67338
67339         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67340         gl_AC_TYPE_UINTMAX_T.
67341
67342 2006-09-10  Bruno Haible  <bruno@clisp.org>
67343
67344         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67345
67346 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67347
67348         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67349         convention.  Text proposed by Bruno Haible.
67350         (struct argp_option): Document the use of N_() wrappers.
67351
67352         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67353         '\v', and translate the two parts separately, instead of feeding
67354         the whole string to gettext.  This allows to exclude
67355         '\v' from the strings visible to the translator by writing doc
67356         strings as N_("..") "\v" N_("..").
67357
67358 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * config/srclist.txt: Undo latest change; the bug was fixed.
67361
67362 2006-09-09  Bruno Haible  <bruno@clisp.org>
67363
67364         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67365         assignments if building a library without libtool.
67366         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67367         in func_emit_lib_Makefile_am.
67368         (func_import): When building a static library libfoo.a, arrange to
67369         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67370         (func_create_testdir): Likewise.
67371         * modules/gc (configure.ac, Makefile.am): If building statically,
67372         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67373         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67374         * modules/striconv (configure.ac, Makefile.am): Likewise.
67375         Based on a suggestion by Ralf Wildenhues.
67376
67377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67378
67379         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67380         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67381         Also:
67382
67383         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67384         Add year_2050_test to catch glibc bug 2821
67385         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67386
67387         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67388         Prefer #ifdef to #if.
67389
67390         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67391         Return from 'main' instead of calling 'exit'.
67392
67393 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67396         returned the maximum time_t value rather than (time_t) -1.
67397         Problem originally reported by William Bardwell
67398         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67399
67400         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67401         Moved to here ...
67402         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67403         ... from here.
67404
67405 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67408         2821 is fixed.
67409
67410 2006-09-08  Jim Meyering  <jim@meyering.net>
67411
67412         Don't make generated files read-only.  That would bother too many
67413         people.  However, do retain the ability to work when targets are
67414         read-only: remove the destination and temporary files before writing
67415         them (when generated via sed or echo), or by using the -f option for
67416         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67417         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67418         * modules/byteswap, modules/configmake, modules/fcntl:
67419         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67420         * modules/localcharset, modules/netinet_in, modules/poll:
67421         * modules/stdbool, modules/stdint, modules/sys_select:
67422         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67423
67424 2006-09-08  Jim Meyering  <jim@meyering.net>
67425
67426         Avoid new build failure on FreeBSD 6.0.
67427         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67428         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67429         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67430
67431 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67432
67433         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67434
67435 2006-09-07  Jim Meyering  <jim@meyering.net>
67436
67437         Fix global typo in last change: use chmod u-w, not chmod u-x.
67438         Spotted by Paul Eggert and Bruce Korb.
67439         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67440         * modules/byteswap, modules/configmake, modules/fcntl:
67441         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67442         * modules/localcharset, modules/netinet_in, modules/poll:
67443         * modules/stdbool, modules/stdint, modules/sys_select:
67444         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67445
67446 2006-09-06  Jim Meyering  <jim@meyering.net>
67447
67448         Make generated files be read-only.
67449         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67450         Ensure that each generated file is now read-only.
67451         * modules/argz: Likewise.
67452         * modules/arpa_inet: Likewise.
67453         * modules/byteswap: Likewise.
67454         * modules/configmake: Likewise.
67455         * modules/fcntl: Likewise.
67456         * modules/fnmatch: Likewise.
67457         * modules/getopt: Likewise.
67458         * modules/glob: Likewise.
67459         * modules/inttypes: Likewise.
67460         * modules/netinet_in: Likewise.
67461         * modules/poll: Likewise.
67462         * modules/stdbool: Likewise.
67463         * modules/stdint: Likewise.
67464         * modules/sys_select: Likewise.
67465         * modules/sys_socket: Likewise.
67466         * modules/sys_stat: Likewise.
67467         * modules/sysexits: Likewise.
67468         * modules/localcharset: Same as above, but continue using temporary
67469         file named "t-$@" (why different?) rather than the "$@-t" used
67470         everywhere else.
67471
67472         * modules/sysexits (Makefile.am): Replace literal occurrences
67473         of "sysexit.h" more readable, and more consistent, "$@".
67474
67475 2006-09-06  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/striconv: New file.
67478         * modules/xstriconv: New file.
67479         * MODULES.html.sh (Internationalization functions): Add striconv,
67480         xstriconv.
67481
67482 2006-09-06  Bruno Haible  <bruno@clisp.org>
67483
67484         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67485         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67486         not using libtool correctly.
67487
67488 2006-09-06  Bruno Haible  <bruno@clisp.org>
67489
67490         * lib/striconv.h: New file.
67491         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67492         iconvstring.c.
67493         * lib/xstriconv.h: New file.
67494         * lib/xstriconv.c: New file.
67495
67496 2006-09-06  Bruno Haible  <bruno@clisp.org>
67497
67498         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67499         lib_..._LDFLAGS.
67500
67501 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67502
67503         * lib/argz_.h: Sync from Libtool.
67504
67505         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67506                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67507
67508         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67509
67510 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67511
67512         * modules/trim: New file.
67513
67514 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67515
67516         * lib/trim.h: New file.
67517         * lib/trim.c: New file.
67518
67519 2006-09-05  Bruno Haible  <bruno@clisp.org>
67520
67521         * MODULES.html.sh (String handling): Add trim.
67522
67523 2006-09-04  Karl Berry  <karl@gnu.org>
67524
67525         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67526         until next release.
67527
67528 2006-09-03  Bruno Haible  <bruno@clisp.org>
67529
67530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67531         correctly.
67532
67533 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67536         not gl_GETLOADAVG.  Omit unneeded semicolons.
67537         Problems reported by Ralf Wildenhues in
67538         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67539         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67540         at the end, which is the usual gnulib style.
67541
67542         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67543         of doing all the work ourselves.
67544         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67545         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67546
67547 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67548
67549         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67550         Problem reported by Ralf Wildenhues in
67551         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67552
67553         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67554         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67555
67556 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67559         yesterday's patch by changing test -n to test -z.
67560
67561 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67564         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67565         the former is now obsolescent.
67566
67567         * modules/chdir-long (Depends-on): Add fcntl.
67568
67569 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67572         obsolescent, and programs should use gnulib instead.
67573         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67574         but with prefixes changed.
67575
67576 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67577
67578         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67579         or stdbool.h, because they might not exist while configuring.
67580
67581         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67582         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67583         does that for us.
67584         (O_DIRECTORY): Remove.
67585
67586 2006-08-31  Eric Blake  <ebb9@byu.net>
67587
67588         * gnulib-tool: Don't let emacs change spaces to TAB.
67589
67590 2006-08-31  Bruno Haible  <bruno@clisp.org>
67591
67592         * gnulib-tool: When calling func_import more than once, do it in a
67593         subshell.
67594         Reported by Eric Blake <ebb9@byu.net>.
67595
67596 2006-08-31  Bruno Haible  <bruno@clisp.org>
67597
67598         * gnulib-tool (nl): Remove variable.
67599         (sed_transform_lib_file): Use more robust test for config-h module.
67600         (func_import): Fix typo in 2006-08-25 patch.
67601
67602 2006-08-31  Bruno Haible  <bruno@clisp.org>
67603
67604         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67605         specified, augment Makefile.am variables instead of assigning them.
67606
67607 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67608
67609         Work around a bug in both the Linux and SunOS 64-bit kernels:
67610         nanosleep mishandles sleeps for longer than 2**31 seconds.
67611         Problem reported by Frank v Waveren in
67612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67614         Check for nanosleep bug.
67615         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67616
67617 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         Work around a bug in both the Linux and SunOS 64-bit kernels:
67620         nanosleep mishandles sleeps for longer than 2**31 seconds.
67621         Problem reported by Frank v Waveren in
67622         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67623         * lib/nanosleep.c (BILLION): New constant.
67624         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67625         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67626         implementation.
67627
67628 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * modules/nanosleep (Depends-on): Add gettime.
67631
67632 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67633         and Simon Josefsson  <jas@extundo.com>
67634         and Oskar Liljeblad  <oskar@osk.mine.nu>
67635
67636         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67637         * gnulib-tool (func_import): New license type 'unmodifiable license
67638         text'.
67639         * modules/fdl: Use it.  Longer description.
67640         * module/gpl, module/lgpl: New files.
67641
67642 2006-08-30  Jim Meyering  <jim@meyering.net>
67643
67644         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67645         shadowing the parameter.
67646
67647 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67648
67649         Sync from Libtool:
67650
67651         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67652
67653         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67654         sharing with gnulib.  Report by Eric Blake.
67655
67656 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67657
67658         * modules/isapipe: New file.
67659         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67660
67661 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67662
67663         * modules/configmake (Makefile.am): Add a comment, and omit
67664         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67665         by Bruno Haible.
67666
67667 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * m4/isapipe.m4: New file.
67670
67671 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67672
67673         * lib/isapipe.c, lib/isapipe.h: New files.
67674
67675 2006-08-29  Jim Meyering  <jim@meyering.net>
67676
67677         * modules/configmake (Makefile.am): Make configmake.h depend on
67678         Makefile.  Otherwise, a stale configmake.h could hang around.
67679
67680 2006-08-29  Eric Blake  <ebb9@byu.net>
67681
67682         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67683         resolution of upstream bug 3044.
67684
67685 2006-08-29  Bruno Haible  <bruno@clisp.org>
67686
67687         * modules/localcharset (Depends-on): Add configmake.
67688         (Makefile.am): Remove setting of LIBDIR through DEFS.
67689
67690 2006-08-29  Bruno Haible  <bruno@clisp.org>
67691
67692         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67693         defined.
67694
67695 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         * modules/fcntl: New file.
67698         * modules/chdir-safer (Depends-on): Add fcntl.
67699         * modules/fts: Likewise.
67700         * modules/mkdir-p: Likewise.
67701
67702         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67703         This undoes the most recent change, since we're now addressing the
67704         problem in a different way.
67705
67706         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67707         into output, since the output might be called Makefile.am even
67708         if $makefile_name is something different.
67709         (func_import): Use $makefile_am rather than
67710         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67711         empty.
67712
67713         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67714
67715 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67716
67717         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67718         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67719         recent change to stdint.m4, since we're now addressing the problem in a
67720         different way.
67721
67722 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         * m4/fcntl_h.m4: New file.
67725
67726 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         * lib/fcntl_.h: New file.
67729         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67730         the fcntl module.
67731         * lib/dirchownmod.c: Likewise.
67732         * lib/fts.c: Likewise.
67733
67734         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67735         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67736         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67737         just before including <inttypes.h>, to avoid circular inclusion.
67738
67739 2006-08-28  Jim Meyering  <jim@meyering.net>
67740
67741         * doc/visibility.texi: Actually read and correct the grammar of the
67742         sentence affected by yesterday's change.
67743
67744 2006-08-28  Eric Blake  <ebb9@byu.net>
67745
67746         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67747         needs wrapper.
67748
67749 2006-08-28  Eric Blake  <ebb9@byu.net>
67750
67751         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67752
67753 2006-08-28  Eric Blake  <ebb9@byu.net>
67754
67755         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67756
67757 2006-08-28  Bruno Haible  <bruno@clisp.org>
67758
67759         * modules/c-strstr: New file, from GNU gettext.
67760         * MODULES.html.sh (String handling): Add c-strstr.
67761
67762 2006-08-28  Bruno Haible  <bruno@clisp.org>
67763
67764         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67765         macros.
67766         Reported by Eric Blake.
67767
67768 2006-08-28  Bruno Haible  <bruno@clisp.org>
67769
67770         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67771         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67772         * lib/vasprintf.c: Include errno.h, limits.h.
67773         (EOVERFLOW): New fallback definition.
67774         (vasprintf): Test here whether the string length is > INT_MAX.
67775         * lib/vsnprintf.c: Include errno.h, limits.h.
67776         (EOVERFLOW): New fallback definition.
67777         (vsnprintf): Fix bug when generated string was too long for the buffer.
67778         Test here whether the string length is > INT_MAX.
67779
67780 2006-08-28  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/inttypes_.h (SCNX*): Remove definitions.
67783         Reported by Eric Blake.
67784
67785 2006-08-28  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/c-strstr.h: New file, from GNU gettext.
67788         * lib/c-strstr.c: New file, from GNU gettext.
67789
67790 2006-08-28  Bruno Haible  <bruno@clisp.org>
67791
67792         * gnulib-tool: Reorder some statements.
67793
67794 2006-08-28  Bruno Haible  <bruno@clisp.org>
67795
67796         * gnulib-tool: New option --makefile-name.
67797         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67798         $makefile_name.
67799         (func_import): Write $makefile_name to the cache file, and read it from
67800         there unless explicitly specified. Use $makefile_name as file name
67801         instead of Makefile.am. Adjust the recommendations accordingly.
67802
67803 2006-08-28  Bruno Haible  <bruno@clisp.org>
67804
67805         * gnulib-tool (func_verify_module): Check against misapplying patch.
67806
67807 2006-08-28  Bruno Haible  <bruno@clisp.org>
67808
67809         * gnulib-tool (func_relativize, func_relconcat): New functions.
67810         Give an error if --local-dir is given with --update.
67811         Remove trailing slashes from $local_gnulib_dir.
67812         (func_import): Store the relativized $local_gnulib_dir in
67813         gnulib-cache.m4, and read it from there if not specified explicitly.
67814
67815 2006-08-28  Bruno Haible  <bruno@clisp.org>
67816
67817         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67818         is the current directory. Respect also $local_gnulib_dir.
67819
67820 2006-08-28  Bruno Haible  <bruno@clisp.org>
67821             Simon Josefsson  <jas@extundo.com>
67822
67823         BeOS portability.
67824         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67825
67826 2006-08-27  Jim Meyering  <jim@meyering.net>
67827
67828         * doc/visibility.texi: Remove duplicate word: "pointer".
67829
67830 2006-08-26  Bruno Haible  <bruno@clisp.org>
67831
67832         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67833         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67834         (Makefile.am): Create inttypes.h from inttypes_.h.
67835         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67836
67837         * modules/imaxabs: New file.
67838
67839         * modules/imaxdiv: New file.
67840
67841 2006-08-26  Bruno Haible  <bruno@clisp.org>
67842
67843         * m4/inttypes.m4: New file.
67844         * m4/_inttypes_h.m4: Remove file.
67845         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67846         PRI_MACROS_BROKEN.
67847         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67848
67849         * m4/imaxabs.m4: New file.
67850
67851         * m4/imaxdiv.m4: New file.
67852
67853 2006-08-26  Bruno Haible  <bruno@clisp.org>
67854
67855         * lib/inttypes_.h: New file.
67856         * lib/inttypes.h: Remove file.
67857         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67858
67859         * lib/imaxabs.c: New file.
67860
67861         * lib/imaxdiv.c: New file.
67862
67863 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67864
67865         New config-h module, so that "make" output needn't be cluttered
67866         by -DHAVE_CONFIG_H.
67867         * MODULES.html.sh (Support for building libraries and executables):
67868         Add config-h.
67869         * modules/config-h: New file.
67870         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67871         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67872         the config-h module is used.
67873
67874         New configmake module, so that "make" output needn't be cluttered
67875         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67876         * MODULES.html.sh (Support for building libraries and executables):
67877         Add configmake.
67878         * modules/configmake: New file.
67879
67880 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/config-h.m4: New file.
67883
67884 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67885
67886         * config/srclist.txt: Add elisp-comp.
67887
67888 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67889
67890         * MODULES.html.sh (Support for building libraries and executables):
67891         Add elisp-comp.
67892         * build-aux/elisp-comp: New file.
67893         * modules/elisp-comp: New file.
67894
67895 2006-08-24  Bruno Haible  <bruno@clisp.org>
67896
67897         * gnulib-tool (func_create_testdir): Use non-default values of
67898         sourcebase and m4base.
67899
67900 2006-08-24  Bruno Haible  <bruno@clisp.org>
67901
67902         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67903         HTML structure.
67904
67905 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67906
67907         * modules/openat (Depends-on): Add lchown.
67908
67909 2006-08-23  Bruno Haible  <bruno@clisp.org>
67910
67911         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67912         of gl_LOCK_EARLY instead of gl_LOCK.
67913
67914 2006-08-23  Bruno Haible  <bruno@clisp.org>
67915
67916         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67917         on OSF/1 to no.
67918         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67919
67920 2006-08-23  Bruno Haible  <bruno@clisp.org>
67921
67922         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67923         as unusable.
67924
67925         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67926         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67927         (gl_LOCK): New macro.
67928
67929 2006-08-22  Simon Josefsson  <jas@extundo.com>
67930
67931         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67932         to md5 module.
67933
67934 2006-08-22  Simon Josefsson  <jas@extundo.com>
67935
67936         * MODULES.html.sh: Add "Support for maintaining and release
67937         projects".
67938
67939         * build-aux/gnupload: New file, from coreutils.
67940
67941 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         Avoid the need for AC_LIBSOURCES in m4 macros.
67944         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67945         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67946         * modules/check-version (EXTRA_DIST): Add check-version.h.
67947         * modules/crc (EXTRA_DIST): Add crc.h.
67948         * modules/des (EXTRA_DIST): Add des.h.
67949         * modules/gc (EXTRA_DIST): Add gc.h.
67950         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67951         * modules/getline (EXTRA_DIST): Add getline.h.
67952         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67953         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67954         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67955         * modules/md2 (EXTRA_DIST): Add md2.h.
67956         * modules/md4 (EXTRA_DIST): Add md4.h.
67957         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67958         * modules/read-file (EXTRA_DIST): Add read-file.h.
67959         * modules/readline (EXTRA_DIST): Add readline.h.
67960         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67961         rijndael-api-fst.h.
67962
67963 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67964
67965         * m4/rijndael.m4 (gl_ARCFOUR):
67966         * m4/arctwo.m4 (gl_ARCTWO):
67967         * m4/check-version.m4 (gl_CHECK_VERSION):
67968         * m4/crc.m4 (gl_CRC):
67969         * m4/des.m4 (gl_DES):
67970         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67971         * m4/gc.m4 (gl_GC):
67972         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67973         * m4/getline.m4 (gl_FUNC_GETLINE):
67974         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67975         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67976         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67977         * m4/md2.m4 (gl_MD2):
67978         * m4/md4.m4 (gl_MD4):
67979         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67980         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67981         * m4/readline.m4 (gl_FUNC_READLINE):
67982         * m4/rijndael.m4 (gl_RIJNDAEL):
67983         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67984         to get the necessary .h files and whatnot.
67985
67986 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67989         gnulib rather than the other way around.
67990         * config/srclistvars.sh (COREUTILS): Remove.
67991
67992 2006-08-22  Jim Meyering  <jim@meyering.net>
67993
67994         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67995
67996         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67997
67998 2006-08-22  Eric Blake  <ebb9@byu.net>
67999
68000         * modules/regexprops-generic: New file.
68001         * MODULES.html.sh (Support for building documentation): List it.
68002
68003 2006-08-22  Eric Blake  <ebb9@byu.net>
68004
68005         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68006         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68008         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68009
68010 2006-08-22  Bruno Haible  <bruno@clisp.org>
68011
68012         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68013         and lib_LTLIBRARIES like the other lib_* variables.
68014
68015 2006-08-22  Bruno Haible  <bruno@clisp.org>
68016
68017         * build-aux/x-to-1.in: New file, from GNU gettext.
68018
68019 2006-08-22  Bruno Haible  <bruno@clisp.org>
68020
68021         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68022         <utmpx.h> exists.
68023
68024 2006-08-22  Bruno Haible  <bruno@clisp.org>
68025
68026         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68027         <utmpx.h> exists.
68028
68029 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         BeOS portability.
68032         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68033         exist.
68034         Problem reported by Bruno Haible.
68035
68036 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68037
68038         Avoid the need for AC_LIBSOURCES in m4 macros.
68039         * modules/acl (EXTRA_DIST): Add acl.h.
68040         * modules/argmatch (Files): Add m4/argmatch.m4.
68041         (configure.ac): Add gl_ARGMATCH.
68042         (EXTRA_DIST): Renamed from lib_SOURCES, for
68043         consistency with the other modules.  Remove argmatch.c.
68044         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68045         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68046         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68047         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68048         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68049         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68050         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68051         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68052         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68053         * modules/closeout (EXTRA_DIST): Add closeout.h.
68054         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68055         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68056         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68057         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68058         dirname.h; remove basename.c and stripslash.c.
68059         * modules/exclude (EXTRA_DIST): Add exclude.h.
68060         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68061         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68062         * modules/file-type (EXTRA_DIST): Add file-type.h.
68063         * modules/filemode (EXTRA_DIST): Add filemode.h.
68064         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68065         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68066         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68067         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68068         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68069         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68070         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68071         * modules/getdate (EXTRA_DIST): Add getdate.c.
68072         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68073         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68074         * modules/getpass (EXTRA_DIST): Add getpass.h.
68075         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68076         * modules/group-member (EXTRA_DIST): Add group-member.h.
68077         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68078         * modules/hash (EXTRA_DIST): Add hash.h.
68079         * modules/human (EXTRA_DIST): Add human.h.
68080         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68081         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68082         * modules/lchown (EXTRA_DIST): Add lchown.h.
68083         * modules/long-options (EXTRA_DIST): Add long-options.h.
68084         * modules/lstat (EXTRA_DIST): Add lstat.h.
68085         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68086         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68087         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68088         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68089         * modules/memxor (EXTRA_DIST): Add memxor.h.
68090         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68091         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68092         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68093         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68094         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68095         * modules/physmem (EXTRA_DIST): Add physmem.h.
68096         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68097         * modules/posixver (EXTRA_DIST): Add posixver.h.
68098         * modules/quote (EXTRA_DIST): Add quote.h.
68099         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68100         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68101         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68102         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68103         regex_internal.h regexec.c.
68104         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68105         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68106         * modules/same (EXTRA_DIST): Add same.h.
68107         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68108         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68109         * modules/savedir (EXTRA_DIST): Add savedir.h.
68110         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68111         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68112         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68113         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68114         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68115         * modules/strdup (EXTRA_DIST): Add strdup.h.
68116         * modules/strftime (EXTRA_DIST): Add strftime.h.
68117         * modules/strndup (EXTRA_DIST): Add strndup.h.
68118         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68119         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68120         * modules/time_r (EXTRA_DIST): Add time_r.h.
68121         * modules/timespec (EXTRA_DIST): Add timespec.h.
68122         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68123         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68124         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68125         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68126         * modules/userspec (EXTRA_DIST): Add userspec.h.
68127         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68128         * modules/utimens (EXTRA_DIST): Add utimens.h.
68129         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68130         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68131         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68132         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68133         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68134         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68135         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68136         * modules/yesno (EXTRA_DIST): Add yesno.h.
68137
68138 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68141
68142         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68143         * m4/dev-ino.m4, same-inode.m4: Remove.
68144
68145         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68146         * m4/acl.m4 (AC_FUNC_ACL):
68147         * m4/backupfile.m4 (gl_BACKUPFILE):
68148         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68149         * m4/canon-host.m4 (gl_CANON_HOST):
68150         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68151         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68152         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68153         * m4/cloexec.m4 (gl_CLOEXEC):
68154         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68155         * m4/closeout.m4 (gl_CLOSEOUT):
68156         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68157         * m4/dirname.m4 (gl_DIRNAME):
68158         * m4/exclude.m4 (gl_EXCLUDE):
68159         * m4/exitfail.m4 (gl_EXITFAIL):
68160         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68161         * m4/file-type.m4 (gl_FILE_TYPE):
68162         * m4/filemode.m4 (gl_FILEMODE):
68163         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68164         * m4/fpending.m4 (gl_FUNC_FPENDING):
68165         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68166         * m4/fts.m4 (gl_FUNC_FTS):
68167         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68168         * m4/getdate.m4 (gl_GETDATE):
68169         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68170         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68171         * m4/getpass.m4 (gl_FUNC_GETPASS):
68172         * m4/gettime.m4 (gl_GETTIME):
68173         * m4/getugroups.m4 (gl_GETUGROUPS):
68174         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68175         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68176         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68177         * m4/hash.m4 (gl_HASH):
68178         * m4/idcache.m4 (gl_IDCACHE):
68179         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68180         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68181         * m4/long-options.m4 (gl_LONG_OPTIONS):
68182         * m4/lstat.m4 (gl_FUNC_LSTAT):
68183         * m4/md5.m4 (gl_MD5):
68184         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68185         * m4/memcoll.m4 (gl_MEMCOLL):
68186         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68187         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68188         * m4/memxor.m4 (gl_MEMXOR):
68189         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68190         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68191         * m4/modechange.m4 (gl_MODECHANGE):
68192         * m4/mountlist.m4 (gl_MOUNTLIST):
68193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68194         * m4/openat.m4 (gl_FUNC_OPENAT):
68195         * m4/pathmax.m4 (gl_PATHMAX):
68196         * m4/physmem.m4 (gl_PHYSMEM):
68197         * m4/posixtm.m4 (gl_POSIXTM):
68198         * m4/posixver.m4 (gl_POSIXVER):
68199         * m4/quote.m4 (gl_QUOTE):
68200         * m4/quotearg.m4 (gl_QUOTEARG):
68201         * m4/readtokens.m4 (gl_READTOKENS):
68202         * m4/readutmp.m4 (gl_READUTMP):
68203         * m4/regex.m4 (gl_REGEX):
68204         * m4/safe-read.m4 (gl_SAFE_READ):
68205         * m4/safe-write.m4 (gl_SAFE_WRITE):
68206         * m4/same.m4 (gl_SAME):
68207         * m4/save-cwd.m4 (gl_SAVE_CWD):
68208         * m4/savedir.m4 (gl_SAVEDIR):
68209         * m4/settime.m4 (gl_SETTIME):
68210         * m4/sha1.m4 (gl_SHA1):
68211         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68212         * m4/stat-macros.m4 (gl_STAT_MACROS):
68213         * m4/stat-time.m4 (gl_STAT_TIME):
68214         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68215         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68216         * m4/strdup.m4 (gl_FUNC_STRDUP):
68217         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68218         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68219         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68220         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68221         * m4/time_r.m4 (gl_TIME_R):
68222         * m4/timespec.m4 (gl_TIMESPEC):
68223         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68224         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68225         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68226         * m4/userspec.m4 (gl_USERSPEC):
68227         * m4/utimecmp.m4 (gl_UTIMECMP):
68228         * m4/utimens.m4 (gl_UTIMENS):
68229         * m4/xalloc.m4 (gl_XALLOC):
68230         * m4/xgetcwd.m4 (gl_XGETCWD):
68231         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68232         * m4/xreadlink.m4 (gl_XREADLINK):
68233         * m4/xstrtod.m4 (gl_XSTRTOD):
68234         * m4/yesno.m4 (gl_YESNO):
68235         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68236         to get the necessary .h files and whatnot.
68237
68238 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68239             Bruno Haible  <bruno@clisp.org>
68240
68241         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68242         /bin/sh understanding of '!' conditional negation.
68243
68244 2006-08-21  Jim Meyering  <jim@meyering.net>
68245
68246         * modules/openat (Depends-on): Really alphabetize.
68247
68248         * modules/acl (Depends-on): Add error and quote.
68249
68250         * check-module (find_included_lib_files): Add at-func.c to the
68251         ok-to-include-more-than-once white list.
68252
68253         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68254
68255 2006-08-21  Bruno Haible  <bruno@clisp.org>
68256
68257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68258         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68259         Reported by Martin Lambers <marlam@marlam.de>.
68260
68261 2006-08-21  Bruno Haible  <bruno@clisp.org>
68262
68263         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68264         specify an installation location, don't emit a noinst_LIBRARIES or
68265         noinst_LTLIBRARIES assignment.
68266
68267 2006-08-21  Bruno Haible  <bruno@clisp.org>
68268
68269         BeOS portability.
68270         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68271         BeOS has mbrtowc() but no <wctype.h>.
68272
68273 2006-08-21  Bruno Haible  <bruno@clisp.org>
68274
68275         BeOS portability.
68276         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68277         exist.
68278
68279 2006-08-21  Bruno Haible  <bruno@clisp.org>
68280
68281         BeOS portability.
68282         * lib/mbchar.h: Include <wctype.h> only if it exists.
68283
68284 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         Remove files that are no longer needed by their respective modules.
68287         * m4/obstack.m4: Remove.
68288         * m4/strerror_r.m4: Remove.
68289         * m4/uint32_t.m4: Remove.
68290         * m4/uintptr_t.m4: Remove.
68291         * m4/ullong_max.m4: Remove.
68292         * m4/xstrtoimax.m4: Remove.
68293         * m4/xstrtoumax.m4: Remove.
68294
68295         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68296         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68297         dependencies now capture this.
68298
68299         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68300         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68301         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68302         * m4/human.m4 (gl_HUMAN): Likewise.
68303         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68304         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68305
68306         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68307
68308         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68309         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68310         stdint.
68311         * m4/human.m4 (gl_HUMAN): Likewise.
68312         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68313         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68314         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68315         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68316         * m4/xstrtol (gl_XSTRTOL): Likewise.
68317
68318         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68319         AC_TYPE_LONG_LONG_INT.
68320         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68321         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68322         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68323         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68324
68325         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68326         on stdbool.
68327
68328         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68329         (gl_PREREQ_XSTRTOUL): Remove.
68330
68331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68332
68333         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68334         mode.
68335
68336 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         Add and change modules to make it easier for coreutils to use
68339         gnulib-tool.
68340         * modules/backupfile (Files): Remove m4/d-ino.m4.
68341         (Depends-on): Add d-ino.
68342         * modules/cycle-check (Depends-on): Add stdint.
68343         (lib_SOURCES): Add cycle-check.h.
68344         * modules/d-ino: New module.
68345         * modules/d-type: New module.
68346         * modules/error (Files): Remove m4/strerror_r.m4.
68347         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68348         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68349         m4/inttypes_h.m4, m4/uintmax_t.m4.
68350         (Depends-on): Add stdint.
68351         (lib_SOURCES): Add fsusage.h.
68352         * modules/getcwd (Files): Remove d-ino.m4.
68353         (Depends-on): Add d-ino.
68354         * modules/getndelim2 (Depends-on): Add stdint.
68355         * modules/glob (Files): Remove m4/d-type.m4.
68356         (Depends-on): Add d-type.
68357         * modules/host-os: New module.
68358         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68359         m4/inttypes_h.m4, m4/uintmax_t.m4.
68360         * Depends-on: Add stdint.
68361         (lib_SOURCES): Add human.h.
68362         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68363         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68364         m4/uintmax_t.m4, m4/ulonglong.m4.
68365         (Depends-on): Add stdint.
68366         (EXTRA_DIST): Add inttostr.h.
68367         * modules/lchmod: New module.
68368         * modules/link-follow: New module.
68369         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68370         (Depends-on): Add lchmod.
68371         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68372         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68373         (Depends-on): Add stdint.
68374         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68375         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68376         (Depends-on): Add stdint.
68377         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68378         * modules/perl: New module.
68379         * modules/regex (Depends-on): Add stdint.
68380         * modules/rmdir-errno: New module.
68381         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68382         m4/intmax_t.m4.
68383         (Depends-on): Add stdint.
68384         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68385         m4/uintmax_t.m4.
68386         (Depends-on): Add stdint.
68387         * modules/unlink-busy: New module.
68388         * modules/utimecmp (Depends-on): Add stdint.
68389         * modules/uptime: New module.
68390         * modules/winsz-ioctl: New module.
68391         * modules/winsz-termios: New module.
68392         * modules/xnanosleep (Depends-on): Add nanosleep.
68393         * modules/ullong_max: Remove.
68394         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68395         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68396         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68397         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68398         (Depends-on): Add inttypes.
68399         (lib_SOURCES): Add xstrtol.h.
68400         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68401         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68402         * MODULES.html.sh: Move 'assert' into the assert section.
68403         Move 'dummy' into the linking section.
68404         Remove ullong_max.
68405         Add section for compatibility checks for POSIX:2001 functions,
68406         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68407         winsz-ioctl, and winsz-termios into it.
68408         Add lchmod.
68409         Add top-level Misc section and put host-os, perl, and uptime
68410         into it.
68411
68412 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68415         now assume the stdint module.  Do not include inttypes.h.
68416         * lib/fsusage.h: Likewise.
68417         * lib/getndelim2.c: Likewise.
68418         * lib/human.h: Likewise.
68419         * lib/inttostr.h: Likewise.
68420         * lib/obstack.c: Likewise.
68421         * lib/regex_internal.h: Likewise.
68422         * lib/tempname.c: Likewise.
68423         * lib/utimecmp.c: Likewise.
68424         * lib/xstrtol.h: Likewise.
68425
68426         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68427
68428         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68429         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68430         * lib/xtime.h: Likewise.
68431
68432 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * modules/openat (Files): Add lib/fchmodat.c.
68435         Fixes problem reported by Jay Youngman.
68436
68437 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68440         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68441
68442 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68443             Bruno Haible  <bruno@clisp.org>
68444
68445         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68446         and is a script that invokes bison. Tighten the code. Add comments.
68447
68448 2006-08-18  Jim Meyering  <jim@meyering.net>
68449
68450         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68451         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68452         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68453         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68454
68455 2006-08-18  Bruno Haible  <bruno@clisp.org>
68456
68457         * modules/bison-i18n: New file.
68458         * MODULES.html.sh (Internationalization functions): Add it.
68459
68460 2006-08-18  Bruno Haible  <bruno@clisp.org>
68461
68462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68463         sys/statvfs.h. When getmntinfo was found, check its declaration and
68464         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68465
68466 2006-08-18  Bruno Haible  <bruno@clisp.org>
68467
68468         * m4/bison-i18n.m4: New file, from bison.
68469
68470 2006-08-18  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68473         (ME_DUMMY): Treat "kernfs" as a dummy.
68474         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68475
68476 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         Update from coreutils.
68479
68480         2006-08-15  Jim Meyering  <jim@meyering.net>
68481
68482         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68483
68484         2006-01-17  Jim Meyering  <jim@meyering.net>
68485
68486         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68487
68488         2006-01-11  Jim Meyering  <jim@meyering.net>
68489
68490         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68491         Check for the lchmod function.
68492
68493 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68494
68495         Update from coreutils.
68496
68497         * lib/__fpending.h: Add copyright notice.
68498         * lib/fprintftime.h: Likewise.
68499         * lib/savedir.c: Use (C) in copyright notice.
68500         * lib/savedir.h: Likewise.
68501
68502         2006-08-15  Jim Meyering  <jim@meyering.net>
68503
68504         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68505         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68506         in support of the EXPECTED_ERRNO macro.
68507         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68508         definitions.  Instead, define the appropriate symbols and include
68509         "at-func.c".
68510         * lib/mkdirat.c (mkdirat): Likewise.
68511         * lib/fchmodat.c (fchmodat): Likewise.
68512         (ENOSYS): Remove definition.
68513         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68514         it.  Don't include "unistd--.h" -- it wasn't ever used.
68515
68516         2006-01-17  Jim Meyering  <jim@meyering.net>
68517
68518         Rewrite fts.c not to change the current working directory,
68519         by using openat, fstatat, fdopendir, etc..
68520
68521         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68522         (HAVE_OPENAT_SUPPORT): Define.
68523         [_LIBC] (fchdir): Don't undef or define; no longer used.
68524         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68525         Now, this `function' always succeeds, and consumes its file descriptor
68526         parameter -- so callers must not close such FDs.  Update callers.
68527         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68528         (diropen): Add parameter, SP.  Adjust all callers.
68529         Implement using diropen_fd, rather than open.
68530         (fts_open): Initialize new member, fts_cwd_fd.
68531         Remove fts_rft-setting code.
68532         (fts_close): Close fts_cwd_fd, if necessary.
68533         (__opendir2): Define in terms of opendir or opendirat,
68534         depending on whether the FST_NOCHDIR flag is set.
68535         (fts_build): Since fts_safe_changedir consumes its FD, and since
68536         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68537         and close the dup'd file descriptor upon failure.
68538         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68539         (fts_safe_changedir): Tweak semantics to reflect that this function
68540         now calls cwd_advance_fd and hence consumes its FD argument.
68541         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68542         [struct FTS] (fts_rft): Remove now-unused member.
68543         [struct FTS] (fts_cycle.state): Improve comment.
68544
68545         * lib/openat.c (openat_needs_fchdir): New function.
68546         * lib/openat.h (openat_needs_fchdir): Declare it.
68547
68548 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68551         Problem and fix reported by Pádraig Brady in
68552         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68553
68554 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68555
68556         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68557
68558 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68559
68560         * lib/memcoll.c (memcoll): Optimize for the common case where the
68561         arguments are bytewise equal.
68562
68563 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * doc/regexprops-generic.texi: Add a copyright notice.
68566
68567 2006-08-15  Bruno Haible  <bruno@clisp.org>
68568
68569         * modules/tmpdir (License): Change to LGPL.
68570
68571 2006-08-15  Bruno Haible  <bruno@clisp.org>
68572
68573         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68574         module.
68575
68576 2006-08-14  Simon Josefsson  <jas@extundo.com>
68577
68578         * config/srclist.txt: Add gnupload.
68579
68580 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68581
68582         Change copyright notice from LGPL 2 to GPL 2, since that's the
68583         standard form used in the gnulib repository.
68584         * tests/test-lock.c: Likewise.
68585         * tests/test-stdint.c: Likewise.
68586         * tests/test-tls.c: Likewise.
68587
68588         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68589         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68590         Add copyright notice.
68591
68592         * check-module: Add copyright notice.  Output a copyright
68593         notice if "--version" is specified.
68594         * modules/COPYING: New file.
68595         * tests/test-getaddrinfo.c: Add copyright notice.
68596         * tests/test-verify.c: Likewise.
68597
68598 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         Change copyright notice from LGPL 2 to GPL 2, since that's the
68601         standard form used in the gnulib repository.
68602         * lib/lock.c: LGPL -> GPL.
68603         * lib/lock.h: Likewise.
68604         * lib/strnlen1.c: Likewise.
68605         * lib/strnlen1.h: Likewise.
68606         * lib/tls.c: Likewise.
68607         * lib/tls.h: Likewise.
68608         * lib/tmpdir.c: Likewise.
68609
68610         * lib/TODO: Remove; this belongs only in coreutils.
68611
68612 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         Add copyright notices to long-enough files that lack them, since
68615         otherwise the files aren't clearly free.  Use the same notice that
68616         getdate.texi already uses.
68617         * doc/alloca-opt.texi: Add copyright notice.
68618         * doc/alloca.texi: Likewise.
68619         * doc/ctime.texi: Likewise.
68620         * doc/functions.texi: Likewise.
68621         * doc/gcd.texi: Likewise.
68622         * doc/gnulib-tool.texi: Likewise.
68623         * doc/inet_ntoa.texi: Likewise.
68624         * doc/visibility.texi: Likewise.
68625
68626         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68627         * doc/quote.texi: Add copyright notice.
68628
68629         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68630         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68631         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68632         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68633         is now obsolete, and give a pointer to the Sun list.
68634         Add copyright notice.
68635
68636 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * config/srclistvars.sh: Add copyright notice.
68639
68640 2006-08-14  Eric Blake  <ebb9@byu.net>
68641
68642         Import the following change from libc:
68643
68644         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68645
68646         Upstream bug 2997.
68647         * lib/misc/error.c: Add space between program name and message if file
68648         name is missing.
68649
68650 2006-08-12  Karl Berry  <karl@gnu.org>
68651
68652         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68653         remove, these originate in gnulib now.
68654
68655 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68656
68657         * doc/Makefile (standards.info standards.html standards.dvi):
68658         Also depend on make-stds.texi.
68659
68660 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68661
68662         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68663         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68664
68665         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68666         in wchar_t.  Problem reported by Eric Blake.
68667
68668         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68669         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68670         Also, help the compiler to keep LEN in a register.
68671
68672 2006-08-11  Eric Blake  <ebb9@byu.net>
68673
68674         * users.txt: Sort.  Add tar.
68675
68676 2006-08-11  Bruno Haible  <bruno@clisp.org>
68677
68678         * users.txt: New file.
68679
68680 2006-08-11  Bruno Haible  <bruno@clisp.org>
68681
68682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68683         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68684
68685 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * modules/snprintf (Depends-on): Remove minmax.
68688         (Maintainer): Add self and Bruno.
68689
68690 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68693         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68694         (EOVERFLOW): Define if the system does not.
68695         Do not include "minmax.h"; it wasn't used.
68696         (snprintf): Don't assume size_t promotes to an unsigned type.
68697         Fix bug when generated string was too long for the buffer: the
68698         buffer's contents are supposed to be the initial prefix of the
68699         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68700         exceeds INT_MAX; do the check ourselves.
68701
68702         Import the following changes from libc:
68703
68704         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68705
68706         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68707         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68708         set wc to the byte which couldn't be converted.
68709         (re_string_reconstruct): Don't clear valid_raw_len before calling
68710         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68711         tip_context using re_string_context_at.
68712
68713         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68714
68715         * lib/posix/regex.h: g++ still cannot handled [restrict].
68716
68717         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68718
68719         * lib/posix/regex.h: Remove special handling for VMS.
68720
68721 2006-08-10  Jim Meyering  <jim@meyering.net>
68722
68723         * modules/same-inode: New module.
68724         * modules/dev-ino: New module.
68725         * modules/cycle-check: Depend on these modules, rather than simply
68726         including their .h files.
68727         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68728         required via m4/cycle-check.m4.
68729         * modules/same: Depend on new same-inode module, rather than
68730         including same-inode.h.
68731         * modules/chdir-safer: New file.
68732
68733         * modules/chown (Depends-on): Add stat-macros.
68734
68735 2006-08-10  Jim Meyering  <jim@meyering.net>
68736
68737         * m4/cycle-check.m4: New file.
68738         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68739         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68740
68741 2006-08-10  Eric Blake  <ebb9@byu.net>
68742
68743         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68744         in from original proposal.
68745
68746 2006-08-10  Eric Blake  <ebb9@byu.net>
68747         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68748
68749         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68750         namespace.
68751
68752 2006-08-10  Bruno Haible  <bruno@clisp.org>
68753
68754         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68755         as well.
68756
68757 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68758
68759         Sync from coreutils.
68760
68761         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68762
68763         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68764         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68765
68766 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * modules/restrict: Remove; no longer needed now that we assume
68769         Autoconf 2.59 or later.
68770         * MODULES.html.sh: Remove 'restrict'.
68771         * modules/argp (Depends-on): Remove 'restrict'.
68772         * modules/base64 (Depends-on): Likewise.
68773         * modules/gc (Depends-on): Likewise.
68774         * modules/getaddrinfo (Depends-on): Likewise.
68775         * modules/glob (Depends-on): Likewise.
68776         * modules/inet_ntop (Depends-on): Likewise.
68777         * modules/inet_pton (Depends-on): Likewise.
68778         * modules/memxor (Depends-on): Likewise.
68779         * modules/regex (Depends-on): Likewise.
68780         * modules/strtok_r (Depends-on): Likewise.
68781         * modules/time_r (Depends-on): Likewise.
68782
68783 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68786         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68787         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68788         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68789         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68790         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68791         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68792         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68793
68794         Merge from coreutils.
68795         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68796         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68797         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68798         * m4/time_r.m4 (gl_TIME_R): Likewise.
68799
68800 2006-08-09  Karl Berry  <karl@gnu.org>
68801
68802         * config/srclist.txt: no more gettext-tools, per Bruno.
68803
68804 2006-08-08  Eric Blake  <ebb9@byu.net>
68805
68806         * modules/verror: New module.
68807         * MODULES.html.sh: Document it.
68808
68809 2006-08-08  Eric Blake  <ebb9@byu.net>
68810
68811         * lib/verror.h, lib/verror.c: New files.
68812
68813 2006-08-08  Eric Blake  <ebb9@byu.net>
68814
68815         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68816         verror_at_line output complies with GNU Coding Standards even when
68817         file is NULL.
68818
68819 2006-08-07  Bruno Haible  <bruno@clisp.org>
68820
68821         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68822         versions of AIX.
68823         Reported by Ralf Wildenhues.
68824
68825 2006-08-07  Bruno Haible  <bruno@clisp.org>
68826
68827         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68828         in an AC_DEFUN. Needed so that the autoconf snippets can use
68829         AC_REQUIRE.
68830
68831 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68832
68833         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68834         Initialize pkgdata_DATA.
68835         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68836         overriding it.
68837
68838 2006-08-06  Eric Blake  <ebb9@byu.net>
68839
68840         * lib/error.h: Fold in some upstream changes from glibc.
68841         * lib/error.c: Likewise.
68842
68843 2006-08-04  Bruno Haible  <bruno@clisp.org>
68844
68845         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68846         Make the mostlyclean-local rule depend on mostlyclean-generic.
68847         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68848
68849 2006-07-31  Bruno Haible  <bruno@clisp.org>
68850
68851         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68852         <stdlib.h>, <string.h>.
68853
68854 2006-07-30  Bruno Haible  <bruno@clisp.org>
68855
68856         * modules/readlink (License): Change to LGPL.
68857
68858 2006-07-30  Bruno Haible  <bruno@clisp.org>
68859
68860         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68861         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68862         set PKGDATADIR to point to it.
68863
68864 2006-07-30  Bruno Haible  <bruno@clisp.org>
68865
68866         * modules/csharpexec (configure.ac): Comment out macro invocation.
68867         * modules/javaexec (configure.ac): Likewise.
68868         * modules/javacomp-script (configure.ac): Likewise.
68869
68870         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68871
68872 2006-07-30  Bruno Haible  <bruno@clisp.org>
68873
68874         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68875         linked-list.
68876
68877 2006-07-30  Bruno Haible  <bruno@clisp.org>
68878
68879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68880
68881 2006-07-30  Bruno Haible  <bruno@clisp.org>
68882
68883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68884         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68885         get removed.
68886
68887 2006-07-29  Bruno Haible  <bruno@clisp.org>
68888
68889         Make it possible for gnulib-tool to work with locally modified or
68890         augmented gnulib repositories.
68891         * gnulib-tool (func_usage): Document --local-dir option.
68892         (local_gnulib_dir): New variable.
68893         Handle --local-dir option.
68894         (func_lookup_file): New function.
68895         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68896         (func_get_description, func_get_filelist, func_get_description,
68897         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68898         func_get_automake_snippet, func_get_include_directive,
68899         func_get_license, func_get_maintainer): Use func_lookup_file.
68900         (func_import, func_create_testdir): Use func_lookup_file.
68901
68902 2006-07-29  Bruno Haible  <bruno@clisp.org>
68903
68904         * modules/setenv (Depends-on): Add unistd.
68905
68906 2006-07-29  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68909
68910 2006-07-29  Bruno Haible  <bruno@clisp.org>
68911
68912         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68913
68914 2006-07-29  Bruno Haible  <bruno@clisp.org>
68915
68916         * gnulib-tool (import, update): If there is no Makefile.am, look at
68917         aclocal.m4, instead of bailing out.
68918
68919 2006-07-29  Bruno Haible  <bruno@clisp.org>
68920
68921         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68922         Categorize the options by when they are useful.
68923
68924 2006-07-29  Bruno Haible  <bruno@clisp.org>
68925
68926         * gnulib-tool (func_usage): Document option --no-libtool.
68927         Handle option --no-libtool.
68928         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68929         for changed semantics of $libtool variable.
68930         (func_import): Likewise. If libtool is not used, show this through
68931         an option --no-libtool.
68932         (func_create_testdir): Update.
68933
68934 2006-07-29  Bruno Haible  <bruno@clisp.org>
68935
68936         * gnulib-tool (func_import): Extend error message about missing
68937         --doc-base.
68938
68939 2006-07-29  Bruno Haible  <bruno@clisp.org>
68940
68941         * gnulib-tool (func_import): Don't create the $docbase directory if
68942         there is no file to store there.
68943
68944 2006-07-29  Bruno Haible  <bruno@clisp.org>
68945
68946         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68947         relevant, look for configure.ac there, not in the current directory.
68948         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68949
68950 2006-07-29  Bruno Haible  <bruno@clisp.org>
68951
68952         * gnulib-tool (SORT): New variable.
68953         (func_usage): Undocument --assume-autoconf option.
68954         Remove --assume-autoconf option handling.
68955         (autoconf_minversion): Determine from the contents of configure.ac.
68956         (func_import): Remove autoconf_minversion handling.
68957         Suggested by Eric Blake.
68958
68959 2006-07-29  Bruno Haible  <bruno@clisp.org>
68960
68961         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68962
68963 2006-07-29  Bruno Haible  <bruno@clisp.org>
68964
68965         * config/srclist.txt (*setenv.[ch]): Remove rules.
68966
68967 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68968
68969         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68970
68971 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68972
68973         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68974         arpa/inet.h.
68975
68976 2006-07-28  Simon Josefsson  <jas@extundo.com>
68977
68978         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68979         * modules/inet_pton (Depends-on): Likewise.
68980
68981 2006-07-28  Simon Josefsson  <jas@extundo.com>
68982
68983         * m4/netinet_in_h.m4: New file.
68984
68985 2006-07-28  Simon Josefsson  <jas@extundo.com>
68986
68987         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68988         #include's.
68989
68990 2006-07-28  Simon Josefsson  <jas@extundo.com>
68991
68992         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68993         #include's.
68994
68995 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68998         setgid on directories only if they set these bits.
68999         * lib/modechange.h: Remove obsolete comment about masks.
69000
69001 2006-07-28  Eric Blake  <ebb9@byu.net>
69002
69003         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69004         macro expansion.
69005
69006 2006-07-28  Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69009
69010 2006-07-28  Bruno Haible  <bruno@clisp.org>
69011
69012         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69013
69014 2006-07-28  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69017         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69018         Define fallbacks.
69019         Avoids link error on FreeBSD 4.x.
69020         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69021
69022         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69023         encoding.
69024         * lib/mbswidth.c (iswcntrl): Likewise.
69025
69026 2006-07-27  Bruno Haible  <bruno@clisp.org>
69027
69028         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69029         test.
69030
69031 2006-07-27  Bruno Haible  <bruno@clisp.org>
69032
69033         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69034         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69035         defined.
69036
69037 2006-07-26  Eric Blake  <ebb9@byu.net>
69038
69039         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69040
69041 2006-07-26  Eric Blake  <ebb9@byu.net>
69042
69043         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69044         like mingw that lack mkstemp.
69045         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69046         avoid compilation warning on mingw.
69047
69048 2006-07-26  Bruno Haible  <bruno@clisp.org>
69049
69050         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69051         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69052         INT_FAST*_MIN, INTPTR_MIN.
69053
69054 2006-07-25  Bruno Haible  <bruno@clisp.org>
69055
69056         * modules/version-etc (Depends-on): Add stdarg.
69057
69058 2006-07-25  Bruno Haible  <bruno@clisp.org>
69059
69060         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69061         complex commands.
69062
69063 2006-07-25  Bruno Haible  <bruno@clisp.org>
69064
69065         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69066         defined in <stdarg.h> or config.h.
69067
69068 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69071         (gl_STDIO_SAFER): Remove.
69072
69073 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * MODULES.html.sh (File stream based Input/Output):
69076         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69077         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69078         * modules/fopen-safer, modules/tmpfile-safer: New files.
69079         * modules/stdio-safer: Remove.
69080
69081 2006-07-24  Bruno Haible  <bruno@clisp.org>
69082
69083         * modules/tmpdir: New file.
69084         * MODULES.html.sh (File system functions): Add it.
69085
69086 2006-07-24  Bruno Haible  <bruno@clisp.org>
69087
69088         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69089         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69090
69091 2006-07-24  Bruno Haible  <bruno@clisp.org>
69092
69093         * modules/clean-temp: New file.
69094
69095 2006-07-24  Bruno Haible  <bruno@clisp.org>
69096
69097         * m4/tmpdir.m4: New file, from GNU gettext.
69098
69099 2006-07-24  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/tmpdir.h: New file, from GNU gettext.
69102         * lib/tmpdir.c: New file, from GNU gettext.
69103
69104 2006-07-24  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/clean-temp.h: New file, from GNU gettext.
69107         * lib/clean-temp.c: New file, from GNU gettext.
69108
69109 2006-07-23  Eric Blake  <ebb9@byu.net>
69110
69111         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69112         (Depends-on): Add binary-io.
69113
69114 2006-07-23  Eric Blake  <ebb9@byu.net>
69115
69116         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69117
69118 2006-07-23  Eric Blake  <ebb9@byu.net>
69119
69120         * lib/tmpfile-safer.c: New file.
69121         * lib/stdio-safer.h (fopen_safer): Add prototype.
69122         * lib/stdio--.h (tmpfile): Make safer.
69123
69124 2006-07-23  Bruno Haible  <bruno@clisp.org>
69125
69126         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69127         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69128         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69129         gl_linked_remove_at): Use it.
69130
69131 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69132         and Simon Josefsson <jas@extundo.com>
69133
69134         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69135
69136         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69137
69138 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * modules/close-stream: New file.
69141         * modules/closeout (Description): Make it clear that it exits
69142         with a diagnostic on error.
69143         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69144         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69145
69146 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69147
69148         * m4/close-stream.m4: New file.
69149
69150 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69151
69152         * lib/close-stream.c, lib/close-stream.h: New files.
69153
69154 2006-07-22  Bruno Haible  <bruno@clisp.org>
69155
69156         Merge from GNU gettext 0.15.
69157
69158         2006-05-01  Bruno Haible  <bruno@clisp.org>
69159
69160                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69161
69162         2006-07-22  Bruno Haible  <bruno@clisp.org>
69163
69164                 * modules/javaversion: New file.
69165                 * MODULES.html.sh (Java): Add javaversion.
69166
69167         2006-03-12  Bruno Haible  <bruno@clisp.org>
69168
69169                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69170
69171         2005-12-04  Bruno Haible  <bruno@clisp.org>
69172
69173                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69174                 (untested).
69175
69176         2006-06-21  Bruno Haible  <bruno@clisp.org>
69177
69178                 Avoid warnings from recent versions of mcs.
69179                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69180                 -o, -L, -r any more. Use options documented since mcs-1.0
69181                 instead. Similarly for -g.
69182
69183         2005-12-04  Bruno Haible  <bruno@clisp.org>
69184
69185                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69186                 .resources, not .resource.
69187
69188         2005-07-09  Bruno Haible  <bruno@clisp.org>
69189
69190                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69191                 add a .dll suffix.
69192                 Reported by Mark Junker <mjscod@gmx.de>.
69193
69194         2006-07-22  Bruno Haible  <bruno@clisp.org>
69195
69196                 * modules/gettext: Upgrade to gettext-0.15.
69197                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69198                 m4/visibility.m4.
69199                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69200
69201 2006-07-22  Bruno Haible  <bruno@clisp.org>
69202
69203         Merge from GNU gettext 0.15.
69204
69205         2006-03-25  Bruno Haible  <bruno@clisp.org>
69206
69207                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69208
69209         2006-07-21  Bruno Haible  <bruno@clisp.org>
69210
69211                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69212                 "1.1".
69213
69214         2006-05-09  Bruno Haible  <bruno@clisp.org>
69215
69216                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69217                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69218                 for the conftestver execution.
69219
69220         2006-05-01  Bruno Haible  <bruno@clisp.org>
69221
69222                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69223                 optional target-version argument. Verify that the compiler
69224                 groks source of the specified source-version, or add -source
69225                 option as necessary. Verify that the compiler produces
69226                 bytecode in the specified target-version, or add -target and
69227                 -source options as necessary. Make the result of the test
69228                 available as variable CONF_JAVAC. Also log error output in
69229                 config.log.
69230
69231         2006-03-11  Bruno Haible  <bruno@clisp.org>
69232
69233                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69234
69235         2006-05-09  Bruno Haible  <bruno@clisp.org>
69236
69237                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69238                 CLASSPATH_SEPARATOR to a semicolon.
69239
69240         2006-03-12  Bruno Haible  <bruno@clisp.org>
69241
69242                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69243                 available as variable CONF_JAVA, for subsequent autoconf
69244                 tests. Also log error output in config.log.
69245
69246         2006-07-19  Bruno Haible  <bruno@clisp.org>
69247
69248                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69249                 that getline works on glibc2 systems. Needed to avoid trouble
69250                 in relocatable.c.
69251                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69252
69253         2005-12-04  Bruno Haible  <bruno@clisp.org>
69254
69255                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69256                 launcher (untested).
69257
69258         2005-12-04  Bruno Haible  <bruno@clisp.org>
69259
69260                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69261
69262         2006-07-22  Bruno Haible  <bruno@clisp.org>
69263
69264                 * gettext.m4: Update from GNU gettext-0.15.
69265                 * nls.m4: Likewise.
69266                 * po.m4: Likewise.
69267                 * inttypes-pri.m4: Likewise.
69268                 * inttypes-h.m4: Renamed from inttypes.m4.
69269                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69270
69271 2006-07-22  Bruno Haible  <bruno@clisp.org>
69272
69273         Merge from GNU gettext 0.15.
69274
69275         2005-07-05  Bruno Haible  <bruno@clisp.org>
69276
69277                 * printf-args.c (printf_fetchargs): Work around broken
69278                 definition of wint_t on mingw.
69279
69280         2005-02-12  Bruno Haible  <bruno@clisp.org>
69281
69282                 * xallocsa.h: Add extern "C" for C++.
69283
69284         2006-05-17  Bruno Haible  <bruno@clisp.org>
69285
69286                 Cygwin portability.
69287                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69288
69289         2006-04-30  Bruno Haible  <bruno@clisp.org>
69290
69291                 * progreloc.c: Include <mach-o/dyld.h> if available.
69292                 (find_executable): Use _NSGetExecutablePath when possible.
69293
69294         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69295
69296                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69297                 function.
69298
69299         2005-12-29  Bruno Haible  <bruno@clisp.org>
69300
69301                 * progreloc.c (set_program_name_and_installdir): Fix
69302                 compilation error.
69303
69304         2005-12-04  Bruno Haible  <bruno@clisp.org>
69305
69306                 Cygwin portability.
69307                 * progreloc.c: Include <windows.h> also on Cygwin.
69308                 (find_executable): Add support for Cygwin.
69309                 (set_program_name_and_installdir): Handle also platforms with
69310                 nonempty EXEEXT.
69311
69312         2006-07-11  Bruno Haible  <bruno@clisp.org>
69313
69314                 * javacomp.c: Fix a comment.
69315                 Reported by Jim Meyering.
69316
69317         2006-04-30  Bruno Haible  <bruno@clisp.org>
69318
69319                 * javacomp.h (compile_java_class): Add source_version,
69320                 target_version arguments.
69321                 * javacomp.c: Rewritten to choose only a compiler that
69322                 respects the specified source_version and target_version.
69323
69324         2006-06-27  Bruno Haible  <bruno@clisp.org>
69325
69326                 Assume correct S_ISDIR macro.
69327                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69328
69329         2006-07-22  Bruno Haible  <bruno@clisp.org>
69330
69331                 * javaversion.h: New file, from GNU gettext.
69332                 * javaversion.c: New file, from GNU gettext.
69333                 * javaversion.java: New file, from GNU gettext.
69334                 * javaversion.class: New file, from GNU gettext.
69335
69336         2006-05-17  Bruno Haible  <bruno@clisp.org>
69337
69338                 Cygwin portability.
69339                 * javaexec.c (execute_java_class): Test for jview program
69340                 also on Cygwin.
69341
69342         2006-04-09  Bruno Haible  <bruno@clisp.org>
69343
69344                 * fatal-signal.c: Don't include string.h.
69345                 (at_fatal_signal): Use a copying loop instead of memcpy.
69346
69347         2005-12-04  Bruno Haible  <bruno@clisp.org>
69348
69349                 * csharpexec.c: Add support for 'clix' launcher (untested).
69350                 (execute_csharp_using_sscli): New function.
69351                 (execute_csharp_program): Call it.
69352
69353         2006-06-21  Bruno Haible  <bruno@clisp.org>
69354
69355                 Avoid warnings from recent versions of mcs.
69356                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69357                 -o, -L, -r any more. Use options documented since mcs-1.0
69358                 instead. Similarly for -g.
69359
69360         2005-07-09  Bruno Haible  <bruno@clisp.org>
69361
69362                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69363                 add a .dll suffix.
69364                 Reported by Mark Junker <mjscod@gmx.de>.
69365
69366         2006-06-17  Bruno Haible  <bruno@clisp.org>
69367
69368                 * config.charset: Update for NetBSD 3.0.
69369
69370         2006-05-17  Bruno Haible  <bruno@clisp.org>
69371
69372                 Cygwin portability.
69373                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69374
69375         2006-05-16  Bruno Haible  <bruno@clisp.org>
69376
69377                 * localcharset.c [CYGWIN]: Include <windows.h>.
69378                 (get_charset_aliases): For Cygwin, return the same CPxxx
69379                 aliases list as under WIN32.
69380                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69381                 the environment variables. Fall back to GetACP().
69382
69383         2006-04-05  Bruno Haible  <bruno@clisp.org>
69384
69385                 * config.charset: Update Juan Manuel Guerrero's address.
69386
69387         2005-02-12  Bruno Haible  <bruno@clisp.org>
69388
69389                 * allocsa.h: Add extern "C" for C++.
69390
69391         2005-02-10  Bruno Haible  <bruno@clisp.org>
69392
69393                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69394                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69395
69396         2006-07-22  Bruno Haible  <bruno@clisp.org>
69397
69398                 * gettext.h: Update to GNU gettext-0.15.
69399
69400 2006-07-22  Bruno Haible  <bruno@clisp.org>
69401
69402         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69403         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69404         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69405
69406 2006-07-21  Eric Blake  <ebb9@byu.net>
69407
69408         * modules/stdlib-safer: New file.
69409         * MODULES.html.sh (File stream based Input/Output): Add
69410         stdlib-safer.
69411
69412 2006-07-21  Eric Blake  <ebb9@byu.net>
69413
69414         * lib/stdlib-safer.h: New file from coreutils, required by
69415         stdlib--.h.
69416
69417 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69418
69419         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69420
69421 2006-07-20  Bruno Haible  <bruno@clisp.org>
69422
69423         * gnulib-tool: Recognize new option --assume-autoconf.
69424         (autoconf_minversion): New variable.
69425         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69426
69427 2006-07-20  Bruno Haible  <bruno@clisp.org>
69428
69429         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69430
69431 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69432
69433         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69434         Reindent and repaginate.
69435
69436 2006-07-19  Derek Price  <derek@ximbiot.com>
69437
69438         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69439         Correct grammar.
69440
69441 2006-07-17  Bruno Haible  <bruno@clisp.org>
69442
69443         * modules/list: New file.
69444         * modules/array-list: New file.
69445         * modules/carray-list, modules/carray-list-tests: New files.
69446         * modules/linked-list, modules/linked-list-tests: New files.
69447         * modules/avltree-list, modules/avltree-list-tests: New files.
69448         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69449         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69450         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69451         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69452         * modules/oset: New file.
69453         * modules/array-oset: New file.
69454         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69455         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69456         * tests/test-carray_list.c: New file.
69457         * tests/test-linked_list.c: New file.
69458         * tests/test-avltree_list.c: New file.
69459         * tests/test-rbtree_list.c: New file.
69460         * tests/test-linkedhash_list.c: New file.
69461         * tests/test-avltreehash_list.c: New file.
69462         * tests/test-rbtreehash_list.c: New file.
69463         * tests/test-avltree_oset.c: New file.
69464         * tests/test-rbtree_oset.c: New file.
69465         * MODULES.html.sh (Container data structures): New section.
69466
69467 2006-07-17  Bruno Haible  <bruno@clisp.org>
69468
69469         * m4/gl_list.m4: New file.
69470
69471 2006-07-17  Bruno Haible  <bruno@clisp.org>
69472
69473         * lib/gl_list.h: New file.
69474         * lib/gl_list.c: New file.
69475         * lib/gl_array_list.h: New file.
69476         * lib/gl_array_list.c: New file.
69477         * lib/gl_carray_list.h: New file.
69478         * lib/gl_carray_list.c: New file.
69479         * lib/gl_linked_list.h: New file.
69480         * lib/gl_linked_list.c: New file.
69481         * lib/gl_anylinked_list1.h: New file.
69482         * lib/gl_anylinked_list2.h: New file.
69483         * lib/gl_avltree_list.h: New file.
69484         * lib/gl_avltree_list.c: New file.
69485         * lib/gl_anyavltree_list1.h: New file.
69486         * lib/gl_anyavltree_list2.h: New file.
69487         * lib/gl_rbtree_list.h: New file.
69488         * lib/gl_rbtree_list.c: New file.
69489         * lib/gl_anyrbtree_list1.h: New file.
69490         * lib/gl_anyrbtree_list2.h: New file.
69491         * lib/gl_anytree_list1.h: New file.
69492         * lib/gl_anytree_list2.h: New file.
69493         * lib/gl_linkedhash_list.h: New file.
69494         * lib/gl_linkedhash_list.c: New file.
69495         * lib/gl_anyhash_list1.h: New file.
69496         * lib/gl_anyhash_list2.h: New file.
69497         * lib/gl_avltreehash_list.h: New file.
69498         * lib/gl_avltreehash_list.c: New file.
69499         * lib/gl_rbtreehash_list.h: New file.
69500         * lib/gl_rbtreehash_list.c: New file.
69501         * lib/gl_anytreehash_list1.h: New file.
69502         * lib/gl_anytreehash_list2.h: New file.
69503
69504         * lib/gl_oset.h: New file.
69505         * lib/gl_oset.c: New file.
69506         * lib/gl_array_oset.h: New file.
69507         * lib/gl_array_oset.c: New file.
69508         * lib/gl_avltree_oset.h: New file.
69509         * lib/gl_avltree_oset.c: New file.
69510         * lib/gl_rbtree_oset.h: New file.
69511         * lib/gl_rbtree_oset.c: New file.
69512         * lib/gl_anytree_oset.h: New file.
69513
69514 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69515
69516         * m4/mkancesdirs.m4: New file.
69517         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69518         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69519         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69520         it.
69521
69522 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69523
69524         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69525         * lib/mkancesdirs.h: New files.
69526         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69527         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69528         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69529         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69530         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69531         callers changed.  Revamp internals significantly, by not
69532         attempting to create directories that are temporarily more
69533         permissive than the final results.  Do not attempt to use
69534         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69535         This removes some race conditions, fixes some bugs, and simplifies
69536         things.  Use new dirchownmod function to do owner and mode changes.
69537         * lib/mkdir-p.h: Likewise.
69538         * lib/modechange.c (octal_to_mode): New function.
69539         (struct mode_change): New member mentioned.
69540         (make_node_op_equals): New arg mentioned.  All callers changed.
69541         (mode_compile): Keep track of which mode bits the user has explicitly
69542         mentioned.
69543         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69544         New arg PMODE_BITS, to keep track of which mode bits the user
69545         mentioned; it treats S_ISUID and S_ISGID speciall.
69546         All callers changed.
69547         * lib/modechange.h: Likewise.
69548
69549 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * MODULES.html.sh: Add mkancestors.
69552         * modules/mkancesdirs: New module.
69553         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69554         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69555         The chdir-safer and afs files are now orphans; I'll remove them
69556         unless someone speaks up.
69557         Add lib/dirchownmod.c, lib/dirchownmod.h.
69558         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69559         Add lchown, mkancesdirs.
69560         (Maintainer): Add self.
69561
69562 2006-07-15  Karl Berry  <karl@gnu.org>
69563
69564         * gnulib-tool: help message wording/arrangement.
69565
69566 2006-07-14  Simon Josefsson  <jas@extundo.com>
69567
69568         * doc/gnulib.texi (Libtool and Windows): New section.
69569
69570 2006-07-12  Simon Josefsson  <jas@extundo.com>
69571
69572         * modules/gendocs (License): Fix license, approved by Karl.
69573
69574 2006-07-12  Eric Blake  <ebb9@byu.net>
69575
69576         * MODULES.html.sh: Add gendocs.
69577
69578 2006-07-11  Eric Blake  <ebb9@byu.net>
69579
69580         * modules/fdl: New module, to install doc/fdl.texi.
69581         * MODULES.html.sh: Add new section for documentation modules.
69582         * gnulib-tool: Avoid space-tab.
69583         (--doc-base): New option, to manage files from doc.
69584
69585 2006-07-11  Eric Blake  <ebb9@byu.net>
69586
69587         * m4/absolute-header.m4: Fix comments to match recent change.
69588
69589 2006-07-11  Eric Blake  <ebb9@byu.net>
69590
69591         * gnulib-tool: List --doc-base before --tests-base.
69592
69593 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69594
69595         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69596
69597 2006-07-11  Bruno Haible  <bruno@clisp.org>
69598
69599         * README: Mention where to put documentation.
69600
69601 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69602
69603         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69604
69605 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69608         to stdint.m4.
69609
69610 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69611
69612         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69613         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69614         "no/such/file/stdint.h" when there is no such file, so that
69615         the resulting C code can be parsed by dodgy compilers.
69616         Problems reported by Bob Proulx.
69617
69618 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69619
69620         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69621         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69622         macros into the GNU _D_EXACT_NAMLEN.
69623         * lib/savedir.c:  Likewise.
69624         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69625
69626 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69627         and Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69630         * m4/savedir.m4:
69631         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69632         macros into the GNU _D_EXACT_NAMLEN.
69633
69634 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69637         around the absolute name, to work around a problem with the HP-UX
69638         11.23 native C compiler, reported by Bob Proulx.
69639
69640 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * doc/maintain.texi, make-stds.texi: Sync from
69643         <http://savannah.gnu.org/projects/gnustandards>.
69644
69645 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69646
69647         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69648
69649 2006-07-09  Jim Meyering  <jim@meyering.net>
69650
69651         * m4/glob.m4: Remove a doubled word in a comment.
69652
69653 2006-07-09  Jim Meyering  <jim@meyering.net>
69654
69655         * lib/argp-pv.c: Remove a doubled word in a comment.
69656         * lib/check-version.c (check_version): Likewise.
69657         * lib/javacomp.c (compile_java_class): Likewise.
69658
69659 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69662         for the benefit of people using Autoconf 2.60.  If you want to
69663         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69664         (or m4/onceonly.m4, if pre-2.57) manually.
69665
69666 2006-07-08  Jim Meyering  <jim@meyering.net>
69667
69668         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69669         comment.
69670         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69671         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69672         comment.
69673
69674 2006-07-08  Jim Meyering  <jim@meyering.net>
69675
69676         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69677
69678 2006-07-07  Simon Josefsson  <jas@extundo.com>
69679
69680         * tests/test-crc.c: Change expected crc value, the test vector
69681         were probably computed using the old broken crc.c?
69682
69683 2006-07-06  Simon Josefsson  <jas@extundo.com>
69684
69685         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69686         now the canonical place for the M4 file).
69687
69688         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69689         from the sys_socket dependency now.
69690
69691         * modules/inet_pton (Files): Ditto.
69692
69693         * modules/inet_ntop (Files): Ditto.
69694
69695 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69696
69697         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69698         not gl_PREREQ_GETUSERSHELL.
69699
69700 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69701
69702         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69703         with only one argument, for Autoconf 2.60.
69704         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69705         expand to nothing, so add a shell command to avoid syntax error.
69706         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69707
69708 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69709
69710         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69711
69712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69713
69714         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69715         no longer needed.  Check for isblank decl.
69716         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69717         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69718         of existence.
69719
69720 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/getloadavg.c: Use __VMS, not VMS.
69723         * lib/getopt.c: Likewise.
69724         * lib/getpagesize.h: Likewise.
69725         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69726         and probably does not work.
69727
69728 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * lib/.cppi-disable: Add wcwidth.
69731         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69732         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69733         (ISGRAPH): Remove.  All uses changed to isgraph.
69734         (FOLD) [!defined _LIBC]: Remove special case.
69735         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69736         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69737         HAVE_ISBLANK.
69738         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69739         case.
69740
69741 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69742
69743         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69744         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69745         brackets.  Other minor changes to suppress some compiler
69746         warnings.
69747
69748 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69749         and Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69752         of invoking obsolescent AC_HEADER_DIRENT macro.
69753         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69754         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69755         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69756         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69757         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69758         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69759         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69760         * m4/readdir.m4: Remove; no longer needed.
69761
69762 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69763         and Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69766         Don't worry about this obsolete case any more.
69767         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69768         directories.
69769         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69770         worry about this obsolete case any more.
69771         * lib/fts.c: Likewise.
69772         * lib/getcwd.c: Likewise.
69773         * lib/glob.h: Likewise.
69774         * lib/savedir.c: Likewise.
69775
69776 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69779         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69780         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69781         needed.
69782         All uses removed.
69783         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69784         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69785         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69786         needed.
69787         * m4/getdate.m4 (gl_GETDATE): Likewise.
69788         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69789         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69790         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69791         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69792         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69793         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69794         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69795         needed.
69796
69797 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * lib/memcasecmp.c: Include <limits.h>.
69800         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69801         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69802         Don't assume isdigit succeeds only on '0' through '9'.
69803
69804 2006-07-05  Eric Blake  <ebb9@byu.net>
69805
69806         * modules/getaddrinfo (Depends-on): Add snprintf.
69807
69808 2006-07-05  Eric Blake  <ebb9@byu.net>
69809
69810         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69811         to avoid 'header present but could not be compiled' on cygwin.
69812
69813 2006-07-05  Eric Blake  <ebb9@byu.net>
69814
69815         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69816         missing from netdb.h.
69817         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69818
69819 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69820
69821         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69822         no longer needed.
69823         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69824         * m4/getdate.m4 (gl_GETDATE): Likewise.
69825         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69826         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69827         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69828         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69829         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69830
69831 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69832
69833         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69834         All uses of is_space replaced by isspace.
69835         * lib/exit.h: Don't talk about STDC_HEADERS.
69836         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69837         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69838         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69839         replaced by isprint etc.
69840         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69841         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69842         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69843         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69844         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69845         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69846
69847 2006-07-05  Bruno Haible  <bruno@clisp.org>
69848
69849         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69850         the function exists, before testing against AIX.
69851         Reported by Martin Lambers <marlam@marlam.de>.
69852
69853 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69856         From Mark D. Baushke.
69857
69858 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69861         to the absolute name, not just one, to bypass Sun C 5.8's
69862         "warning: #include of /usr/include/... may be non-portable".
69863
69864 2006-07-04  Eric Blake  <ebb9@byu.net>
69865
69866         * modules/dirname-tests: New test module.
69867         * tests/test-dirname.c: New file, replacing dirname.c
69868         TEST_DIRNAME section that was recently deleted.
69869
69870 2006-07-04  Bruno Haible  <bruno@clisp.org>
69871
69872         Assume ANSI C header files and <ctype.h> functions.
69873         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69874         (mbsnwidth): Use isprint, iscntrl instead.
69875
69876 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         Merge from coreutils.
69879         * MODULES.html.sh: Add xstrtold.
69880         * modules/xstrtold: New file.
69881         * modules/cycle-check (Files): Add lib/same-inode.h.
69882         * modules/dirname (Files): Add m4/double-slash-root.m4.
69883         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69884         * modules/mkdir-p (Files): Add lib/same-inode.h.
69885         * modules/same (Files): Add lib/same-inode.h.
69886
69887 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69890         This is to keep the terminology clean; POSIX talks about
69891         "absolute pathnames", not "full pathnames", but the GNU
69892         Coding Standards say to use "path" for something else;
69893         so use "absolute" to keep both sides happy.
69894         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69895         Set gl_absolute_header, not gl_full_header_path.
69896         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69897         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69898         All uses changed.
69899
69900         Merge from coreutils.
69901
69902         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69905         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69906         want to require the building of c-strtod.o.
69907         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69908         needs -lm directly.
69909         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69910
69911         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69914         --as-needed option if available.  Problem reported by Albert Chin in
69915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69916         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69917         cc merely issues a bunch of annoying warnings for --as-needed
69918         (this problem was reported by Bob Proulx).  Also, try linking with
69919         -lm to detect a bug in binutils 2.16 (this problem was reported
69920         by Ralf Wildenhues).
69921
69922         2006-06-18  Jim Meyering  <jim@meyering.net>
69923
69924         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69925         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69926         macro.
69927         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69928         also check for glibc-2.4's abort-inducing bug.
69929
69930         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69931         Low-probability clean-up should be to use rmdir to get rid of
69932         the just-created directory, not unlink.
69933
69934         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69935         configure fail, and request a bug report to inform us about it.
69936         Add a comment that, barring reports to the contrary, in 2007 we'll
69937         assume ftruncate is universally available.
69938
69939         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69942
69943         2006-03-12  Jim Meyering  <jim@meyering.net>
69944
69945         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69946         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69947         * m4/same.m4 (gl_SAME): Likewise.
69948         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69949
69950         2006-03-11  Eric Blake  <ebb9@byu.net>
69951
69952         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69953         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69954         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69955         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69956
69957 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69960         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69961         reported by Mark D. Baushke, one in
69962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69963
69964         Merge from coreutils.
69965
69966         * lib/.cppi-disable: Add stdint_.h.
69967         * lib/.cvsignore: Add stdint.h.
69968
69969         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69972         both double and long double versions.
69973         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69974         * lib/xstrtold.c: New file.
69975         * lib/xstrtod.h (xstrtold): New decl.
69976
69977         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         * lib/filemode.c (setst): Remove.
69980         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69981         (arguably) clearer, and the generated code is a bit smaller on my
69982         Debian GNU/Linux stable x86 host.
69983
69984         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69985
69986         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69987         Assume that filemode.h includes sys/types.h and sys/stat.h.
69988         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69989         (ftypelet): Reorder to put common cases first, for efficiency.
69990         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69991         to do 'M'.
69992         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69993         of 10, for compatibility with FreeBSD.  All callers changed.
69994         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69995         types that can't be deduced solely from st_mode.  First arg is now a
69996         const pointer.
69997         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69998         (strmode): Renamed from mode_string.
69999         (filemodestring): New decl.
70000         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70001         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70002         needed.
70003         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70004
70005         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70008         fsusage.h now does that.  Include fsusage.h first, to test interface.
70009         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70010         at most one method (the old code could have generated decls that
70011         didn't conform to C89, not that this was ever exercised).
70012         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70013
70014         2006-03-19  Jim Meyering  <jim@meyering.net>
70015
70016         Work even in a chroot where d_ino values for entries in "/"
70017         don't match the stat.st_ino values for the same names.
70018         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70019         number, iterate through all entries again, using lstat instead.
70020         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70021         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70022
70023         * lib/getcwd.c (__getcwd): Clarify a comment.
70024         Use memcpy in place of a call to strcpy.
70025
70026         2006-03-12  Jim Meyering  <jim@meyering.net>
70027
70028         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70029         matches that of the current directory (which we're about to chdir ".."
70030         out of), then save the dev-ino of the parent, instead.
70031
70032         * lib/same-inode.h (SAME_INODE): New file/macro.
70033         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70034         Include "same-inode.h", instead.
70035         * lib/same.c: Likewise.
70036         * lib/cycle-check.h: Include "same-inode.h".
70037         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70038         * lib/cycle-check.c (SAME_INODE): Remove definition.
70039         * lib/root-dev-ino.h: Include "same-inode.h".
70040
70041         2006-03-11  Eric Blake  <ebb9@byu.net>
70042
70043         * lib/same.c (same_name): s/base_name/last_component/
70044         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70045         * lib/filenamecat.c (file_name_concat): Likewise.
70046
70047         2006-03-11  Eric Blake  <ebb9@byu.net>,
70048                     Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70051         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70052         drive prefix.
70053         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70054         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70055         (last_component): New method.
70056         * lib/dirname.c (dir_len): Determine when drive letters need a
70057         subsequent slash.  Preserve // when it is special.
70058         (dir_name): Don't append dot when drive letter is absolute.
70059         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70060         * lib/basename.c (base_name): New semantics - malloc the result.
70061         Preserve // when it is special.  Preserve relative files that look
70062         like drive letters.
70063         (base_len): Preserve // when it is special.
70064         (last_component): New method, similar to old base_name semantics.
70065         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70066         base_name.  Strip redundant slashes from ///.
70067
70068 2006-07-03  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70071         macro is used before the first cycle_check call.
70072
70073 2006-07-03  Eric Blake  <ebb9@byu.net>
70074
70075         * modules/dirname (Depends-on): Add xstrndup.
70076
70077 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70080         test cases, so that config.log is a bit easier to follow.
70081
70082 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70083
70084         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70085         both are 64 bits, since this seems to be the tradition, and this
70086         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70087         we ever run into a host that prefers long long to long in this
70088         case, we'll need another configure-time test.  Problem reported by
70089         Jim Meyering.
70090
70091 2006-07-02  Eric Blake  <ebb9@byu.net>
70092
70093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70094
70095 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * modules/inttypes (Depends-on): No longer depends on stdint.
70098         * modules/stdint (Description): Say more about assumptions.
70099         Say that the fast types might differ.  Say macros are used.
70100         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70101         (Makefile.am): Revise list of substituted symbols to match
70102         new stdint.m4.
70103         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70104         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70105         * tests/test-stdint.c (verify_same_types)
70106         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70107         the code conforms to C99/C89.
70108         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70109         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70110
70111 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70114         but fix a bug, by requiring at least 64 bits.
70115         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70116         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70117         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70118         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70119
70120         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70121         changes.  Make 2.59 a prerequisite.  Check and substitute for
70122         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70123         inttypes.h.  Do not use special include files; just use the
70124         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70125         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70126         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70127         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70128         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70129         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70130         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70131         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70132         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70133         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70134         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70135         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70136         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70137         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70138         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70139         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70140         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70141         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70142         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70143         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70144         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70145         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70146         not check for things that C99 does not require, e.g., int8_t.  If
70147         a test isn't needed unless <stdint.h> isn't working, and is
70148         unlikely to be needed for any other reason, then don't do it
70149         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70150         size_t, since we assume C89 freestanding at least.  Do not check
70151         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70152         the right thing even if the types are not defined.  Instead use:
70153         (gl_STDINT_TYPE_PROPERTIES): New macro.
70154         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70155         testing whether <sys/types.h> clashes, as Autoconf does this for
70156         us now.  All uses removed.
70157         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70158         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70159         (gl_CHECK_TYPE_SAME):
70160         Remove; no longer needed.
70161         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70162         exists, since we'll return 0 anyway in that case.
70163         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70164
70165 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70168         possible collision with system files.
70169         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70170         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70171         WCHAR_MIN and WCHAR_MAX in this case.
70172         (<stddef.h>): Do not include; no longer needed.
70173         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70174         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70175         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70176         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70177         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70178         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70179         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70180         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70181         !defined(__c99))]: Include in this case too, since it's harmless
70182         now.
70183         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70184         dangerous to do so.
70185         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70186         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70187         (_STDINT_MIN, _STDINT_MAX): New macros.
70188         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70189         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70190         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70191         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70192         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70193         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70194         macros, not typedefs; this simplifies things quite a bit.
70195         Use long int for all types narrower than int64_t.
70196         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70197         Define in terms of long long int or int64_t or long int,
70198         not int64_t or int32_t.  This saves some compile-time testing.
70199         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70200         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70201         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70202         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70203         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70204         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70205         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70206         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70207         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70208         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70209         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70210         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70211         undef any previous version and define our own version, for
70212         simplicity and consistency with the new macros for types.
70213         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70214         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70215         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70216         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70217         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70218         @WINT_T_SUFFIX@ to keep things simple here.
70219         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70220         Simplify by assuming typical 8/16/32/64 host, since we're
70221         already doing that elsewhere anyway.
70222         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70223         and assume long long int is 64 bits if available.  This
70224         speeds up 'configure'.
70225
70226 2006-07-01  Eric Blake  <ebb9@byu.net>
70227
70228         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70229         Reported by Andreas Buening.
70230
70231 2006-07-01  Eric Blake  <ebb9@byu.net>
70232
70233         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70234
70235 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70236
70237         * lib/getaddrinfo.c: fixed typo
70238
70239 2006-06-29  Jim Meyering  <jim@meyering.net>
70240
70241         * modules/strftime (Maintainer): Add my name, since with the
70242         FPRINTFTIME changes strftime.c has forked from glibc.
70243
70244 2006-06-29  Eric Blake  <ebb9@byu.net>
70245
70246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70247
70248 2006-06-29  Eric Blake  <ebb9@byu.net>
70249
70250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70251
70252 2006-06-29  Eric Blake  <ebb9@byu.net>
70253
70254         * lib/stat_.h: New file.
70255
70256 2006-06-29  Eric Blake  <ebb9@byu.net>
70257
70258         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70259         unused static function.
70260
70261 2006-06-29  Eric Blake  <ebb9@byu.net>
70262
70263         * doc/functions.texi (Function Portability): Document missing lstat
70264         on mingw.
70265
70266 2006-06-29  Eric Blake  <ebb9@byu.net>
70267
70268         * MODULES.html.sh: Add sys_stat.
70269         * modules/sys_stat: New module.
70270         * modules/mkstemp (Depends-on): Add sys_stat.
70271
70272 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70273
70274         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70275
70276 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70277
70278         * m4/c-bs-a.m4: Removed.
70279
70280 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70281
70282         * lib/strftime.c: Assume strftime() exists.
70283
70284 2006-06-29  Derek Price  <derek@ximbiot.com>
70285
70286         * modules/c-bs-a: Removed - \a is C89.
70287         * MODULES.html.sh: Remove c-bs-a.
70288
70289 2006-06-29  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/wcwidth (License): Change to LGPL.
70292
70293 2006-06-28  Simon Josefsson  <jas@extundo.com>
70294
70295         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70296         on _WIN32.
70297
70298         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70299         getnameinfo.
70300
70301 2006-06-28  Simon Josefsson  <jas@extundo.com>
70302
70303         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70304
70305 2006-06-28  Simon Josefsson  <jas@extundo.com>
70306
70307         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70308         functions there.  It will succeed on Windows XP, but on Windows
70309         2000 and (presumably) earlier, it will fail, and use the internal
70310         re-implementation.
70311         (use_win32_p): New function.
70312         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70313         Support AI_NUMERICSERV to disable getservbyname.
70314         (getnameinfo): New function, only supports
70315         NI_NUMERICHOST|NI_NUMERICSERV for now.
70316
70317         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70318         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70319         getnameinfo.
70320
70321 2006-06-28  Eric Blake  <ebb9@byu.net>
70322
70323         * modules/wcwidth: New file.
70324         * modules/mbchar (Depends-on): Add wcwidth.
70325         * modules/mbswidth (Depends-on): Add wcwidth.
70326         * MODULES.html.sh: Add wcwidth.
70327
70328 2006-06-28  Eric Blake  <ebb9@byu.net>
70329
70330         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70332
70333 2006-06-28  Eric Blake  <ebb9@byu.net>
70334
70335         * lib/xvasprintf.h: Fix comments.
70336
70337 2006-06-28  Eric Blake  <ebb9@byu.net>
70338
70339         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70340         * lib/mbswidth.c (wcwidth): Move from here...
70341         * lib/wcwidth.h: ...to this new file.
70342
70343 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70344
70345         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70346
70347         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70348         it's obsolete.
70349         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70350
70351 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70352
70353         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70354         Autoconf 2.60 says this stuff was obsolete.
70355
70356 2006-06-28  Bruno Haible  <bruno@clisp.org>
70357
70358         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70359
70360 2006-06-28  Bruno Haible  <bruno@clisp.org>
70361
70362         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70363         gt_TYPE_WCHAR_T.
70364
70365 2006-06-28  Bruno Haible  <bruno@clisp.org>
70366
70367         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70368         declaration for wcwidth.
70369         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70370
70371 2006-06-28  Bruno Haible  <bruno@clisp.org>
70372
70373         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70374         (mkdir): Define using _mkdir.
70375
70376 2006-06-28  Bruno Haible  <bruno@clisp.org>
70377
70378         * lib/getaddrinfo.h: Fix POSIX URL.
70379         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70380         _WIN32.
70381         (use_win32_p): Make static.
70382         (getaddrinfo): Reject service name if it is empty or does not consist
70383         solely of decimal digits, or if its value is > 65535.
70384         (getnameinfo): Remove useless casts.
70385
70386 2006-06-27  Simon Josefsson  <jas@extundo.com>
70387
70388         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70389         Eggert and Martin Lambers.
70390
70391 2006-06-27  Simon Josefsson  <jas@extundo.com>
70392
70393         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70394         Eggert and Martin Lambers.
70395
70396 2006-06-27  Bruno Haible  <bruno@clisp.org>
70397
70398         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70399         result to 0, not to empty.
70400         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70401
70402 2006-06-27  Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70405
70406 2006-06-26  Simon Josefsson  <jas@extundo.com>
70407
70408         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70409         present.
70410
70411 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70412
70413         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70414         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70416
70417 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70418
70419         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70420
70421 2006-06-26  Bruno Haible  <bruno@clisp.org>
70422
70423         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70424
70425 2006-06-26  Bruno Haible  <bruno@clisp.org>
70426
70427         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70428
70429 2006-06-26  Bruno Haible  <bruno@clisp.org>
70430
70431         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70432         SGI C compiler in pre-C99 mode.
70433         Suggested by Mark D. Baushke and Larry Jones.
70434
70435 2006-06-26  Bruno Haible  <bruno@clisp.org>
70436
70437         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70438         WCHAR_MAX.
70439         Reported by Mark D. Baushke and Larry Jones.
70440
70441 2006-06-26  Bruno Haible  <bruno@clisp.org>
70442
70443         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70444         in pre-C99 mode.
70445         Suggested by Mark D. Baushke and Larry Jones.
70446
70447 2006-06-23  Simon Josefsson  <jas@extundo.com>
70448             Bruno Haible  <bruno@clisp.org>
70449
70450         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70451         Emit mostlyclean-local rule.
70452         (func_emit_tests_Makefile_am): Likewise.
70453         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70454
70455 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70456
70457         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70458
70459 2006-06-23  Bruno Haible  <bruno@clisp.org>
70460
70461         * tests/test-stdint.c: Update to match ISO C 99 Technical
70462         Corrigendum 1.
70463
70464 2006-06-23  Bruno Haible  <bruno@clisp.org>
70465
70466         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70467
70468 2006-06-23  Bruno Haible  <bruno@clisp.org>
70469
70470         * lib/stdint_.h: Treat IRIX like OpenBSD.
70471
70472 2006-06-23  Bruno Haible  <bruno@clisp.org>
70473
70474         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70475         ISO C 99 Technical Corrigendum 1.
70476
70477 2006-06-22  Simon Josefsson  <jas@extundo.com>
70478
70479         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70480         MinGW.
70481
70482 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70485         needed.  Some compiler complained about some of them.  Problem reported
70486         by Larry Jones in
70487         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70488
70489 2006-06-21  Simon Josefsson  <jas@extundo.com>
70490
70491         * tests/test-getaddrinfo.c: New file.
70492
70493         * modules/getaddrinfo-tests: New file.
70494
70495         * MODULES.html.sh: Add inet_pton.
70496
70497         * modules/inet_pton: New file.
70498
70499 2006-06-21  Simon Josefsson  <jas@extundo.com>
70500
70501         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70502         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70503         of using the (limited) gnulib implementation on Windows XP.
70504
70505         * m4/inet_pton.m4: New file.
70506
70507 2006-06-21  Simon Josefsson  <jas@extundo.com>
70508
70509         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70510         variable.
70511
70512         * lib/socket_.h: Don't define WINVER.
70513
70514         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70515         slightly modified to work in gnulib.
70516
70517 2006-06-21  Simon Josefsson  <jas@extundo.com>
70518
70519         * doc/gnulib.texi (Windows sockets): Add.
70520
70521 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70522
70523         * lib/read-file.c (fread_file): Start with buffer allocation of
70524         0 bytes rather than 1 byte; this simplifies the code.
70525         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70526         code to free buffer and save/restore errno.
70527         (internal_read_file): Remove unused local.
70528
70529 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70530
70531         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70532         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70533         Problem reported by Denis Excoffier in
70534         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70535
70536 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70537
70538         * modules/sys_socket, modules/socklen: Include sys/types since
70539         FreeBSD 4.x's sys/socket.h needs it.
70540
70541 2006-06-19  Simon Josefsson  <jas@extundo.com>
70542
70543         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70544
70545 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70548
70549 2006-06-19  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70552         and FULL_PATH_INTTYPES_H in angle brackets.
70553         Reported by Mark D. Baushke <mdb@gnu.org>.
70554
70555 2006-06-17  Eric Blake  <ebb9@byu.net>
70556
70557         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70558         errno.
70559
70560 2006-06-17  Bruno Haible  <bruno@clisp.org>
70561
70562         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70563         <sys/inttypes.h>.
70564
70565 2006-06-17  Bruno Haible  <bruno@clisp.org>
70566
70567         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70568         whether errno is declared. Assume <errno.h> declares errno.
70569
70570 2006-06-17  Bruno Haible  <bruno@clisp.org>
70571
70572         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70573
70574 2006-06-17  Bruno Haible  <bruno@clisp.org>
70575
70576         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70577         problem on Solaris 2.5.1.
70578
70579 2006-06-16  Eric Blake  <ebb9@byu.net>
70580
70581         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70582         * lib/unicodeio.c [!defined errno]: Likewise.
70583         * lib/strtol.c [!defined errno]: Likewise.
70584         * lib/strtod.c [!defined errno]: Likewise.
70585
70586 2006-06-15  Eric Blake  <ebb9@byu.net>
70587
70588         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70589
70590 2006-06-15  Eric Blake  <ebb9@byu.net>
70591
70592         * config/srclist.txt (ssize_t.m4): Lose sync.
70593
70594 2006-06-15  Bruno Haible  <bruno@clisp.org>
70595
70596         * modules/stdint (Files): Include m4/full-header-path.m4,
70597         m4/size_max.m4, m4/wchar_t.m4.
70598         (Makefile.am): Many more substitutions.
70599         * modules/stdint-tests: New file.
70600         * tests/test-stdint.c: New file.
70601
70602 2006-06-15  Bruno Haible  <bruno@clisp.org>
70603
70604         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70605         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70606         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70607         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70608         gl_CHECK_TYPE_SAME): New macros.
70609
70610 2006-06-15  Bruno Haible  <bruno@clisp.org>
70611
70612         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70613
70614 2006-06-15  Bruno Haible  <bruno@clisp.org>
70615
70616         * lib/stdint_.h: Rewritten to be fully auto-configured.
70617         Fixes bug on HP-UX/IA64.
70618
70619 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * lib/getdate.y (__attribute__): Don't define if already defined.
70622         Problem reported by Larry Jones.
70623         * lib/utimens.c (__attribute__): Likewise.
70624
70625 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70628         reported by Andreas Schwab.
70629
70630 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70631             Bruno Haible  <bruno@clisp.org>
70632
70633         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70634         check for the declaration of strnlen and a run test that exposes the
70635         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70636         rpl_strndup.
70637
70638 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70639             Bruno Haible  <bruno@clisp.org>
70640
70641         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70642
70643 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70644
70645         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70646         compile test, for Tru64 4.0D.
70647
70648 2006-05-28  Karl Berry  <karl@gnu.org>
70649
70650         * config/srclist.txt (printf-args.c): lose sync.
70651
70652 2006-05-26  Martin Lambers  <marlam@marlam.de>
70653
70654         * lib/getpass.c: Updates the test for the native W32 API, and adds
70655         missing includes, thus fixing compilation warnings.
70656
70657 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70658
70659         * lib/exclude.c (exclude_fnmatch): New function.
70660         (excluded_file_name): Call exclude_fnmatch.
70661         * lib/exclude.h (excluded_file_name): New prototype
70662
70663 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * lib/tempname.c (small_open, large_open): New macros.
70666         (__open, __open64) [!_LIBC]: Remove.
70667         (__gen_tempname): Use small_open and large_open instead of __open
70668         and __open64.  This fixes a portability bug on HP-UX 11.11i
70669         reported by Simon Wing-Tang in
70670         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70671
70672 2006-05-24  Bruno Haible  <bruno@clisp.org>
70673
70674         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70675         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70676         Reported by Thorsten Maerz <torte@netztorte.de> via
70677         Aaron Stone <aaron@serendipity.cx>.
70678
70679 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70682         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70683         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70684         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70685         not really conditional on the cache.
70686         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70687
70688 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70689
70690         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70691         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70692         (my_usleep): Don't mishandle maximum value.
70693
70694 2006-05-19  Jim Meyering  <jim@meyering.net>
70695
70696         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70697
70698 2006-05-17  Bruno Haible  <bruno@clisp.org>
70699
70700         Cygwin portability.
70701         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70702
70703 2006-05-17  Bruno Haible  <bruno@clisp.org>
70704
70705         * lib/stdint_.h: Fix recognition of Cygwin.
70706
70707 2006-05-15  Bruno Haible  <bruno@clisp.org>
70708
70709         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70710         on libtool patch by Ralf Wildenhues.
70711
70712 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70715         test for C99 conformance; (bool) 0.5 is an integer constant
70716         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70717         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70718
70719 2006-05-11  Simon Josefsson  <jas@extundo.com>
70720
70721         * m4/xvasprintf.m4: Fix obvious typo.
70722
70723 2006-05-11  Jim Meyering  <jim@meyering.net>
70724
70725         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70726         James Lemley.
70727
70728 2006-05-10  Simon Josefsson  <jas@extundo.com>
70729
70730         * lib/md4.c: Typo fix, update copyright years.
70731         (K1, K2): Don't use L because it turn computations into 64-bit on
70732         64-bit platforms.
70733
70734 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70735
70736         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70737         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70738         unwanted sign propagation, e.g., on hosts with 64-bit int.
70739         There still are some problems with reeelly weird theoretical hosts
70740         (e.g., 33-bit int) but it's not worth worrying about now.
70741         * lib/sha1.c (rol): Likewise.
70742         (K1, K2, K3, K4): Remove unnecessary L suffix.
70743
70744 2006-05-10  Bruno Haible  <bruno@clisp.org>
70745
70746         * lib/des.c: Cast to avoid warnings.
70747
70748 2006-05-09  Bruno Haible  <bruno@clisp.org>
70749
70750         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70751         (Depends-on): Depend also on xsize, stdarg.
70752         (configure.ac): Add gl_XVASPRINTF.
70753
70754 2006-05-09  Bruno Haible  <bruno@clisp.org>
70755
70756         * m4/xvasprintf.m4: New file.
70757
70758 2006-05-09  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70761         (EOVERFLOW): Define fallback value.
70762         (xstrcat): New function.
70763         (xvasprintf): Recognize the special case of a string concatenation.
70764
70765 2006-05-08  Eric Blake  <ebb9@byu.net>
70766
70767         * gnulib-tool (func_version): Base copyright year on CVS date.
70768         (func_emit_copyright_notice): New function.
70769         (func_emit_lib_Makefile_am): Use it.
70770         (func_emit_tests_Makefile_am): Likewise.
70771         (func_import): Likewise.
70772
70773 2006-05-08  Bruno Haible  <bruno@clisp.org>
70774
70775         * modules/stdarg: New file.
70776         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70777
70778 2006-05-08  Bruno Haible  <bruno@clisp.org>
70779
70780         * m4/stdarg.m4: New file, from GNU gettext.
70781
70782 2006-05-08  Bruno Haible  <bruno@clisp.org>
70783
70784         * config/srclist.txt (build-aux/config.rpath): different from latest
70785         release.
70786
70787 2006-05-08  Bruno Haible  <bruno@clisp.org>
70788
70789         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70790
70791 2006-05-05  Jim Meyering  <jim@meyering.net>
70792
70793         * m4/warning.m4: New file, derived from bison's file by the same name.
70794
70795 2006-05-03  Bruno Haible  <bruno@clisp.org>
70796
70797         * lib/stdint_.h: Shorter URL.
70798         * lib/inttypes.h: Likewise.
70799
70800 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70801
70802         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70803
70804 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * lib/verify.h: Document the internals better.  Most of this change
70807         was written by Bruno Haible.
70808
70809 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * doc/verify.texi: New file, partly based on a proposal by
70812         Bruno Haible.
70813
70814 2006-05-02  Bruno Haible  <bruno@clisp.org>
70815
70816         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70817         test from here...
70818         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70819
70820 2006-04-29  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70823         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70824
70825 2006-04-29  Bruno Haible  <bruno@clisp.org>
70826
70827         * gnulib-tool: Make --update option actually work.
70828
70829 2006-04-29  Bruno Haible  <bruno@clisp.org>
70830
70831         * doc/gcd.texi: New file.
70832         * doc/gnulib.texi: Include it.
70833
70834 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70835
70836         * lib/getdate.y (get_date): When adding relative date, start with the
70837         initial time, not with the result of the first mktime call.
70838
70839 2006-04-25  Bruno Haible  <bruno@clisp.org>
70840
70841         * gnulib-tool (func_import): Output the include directives in three
70842         blocks, sorted separately.
70843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70844
70845 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70848         to define main with arguments, for C++.  Reported by Eric Blake.
70849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70850         Prefer 'int main ()' to 'int main (void)', for C++.
70851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70853         for 'main', for C99 and C++.
70854
70855 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70858         Don't assume that exit status -1 is valid.
70859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70860         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70861         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70862         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70863         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70864         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70865         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70866         functions can be used without declaring them, or that you can
70867         exit with status -1.
70868         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70869
70870 2006-04-24  Karl Berry  <karl@gnu.org>
70871
70872         * config/srclist.txt (longdouble.m4): sync lost.
70873
70874 2006-04-24  Eric Blake  <ebb9@byu.net>
70875
70876         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70877
70878 2006-04-24  Bruno Haible  <bruno@clisp.org>
70879
70880         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70881         poll() implementation in AIX.
70882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70883
70884 2006-04-24  Bruno Haible  <bruno@clisp.org>
70885
70886         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70887         assigned exactly once.
70888
70889 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70890             Bruno Haible  <bruno@clisp.org>
70891
70892         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70893         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70894         for AM_CPPFLAGS.
70895
70896 2006-04-23  Bruno Haible  <bruno@clisp.org>
70897
70898         * modules/copy-file: Depend on unistd.
70899         * modules/execute: Likewise.
70900         * modules/fatal-signal: Likewise.
70901         * modules/findprog: Likewise.
70902         * modules/mkdtemp : Likewise.
70903         * modules/pipe: Likewise.
70904         * modules/wait-process: Likewise.
70905
70906 2006-04-23  Bruno Haible  <bruno@clisp.org>
70907
70908         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70909         condition was already detected.
70910         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70911
70912 2006-04-23  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/copy-file.c: Include <unistd.h> unconditionally.
70915         * lib/execute.c: Likewise.
70916         * lib/fatal-signal.c: Likewise.
70917         * lib/findprog.c: Likewise.
70918         * lib/mkdtemp.c: Likewise.
70919         * lib/pipe.h: Likewise.
70920         * lib/pipe.c: Likewise.
70921         * lib/wait-process.h: Likewise.
70922
70923 2006-04-23  Bruno Haible  <bruno@clisp.org>
70924
70925         * gnulib-tool (func_usage): Fix --import description. Document
70926         --update.
70927         (func_import): Create temporary file in a temporary directory, if
70928         --dry-run is specified. Silence errors from 'grep' when there are no
70929         m4 files in $m4dir.
70930         (func_create_testdir): Silence errors from 'grep' when there are no
70931         m4 files in $m4dir.
70932         Reported by Karl Berry <karl@freefriends.org>.
70933
70934 2006-04-20  Bruno Haible  <bruno@clisp.org>
70935
70936         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70937         one argument, so that the code will be portable to Autoconf 2.60.
70938         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70939         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70940         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70941
70942 2006-04-19  Derek Price  <derek@ximbiot.com>
70943             Eric Blake  <ebb9@byu.net>
70944
70945         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70946         rather than "/full/path.h".  Update comment to match.  Shorten &
70947         generalize m4_translit call via AS_TR_CPP.
70948
70949 2006-04-19  Derek Price  <derek@ximbiot.com>
70950             Eric Blake  <ebb9@byu.net>
70951
70952         * lib/inttypes.h: Correct grammar in comment.
70953
70954 2006-04-18  Derek Price  <derek@ximbiot.com>
70955             Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * modules/inttypes: New file.
70958         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70959
70960 2006-04-18  Derek Price  <derek@ximbiot.com>
70961             Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70964         New files.
70965
70966 2006-04-18  Derek Price  <derek@ximbiot.com>
70967             Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * lib/inttypes.h: New file.
70970         * lib/strtoimax.c: Assume <inttypes.h>.
70971
70972 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70975         isn't mounted.  Problem reported by Kir Kolyshkin.
70976
70977 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70980         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70981         Derek R. Price.
70982         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70983         implementation.
70984
70985 2006-04-12  Eric Blake  <ebb9@byu.net>
70986
70987         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70988         is now done automatically by the corresponding Autoconf macro.
70989
70990 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70991
70992         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70993         time_r.h.
70994
70995 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         Merge regex changes from libc, removing some of our
70998         POSIX-conformance changes that were rejected and redoing them in a
70999         less-intrusive way.
71000
71001         * lib/regcomp.c (re_compile_internal, init_dfa):
71002         Length arg is now size_t, not Idx.  All uses changed.
71003         (peek_token): Forward decl now says internal_function.
71004         (__re_error_msgid, __re_error_msgid_idx):
71005         Now static rather than extern with attribute_hidden.
71006         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71007         For some reason libc prefers K&R style defns for external functions.
71008         (regerror) [!defined _LIBC]: Likewise.
71009         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71010         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71011         (build_range_exp, build_collating_symbol):
71012         Use K&R-style defn.
71013         (re_compile_fastmap): Use '\0' to memset, not 0.
71014         (utf8_sb_map): Make the calculations more obvious.
71015         (init_dfa, parse_bracket_exp, build_charclass_op):
71016         Call calloc and cast result, as glibc does.
71017         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71018         (build_range_exp, build_collating_symbol):
71019         Now internal functions.
71020
71021         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71022
71023         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71024         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71025         Don't depend on VMS; depend on __VMS instead, for POSIX
71026         namespace cleanness.
71027         (regoff_t): Define to ssize_t, not long int.
71028
71029         Remove the REG_ macros named below.  Instead, make the old names
71030         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71031         __USE_GNU_REGEX.
71032         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71033         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71034         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71035         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71036         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71037         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71038         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71039         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71040         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71041         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71042         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71043         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71044         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71045         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71046         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71047         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71048         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71049         (REG_NREGS):
71050         Remove.  All uses replaced by the old RE_* names.
71051         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71052         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71053         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71054         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71055         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71056         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71057         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71058         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71059         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71060         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71061         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71062         Don't bother having these macros be independent of each others'
71063         values, since they no longer exist in the POSIX name space.
71064
71065         Rename the following member names back to their old names,
71066         unless !__USE_GNU_REGEX.  All uses changed back.
71067         (buffer): Renamed from re_buffer.
71068         (allocated): Renamed from re_allocated.
71069         (used): Renamed from re_used.
71070         (syntax): Renamed from re_syntax.
71071         (fastmap): Renamed from re_fastmap.
71072         (translate): Renamed from re_translate.
71073         (can_be_null): Renamed from re_can_be_null.
71074         (regs_allocated): Renamed from re_regs_allocated.
71075         (fastmap_accurate): Renamed from re_fastmap_accurate.
71076         (no_sub): Renamed from re_no_sub.
71077         (not_bol): Renamed from re_not_bol.
71078         (not_eol): Renamed from re_not_eol.
71079         (newline_anchor): Renamed from re_newline_anchor.
71080         (num_regs): Renamed from rm_num_regs.
71081         (start): Renamed from rm_start.
71082         (end): Renamed from rm_end.
71083
71084         (free_state): Move up a bit.
71085
71086         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71087         #define to be empty.
71088         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71089         when that is what is intended.
71090         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71091         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71092         (MAX): New macro.
71093         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71094         All uses changed back to re_malloc, etc.  It's now the caller's
71095         responsibility to check for overflow; all callers changed.
71096         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71097         (re_x2nrealloc): Remove.
71098         (free_state): Remove decl.
71099
71100         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71101         (re_set_registers, re_exec):
71102         Use K&R-style defn.
71103
71104         2006-01-31  Roland McGrath  <roland@redhat.com>
71105
71106         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71107         Reported by Mike Frysinger <vapier@gentoo.org>.
71108
71109         2006-01-15  Andreas Jaeger  <aj@suse.de>
71110
71111         [BZ #1950]
71112         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71113         build_wcs_upper_buffer change.
71114         (build_wcs_upper_buffer): Change return type.
71115
71116         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71117
71118         * lib/regex_internal.h: Include <stdint.h> if available.
71119
71120         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71121
71122         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71123
71124         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71125
71126         * lib/regcomp.c: Adjust for changed secondary hash function.
71127
71128         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71129
71130         * lib/regex.h: Pretty printing.
71131         Clean up namespace a bit.
71132
71133         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71134
71135         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71136         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71137
71138         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71139                     Ulrich Drepper  <drepper@redhat.com>
71140
71141         [BZ #1302]
71142         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71143         changed.
71144         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71145
71146         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71147
71148         [BZ #281]
71149         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71150         * lib/regcomp.c: Remove unnecessary uses of
71151         unsigned RE_TRANSLATE_TYPE.
71152         * lib/regex_internal.h: Likewise.
71153         * lib/regex_internal.c: Likewise.
71154         * lib/regexec.c: Likewise.
71155         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71156
71157         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71158
71159         * lib/regexec.c (find_recover_state): Remove unnecessary
71160         initialization.
71161         (transit_state_bkref): Make DFA a const pointer.
71162         (get_subexp): Likewise.
71163         (check_arrival): Likewise.
71164         (update_cur_sifted_state): Likewise.
71165         (re_search_internal): Likewise.
71166         (prune_impossible_nodes): Likewise.
71167         (acquire_init_state_context): Likewise.
71168         (proceed_next_node): Likewise.
71169         (set_regs): Likewise.
71170         (free_fail_stack_return): Likewise.
71171         (check_arrival_expand_ecl): Mark DFA parameter as const.
71172         (check_arrival_expand_ecl_sub): Likewise.
71173         (check_subexp_limits): Likewise.
71174         (sub_epsilon_src_nodes):  Likewise.
71175         (add_epsilon_src_nodes):  Likewise.
71176         (merge_state_array): Likewise.
71177         (update_regs): Likewise.
71178         (build_trtable): Likewise.
71179         (sift_states_backward): Mark MCTX parameter as const.
71180         (build_sifted_states): Likewise.
71181         (update_cur_sifted_state): Likewise.
71182         (sift_states_mkref): Likewise.
71183         (check_arrival_expand_ecl): Mark eclosure as const.
71184         (check_dst_limits_calc_pos_1): Likewise.
71185         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71186         pointer.
71187
71188         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71189
71190         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71191         (transit_state_sb): Likewise.
71192         (transit_state_mb): Likewise.
71193         (sift_states_iter_mb): Likewise.
71194         (check_arrival_add_next_nodes): Likewise.
71195         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71196         [_LIBC] (re_search_2_stub): Use mempcpy.
71197
71198         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71199         mbrtowc for very simple UTF-8 case.
71200
71201         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71202         a pointer-to-const.
71203         (re_acquire_state_context): Likewise.
71204         * lib/regex_internal.h: Adjust prototypes.
71205
71206         * lib/regex.c: Prevent using C++ compilers.
71207
71208         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71209         (re_acquire_state_context): Likewise.
71210
71211 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * modules/regex (Depends-on): Add ssize_t.
71214
71215 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71218         translation table.
71219
71220 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71223
71224 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71225             Bruno Haible  <bruno@clisp.org>
71226
71227         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71228         <sys/types.h> and <inttypes.h>.
71229
71230 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71231
71232         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71233         `__error_t_defined', so argp.h will not typedef the former.
71234
71235 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71238         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71239         glibc names.  Even if glibc is changed to conform to POSIX, the
71240         traditional names will be available anyway, since regex depends on
71241         the extensions module.  Also, fix a longstanding typo in the
71242         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71243         reported by Emanuele Giaquinta.  Also, change sense of cached
71244         variable, so that the message makes sense.
71245
71246 2006-03-24  Simon Josefsson  <jas@extundo.com>
71247
71248         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71249         including some doc fixes.
71250         (base64_encode_alloc): Fix +1 bug on allocation failures.
71251
71252 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71253
71254         * lib/base64.c (base64_encode): Do not read past end of array with
71255         unsanitized input on systems with CHAR_BIT > 8.
71256
71257 2006-03-24  Eric Blake  <ebb9@byu.net>
71258
71259         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71260
71261 2006-03-22  Karl Berry  <karl@gnu.org>
71262
71263         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71264         * config/srclistvars.sh (COREUTILS): new var.
71265
71266 2006-03-17  Jim Meyering  <jim@meyering.net>
71267
71268         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71269         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71270
71271 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71274         no longer needs it.  Instead, check that regoff_t is as least
71275         as wide as ptrdiff_t.
71276
71277         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71278         so that our regex.h stays compatible with the installed regex.
71279         This is helpful for installers who configure --without-included-regex.
71280         Problem reported by Emanuele Giaquinta.
71281
71282 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71285         Typedef to long int, not to off_, as POSIX will likely change
71286         in that direction.
71287
71288 2006-03-15  Eric Blake  <ebb9@byu.net>
71289
71290         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71291
71292 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71293
71294         * lib/argp-help.c (validate_uparams): Fix typo
71295         * lib/argp-parse.c (argp_default_options): Consistently begin help
71296         messages with a lowercase letter.
71297
71298 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71299
71300         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71301         overrun buffers and shouldn't be used (much as gets shouldn't be
71302         used).
71303         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71304
71305 2006-03-08  Simon Josefsson  <jas@extundo.com>
71306
71307         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71308         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71309
71310 2006-03-08  Simon Josefsson  <jas@extundo.com>
71311
71312         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71313         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71314
71315 2006-03-08  Simon Josefsson  <jas@extundo.com>
71316
71317         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71318         signal that configure disabled the device.
71319
71320 2006-03-08  Simon Josefsson  <jas@extundo.com>
71321
71322         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71323         languages.
71324
71325 2006-03-07  Simon Josefsson  <jas@extundo.com>
71326
71327         * modules/getopt (Depends-on): Add unistd.
71328
71329         * modules/unistd: New file.
71330
71331 2006-03-07  Simon Josefsson  <jas@extundo.com>
71332
71333         * modules/gc-random: New file.
71334
71335 2006-03-07  Simon Josefsson  <jas@extundo.com>
71336
71337         * m4/unistd_h.m4: New file.
71338
71339 2006-03-07  Simon Josefsson  <jas@extundo.com>
71340
71341         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71342         test to be side-effect free by storing the result in the cache
71343         variable gl_cv_lib_readline, and moving the assignment of
71344         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71345         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71346
71347 2006-03-07  Simon Josefsson  <jas@extundo.com>
71348
71349         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71350         error on missing devices (the functions will return an error).
71351
71352         * m4/gc.m4: Move random stuff to gc-random.m4
71353
71354 2006-03-07  Simon Josefsson  <jas@extundo.com>
71355
71356         * lib/unistd_.h: New file.
71357
71358 2006-03-07  Simon Josefsson  <jas@extundo.com>
71359
71360         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71361
71362 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71365         Problem reported by Juan Manuel Guerrero.
71366
71367 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71368
71369         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71370         the unistd module.
71371         * lib/getlogin_r.c: Likewise.
71372         * lib/getlogin_r.h: Likewise.
71373         * lib/glob.c: Likewise.
71374         * lib/pagealign_alloc.c: Likewise.
71375         * lib/unistd_.h: Remove; no longer needed.
71376
71377 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71378
71379         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71380         Add unistd.
71381         * modules/c-stack (Depends-on): Add unistd.
71382         * modules/getlogin_r: Likewise.
71383         * modules/glob: Likewise.
71384         * modules/pagealign_alloc: Likewise.
71385         * modules/unistd (Files): Remove lib/unistd_.h.
71386         (EXTRA_DIST): Remove.
71387         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71388         need unistd_.h.
71389         (MOSTLYCLEANFILES): Remove unistd.h-t.
71390
71391 2006-03-03  Simon Josefsson  <jas@extundo.com>
71392
71393         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71394
71395 2006-03-03  Simon Josefsson  <jas@extundo.com>
71396
71397         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71398         libidn and bison.
71399
71400 2006-03-03  Simon Josefsson  <jas@extundo.com>
71401
71402         * build-aux/maint.mk: Add indent target.
71403
71404 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71405
71406         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71407         our replacement poll.h in any case, to avoid a differing
71408         declaration from a system header.  Seen on AIX.
71409
71410 2006-03-01  Simon Josefsson  <jas@extundo.com>
71411
71412         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71413         <kasal@ucw.cz>.
71414
71415 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71416
71417         * modules/gettime (Depends-on): Add extensions module.
71418         * modules/nanosleep (Depends-on): Likewise.
71419         * modules/settime (Depends-on): Likewise.
71420
71421 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71422
71423         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71424         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71425         pedantically.
71426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71427         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71428
71429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71430         not "==".  Reported by Ralf Wildenhues.
71431
71432 2006-03-01  Karl Berry  <karl@gnu.org>
71433
71434         * doc/Copyright/request-*: new files, synced from gnuorg.
71435
71436 2006-03-01  Karl Berry  <karl@gnu.org>
71437
71438         * config/srclist.txt (Copyright/*): new entries.
71439
71440 2006-02-28  Simon Josefsson  <jas@extundo.com>
71441
71442         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71443
71444 2006-02-27  Simon Josefsson  <jas@extundo.com>
71445
71446         * lib/base64.h: Indent #define's.  From Jim Meyering
71447         <jim@meyering.net>.
71448
71449 2006-02-27  Jim Meyering  <jim@meyering.net>
71450
71451         Revert the change of 2006-02-24, so these files can continue
71452         to be sync'd from gettext.
71453         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71454         of `config.h'.
71455
71456 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * modules/intprops: New file.
71459         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71460         Add intprops.
71461         * modules/getloadavg (Files): Remove lib/intprops.h.
71462         (Depends-on): Add intprops.
71463         * modules/human: Likewise.
71464         * modules/inttostr: Likewise.
71465         * modules/openat: Likewise.
71466         * modules/sig2str: Likewise.
71467         * modules/userspec: Likewise.
71468         * modules/utimecmp: Likewise.
71469         * modules/xnanosleep: Likewise.
71470         * modules/xstrtol: Likewise.
71471
71472 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71473
71474         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71475         * modules/lock-tests (TESTS): Use $(EXEEXT).
71476         * modules/tls-tests: Likewise.
71477         * modules/argp-tests: Likewise.
71478         (check_PROGRAMS): New var, replacing...
71479         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71480
71481 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71482
71483         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71484         `config.h'.
71485
71486 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71489
71490 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71491
71492         Sync from coreutils.
71493         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71494         gl_CHDIR_SAFER.
71495
71496 2006-02-22  Jim Meyering  <jim@meyering.net>
71497
71498         Sync from coreutils.
71499         * m4/chdir-safer.m4: New file.
71500
71501 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71504         AT_FDCWD exceeds INT_MAX.
71505         * lib/openat.h (AT_FDCWD): Likewise.
71506
71507 2006-02-17  Eric Blake  <address@hidden>
71508
71509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71510
71511 2006-02-16  Simon Josefsson  <jas@extundo.com>
71512
71513         * modules/getaddrinfo (Depends-on): Add sys_socket.
71514
71515 2006-02-15  Simon Josefsson  <jas@extundo.com>
71516
71517         * build-aux/maint.mk: Add dsyntax-check rule.
71518
71519 2006-02-15  Eric Blake  <ebb9@byu.net>
71520
71521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71522         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71523         'present but cannot compile' warnings on cygwin.
71524         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71525         use ws2tcpip.h if sys/socket.h works.
71526         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71527         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71528
71529 2006-02-14  Simon Josefsson  <jas@extundo.com>
71530
71531         * modules/maintainer-makefile (Files): Rename.
71532
71533         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71534         and (the local) Makefile.cfg to maint-cfg.mk.
71535
71536         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71537         to the latter.
71538
71539         * modules/maintainer-makefile: New module.
71540
71541         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71542         severaly stripped to make it possible to build it up from scratch
71543         with reliable tests.
71544
71545         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71546         fixes to permit overriding the default actions when configure and
71547         makefile are not available.
71548
71549 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71550
71551         Sync from coreutils.
71552         * modules/lstat (Depends-on): Don't depend on xalloc.
71553         (License): Change from GPL to LGPL, since this is now simply a
71554         replacement for a libc function.
71555
71556 2006-02-14  Jim Meyering  <jim@meyering.net>
71557
71558         Sync from coreutils.
71559
71560         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71561         failure on deficient systems, and simplify gnulib lgpl dependencies.
71562         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71563         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71564
71565         * lib/xalloc-die.c: Remove unused definition of N_.
71566
71567 2006-02-14  Jim Meyering  <jim@meyering.net>
71568
71569         Sync from coreutils.
71570         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71571         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71572         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71573         double-quote uses of that variable, to accommodate the rare case in
71574         which getmntent is available in none of the libraries checked.  This
71575         happens at least on FreeBSD 5.0.
71576
71577 2006-02-13  Simon Josefsson  <jas@extundo.com>
71578
71579         * gnulib-tool (Usage): Fix --import, from
71580         karl@freefriends.org (Karl Berry).
71581
71582 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71583
71584         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71585
71586 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71587
71588         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71589         "autoupdate" on 2005-12-12.
71590
71591 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71592
71593         * modules/closeout (Depends-on): Remove atexit.
71594
71595 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71598         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71599
71600 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71601
71602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71603         __EXTENSIONS__ if this causes compilation to fail.  Problem
71604         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71605         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71606
71607 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71608
71609         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71610         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71612         All uses changed.
71613
71614 2006-01-26  Simon Josefsson  <jas@extundo.com>
71615
71616         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71617         prototype is visible on mingw32.
71618
71619         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71620         for mingw32.
71621
71622         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71623         mingw32).
71624
71625 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71626
71627         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71628         attempt to open for write; this always fails, at least on POSIX
71629         hosts.  This reinstates the 2006-01-09 change, which was
71630         inadvertently removed.
71631
71632 2006-01-26  Bruno Haible  <bruno@clisp.org>
71633
71634         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71635         Reported by Paul Eggert.
71636
71637 2006-01-26  Bruno Haible  <bruno@clisp.org>
71638             Paul Eggert  <eggert@cs.ucla.edu>
71639
71640         * lib/stdbool_.h (_Bool)
71641         [(! (defined __cplusplus || defined __BEOS__)
71642           && !defined __GNUC__
71643           && !(defined __HP_cc || defined __xlc__
71644                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71645                || defined __sgi))]:
71646         #define to signed char in these cases too; this simplifies
71647         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71648         etc., separately) and makes it more conservative.
71649
71650 2006-01-25  Simon Josefsson  <jas@extundo.com>
71651
71652         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71653         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71654         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71655
71656 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71657
71658         * lib/argp-namefrob.h: Bugfix. Remove stray #
71659
71660 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71663         so that we test the test.
71664         Check for yet another HP-UX cc bug involving *bool |= bool.
71665
71666 2006-01-25  Karl Berry  <karl@gnu.org>
71667
71668         * config/srclist.txt (vasnprintf.c): sync lost.
71669
71670 2006-01-25  Jim Meyering  <jim@meyering.net>
71671
71672         Sync from the stable (b5) branch of coreutils:
71673
71674         * lib/fts.c (fts_children): Don't let close() clobber errno from
71675         failed fchdir().
71676
71677         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71678         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71679         a dangling symlink.  That can also happen at least for ELOOP.
71680         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71681         FYI, this bug predates the inclusion of fts.c in coreutils.
71682
71683         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71684         in their own block, so pre-c99 compilers don't object.
71685
71686         Avoid the double-free (first in fts_read, second in fts_close) that
71687         would occur when an `active' directory is made inaccessible (e.g.,
71688         via chmod a-x) during a traversal.
71689         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71690         before returning.  Reproduce this failure by
71691         mkdir -p a/b; cd a; chmod a-x . b
71692         Reported by Stavros Passas.
71693
71694 2006-01-25  Jim Meyering  <jim@meyering.net>
71695
71696         * lib/fileblocks.c: Remove more useless parentheses.
71697         * lib/readutmp.h: Likewise.
71698
71699 2006-01-25  Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71702         warnings.
71703         Reported by Paul Eggert.
71704
71705 2006-01-25  Bruno Haible  <bruno@clisp.org>
71706
71707         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71708         rid of a trap command. For Solaris sh.
71709         Reported by Mark D. Baushke <mdb@gnu.org>.
71710
71711 2006-01-24  Simon Josefsson  <jas@extundo.com>
71712
71713         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71714         Bruno.
71715
71716 2006-01-24  Karl Berry  <karl@gnu.org>
71717
71718         * config/srclist.txt (argp-namefrob.h): sync lost.
71719
71720 2006-01-24  Jim Meyering  <jim@meyering.net>
71721
71722         * modules/openat (Files): Add lib/intprops.h.
71723         From Mark D. Baushke.
71724
71725 2006-01-24  Jim Meyering  <jim@meyering.net>
71726
71727         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71728         Reported by Mark D. Baushke.
71729
71730 2006-01-24  Jim Meyering  <jim@meyering.net>
71731
71732         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71733
71734 2006-01-24  Bruno Haible  <bruno@clisp.org>
71735
71736         * modules/strnlen (Maintainer): Change from glibc to all.
71737
71738 2006-01-24  Bruno Haible  <bruno@clisp.org>
71739
71740         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71741         Patch by Paul Eggert.
71742
71743 2006-01-24  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71746         already has it.
71747         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71748         2005-11-26.
71749
71750         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71751         'signed char' to avoid problems with the built-in _Bool type.
71752         Reported by Paul Eggert on 2005-11-26.
71753
71754 2006-01-24  Bruno Haible  <bruno@clisp.org>
71755
71756         * gnulib-tool (func_import): Avoid constructing complicated sed
71757         expressions inside backquote.
71758         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71759
71760 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71761
71762         These changes imported from libc.
71763         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71764         test and two separate function calls.
71765         * lib/strndup.c (__strndup): Add libc_hidden_def.
71766
71767 2006-01-23  Simon Josefsson  <jas@extundo.com>
71768
71769         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71770         Remove the test_*_SOURCES variable: automake infers it by default.
71771         * modules/tls-tests: Likewise.
71772
71773 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         Work around porting bugs reported by Dieter in
71776         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71777         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71778         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71779         Include "getopt.h" first, to check interface.
71780         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71781         !HAVE_DECL_GETENV.
71782         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71783         (__strndup): Revert to K&R-style function dfns, the glibc style.
71784         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71785         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71786         Include strnlen.h first, to get prototype properly.
71787         (strnlen): Renamed from __strnlen.
71788         Remove weak alias.
71789
71790 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71793
71794 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         * config/srclist.txt: Adjust to reflect glibc reorganization.
71797         This affects only comments.
71798
71799 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71800
71801          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71802          Reported by Bruce Korb <bkorb@gnu.org>.
71803
71804 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71805
71806         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71807         to pacify gcc -Wswitch-default.
71808
71809 2006-01-22  Bruno Haible  <bruno@clisp.org>
71810
71811         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71812         temporary buffer for sprintf, take into account the precision also
71813         for 'd', 'i', 'u', 'o', 'x', 'X'.
71814
71815 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71816
71817         * modules/argp-tests: New module
71818         * tests/test-argp.c: New file
71819         * tests/test-argp-2.sh: New file
71820
71821 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71822
71823         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71824         (__argp_base_name): Removed
71825         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71826         typo.
71827         (__argp_base_name): Provide macro definition or extern declaration
71828         depending on the configuration
71829
71830 2006-01-20  Simon Josefsson  <jas@extundo.com>
71831
71832         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71833
71834 2006-01-20  Simon Josefsson  <jas@extundo.com>
71835
71836         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71837
71838 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71839
71840         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71841         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71842         Suggested by Bruno Haible.
71843
71844 2006-01-20  Karl Berry  <karl@gnu.org>
71845
71846         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71847         until changes propagate, I guess.
71848
71849 2006-01-19  Simon Josefsson  <jas@extundo.com>
71850
71851         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71852
71853 2006-01-19  Simon Josefsson  <jas@extundo.com>
71854
71855         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71856
71857 2006-01-19  Simon Josefsson  <jas@extundo.com>
71858
71859         * gnulib-tool: Set check_PROGRAMS.
71860
71861         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71862         modules/des-tests, modules/gc-arcfour-tests,
71863         modules/gc-arctwo-tests, modules/gc-des-tests,
71864         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71865         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71866         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71867         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71868         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71869         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71870         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71871         test_*_SOURCES.
71872
71873 2006-01-18  Simon Josefsson  <jas@extundo.com>
71874
71875         * modules/socklen (Depends-on): Depend on sys_socket.
71876
71877 2006-01-18  Simon Josefsson  <jas@extundo.com>
71878
71879         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71880         modules/des-tests, modules/gc-arcfour-tests,
71881         modules/gc-arctwo-tests, modules/gc-des-tests,
71882         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71883         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71884         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71885         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71886         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71887         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71888         $(EXEEXT) to automake TESTS variable, for mingw32.
71889
71890 2006-01-17  Simon Josefsson  <jas@extundo.com>
71891
71892         * modules/socklen (Include): Need sys/socket.h.
71893
71894 2006-01-17  Bruno Haible  <bruno@clisp.org>
71895
71896         * modules/ssize_t (Include): Add <sys/types.h>.
71897
71898 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71901         it's not portable and it doesn't work with cross-compiles.
71902         Problem reported by Bruno Haible.  Fix missing-$ typo in
71903         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71904         -zignore from being used with Sun's C compiler.
71905
71906 2006-01-12  Simon Josefsson  <jas@extundo.com>
71907
71908         * lib/base64.c: Fix warning, reported by Bruno Haible
71909         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71910
71911 2006-01-12  Bruno Haible  <bruno@clisp.org>
71912
71913         * modules/ldd: New file.
71914         * build-aux/ldd.sh.in: New file.
71915         * MODULES.html.sh (Support for building libraries and executables): Add
71916         ldd.
71917
71918 2006-01-12  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/ldd.m4: New file.
71921
71922 2006-01-12  Bruno Haible  <bruno@clisp.org>
71923
71924         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71925         endless loop while replacing $auxdir with build-aux.
71926
71927 2006-01-11  Simon Josefsson  <jas@extundo.com>
71928
71929         * lib/stdint_.h (SIZE_MAX): Add missing (.
71930
71931 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71932
71933         Sync from coreutils.
71934         * lib/md5.c: Fix commentary typos.
71935         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71936         * lib/md5.h (__attribute__): Remove; unused.
71937         * lib/sha1.c: Fix commentary to match md5 better.
71938         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71939         so that we don't need to worry about alignment.  All uses changed.
71940         This merges the 2005-10-28 md5 change into sha1.
71941
71942 2006-01-11  Jim Meyering  <jim@meyering.net>
71943
71944         Sync from coreutils.
71945         * lib/md5.c (OP): Fix spacing.
71946
71947 2006-01-11  Bruno Haible  <bruno@clisp.org>
71948
71949         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71950         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71951         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71952
71953 2006-01-11  Bruno Haible  <bruno@clisp.org>
71954
71955         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71956         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71957         the "early" section as well.
71958
71959 2006-01-11  Bruno Haible  <bruno@clisp.org>
71960
71961         Avoid "ar: no archive members specified" error on MacOS X.
71962         * gnulib-tool (func_modules_add_dummy): New function.
71963         (func_import, func_create_testdir): Invoke it.
71964
71965 2006-01-11  Bruno Haible  <bruno@clisp.org>
71966
71967         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71968         with $auxdir in AC_CONFIG_FILES statements.
71969
71970 2006-01-11  Bruno Haible  <bruno@clisp.org>
71971
71972         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71973         Initialize also noinst_HEADERS to empty.
71974
71975 2006-01-11  Bruno Haible  <bruno@clisp.org>
71976
71977         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71978         variables.
71979         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71980         autoreconf.
71981
71982 2006-01-11  Bruno Haible  <bruno@clisp.org>
71983
71984         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71985         overridable by the user.
71986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71987
71988 2006-01-10  Simon Josefsson  <jas@extundo.com>
71989
71990         * modules/sys_socket: New file.
71991
71992 2006-01-10  Simon Josefsson  <jas@extundo.com>
71993
71994         * m4/sys_socket_h.m4: New file.
71995
71996 2006-01-10  Simon Josefsson  <jas@extundo.com>
71997
71998         * lib/socket_.h: New file.
71999
72000 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * modules/readutmp (Maintainer): Add myself.
72003
72004 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72007         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72008         People who are still concerned with buggy memcmp implementations
72009         can invoke gl_FUNC_MEMCMP themselves.
72010
72011 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72012
72013         * lib/regex_internal.h (BITSET_WORD_BITS):
72014         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72015         preprocessor mishandles large unsigned values as if they were signed.
72016         Problem reported by Claudio Fontana in
72017         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72018
72019 2006-01-10  Jim Meyering  <jim@meyering.net>
72020
72021         Avoid the double-free (first in fts_read, second in fts_close) that
72022         would occur when an `active' directory is made inaccessible (e.g.,
72023         via chmod a-x) during a traversal.
72024         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72025         before returning.  Reproduce this failure by
72026         mkdir -p a/b; cd a; chmod a-x . b
72027         Reported by Stavros Passas.
72028
72029         Sync from coreutils.
72030         * lib/sha1.c: Tweak grammar in a comment.
72031
72032 2006-01-10  Jim Meyering  <jim@meyering.net>
72033
72034         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72035         Patch by Joerg Sonnenberger.
72036
72037 2006-01-10  Bruno Haible  <bruno@clisp.org>
72038
72039         * modules/readutmp: Depend on module free.
72040         * modules/strtok_r: Depend on module restrict.
72041
72042 2006-01-10  Bruno Haible  <bruno@clisp.org>
72043
72044         * modules/gettext (configure.ac): Add an invocation of
72045         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72046
72047 2006-01-10  Bruno Haible  <bruno@clisp.org>
72048
72049         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72050         Reported by Werner Lemberg <wl@gnu.org>.
72051
72052 2006-01-10  Bruno Haible  <bruno@clisp.org>
72053
72054         * lib/localcharset.c: Update from GNU gettext.
72055
72056 2006-01-10  Bruno Haible  <bruno@clisp.org>
72057
72058         * lib/argp.h (__const): Remove macro. Use const instead.
72059         * lib/argp-fmtstream.h (__const): Likewise.
72060         * lib/glob_.h (__const): Remove macro.
72061         * lib/glob-libc.h: Use const instead of __const.
72062
72063 2006-01-10  Bruno Haible  <bruno@clisp.org>
72064
72065         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72066         variable.
72067         Needed to avoid an automake error regarding the 'gettext' module.
72068
72069 2006-01-09  Simon Josefsson  <jas@extundo.com>
72070
72071         * modules/inet_ntop (Depends-on): Add restrict.
72072
72073 2006-01-09  Simon Josefsson  <jas@extundo.com>
72074
72075         * modules/gc-rijndael-tests (License): Put under LGPL.
72076
72077         * modules/gc-des-tests (License): Likewise.
72078
72079         * modules/gc-arcfour-tests (License): Likewise.
72080
72081         * modules/gc-arctwo-tests (License): Likewise.
72082
72083         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72084
72085         * modules/gc-hmac-sha1-tests (Files): Likewise.
72086
72087         * modules/gc-hmac-md5-tests (License): Likewise.
72088
72089         * modules/gc-sha1-tests (License): Likewise.
72090
72091         * modules/gc-md5-tests (License): Likewise.
72092
72093         * modules/gc-md4-tests (License): Likewise.
72094
72095         * modules/gc-md2-tests (License): Likewise.
72096
72097         * modules/gc-tests (License): Likewise.
72098
72099         * modules/des-tests (License): Likewise.
72100
72101         * modules/md4-tests (License): Likewise.
72102
72103         * modules/md2-tests (License): Likewise.
72104
72105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         Sync from coreutils:
72108
72109         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72110         * modules/lib-ignore: New file.
72111         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72112         chdir-safer.m4, lchmod.m4.
72113         * modules/openat: Add mkdirat.c, openat-priv.h.
72114
72115 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72116
72117         Sync from coreutils.
72118         * m4/lib-ignore.m4: New file.
72119         * m4/lchmod.m4: New file.
72120
72121 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72122
72123         Sync from coreutils.
72124         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72125         for write access: POSIX says that must fail.
72126         * lib/fts.c (diropen): Likewise.
72127         * lib/save-cwd.c (save_cwd): Likewise.
72128         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72129         well, for minor improvements on hosts that lack O_DIRECTORY.
72130         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72131         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72132         Fall back on chown if open failed with EACCES.
72133
72134         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72135         Report an error at compile-time if only a 1-second nominal clock
72136         resolution is found.
72137
72138         * lib/lchmod.h: New file.
72139         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72140         (make_dir_parents): Use lchown rather than chown, and
72141         lchmod rather than chmod.
72142
72143         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72144         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72145         "proc" reported by n0dalus.
72146
72147         * lib/mountlist.c: Include <limits.h>.
72148         (dev_from_mount_options)
72149         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72150         New function.  It no longer assumes "dev=" has the System V meaning
72151         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72152         (read_file_system_list)
72153         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72154         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72155         dev= in that case.
72156
72157         * lib/posixtm.h (PDS_PRE_2000): New macro.
72158         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72159         allow_century.  All usages changed.  Reject dates outside the range
72160         1969-1999 if PDS_PRE_2000 is used.
72161
72162 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72163
72164         Sync from coreutils.
72165         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72166         (Time of day items): Mention the possibility of leap seconds.
72167         Problem reported by Dr. David Alan Gilbert.
72168
72169 2006-01-09  Jim Meyering  <jim@meyering.net>
72170
72171         Sync from coreutils.
72172
72173         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72174
72175         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72176
72177         * lib/modechange.c (mode_compile): Reject an invalid mode string
72178         that starts with an octal digit.  From Andreas Gruenbacher.
72179
72180         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72181         and dup to open_safer and dup_safer, respectively.
72182         (openat_permissive): Fix typo in comment.
72183
72184         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72185         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72186         (_): Remove; no longer needed.
72187         (openat): Renamed from rpl_openat; no need for rpl_openat
72188         since openat.h renames openat for us.
72189         Replace most of the body with a call to openat_permissive,
72190         to avoid duplicate code.
72191         Port to (probably hypothetical) environments were mode_t is
72192         wider than int.
72193         (openat_permissive): Require mode arg, so that we can check
72194         types better.  Put it just after flags.  Change cwd failure
72195         indicator from pointer-to-bool to pointer-to-errno-value.
72196         All callers changed.
72197         Invoke openat_save_fail and/or openat_restore_fail if
72198         cwd_errno is null, so that openat can call us.
72199         (openat_permissive, fdopendir, fstatat, unlinkat):
72200         Simplify errno handling to avoid some duplicate code,
72201         as it's OK to set errno on success.
72202         * lib/openat.h: Revamp code so that function macros depend on
72203         __OPENAT_PREFIX only, not also on AT_FDCWD.
72204         (openat_ro): Remove.  Caller changed to use openat_permissive.
72205         (openat_permissive): Now a macro, if not a function.
72206         (openat_restore_fail, openat_save_fail): Now always functions,
72207         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72208
72209         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72210         and openat.c.
72211         * lib/mkdirat.c: Include openat-priv.h.
72212         Remove definitions of macros defined therein.
72213         * lib/openat.c: Likewise.
72214
72215         * lib/mkdirat.c (mkdirat): New file and function.
72216         * lib/openat.h (mkdirat): Declare.
72217
72218         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72219
72220         * lib/openat.h (openat_permissive): Declare.
72221         (openat_ro): Define.
72222
72223         * lib/openat.c (EXPECTED_ERRNO): New macro.
72224         (openat_permissive): New function -- used in remove.c rewrite.
72225         (all functions): Set errno just before returning, only if there
72226         was an actual failure.
72227         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72228
72229         Emulate openat-family functions using Linux's procfs, if possible.
72230         Idea and some code based on Ulrich Drepper's glibc changes.
72231
72232         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72233         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72234         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72235         before falling back on save_cwd and restore_cwd.
72236         (fdopendir, fstatat, unlinkat): Likewise.
72237
72238         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72239         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72240
72241         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72242         as second argument to va_arg.  Otherwise, some versions of gcc
72243         warn that `if this code is reached, the program will abort'.
72244
72245 2006-01-09  Jim Meyering  <jim@meyering.net>
72246
72247         Sync from coreutils.
72248         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72249         Require openat-priv.h.
72250
72251 2006-01-09  Bruno Haible  <bruno@clisp.org>
72252
72253         * modules/strnlen (Include): Use strnlen.h.
72254
72255 2006-01-09  Bruno Haible  <bruno@clisp.org>
72256
72257         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72258
72259 2006-01-09  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/sysexit_.h (EX_OK): New macro.
72262         Suggested by Martin Lambers <marlam@marlam.de>.
72263
72264 2006-01-09  Bruno Haible  <bruno@clisp.org>
72265
72266         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72267         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72268
72269 2006-01-09  Bruno Haible  <bruno@clisp.org>
72270
72271         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72272         numbers.
72273
72274 2006-01-09  Bruno Haible  <bruno@clisp.org>
72275
72276         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72277         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72278         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72279         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72280
72281 2006-01-09  Bruno Haible  <bruno@clisp.org>
72282
72283         * build-aux/javacomp.sh.in: New file, moved from lib/.
72284         * modules/javacomp-script (Files): Update.
72285         (configure.ac): Add AC_CONFIG_FILES invocation.
72286         (EXTRA_DIST): Remove variable.
72287
72288         * build-aux/javaexec.sh.in: New file, moved from lib/.
72289         * modules/javaexec (Files): Update.
72290         (configure.ac): Add AC_CONFIG_FILES invocation.
72291         (EXTRA_DIST): Remove javaexec.sh.in.
72292
72293         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72294         * modules/csharpcomp-script (Files): Update.
72295         (configure.ac): Add AC_CONFIG_FILES invocation.
72296         (EXTRA_DIST): Remove variable.
72297
72298         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72299         * modules/csharpexec (Files): Update.
72300         (configure.ac): Add AC_CONFIG_FILES invocation.
72301         (EXTRA_DIST): Remove csharpexec.sh.in.
72302
72303 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72304
72305         Sync from coreutils.
72306
72307         Add POSIX ACL support
72308         * lib/acl.h (copy_acl, set_acl): Add declarations.
72309         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72310         systems other than Linux.
72311         (chmod_or_fchmod): New function: use fchmod when possible,
72312         and chmod otherwise.
72313         (file_has_acl): Add a POSIX ACL implementation, with a
72314         Linux-specific subcase.
72315         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72316         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72317         acls are unsupported.
72318         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72319         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72320         are unsupported.
72321
72322 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72323
72324         Sync from coreutils.
72325         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72326
72327 2006-01-07  Bruno Haible  <bruno@clisp.org>
72328
72329         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72330         gl_EARLY.
72331
72332 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72335         Problem reported for Mingw by Mark Junker.
72336
72337 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         * README: Gnulib normally doesn't generate a tarball.
72340
72341 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72342
72343         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72344         long int, not int, for nanosecond counts, so that people who are
72345         used to POSIX struct timespec won't be surprised.  Reported by Jim
72346         Meyering.
72347
72348 2005-12-28  Bruno Haible  <bruno@clisp.org>
72349
72350         * build-aux/config.rpath: Update from GNU gettext.
72351
72352 2005-12-16  Jim Meyering  <jim@meyering.net>
72353
72354         * modules/fprintftime: New module.
72355         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72356
72357 2005-12-16  Jim Meyering  <jim@meyering.net>
72358
72359         * m4/fprintftime.m4: New file.
72360
72361 2005-12-16  Jim Meyering  <jim@meyering.net>
72362
72363         * lib/fprintftime.c, lib/fprintftime.h: New files.
72364
72365 2005-12-15  Simon Josefsson  <jas@extundo.com>
72366
72367         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72368         new m4/socklen.m4.
72369
72370 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72371
72372         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72373         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72374
72375 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72376
72377         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72378         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72379         struct uparams is valid. Fall back to the default values if it is
72380         not.
72381
72382 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72383
72384         * modules/argp (Files): Add argp-pin.c
72385         (Depends-on): dirname
72386         (lib_SOURCES): Add argp-pin.c
72387
72388 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72389
72390         * m4/argp.m4:  Check if program_invocation_name and
72391         program_invocation_short_name are declared and define appropriate
72392         macros if they are not.
72393
72394 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72395
72396         * lib/argp-help.c (__argp_base_name): New function
72397         (__argp_short_program_name): Rewrite using __argp_base_name
72398         * lib/argp-namefrob.h: Define program_invocation_name and
72399         program_invocation_short_name if requested
72400         (__argp_base_name): Add prototype
72401         * lib/argp-parse.c (argp_def): Use gettext wrappers
72402         (argp_default_parser): Use __argp_base_name
72403         * lib/argp-pin.c: New file. Defines program_invocation_name and
72404         program_invocation_short_name on systems that lack them.
72405
72406 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72409         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72410         porting problem reported by Georg Schwarz in
72411         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72412
72413 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72416         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72417         porting problem reported by Georg Schwarz in
72418         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72419
72420 2005-12-05  Bruno Haible  <bruno@clisp.org>
72421
72422         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72423         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72424         Reported by Mark Junker <mjscod@gmx.de>.
72425
72426 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72429         Use implementation from Albert Chin, with some
72430         comments/corrections by Stepan Kasal and myself.
72431
72432 2005-12-02  Bruno Haible  <bruno@clisp.org>
72433
72434         * gnulib-tool (func_import): Accept GPLed build tool modules when
72435         --lgpl is given.
72436         * modules/csharpcomp-script: New file.
72437         * modules/csharpcomp: Depend on it.
72438         * modules/javacomp-script: New file.
72439         * modules/javacomp: Depend on it.
72440         Suggested by Simon Josefsson.
72441
72442 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72445         statement, to work around an HP-UX 10.20 compiler bug reported by
72446         Peter O'Gorman.
72447
72448 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72449
72450         * modules/savedir (Depends-on): Add openat.
72451
72452 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72453
72454         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72455         (uintmax_t) [defined uintmax_t]: Do not declare.
72456         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72457         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72458         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72459         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72460         sake of portability to weird hosts that C allows (though we don't
72461         know of any practical examples).
72462
72463         * lib/savedir.h (fdsavedir): New decl.
72464         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72465         contains most of the former guts of savedir.
72466         (savedir): Use savedirstream.
72467         Include "openat.h".
72468
72469 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72470
72471         * modules/obstack (Files): Add m4/ulonglong.m4.
72472         Problem reported by Davide Angelocola.
72473
72474 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72475
72476         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72477         coreutils no longer futzes with rounding modes.
72478
72479 2005-11-14  Jim Meyering  <jim@meyering.net>
72480
72481         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72482         replacement of mkstemp.
72483
72484 2005-11-10  Simon Josefsson  <jas@extundo.com>
72485
72486         * lib/readline.c: Remove EOL.
72487
72488 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         * modules/gethrxtime (Depends-on): Add gettime.
72491
72492 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72495         or gettimeofday; no longer needed.
72496
72497 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72500         time business.
72501         (gethrxtime) [! (HAVE_NANOUPTIME
72502         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72503         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72504         our own approximation.
72505
72506 2005-11-08  Eric Blake  <ebb9@byu.net>
72507
72508         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72509
72510 2005-11-08  Eric Blake  <ebb9@byu.net>
72511
72512         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72513
72514 2005-11-04  Bruno Haible  <bruno@clisp.org>
72515
72516         * gnulib-tool: Implement --update mode.
72517
72518 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         Fix porting problem reported by Theodoros V. Kalamatianos.
72521         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72522         Don't assume that futimes failing means we must fail.
72523
72524 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72527         variables to suggest the intended function of the PATH_MAX check.
72528
72529 2005-10-30  Kean Johnston  <jkj@sco.com>
72530
72531         Trivial changes to support SCO systems.
72532         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72533         as PATH_MAX.
72534         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72535         where __ptr is null when no I/O is pending.
72536
72537 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72538
72539         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72540         leave errno alone.  Problem reported by Dmitry V. Levin.
72541
72542 2005-10-28  Simon Josefsson  <jas@extundo.com>
72543
72544         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72545         Test more.
72546
72547         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72548
72549         * modules/md2, modules/md2-tests: New files.
72550
72551 2005-10-28  Simon Josefsson  <jas@extundo.com>
72552
72553         * m4/inet_ntop.m4: More tests.
72554
72555         * m4/gc-md2.m4, md2.m4: New file.
72556
72557 2005-10-28  Simon Josefsson  <jas@extundo.com>
72558
72559         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72560         "restrict" keywords, as per POSIX.  Protect the function
72561         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72562         Don't use K&R prototypes.  Check the sprintf return values.
72563         Re-define EAFNOSUPPORT if not present.  Indent.
72564
72565         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72566         suggested by Bruno Haible <bruno@clisp.org>.
72567
72568         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72569
72570         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72571
72572         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72573         libgcrypt).
72574
72575         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72576
72577         * lib/md2.h, lib/md2.c: New files.
72578
72579 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72582         errno alone.  Problem reported by Frederic Jolliton.
72583
72584 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72585
72586         * modules/verify (License): Change from GPL to LGPL.  This is a
72587         tiny module and there are apparently near-equivalents that are
72588         under the BSD license.
72589
72590 2005-10-24  Simon Josefsson  <jas@extundo.com>
72591
72592         * modules/sha1: Relicense to LGPL.
72593
72594 2005-10-24  Simon Josefsson  <jas@extundo.com>
72595
72596         * lib/md4.h: Shrink buffer size, now that we changed the type.
72597
72598 2005-10-23  Simon Josefsson  <jas@extundo.com>
72599
72600         * gnulib-tool (func_import): Fix --tests-base.
72601
72602 2005-10-22  Simon Josefsson  <jas@extundo.com>
72603
72604         * modules/arcfour (Depends-on): Need stdint.
72605
72606 2005-10-22  Simon Josefsson  <jas@extundo.com>
72607
72608         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72609         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72610
72611 2005-10-22  Simon Josefsson  <jas@extundo.com>
72612
72613         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72614         suggested by Bruno Haible <bruno@clisp.org>.
72615
72616 2005-10-22  Simon Josefsson  <jas@extundo.com>
72617
72618         * lib/crc.h: Include stddef.h, for size_t.
72619
72620 2005-10-22  Simon Josefsson  <jas@extundo.com>
72621
72622         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72623         arcfour_context struct (simplify test vector testing in GNU
72624         Shishi).
72625
72626 2005-10-21  Simon Josefsson  <jas@extundo.com>
72627
72628         * modules/des, modules/des-tests: New files.
72629
72630         * modules/gc-des, modules/gc-des-tests: New files.
72631
72632         * tests/test-des.c, tests/test-gc-des.c: New file.
72633
72634 2005-10-21  Simon Josefsson  <jas@extundo.com>
72635
72636         * modules/arctwo, modules/arctwo-tests: New files.
72637
72638         * tests/test-arctwo.c: New file.
72639
72640         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72641
72642         * tests/test-gc-arctwo.c: New file.
72643
72644 2005-10-21  Simon Josefsson  <jas@extundo.com>
72645
72646         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72647         Bruno Haible <bruno@clisp.org>.
72648
72649         * m4/gc-des.m4: New file.
72650
72651 2005-10-21  Simon Josefsson  <jas@extundo.com>
72652
72653         * m4/arctwo.m4: New file.
72654
72655         * m4/gc-arctwo.m4: New file.
72656
72657 2005-10-21  Simon Josefsson  <jas@extundo.com>
72658
72659         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72660         block.
72661
72662 2005-10-21  Simon Josefsson  <jas@extundo.com>
72663
72664         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72665         <bruno@clisp.org>.
72666
72667         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72668
72669         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72670         Bruno Haible <bruno@clisp.org>.
72671
72672         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72673         <bruno@clisp.org>.
72674
72675 2005-10-21  Simon Josefsson  <jas@extundo.com>
72676
72677         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72678
72679 2005-10-21  Simon Josefsson  <jas@extundo.com>
72680
72681         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72682
72683 2005-10-21  Simon Josefsson  <jas@extundo.com>
72684
72685         * lib/des.h, lib/des.c: New files.
72686
72687         * lib/gc-gnulib.c: Support DES.c
72688
72689 2005-10-21  Simon Josefsson  <jas@extundo.com>
72690
72691         * lib/arctwo.h, lib/arctwo.c: New files.
72692
72693         * lib/gc-gnulib.c: Support ARCTWO.
72694
72695 2005-10-21  Simon Josefsson  <jas@extundo.com>
72696
72697         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72698         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72699
72700 2005-10-21  Simon Josefsson  <jas@extundo.com>
72701
72702         * gnulib-tool (func_import, func_create_testdir): Define automake
72703         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72704         Makefile.am snippet),
72705         suggested by Bruno Haible <bruno@clisp.org>.
72706
72707         * modules/gc (Makefile.am): Use it.
72708
72709 2005-10-21  Bruno Haible  <bruno@clisp.org>
72710
72711         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72712         patch.
72713
72714 2005-10-19  Simon Josefsson  <jas@extundo.com>
72715
72716         * tests/test-gc-rijndael.c: New file.
72717
72718         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72719
72720 2005-10-19  Simon Josefsson  <jas@extundo.com>
72721
72722         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72723         interface too.
72724
72725 2005-10-19  Simon Josefsson  <jas@extundo.com>
72726
72727         * tests/test-gc-arcfour.c: New file.
72728
72729         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72730
72731 2005-10-19  Simon Josefsson  <jas@extundo.com>
72732
72733         * modules/gc-md4, modules/gc-md4-tests: New file.
72734
72735         * tests/test-gc-md4.c: New file.
72736
72737 2005-10-19  Simon Josefsson  <jas@extundo.com>
72738
72739         * m4/gc-md4.m4: New file.
72740
72741 2005-10-19  Simon Josefsson  <jas@extundo.com>
72742
72743         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72744         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72745         <kasal@ucw.cz>.
72746
72747 2005-10-19  Simon Josefsson  <jas@extundo.com>
72748
72749         * m4/gc-arcfour.m4: New file.
72750
72751         * m4/gc-rijndael.m4: New file.
72752
72753 2005-10-19  Simon Josefsson  <jas@extundo.com>
72754
72755         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72756
72757 2005-10-19  Simon Josefsson  <jas@extundo.com>
72758
72759         * lib/gc-gnulib.c: Support ARCFOUR.
72760
72761 2005-10-19  Simon Josefsson  <jas@extundo.com>
72762
72763         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72764         support.
72765
72766         * lib/gc.h: Add ECB enum type.
72767
72768         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72769
72770 2005-10-18  Simon Josefsson  <jas@extundo.com>
72771
72772         * tests/test-md5.c: New file.
72773
72774         * modules/md5-tests: New file.
72775
72776 2005-10-18  Simon Josefsson  <jas@extundo.com>
72777
72778         * tests/test-md4.c: New file.
72779
72780         * modules/md4, modules/md4-tests: New files.
72781
72782 2005-10-18  Simon Josefsson  <jas@extundo.com>
72783
72784         * m4/md4.m4: New file.
72785
72786 2005-10-18  Simon Josefsson  <jas@extundo.com>
72787
72788         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72789
72790 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72791
72792         * gnulib-tool (func_create_testdir): Omit the second check whether
72793         BUILT_SOURCES in nonempty.
72794
72795 2005-10-17  Simon Josefsson  <jas@extundo.com>
72796
72797         * tests/test-rijndael.c: New file.
72798
72799 2005-10-17  Simon Josefsson  <jas@extundo.com>
72800
72801         * modules/sha1: Depend on stdint instead of md5.
72802
72803         * modules/md5: Depend on stdint, remove uint32_t.
72804
72805 2005-10-17  Simon Josefsson  <jas@extundo.com>
72806
72807         * modules/gc-sha1-tests: New file.
72808
72809         * tests/test-gc-sha1.c: New file.
72810
72811 2005-10-17  Simon Josefsson  <jas@extundo.com>
72812
72813         * m4/md5.m4: Remove call to uint32_t.m4.
72814
72815 2005-10-17  Simon Josefsson  <jas@extundo.com>
72816
72817         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72818
72819         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72820         md5.h.
72821
72822         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72823
72824         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72825
72826 2005-10-17  Simon Josefsson  <jas@extundo.com>
72827
72828         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72829
72830 2005-10-17  Simon Josefsson  <jas@extundo.com>
72831
72832         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72833
72834 2005-10-17  Simon Josefsson  <jas@extundo.com>
72835
72836         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72837
72838         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72839
72840 2005-10-17  Bruno Haible  <bruno@clisp.org>
72841
72842         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72843         that it can also be used in a test.
72844
72845 2005-10-16  Bruno Haible  <bruno@clisp.org>
72846
72847         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72848         TESTS_ENVIRONMENT, so that individual tests can augment it.
72849
72850         * gnulib-tool (func_create_testdir): Use an intermediate target for
72851         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72852         macros, like $(ALLOCA_H), which cannot be passed through the command
72853         line.
72854
72855 2005-10-15  Simon Josefsson  <jas@extundo.com>
72856
72857         * modules/rijndael-tests: New file.
72858
72859         * modules/rijndael: New file.
72860
72861 2005-10-15  Simon Josefsson  <jas@extundo.com>
72862
72863         * m4/rijndael.m4: New file.
72864
72865 2005-10-15  Simon Josefsson  <jas@extundo.com>
72866
72867         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72868
72869         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72870
72871 2005-10-14  Simon Josefsson  <jas@extundo.com>
72872
72873         * tests/test-arcfour.c: New file.
72874
72875         * modules/arcfour, modules/arcfour-tests: New files.
72876
72877 2005-10-14  Simon Josefsson  <jas@extundo.com>
72878
72879         * m4/arcfour.m4: New file.
72880
72881 2005-10-14  Simon Josefsson  <jas@extundo.com>
72882
72883         * lib/arcfour.h, lib/arcfour.c: New files.
72884
72885 2005-10-14  Roland McGrath  <roland@redhat.com>
72886
72887         Import from libc.  [BZ #1331]
72888         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72889         macro argument.
72890         Reported by Matej Vela <vela@debian.org>.
72891
72892 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72895         include <wchar.h>; no longer needed.
72896
72897 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72898
72899         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72900
72901 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72902         and  Ulrich Drepper  <drepper@redhat.com>
72903
72904         Import from libc.
72905         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72906         instead of inline stream orientation test and two separate
72907         function calls.  Pay no attention to USE_IN_LIBIO.
72908
72909 2005-10-13  Simon Josefsson  <jas@extundo.com>
72910
72911         * modules/gc-hmac-md5-tests: New file.
72912
72913         * tests/test-gc-hmac-sha1.c: New file.
72914
72915         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72916
72917         * modules/gc-hmac-md5-tests: New file.
72918
72919         * tests/test-gc-md5.c: New file.
72920
72921         * modules/gc-md5-tests: New file.
72922
72923 2005-10-13  Simon Josefsson  <jas@extundo.com>
72924
72925         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72926         Move memory allocation outside of loop.
72927
72928 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72931         intermediate directory is in a read-only file system.  Problem
72932         reported by Eric Blake.
72933
72934 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72935
72936         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72937
72938 2005-10-12  Simon Josefsson  <jas@extundo.com>
72939
72940         * tests/test-hmac-sha1.c: New file.
72941
72942         * modules/hmac-sha1-tests: New file.
72943
72944         * modules/hmac-sha1: New file.
72945
72946 2005-10-12  Simon Josefsson  <jas@extundo.com>
72947
72948         * modules/gc-sha1: New file.
72949
72950 2005-10-12  Simon Josefsson  <jas@extundo.com>
72951
72952         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72953
72954         * tests/test-gc-pbkdf2-sha1.c: New file.
72955
72956 2005-10-12  Simon Josefsson  <jas@extundo.com>
72957
72958         * modules/gc-md5, modules/gc-hmac-md5: New files.
72959
72960         * modules/gc (Files): Remove md5, memxor and hmac files.
72961
72962 2005-10-12  Simon Josefsson  <jas@extundo.com>
72963
72964         * m4/gc-pbkdf2-sha1.m4: New file.
72965
72966         * m4/gc-hmac-sha1.m4: New file.
72967
72968         * m4/gc-sha1: New file.
72969
72970         * m4/hmac-sha1.m4: New file.
72971
72972 2005-10-12  Simon Josefsson  <jas@extundo.com>
72973
72974         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72975
72976         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72977
72978 2005-10-12  Simon Josefsson  <jas@extundo.com>
72979
72980         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72981         suggested by Bruno Haible <bruno@clisp.org>.
72982
72983 2005-10-12  Simon Josefsson  <jas@extundo.com>
72984
72985         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72986
72987 2005-10-12  Simon Josefsson  <jas@extundo.com>
72988
72989         * lib/gc-pbkdf2-sha1.c: New file.
72990
72991         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72992
72993 2005-10-12  Simon Josefsson  <jas@extundo.com>
72994
72995         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72996
72997         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72998
72999 2005-10-12  Simon Josefsson  <jas@extundo.com>
73000
73001         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73002         GC_USE_HMAC_MD5, respectively.
73003
73004         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73005         (gc_md5): Fix typo.
73006
73007         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73008
73009         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73010
73011         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73012
73013 2005-10-12  Bruno Haible  <bruno@clisp.org>
73014
73015         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73016         Reported by Stepan Kasal <kasal@ucw.cz>.
73017
73018 2005-10-11  Simon Josefsson  <jas@extundo.com>
73019
73020         * tests/test-crc.c: New file.
73021
73022         * modules/crc, modules/crc-tests: New files.
73023
73024 2005-10-11  Simon Josefsson  <jas@extundo.com>
73025
73026         * m4/crc.m4: New file.
73027
73028 2005-10-11  Simon Josefsson  <jas@extundo.com>
73029
73030         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73031
73032         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73033
73034         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73035
73036 2005-10-11  Simon Josefsson  <jas@extundo.com>
73037
73038         * lib/crc.h, lib/crc.c: New files.
73039
73040         * lib/gc.h (gc_hash_buffer): Add doc.
73041
73042 2005-10-11  Bruno Haible  <bruno@clisp.org>
73043
73044         * modules/c-strcasestr: New file.
73045         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73046
73047 2005-10-11  Bruno Haible  <bruno@clisp.org>
73048
73049         * modules/c-strcase: New file.
73050         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73051
73052 2005-10-11  Bruno Haible  <bruno@clisp.org>
73053
73054         * lib/strcasecmp.c: Include limits.h.
73055         (strcasecmp): Avoid integer overflow on exotic platforms.
73056         * lib/strncasecmp.c: Include limits.h.
73057         (strncasecmp): Avoid integer overflow on exotic platforms.
73058         Reported by Paul Eggert.
73059
73060 2005-10-11  Bruno Haible  <bruno@clisp.org>
73061
73062         * lib/c-strcasestr.h: New file, from GNU gettext.
73063         * lib/c-strcasestr.c: New file, from GNU gettext.
73064
73065 2005-10-11  Bruno Haible  <bruno@clisp.org>
73066
73067         * lib/c-strcase.h: New file, from GNU gettext.
73068         * lib/c-strcasecmp.c: New file, from GNU gettext.
73069         * lib/c-strncasecmp.c: New file, from GNU gettext.
73070
73071 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * modules/mempcpy (License): GPL -> LGPL.
73074         * modules/strchrnul (License): Likewise.
73075         * modules/sysexits (License): Likewise.
73076
73077 2005-10-08  Simon Josefsson  <jas@extundo.com>
73078
73079         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73080
73081 2005-10-07  Simon Josefsson  <jas@extundo.com>
73082
73083         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73084
73085 2005-10-06  Simon Josefsson  <jas@extundo.com>
73086
73087         * tests/test-hmac-md5.c: New file.
73088
73089         * modules/hmac-md5-tests: New file.
73090
73091         * modules/hmac-md5: New file.
73092
73093 2005-10-06  Simon Josefsson  <jas@extundo.com>
73094
73095         * m4/hmac-md5.m4: New file.
73096
73097         * m4/memxor.m4: Require gl_C_RESTRICT.
73098
73099 2005-10-06  Simon Josefsson  <jas@extundo.com>
73100
73101         * lib/memxor.c (memxor): Avoid casts and warnings.
73102
73103 2005-10-06  Simon Josefsson  <jas@extundo.com>
73104
73105         * lib/hmac-md5.c: New file.
73106
73107         * lib/hmac.h: New file.
73108
73109 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73110
73111         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73112         promotes to int, not unsigned int, to catch the AIX 5.3
73113         compiler bug.
73114
73115 2005-10-05  Simon Josefsson  <jas@extundo.com>
73116
73117         * modules/memxor: New file.
73118
73119         * modules/iconv (Files): Move config.rpath to havelib, it is used
73120         there.
73121
73122         * modules/havelib (Files): Add config.rpath.
73123
73124 2005-10-05  Simon Josefsson  <jas@extundo.com>
73125
73126         * m4/memxor.m4: New file.
73127
73128 2005-10-05  Simon Josefsson  <jas@extundo.com>
73129
73130         * lib/memxor.c (memxor): Fix compiler error.
73131
73132         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73133         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73134
73135         * lib/memxor.h, lib/memxor.c: New files.
73136
73137         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73138         we assume all systems have it, suggested by Jim Meyering
73139         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73140         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73141         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73142         same reasons.
73143
73144 2005-10-05  Simon Josefsson  <jas@extundo.com>
73145
73146         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73147
73148 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73151         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73152         needed, since the source code now assumes these .h files.
73153
73154 2005-10-05  Derek Price  <derek@ximbiot.com>
73155
73156         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73157
73158 2005-10-05  Bruno Haible  <bruno@clisp.org>
73159
73160         * modules/stdint (License): Change to LGPL.
73161
73162 2005-10-04  Simon Josefsson  <jas@extundo.com>
73163
73164         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73165         D. Baushke" <mdb@gnu.org>.
73166
73167 2005-10-04  Bruno Haible  <bruno@clisp.org>
73168
73169         * lib/verify.h (verify_true): Provide alternative definition for C++.
73170
73171 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73174         (SSIZE_MAX): New macro, if not already defined.
73175         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73176         than 2 GiB.
73177
73178 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         Sync from coreutils.
73181         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73182         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73183         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73184         ULLONG_MAX doesn't work with 2.7.2.1.
73185
73186 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73187
73188         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73189         From Ben Pfaff.
73190
73191         * modules/exclude (Depends-on): Depend on verify.
73192         * modules/strtoimax (Depends-on): Likewise.
73193         * modules/utimecmp (Depends-on): Likewise.
73194
73195 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * lib/exclude.c: Include verify.h.
73198         (verify): Remove.  All callers changed to use verify.h's version.
73199         * lib/strtoimax.c: Likewise.
73200         * lib/utimecmp.c: Likewis.e
73201
73202         Sync from coreutils.
73203         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73204         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73205         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73206         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73207         bother returning ENOSYS if settimeofday or stime fails; just let
73208         them return whatever errno they want to return.
73209         * lib/utimens.c: Include unistd.h, for dup2.
73210         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73211         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73212
73213 2005-10-02  Jim Meyering  <jim@meyering.net>
73214
73215         Sync from coreutils.
73216         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73217         from glibc-2.2.5 that fails for read-only files.
73218
73219 2005-10-02  Jim Meyering  <jim@meyering.net>
73220
73221         Sync from coreutils.
73222         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73223         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73224         `#if HAVE_CONFIG_H'.
73225         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73226         Remove AT_FDCWD test.
73227         Do not consume the fd unless successful.
73228         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73229         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73230         block, so that we don't even try to compile it if settimeofday is
73231         available.  This works around a compilation failure on OSF1 V5.1,
73232         due to stime requiring a `long int*' while tv_sec is `int'.
73233
73234 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73235
73236         Sync from coreutils.
73237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73238         against `yes', rather than just testing for nonempty.
73239
73240 2005-10-01  Simon Josefsson  <jas@extundo.com>
73241
73242         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73243         and Darwin.
73244
73245         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73246         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73247         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73248         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73249         Check if struct addrinfo is declared.
73250
73251 2005-10-01  Simon Josefsson  <jas@extundo.com>
73252
73253         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73254         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73255         AI_* and EAI_* definitions.  Protect function declarations.
73256
73257 2005-10-01  Jim Meyering  <jim@meyering.net>
73258
73259         Sync from coreutils.
73260
73261         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73262         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73263         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73265         in the inet and nsl libraries.  Required on Solaris 5.7.
73266
73267 2005-10-01  Jim Meyering  <jim@meyering.net>
73268
73269         Sync from coreutils.
73270         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73271         in the inet and nsl libraries.  Required on Solaris 5.7.
73272
73273 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73274
73275         * lib/getdelim.c (getdelim): Remove unused variables.
73276
73277 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73280         so that the code works even with ancient cpp.  Portability problem
73281         with GCC 2.7.2.1 reported by Thomas M.Ott.
73282
73283 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * modules/regex (Depends-on): Add strcase.
73286
73287         * modules/gethostname (Licence): Change from GPL to LGPL, since
73288         gethostname.c is a trivial implementation of a standard library
73289         function.
73290         * modules/poll (License): Change from GPL to LGPL, since it's
73291         derived from LGPL code.
73292
73293 2005-09-27  Jim Meyering  <jim@meyering.net>
73294
73295         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73296         HAVE_CONFIG_H.
73297
73298         * lib/intprops.h (signed_type_or_expr__): Define.
73299         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73300         for unsigned types.
73301
73302 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * lib/verify.h (verify_expr): Remove, replacing with:
73305         (verify_true): New macro that returns true instead of void.
73306         (verify_type__): Remove.
73307         (verify): Use verify_true rather than verify_type__.
73308
73309 2005-09-26  Bruno Haible  <bruno@clisp.org>
73310
73311         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73312         is necessary.
73313         (lib_SOURCES): Remove mbchar.c.
73314         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73315         (Files): Add m4/mbrtowc.m4.
73316         * modules/mbiter: Likewise.
73317         * modules/mbuiter: Likewise.
73318
73319 2005-09-26  Bruno Haible  <bruno@clisp.org>
73320
73321         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73322         compile mbchar.c if they are not both present.
73323         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73324         * m4/mbiter.m4 (gl_MBITER): Likewise.
73325         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73326         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73327         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73328
73329 2005-09-25  Jim Meyering  <jim@meyering.net>
73330
73331         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73332         also uses socklen_t.
73333
73334 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * lib/utimens.c (ENOSYS): Define if not already defined.
73337         (futimens): Support having a null PATH if the file descriptor
73338         is nonnegative.
73339
73340         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73341         Remove.
73342         (__attribute): Define to empty unless GCC 3.1 or later.
73343         This works around a core dump on OpenBSD 3.4, which has GCC
73344         2.95.3, which dumps core when given __attribute__(()).  It also
73345         simplifies other tests, since we really don't want to bother with
73346         worrying about which ancient version of GCC supported what.
73347         Original problem reported by Yoann Vandoorselaere, with part of
73348         the fix suggested by Derek Price.
73349
73350 2005-09-24  Jim Meyering  <jim@meyering.net>
73351
73352         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73353         so we can once again use a positive bitfield width of 1 -- now we
73354         don't have to explain why we were using a bitfield width of 2.
73355
73356 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73357
73358         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73359         and similarly for the other external symbols.  Problem reported
73360         by James Gallager.
73361
73362         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73363         bug reported by Jim Meyering.
73364
73365         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73366         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73367         not needed, since socklen is a prerequisite module.
73368
73369 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73370
73371         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73372         Problem reported by Eric Blake.
73373         (getaddrinfo): Initialize se so that it's not garbage.
73374         Redo internal storage allocation so that it doesn't make unportable
73375         assumptions about alignment.
73376         Fix a memory leak.
73377
73378         * lib/utimens.c (futimens): Use futimesat if available.
73379         Prefer it to futimes since it doesn't have the futimes bug.
73380
73381         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73382         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73383         Instead, declare a function that returns a pointer to an array,
73384         and use verify_type__ to declare the size of the array.
73385         Problem and germ of a solution reported by Bruno Haible.
73386         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73387         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73388
73389 2005-09-23  Jim Meyering  <jim@meyering.net>
73390
73391         Sync from coreutils.
73392         Correct build failure (socklen_t not defined) on at least
73393         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73394         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73395
73396 2005-09-23  Jim Meyering  <jim@meyering.net>
73397
73398         * modules/getaddrinfo (Depends-on): Add socklen.
73399
73400 2005-09-23  Bruno Haible  <bruno@clisp.org>
73401
73402         * tests/test-verify.c: New file.
73403
73404 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         Sync from coreutils.
73407
73408         * modules/argmatch (Depends-on): Add verify.
73409         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73410         unistd-safer.
73411         * modules/save-cwd (Depends-on): Likewise.
73412
73413         * modules/openat (Files): Add lib/openat-die.c.
73414         (Depends-on): Remove error, exitfail.
73415         Add dirname.
73416
73417         * modules/verify: New file.
73418         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73419         with "verify" module.
73420
73421 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73422
73423         Sync from coreutils.
73424
73425         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73426         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73427         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73428         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73429         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73430         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73431         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73432         Don't bother checking for string.h, stdlib.h, unistd.h.
73433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73434         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73435         module's job.
73436         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73437         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73438
73439         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73440         (gl_GETDATE): Use it.
73441
73442         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73443
73444 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         Sync from coreutils.
73447
73448         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73449         stat-time.h.
73450         * lib/argmatch.h: Include verify.h
73451         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73452         (ARGMATCH_ASSERT): Remove; unused.
73453         * lib/canonicalize.c: Assume STDC_HEADERS.
73454         * lib/exclude.c: Include "strcase.h".
73455         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73456         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73457         and stdio-safer.h.
73458         (getusershell): Call fopen, not fopen_safer.
73459         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73460         Do not include unistd-safer.h.
73461         (save_cwd): Don't call fd_safer; no longer needed
73462         now that we include fcntl--.h.
73463
73464         * lib/getdate.y (relative_time): New type.
73465         (RELATIVE_TIME_0): New constant.
73466         (parser_control): Use relative_time instead of doing it ourselves.
73467         (%union): Add new relative_time rel member.
73468         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73469         Now typeless.
73470         (relunit, relunit_snumber): Now of type rel.
73471         (zone, rel, relunit, get_date): Adjust to above changes.
73472
73473         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73474         Do not include unistd-safer.h.
73475         (getloadavg): Don't call fd_safer; no longer needed
73476         now that we include fcntl--.h.
73477
73478         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73479         (make_dir_parents): Treat ENOSYS like EEXIST.
73480
73481         Improve quality of diagnostics on restore_cwd failure.
73482         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73483         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73484         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73485         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73486         each time through the loop.  Do not diagnose restore_cwd failure;
73487         that is the caller's job (and perhaps the caller does not care).
73488
73489         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73490         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73491         If the file already exists but is not a directory, don't bother
73492         to try to make its parents.
73493         Close potential file descriptor leak if we can't chdir("/") (!).
73494         Don't always return true if chdir($PWD) fails; return true only
73495         if the requested action was done successfully (except for the
73496         chdir($PWD)).
73497         Don't log final directory unless we actually made it.
73498         Refactor to avoid duplicate code to fix up permissions.
73499         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73500
73501         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73502         to make it a bit faster and (I hope) clearer.
73503         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73504         Fix bug in formats like %2N.
73505
73506         * lib/verify.h: New file.
73507
73508 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         Sync from coreutils.
73511         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73512
73513 2005-09-22  Jim Meyering  <jim@meyering.net>
73514
73515         Sync from coreutils.
73516
73517         * m4/lstat.m4 (gl_FUNC_LSTAT):
73518         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73519         Remove obsolete comment.
73520         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73521         * m4/xstrtod.m4: Likewise.
73522
73523         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73524
73525 2005-09-22  Jim Meyering  <jim@meyering.net>
73526
73527         Sync from coreutils.
73528
73529         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73530
73531         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73532         the .tm_year member, since otherwise gcc-4.0 would now warn about
73533         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73534
73535         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73536         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73537
73538         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73539         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73540         when run in a time zone for which daylight savings time is in effect
73541         for the starting date.
73542
73543         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73544         stop us from restricting permissions of just-created absolute-named
73545         directories.
73546         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73547         to restore initial working directory.
73548         * lib/mkdir-p.c (make_dir_parents): New parameter:
73549         different_working_dir, to tell caller if/when we change the working
73550         directory and are unable to return to the initial one.
73551         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73552         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73553         `return false'.  This fixes a bug introduced on 2004-07-30.
73554
73555         * lib/openat.c (fdopendir): Be sure to close the supplied
73556         file descriptor before returning.  This makes our replacement
73557         implementation a little closer to Solaris's, where fdopendir
73558         ties the file descriptor to the returned DIR* pointer.
73559         * lib/openat.c (unlinkat): New function.
73560         * lib/openat.h (unlinkat): Add prototype.
73561         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73562         (openat_restore_fail): Rename from openat_restore_die.
73563         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73564
73565         Provide an alternative to exiting immediately upon save_cwd or
73566         restore_cwd failure.  Now, an application can arrange e.g.,
73567         to perform a longjump in that case.
73568         * lib/openat.c: Include dirname.h.
73569         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73570         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73571         and openat_restore_die rather than calling error directly.
73572         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73573
73574         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73575         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73576         define.
73577
73578         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73579         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73580                             int utc, int nanoseconds);
73581         Background:
73582         date should not have to allocate a megabyte of virtual memory to
73583         handle a format argument like +%1048575T.  When implemented with
73584         strftime, it must allocate such a buffer, use strftime to fill it
73585         in, print it, then free it.
73586         With fprintftime, it simply prints everything and exits.
73587         With no need for memory allocation, that's one fewer way to fail.
73588         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73589         optional field width, not before, so we accept %9:z, not %:9z.
73590         (my_strftime): Be sure to use L_('x') for literals.
73591
73592         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73593         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73594         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73595         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73596         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73597         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73598         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73599         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73600         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73601         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73602         * lib/xgethostname.c, lib/xreadlink.c:
73603         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73604
73605         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73606         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73607         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73608         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73609         and don't include <sys/file.h>).
73610
73611 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73612
73613         Sync from coreutils.
73614
73615         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73616         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73617         [!LDAV_DONE]: Avoid unused variable warning.
73618
73619 2005-09-21  Bruno Haible  <bruno@clisp.org>
73620
73621         * lib/unicodeio.h (unicode_to_mb): New declaration.
73622
73623 2005-09-20  Derek Price  <derek@ximbiot.com>
73624
73625         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73626         getaddrinfo.h.
73627
73628 2005-09-20  Bruno Haible  <bruno@clisp.org>
73629
73630         * gnulib-tool: Remove trailing slashes from the values specified for
73631         --source-base, --m4-base, --tests-base, --aux-dir.
73632         Suggested by Simon Josefsson <jas@extundo.com>.
73633
73634 2005-09-20  Bruno Haible  <bruno@clisp.org>
73635
73636         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73637         func_modules_to_filelist, func_import, func_create_testdir): Make all
73638         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73639         change when gnulib-tool is invoked in a different locale.
73640
73641 2005-09-19  Simon Josefsson  <jas@extundo.com>
73642
73643         * m4/socklen.m4: Fix typo.
73644
73645 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73646
73647         Use a consistent style for including <config.h>.
73648         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73649         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73650         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73651         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73652         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73653         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73654         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73655         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73656         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73657         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73658         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73659         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73660         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73661         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73662         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73663         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73664         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73665         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73666         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73667         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73668         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73669         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73670         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73671         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73672         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73673         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73674         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73675         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73676         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73677         lib/xstrtoumax.c, lib/yesno.c:
73678         Standardize inclusion of config.h.
73679         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73680         lib/inttostr.h:  Removed inclusion of config.h from header files.
73681         * lib/inttostr.c:  Adjusted in-tree users.
73682         * lib/timespec.h: Remove superfluous warning to include config.h.
73683         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73684         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73685         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73686         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73687         config.h with HAVE_CONFIG_H.
73688
73689 2005-09-19  Jim Meyering  <jim@meyering.net>
73690
73691         * modules/pathmax (License): Change to LGPL.
73692
73693 2005-09-19  Derek Price  <derek@ximbiot.com>
73694
73695         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73696
73697 2005-09-19  Bruno Haible  <bruno@clisp.org>
73698
73699         * gnulib-tool (import): Provide default for --tests-base.
73700
73701 2005-09-19  Bruno Haible  <bruno@clisp.org>
73702
73703         * doc/quote.texi: New file, extracted from gnulib.texi.
73704         * doc/ctime.texi: New file, extracted from gnulib.texi.
73705         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73706         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73707         * doc/gnulib.texi: Include them.
73708
73709 2005-09-18  Bruno Haible  <bruno@clisp.org>
73710
73711         Portability fix.
73712         * gnulib-tool (func_readlink): New function.
73713         (func_ln_if_changed): Use it.
73714
73715 2005-09-18  Bruno Haible  <bruno@clisp.org>
73716
73717         * gnulib-tool: Support --with-tests also with --import.
73718         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73719         (func_import): Use variables $testsbase and $inctests. Emit a
73720         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73721         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73722         SUBDIRS += $testsdir.
73723         (func_create_testdir): Update.
73724
73725 2005-09-18  Bruno Haible  <bruno@clisp.org>
73726
73727         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73728         instead of $dry_run.
73729         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73730         (func_ln_if_changed): Don't handle dry-run here.
73731         (func_import): In dry-run mode, detect more precisely which actions
73732         would be performed, and don't use "...ing" verbs.
73733
73734 2005-09-18  Bruno Haible  <bruno@clisp.org>
73735
73736         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73737         (func_import): Use join on two temporary files instead of three nested
73738         loops, in order to determine which files are new or old.
73739
73740 2005-09-18  Bruno Haible  <bruno@clisp.org>
73741
73742         * gnulib-tool (func_import): Comment out code that spits out the
73743         new files with --dry-run.
73744
73745 2005-09-18  Bruno Haible  <bruno@clisp.org>
73746
73747         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73748
73749 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         * lib/stat-time.h: New file.
73752         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73753         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73754         in a different way.
73755         (timespec_cmp): New function.
73756         * lib/utimecmp.c: Include stat-time.h.
73757         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73758         members exist, not on the obsolescent ST_MTIM_NSEC.
73759         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73760
73761 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73762
73763         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73764
73765 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         * MODULES.html.sh (File system functions): Add stat-time.
73768         * modules/stat-time: New file.
73769         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73770         is now done in a different way, by the stat-time module.
73771         * modules/utimecmp (Depends-on): Add stat-time.
73772
73773 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * m4/st_mtim.m4: Remove.  Superseded by...
73776         * m4/stat-time.m4: New file.
73777         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73778         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73779
73780 2005-09-15  Derek Price  <derek@ximbiot.com>
73781
73782         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73783
73784 2005-09-15  Derek Price  <derek@ximbiot.com>
73785
73786         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73787         * lib/regex_internal.c: Ditto, using this...
73788         (__GNUC_PREREQ): ...new macro.
73789         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73790         using...
73791         (__GNUC_PREREQ): ...this new macro.
73792
73793         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73794
73795 2005-09-15  Derek Price  <derek@ximbiot.com>
73796             Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73799         changes, consolidating in...
73800         * lib/regex_internal.h: ...this file.
73801
73802 2005-09-13  Jim Meyering  <jim@meyering.net>
73803
73804         * lib/canon-host.c: Filter through gnu indent and reword comments
73805         slightly.
73806         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73807
73808 2005-09-13  Derek Price  <derek@ximbiot.com>
73809
73810         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73811         failure.
73812         Reported by Jim Meyering  <jim@meyering.net>.
73813
73814 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73815
73816         * lib/base64.c: Typo.
73817         (base64_encode): Put b64str in initialized data section.
73818
73819 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73820
73821         Merge glibc and coreutils changes into gnulib, plus a few
73822         extra fixes.
73823         * lib/md5.c: Use #error rather than a string.
73824         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73825         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73826         (__attribute__): Define to empty for non recent-GCC.
73827         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73828         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73829         Renamed from their non-__ counterparts, with new macros replacing
73830         them if not _LIBC.  Add __THROW attribute.
73831         (rol): Remove.
73832         (struct md5_ctx): Align buffer if using GCC.
73833         * lib/sha1.h (struct sha1_ctx): Likewise.
73834         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73835         The old name was backwards.
73836         (NOTSWAP): Remove; not used.
73837         (rol): New macro, moved here from md5.h.
73838         (sha1_process_block): Remove a FIXME that doesn't make sense.
73839
73840 2005-09-12  Derek Price  <derek@ximbiot.com>
73841
73842         Return usable errors from canon-host.
73843         * lib/canon-host.h: New file.
73844         * lib/canon-host.c (canon_host): Wrap...
73845         (canon_host_r): ...this new function, which now relies exclusively on
73846         getaddrinfo.
73847         (ch_strerror): New function.
73848         (last_cherror): New global.
73849         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73850         interface.
73851         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73852         void *.
73853         (freeaddrinfo): Free ai->ai_canonname when set.
73854
73855 2005-09-12  Derek Price  <derek@ximbiot.com>
73856
73857         Make canon-host require getaddrinfo.
73858         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73859         AC_LIBSOURCE canon-host.h.  Call...
73860         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73861         gl_GETADDRINFO.
73862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73863
73864 2005-09-12  Derek Price  <derek@ximbiot.com>
73865
73866         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73867         LGPL.
73868         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73869
73870 2005-09-12  Derek Price  <derek@ximbiot.com>
73871
73872         * lib/gai_strerror.c: Include config.h when available.  Include
73873         getaddrinfo.h before other headers to test interface.
73874         Reported by Larry Jones <lawrence.jones@ugs.com>.
73875
73876 2005-09-12  Derek Price  <derek@ximbiot.com>
73877             Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * modules/glob (Files): Add glob-libc.h.
73880
73881 2005-09-12  Derek Price  <derek@ximbiot.com>
73882             Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73885         glob_.h, glob-libc.h.
73886         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73887
73888 2005-09-12  Derek Price  <derek@ximbiot.com>
73889             Paul Eggert  <eggert@cs.ucla.edu>
73890
73891         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73892         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73893         protecting things that should be done only in gnulib contexts.
73894         * lib/glob_.h: New file, containing only the glob things needed for
73895         gnulib.
73896         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73897         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73898         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73899         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73900         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73901         and to respect the namespace rules better.
73902
73903 2005-09-08  Simon Josefsson  <jas@extundo.com>
73904
73905         * modules/socklen: New file.
73906
73907 2005-09-08  Simon Josefsson  <jas@extundo.com>
73908
73909         * m4/socklen.m4: New file.
73910
73911 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73912
73913         * modules/utimens (Files): Add m4/utimbuf.m4, since
73914         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73915         Reported by Sergey Poznyakoff.
73916
73917 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73920         definitions, since that's the preferred style in glibc.
73921         Fix a minor spacing issue, and update copyright notice to match
73922         glibc's.
73923
73924 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73925
73926         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73927
73928 2005-09-06  Simon Josefsson  <jas@extundo.com>
73929
73930         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73931         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73932
73933 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73936         warning.
73937
73938 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * config/srclist.txt: Add glibc bug 1302.
73941
73942 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         Change bitset word type from unsigned int to unsigned long int,
73945         as this has better performance on typical 64-bit hosts.
73946         Port bitset code to hosts with unusual word sizes.
73947         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73948         (build_collating_symbol):
73949         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73950         argument is a bitset.  This is merely a style issue, but it makes
73951         it clearer that an entire array is expected.
73952         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73953         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73954         Port to the case where bitset_word is not the same as unsigned int.
73955         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73956         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73957         Likewise.
73958         * lib/regexec.c (check_dst_limits_calc_pos_1,
73959         check_subexp_matching_top):
73960         (build_trtable, group_nodes_into_DFAstates):
73961         Likewise.
73962         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73963         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73964         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73965         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73966         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73967         * lib/regcomp.c (optimize_subexps, lower_subexp):
73968         Work even if bitset_word has holes in its bitwise representation.
73969         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73970         * lib/regexec.c (check_dst_limits_calc_pos_1,
73971         check_subexp_matching_top):
73972         Likewise.
73973         * lib/regex_internal.c (re_string_reconstruct):
73974         Don't assume UCHAR_MAX == 255.
73975         * lib/regex_internal.h (bitset_set_all): Likewise.
73976         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73977         All uses changed.
73978         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73979         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73980         All uses changed.
73981         (BITSET_WORD_MAX): New macro.
73982         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73983         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73984         (bitset_empty, bitset_copy):
73985         Prefer sizeof (bitset) to multiplying it out ourselves.
73986         (bitset_not_merge): Remove; unused.
73987         (bitset_contain): Return bool, not unsigned int with one bit on.
73988         All callers changed.
73989         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73990         alignment than re_node_set; do this by defining a new internal
73991         type struct dests_alloc and using it to allocate memory.
73992
73993 2005-09-05  Bruno Haible  <bruno@clisp.org>
73994
73995         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73996         links.
73997
73998 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73999
74000         * modules/size_max (Makefile.am): Add size_max.h
74001
74002 2005-09-04  Derek Price  <derek@ximbiot.com>
74003
74004         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74005
74006 2005-09-03  Simon Josefsson  <jas@extundo.com>
74007
74008         * gnulib-tool: Fix typo.
74009
74010 2005-09-03  Simon Josefsson  <jas@extundo.com>
74011
74012         * config/srclist.txt: Add glibc bug 1293.
74013
74014 2005-09-03  Derek Price  <derek@ximbiot.com>
74015
74016         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74017         From Larry Jones <lawrence.jones@ugs.com>.
74018
74019 2005-09-02  Simon Josefsson  <jas@extundo.com>
74020
74021         * modules/socklen: New file.
74022
74023 2005-09-02  Simon Josefsson  <jas@extundo.com>
74024
74025         * modules/havelib: New module.
74026
74027         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74028         Use havelib.
74029
74030 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         Check for arithmetic overflow when calculating sizes, to prevent
74033         some buffer-overflow issues.  These patches are conservative, in the
74034         sense that when I couldn't determine whether an overflow was possible,
74035         I inserted a run-time check.
74036         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74037         macros.
74038         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74039         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74040         (re_xnrealloc, re_x2nrealloc): New inline functions.
74041         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74042         parse_bracket_exp):
74043         (build_equiv_class, build_charclass): Check for arithmetic overflow
74044         in size expression calculations.
74045         * lib/regex_internal.c (re_string_realloc_buffers):
74046         (build_wcs_upper_buffer, re_node_set_add_intersect):
74047         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74048         (re_dfa_add_node, register_state): Likewise.
74049         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74050         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74051         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74052         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74053
74054 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74055
74056         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74057         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74058
74059 2005-09-02  Bruno Haible  <bruno@clisp.org>
74060
74061         Support for lib vs. lib64 distinction on biarch platforms.
74062         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74063         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74064         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74065
74066 2005-09-02  Bruno Haible  <bruno@clisp.org>
74067
74068         * gnulib-tool (import): In the other first-use case, provide defaults
74069         as well.
74070
74071 2005-09-02  Bruno Haible  <bruno@clisp.org>
74072
74073         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74074         patches not yet found in the latest gettext release.
74075
74076 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74077
74078         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74079         to avoid a collision with bits/local_lim.h in glibc.
74080         All uses changed.  Problem reported by Dmitry V. Levin in
74081         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74082
74083         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74084         bugs in int versus size_t comparisons.
74085         (re_string_context_at): Fix bug where the code assumed that
74086         Idx is signed.
74087
74088         Use bool where appropriate.
74089         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74090         All callers changed.
74091         (calc_eclosure_iter): Likewise, for ROOT arg.
74092         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74093         (build_charclass_op): Likewise, for NON_MATCH arg.
74094         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74095         (re_string_construct_common): Likewise, for ICASE arg.
74096         * lib/regexec.c (re_search_2_stub, re_search_stub):
74097         Likewise, for RET_LEN arg.
74098         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74099         (set_regs): Likewise, for FL_BACKTRACK arg.
74100         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74101         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74102         (calc_eclosure_iter, parse_bracket_exp):
74103         Use bool for internal variables that are booleans.
74104         * lib/regexec.c (re_search_internal, check_matching,
74105         proceed_next_node):
74106         (set_regs, build_sifted_states, sift_states_bkref):
74107         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74108         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74109         (find_collation_sequence_value):
74110         Likewise.
74111         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74112         (re_node_set_compare):
74113         Return bool, not int. All callers changed.
74114         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74115         (build_trtable, check_node_accept): Likewise.
74116         * lib/regex_internal.h: Include stdbool.h.
74117
74118         Fix bugs uncovered when converting to bool.
74119         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74120         failure instead of charging ahead blindly.
74121         * lib/regex_internal.c (register_state): Likewise.
74122         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74123         for freeing internal storage.
74124         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74125         bitset pieces used as boolean, to avoid undefined behavior
74126         on hosts that do int overflow checking.
74127
74128 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * config/srclist.txt: Add glibc bugs 1285-1287.
74131
74132 2005-09-01  Jim Meyering  <jim@meyering.net>
74133
74134         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74135         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74136         Require gl_STAT_MACROS, too.
74137
74138 2005-09-01  Bruno Haible  <bruno@clisp.org>
74139
74140         * gnulib-tool (import): In the first-use case, provide defaults.
74141
74142 2005-09-01  Bruno Haible  <bruno@clisp.org>
74143
74144         * gnulib-tool (func_import): Remove the .tmp files.
74145
74146 2005-09-01  Bruno Haible  <bruno@clisp.org>
74147
74148         * gnulib-tool (func_import): Fix handling of symbolic links.
74149
74150 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74153         old glibc regex code mishandles strings longer than 2**31 bytes.
74154         This patch fixes this when the regex code is used in gnulib
74155         (i.e., outside glibc).
74156
74157         This patch should not affect the use of the regex code inside
74158         glibc.  No doubt this problem also needs to be handled for glibc
74159         as well, but the result will be an incompatible change to the
74160         glibc ABI, and the old ABI will have to be supported too.  That
74161         can be the the subject for another patch.
74162
74163         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74164         governing whether the rest of this patch is active.  By default,
74165         the macro is disabled and the patch has no effect.
74166         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74167         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74168         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74169         (re_match_2, re_set_registers): Use the new types.
74170         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74171         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74172         New macros.
74173         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74174         (re_string_context_at, bin_tree_t, re_dfastate_t):
74175         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74176         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74177         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74178         (re_string_char_size_at, re_string_wchar_at):
74179         (re_string_elem_size_at):
74180         Use the new types and macros to port to 64-bit hosts.
74181         Use unsigned types for internal values, so that the code
74182         mostly works even for arrays larger than SSIZE_MAX.
74183         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74184         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74185         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74186         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74187         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74188         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74189         (calc_inveclosure, parse_dup_op, build_range_exp):
74190         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74191         (fetch_number, create_token_tree, mark_opt_subexp):
74192         Likewise.
74193         * lib/regex_internal.c (re_string_construct_common,
74194         create_ci_newstate):
74195         (create_cd_newstate, re_string_allocate, re_string_construct):
74196         (re_string_realloc_buffers, build_wcs_upper_buffer):
74197         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74198         (re_string_reconstruct, re_string_peek_byte_case):
74199         (re_string_fetch_byte_case, re_string_context_at):
74200         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74201         (re_node_set_init_copy, re_node_set_add_intersect):
74202         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74203         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74204         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74205         (re_acquire_state, re_acquire_state_context, register_state):
74206         Likewise.
74207         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74208         search_cur_bkref_entry):
74209         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74210         (re_search_internal, re_search_2_stub, re_search_stub)
74211         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74212         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74213         (update_cur_sifted_state, check_dst_limits):
74214         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74215         (check_subexp_limits, sift_states_bkref, merge_state_array):
74216         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74217         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74218         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74219         (expand_bkref_cache, check_node_accept_bytes):
74220         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74221         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74222         (acquire_init_state_context, check_halt_node_context):
74223         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74224         (sift_states_backward, clean_state_log_if_needed):
74225         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74226         (find_recover_state, transit_state_sb, transit_state_mb):
74227         (transit_state_bkref, build_trtable, match_ctx_clean):
74228         Likewise.
74229         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74230         to work around an assumption that REG_MISSING is negative.
74231
74232         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74233         (seek_collating_symbol_entry) [defined _LIBC]:
74234         (lookup_collation_sequence_value) [defined _LIBC]:
74235         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74236         Use prototypes rather than old-style function definitions.
74237         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74238         (transit_state_sb) [0]:
74239         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74240
74241         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74242         rm_eo.
74243
74244         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74245         (optimize_subexps, lower_subexp):
74246         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74247         since the signed shift might overflow.  Use 1u<<31 instead.
74248         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74249         Likewise.
74250         * lib/regexec.c (check_dst_limits_calc_pos_1,
74251         check_subexp_matching_top): Likewise.
74252
74253         * lib/regcomp.c (optimize_subexps, lower_subexp):
74254         Use CHAR_BIT rather than 8, for clarity.
74255         * lib/regexec.c (check_dst_limits_calc_pos_1):
74256         (check_subexp_matching_top): Likewise.
74257         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74258         have to worry about portability issues when shifting it left.
74259         Remove no-longer-needed test for table_size > 0.
74260         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74261         in a word, as the resulting behavior is undefined.
74262         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74263         in one case, a <= should have been an <, and in another case the
74264         whole test was missing.
74265         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74266         the standard name CHAR_BIT.
74267         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74268         this is not true on one's complement and signed-magnitude hosts.
74269
74270         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74271         next_last_offset.
74272         (struct re_dfa_t): Remove unused member states_alloc.
74273         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74274
74275 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74278         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74279         and large-file glibc and in 32-bit large-file Solaris.
74280
74281 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74282
74283         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74284         lengths fit in regoff_t; this isn't true if regoff_t is the same
74285         width as size_t.
74286         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74287         (= START + RANGE) instead of RANGE.  This avoids overflow
74288         problems when regoff_t is the same width as size_t.
74289         All callers changed.
74290         (re_search_2_stub): Check for overflow when adding the
74291         sizes of the two strings.
74292         (re_search_stub): Check for overflow when adding START
74293         to RANGE; if it occurs, substitute the extreme value.
74294
74295 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74296
74297         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74298
74299 2005-08-31  Jim Meyering  <jim@meyering.net>
74300
74301         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74302         a pointer-to-const.
74303         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74304         (register_state): Likewise.
74305         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74306         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74307         (group_nodes_into_DFAstates): Likewise.
74308
74309 2005-08-31  Jim Meyering  <jim@meyering.net>
74310
74311         * check-module: Add a FIXME comment.
74312
74313 2005-08-31  Eric Blake  <ebb9@byu.net>
74314
74315         * modules/unistd-safer (Files): Add unistd--.h.
74316         * modules/stdio-safer (Files): Add stdio--.h.
74317
74318 2005-08-31  Derek Price  <derek@ximbiot.com>
74319
74320         * lib/getdelim.c (getdelim): Return EOF on EOF.
74321         Reported by Larry Jones <lawrence.jones@ugs.com>.
74322
74323 2005-08-31  Bruno Haible  <bruno@clisp.org>
74324
74325         Avoid unnecessary diffs in the generated lib/Makefile.am.
74326         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74327         the generated files.
74328         (func_import): Don't set cmd.
74329
74330 2005-08-31  Bruno Haible  <bruno@clisp.org>
74331
74332         * lib/strstr.c: Include <stddef.h>, for NULL.
74333         * lib/strcasestr.c: Likewise.
74334         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74335
74336 2005-08-31  Bruno Haible  <bruno@clisp.org>
74337
74338         * gnulib-tool: New option --macro-prefix.
74339         (func_import): Use macro_prefix.
74340         (import): Handle option --macro-prefix.
74341
74342 2005-08-31  Bruno Haible  <bruno@clisp.org>
74343
74344         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74345         Also use new variables cached_lgpl, cached_libtool.
74346
74347 2005-08-31  Bruno Haible  <bruno@clisp.org>
74348
74349         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74350         always instantiating them.
74351
74352 2005-08-31  Bruno Haible  <bruno@clisp.org>
74353
74354         * gnulib-tool (func_import): Read the previous cached settings
74355         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74356         earlier added by gnulib but are now dropped. Warn when a gnulib file
74357         overwrites a non-gnulib file.
74358
74359 2005-08-31  Bruno Haible  <bruno@clisp.org>
74360
74361         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74362         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74363         projects that don't keep autogenerated files in CVS. Put into
74364         actioncmd only the specified modules, not the transitive closure.
74365
74366 2005-08-31  Bruno Haible  <bruno@clisp.org>
74367
74368         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74369         Create directories that shall be filled.
74370         (import): Don't look for gl_* macros in configure.ac. Recurse across
74371         all directories containing a gnulib-cache.m4 files, if meaningful.
74372
74373 2005-08-31  Bruno Haible  <bruno@clisp.org>
74374
74375         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74376         (import): Set seen_libtool when we see gl_LIBTOOL.
74377
74378 2005-08-31  Bruno Haible  <bruno@clisp.org>
74379
74380         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74381         declaration macro definitions from generated gnulib.m4.
74382
74383 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74384
74385         * lib/iconvme.h: Add prototype for iconv_alloc.
74386
74387 2005-08-29  Simon Josefsson  <jas@extundo.com>
74388
74389         * lib/iconvme.c: Fix errno.
74390
74391 2005-08-29  Bruno Haible  <bruno@clisp.org>
74392
74393         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74394         that it works when the directory contains spaces.
74395
74396 2005-08-29  Bruno Haible  <bruno@clisp.org>
74397
74398         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74399
74400 2005-08-29  Bruno Haible  <bruno@clisp.org>
74401
74402         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74403         Emit more advice.
74404
74405 2005-08-29  Bruno Haible  <bruno@clisp.org>
74406         and Stepan Kasal  <kasal@ucw.cz>
74407
74408         * check-module: If more parameters are given, check each of them
74409         separately; add more exceptions, as noted by Jim Meyering.
74410         (check_module): New procedure.
74411         (%exempt_header): Now contains all exceptions.
74412
74413 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74414
74415         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74416
74417 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74418
74419         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74420
74421 2005-08-28  Bruno Haible  <bruno@clisp.org>
74422
74423         * m4/gnulib-tool.m4: New file.
74424
74425 2005-08-27  Jim Meyering  <jim@meyering.net>
74426
74427         * modules/unistd-safer (Files): Add pipe-safer.c.
74428         * modules/fcntl-safer (Files): Add creat-safer.c.
74429
74430 2005-08-27  Jim Meyering  <jim@meyering.net>
74431
74432         * m4/stdlib-safer.m4: New file.  From coreutils.
74433         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74434         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74435         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74436         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74437         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74438
74439 2005-08-27  Jim Meyering  <jim@meyering.net>
74440
74441         * lib/fopen-safer.c: Merge minor changes from coreutils.
74442         * lib/dup-safer.c: Likewise.
74443         * lib/fd-safer.c: Likewise.
74444
74445         Merge from coreutils.
74446         * lib/stdio--.h: New file.
74447         * lib/stdlib--.h: New file.
74448         * lib/mkstemp-safer.c: New file.
74449
74450         GNU tar needs these.
74451         * lib/pipe-safer.c: New file.
74452         * lib/creat-safer.c: New file.
74453         * lib/fcntl--.h (creat): Define to creat_safer.
74454         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74455         * lib/unistd--.h (pipe): Define to pipe_safer.
74456         * lib/unistd-safer.h: Declare pipe_safer.
74457
74458 2005-08-26  Simon Josefsson  <jas@extundo.com>
74459
74460         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74461         Haible <bruno@clisp.org>.
74462
74463 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * lib/regex_internal.h: Remove all references to
74466         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74467         or better.
74468         (bitset_not, bitset_merge, bitset_not_merge):
74469         (bitset_mask, re_string_allocate, re_string_construct):
74470         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74471         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74472         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74473         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74474         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74475         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74476         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74477         (re_acquire_state_context):
74478         Remove unnecessary forward decls.
74479         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74480         Put __attribute at function definition,
74481         now that the function decl has been removed.
74482         * lib/regex_internal.c (re_string_peek_byte_case):
74483         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74484         Likewise.
74485
74486 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74487
74488         * m4/regex.m4: Add AC_PREREQ(2.50).
74489         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74490
74491 2005-08-25  Simon Josefsson  <jas@extundo.com>
74492
74493         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74494         __fsetlocking.
74495
74496 2005-08-25  Simon Josefsson  <jas@extundo.com>
74497
74498         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74499         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74500         GLIBC specific code.
74501
74502 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         Make regex safe for g++.  This fixes one real bug (an "err"
74505         that should have been "*err").  g++ problem reported by
74506         Sam Steingold.
74507         * lib/regex_internal.h (re_calloc): New macro, consistent with
74508         re_malloc etc.  All callers of calloc changed to use re_calloc.
74509         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74510         not int.  All callers changed.
74511         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74512         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74513         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74514         (find_recover_state): Change "err" to "*err"; this fixes what
74515         appears to be a real bug.
74516         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74517         versus int.
74518
74519 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * modules/regex (Depends-on): Add malloc, since the code
74522         assumes that !malloc(0) means failure.
74523
74524 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74527
74528         alloca modernization/simplification for regex.
74529         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74530         needs to be at the start of the file, and can be moved into
74531         regex_internal.h and simplified.
74532         * lib/regex_internal.h: Include <alloca.h>.
74533         (__libc_use_alloca) [!defined _LIBC]: New macro.
74534         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74535         now works outside glibc.
74536
74537 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * config/srclist.txt: Add glibc bugs 1241, 1245.
74540
74541 2005-08-25  Jim Meyering  <jim@meyering.net>
74542
74543         * lib/open-safer.c: Include <config.h>.
74544         Otherwise, we'd lose LARGEFILE support in any file using
74545         e.g. "fcntl--.h"
74546
74547 2005-08-25  Bruno Haible  <bruno@clisp.org>
74548
74549         * m4/minmax.m4: Require autoconf 2.52.
74550         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74551         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74552         alternatives of translit over the alphabet.
74553         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74554
74555 2005-08-24  Simon Josefsson  <jas@extundo.com>
74556
74557         * tests/test-getpass.c: New file.
74558
74559 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74562         for GNU regex features.
74563
74564 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74565
74566         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74567         * lib/regex.h (regerror): Likewise.
74568
74569         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74570         requires this.  (The code never needed it.)
74571
74572         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74573         All uses of recently-renamed identifiers changed to use the new,
74574         POSIX-compliant names.  The code will build and run just fine
74575         without these changes, but it's better to eat our own dog food
74576         and use the standard-conforming names.
74577
74578         * lib/regex.h: Fix a multitude of POSIX name space violations.
74579         These changes have an effect only for programs that define
74580         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74581         do not change anything for programs compiled in the normal way.
74582         Also, there is no effect on the ABI.
74583
74584         (_REGEX_SOURCE): New macro.
74585         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74586         defined and _GNU_SOURCE is not; this fixes a name space violation.
74587
74588         Rename the following macros to obey POSIX requirements.
74589         The old names are still visible as macros if _REGEX_SOURCE is defined.
74590         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74591         RE_BACKSLASH_ESCAPE_IN_LISTS.
74592         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74593         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74594         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74595         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74596         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74597         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74598         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74599         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74600         (REG_INTERVALS): renamed from RE_INTERVALS.
74601         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74602         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74603         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74604         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74605         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74606         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74607         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74608         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74609         RE_UNMATCHED_RIGHT_PAREN_ORD.
74610         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74611         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74612         (REG_DEBUG): renamed from RE_DEBUG.
74613         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74614         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74615         unusual, since we can't clash with the POSIX REG_ICASE.
74616         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74617         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74618         (REG_NO_SUB): renamed from RE_NO_SUB.
74619         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74620         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74621         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74622         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74623         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74624         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74625         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74626         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74627         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74628         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74629         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74630         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74631         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74632         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74633         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74634         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74635         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74636         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74637         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74638         (REG_FIXED): Renamed from REGS_FIXED.
74639         (REG_NREGS): Renamed from RE_NREGS.
74640
74641         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74642         of other REG_* macros, since POSIX says the user is allowed to
74643         #undef these macros selectively.
74644
74645         (reg_errcode_t): Update comment stating what other tables need
74646         to be consistent.
74647
74648         Rename the following enum values to obey POSIX requirements.
74649         The old names are still visible as macros.
74650         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74651         is not defined, since GNU is supposed to be a superset of POSIX as
74652         much as possible, and since we want reg_errcode_t to be a signed
74653         type for implementation consistency.
74654         (_REG_NOERROR): Renamed from REG_NOERROR.
74655         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74656         (_REG_BADPAT): Renamed from REG_BADPAT.
74657         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74658         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74659         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74660         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74661         (_REG_EBRACK): Renamed from REG_EBRACK.
74662         (_REG_EPAREN): Renamed from REG_EPAREN.
74663         (_REG_EBRACE): Renamed from REG_EBRACE.
74664         (_REG_BADBR): Renamed from REG_BADBR.
74665         (_REG_ERANGE): Renamed from REG_ERANGE.
74666         (_REG_ESPACE): Renamed from REG_ESPACE.
74667         (_REG_BADRPT): Renamed from REG_BADRPT.
74668         (_REG_EEND): Renamed from REG_EEND.
74669         (_REG_ESIZE): Renamed from REG_ESIZE.
74670         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74671         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74672         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74673         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74674         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74675
74676         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74677         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74678         changed.  But support the old name if the new one is not defined
74679         and if _REGEX_SOURCE.
74680
74681         Change the following member names in struct re_pattern_buffer.
74682         The old names are still supported if !_REGEX_SOURCE.
74683         The new names are always supported, regardless of _REGEX_SOURCE.
74684         (re_buffer): Renamed from buffer.
74685         (re_allocated): Renamed from allocated.
74686         (re_used): Renamed from used.
74687         (re_syntax): Renamed from syntax.
74688         (re_fastmap): Renamed from fastmap.
74689         (re_translate): Renamed from translate.
74690         (re_can_be_null): Renamed from can_be_null.
74691         (re_regs_allocated): Renamed from regs_allocated.
74692         (re_fastmap_accurate): Renamed from fastmap_accurate.
74693         (re_no_sub): Renamed from no_sub.
74694         (re_not_bol): Renamed from not_bol.
74695         (re_not_eol): Renamed from not_eol.
74696         (re_newline_anchor): Renamed from newline_anchor.
74697
74698         Change the following member names in struct re_registers.
74699         The old names are still supported if !_REGEX_SOURCE.
74700         The new names are always supported, regardless of _REGEX_SOURCE.
74701         (rm_num_regs): Renamed from num_regs.
74702         (rm_start): Renamed from start.
74703         (rm_end): Renamed from end.
74704
74705         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74706         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74707         Prepend __ to parameter names.
74708
74709         Undo yesterday's changes.
74710
74711 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74714         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74715         lib/regex.c.
74716
74717 2005-08-24  Jim Meyering  <jim@meyering.net>
74718
74719         Sync from coreutils.
74720         * m4/fcntl-safer.m4: New file.
74721
74722         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74723         and object files for this module.
74724
74725 2005-08-24  Jim Meyering  <jim@meyering.net>
74726
74727         Sync from coreutils.
74728         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74729
74730 2005-08-24  Jim Meyering  <jim@meyering.net>
74731
74732         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74733         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74734
74735 2005-08-24  Jim Meyering  <jim@meyering.net>
74736
74737         * modules/fcntl-safer: New module.
74738         * modules/fts (Depends-on): Add fcntl-safer.
74739         * MODULES.html.sh (File descriptor based Input/Output):
74740         Add fcntl-safer.
74741
74742 2005-08-24  Bruno Haible  <bruno@clisp.org>
74743
74744         Support for unit test modules.
74745         * modules/README: Mention tests modules.
74746         * modules/TEMPLATE-TESTS: New file.
74747         * gnulib-tool: New options --extract-tests-module, --with-tests and
74748         --tests-base (unused for the moment).
74749         (testsbase, inctests): New variables.
74750         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74751         (func_verify_module): Exclude TEMPLATE-TESTS.
74752         (func_verify_nontests_module, func_verify_tests_module): New functions.
74753         (func_get_dependencies): Add implicit dependency for tests modules.
74754         (func_get_tests_module): New function.
74755         (func_modules_transitive_closure): When --with-tests was specified,
74756         include the unit tests as well, unless explicitly avoided.
74757         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74758         (func_emit_tests_Makefile_am): New function.
74759         (func_create_testdir): When --with-tests was specified, emit a
74760         tests/ directory.
74761         * MODULES.html.sh (Future developments): Update.
74762
74763 2005-08-24  Bruno Haible  <bruno@clisp.org>
74764
74765         * modules/tls-tests: New file.
74766         * tests/test-tls.c: New file, from GNU gettext.
74767
74768 2005-08-24  Bruno Haible  <bruno@clisp.org>
74769
74770         * modules/lock-tests: New file.
74771         * tests/test-lock.c: New file, from GNU gettext.
74772
74773 2005-08-24  Bruno Haible  <bruno@clisp.org>
74774
74775         * lib/lock.h: Add multiple inclusion guard.
74776         * lib/tls.h: Add multiple inclusion guard.
74777
74778 2005-08-24  Bruno Haible  <bruno@clisp.org>
74779
74780         * gnulib-tool: Add support for the --aux-dir option to
74781         --create-testdir, --create-megatestdir, --test, --megatest.
74782         (func_create_testdir, func_create_megatestdir): Optionally emit a
74783         AC_CONFIG_AUX_DIR directive.
74784         (create-testdir, create-megatestdir, test, megatest): Provide a
74785         default value for $auxdir.
74786
74787 2005-08-24  Bruno Haible  <bruno@clisp.org>
74788
74789         * gnulib-tool (import): Use compound statement instead of subshell
74790         where possible.
74791
74792 2005-08-24  Bruno Haible  <bruno@clisp.org>
74793
74794         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74795
74796 2005-08-24  Bruno Haible  <bruno@clisp.org>
74797
74798         * gnulib-tool (func_version): Update.
74799
74800 2005-08-24  Bruno Haible  <bruno@clisp.org>
74801
74802         * gnulib-tool (func_import, func_create_testdir,
74803         func_create_megatestdir): Quote all autoconf macro arguments.
74804
74805 2005-08-24  Bruno Haible  <bruno@clisp.org>
74806
74807         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74808         option --force, because --force causes the aclocal.m4 of each
74809         subdirectory to be newer than the corresponding config.h.in.
74810
74811 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74812
74813         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74814         All contents moved to gl_REGEX.
74815         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74816         assume that it does.
74817
74818 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74819
74820         * lib/regex.h (REG_NOSYS)
74821         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74822         Define, since POSIX requires it as of 2001.
74823         (_REG_ENOSYS)
74824         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74825         New private symbol, used to keep the enum signed in all cases.
74826         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74827         Youngman in
74828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74829
74830         * lib/regex_internal.c (re_string_skip_chars, register_state):
74831         (calc_state_hash):
74832         Remove forward decls; no longer needed now that we use prototypes.
74833         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74834         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74835         (clean_state_log_if_needed): Likewise.
74836
74837 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * config/srclist.txt: Add glibc bugs 1231-1233.
74840
74841 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         Fix problems reported by Sam Steingold in
74844         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74845         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74846         assumed that reg_errcode_t is a signed type, which is not
74847         necessarily true if _XOPEN_SOURCE is not defined.
74848         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74849         since some compilers warn about it otherwise.
74850
74851 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74852
74853         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74854         (init_word_char, create_initial_state, duplicate_node_closure):
74855         (fetch_token, peek_token_bracket, build_range_exp):
74856         (build_collating_symbol): Remove forward decls; no longer needed
74857         now that we use prototypes.
74858
74859         * lib/regcomp.c:
74860         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74861         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74862         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74863         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74864         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74865         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74866         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74867         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74868         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74869         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74870         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74871         (build_charclass, build_charclass_op, fetch_number, create_tree):
74872         (create_token_tree, mark_opt_subexp, duplicate_tree):
74873         Use prototypes rather than old-style definitions.
74874
74875         * lib/regex_internal.c:
74876         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74877         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74878         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74879         (re_string_reconstruct, re_string_peek_byte_case):
74880         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74881         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74882         (re_node_set_init_copy, re_node_set_add_intersect):
74883         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74884         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74885         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74886         (re_acquire_state, re_acquire_state_context, register_state):
74887         (create_ci_newstate, create_cd_newstate, free_state):
74888         Likewise.
74889         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74890         re_search_2):
74891         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74892         (re_search_internal, prune_impossible_nodes):
74893         (acquire_init_state_context, check_matching, static):
74894         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74895         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74896         (update_regs, sift_states_backward, build_sifted_states):
74897         (clean_state_log_if_needed, merge_state_array):
74898         (update_cur_sifted_state, add_epsilon_src_nodes):
74899         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74900         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74901         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74902         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74903         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74904         (check_arrival, check_arrival_add_next_nodes):
74905         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74906         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74907         (check_node_accept_bytes, check_node_accept, extend_buffers):
74908         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74909         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74910         (sift_ctx_init):
74911         Likewise.
74912
74913         * lib/regex_internal.h:
74914         (re_string_allocate, re_string_construct, re_string_reconstruct):
74915         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74916         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74917         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74918         (re_string_context_at, re_string_peek_byte_case):
74919         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74920         is defined, since we now use prototypes always.
74921
74922         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74923         C89 or better.  All uses removed.
74924
74925 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74926
74927         * config/srclist.txt: Add glibc bugs 1220-1227.
74928
74929 2005-08-20  Jim Meyering  <jim@meyering.net>
74930
74931         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74932         of unused local, dfa.
74933
74934 2005-08-20  Bruno Haible  <bruno@clisp.org>
74935
74936         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74937
74938 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74939
74940         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74941         (re_node_set_insert_last, re_dfa_add_node):
74942         Rename local variables to avoid GCC shadowing warnings.
74943
74944 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74947         [defined lint]: Suppress bogus uninitialized-variable warnings.
74948
74949         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74950         and let the caller return REG_ESPACE if out of space.  This
74951         removes an uninitialied-variable warning with GCC 4.0.1, and also
74952         avoids taking the address of a local variable.  All callers
74953         changed.
74954
74955 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74958         $LIBCSRC/posix/regexec.c.
74959         Add glibc bug 1217 for regcomp.c.
74960
74961 2005-08-19  Jim Meyering  <jim@meyering.net>
74962
74963         * lib/regexec.c (proceed_next_node): Redo local variables to
74964         avoid GCC shadowing warnings.
74965
74966 2005-08-18  Bruno Haible  <bruno@clisp.org>
74967
74968         * lib/strstr.c (strstr): Fix return value in multibyte case.
74969         * lib/strcasestr.c (strcasestr): Likewise.
74970
74971 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74974
74975 2005-08-17  Jim Meyering  <jim@meyering.net>
74976
74977         Make the %s format (seconds since the epoch) work for a negative
74978         number and when used with a zero-padded field width, e.g. %015s.
74979
74980         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74981         label so that it precedes the code to set `digits'.  Otherwise,
74982         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74983         print `00-22'.  Now, it prints `-0022', as it should.
74984
74985 2005-08-17  Bruno Haible  <bruno@clisp.org>
74986
74987         * modules/strstr (Files): Add m4/mbrtowc.m4.
74988         (Depends-on): Add mbuiter.
74989
74990 2005-08-17  Bruno Haible  <bruno@clisp.org>
74991
74992         * modules/strcasestr: New file.
74993         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74994         strcasestr.
74995
74996 2005-08-17  Bruno Haible  <bruno@clisp.org>
74997
74998         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74999
75000 2005-08-17  Bruno Haible  <bruno@clisp.org>
75001
75002         * modules/mbuiter: New file.
75003         * MODULES.html.sh (Extended multibyte and wide character utilities):
75004         Add mbuiter.
75005
75006 2005-08-17  Bruno Haible  <bruno@clisp.org>
75007
75008         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75009         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75010
75011 2005-08-17  Bruno Haible  <bruno@clisp.org>
75012
75013         * m4/strcasestr.m4: New file.
75014
75015 2005-08-17  Bruno Haible  <bruno@clisp.org>
75016
75017         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75018         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75019
75020 2005-08-17  Bruno Haible  <bruno@clisp.org>
75021
75022         * lib/strcasestr.h: New file.
75023         * lib/strcasestr.c: New file.
75024
75025 2005-08-17  Bruno Haible  <bruno@clisp.org>
75026
75027         * lib/strcasecmp.c: Use mbuiter.h.
75028
75029 2005-08-17  Bruno Haible  <bruno@clisp.org>
75030
75031         * lib/mbuiter.h: New file.
75032
75033 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75034
75035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75036         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75037         and gl_GETOPT are both invoked via different paths (as happens
75038         with GNU tar CVS because it uses both argp and getopt), the former
75039         wins.
75040
75041 2005-08-16  Bruno Haible  <bruno@clisp.org>
75042
75043         * modules/tls: New file.
75044         * MODULES.html.sh (Multithreading): Add tls.
75045
75046 2005-08-16  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/strnlen1: New file.
75049         * MODULES.html.sh (String handling): Add strnlen1.
75050
75051 2005-08-16  Bruno Haible  <bruno@clisp.org>
75052
75053         * modules/strcase (Files): Add m4/mbrtowc.m4.
75054         (Depends-on): Add strnlen1, mbchar.
75055
75056 2005-08-16  Bruno Haible  <bruno@clisp.org>
75057
75058         * modules/mbiter: New file.
75059         * MODULES.html.sh (Extended multibyte and wide character utilities):
75060         Add mbiter.
75061
75062 2005-08-16  Bruno Haible  <bruno@clisp.org>
75063
75064         * modules/mbfile: New file.
75065         * MODULES.html.sh (Extended multibyte and wide character utilities):
75066         Add mbfile.
75067
75068 2005-08-16  Bruno Haible  <bruno@clisp.org>
75069
75070         * modules/mbchar: New file.
75071         * MODULES.html.sh (Extended multibyte and wide character utilities):
75072         New section.
75073
75074 2005-08-16  Bruno Haible  <bruno@clisp.org>
75075
75076         * m4/tls.m4: New file, from GNU gettext.
75077
75078 2005-08-16  Bruno Haible  <bruno@clisp.org>
75079
75080         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75081         always.
75082         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75083
75084 2005-08-16  Bruno Haible  <bruno@clisp.org>
75085
75086         * m4/mbiter.m4: New file.
75087
75088 2005-08-16  Bruno Haible  <bruno@clisp.org>
75089
75090         * m4/mbfile.m4: New file.
75091
75092 2005-08-16  Bruno Haible  <bruno@clisp.org>
75093
75094         * m4/mbchar.m4: New file.
75095
75096 2005-08-16  Bruno Haible  <bruno@clisp.org>
75097
75098         * lib/tls.h: New file, from GNU gettext.
75099         * lib/tls.c: New file, from GNU gettext.
75100
75101 2005-08-16  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/strnlen1.h: New file.
75104         * lib/strnlen1.c: New file.
75105
75106 2005-08-16  Bruno Haible  <bruno@clisp.org>
75107
75108         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75109         (mbi_init): Update.
75110         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75111         NUL byte, not after it.
75112
75113 2005-08-16  Bruno Haible  <bruno@clisp.org>
75114
75115         * lib/strcase.h (strcasecmp): Add note in comments.
75116         * lib/strncasecmp.c: Use code from strcasecmp.c.
75117         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75118         (strcasecmp): Work correctly in multibyte locales.
75119
75120 2005-08-16  Bruno Haible  <bruno@clisp.org>
75121
75122         * lib/mbiter.h: New file.
75123
75124 2005-08-16  Bruno Haible  <bruno@clisp.org>
75125
75126         * lib/mbfile.h: New file.
75127
75128 2005-08-16  Bruno Haible  <bruno@clisp.org>
75129
75130         * lib/mbchar.h: New file.
75131         * lib/mbchar.c: New file.
75132
75133 2005-08-16  Bruno Haible  <bruno@clisp.org>
75134
75135         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75136         the valid ones. Makes the comparison operations transitive:
75137         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75138         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75139
75140 2005-08-15  Simon Josefsson  <jas@extundo.com>
75141
75142         * modules/ssize_t (License): Change to 'unlimited'.
75143
75144         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75145
75146 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75149         Add comments for each pending glibc patch.
75150
75151 2005-08-15  Bruno Haible  <bruno@clisp.org>
75152
75153         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75154         __cplusplus is defined.
75155
75156 2005-08-14  Jim Meyering  <jim@meyering.net>
75157
75158         Sync from coreutils.
75159
75160         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75161         Use the hash-table-based cycle-detection code not just when
75162         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75163         Reported by James Youngman in
75164         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75165         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75166         FTS_TIGHT_CYCLE_CHECK.
75167         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75168         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75169         once again.
75170         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75171         * lib/fts.c (fd_safer): Remove decl.
75172         Include fcntl--.h rather than unistd-safer.h
75173         (fts_safe_changedir): Don't call fd_safer; no longer needed
75174         now that we include fcntl--.h.
75175
75176 2005-08-12  Simon Josefsson  <jas@extundo.com>
75177
75178         * modules/getndelim2: Use ssize_t module.
75179         * modules/getnline: Likewise.
75180         * modules/safe-read: Likewise.
75181         * modules/xreadlink: Likewise.
75182
75183         * modules/ssize_t: New file.
75184
75185 2005-08-12  Simon Josefsson  <jas@extundo.com>
75186
75187         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75188
75189 2005-08-12  Simon Josefsson  <jas@extundo.com>
75190
75191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75192         ssize_t.
75193
75194 2005-08-12  Simon Josefsson  <jas@extundo.com>
75195
75196         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75197         readline, getdelim and check_version.
75198         (Support for systems lacking ISO C 99: Sizes of integer types):
75199         Add size_max.
75200
75201 2005-08-12  Bruno Haible  <bruno@clisp.org>
75202
75203         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75204
75205 2005-08-11  Simon Josefsson  <jas@extundo.com>
75206
75207         * modules/readline: New file.
75208
75209         * modules/strnlen (Files): Add strnlen.h.
75210
75211 2005-08-11  Simon Josefsson  <jas@extundo.com>
75212
75213         * m4/readline.m4: New file.
75214
75215 2005-08-11  Simon Josefsson  <jas@extundo.com>
75216
75217         * lib/readline.h, readline.c: New file.
75218
75219 2005-08-11  Simon Josefsson  <jas@extundo.com>
75220
75221         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75222         gl_AVOID.
75223
75224 2005-08-11  Bruno Haible  <bruno@clisp.org>
75225
75226         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75227
75228 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75229
75230         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75231
75232 2005-08-10  Simon Josefsson  <jas@extundo.com>
75233
75234         * tests/test-iconvme.c: New file.
75235
75236 2005-08-10  Simon Josefsson  <jas@extundo.com>
75237
75238         * m4/strnlen.m4: New file.
75239
75240         * m4/strndup.m4: Don't check for strnlen declaration, done in
75241         strnlen.m4.
75242
75243 2005-08-10  Simon Josefsson  <jas@extundo.com>
75244
75245         * lib/strndup.c: Use strnlen.h.
75246
75247         * lib/strnlen.h: New file.
75248
75249 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75250
75251         * README: Typos.
75252
75253 2005-08-02  Simon Josefsson  <jas@extundo.com>
75254
75255         * modules/readline: New file.
75256
75257 2005-08-02  Simon Josefsson  <jas@extundo.com>
75258
75259         * modules/getdelim: New file.
75260
75261         * modules/getline: Rewrite, don't use getndelim2.
75262
75263 2005-08-02  Simon Josefsson  <jas@extundo.com>
75264
75265         * m4/getline.m4: Separate out getdelim stuff into separate module.
75266
75267         * m4/getdelim.m4: New file.
75268
75269 2005-08-02  Simon Josefsson  <jas@extundo.com>
75270
75271         * lib/getline.h, getline.c: Rewrite.
75272
75273         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75274
75275 2005-07-31  Bruno Haible  <bruno@clisp.org>
75276
75277         * lib/lock.h (gl_lock_initializer): New macro.
75278         (gl_lock_define_initialized): Use it.
75279         (gl_rwlock_initializer): New macro.
75280         (gl_rwlock_define_initialized): Use it.
75281         (gl_recursive_lock_initializer): New macro.
75282         (gl_recursive_lock_define_initialized): Use it.
75283
75284 2005-07-30  Karl Berry  <karl@gnu.org>
75285
75286         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75287         Report from Ben Pfaff, regarding getopt.
75288
75289 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75290
75291         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75292         normal way.
75293         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75294         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75295         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75296         (gl_GETOPT): Use the new macros.  Most of the implementation
75297         is moved to the new macros.  This is for programs like Emacs
75298         that don't want all the functionality of gl_GETOPT.
75299
75300 2005-07-26  Bruno Haible  <bruno@clisp.org>
75301
75302         * m4/lock.m4: Update from GNU gettext.
75303
75304 2005-07-26  Bruno Haible  <bruno@clisp.org>
75305
75306         * lib/lock.h: Update from GNU gettext.
75307         * lib/lock.c: Update from GNU gettext.
75308
75309 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75312         obsolescent AC_TRY_RUN.  Include the default includes files, for
75313         'exit'.
75314
75315 2005-07-24  Bruno Haible  <bruno@clisp.org>
75316
75317         * modules/visibility: New file.
75318         * MODULES.html.sh (Misc): Add visibility.
75319
75320 2005-07-24  Bruno Haible  <bruno@clisp.org>
75321
75322         * m4/visibility.m4: New file.
75323
75324 2005-07-24  Bruno Haible  <bruno@clisp.org>
75325
75326         * doc/visibility.texi: New file.
75327
75328 2005-07-22  Bruno Haible  <bruno@clisp.org>
75329
75330         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75331         $(ALLOCA_H), redundant through BUILT_SOURCES.
75332         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75333         redundant through BUILT_SOURCES.
75334         * modules/byteswap (Makefile.am): Remove explicit dependency on
75335         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75336         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75337         $(FNMATCH_H), redundant through BUILT_SOURCES.
75338         * modules/getopt (Makefile.am): Remove explicit dependency on
75339         $(GETOPT_H), redundant through BUILT_SOURCES.
75340         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75341         redundant through BUILT_SOURCES.
75342         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75343         redundant through BUILT_SOURCES.
75344         * modules/stdbool (Makefile.am): Remove explicit dependency on
75345         $(STDBOOL_H), redundant through BUILT_SOURCES.
75346         * modules/stdint (Makefile.am): Remove explicit dependency on
75347         $(STDINT_H), redundant through BUILT_SOURCES.
75348         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75349         Remove explicit dependency on $(SYSEXITS_H).
75350         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75351
75352 2005-07-18  Simon Josefsson  <jas@extundo.com>
75353
75354         * lib/check-version.c (check_version): Accept identical versions too.
75355
75356 2005-07-18  Bruno Haible  <bruno@clisp.org>
75357
75358         * modules/lock: New file.
75359         * MODULES.html.sh (Multithreading): New section.
75360
75361 2005-07-18  Bruno Haible  <bruno@clisp.org>
75362
75363         * m4/lock.m4: New file, from GNU gettext.
75364
75365 2005-07-18  Bruno Haible  <bruno@clisp.org>
75366
75367         * lib/lock.h: New file, from GNU gettext.
75368         * lib/lock.c: New file, from GNU gettext.
75369
75370 2005-07-18  Bruno Haible  <bruno@clisp.org>
75371
75372         * lib/lock.h (gl_once_t): New type.
75373         (gl_once_define, gl_once): New macros.
75374         * lib/lock.c (fresh_once): New variable.
75375         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75376         functions.
75377
75378 2005-07-16  Simon Josefsson  <jas@extundo.com>
75379
75380         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75381         workaround, suggested by Bruno.
75382
75383 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * modules/xalloc (Depends-on): Add xalloc-die.
75386         * modules/xvasprintf (Depends-on): Add xalloc-die.
75387
75388 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75391         with a minor change.
75392
75393 2005-07-15  Bruno Haible  <bruno@clisp.org>
75394
75395         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75396         When using lib/poll.c, define poll as rpl_poll.
75397
75398 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * modules/argp (Depends-on): Remove unlocked-io.
75401
75402 2005-07-14  Derek Price  <derek@ximbiot.com>
75403
75404         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75405         for glob symlink bug.
75406
75407 2005-07-14  Bruno Haible  <bruno@clisp.org>
75408
75409         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75410         Instead, test for *_unlocked function declarations directly.
75411
75412 2005-07-11  Simon Josefsson  <jas@extundo.com>
75413
75414         * modules/size_max: New file.
75415
75416         * modules/xsize: Depend on size_max module for size_max.m4.
75417
75418 2005-07-11  Simon Josefsson  <jas@extundo.com>
75419
75420         * lib/size_max.h: New file.
75421
75422 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75423
75424         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75425         copyright symbol and the year.
75426         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75427         (version_etc_va): Use parameterized copyright notice.
75428         Reword to conform to the current GNU coding standards.
75429
75430 2005-07-11  Karl Berry  <karl@gnu.org>
75431
75432         * doc/gnulib.texi (Quoting): new node.
75433         (Initial import): more info, from Patrice.
75434
75435 2005-07-11  Bruno Haible  <bruno@clisp.org>
75436
75437         * gnulib-tool (func_usage): Document option --avoid.
75438         (Command line options): Handle --avoid.
75439         (func_acceptable): New function.
75440         (func_modules_transitive_closure): Use it.
75441
75442 2005-07-11  Bruno Haible  <bruno@clisp.org>
75443
75444         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75445         Reported by Jim Meyering.
75446
75447 2005-07-10  Bruno Haible  <bruno@clisp.org>
75448
75449         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75450         Needed when size_t is smaller than 'unsigned int'.
75451         Reported by Paul Eggert.
75452
75453 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75454
75455         * modules/argp (Depends-on): Add unlocked-io
75456
75457 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75458
75459         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75460         block of defines.
75461
75462 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75465         fix now.
75466
75467 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75468         and Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75471         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75472
75473 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75474
75475         * modules/regex (Files): Add lib/regex_internal.c,
75476         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75477         (Depends-on): Add extensions.
75478         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75479
75480 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75481
75482         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75483         pathconf.
75484         * m4/same.m4 (gl_SAME): Likewise.
75485         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75486
75487         * m4/regex.m4: Adjust to new libc regex implementation.
75488         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75489         all the .c and .h parts of (the new) regex.
75490         Quote the m4 stuff better.
75491         Check for RE_ICASE bug of old gnulib.
75492         Check for REG_STARTEND of recent libc.
75493         Rename local variables from jm_* to gl_*.
75494         Quote operand of "test -f".
75495         Say "recent enough" version of libc, not "version 2".
75496         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75497         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75498         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75499         Remove check for btowc, isascii.
75500         Require AM_LANGINFO_CODESET.
75501
75502 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         * lib/regex.c, regex.h: Sync from libc.
75505         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75506         * lib/regexec.c:
75507         New files, synced from libc, except that regex_internal.h
75508         currently has a small porting fix.
75509
75510 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75511
75512         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75513         regex_internal.c, regexec.c.
75514         Add regex_internal.h too, but as a comment, since the libc version
75515         is currently broken in gnulib mode.
75516
75517 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75518
75519         Support programs like Emacs that use gnulib but not gettext.
75520         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75521         * modules/gettext-h: New file.
75522         * modules/gettext (Files): Remove lib/gettext.h.
75523         (Depends-on): Add gettext-h.
75524         (Makefile.am): Remove lib_SOURCES.
75525         * modules/argmatch, modules/c-stack, modules/closeout:
75526         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75527         * modules/execute, modules/file-type, modules/getaddrinfo:
75528         * modules/getopt, modules/human, modules/javacomp:
75529         * modules/javaexec, modules/mkdir-p, modules/obstack:
75530         * modules/openat, modules/pagealign_alloc, modules/pipe:
75531         * modules/quotearg, modules/regex, modules/rpmatch:
75532         * modules/unicodeio, modules/userspec, modules/version-etc:
75533         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75534         * modules/xsetenv:
75535         Depend on gettext-h, not gettext.
75536
75537 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * gnulib-tool (func_import): Add support for 'public domain' license.
75540         * modules/alloca, modules/atexit, modules/memmove:
75541         Now public domain, not GPL.
75542         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75543         * modules/realloc, modules/strerror, modules/strtod:
75544         Now LGPL, not GPL.
75545
75546 2005-07-05  Bruno Haible  <bruno@clisp.org>
75547
75548         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75549         autoconf CVS. Needed for mingw.
75550
75551 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75552
75553         Remove the dependency of the strftime module on the tzset module.
75554         * modules/strftime (Depends-on): Remove dependency on tzset.
75555
75556 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         Remove the dependency of the strftime module on the tzset module.
75559         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75560         gl_FUNC_TZSET_CLOBBER.
75561
75562 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         Remove the dependency of the strftime module on the tzset module.
75565         * lib/strftime.c (my_strftime)
75566         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75567         Copy the input structure, to work around some of the bug with
75568         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75569         Solaris releases, you should also use the tzset module, but we won't
75570         require it as a dependency any more since we don't want LGPLed code
75571         to depend on GPLed code.
75572
75573 2005-07-02  Jim Meyering  <jim@meyering.net>
75574
75575         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75576         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75577         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75578         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75579
75580 2005-07-02  Jim Meyering  <jim@meyering.net>
75581
75582         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75583
75584 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75587         declares only 'struct timespec;' (!).
75588
75589 2005-07-01  Jim Meyering  <jim@meyering.net>
75590
75591         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75592         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75593         * lib/save-cwd.c, tempname.c:
75594         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75595         and don't include <sys/file.h>).
75596
75597 2005-06-29  Jim Meyering  <jim@meyering.net>
75598
75599         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75600         type name.  Use the variable name instead.
75601         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75602         Likewise.
75603
75604 2005-06-28  Simon Josefsson  <jas@extundo.com>
75605
75606         * modules/check-version (Files): Add check-version.m4.
75607
75608 2005-06-28  Simon Josefsson  <jas@extundo.com>
75609
75610         * m4/check-version.m4: New file, suggested by Jim Meyering
75611         <jim@meyering.net>.
75612
75613 2005-06-28  Simon Josefsson  <jas@extundo.com>
75614
75615         * lib/check-version.h, lib/check-version.c: New files.
75616
75617 2005-06-28  Simon Josefsson  <jas@extundo.com>
75618
75619         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75620         collision with global variable.  Better indentation.  Don't
75621         increment buffer pointer beyond buffer end.  Based on comments
75622         from Paul Eggert <eggert@cs.ucla.edu>.
75623
75624         * lib/base64.h: Indent.
75625
75626 2005-06-28  Simon Josefsson  <jas@extundo.com>
75627
75628         * doc/gnulib.texi (Library version handling): New section.
75629
75630 2005-06-28  Jim Meyering  <jim@meyering.net>
75631
75632         * check-module (find_included_lib_files): Hard-code another
75633         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75634         but modules/fts-lgpl (correctly) does not list those files.
75635
75636         * modules/canonicalize (Files): Add lib/pathmax.h.
75637
75638 2005-06-25  Simon Josefsson  <jas@extundo.com>
75639
75640         * modules/check-version: New file.
75641
75642 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75643
75644         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75645         initializer of struct addrinfo, as an indication that we don't
75646         care how many members the structure has.
75647
75648 2005-06-24  Derek Price  <derek@ximbiot.com>
75649         and Bruno Haible  <bruno@clisp.org>
75650
75651         Remove stat module & update lstat.
75652         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75653         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75654         * m4/stat.m4: Remove this file.
75655
75656 2005-06-24  Derek Price  <derek@ximbiot.com>
75657         and Bruno Haible  <bruno@clisp.org>
75658
75659         Remove stat module & update lstat.
75660         * lib/stat.c: Remove this file...
75661         (slash_aware_lstat): ...moving this content and its support...
75662         * lib/lstat.c (rpl_lstat): ...into here.
75663         * lib/lstat.h: New file.
75664
75665 2005-06-24  Derek Price  <derek@ximbiot.com>
75666         and Bruno Haible  <bruno@clisp.org>
75667
75668         Remove stat module & update lstat.
75669         * config/srclist.txt (libc sources): Remove stat.
75670
75671 2005-06-24  Derek Price  <derek@ximbiot.com>
75672         and Bruno Haible  <bruno@clisp.org>
75673
75674         Remove stat module & update lstat.
75675         * MODULES.html.sh (stat): Remove.
75676         * MODULES.html: Regenerated.
75677         * modules/lstat (Description): Correct function name.
75678         (Files): Add "lstat.h".
75679         (Depends-on): Remove stat, add xalloc, stat-macros.
75680         * modules/stat: Remove this file.
75681         (Include): Add "lstat.h", remove <sys/stat.h>.
75682
75683 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75684
75685         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75686         (ranged_convert): Don't save conversion in a temporary struct.
75687         This causes a warning with GCC 4.0.0, and anyway in the typical
75688         case it's not worth the extra 100 bytes or so of code.
75689         (ranged_convert, __mktime_internal): When calling a function via a
75690         pointer P, use P () rather than (*P) (), as we now assume C89 or
75691         better.
75692
75693 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75696         "who -r" failed to give output.  Problem reported by Tim Waugh.
75697
75698         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75699         (xcalloc): Use it to avoid needless tests.
75700         Problem reported by Jim Meyering.
75701
75702 2005-06-20  Derek Price  <derek@ximbiot.com>
75703
75704         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75705         unnecessary for Autoconfs > 2.59c.
75706
75707 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75708
75709         * lib/argp.h (__option_is_short): Check upper limit of
75710         __key. Isprint() requires its argument to have the value
75711         of an unsigned char or EOF.
75712
75713 2005-06-16  Jim Meyering  <jim@meyering.net>
75714
75715         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75716         when either N or S is zero.
75717
75718 2005-06-16  Derek Price  <derek@ximbiot.com>
75719
75720         * m4/bison.m4: Declare YACC & YFLAGS precious.
75721
75722 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75725         multibyte string or pattern, fall back on unibyte matching.
75726         Problem reported by James Youngman.
75727
75728 2005-06-08  Bruno Haible  <bruno@clisp.org>
75729
75730         * modules/csharpcomp: New file.
75731         * MODULES.html.sh (C#): Add csharpcomp.
75732
75733 2005-06-08  Bruno Haible  <bruno@clisp.org>
75734
75735         * m4/csharpcomp.m4: New file, from GNU gettext.
75736
75737 2005-06-08  Bruno Haible  <bruno@clisp.org>
75738
75739         * lib/csharpcomp.h: New file, from GNU gettext.
75740         * lib/csharpcomp.c: New file, from GNU gettext.
75741         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75742
75743 2005-06-08  Bruno Haible  <bruno@clisp.org>
75744
75745         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75746         warning on mingw.
75747
75748 2005-06-07  Derek Price  <derek@ximbiot.com>
75749
75750         Sync from CVS.
75751         * lib/glob_.h: Indent nested #ifdef.
75752
75753 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         Sync from coreutils.
75756         Use "file name" when talking about file names, instead of "filename"
75757         or "path", as per the GNU coding standards.
75758         * lib/mkdir-p.c: Renamed from makepath.c.
75759         (make_dir_parents): Renamed from make_path.  All callers changed.
75760         * lib/mkdir-p.h: Likewise.  All includers changed.
75761         * lib/filenamecat.c: Renamed from path-concat.c.
75762         (file_name_concat): Renamed from path_concat.  All callers changed.
75763         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75764         * lib/filenamecat.h: Likewise.  All includers changed.
75765         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75766         in comments or local variable names.
75767         * lib/basename.c: Likewise.
75768         * lib/canonicalize.c, canonicalize.h: Likewise.
75769         * lib/dirname.c, dirname.h: Likewise.
75770         * lib/euidaccess.c: Likewise.
75771         * lib/exclude.c: Likewise
75772         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75773         * lib/fsusage.c, fsuage.h: Likewise.
75774         * lib/fts.c, fts_.h: Likewise.
75775         * lib/getcwd.c: Likewise.
75776         * lib/getloadavg.c: Likewise.
75777         * lib/mkstemp.c: Likewise.
75778         * lib/mountlist.c, mountlist.h: Likewise.
75779         * lib/openat.c, openat.h: Likewise.
75780         * lib/readlink-stub.c: Likewise.
75781         * lib/readutmp.c, readutmp.h: Likewise.
75782         * lib/rename.c: Likewise.
75783         * lib/rmdir.c: Likewise.
75784         * lib/same.c: Likewise.
75785         * lib/savedir.c: Likewise.
75786         * lib/stripslash.c: Likewise.
75787         * lib/tempname.c: Likewise.
75788         * lib/xreadlink.c: Likewise.
75789         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75790         All uses changed.
75791         * lib/exclude.h: Likewise.
75792
75793         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75794         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75795         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75796         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75797         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75798         files have been getting away with it for years (MORE/BSD 4.3
75799         is extinct now).
75800         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75801         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75802
75803         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75804         Define to 256, not 255, as per modern POSIX.
75805
75806 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         Sync from coreutils.
75809         Use "file name" when talking about file names, instead of "filename"
75810         or "path", as per the GNU coding standards.
75811         * MODULES.html.sh: mkdir-p renamed from makepath.
75812         filenamecat renamed from path-concat.
75813         * modules/filenamecat: Renamed from modules/path-concat.
75814         (Files): filenamecat.h and filenamecat.c renamed from
75815         path-concat.h and path-concat.c.
75816         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75817         (Include): filenamecat.h, not path-concat.h.
75818         * modules/mkdir-p: Renamed from modules/makepath.
75819         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75820         makepath.c.
75821         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75822         (Include): mkdir-p.h, not makepath.h.
75823
75824 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         Sync from coreutils.
75827         * m4/mkdir-p.m4: Renamed from makepath.m4.
75828         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75829         Rename files from makepath.c to mkdir-p.c, and from
75830         makepath.h to mkdir-p.h.
75831         * m4/filenamecat.m4: Renamed from path-concat.m4.
75832         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75833         Rename files from path-concat.c to filenamecat.c,
75834         and from path-concat.h to filenamecat.h.
75835         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75836         "file name" in local variables or comments.
75837         * m4/rename.m4: Likewise.
75838
75839 2005-06-01  Bruno Haible  <bruno@clisp.org>
75840
75841         * modules/csharpexec: New file.
75842         * MODULES.html.sh (C#): New section.
75843
75844 2005-06-01  Bruno Haible  <bruno@clisp.org>
75845
75846         * m4/csharp.m4: New file, from GNU gettext.
75847         * m4/csharpexec.m4: New file, from GNU gettext.
75848
75849 2005-06-01  Bruno Haible  <bruno@clisp.org>
75850
75851         * lib/csharpexec.h: New file, from GNU gettext.
75852         * lib/csharpexec.c: New file, from GNU gettext.
75853         * lib/csharpexec.sh.in: New file, from GNU gettext.
75854
75855 2005-05-31  Derek Price  <derek@ximbiot.com>
75856             Paul Eggert  <eggert@cs.ucla.edu>
75857
75858         Sync from cvs.
75859         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75860
75861 2005-05-31  Derek Price  <derek@ximbiot.com>
75862             Paul Eggert  <eggert@cs.ucla.edu>
75863
75864         Sync from cvs.
75865         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75866
75867 2005-05-29  Derek Price  <derek@ximbiot.com>
75868
75869         * config/srclist.txt (glob_.h, glob.c): Add these files.
75870
75871 2005-05-29  Derek Price  <derek@ximbiot.com>
75872
75873         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75874         * modules/glob: New file.
75875         * modules/getlogin_r: Add link to POSIX spec in description.
75876
75877 2005-05-29  Derek Price  <derek@ximbiot.com>
75878             Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * m4/glob.m4: New file.
75881
75882 2005-05-29  Derek Price  <derek@ximbiot.com>
75883             Paul Eggert  <eggert@cs.ucla.edu>
75884
75885         * lib/glob_.h, lib/glob.c: New files.
75886
75887 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75888
75889         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75890         * modules/fts-lgpl (Depends-on): Remove gettext.
75891
75892 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75895         and don't require gt_INTTYPES_PRI.
75896
75897 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75900
75901         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75902         the configuration hassle isn't worth it.
75903         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75904         (LONGEST_MODIFIER, PRIuMAX): Remove.
75905
75906 2005-05-27  Bruno Haible  <bruno@clisp.org>
75907
75908         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75909
75910 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75913         _POSIX_PTHREAD_SEMANTICS for Solaris.
75914
75915 2005-05-25  Derek Price  <derek@ximbiot.com>
75916
75917         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75918
75919 2005-05-25  Derek Price  <derek@ximbiot.com>
75920             Paul Eggert  <eggert@cs.ucla.edu>
75921
75922         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75923         * lib/getlogin_r.c, getlogin_r.h: New files.
75924
75925 2005-05-25  Bruno Haible  <bruno@clisp.org>
75926             Derek Price  <derek@ximbiot.com>
75927
75928         * lib/getlogin_r.h: Simplify API documentation.
75929
75930 2005-05-23  Derek Price  <derek@ximbiot.com>
75931
75932         * modules/minmax (Files): Add m4/minmax.m4.
75933         (configure.ac): Add gl_MINMAX.
75934
75935 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75938         so that unistd-safer.h (GPL'ed code) need not be included.
75939
75940 2005-05-22  Bruno Haible  <bruno@clisp.org>
75941
75942         * m4/minmax.m4: New file.
75943         Based on a patch by Derek Price <derek@ximbiot.com>.
75944
75945 2005-05-22  Bruno Haible  <bruno@clisp.org>
75946
75947         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75948         (INT64_MIN): Fix definition.
75949         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75950
75951         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75952         NEED_SIGNED_INT_TYPES.
75953
75954         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75955         HAVE_SYSTEM_INTTYPES.
75956
75957 2005-05-22  Bruno Haible  <bruno@clisp.org>
75958
75959         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75960         Also include <sys/param.h> if it defines MIN, MAX.
75961         Based on a patch by Derek Price <derek@ximbiot.com>.
75962
75963 2005-05-21  Jim Meyering  <jim@meyering.net>
75964
75965         * modules/fts (Files): Add m4/inttypes-pri.m4.
75966         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75967
75968 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         New fts module.
75971         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75972         (setup_dir, free_dir): New functions.
75973         (enter_dir, leave_dir): Define trivial
75974         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75975         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75976         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75977         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75978         Move to fts-cycle.c.
75979         (fts_open): Use setup_dir.
75980         (fts_close): Use free_dir.
75981         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75982         This adds a label and some gotos, but the alternatives were messier.
75983         Check for memory allocation failure when entering a dir.
75984         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75985         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75986         (FTS): New member fts_cycle, that is a union that contains the
75987         old active_dir_ht and cycle_state.  All uses changed to mention
75988         fts_cycle.ht and fts_cycle.state.
75989         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75990         fts.c, with the following changes:
75991         (setup_dir, free_dir): New functions.
75992         (enter_dir): Now returns bool.  Return true if successful, false
75993         if memory exhausted.  All callers changed.
75994         Do not bother partly cleaning up on
75995         memory allocation failure; that is free_dir's job.
75996         However, free ad if hash_insert fails, to avoid memory leak.
75997         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75998         fts->fts_options to see which union member to use.
75999
76000 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76003         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76004
76005 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76006
76007         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76008
76009 2005-05-20  Jim Meyering  <jim@meyering.net>
76010
76011         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76012         Now a macro, to pacify GCC.
76013
76014 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76015
76016         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76017         of -1.
76018
76019 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76020
76021         * lib/chown.c (rpl_chown): Return -1 on failure.
76022
76023 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76026         Don't check for stddef.h.
76027         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76028         don't use its results.
76029         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76030         since we include them unconditionally.  Don't require
76031         AM_STDBOOL_H, since stdbool is a prerequisite.
76032         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76033         since we assume C89 or better.
76034         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76035         as we don't use their results.
76036         Don't check for fchdir, memmove, memset, strrchr, as we use
76037         them unconditionally.
76038         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76039         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76040
76041 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76042
76043         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76044         Include <stddef.h> unconditionally, since we assume C89 now.
76045         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76046         * lib/fts.c: Include fts_.h first, to check interface.
76047         Do not include intprops.h; no longer needed.
76048         Include cycle-check.h and hash.h, since fts_.h no longer does.
76049         Remove unnecessary casts of closedir to void.
76050         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76051         decide whether to decrement nlinks.
76052         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76053         (FTS): Use struct hash_table * instead of Hash_table, so that
76054         we no longer need to include hash.h here.
76055
76056 2005-05-18  Jim Meyering  <jim@meyering.net>
76057
76058         * modules/dirfd (License): Change to LGPL.  Most of the code
76059         is already in the public domain.
76060
76061 2005-05-18  Jim Meyering  <jim@meyering.net>
76062
76063         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76064         Reported by Yoann Vandoorselaere.
76065
76066 2005-05-17  Jim Meyering  <jim@meyering.net>
76067
76068         * m4/fts.m4: New file, from coreutils.
76069
76070 2005-05-17  Jim Meyering  <jim@meyering.net>
76071
76072         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76073
76074 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         Sync from coreutils.
76077         * m4/unlinkdir.m4: New file.
76078
76079 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         Sync from coreutils.
76082         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76083         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76084         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76085         White space changes only.
76086         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76087         special.
76088         * lib/yesno.c: Include getline.h, not ctype.h.
76089         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76090         Use getline to remove arbitrary restriction on response length.
76091
76092 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * config/srclist-update: Spell out "Street" in FSF postal
76095         mail address; this is the style the FSF seems to prefer.
76096
76097         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76098         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76099         this updates FSF postal mail address.
76100
76101         Sync from coreutils.
76102         * modules/unlinkdir: New file.
76103         * modules/yesno (Depends-on): Add getline.
76104         * MODULES.html.sh (File system functions): Add unlinkdir.
76105
76106 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76109         lib/strsep.h:
76110         Change the initial comment to refer to GPL, not LGPL.
76111         gnulib-tool will change it to LGPL as needed.
76112
76113         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76114         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76115         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76116         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76117         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76118         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76119         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76120         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76121         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76122         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76123         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76124         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76125         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76126         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76127         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76128         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76129         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76130         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76131         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76132         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76133         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76134         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76135         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76136         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76137         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76138         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76139         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76140         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76141         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76142         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76143         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76144         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76145         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76146         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76147         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76148         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76149         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76150         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76151         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76152         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76153         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76154         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76155         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76156         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76157         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76158         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76159         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76160         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76161         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76162         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76163         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76164         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76165         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76166         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76167         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76168         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76169         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76170         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76171         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76172         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76173         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76174         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76175         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76176         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76177         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76178         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76179         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76180         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76181         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76182         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76183         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76184         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76185         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76186         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76187         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76188         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76189         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76190         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76191         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76192         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76193         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76194         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76195         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76196         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76197         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76198         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76199         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76200         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76201         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76202         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76203         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76204         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76205         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76206         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76207         lib/yesno.c, lib/yesno.h:
76208         Update FSF postal mail address.
76209
76210 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76213         tests/test-memmem.c, tests/test-stpncpy.c:
76214         Update FSF postal mail address.
76215
76216 2005-05-13  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76219         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76220         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76221         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76222         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76223         Add support for 64-bit integers in the MSVC compiler.
76224
76225 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76226
76227         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76228
76229 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76230
76231         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76232
76233 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76234
76235         * doc/getdate.texi (General date syntax): Don't say that date
76236         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76237         Problem reported by Nic Ferrier.
76238
76239 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76240
76241         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76242         specified in ai_socktype. Fix invalid ai_protocol
76243         check. ai_protocol is usually set to 0 or depending on
76244         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76245         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76246         ai_socktype / ai_protocol in the returned addrinfo structure.
76247
76248 2005-05-10  Simon Josefsson  <jas@extundo.com>
76249
76250         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76251         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76252
76253 2005-05-10  Karl Berry  <karl@gnu.org>
76254
76255         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76256         (from http://www.gnu.org/licenses).
76257         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76258         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76259         fdl.texi suffices.
76260
76261 2005-05-10  Karl Berry  <karl@gnu.org>
76262
76263         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76264         (COPYING.DOC): remove.
76265
76266         * config/srclist-update: new FSF address.
76267
76268 2005-05-10  Derek Price  <derek@ximbiot.com>
76269
76270         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76271         possible.
76272
76273 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76274             Bruno Haible  <bruno@clisp.org>
76275
76276         * modules/inet_ntop: New file.
76277         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76278         inet_ntop.
76279
76280 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76281             Bruno Haible  <bruno@clisp.org>
76282
76283         * m4/inet_ntop.m4: New file.
76284
76285 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76286             Bruno Haible  <bruno@clisp.org>
76287
76288         * lib/inet_ntop.h: New file.
76289         * lib/inet_ntop.c: New file, from glibc with modifications.
76290
76291 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * modules/time_r (License): Change to LGPL.
76294         * modules/extensions (License): Change to LGPL.  Actually,
76295         the license is more permissive than that, but currently gnulib-tool
76296         doesn't know how to handle more-permissive licenses.
76297
76298         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76299         Problem reported by Dave Love.
76300
76301 2005-05-08  Jim Meyering  <jim@meyering.net>
76302
76303         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76304         blank.
76305
76306 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         * modules/argmatch (Depends-on): Add stdbool.
76309         * modules/backupfile (Depends-on): Likewise.
76310         * modules/chdir-long (Depends-on): Likewise.
76311         * modules/closeout (Depends-on): Likewise.
76312         * modules/cycle-check (Depends-on): Likewise.
76313         * modules/dirname (Depends-on): Likewise.
76314         * modules/fnmatch (Depends-on): Likewise.
76315         * modules/fsusage (Depends-on): Likewise.
76316         * modules/fwriteerror (Depends-on): Likewise.
76317         * modules/getcwd (Depends-on): Likewise.
76318         * modules/getloadavg (Depends-on): Likewise.
76319         * modules/hard-locale (Depends-on): Likewise.
76320         * modules/makepath (Depends-on): Likewise.
76321         * modules/mountlist (Depends-on): Likewise.
76322         * modules/nanosleep (Depends-on): Likewise.
76323         * modules/posixtm (Depends-on): Likewise.
76324         * modules/quotearg (Depends-on): Likewise.
76325         * modules/readtokens (Depends-on): Likewise.
76326         * modules/readtokens0 (Depends-on): Likewise.
76327         * modules/readutmp (Depends-on): Likewise.
76328         * modules/save-cwd (Depends-on): Likewise.
76329         * modules/strftime (Depends-on): Likewise.
76330         * modules/userspec (Depends-on): Likewise.
76331         * modules/utimecmp (Depends-on): Likewise.
76332         * modules/xgetcwd (Depends-on): Likewise.
76333         * modules/xnanosleep (Depends-on): Likewise.
76334         * modules/xstrtod (Depends-on): Likewise.
76335         * modules/yesno (Depends-on): Likewise.
76336
76337 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76340         needless checks.
76341
76342 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76343
76344         Merge from coreutils.  Among other things,
76345         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76346         * lib/fd-safer.c: New file.
76347         * lib/fcntl-safer.h, open-safer.c: Remove.
76348         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76349         * lib/dup-safer.c: Include unistd-safer.h first.
76350         Don't include errno.h.
76351         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76352         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76353         * lib/file-type.c: Rely on file-type.h change.
76354         * lib/getloadavg.c: Include unistd-safer.h.
76355         (getloadavg): Use safer open.
76356         * lib/getusershell.c: Include "stdio-safer.h".
76357         (getusershell): Use safer fopen.
76358         * lib/long-options.c (long_options): Use NULL rather than 0.
76359         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76360         'free'.
76361         * lib/modechange.c: Likewise.
76362         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76363         (MODE_DONE): New constant.
76364         (struct mode_change): Remove 'next' member.
76365         (make_node_op_equals): New function; like the old one of the
76366         same name, except it allocates an array.
76367         (mode_compile, mode_create_from_ref): Use it.
76368         (mode_compile): Allocate result as an array, not a linked list.
76369         Parse octal string ourself, so that we catch mistakes like "+0".
76370         (mode_adjust): Arg is an array, not a linked list.
76371         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76372         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76373         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76374         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76375         Remove.  This is now stat-macros.h's job.
76376         (talloc): Remove.  All callers replaced by xalloc, so that
76377         our invokers don't have to worry about reporting memory failures.
76378         (make_node_op_equals): Remove.
76379         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76380         New constants.
76381         (struct mode_change): Moved here from modechange.h.
76382         (mode_append_entry): Remove.
76383         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76384         apps to have incorrect behavior.  Use simpler algorithm for head
76385         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76386         Detect more invalid usages rather than having somewhat-random behavior.
76387         Don't insert an "a=" action, as that leads to incorrect behavior.
76388         (mode_compile, mode_create_from_ref): Return NULL on error instead
76389         of an enum, since now there's only one way to have an error.  All
76390         callers changed.
76391         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76392         at the correct time.  Simplify calculation of "+u" and its ilk.
76393         Don't mishandle "+X".
76394         (mode_free): Remove "register" and localize decls.
76395         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76396         (struct mode_change): Move to modechange.c; callers don't
76397         need to see this stuff.
76398         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76399         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76400         (mode_change, mode_adjust): Reflect the new signatures noted above.
76401         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76402         that might redefine system include files.
76403         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76404         (my_usleep): Use NULL rather than (void *) 0.
76405         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76406         Use siginterrupt to specify that system calls should be interrupted.
76407         (rpl_nanosleep): Move initialization of suspended closer to call of
76408         my_usleep.
76409         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76410         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76411         (desirable_utmp_entry): New function.
76412         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76413         using x2nrealloc, to simplify logic.
76414         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76415         size calculation.  Do not assume utmp file is a regular file.
76416         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76417         (READ_UTMP_CHECK_PIDS): New constant.
76418         * lib/save-cwd.c: Include unistd-safer.h.
76419         (save_cwd): Use fd_safer.
76420         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76421         [!_LIBC] Include "stat-macros.h" instead.
76422         * lib/unistd-safer.h (fd_safer): New decl.
76423
76424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         * modules/getloadavg (Depends-on): Add unistd-safer.
76427         * modules/getusershell (Depends-on): Add stdio-safer.
76428         * modules/lstat (Depends-on): Remove xalloc.
76429         * modules/mkstemp (Depends-on): Add stat-macros.
76430         * modules/modechange (Depends-on): Remove xstrtol.
76431         Add stat-macros, xalloc.
76432         * modules/save-cwd (Depends-on): Add unistd-safer.
76433         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76434         * modules/unistd-safer (Files): Add lib/fd-safer.c
76435         (Makefile.am): Remove lib_SOURCES.
76436
76437         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76438         Remove fcntl-safer; unistd-safer supersedes it.
76439
76440 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76441
76442         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76443         AC_HEADER_STAT.
76444         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76445         (gl_PREREQ_CHOWN): Remove.
76446         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76447         it.  Don't require AC_HEADER_STAT.
76448         (gl_PREREQ_LSTAT): Remove.
76449         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76450         Don't require AC_HEADER_STAT.
76451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76452         (gl_PREREQ_RMDIR): Remove.
76453         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76454         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76455         the stat-macros module a prerequisite.
76456         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76457         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76458         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76459         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76460         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76461         variable names.
76462         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76463         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76464         variable prefixes.
76465         * m4/fcntl-safer.m4: Remove.
76466         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76467         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76468         Invoke gl_PREREQ_FD_SAFER.
76469         (gl_PREREQ_FD_SAFER): New macro.
76470         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76471         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76472         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76473         Remove duplicate call to AC_LIBOBJ(readutmp).
76474         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76475
76476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76477         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76478
76479 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76480
76481         * MODULES.html.sh (Misc): Add byteswap.
76482
76483 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76484
76485         * modules/getcwd (Depends-on): Add extensions.
76486         * modules/openat (Depends-on): Likewise.
76487
76488 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76489
76490         * modules/byteswap: New file.
76491
76492 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76493
76494         * m4/byteswap.m4: New file.
76495
76496 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76497
76498         * lib/byteswap_.h: New file.
76499
76500 2005-04-25  Karl Berry  <karl@gnu.org>
76501
76502         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76503
76504 2005-04-25  Albert Chin  <china@thewrittenword.com>
76505
76506         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76507         Toolkit C bug.
76508
76509 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76510
76511         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76512         (func_ln_if_changed): Remove forcibly for no error message
76513         in case file does not exist.
76514
76515 2005-04-19  Simon Josefsson  <jas@extundo.com>
76516
76517         * gnulib-tool (Options): Make --symlink mean --symbolic.
76518
76519 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76520
76521         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76522
76523 2005-04-16  Simon Josefsson  <jas@extundo.com>
76524
76525         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76526
76527 2005-04-15  Simon Josefsson  <jas@extundo.com>
76528
76529         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76530
76531 2005-04-15  Simon Josefsson  <jas@extundo.com>
76532
76533         * gnulib-tool: Rename --symlink to --symbolic.
76534
76535 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76536
76537         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76538         symbolic links to files instead of copying/moving.  Add --aux-dir,
76539         specifying directory relative --dir where auxiliary build tools
76540         are placed.
76541
76542 2005-04-14  Bruno Haible  <bruno@clisp.org>
76543
76544         * modules/allocsa (License): Change to LGPL.
76545         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76546
76547 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76550         that "UTC +1 second" continues to work.  Problem reported
76551         by Dmitry V. Levin.
76552         (relunit_snumber): New rule.
76553         (relunit): Use it.
76554
76555 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76556
76557         * lib/getdate.y (universal_time_zone_table): New constant.
76558         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76559         universal_time_zone_table.
76560         (lookup_zone): Prefer universal_time_zone_table to
76561         local_time_zone_table, so that "GMT" time stamps are allowed in
76562         London during the summer.  Problem reported by Ian Abbott.
76563
76564 2005-04-12  Jim Meyering  <jim@meyering.net>
76565
76566         * lib/human.c (humblock): Set *options even when returning due to
76567         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76568         warning from gcc-4.
76569
76570 2005-04-09  Jim Meyering  <jim@meyering.net>
76571
76572         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76573         -Wuninitialized: initialize tm0.tm_year.
76574
76575 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76578         count, since there's no maximum.  All uses changed.
76579         Add member dsts_seen.
76580         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76581         not being INT_MAX.
76582         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76583         Use pc_rels_seen to decide whther a date is absolute.
76584
76585         * lib/getdate.y (number): Don't overwrite year.
76586         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76587         check.
76588
76589 2005-04-02  Simon Josefsson  <jas@extundo.com>
76590
76591         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76592         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76593
76594 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76595
76596         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76597         where no absolute path name can be longer than PATH_MAX.
76598
76599 2005-03-27  Jim Meyering  <jim@meyering.net>
76600
76601         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76602
76603 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76606         "one's complement" -> "ones' complement" in comment, as per Knuth.
76607         "value of type" -> "type or expression" in comment.
76608         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76609
76610 2005-03-26  Jim Meyering  <jim@meyering.net>
76611
76612         Comment nits.
76613         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76614         Correct typos: s/or/of/.
76615
76616 2005-03-26  Jim Meyering  <jim@meyering.net>
76617
76618         * modules/check-include-files: Move to ../ and rename to...
76619         * check-module: ...this.
76620
76621 2005-03-25  Jim Meyering  <jim@meyering.net>
76622
76623         * modules/xvasprintf (Files): Add xalloc.h.
76624
76625 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * modules/gettext (Files): config/config.rpath ->
76628         build-aux/config.rpath
76629         * modules/iconv (Files): Likewise.
76630         Problem reported by Oskar Liljeblad.
76631
76632 2005-03-23  Jim Meyering  <jim@meyering.net>
76633
76634         * modules/check-include-files: New script to check for
76635         missing dependencies, multiple includes, etc.
76636
76637         * modules/c-strtold (Depends-on): Add xalloc.
76638         * modules/c-strtod (Depends-on): Add xalloc.
76639         * modules/hash (Depends-on): Add xalloc.
76640         (Files): Remove lib/xalloc.h.
76641
76642         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76643         * modules/userspec (Files): Add lib/inttostr.h.
76644
76645 2005-03-23  Jim Meyering  <jim@meyering.net>
76646
76647         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76648
76649 2005-03-22  Jim Meyering  <jim@meyering.net>
76650
76651         * modules/stat-macros: New module.
76652         * modules/canonicalize, modules/euidaccess, modules/file-type,
76653         * modules/filemode, modules/lchown, modules/makepath,
76654         * modules/rmdir, modules/stat: Depend on new stat-macros module
76655         rather than listing lib/stat-macros.h manually.
76656         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76657
76658 2005-03-22  Jim Meyering  <jim@meyering.net>
76659
76660         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76661
76662 2005-03-22  Bruno Haible  <bruno@clisp.org>
76663
76664         * config/srclist.txt: Replace target directory 'config' with
76665         'build-aux'.
76666         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76667         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76668         ../build-aux/.
76669
76670 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76671
76672         * modules/chdir-long (Depends-on): Add mempcpy.
76673
76674         * modules/acl, modules/backupfile, modules/c-strtod,
76675         modules/c-strtold, modules/canon-host, modules/canonicalize,
76676         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76677         modules/exclude, modules/exitfail, modules/file-type,
76678         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76679         modules/getdate, modules/getline, modules/getpagesize,
76680         modules/getpass, modules/getugroups, modules/group-member,
76681         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76682         modules/inttostr, modules/long-options, modules/makepath,
76683         modules/md5, modules/memcasecmp, modules/memcoll,
76684         modules/modechange, modules/mountlist, modules/path-concat,
76685         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76686         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76687         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76688         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76689         modules/strftime, modules/strndup, modules/strverscmp,
76690         modules/timespec, modules/unlocked-io, modules/userspec,
76691         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76692         modules/yesno:
76693         Remove lib_SOURCES line from Makefile.am section, as this is now
76694         done automatically by the corresponding Autoconf macro.
76695
76696 2005-03-21  Jim Meyering  <jim@meyering.net>
76697
76698         Changes imported from coreutils.
76699
76700         * lib/cycle-check.c: Don't include xalloc.h.
76701
76702         * lib/path-concat.c: Don't include assert.h.
76703         (path_concat): Remove assertion that would have triggered
76704         for ABASE starting with more than one slash.
76705         Reported by Andreas Schwab.
76706
76707         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76708         properly when ABASE is an absolute file name.
76709         Correct the description of this function.
76710         Include <assert.h>.
76711         Add an assertion and a test driver.
76712         This fixes a bug introduced on 2004-07-02.
76713         Andreas Schwab reported the resulting failure of cp --parents:
76714         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76715
76716 2005-03-21  Jim Meyering  <jim@meyering.net>
76717
76718         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76719         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76720
76721 2005-03-21  Jim Meyering  <jim@meyering.net>
76722         and  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76725         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76726         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76727         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76728         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76729         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76730         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76731         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76732         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76733         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76734         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76735         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76736         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76737         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76738         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76739         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76740         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76741         for these modules.
76742
76743 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76746         (which shouldn't happen), generate nothing instead of returning 0
76747         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76748
76749 2005-03-16  Bruno Haible  <bruno@clisp.org>
76750
76751         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76752         HAVE_LONGLONG_64BIT.
76753
76754 2005-03-16  Bruno Haible  <bruno@clisp.org>
76755
76756         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76757         HAVE_LONGLONG_64BIT.
76758
76759 2005-03-16  Bruno Haible  <bruno@clisp.org>
76760
76761         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76762         HAVE_LONGLONG_64BIT.
76763
76764 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76765
76766         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76767         reliably distinguish strftime failure from empty output on POSIX
76768         hosts.
76769
76770 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76773         (iconv_string): Don't guess a size-zero buffer, as that might cause
76774         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76775         result would be 'too large', where 'too large' is (heuristically)
76776         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76777         overflow concerns.  This will prevent some unwanted malloc failures
76778         when the inputs are very large.
76779
76780 2005-03-15  Karl Berry  <karl@gnu.org>
76781
76782         * config/srclist.txt (config.rpath): from gettext.
76783         * config/config.rpath: update.
76784
76785 2005-03-15  Bruno Haible  <bruno@clisp.org>
76786
76787         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76788         to 'negate'.
76789
76790         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76791         variable.
76792
76793         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76794         results.
76795
76796 2005-03-14  Simon Josefsson  <jas@extundo.com>
76797
76798         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76799         <fx@gnu.org>.
76800
76801 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76804         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76805         intprops.h.
76806         * lib/strtol.c: Likewise.
76807
76808 2005-03-14  Jim Meyering  <jim@meyering.net>
76809
76810         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76811         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76812         to be nonzero so that we (and caller) can detect the difference
76813         between a valid zero-length expansion and an error return, even
76814         when the underlying strftime fails before writing anything into
76815         that location.
76816
76817 2005-03-14  Bruno Haible  <bruno@clisp.org>
76818
76819         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76820         Update from GNU gettext 0.14.3.
76821
76822 2005-03-10  Jim Meyering  <jim@meyering.net>
76823
76824         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76825
76826 2005-03-10  Jim Meyering  <jim@meyering.net>
76827
76828         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76829         so that this module works on systems without fchdir.
76830
76831 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         Factor int-properties macros into a single file, except for
76834         glibc-related files.
76835         * lib/intprops.h: New file.
76836         * lib/getloadavg.c: Include it instead of limits.h.
76837         (INT_STRLEN_BOUND): Remove.
76838         * lib/human.c: Include intprops.h.
76839         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76840         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76841         302/1000.
76842         * lib/inttostr.h: Include intprops.h instead of limits.h.
76843         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76844         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76845         for consistency with intprops.h.
76846         (time_t_is_integer, twos_complement_arithmetic): Use them.
76847         * lib/sig2str.h: Include <signal.h>, intprops.h.
76848         (INT_STRLEN_BOUND): Remove.
76849         * lib/strftime.c (TYPE_SIGNED): Remove.
76850         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76851         * lib/strtol.c: Adjust comments to match intprops.h.
76852         * lib/userspec.c: Include intprops.h.
76853         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76854         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76855         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76856         instead of rolling our own expressions.
76857         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76858
76859         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76860         instead of int.
76861         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76862         the right thing even if adding 1900 would overflow.  Similarly
76863         for tm_mon + 1 and tm_yday + 1.
76864         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76865         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76866         (DO_SIGNED_NUMBER): New macro.
76867         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76868
76869 2005-03-07  Bruno Haible  <bruno@clisp.org>
76870
76871         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76872
76873 2005-03-07  Bruno Haible  <bruno@clisp.org>
76874
76875         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76876
76877 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76878
76879         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76880         (func_import): Only replace files via --import when they have actually
76881         changed.
76882
76883 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76884
76885         * m4/mmap-anon.m4: New file.
76886         * m4/pagealign_alloc.m4: New file.
76887
76888 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76889             Bruno Haible  <bruno@clisp.org>
76890
76891         * modules/pagealign_alloc: New file.
76892         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76893
76894 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76895             Bruno Haible  <bruno@clisp.org>
76896
76897         * lib/pagealign_alloc.h: New file.
76898         * lib/pagealign_alloc.c: New file.
76899
76900 2005-03-03  Bruno Haible  <bruno@clisp.org>
76901
76902         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76903         Use an all-permissive copyright notice, recommended by RMS.
76904
76905 2005-03-02  Bruno Haible  <bruno@clisp.org>
76906
76907         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76908         of AIX, the replacement has to be done only after <string.h> is
76909         included, therefore not in config.h. stpncpy.h does the replacement,
76910         and stpncpy.c uses it.
76911
76912 2005-03-02  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76915         stpncpy.c uses it.
76916
76917 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76918
76919         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76920         The workaround isn't strictly needed for POSIX conformance, and
76921         it's too much of a pain to configure and maintain.  We'll ask
76922         people to fix their kernels instead.
76923         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76924         (NANOSLEEP_BUG_WORKAROUND): Remove.
76925         (xnanosleep): Remove the workaround.
76926
76927 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76930         Reported by Derek Price.
76931         (Include): Add "timespec.h".
76932
76933         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76934
76935 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76938         to detect nanosleep bug.
76939
76940 2005-03-01  Bruno Haible  <bruno@clisp.org>
76941
76942         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76943
76944 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         * modules/gethrxtime: New file.
76947         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76948         (Depends-on): Add gethrxtime.
76949         (configure.ac): Add gl_XNANOSLEEP.
76950         (Makefile.am): Remove lib_SOURCES line.
76951
76952 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76955         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76956
76957 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76960         * lib/timespec.h (gettime): Return void, since it always
76961         succeeds now.  All uses changed.
76962         * lib/gettime.c (gettime): Likewise.
76963         [HAVE_NANOTIME]: Prefer nanotime.
76964         Assume gettimeofday succeeds, as POSIX requires.
76965         Assime time () succeeds, since other code already does.
76966         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76967         (timespec_subtract): Remove.
76968         (NANOSLEEP_BUG_WORKAROUND): New constant.
76969         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76970         things considerably.  Use it only on GNU/Linux hosts, since the
76971         workaround shouldn't be needed elsewhere.
76972
76973 2005-02-24  Bruno Haible  <bruno@clisp.org>
76974
76975         * modules/gettext (Files): Add m4/glibc2.m4.
76976
76977 2005-02-24  Bruno Haible  <bruno@clisp.org>
76978
76979         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76980         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76981         * m4/progtest.m4:
76982         Update from GNU gettext 0.14.2.
76983         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76984
76985 2005-02-24  Bruno Haible  <bruno@clisp.org>
76986
76987         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76988         * lib/config.charset: Update from GNU gettext 0.14.2.
76989
76990 2005-02-24  Bruno Haible  <bruno@clisp.org>
76991
76992         * lib/gettext.h: Update from GNU gettext 0.14.2.
76993
76994 2005-02-23  Simon Josefsson  <jas@extundo.com>
76995
76996         * m4/iconvme.m4: New file.
76997
76998 2005-02-23  Jim Meyering  <jim@meyering.net>
76999
77000         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77001         change.
77002         Thanks to Bruno Haible for catching it.
77003
77004 2005-02-22  Simon Josefsson  <jas@extundo.com>
77005
77006         * modules/iconvme: New file.
77007
77008         * MODULES.html.sh: Add iconvme.
77009
77010 2005-02-22  Simon Josefsson  <jas@extundo.com>
77011
77012         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77013
77014 2005-02-22  Simon Josefsson  <jas@extundo.com>
77015
77016         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77017
77018 2005-02-22  Jim Meyering  <jim@meyering.net>
77019
77020         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77021         s/ifndef/ifdef/.
77022
77023 2005-02-20  Neil Conway  <neilc@samurai.com>
77024
77025         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77026         returned by OSX/Darwin if the specified buffer is not large
77027         enough for the hostname.
77028
77029 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77030
77031         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77032         pass it to _help, otherwise the latter coredumps trying to
77033         dereference state.root_argp.
77034
77035 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         * modules/chdir-long (Depends-on): Add memrchr.
77038         * modules/memrchr (Files): Add lib/memrchr.h.
77039         (Include): "memrchr.h".
77040
77041 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77042
77043         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77044
77045 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * lib/memrchr.h: New file.
77048         * lib/chdir-long.c: Include it.
77049         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77050         Don't bother including stddef.h.
77051
77052 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77055         inclusion.
77056         Include <sys/types.h>, for dev_t.
77057         (ME_DUMMY, ME_REMOTE): Move from here....
77058         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77059         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77060         Dmitry V. Levin.
77061         Include mountlist.h first, to test the interface.
77062
77063 2005-01-29  Bruno Haible  <bruno@clisp.org>
77064
77065         * lib/progname.c (program_name): Initialize.
77066         Needed when linking statically on MacOS X.
77067
77068 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         Sync from coreutils.
77071         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77072         (Depends-on): Add c-strtod.
77073         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77074
77075 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77076
77077         Sync from coreutils.
77078         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77079
77080         Remove files that are specific to coreutils.
77081         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77082
77083 2005-01-28  Bruno Haible  <bruno@clisp.org>
77084
77085         * modules/javacomp: New file.
77086         * MODULES.html.sh (Java): Add javacomp.
77087
77088 2005-01-28  Bruno Haible  <bruno@clisp.org>
77089
77090         * m4/javacomp.m4: New file, from GNU gettext.
77091
77092 2005-01-28  Bruno Haible  <bruno@clisp.org>
77093
77094         * lib/javacomp.sh.in: New file, from GNU gettext.
77095         * lib/javacomp.h: New file, from GNU gettext.
77096         * lib/javacomp.c: New file, from GNU gettext.
77097
77098 2005-01-26  Simon Josefsson  <jas@extundo.com>
77099
77100         * lib/gai_strerror.c: Use GPL in header.
77101
77102 2005-01-26  Bruno Haible  <bruno@clisp.org>
77103
77104         * modules/javaexec: New file.
77105         * MODULES.html.sh (Java): Add javaexec.
77106
77107 2005-01-26  Bruno Haible  <bruno@clisp.org>
77108
77109         * m4/javaexec.m4: New file, from GNU gettext.
77110
77111 2005-01-26  Bruno Haible  <bruno@clisp.org>
77112
77113         * lib/javaexec.sh.in: New file, from GNU gettext.
77114         * lib/javaexec.h: New file, from GNU gettext.
77115         * lib/javaexec.c: New file, from GNU gettext.
77116
77117 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77118
77119         * modules/lchown (Depends-on): Remove lchown.h
77120
77121 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77122
77123         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77124         must be defined if the header file was not found, in order
77125         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77126
77127 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77128
77129         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77130         initializers for struct pentry_state.
77131         (__argp_error): Check return value of __asprintf
77132         (__argp_failure): Translate error message
77133
77134         * lib/argp-parse.c: Removed braces around the expansion of N_()
77135
77136 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77137
77138         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77139         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77140         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77141         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77142         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77143         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77144         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77145         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77146         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77147         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77148         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77149         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77150         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77151         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77152         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77153         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77154         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77155         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77156         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77157         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77158         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77159         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77160         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77161         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77162         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77163         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77164         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77165         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77166         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77167         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77168         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77169         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77170         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77171         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77172         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77173         Use an all-permissive copyright notice, recommended by RMS.
77174
77175 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77176
77177         * modules/chdir-long (Depends-on): Remove mempcpy.
77178
77179 2005-01-21  Jim Meyering  <jim@meyering.net>
77180
77181         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77182         same value as for Solaris 9.
77183
77184         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77185         component length.  This included changing the parameter to be
77186         of type `char *' rather than `char const *'.
77187         * lib/chdir-long.h (chdir_long): Update prototype.
77188
77189         * lib/openat.c (fdopendir, fstatat): New functions.
77190         * lib/openat.h: Include headers required for use of DIR and struct
77191         stat.
77192         [AT_SYMLINK_NOFOLLOW]: Define.
77193         (fdopendir, fstatat): Add prototypes.
77194
77195 2005-01-21  Bruno Haible  <bruno@clisp.org>
77196
77197         * modules/classpath: New file.
77198         * MODULES.html.sh (Java): Add classpath.
77199
77200 2005-01-21  Bruno Haible  <bruno@clisp.org>
77201
77202         * lib/classpath.h: New file, from GNU gettext.
77203         * lib/classpath.c: New file, from GNU gettext.
77204
77205 2005-01-20  Simon Josefsson  <jas@extundo.com>
77206
77207         * modules/version-etc-fsf: New file.
77208
77209 2005-01-20  Simon Josefsson  <jas@extundo.com>
77210
77211         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77212         * lib/version-etc.c: Remove version_etc_copyright.
77213         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77214         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77215
77216 2005-01-20  Simon Josefsson  <jas@extundo.com>
77217
77218         * lib/base64.h (isbase64): Add.
77219
77220         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77221         using a unsigned prototype, don't inline.
77222         (base64_decode): Use it.
77223
77224 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77227         it.
77228
77229 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * lib/save-cwd.c (save_cwd): Remove code to support the case
77232         where fchdir is missing or flaky.
77233
77234 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77237
77238 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77241         AC_LIBSOURCES now does this.
77242         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77243         with new ullong_max module.
77244
77245 2005-01-19  Bruno Haible  <bruno@clisp.org>
77246
77247         * modules/sh-quote: New file.
77248         * MODULES.html.sh (Executing programs): Add sh-quote.
77249
77250 2005-01-19  Bruno Haible  <bruno@clisp.org>
77251
77252         * lib/sh-quote.h: New file, from GNU gettext.
77253         * lib/sh-quote.c: New file, from GNU gettext.
77254
77255 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         Merge from coreutils.
77258         * m4/ullong_max.m4: New file.
77259         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77260         (gl_MACROS): Assume localeconv exists.
77261
77262 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         Merge changes from coreutils, as described below in several
77265         changelogs dated today.
77266
77267         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77268         (O_DIRECTORY): Remove; not needed here, since "." must be
77269         a directory.  All uses removed.
77270         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77271         universal on Suns, and we also need to test for IRIX.
77272         Revamp code to use 'if' rather than '#if'.
77273         Avoid unnecessary comparison of cwd->desc to 0.
77274
77275         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77276         for known valid error numbers rather than observed invalid ones.
77277
77278 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         * modules/ullong_max: New file.
77281
77282         * modules/chdir-long, modules/openat: New files.
77283         * modules/save-cwd (Depends-on): Depend on chdir-long.
77284         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77285
77286 2005-01-18  Jim Meyering  <jim@meyering.net>
77287
77288         Merge from coreutils.
77289         * m4/chdir-long.m4, m4/openat.m4: New files.
77290         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77291         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77292         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77293         is sane and DOES follow symlinks.  Besides, testing 20 different
77294         systems found no broken chown implementations.
77295         Prompted by a change in rsync's copy of this macro.
77296         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77297
77298         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77299
77300         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77301         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77302         NULL-means-set-to-current-time semantics.
77303         Remove temporary file immediately, rather than waiting
77304         for configure's at-exit trap code to do it.
77305
77306 2005-01-18  Jim Meyering  <jim@meyering.net>
77307
77308         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77309
77310         * lib/utimens.c (futimens): Account for the fact that futimes
77311         can also fail with errno == ENOSYS or errno == ENOENT.
77312         Patch from Dmitry V. Levin.
77313
77314         Change the name of the robust chdir function from chdir to chdir_long.
77315         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77316         (restore_cwd): Use chdir_long, not chdir.
77317         * lib/chdir-long.c: Renamed from chdir.c.
77318         * lib/chdir-long.h: Renamed from chdir.h.
77319         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77320         Hurd.
77321
77322 2005-01-18  Bruno Haible  <bruno@clisp.org>
77323
77324         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77325         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77326         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77327         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77328         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77329         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77330         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77331         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77332         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77333         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77334         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77335         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77336         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77337         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77338         Use an all-permissive copyright notice, recommended by RMS.
77339
77340 2005-01-18  Bob Proulx  <bob@proulx.com>
77341
77342         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77343         simplify offsetof() macro construct to avoid compile failure with
77344         native HP-UX 11.0 ANSI C compiler.
77345
77346 2005-01-17  Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77349         redundant because stpncpy.m4 takes care of it.
77350
77351 2005-01-17  Bruno Haible  <bruno@clisp.org>
77352
77353         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77354
77355 2005-01-17  Bruno Haible  <bruno@clisp.org>
77356
77357         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77358         used.
77359
77360 2005-01-17  Bruno Haible  <bruno@clisp.org>
77361
77362         * lib/fwriteerror.h (fwriteerror): Change specification to include
77363         fclose.
77364         * lib/fwriteerror.c: Include <stdbool.h>.
77365         (fwriteerror): At the end, close the file stream. Record whether
77366         stdout was already closed.
77367
77368 2005-01-17  Bruno Haible  <bruno@clisp.org>
77369
77370         * lib/execute.c (environ): Declare if needed.
77371         * lib/pipe.c (environ): Likewise.
77372         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77373
77374 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77375
77376         * modules/argp: Depend on vsnprintf
77377
77378 2005-01-10  Jim Meyering  <jim@meyering.net>
77379
77380         * modules/closeout (Depends-on): Add atexit.
77381
77382 2005-01-06  Bruno Haible  <bruno@clisp.org>
77383
77384         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77385
77386 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77389         definitions to be after all include files, to avoid collisions.
77390         Problem reported by Bob Proulx.
77391
77392 2005-01-04  Jim Meyering  <jim@meyering.net>
77393
77394         Changes imported from coreutils.
77395         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77396         as the mkstemp template, use a temporary directory and an
77397         8.3-friendly template to avoid trouble on systems like DJGPP.
77398         Reported by Juan M. Guerrero via Stepan Kasal.
77399         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77400         close. Remove the temporary directory right away, rather than waiting
77401         for configure's at-exit trap code to do it.
77402         Suggestion from Stepan Kasal.
77403
77404 2005-01-01  Simon Josefsson  <jas@extundo.com>
77405
77406         * gnulib-tool: Print #include directives when --import'ing.
77407
77408 2004-12-28  Simon Josefsson  <jas@extundo.com>
77409
77410         * tests/test-base64.c: Include required header files.  Remove
77411         unused variables.
77412
77413 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * modules/error (Depends-on): Remove gettext.
77416
77417 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77420         not needed.  This removes a dependency on the gettext module.
77421         [defined _LIBC]: Do not include <libintl.h>; not needed.
77422
77423 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77426         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77427
77428 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77429
77430         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77431         HAVE_DECL_STRTOLD.
77432
77433 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * modules/getdate (Depends-on): Remove alloca-opt.
77436
77437 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77440
77441 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77442
77443         * lib/argp-parse.c: Include <stddef.h>.
77444         (alignof, alignto): New macros.
77445         (parser_init): Don't assume that void * is aligned sufficiently
77446         for struct option.
77447
77448         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77449         need to extend the stack.
77450         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77451         large.
77452
77453 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77454
77455         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77456
77457 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77460         (2004-10-24) change.  Apparently this was a false alarm.
77461
77462         * modules/getdate: Depend on alloca-opt, not alloca.
77463
77464 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77465
77466         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77467         Remove now-obsolete comment about AIX.
77468         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77469         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77470         (YYMAXDEPTH): New macro.
77471
77472 2004-12-18  Simon Josefsson  <jas@extundo.com>
77473
77474         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77475
77476 2004-12-18  Bruno Haible  <bruno@clisp.org>
77477
77478         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77479
77480 2004-12-18  Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/fatal-signal.c (fatal_signals): Make non-const.
77483         (init_fatal_signals): New function.
77484         (uninstall_handlers, install_handlers): Ignore signals that were set to
77485         SIG_IGN.
77486         (at_fatal_signal): Call init_fatal_signals.
77487         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77488         SIG_IGN.
77489         Reported by Paul Eggert.
77490
77491 2004-12-18  Bruno Haible  <bruno@clisp.org>
77492
77493         * doc/alloca.texi: New file.
77494         * doc/alloca-opt.texi: New file.
77495
77496 2004-12-17  Jim Meyering  <jim@meyering.net>
77497
77498         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77499         Otherwise, install-sh could exit with improper exit status when
77500         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77501
77502 2004-12-16  Simon Josefsson  <jas@extundo.com>
77503
77504         * tests/test-base64.c: Add license.
77505
77506 2004-12-15  Stepan Kasal  <address@hidden>
77507
77508         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77509
77510 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         * modules/getcwd (Files): Add m4/d-ino.m4.
77513         Suggested by Mark D. Baushke.
77514
77515 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77516
77517         * lib/getdate.y (textint): New member "negative".
77518         (time_zone_hhmm): New function.
77519         Expect 14 shift-reduce conflicts, not 13.
77520         (o_colon_minutes): New rule.
77521         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77522         (yylex): Set the "negative" member of signed numbers.
77523
77524 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * doc/getdate.texi (Time of day items, Time zone items):
77527         Describe new formats +00:00, UTC+00:00.
77528
77529 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77530
77531         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77532         spurious "-l"s.  Problem reported by Stepan Kasal.
77533
77534 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77537         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77538
77539 2004-12-04  Simon Josefsson  <jas@extundo.com>
77540
77541         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77542         Vandoorselaere <yoann@prelude-ids.org>.
77543
77544 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         Changes imported from coreutils.
77547         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77548         exist.
77549         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77550
77551 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77552
77553         Changes imported from coreutils.
77554         * lib/hard-locale.c: Assume <locale.h> exists.
77555         Include "strdup.h".
77556         (GLIBC_VERSION): New macro.
77557         (hard_locale): Assume setlocale exists.
77558         Rewrite to avoid #ifdef.
77559         Use strdup rather than malloc + strcpy.
77560         * lib/human.c: Assume <locale.h> exists.
77561         (human_readable): Assume localeconv exists.
77562
77563 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * modules/hard-locale (Depends-on): Add strdup.
77566
77567 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77568
77569         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77570         convert T2, not T.  (Imported from libc.)
77571
77572 2004-11-30  Simon Josefsson  <jas@extundo.com>
77573
77574         * modules/restrict (License): Change to LGPL.
77575
77576 2004-11-30  Simon Josefsson  <jas@extundo.com>
77577
77578         * m4/restrict.m4: Add copyright and copying conditions.
77579
77580 2004-11-30  Simon Josefsson  <jas@extundo.com>
77581
77582         * m4/base64.m4: New file.
77583
77584 2004-11-30  Simon Josefsson  <jas@extundo.com>
77585
77586         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77587         base64.
77588
77589         * tests/test-base64.c: New file.
77590
77591         * modules/base64: New file.
77592
77593 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77594
77595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77596         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77597
77598         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77599
77600 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77603         (__getcwd.c): Don't restore errno; glibc doesn't.
77604         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77605         first, falling back to our code only if its results look suspicious.
77606         Ensure that the resulting buffer is only as large as necessary.
77607
77608         * lib/readutmp.c: Include readutmp.h first.
77609         Include <errno.h>, since readutmp.h no longer does that.
77610         * lib/readutmp.h: Don't include <errno.h>,
77611         <sys/param.h>, <time.h>; not needed to establish interface.
77612         (errno): Remove decl.
77613         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77614         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77615         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77616
77617 2004-11-28  Simon Josefsson  <jas@extundo.com>
77618
77619         * lib/base64.h, base64.c: New file.
77620
77621 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77622
77623         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77624
77625 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77626
77627         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77628         (Depends-on): Remove pathmax, same.  Add mempcpy.
77629         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77630         (Makefile.am): Append getcwd.h to lib_SOURCES.
77631         (Include): Add getcwd.h.
77632         (Maintainer): Change from Jim Meyering to "all, glibc",
77633         since getdate now uses intended-for-glibc code.
77634         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77635         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77636
77637 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77640         HP's ANSI C compiler.
77641         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77642         Declaring int functions causes warnings on some modern systems and
77643         shouldn't be needed to compile on ancient ones.
77644         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77645         defined.
77646
77647         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77648         with the following changes.
77649         (__set_errno): Parenthesize properly.
77650         Include <stdbool.h>.
77651         (MIN, MAX, MATCHING_INO): New macros.
77652         (__getcwd): Define with prototype, not K&R form.
77653         Use heuristics to allocate default buffer on stack if possible.
77654         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77655         behavior, and to avoid the PATH_MAX limit when computing
77656         ../../../../...
77657         Use MATCHING_INO to compare inode number to file.
77658         Check for arithmetic overflow in size calculations.
77659         Fix bug in reallocation of dot array that caused getcwd to fail
77660         on directories nested deeper than 75.
77661         Be more careful about saving errno on error.
77662         Do not use realloc; use only free+malloc, as this is a bit
77663         more flexible and avoids a needless copy operation.
77664         Do not inspect st_dev and st_ino for symbolic links; POSIX
77665         doesn't specify the latter.
77666         Check for closedir errors.
77667         Avoid needless casts.
77668         Use "#ifdef weak_alias" around weak_alias, to be like other
77669         glibc code.
77670         The following changes to getcwd.c have effect only when used in
77671         gnulib; they have no effect inside glibc proper.
77672         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77673         as alloca isn't used.
77674         (alloca, __alloca): Likewise.
77675         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77676         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77677         unconditionally, as gnulib assumes C89 or better.
77678         Do not include <sys/param.h>.
77679         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77680         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77681         better.
77682         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77683         Include <dirent.h> in a way that is compatible with modern Autoconf.
77684         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77685         New macros, if not already defined.
77686         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77687         Use "_LIBC", not "defined _LIBC", for consistency.
77688         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77689         a mempcpy module.
77690         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77691         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77692         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77693         credit only to Jim Meyering and adjust the copyright dates.
77694         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77695         <stdlib.h>, <unistd.h>, "pathmax.h".
77696         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77697         (INITIAL_BUFFER_SIZE): Remove.
77698         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77699
77700 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77703         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77704         Use the _ONCE methods, for efficiency.
77705         Check for fcntl.h.  In test program, include <errno.h>
77706         and <fcntl.h> if available.  Remove old K&R cruft from
77707         test program.  Check for common errors in GNU/Linux,
77708         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77709         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77710         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77711         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77712         name accordingly.
77713         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77714         accommodate new getcwd.c.
77715         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77716         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77717         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77718         that's all we need now.
77719
77720 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77721
77722         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77723         argp-parse.c depends on getopt internals, that means we should
77724         always use our getopt, to be on the safe side.
77725         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77726         order not to spoil the result of an eventual previous invocation
77727         of gl_GETOPT_SUBSTITUTE.
77728
77729 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77730
77731         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77732         redefinition warnings. To avoid them, include the defines
77733         in `#if !defined __need_getopt ... #endif'. The only place
77734         where __getopt_argv_const is used is in definitions
77735         of getopt_long and getopt_long_only below, which are as well
77736         protected by `#ifndef __need_getopt'.
77737         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77738         __need_getopt after including <stdio.h> and <unistd.h> These
77739         headers might have defined it.
77740
77741 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77744
77745 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77748         (futimens): New function, which uses futimes if available.
77749         (futimens, utimens): Support timespec==NULL, with same semantics
77750         as utime and utimens.
77751         * lib/utimens.h (futimens): New decl.
77752
77753 2004-11-23  Jim Meyering  <jim@meyering.net>
77754
77755         * lib/getopt_.h: Remove trailing blanks.
77756
77757 2004-11-23  Jim Meyering  <jim@meyering.net>
77758
77759         * lib/__fpending.c: Add comment.
77760
77761 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * modules/canonicalize (Depends-on): Add xreadlink.
77764         Problem reported by James Youngman.
77765
77766 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77767
77768         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77769         New macros.
77770         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77771         optopt): Use them instead of invoking ## directly; otherwise, the
77772         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77773
77774 2004-11-19  Bruno Haible  <bruno@clisp.org>
77775
77776         * lib/strtok_r.c: Move comments from here...
77777         * lib/strtok_r.h: ... to here.
77778
77779 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77782         implementations that mishandle size_t overflow.
77783
77784 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77787         might fail.  Problem reported by Yoann Vandoorselaere.
77788         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77789         implementations that mishandle size_t overflow.
77790
77791 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * modules/canon-host (Depends-on): Add strdup.
77794
77795 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77798
77799 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         * lib/canon-host.c: Include "strdup.h".
77802         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77803         Use strdup instead of malloc/strcpy to duplicate strings.
77804
77805         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77806         (human_space_before_unit): New constant.
77807         * lib/human.c (human_readable): Support it.
77808
77809         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77810         (xgetcwd): Set errno correctly when failing.
77811         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77812         the failure is actually due to a PATH_MAX problem.
77813
77814         Further getopt changes to make it more likely that glibc will
77815         buy the changes back.
77816         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77817         (getopt): Use it, so to preserve glibc semantic
77818         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77819         when compiling for libc.
77820         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77821         (getopt_long, getopt_long_only): Use it.
77822
77823         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77824         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77825         (getopt): Argv is now char * const *, as per standard.
77826         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77827         not char *__getopt_argv_const *.
77828         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77829         _getopt_long_only_r): Likewise.
77830         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77831         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77832         _getopt_long_r, _getopt_long_only_r): Likewise.
77833         * lib/getopt_.h (__getopt_argv_const): Remove.
77834         (getopt): Argv is now char * const *, as per standard.
77835
77836         * lib/getdate.y (tORDINAL): New token.
77837         (day, relunit): Allow it for relative times.
77838         (relative_time_table): Use tORDINAL for ordinals.
77839
77840 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77843         Document that "second" isn't allowed as an ordinal number.
77844
77845 2004-11-16  Jim Meyering  <jim@meyering.net>
77846
77847         * modules/closeout (Depends-on): Add fpending.
77848
77849 2004-11-15  Jim Meyering  <jim@meyering.net>
77850
77851         * lib/closeout.c: Include "__fpending.h" once again.
77852         Include <stdbool.h>.
77853         (close_stdout): Don't fail just because stdout was closed initially,
77854         since some programs don't write to stdout in the normal course of
77855         operation (other than --version and --help), and we don't want this
77856         function to make e.g. `touch file >&-' fail.
77857         But do fail if it was closed and someone has tried to write to it.
77858         E.g., `printf foo >&-' must fail.
77859
77860 2004-11-13  Jim Meyering  <jim@meyering.net>
77861
77862         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77863
77864 2004-11-12  Simon Josefsson  <jas@extundo.com>
77865
77866         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77867         small doc fix is still pending.
77868
77869 2004-11-11  Simon Josefsson  <jas@extundo.com>
77870
77871         * modules/strtok_r: New file.
77872
77873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77874         strtok_r.
77875
77876 2004-11-11  Simon Josefsson  <jas@extundo.com>
77877
77878         * m4/strtok_r.m4: New file.
77879
77880         * m4/getopt.m4: Replace opterr.
77881
77882 2004-11-11  Simon Josefsson  <jas@extundo.com>
77883
77884         * lib/strtok_r.h, strtok_r.c: New file.
77885
77886 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77889         of replacing opterr, getopt, etc.  This should handle the
77890         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77891
77892 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77895         we can stop lying to compilers about the constness of argv when we
77896         are compiled outside glibc.
77897         (getopt, getopt_long, getopt_long_only): Use it.
77898         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77899         _getopt_internal, getopt): Likewise.
77900         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77901         _getopt_long_only_r): Likewise.
77902         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77903         _getopt_long_r, _getopt_long_only_r): Likewise.
77904
77905         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77906         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77907         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77908         the other external symbols.
77909         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77910         declaration, since the above renaming now works around collisions.
77911
77912 2004-11-11  Jim Meyering  <jim@meyering.net>
77913
77914         * lib/linebreak.c: Remove trailing blanks.
77915         * lib/alloca_.h: Likewise.
77916         * lib/acosl.c: Likewise.
77917         * lib/euidaccess.c: Likewise.
77918         * lib/allocsa.h: Likewise.
77919
77920 2004-11-10  Simon Josefsson  <jas@extundo.com>
77921
77922         * m4/getaddrinfo.m4: New file.
77923
77924 2004-11-10  Simon Josefsson  <jas@extundo.com>
77925
77926         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77927
77928 2004-11-10  Simon Josefsson  <jas@extundo.com>
77929
77930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77931         getaddrinfo.
77932
77933         * modules/getaddrinfo: New file.
77934
77935 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77936
77937         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77938
77939 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * lib/mktime.c (SHR): New macro, which is a portable
77942         substitute for >> that should work even on Crays.
77943         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77944         Problem reported by Mark D. Baushke in
77945         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77946         * lib/getdate.y (SHR): Likewise.
77947         (tm_diff): Use it.
77948         * lib/strftime.c (SHR): Likewise.
77949         (tm_diff): Use it.
77950         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77951         quote_these_too, so that right shifts are well defined.  All uses
77952         changed.
77953
77954 2004-11-10  Jim Meyering  <jim@meyering.net>
77955
77956         Ensure that no close failure goes unreported.
77957         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77958         return early when it seems there's nothing to flush.
77959         Don't include __fpending.h.
77960
77961 2004-11-10  Jim Meyering  <jim@meyering.net>
77962
77963         * modules/closeout (Depends-on): Remove fpending.
77964
77965 2004-11-10  Jim Meyering  <jim@meyering.net>
77966
77967         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77968
77969 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77970
77971         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77972         gl_FUNC_STRFTIME.
77973         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77974         and AC_REQUIRE when possible, to avoid duplicate checks.
77975         Check for <wchar.h>.
77976
77977 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77980
77981 2004-11-09  Bruno Haible  <bruno@clisp.org>
77982
77983         * m4/sockpfaf.m4: New file.
77984
77985 2004-11-05  Bruno Haible  <bruno@clisp.org>
77986
77987         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77988         Reported by Mark D. Baushke <mdb@cvshome.org>.
77989
77990 2004-11-04  Bruno Haible  <bruno@clisp.org>
77991
77992         2004-09-11  Bruno Haible  <bruno@clisp.org>
77993                 * allocsa.valgrind: New file.
77994         2004-02-06  Bruno Haible  <bruno@clisp.org>
77995                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77996                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77997                 Reported by Christopher Seip <chris.seip@hp.com>.
77998
77999 2004-11-04  Bruno Haible  <bruno@clisp.org>
78000
78001         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78002         (Makefile.am): Distribute it.
78003
78004 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78005
78006         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78007         with errno == ERANGE if the buffer is too small.
78008         Problem reported by Mark D. Baushke.
78009
78010 2004-11-03  Albert Chin  <china@thewrittenword.com>
78011             Paul Eggert  <eggert@cs.ucla.edu>
78012
78013         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78014         equivalent, substitute $ac_type for equivalent type rather than
78015         blindly using uint32_t *always* which won't work if uint32_t is not
78016         available.  Define _UINT32_T to work around typedef of uint32_t if
78017         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78018         2.5.1.
78019
78020 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         * m4/jm-macros.m4: Sync from coreutils.
78023         (gl_MACROS): Check for mbrlen, for pathchk.
78024         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78025
78026 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * lib/xreadlink.c (MAXSIZE): New macro.
78029         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78030         size does not exceed MAXSIZE.  Avoid cast.
78031         As suggested by Mark D. Baushke in
78032         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78033         if readlink fails with buffer size just under MAXSIZE, try again
78034         with MAXSIZE.
78035
78036 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78037
78038         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78039
78040 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78041         and  Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78044         (get_date): Overparenthesize to avoid GCC warning.
78045
78046 2004-11-02  Bruno Haible  <bruno@clisp.org>
78047
78048         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78049         returns void.
78050
78051 2004-11-02  Bruno Haible  <bruno@clisp.org>
78052
78053         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78054         function returns void.
78055
78056 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78059         fflush_unlocked, flockfile, funlockfile, funlockfile,
78060         fputs_unlocked, putc_unlocked.
78061
78062 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78065         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78066         already declared.
78067
78068 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78069
78070         * modules/getdate (Files): Add doc/getdate.texi.
78071         (Depends-on): Add setenv, xalloc.
78072
78073 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * lib/getdate.y: Add support for TZ="foo" within a date string.
78076         Fix some bugs near time_t boundaries.  Reject dates with
78077         out-of-range components, e.g., "Sept 31".
78078         Include <stdlib.h>, "setenv.h", "xalloc.h".
78079         (ISDIGIT_LOCALE): Remove; unused.
78080         Note that the TZ and time functions used here are not reentrant.
78081         (mktime_ok, get_tz): New functions.
78082         (TZBUFSIZE): New constant.
78083         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78084         This requires that we sometimes generate our own TZ="XXX..." setting.
78085
78086 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         * doc/getdate.texi: New file, from coreutils with modifications for
78089         the new TZ parsing.
78090
78091 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78092
78093         * lib/mktime.c (not_equal_tm): Remove redundant check.
78094
78095 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * modules/regex (lib_SOURCES): Add regex.c.
78098         Reported by James Youngman in
78099         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78100
78101 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78102
78103         * lib/getdate.y: Use Bison 1.875 features, and some minor
78104         code cleanups.  This change does not affect semantics.
78105         Don't include <stdlib.h>; no longer needed.
78106         Don't include unlocked-io.h; only the "#if TEST" code uses
78107         stdio, and performance isn't crucial there.
78108         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78109         Bison 1.875 features as described below.
78110         All uses of "PC." replaced by "pc->".
78111         (YYSTYPE): Add a forward declaration.
78112         (yylex, yyerror): Use full prototypes in forward decls.
78113         Use "%pure-parser" rather than obsolescent "%pure_parser".
78114         Use %parse-param and %lex-param instead of obsolescent
78115         YYPARSE_PARAM and YYLEX_PARAM.
78116         (meridian_table, month_and_day_table, time_units_table,
78117         relative_time_table, time_zone_table, military_table,
78118         lookup_zone, lookup_word, get_date):
78119         Use NULL instead of 0 where appropriate.
78120         (to_hour): Avoid abort (), to avoid a dependency on
78121         stdlib.h.
78122         (yyerror, yylex): Now accepts parser_control * arg.
78123         (main) [TEST]: Use '\0' rather than 0 for char.
78124
78125 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78128
78129 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78132         It's now the caller's responsibility to handle the case where
78133         !HAVE_GETPAGESIZE && !defined getpagesize.
78134
78135         * lib/mktime.c (leapyear): Arg is long int, not int.
78136
78137 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78140
78141 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78142
78143         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78144         missing.  Problem reported by James Youngman.
78145
78146 2004-10-16  Simon Josefsson  <jas@extundo.com>
78147
78148         * gnulib-tool: Fix comments.  Fix parse problem.
78149         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78150
78151 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78152
78153         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78154         implementation of getopt_long.  Problem reported by Alexander Taler in:
78155         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78156
78157 2004-10-15  Bruno Haible  <bruno@clisp.org>
78158
78159         * gnulib-tool: Untabify. Initialize supplied_libname.
78160         (func_usage): More homogenous output.
78161         (func_modules_transitive_closure, func_modules_to_filelist,
78162         func_emit_lib_Makefile_am): New functions.
78163         (func_import): New function, extracted from big case statement. Use
78164         func_get_license, func_modules_transitive_closure,
78165         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78166         opt_lgpl. Don't use test -a, as it's not portable.
78167         (func_create_testdir): Use func_modules_transitive_closure,
78168         func_modules_to_filelist, func_emit_lib_Makefile_am.
78169
78170 2004-10-15  Bruno Haible  <bruno@clisp.org>
78171
78172         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78173
78174 2004-10-15  Bruno Haible  <bruno@clisp.org>
78175
78176         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78177         the portions belonging to each module.
78178         Suggested by Derek Robert Price <derek@ximbiot.com>.
78179
78180 2004-10-12  Simon Josefsson  <jas@extundo.com>
78181
78182         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78183         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78184         to real functions.
78185
78186 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78187
78188         * modules/vsnprintf: New file.
78189
78190 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78191
78192         * m4/vsnprintf.m4: New file.
78193
78194 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78195
78196         * lib/vsnprintf.h: New file.
78197         * lib/vsnprintf.c: New file.
78198
78199 2004-10-11  Bruno Haible  <bruno@clisp.org>
78200
78201         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78202         vsnprintf.
78203
78204 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78207
78208 2004-10-07  Bruno Haible  <bruno@clisp.org>
78209
78210         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78211         fits into the provided buffer.
78212
78213 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78214
78215         * lib/diacrit.c, diacrit.h: Add GPL notice.
78216
78217         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78218         notice.
78219         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78220         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78221         This avoids a potential constant-folding bug.
78222
78223 2004-10-05  Bruno Haible  <bruno@clisp.org>
78224
78225         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78226         for the declaration of strsep.
78227
78228 2004-10-05  Bruno Haible  <bruno@clisp.org>
78229
78230         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78231
78232 2004-10-04  Simon Josefsson  <jas@extundo.com>
78233
78234         * modules/memmem: New file.
78235         * tests/test-memmem.c: New file.
78236         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78237
78238 2004-10-04  Simon Josefsson  <jas@extundo.com>
78239
78240         * m4/memmem.m4: New file.
78241
78242 2004-10-04  Simon Josefsson  <jas@extundo.com>
78243
78244         * lib/memmem.h: New file.
78245         * lib/memmem.c: New file, taken from glibc.
78246
78247 2004-10-04  Simon Josefsson  <jas@extundo.com>
78248
78249         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78250         '#ifdef USE_UNLOCKED_IO'.
78251
78252 2004-10-04  Simon Josefsson  <jas@extundo.com>
78253
78254         * config/srclist.txt: Add memmem from glibc.
78255
78256 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78259
78260         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78261         modules/exclude, modules/getdate, modules/getline,
78262         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78263         modules/getusershell, modules/linebuffer, modules/md5,
78264         modules/mountlist, modules/posixtm, modules/readtokens,
78265         modules/readutmp, modules/regex, modules/sha1,
78266         modules/version-etc, modules/yesno:
78267         Remove dependency on unlocked-io.
78268
78269 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78270
78271         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78272
78273         * m4/unlocked-io.m4: Add copyright notice.
78274         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78275
78276 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78277
78278         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78279         * lib/xmalloc.c (xmemdup): Likewise.
78280         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78281         XFREE): Remove these long-obsolescent macros.
78282         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78283         * lib/xstrdup.c: Remove.
78284
78285         * lib/regex.c (re_comp): Cast gettext return value to char *,
78286         Problem reported by Martin Neitzel via Mark D. Baushke.
78287
78288 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78289
78290         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78291         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78292         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78293         regex.c, sha1.c, version-etc.c, yesno.c:
78294         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78295         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78296         the includer's responsibility.
78297
78298         Sync from coreutils.
78299
78300         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78301         points to the start of a string, as the C Standard says the
78302         resulting behavior is undefined.
78303
78304         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78305         simple -> simple_backups, numbered_existing ->
78306         numbered_existing_backups, numbered -> numbered_backups
78307         to avoid shadowing problems.  All uses changed.
78308         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78309         * lib/backupfile.c (check_extension, numbered_backup):
78310         Rename locals to avoid shadowing 'basename'.
78311         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78312         once.
78313
78314         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78315         * lib/.cvsignore: Add getopt.h.
78316
78317 2004-10-04  Bruno Haible  <bruno@clisp.org>
78318
78319         * modules/README: New file.
78320         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78321         not a module.
78322
78323 2004-10-02  Jim Meyering  <jim@meyering.net>
78324
78325         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78326
78327 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78328
78329         * modules/strsep: New file.
78330
78331 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78332
78333         * m4/strsep.m4: New file.
78334
78335 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78336
78337         * lib/strsep.h: New file.
78338         * lib/strsep.c: New file.
78339
78340 2004-10-01  Simon Josefsson  <jas@extundo.com>
78341
78342         * lib/snprintf.c (snprintf): Handle size==0.
78343
78344 2004-10-01  Simon Josefsson  <jas@extundo.com>
78345             Bruno Haible  <bruno@clisp.org>
78346
78347         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78348         (snprintf): Declare 'args'.
78349
78350 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * lib/snprintf.c: Remove comments as to why each header is needed.
78353
78354 2004-10-01  Bruno Haible  <bruno@clisp.org>
78355
78356         * MODULES.html.sh: Add strsep.
78357
78358 2004-09-30  Simon Josefsson  <jas@extundo.com>
78359
78360         * modules/snprintf: New file.
78361
78362 2004-09-30  Simon Josefsson  <jas@extundo.com>
78363
78364         * m4/snprintf.m4: New file.
78365
78366 2004-09-30  Simon Josefsson  <jas@extundo.com>
78367
78368         * lib/snprintf.h, lib/snprintf.c: New files.
78369
78370 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78371
78372         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78373         (hol_entry_help): Never translate an empty string.
78374         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78375         * lib/argp.h (OPTION_NO_TRANS): New option.
78376
78377 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78378
78379         * modules/argp (Maintainer): Replace Simon Josefsson
78380         by Sergey Poznyakoff.
78381
78382 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78385         changes merged back into glibc.
78386
78387 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78390
78391 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78392
78393         * lib/xvasprintf.c: Include xalloc.h.
78394         (xvasprintf): Use xalloc_die, not xmalloc_die.
78395
78396 2004-09-29  Bruno Haible  <bruno@clisp.org>
78397
78398         * modules/alloca-opt: New file, derived from modules/alloca.
78399         * modules/allocsa: Depend on alloca-opt instead of alloca.
78400         * modules/setenv: Likewise.
78401         * modules/vasnprintf: Likewise.
78402         * MODULES.html.sh: Add alloca-opt.
78403
78404 2004-09-28  Simon Josefsson  <jas@extundo.com>
78405
78406         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78407         LGPL, and to replace license template from GPL to LGPL.
78408
78409 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78410
78411         * modules/dummy: Change license to LGPL.
78412
78413 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78414
78415         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78416
78417 2004-09-24  Simon Josefsson  <jas@extundo.com>
78418
78419         * modules/minmax (License): Change from GPL to LGPL.
78420
78421 2004-09-23  Simon Josefsson  <jas@extundo.com>
78422
78423         * gnulib-tool (--import): Typo.
78424
78425 2004-09-23  Simon Josefsson  <jas@extundo.com>
78426
78427         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78428
78429 2004-09-22  Bruno Haible  <bruno@clisp.org>
78430
78431         * modules/*: Add 'License' field.
78432         * gnulib-tool: Accept --extract-license option.
78433         (func_get_license): New function.
78434
78435 2004-09-21  Bruno Haible  <bruno@clisp.org>
78436
78437         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78438         Reported by Simon Josefsson.
78439
78440 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78443         gl_AC_TYPE_LONG_LONG.
78444
78445 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78448
78449 2004-09-18  Simon Josefsson  <jas@extundo.com>
78450         and  Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78453         calls with autoreconf.  Define GL_LIB.
78454
78455 2004-09-14  Karl Berry  <karl@gnu.org>
78456
78457         * config/srclist.txt: unsync setenv.c, sigh.
78458
78459 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78460
78461         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78462         Problem reported by Bruno Haible in:
78463         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78464
78465 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * config/srclist.txt: Comment out argp-pvh.c.
78468
78469 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78470
78471         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78472         in case some system header has #define'd it.  Problem reported by
78473         Soeren D. Schulze in
78474         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78475
78476 2004-09-09  Karl Berry  <karl@gnu.org>
78477
78478         * regex.[ch]: delete from the root.  These were supposed to be
78479                 synced with emacs cvs, but this has not happened for about
78480                 a year, and anyway nothing else uses emacs regex.[ch].
78481                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78482                 lib/regex[.ch] is untouched.
78483
78484 2004-09-09  Bruno Haible  <bruno@clisp.org>
78485
78486         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78487
78488 2004-09-09  Bruno Haible  <bruno@clisp.org>
78489
78490         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78491         modifications.
78492         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78493
78494 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78495
78496         * modules/xvasprintf: New file.
78497         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78498
78499 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78500
78501         * lib/xvasprintf.h: New file.
78502         * lib/xvasprintf.c: New file.
78503         * lib/xasprintf.c: New file.
78504
78505 2004-09-08  Bruno Haible  <bruno@clisp.org>
78506
78507         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78508
78509 2004-09-08  Bruno Haible  <bruno@clisp.org>
78510
78511         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78512         length is > INT_MAX.
78513         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78514         more.
78515
78516 2004-09-08  Bruno Haible  <bruno@clisp.org>
78517
78518         * lib/stdint_.h: New file, taken from GNU clisp.
78519
78520 2004-09-08  Bruno Haible  <bruno@clisp.org>
78521             Oskar Liljeblad  <oskar@osk.mine.nu>
78522
78523         * modules/stdint: New file.
78524         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78525
78526 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78527
78528         Import from coreutils.
78529         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78530         strings on unbounded length.  alloca's performance benefits aren't
78531         that important here.
78532         (V_STRDUP): Remove.
78533         (parse_with_separator): New function, with most of the internals
78534         of the old parse_user_spec.  Allow user to omit both user and group,
78535         for compatibility with FreeBSD.
78536         Clone only the user name, not the entire spec.
78537         Do not set *uid, *gid unless entirely successful.
78538         Avoid memory leak in some failing cases.
78539         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78540         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78541         (parse_user_spec): Rewrite to use parse_with_separator.
78542
78543 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78544
78545         * modules/userspec: Don't depend on alloca.
78546
78547 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78550
78551 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78552
78553         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78554         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78555         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78556
78557 2004-08-16  Simon Josefsson  <jas@extundo.com>
78558
78559         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78560         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78561         Add --dry-run for --import.
78562         Let user provided command line parameters override configure.ac
78563         settings.
78564
78565 2004-08-12  Simon Josefsson  <jas@extundo.com>
78566
78567         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78568         as discussed with Paul Eggert in threads rooted at
78569         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78570         and
78571         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78572         Before, the test was empty, and relied on ELIDE_CODE in source
78573         code.)
78574         (gl_PREREQ_GETOPT): New macro.
78575         (gl_GETOPT): Use them.
78576
78577 2004-08-12  Simon Josefsson  <jas@extundo.com>
78578
78579         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78580         * lib/getopt_.h: Renamed from getopt.h.
78581
78582 2004-08-12  Simon Josefsson  <jas@extundo.com>
78583
78584         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78585         Change default library name from libfoo to libgnu.
78586         Now, if you have a configure.ac that says:
78587                 gl_SOURCE_BASE(gl)
78588                 gl_M4_BASE(gl/m4)
78589                 gl_MODULES(error getopt etcetera)
78590                 gl_INIT
78591         you can import all you need by running:
78592                 ../gnulib/gnulib-tool --import
78593
78594         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78595         (Makefile.am): Rewrite, use logic from argz.
78596         (Include): Use <getopt.h> instead of "getopt.h".
78597
78598 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * modules/argp (Files): Add m4/unlocked-io.m4.
78601         (Depends-on): Add extensions.
78602
78603 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78604
78605         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78606         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78607         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78608         Check for program_invocation_name, program_invocation_short_name,
78609         flockfile, funlockfile, features.h, _getopt_long_only_r.
78610
78611 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78614         its complicated substitute.
78615         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78616         and program_invocation_name.
78617         (__argp_basename) [!_LIBC]: Remove; the only use was
78618         replaced by its body.
78619         (__argp_short_program_name): Change condition from
78620         !defined __argp_short_program_name to
78621         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78622         to match argp-namefrob.h.
78623         (__argp_failure): Don't assume strerror_r returns char *.
78624         * lib/argp-parse.c (N_): Define unconditionally.
78625         (argp_default_options): Fill out initializers with 0 to avoid
78626         gcc warnings.
78627
78628 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78631         getopt1.c.
78632
78633 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         Merge from coreutils.
78636
78637         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78638
78639         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78640         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78641
78642 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         Merge from coreutils.
78645
78646         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78647         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78648         for Reliant Unix 5.43.
78649
78650         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78651         (union fooround): Use uintmax_t, not long int.
78652         The rest is a merge from libc:
78653         [defined _LIBC]: Include <shlib-compat.h>.
78654         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78655
78656         * lib/settime.c (settime): Recode to avoid warning with
78657         Sun Forte C 6U2.
78658
78659         * lib/strverscmp.c: Convert to UTF-8.
78660
78661 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78664         m4/uintmax_t.m4.
78665
78666 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78667
78668         * modules/xalloc-die: New file.
78669         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78670
78671         * modules/md5 (Files): Add m4/uint32_t.m4.
78672         * modules/sha1: Renamed from modules/sha.
78673         (Files):
78674         Rename lib/sha.h to lib/sha1.h.
78675         Rename lib/sha.c to lib/sha1.c.
78676         Rename m4/sha.m4 to m4/sha1.m4.
78677         (lib_SOURCES): Likewise.
78678         (configure.ac): Rename gl_SHA to gl_SHA1.
78679         (Include): sha.h -> sha1.h.
78680
78681 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78682
78683         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78684         * m4/sha1.m4: Renamed from sha.m4.
78685         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78686
78687 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78688
78689         * lib/obstack.h (obstack_empty_p):
78690         Don't assume that chunk->contents is suitably aligned.
78691         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78692         Likewise. Problem reported by Benno in
78693         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78694
78695         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78696         readable.  This could be improved further but it'd take some work.
78697
78698 2004-08-08  Simon Josefsson  <jas@extundo.com>
78699
78700         * modules/xgethostname (Depends-on): Remove exit and error (not
78701         used).
78702
78703         * modules/getpass-gnu: Add getpass.h.
78704         (Depends-on): Add stdbool.
78705         * modules/getpass: Add getpass.h.
78706
78707 2004-08-08  Simon Josefsson  <jas@extundo.com>
78708
78709         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78710         Check getpass declaration.
78711
78712 2004-08-08  Simon Josefsson  <jas@extundo.com>
78713
78714         * lib/xgethostname.c: Don't include error.h (not used).
78715
78716         * lib/getpass.h: Add.
78717         * lib/getpass.c: Include getpass.h first.
78718
78719 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * lib/xalloc-die.c: New file.
78722         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78723         All uses removed.
78724         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78725         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78726         xalloc-die.c.
78727         (_, N_, xalloc_die): Move to xalloc-die.c.
78728         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78729         so that we needn't mess with xalloc_msg_memory_exhausted.
78730
78731         * lib/sha1.h: Renamed from sha.h.
78732         (SHA1_H): Renamed from _SHA_H.
78733         (sha1_ctx): Renamed from sha_ctx.
78734         (sha1_init_ctx): Renamed from sha_init_ctx.
78735         (sha1_process_block): Renamed from sha_process_block.
78736         (sha1_process_bytes): Renamed from sha_process_bytes.
78737         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78738         (sha1_read_ctx): Renamed from sha_read_ctx.
78739         (sha1_stream): Renamed from sha_stream.
78740         (sha1_buffer): Renamed from sha_buffer.
78741         * lib/sha1.c: Likewise; renamed from sha.c.
78742         Do not include <sys/types.h>.
78743         Include <stddef.h> rather than <stdlib.h>.
78744
78745 2004-08-08  Bruno Haible  <bruno@clisp.org>
78746
78747         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78748         FILESYSTEM_PREFIX_LEN.
78749         * lib/progreloc.c: Likewise.
78750         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78751
78752 2004-08-06  Simon Josefsson  <jas@extundo.com>
78753
78754         * modules/progname (Depends-on): Don't depend on stdbool.
78755
78756 2004-08-06  Simon Josefsson  <jas@extundo.com>
78757
78758         * modules/getsubopt: New file.
78759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78760         getsubopt.
78761
78762 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         More merge from coreutils.
78765
78766         * m4/utimens.m4, m4/utimecmp.m4: New files.
78767         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78768         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78769         prereq.m4, sha.m4: Import changes from coreutils.
78770
78771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         More merge from coreutils.
78774         * modules/raise, modules/readtokens0, modules/utimens:
78775         * modules/utimecmp, module/xnanosleep: New files.
78776         * modules/strftime: Add lib/strftime.h.
78777         Change include from <time.h> to "strftime.h".
78778         * modules/yesno: Add lib/yesno.h.
78779         * modules/backupfile: Remove lib/addext.c.
78780         * modules/euidaccess: Add stat-macros.h.
78781         * modules/canonicalize, modules/euidaccess,
78782         modules/filemode, modules/lchown, modules/makepath,
78783         modules/rmdir, modules/stat: Likewise.
78784
78785 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         Merge from tar.
78788         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78789         SIZE_MAX is a valid preprocessor constant.
78790         (__argp_basename): Change from "#ifndef _LIBC"
78791         to "#ifndef __argp_short_program_name", so that
78792         we don't compile these functions for tar.
78793
78794         More merges from coreutils.
78795         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78796         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78797         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78798         * lib/addext.c: Remove; no longer needed.
78799         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78800         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78801         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78802         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78803         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78804         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78805         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78806         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78807         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78808         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78809         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78810         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78811         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78812         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78813         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78814         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78815         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78816         Import changes from coreutils.
78817
78818 2004-08-05  Simon Josefsson  <jas@extundo.com>
78819
78820         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78821
78822 2004-08-05  Simon Josefsson  <jas@extundo.com>
78823
78824         * m4/getsubopt.m4: New file.
78825
78826 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78827
78828         Merge from coreutils.
78829
78830         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78831         * m4/getcwd-path-max.m4: New files.
78832
78833         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78834         FILESYSTEM_PREFIX_LEN ->
78835         FILE_SYSTEM_PREFIX_LEN.
78836         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78837         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78838         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78839         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78840
78841         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78842         prerequisite modules now handle the DOS stuff.
78843         Don't check for unistd.h.
78844
78845 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         Merge from coreutils.
78848
78849         * lib/.gdb-history: Remove; this doesn't belong here.
78850
78851         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78852         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78853         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78854         * lib/getcwd.c: New files.
78855
78856         * lib/dirname.h: Include <stdbool.h>.
78857         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78858         for consistency with POSIX terminology.  All uses changed.
78859         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78860         (strip_trailing_slashes): Use bool for booleans.
78861         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78862
78863         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78864         sometimes returns a positive errno value even when it succeeds.
78865         (print_errno_message) [!LIBC]: Fall back on strerror if
78866         __strerror_r fails.
78867
78868         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78869         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78870         (longest_relative_suffix): New function.
78871         (path_concat): Use it.  Assume first argument is not NULL.
78872         Port to DOS.  Omit redundant separators.
78873         Report an error instead of returning NULL.
78874         Use mempcpy instead of memcpy.
78875         (xpath_concat): Remove: not declared or used.
78876
78877         * lib/same.h: Include <stdbool.h>
78878         (same_name): Return bool, not int.
78879         * lib/same.c (same_name): Likewise.
78880         (errno): Don't declare; we assume C89 or better now.
78881
78882         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78883         if not already defined.
78884
78885         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78886         * lib/dup-safer.c (errno): Likewise.
78887
78888 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         Merge from coreutils.
78891         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78892         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78893         * modules/path-concat: Don't depend on strdup.
78894
78895 2004-08-03  Simon Josefsson  <jas@extundo.com>
78896
78897         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78898         * lib/progname.h: Don't include stdbool.h.
78899
78900 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78903         * MODULES.html.sh (func_all_modules): Remove fatal.
78904
78905 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78908
78909 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78912         working.
78913
78914 2004-08-02  Simon Josefsson  <jas@extundo.com>
78915
78916         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78917         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78918         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78919
78920 2004-08-01  Simon Josefsson  <jas@extundo.com>
78921
78922         * lib/xgetdomainname.c: Include stdlib.h, for free().
78923
78924 2004-07-19  Bruno Haible  <bruno@clisp.org>
78925
78926         * MODULES.html.sh (func_all_modules): Add dummy.
78927
78928 2004-07-16  Simon Josefsson  <jas@extundo.com>
78929
78930         * modules/dummy: New file.
78931
78932 2004-07-16  Simon Josefsson  <jas@extundo.com>
78933
78934         * lib/dummy.c: New file.
78935
78936 2004-07-16  Bruno Haible  <bruno@clisp.org>
78937
78938         * lib/backupfile.h: Add extern "C" for C++.
78939         * lib/closeout.h: Likewise.
78940         * lib/copy-file.h: Likewise.
78941         * lib/findprog.h: Likewise.
78942         * lib/full-write.h: Likewise.
78943         * lib/pathname.h: Likewise.
78944         * lib/progname.h: Likewise.
78945         * lib/stpcpy.h: Likewise.
78946         * lib/stpncpy.h: Likewise.
78947         * lib/strcase.h: Likewise.
78948         * lib/strstr.h: Likewise.
78949         * lib/xalloc.h: Likewise.
78950
78951         * lib/mbswidth.h: Add extern "C" for C++.
78952         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78953
78954 2004-07-13  Robert Millan  <robertmh@gnu.org>
78955
78956         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78957
78958 2004-07-09  Simon Josefsson  <jas@extundo.com>
78959
78960         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78961         failed without this.)
78962
78963 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * modules/chown (Files): Add lib/fchown-stub.c, since
78966         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78967
78968 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78969
78970         * lib/fchown-stub.c: New file.
78971
78972 2004-06-24  Jim Meyering  <jim@meyering.net>
78973
78974         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78975
78976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * modules/argz: Omit "#include".
78979
78980         * MODULES.html.sh (func_all_modules): Add calloc, to match
78981         2004-06-01 addition of calloc module.
78982
78983 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78984
78985         * m4/argz.m4: New file, which is autoupdated from libtool.
78986
78987 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78990         libtool.
78991
78992 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         * config/srclist-update: Don't insist on "USA." before the
78995         close-comment, as libtool omits the period and puts the */ on a
78996         separate line.
78997         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78998         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78999
79000 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79001
79002         * modules/argz: New file.
79003         * MODULES.html.sh (func_all_modules): Add argz.
79004
79005 2004-06-12  Jim Meyering  <jim@meyering.net>
79006         and  Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * modules/hash (Files): Add lib/xalloc.h.
79009         * modules/pipe (Depends-on): Add wait-process.
79010         * modules/stat (Depends-on): Add xalloc.
79011         * modules/userspec (Files): Add lib/userspec.h.
79012         * modules/xstrto
79013
79014         Upgrade from gettext-0.13.
79015         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79016         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79017         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79018
79019 2004-06-10  Jim Meyering  <jim@meyering.net>
79020
79021         * lib/calloc.c: New file.
79022
79023 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79024
79025         * lib/getdate.y (yylex): Allow space between sign and number.
79026         Problem reported by Dan Jacobson.
79027
79028 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79029
79030         Merge from coreutils CVS.
79031
79032         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79033         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79034         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79035         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79036         xstrtol.m4: Fix copyright date and/or serial number.
79037
79038         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79039         See if we need an fchown replacement.
79040         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79041         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79042         and use the replacement function if we detect either defect.
79043
79044         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79045         gl_UTIMECMP.
79046
79047 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79048         and  Jim Meyering  <jim@meyering.net>
79049
79050         Merge from coreutils CVS.
79051
79052         * lib/stat-macros.h: New file, with contents from file-type.h
79053         and coreutils' system.h.
79054         * lib/file-type.c: Include "stat-macros.h".
79055         * lib/file-type.h (file_type): Move all macro definitions to new file,
79056         stat-macros.h.
79057
79058         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79059         Wrap old code with this conditional.
79060         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79061         function that does not dereference symlinks.
79062         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79063
79064         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79065         dependency problems.
79066         (xreadlink): Accept new arg SIZE, for efficiency.
79067         All decls and uses changed.
79068         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79069
79070         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79071         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79072
79073         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79074         sysexits.h.
79075
79076 2004-06-01  Jim Meyering  <jim@meyering.net>
79077
79078         * m4/calloc.m4: New file.
79079
79080 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79083         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79084         Also, fix a typo in a diagnostic.
79085
79086 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79089         or AC_FUNC_REALLOC.
79090
79091 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79092
79093         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79094         macros to be defined.
79095         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79096         the allocator returns NULL because the requested size is zero.
79097
79098 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79101         var.  Add comment explaining why libc still defines it.  This
79102         merges the following patch from glibc:
79103         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79104
79105 2004-05-20  Andreas Schwab  <schwab@suse.de>
79106
79107         * m4/free.m4: Replace free if it not known to work, not the other
79108         way round.
79109
79110 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79111
79112         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79113         present in glibc since revision 1.1 of this file.
79114         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79115         obstack_alignment_mask, obstack_alloc, obstack_base,
79116         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79117         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79118         obstack_grow0, obstack_init, obstack_int_grow,
79119         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79120         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79121         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79122         nonexistent functions.
79123
79124 2004-05-18  Karl Berry  <karl@gnu.org>
79125
79126         * config/srclist.txt: break link for vasnprintf.c.
79127
79128 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         Port obstack to the AS/400, where pointers are 16 bytes wide and
79131         you cannot cast an integer to a valid pointer.  This patch is
79132         currently waiting to be integrated into glibc; see
79133         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79134
79135         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79136         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79137         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79138         (struct obstack): temp member is now a union of a pointer and
79139         an integer, instead of an integer.  All integer uses changed.
79140         This does not affect the physical layout of struct obstack,
79141         except on hosts (like the AS/400) where the size or alignment of
79142         void * is greater than that of ptrdiff_t.
79143         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79144         __STDC__)]: Store temporary in pointer member of union, not
79145         integer member.
79146         * lib/obstack.c: Include <stddef.h>, for offsetof.
79147         (struct fooalign): Remove; it doesn't need a name.
79148         (union fooround): Change double to long double, and add void *.
79149         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79150         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79151         not a macro.  Hence the values are always int; so remove all
79152         casts-to-int in uses.
79153
79154 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79157         we can get this patch merged into glibc.
79158
79159 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79160             Paul Eggert  <eggert@cs.ucla.edu>
79161
79162         * m4/argp: Depend on alloca.
79163
79164 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79165             Paul Eggert  <eggert@cs.ucla.edu>
79166
79167         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79168         freecoding.
79169
79170 2004-05-17  Bruno Haible  <bruno@clisp.org>
79171
79172         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79173         precision that consists of a '.' followed by an empty digit string.
79174         Patch by Tor Lillqvist <tml@iki.fi>.
79175
79176 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79179         for backward compatibility with older code.  We need our own
79180         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79181         it under some other name, and our alloca.h will define it.
79182
79183 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79184             Derek Price  <derek@ximbiot.com>
79185
79186         * lib/alloca.c: Include <alloca.h>, to get our interface.
79187         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79188         include <alloca.h> first.  Use C89 prototype for alloca; this
79189         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79190         Use #elif for simplicity, since we can assume C89 now.
79191         Don't try to source the system alloca.h since it will not be found
79192         and to prevent recursively including its replacement.
79193         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79194         * lib/regex.c: Likewise.
79195
79196 2004-05-16  Derek Price  <derek@ximbiot.com>
79197             Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         getline cleanup.  This changes the getndelim2 API: both order of
79200         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79201         no delimiter).
79202
79203         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79204         interface does that.
79205         (getline): Always use getdelim, so that we don't have two
79206         copies of this code.
79207         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79208         if available.
79209         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79210         (GETNDELIM2_MAXIMUM): New macro.
79211         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79212         instead of the old practice of delim2==0.  All callers changed.
79213         Return -1 on overflow, instead of returning junk.
79214         Do not set *linesize unless allocation succeeds.
79215         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79216         that we include sys/types.h.
79217         * lib/getnline.h: Likewise.
79218         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79219         (getndelim2): Reorder arguments.
79220         * lib/getnline.c (getnline, getndelim):
79221         Don't discard the NMAX argument.
79222         (getnline): Invoke getndelim, to avoid code duplication.
79223         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79224         of (size_t) -1 by callers of the getnline family.
79225
79226 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79227
79228         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79229         Check for gettimeofday.
79230         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79231         Check for settimeofday, stime.
79232
79233 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         * lib/nanosleep.c (suspended): Change its type from int to
79236         sig_atomic_t volatile.
79237         (first_call): Make it private to rpl_nanosleep, and have it
79238         be zero initially as that's a bit faster.
79239         (my_usleep): Round up fractional times instead of truncating them,
79240         as this is the usual meaning for 'sleep'.
79241
79242         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79243         doesn't work.
79244         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79245         (ENOSYS): Define if not defined.
79246         (settime): Fall back on stime if it exists and settimeofday fails.
79247         But don't bother with fallbacks if a method fails with errno == EPERM.
79248
79249 2004-05-11  Jim Meyering  <jim@meyering.net>
79250
79251         Prior to this change, the save_cwd caller required read access to the
79252         current directory on most systems (ones with the fchdir function).
79253
79254         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79255         fails, try write-only, and finally, resort to using xgetcwd.
79256
79257 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * lib/obstack.c, obstack.h: Import changes from libc.
79260
79261 2004-04-28  Bruno Haible  <bruno@clisp.org>
79262
79263         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79264         also implicitly appends .exe to executables.
79265         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79266         accepts Windows pathnames.
79267         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79268         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79269         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79270         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79271         Reported by Derek Robert Price <derek@ximbiot.com>.
79272
79273 2004-04-21  Karl Berry  <karl@gnu.org>
79274
79275         * config/srclist.txt (localcharset.c): break sync.
79276
79277 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79278
79279         * m4/host-os.m4: Add a copyright notice.
79280
79281 2004-04-20  Jim Meyering  <jim@meyering.net>
79282
79283         Change UTILS_ to gl_ in AC_DEFINE'd names.
79284         Change utils_- and jm_-prefixed variables, too.
79285         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79286         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79287         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79288
79289         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79290         Don't emit trailing blanks.
79291         Also rename jm_-prefixed variables to have gl_ prefix.
79292
79293         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79294         Also rename jm_-prefixed variables to have gl_ prefix.
79295
79296         * m4/jm-macros.m4: Reflect the renamings.
79297         * m4/prereq.m4: Likewise.
79298
79299 2004-04-20  Jim Meyering  <jim@meyering.net>
79300
79301         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79302         memory.
79303
79304 2004-04-20  Jim Meyering  <jim@meyering.net>
79305             Bruno Haible  <bruno@clisp.org>
79306
79307         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79308         memory when realloc fails.
79309
79310 2004-04-19  Jim Meyering  <jim@meyering.net>
79311
79312         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79313         now that readutmp.c may call `free (0)'.
79314
79315 2004-04-19  Bruno Haible  <bruno@clisp.org>
79316
79317         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79318         * m4/inttypes_h.m4: Likewise.
79319         * m4/stdint_h.m4: Likewise.
79320         * m4/intmax_t.m4: Likewise.
79321         * m4/uintmax_t.m4: Likewise.
79322
79323 2004-04-18  Jim Meyering  <jim@meyering.net>
79324
79325         * m4/prereq.m4: Don't forbid jm_ prefix.
79326
79327         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79328         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79329         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79330         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79331         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79332         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79333         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79334         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79335         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79336         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79337         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79338         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79339         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79340         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79341         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79342         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79343         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79344         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79345         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79346
79347 2004-04-18  Jim Meyering  <jim@meyering.net>
79348
79349         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79350         failure, don't leak memory and do call END_UTMP_ENT.
79351
79352 2004-04-16  Jim Meyering  <jim@meyering.net>
79353
79354         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79355         coreutils' stat program.
79356         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79357
79358 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79359
79360         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79361         C89.
79362         (CHAR_BIT): Remove, since we assume C89.
79363         Include <stdint.h> if available, as per current Autoconf CVS advice.
79364
79365 2004-03-31  Jim Meyering  <jim@meyering.net>
79366
79367         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79368         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79369         * m4/xalloc.m4: Likewise.
79370
79371 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79372
79373         Merge from coreutils.
79374
79375         * m4/inttostr.m4: New file.
79376         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79377         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79378         Require gl_CLOCK_TIME.
79379         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79380
79381 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79382
79383         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79384         not bool, to be more consistent with Unix conventions.
79385         Suggested by Bruno Haible.
79386
79387         Merge from coreutils.
79388
79389         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79390         * lib/umaxtostr.c: New files.
79391
79392         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79393         the usual <time.h> dance.
79394         (get_date): Change signature to support fractional time stamps.
79395         All callers changed.
79396         * lib/getdate.y: Include "getdate.h" first, as we can now
79397         assume C89 and don't need to worry about 'const'.
79398         Similarly, include "unlocked-io.h" near start, not in middle.
79399         Include <limits.h>.
79400         (textint.value): Use long int rather than int.
79401         (textint.digits): Use size_t rather than int.
79402         (BILLION, LOG10_BILLION): New constants.
79403         (parser_control): New member rel_ns.  Members day_ordinal,
79404         time_zone, month, day, hour, minutes, rel_year, rel_month,
79405         rel_day, rel_hour, rel_minutes, rel_seconds
79406         are now long int, not int.  Member seconds is now struct timespec,
79407         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79408         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79409         not int.
79410         (%union.intval): Now long int, not int.
79411         New member timespec.
79412         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79413         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79414         (spec): Now is a timespec or an item list.
79415         (timespec, items): New nonterminals.
79416         (time, rel, relunit, number, get_date):
79417         Add support for fractional seconds.
79418         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79419         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79420         (to_hour): First arg is now long int, not int.
79421         (to_year): Returns long int, not int.
79422         Don't treat year -70 like 70.
79423         (tm_diff): Returns long int, not int.
79424         (lookup_word): Use bool instead of int when appropriate.
79425         (yylex): Use size_t for count, not int.
79426         Detect overflow when parsing large integer constants.
79427         Add support for fractions.
79428         (get_date): Make pointers 'const' if possible.
79429         Use more-portable code to detect integer overflow.
79430         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79431         Don't use ctime; it's not reliable if the year has >4 digits.
79432
79433         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79434         This is for compatibility with BSD.
79435
79436         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79437         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79438         From coreutils' system.h.
79439
79440         * lib/userspec.c: Don't include "posixver.h".
79441         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79442         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79443         compatible extension.  Simplify code by removing a boolean int
79444         that was always nonzero if a string was nonnull.
79445
79446 2004-03-30  Jim Meyering  <jim@meyering.net>
79447
79448         Merge from coreutils.
79449
79450         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79451         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79452         on some systems one must include <grp.h> before it.
79453         Reported by Christian Krackowizer.
79454
79455 2004-03-30  Jim Meyering  <jim@meyering.net>
79456
79457         Merge from coreutils.
79458
79459         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79460
79461         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79462         an empty input stream.
79463
79464         * lib/readtokens.c: Include <stdbool.h>.
79465         (readtoken): Use `size_t' rather than int/long.
79466         All callers adjusted.
79467         Use `bool' rather than `int' where appropriate.
79468         Use memset rather than an explicit loop.
79469         Use x2nrealloc rather than xrealloc.
79470         Allow the use of `\0' as a delimiter.
79471         (readtokens): Likewise.
79472         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79473
79474 2004-03-30  Jim Meyering  <jim@meyering.net>
79475
79476         * m4/realloc.m4: Remove file, since now it does no more than
79477         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79478         the `configure.ac' section of module/realloc.
79479         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79480
79481 2004-03-30  Bruno Haible  <bruno@clisp.org>
79482
79483         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79484         nonnull.
79485
79486 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79487
79488         Merge changes to getloadavg.c from coreutils and Emacs.
79489
79490         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79491         Define to an expression, not to the empty string.
79492         Include cloexec.h and xalloc.h.
79493         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79494         Use set_cloexec_flag rather than rolling our own.
79495         * lib/cloexec.c, lib/cloexec.h: New files.
79496
79497 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79498
79499         * m4/cloexec.m4: New file.
79500
79501 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79502
79503         * lib/getopt.h: Sync with libc CVS.
79504
79505 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79506             Bruno Haible  <bruno@clisp.org>
79507
79508         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79509         mbswidth.
79510
79511 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79512             Bruno Haible  <bruno@clisp.org>
79513
79514         * lib/mbswidth.h: Include <wchar.h> only if
79515         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79516         <wchar.h>.
79517         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79518
79519 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79520
79521         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79522         Sync with libc CVS.
79523         * lib/getopt_int.h: New file, also synced from libc.
79524
79525 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79526
79527         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79528         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79529         Bring back getopt.c, getopt.h, getopt1.c.
79530
79531 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79532
79533         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79534         All uses changed.  Check for sa_sigaction member; this fixes
79535         a bug first reported by Jason Andrade in
79536         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79537
79538 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79539
79540         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79541         '#if' expressions.  Unlike the code it replaces, it does not
79542         depend on (defined _SC_PAGESIZE).  However, it does depend on
79543         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79544         first reported by Jason Andrade in
79545         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79546
79547 2004-02-25  Simon Josefsson  <jas@extundo.com>
79548
79549         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79550
79551 2004-02-25  Simon Josefsson  <jas@extundo.com>
79552
79553         * lib/strdup.h: New file.
79554         * lib/strdup.c: Include it.
79555         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79556         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79557
79558 2004-02-23  Karl Berry  <karl@gnu.org>
79559
79560         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79561         (from fencepost.gnu.org:/gd/gnuorg).
79562
79563 2004-02-23  Karl Berry  <karl@gnu.org>
79564
79565         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79566         * config/srclist.txt: add maintain/standards documents.
79567
79568 2004-02-18  Bruno Haible  <bruno@clisp.org>
79569
79570         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79571         Reported by Derek Robert Price <derek@ximbiot.com>.
79572
79573 2004-02-16  Karl Berry  <karl@gnu.org>
79574
79575         * config/mkinstalldirs, install-sh: update from automake.
79576
79577 2004-02-06  Karl Berry  <karl@gnu.org>
79578
79579         * m4/po.m4: update from gettext 0.14.1.
79580
79581 2004-02-06  Karl Berry  <karl@gnu.org>
79582
79583         * lib/config.charset: update from gettext 0.14.1.
79584
79585 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79586
79587         Add comments and code, prompted by suggestions from Bruno Haible
79588         for sh-quote.
79589         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79590         describing the enum quoting_style values.
79591         * lib/quotearg.c (quotearg_alloc): New function.
79592         (quotearg_buffer_restyled): Treat lone { and } as special.
79593         Treat = as special.  Work around bug with older shells
79594         that "see" a '\' that is really the 2nd byte of a multibyte char.
79595         Quote empty string with shell_quoting_style.
79596
79597 2004-02-03  Bruno Haible  <bruno@clisp.org>
79598
79599         * m4/pipe.m4: New file, from GNU gettext.
79600
79601 2004-02-03  Bruno Haible  <bruno@clisp.org>
79602
79603         * lib/pipe.h: New file, from GNU gettext.
79604         * lib/pipe.c: New file, from GNU gettext.
79605
79606 2004-01-27  Bruno Haible  <bruno@clisp.org>
79607
79608         * m4/execute.m4: New file, from GNU gettext.
79609
79610 2004-01-27  Bruno Haible  <bruno@clisp.org>
79611
79612         * lib/execute.h: New file, from GNU gettext.
79613         * lib/execute.c: New file, from GNU gettext.
79614         * lib/w32spawn.h: New file, from GNU gettext.
79615
79616 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79617
79618         Merge from diffutils.
79619
79620         * lib/file-type.c (file_type): Add typed memory objects.
79621         * lib/file-type.h (S_TYPEISTMO): New macro.
79622
79623         * lib/c-stack.h (c_stack_action): Remove argv argument.
79624         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79625         (die): Don't calculate message unless segv_action returns.
79626         (get_stack_location, min_address_from_argv, max_address_from_argv,
79627         volatile stack_base, volatile_stack_size): Remove.
79628         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79629         that every segmentation violation is a stack overflow.  (Ouch!)
79630         See Debian bug 136249 (still outstanding) for more info about why
79631         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79632
79633 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79634
79635         Exit-status fix from coreutils.
79636
79637         Use exit_failure consistently in place of EXIT_FAILURE,
79638         so that program exit statuses are consistent on failure.
79639
79640         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79641         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79642         * lib/argmatch.h: Comment fix to match the above.
79643         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79644         Now a macro referring to exit_failure, instead of a separate
79645         variable.  Include "exitfail.h" to get it.
79646         * lib/xstrtol.h: Include "exitfail.h".
79647         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79648
79649         * lib/long-options.c (parse_long_options): Use prototype
79650         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79651         for clarity.
79652
79653 2004-01-21  Jim Meyering  <jim@meyering.net>
79654
79655         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79656         so as not to conflict with a different-sized __mktime_internal
79657         function in GNU libc.
79658         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79659         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79660
79661 2004-01-20  Karl Berry  <karl@gnu.org>
79662
79663         * config/config.guess: update from config.
79664
79665         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79666
79667 2004-01-20  Bruno Haible  <bruno@clisp.org>
79668
79669         Safer stack allocation.
79670         * lib/setenv.c: Include allocsa.h.
79671         (alloca): Remove fallback definition.
79672         (freea): Remove macro.
79673         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79674         instead of freea.
79675
79676 2004-01-20  Bruno Haible  <bruno@clisp.org>
79677
79678         * m4/eealloc.m4: New file, from GNU gettext.
79679
79680 2004-01-20  Bruno Haible  <bruno@clisp.org>
79681
79682         * m4/allocsa.m4: New file, from GNU gettext.
79683
79684 2004-01-20  Bruno Haible  <bruno@clisp.org>
79685
79686         * lib/xallocsa.h: New file, from GNU gettext.
79687         * lib/xallocsa.c: New file, from GNU gettext.
79688
79689 2004-01-20  Bruno Haible  <bruno@clisp.org>
79690
79691         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79692
79693 2004-01-20  Bruno Haible  <bruno@clisp.org>
79694
79695         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79696         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79697         specially.
79698
79699 2004-01-20  Bruno Haible  <bruno@clisp.org>
79700
79701         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79702         patch.
79703
79704 2004-01-20  Bruno Haible  <bruno@clisp.org>
79705
79706         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79707
79708 2004-01-20  Bruno Haible  <bruno@clisp.org>
79709
79710         * lib/eealloc.h: New file.
79711
79712 2004-01-20  Bruno Haible  <bruno@clisp.org>
79713
79714         * lib/binary-io.h: Avoid warnings on Cygwin.
79715
79716 2004-01-20  Bruno Haible  <bruno@clisp.org>
79717
79718         * lib/allocsa.h: New file, from GNU gettext.
79719         * lib/allocsa.c: New file, from GNU gettext.
79720
79721 2004-01-18  Karl Berry  <karl@gnu.org>
79722
79723         * doc/gpl.texi, doc/lgpl.texi: new files.
79724
79725 2004-01-18  Karl Berry  <karl@gnu.org>
79726
79727         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79728         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79729
79730 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79731
79732         Merge from coreutils.
79733
79734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79735         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79736         (gl_DEFAULT_POSIX2_VERSION): Move
79737         the documentation from 'configure' into 'config.hin',
79738         so that 'configure --help' isn't burdened by it and
79739         we don't have to worry about its formatting there.
79740         Reword the documentation so that it's more succinct
79741         and can be run together into a single paragraph.
79742         * m4/same.m4 (gl_SAME): Check for pathconf.
79743
79744 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79745
79746         Merge from coreutils.
79747
79748         * lib/posixver.c: Include posixver.h.
79749
79750         * lib/same.c: Include <stdbool.h>, <limits.h>.
79751         (_POSIX_NAME_MAX): Define if not defined.
79752         (MIN): New macro.
79753         (same_name): If file names are silently truncated, report
79754         that the file names are the same if they are the same after
79755         the silent truncation.
79756
79757         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79758         conversion function.
79759         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79760         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79761         longer needed.
79762
79763 2004-01-15  Jim Meyering  <jim@meyering.net>
79764
79765         Merge from coreutils.
79766
79767         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79768         if no library is required.
79769         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79770         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79771         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79772         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79773         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79774         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79775         value, $ac_cv_search_crypt, if it's "none required".
79776         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79777         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79778         not gl_FUNC_GETLOADAVG.
79779         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79780         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79781
79782 2004-01-15  Jim Meyering  <jim@meyering.net>
79783
79784         Merge from coreutils.
79785
79786         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79787         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79788         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79789
79790         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79791         optional configure-time default.
79792
79793         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79794
79795         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79796
79797 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79798
79799         Merge from coreutils.
79800
79801         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79802         value, $ac_cv_search_nanosleep, if it's "none required".
79803
79804 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79805
79806         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79807         with like-named macro in fnmatch.c.
79808         (EXT): Use an internal constant instead.
79809
79810         Merge fnmatch patches from glibc.
79811         * lib/fnmatch.c (mbsinit): Remove define.
79812         Add libc_hidden_ver (__fnmatch, fnmatch).
79813         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79814         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79815
79816 2004-01-14  Karl Berry  <karl@gnu.org>
79817
79818         * config/install-sh: update from automake.
79819
79820 2004-01-13  Karl Berry  <karl@gnu.org>
79821
79822         * config/install-sh: update from automake.
79823
79824 2004-01-09  Karl Berry  <karl@gnu.org>
79825
79826         * config/install-sh: update from automake.
79827
79828 2004-01-05  Karl Berry  <karl@gnu.org>
79829
79830         * config/config.{sub,guess}: update from config.
79831
79832 2003-12-31  Karl Berry  <karl@gnu.org>
79833
79834         * config/depcomp: update from automake.
79835
79836 2003-12-14  Karl Berry  <karl@gnu.org>
79837
79838         * lib/config.charset: update from gettext-runtime.
79839
79840 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79841
79842         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79843         Bug reported by Alfred M. Szmidt.
79844
79845 2003-12-03  Bruno Haible  <bruno@clisp.org>
79846
79847         * m4/gettext.m4: Upgrade from gettext-0.13.
79848         * m4/po.m4: Upgrade from gettext-0.13.
79849         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79850         * m4/intmax.m4: New file, from gettext-0.13.
79851         * m4/printf-posix.m4: New file, from gettext-0.13.
79852
79853 2003-11-29  Karl Berry  <karl@gnu.org>
79854
79855         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79856
79857 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79858             Bruno Haible  <bruno@clisp.org>
79859
79860         * lib/printf-parse.h: Don't include sys/types.h.
79861         (ARG_NONE): New macro.
79862         (char_directive): Change type of *arg_index fields to size_t.
79863         * lib/printf-parse.c: Don't include sys/types.h.
79864         (SSIZE_MAX): Remove macro.
79865         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79866         Remove unnecessary overflow check.
79867         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79868         fields.
79869
79870 2003-11-25  Bruno Haible  <bruno@clisp.org>
79871
79872         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79873
79874 2003-11-25  Bruno Haible  <bruno@clisp.org>
79875
79876         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79877         gt_TYPE_SSIZE_T.
79878
79879 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79880
79881         * modules/alloca: Remove dependency on xalloc.
79882
79883 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79884
79885         * lib/alloca.c: Remove dependency on xalloc module.
79886         (xalloc_die): Remove.
79887         (memory_full) [!defined emacs]: New macro.
79888         [!defined emacs]: Don't include xalloc.h.
79889         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79890         address arithmetic overflows.  Change datatypes a bit to avoid
79891         unnecessary casts.
79892
79893 2003-11-22  Jim Meyering  <jim@meyering.net>
79894
79895         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79896         s/size/size_t/.
79897
79898 2003-11-21  Karl Berry  <karl@gnu.org>
79899
79900         * config/config.{sub,guess}: update from config.
79901
79902 2003-11-18  Karl Berry  <karl@gnu.org>
79903
79904         * config/config.{sub,guess}: update from config.
79905
79906         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79907
79908 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79909
79910         * README: Mention that S+T cannot overflow if S is the size of
79911         an existing object and T is sufficiently small.
79912
79913 2003-11-17  Jim Meyering  <jim@meyering.net>
79914
79915         On systems without utime and without a utimes function capable of
79916         dealing with a NULL struct utimbuf* argument, this utime replacement
79917         could -- in unusual circumstances -- leak a file descriptor.
79918         * lib/utime.c: Include <unistd.h> and <errno.h>.
79919         (utime_null): Be sure to close `fd' and to preserve errno.
79920         Reported by Geoff Collyer via Arnold Robbins.
79921
79922 2003-11-17  Bruno Haible  <bruno@clisp.org>
79923
79924         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79925         (Depends-on): Add xsize.
79926
79927 2003-11-17  Bruno Haible  <bruno@clisp.org>
79928
79929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79930
79931 2003-11-17  Bruno Haible  <bruno@clisp.org>
79932
79933         * lib/vasnprintf.c (alloca): Remove fallback definition.
79934         (freea): Remove definition.
79935         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79936         Reported by Paul Eggert.
79937
79938 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79939             Bruno Haible  <bruno@clisp.org>
79940
79941         Protect against address arithmetic overflow.
79942         * lib/printf-args.h: Include stddef.h.
79943         (arguments): Change type of field 'count' to size_t.
79944         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79945         'unsigned int' where appropriate.
79946         * lib/printf-parse.h: Include sys/types.h.
79947         (char_directive): Change type of *arg_index fields to ssize_t.
79948         (char_directives): Change type of fields 'count', max_*_length to
79949         size_t.
79950         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79951         (SSIZE_MAX): Define fallback value.
79952         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79953         instead of 'int' where appropriate. Check a_allocated, d_allocated
79954         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79955         * lib/vasnprintf.c: Include xsize.h.
79956         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79957         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79958         overflow. Avoid wraparound when converting a width or precision from
79959         decimal to binary.
79960
79961 2003-11-16  Bruno Haible  <bruno@clisp.org>
79962
79963         Update from GNU gettext.
79964         * lib/printf-parse.c: Generalize to it can be compiled for wide
79965         strings.
79966         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79967         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79968         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79969         SNPRINTF): New macros.
79970         Don't include <alloca.h> if the file is used inside libintl.
79971         (local_wcslen): New function, for Solaris 2.5.1.
79972         (VASNPRINTF): Use it instead of wcslen.
79973
79974 2003-11-16  Bruno Haible  <bruno@clisp.org>
79975
79976         * lib/xsize.h (xmax): New function.
79977         (xsum, xsum3, xsum4): Declare as "pure" functions.
79978
79979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79980
79981         * modules/xalloc (Files): Undo latest change, since xalloc.h
79982         no longer needs SIZE_MAX or PTRDIFF_MAX.
79983
79984 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79985
79986         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79987         gl_PTRDIFF_MAX.
79988
79989 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79990
79991         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79992         "return", to pacify some unknown compiler.  Problem reported
79993         by Joerg Schilling.
79994
79995 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79996
79997         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79998         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79999         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80000         heuristic is just as accurate as far as we know, and it removes a
80001         dependency on size_max.m4 and ptrdiff_max.m4.
80002
80003 2003-11-11  Bruno Haible  <bruno@clisp.org>
80004
80005         * modules/xsize (Files): Add m4/size_max.m4.
80006         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80007
80008 2003-11-11  Bruno Haible  <bruno@clisp.org>
80009
80010         * m4/size_max.m4: New file.
80011         * m4/ptrdiff_max.m4: New file.
80012         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80013         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80014         (gl_XALLOC): Invoke it.
80015
80016 2003-11-11  Bruno Haible  <bruno@clisp.org>
80017
80018         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80019         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80020         defined.
80021
80022 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80023
80024         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80025         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80026         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80027         From Bruno Haible.
80028         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80029         not (size_t) -1, since it's defined here.
80030
80031 2003-11-09  Karl Berry  <karl@gnu.org>
80032
80033         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80034
80035 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80036
80037         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80038         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80039         Reject sizes of exactly SIZE_MAX bytes.
80040         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80041         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80042
80043 2003-11-05  Bruno Haible  <bruno@clisp.org>
80044
80045         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80046         SIZE_MAX defined in <limits.h> on Solaris.
80047
80048 2003-11-04  Jim Meyering  <jim@meyering.net>
80049
80050         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80051         variable names, rather than @VAR@.
80052         * modules/poll: Likewise.
80053
80054 2003-11-04  Bruno Haible  <bruno@clisp.org>
80055
80056         * modules/xsize: New file.
80057         * modules/linebreak: Depend on xsize.
80058         * MODULES.html.sh (func_all_modules): Add xsize.
80059
80060 2003-11-04  Bruno Haible  <bruno@clisp.org>
80061
80062         * m4/xsize.m4: New file.
80063
80064 2003-11-04  Bruno Haible  <bruno@clisp.org>
80065
80066         * lib/xsize.h: New file.
80067         * lib/linebreak.c: Include xsize.h.
80068         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80069         argument for overflow.
80070         Suggested by Paul Eggert.
80071
80072 2003-11-03  Karl Berry  <karl@gnu.org>
80073
80074         * config/config.{guess,sub}: update from config.
80075
80076 2003-11-03  Jim Meyering  <jim@meyering.net>
80077
80078         * modules/userspec (lib_SOURCES): Add userspec.h.
80079         (Include): Add "userspec.h".
80080         Improve description.
80081
80082 2003-11-03  Jim Meyering  <jim@meyering.net>
80083
80084         * lib/userspec.c: Include "userspec.h".
80085         * lib/userspec.h: New file.
80086
80087 2003-11-03  Bruno Haible  <bruno@clisp.org>
80088
80089         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80090
80091 2003-11-03  Bruno Haible  <bruno@clisp.org>
80092
80093         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80094         available, to avoid (extremely rare) race condition.
80095         Suggested by Paul Eggert.
80096
80097 2003-11-02  Karl Berry  <karl@gnu.org>
80098
80099         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80100
80101 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80102
80103         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80104         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80105         (read_filesystem_list): Set and use me_type_malloced.
80106         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80107         whatever the type happens to be), for brevity and consistency.
80108         Check for size calculation overflow on Alphas running OSF/1.
80109
80110 2003-10-31  Jim Meyering  <jim@meyering.net>
80111
80112         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80113
80114         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80115
80116 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80117             Bruno Haible  <bruno@clisp.org>
80118
80119         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80120         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80121
80122 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80125         netbsd*-gnu*.  Suggested by Robert Millan.
80126
80127 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80128
80129         * modules/group-member: Depend on stdbool.
80130
80131 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80132
80133         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80134
80135 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80136
80137         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80138         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80139         after the 'gnu' in these cases.  This fixes some bugs in the
80140         previous change, and is based on suggestions by Robert Millan.
80141
80142 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80143
80144         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80145         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80146         no longer needed.
80147         * lib/quotearg.c (quotearg_n_options): Use it.
80148         * lib/group-member.c: Include <stdbool.h>.
80149         (free_group_info): Arg is now const *; don't free arg.
80150         (get_group_info): Now returns bool and accepts struct group_info *,
80151         rather than returning a malloc'ed struct group_info *.
80152         All uses changed.  Check for overflow in internal size calculation.
80153
80154         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80155         rather than xmalloc/xrealloc.
80156         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80157         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80158         conformance bug: the old code used a pointer after freeing the
80159         storage that it addressed.
80160         * lib/hash.c (hash_initialize): Simplify the code by using
80161         xalloc_oversized rather than doing it by hand.
80162         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80163         the buffer preserved.  Use free and xmalloc instead.
80164         * lib/quotearg.c (quotearg_n_options): Likewise.
80165         Use a simpler test for size overflow.  Don't use xalloc_oversized
80166         because unsigned int might be wider than size_t (!); this suggests
80167         that we should switch from unsigned int to size_t for slot numbers.
80168
80169 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80170
80171         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80172         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80173         NetBSD kernels.  Requested by Richard Stallman.
80174
80175 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80176
80177         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80178         to allocate the returned structure.  Do not allocate a subarray,
80179         as x2nrealloc will do that.
80180         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80181         instead of xnrealloc.
80182         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80183
80184 2003-10-27  Bruno Haible  <bruno@clisp.org>
80185
80186         * lib/stdbool_.h: Better support for BeOS.
80187
80188 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80189
80190         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80191         now uses inline.
80192
80193 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80194
80195         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80196         callers that want to do their own size-overflow checking.  Include
80197         <stdbool.h>, since xalloc_oversized returns bool.
80198         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80199         to use xalloc_oversized.
80200
80201         Add two functions x2realloc, x2nrealloc, for programs that grow
80202         arrays dynamically by doubling their sizes.
80203         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80204         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80205         New functions.
80206
80207         Port to C99 semantics for 'inline' of external functions.
80208         Bug reported by Bruno Haible.
80209         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80210         with the old contents of xnmalloc.
80211         (xnmalloc, xmalloc): Use it.
80212         (xnrealloc_inline): New static inline function,
80213         with the old contents of xnrealloc.
80214         (xnrealloc, xrealloc): Use it.
80215
80216         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80217         that.
80218
80219 2003-10-26  Karl Berry  <karl@gnu.org>
80220
80221         * config/srclist.txt (COPYING.DOC): no longer available from
80222         /gd/gnuorg; don't know where the ultimate source is.
80223
80224 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80225
80226         Fix several address-calculation bugs in the hash modules,
80227         plus some minor code cleanup.
80228
80229         * lib/hash.h: Include <stdbool.h>, for bool.
80230         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80231         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80232         hash_get_n_entries, hash_get_max_bucket_length,
80233         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80234         hash_rehash): Use size_t rather than unsigned.
80235         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80236         hash_get_n_buckets_used, hash_get_n_entries,
80237         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80238         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80239         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80240         Likewise.
80241         (SIZE_MAX): Define if not defined.
80242         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80243         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80244         hash_print):
80245         Use const * when possible.
80246         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80247         (check_tuning): Fix bug: if tuning parameters were very close to
80248         0 or 1, rounding errors could have caused subscript violations.
80249         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80250         (hash_initialize): Add 'fail:' label
80251         to free table and return NULL, and use it to simplify code.
80252         Use calloc rather than clearing the storage ourself.
80253         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80254         buffer size calculations.
80255         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80256         Include <stddef.h>, for size_t.
80257         * lib/hash-pjw.c (hash_pjw): Likewise.
80258         Switch to method described by Bruno Haible.
80259         Include <limits.h>, for CHAR_BIT.
80260         (SIZE_BITS): New macro.
80261
80262 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80263
80264         * m4/getline.m4 (AM_FUNC_GETLINE):
80265         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80266         hosts.  Problem reported by Derek Robert Price in
80267         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80268         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80269         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80270
80271 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80272
80273         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80274         ceiling the allocation at NMAX bytes rather than silently
80275         discarding input bytes before NMAX is reached.  This makes
80276         a difference only if NMAX exceeds SIZE_MAX / 2.
80277
80278         * lib/obstack.c: Merge from glibc.
80279         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80280         Add libc_hidden_def (_obstack_newchunk).
80281         (_obstack_free) [! defined _LIBC]: Remove.
80282         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80283         a clone of the function body.
80284         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80285         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80286
80287         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80288         glibc.
80289         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80290         arg to memcpy.
80291
80292         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80293         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80294         Don't use lvalue casts, as GCC plans to remove support for them
80295         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80296         was also present in the non-GCC version, indicating that this
80297         code had always been buggy and had never been widely used.
80298         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80299         Use the fast variant of each macro, rather than copying the
80300         definiens of the fast variant; that way, we'll be more likely to
80301         catch future bugs in the fast variants.
80302
80303 2003-10-20  Bruno Haible  <bruno@clisp.org>
80304
80305         * modules/wait-process: New file.
80306         * MODULES.html.sh (func_all_modules): Add wait-process.
80307
80308 2003-10-20  Bruno Haible  <bruno@clisp.org>
80309
80310         * m4/wait-process.m4: New file.
80311
80312 2003-10-20  Bruno Haible  <bruno@clisp.org>
80313
80314         * lib/wait-process.h: New file, from GNU gettext.
80315         * lib/wait-process.c: New file, from GNU gettext.
80316
80317 2003-10-19  Jim Meyering  <jim@meyering.net>
80318
80319         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80320         HPUX 10.20.
80321
80322 2003-10-18  Karl Berry  <karl@gnu.org>
80323
80324         * config/config.guess: update from config.
80325
80326 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80327
80328         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80329         (getgroups): First arg is int, not size_t.
80330         Don't let 'free' mangle errno.
80331
80332 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80333
80334         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80335
80336 2003-10-16  Karl Berry  <karl@gnu.org>
80337
80338         * config/config.{guess,sub}: update from config.
80339
80340 2003-10-16  Jim Meyering  <jim@meyering.net>
80341
80342         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80343         memcpy.
80344
80345 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80346
80347         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80348         (SIZE_MAX): Remove.
80349         (new_exclude, add_exclude_file): Initial size no longer needs to
80350         be a power of 2.
80351         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80352         our own address arithmetic overflow checking.
80353
80354         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80355         (fnmatch): Do not alloca more than 2000 wide characters;
80356         instead, use malloc for large buffers.
80357         Check for address arithmetic overflow, and return -1
80358         with errno set to ENOMEM in that case.
80359         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80360         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80361         instead, return -1.  Check for address arithmetic overflow.
80362
80363 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80364
80365         Handle invalid suffixes and overflow independently, so that
80366         callers can treat them independently as needed.  Fix some bugs in
80367         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80368         suffix for a human-readable blocksize.  The major caller-visible
80369         change is the addition of a new
80370         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80371         that both overflow and suffix chars were found.
80372
80373         * lib/human.c (humblock): Don't check separately for invalid suffix
80374         char; that is xstrtoumax's job (now that its bug is fixed).
80375         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80376         INTMAX_MAX]: New macros.
80377         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80378         TYPE_MAXIMUM): New macros.
80379         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80380         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80381         if overflow occurs, as it's what __strtol does and it's more useful
80382         in practice.
80383         (__xstrtol): If __strtol reports some error other than ERANGE,
80384         reflect it to the caller as LONGINT_INVALID.  If it reports
80385         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80386         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80387         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80388         value.
80389         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80390         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80391         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80392         [defined UINTMAX_MAX]: New macros.
80393
80394 2003-10-14  Bruno Haible  <bruno@clisp.org>
80395
80396         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80397
80398 2003-10-14  Bruno Haible  <bruno@clisp.org>
80399
80400         * m4/sig_atomic_t: New file, from GNU gettext.
80401         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80402
80403 2003-10-14  Bruno Haible  <bruno@clisp.org>
80404
80405         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80406         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80407         Also use volatile where needed.
80408
80409 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80410
80411         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80412         Change maintainer from Bruno Haible to 'all'.
80413
80414 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80415
80416         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80417
80418 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80419
80420         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80421         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80422         and define in terms of the other primitives.
80423         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80424         (SIZE_MAX): Define if not already defined.
80425         (array_size_overflow): New function.
80426         (xalloc_die): Abort instead of exiting if 'error' returns.
80427         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80428         (xmalloc, xrealloc): Use them.
80429         (xcalloc): Check for address arithmetic overflow.
80430         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80431         a bit faster than strcpy.
80432
80433 2003-10-10  Simon Josefsson  <jas@extundo.com>
80434
80435         * modules/argp (Depends-on): Add restrict and strcase.
80436
80437 2003-10-10  Simon Josefsson  <jas@extundo.com>
80438
80439         * m4/argp.m4: Add AC_C_INLINE.
80440
80441 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80442
80443         Merge getpass from libc, plus a few fixes.
80444
80445         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80446         Include <stdbool.h>.
80447         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80448         __fsetlocking to empty.
80449         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80450         do include <bits/libc-lock.h>.
80451         Do not include <fcntl.h>; not needed.
80452         [_LIBC]: Include <wchar.h>.
80453         (NOTCANCEL_MODE): New macro.
80454         (flockfile, funlockfile) [_LIBC]: New macros.
80455         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80456         [!_LIBC]: New macros.
80457         (call_fclose): New function.
80458         (getpass): Use it.  Save tty stream separately; this simplifies the
80459         code and makes it more reliable if stdin happens to equal stdout.
80460         Invoke __fsetlocking on tty.
80461         Handle thread cancellation if needed.
80462         Namespace cleanup (use __tcgetattr, __getline).
80463         Use bool for Booleans.
80464         [USE_IN_LIBIO]: Handle wide streams.
80465         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80466         stream might go where.
80467
80468         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80469         doesn't have to include <stdio.h> before us.
80470         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80471         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80472         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80473         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80474         if not declared, so that we can use getpass.c code from libc without
80475         rewriting it.
80476         (flockfile, ftrylockfile, funlockfile): New macros.
80477
80478 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80479
80480         * modules/getpass: Depend on stdbool.
80481
80482 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80483
80484         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80485
80486 2003-10-07  Karl Berry  <karl@gnu.org>
80487
80488         * config/config.{guess,sub}: update from config.
80489
80490 2003-10-06  Jim Meyering  <jim@meyering.net>
80491             Bruno Haible  <bruno@clisp.org>
80492
80493         This lets translators provide better translations for the
80494         "Written by ..." part of --version output.
80495         * lib/version-etc.h: Include stdarg.h.
80496         (version_etc_copyright): Declare as readonly.
80497         (version_etc): Make this function variadic with a NULL-terminated list
80498         of author name strings.
80499         (version_etc_va): New declaration.
80500         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80501         (version_etc_copyright): Declare as readonly.
80502         (version_etc_va): New function. Provide a different translatable string
80503         for each possible number of authors < 10. Abbreviate when there are 10
80504         authors or more.
80505         (version_etc): Make this function variadic. Call version_etc_va.
80506         Suggestion from Gary V. Vaughan.
80507
80508         * lib/long-options.h (parse_long_options): Change prototype: the
80509         authors string is moved to the end and becomes variadic.
80510         * lib/long-options.c: Include stdarg.h.
80511         (parse_long_options): Make this function variadic, too.
80512         Call version_etc_va, not version_etc.
80513
80514 2003-10-06  Bruno Haible  <bruno@clisp.org>
80515
80516         * modules/version-etc-2: Remove file.
80517         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80518
80519 2003-10-06  Bruno Haible  <bruno@clisp.org>
80520
80521         * modules/fatal-signal: New file.
80522         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80523
80524 2003-10-06  Bruno Haible  <bruno@clisp.org>
80525
80526         * m4/fatal-signal.m4: New file.
80527         * m4/signalblocking.m4: New file, from GNU gettext.
80528
80529 2003-10-06  Bruno Haible  <bruno@clisp.org>
80530
80531         * lib/version-etc-2.h: Remove file.
80532         * lib/version-etc-2.c: Remove file.
80533
80534 2003-10-06  Bruno Haible  <bruno@clisp.org>
80535
80536         * lib/fatal-signal.h: New file, from GNU gettext.
80537         * lib/fatal-signal.c: New file, from GNU gettext.
80538
80539 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80540
80541         * README: Rework advice for preventing empty .o files.
80542         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80543         not <sys/types.h>.
80544
80545 2003-10-04  Karl Berry  <karl@gnu.org>
80546
80547         * lib/argp*: update from libc.
80548
80549 2003-10-04  Karl Berry  <karl@gnu.org>
80550
80551         * config/config.{guess,sub}: update from config.
80552
80553 2003-10-02  Bruno Haible  <bruno@clisp.org>
80554
80555         * modules/lchown (Include): Add lchown.h.
80556         * modules/time_r (Include): Use "..." syntax.
80557         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80558
80559 2003-10-01  Simon Josefsson  <jas@extundo.com>
80560
80561         * MODULES.html.sh (func_all_modules): Move gethostname from section
80562         'based on' to section 'lacking' POSIX:2001.
80563
80564 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80565
80566         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80567         to output mode on the same stream.
80568
80569 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80570
80571         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80572         Fix arg typo in previous patch.
80573
80574 2003-09-28  Jim Meyering  <jim@meyering.net>
80575
80576         * lib/error.c: Correct cpp indentation.
80577
80578 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80579
80580         * modules/free: New file.
80581
80582 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80583
80584         * m4/free.m4: New file.
80585
80586 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80587
80588         * lib/minmax.h (MIN, MAX)
80589         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80590         Omit the special code that used __typeof__, since we worry that
80591         it could be more trouble than it's worth.  See:
80592         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80593         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80594
80595         * lib/free.c: New file.
80596
80597 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80598
80599         Trivial fixes to Makefile.am parts of module listings.
80600         * modules/strstr: Append strstr.h to lib_SOURCES.
80601         * modules/strcase: Likewise, for strcase.h.
80602
80603 2003-09-27  Karl Berry  <karl@gnu.org>
80604
80605         * config/mkinstalldirs: update from automake.
80606
80607 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80608
80609         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80610         (error_tail): Do not loop, reallocating temporary buffer, since
80611         the output cannot contain more wide characters than the input
80612         contains bytes, the size must be big enough already.  This avoids
80613         one potential size overflow calculation.  Check for size overflow
80614         when calculating temporary buffer size.  Free temporary buffer
80615         when done, if it was allocated with malloc; this plugs a memory
80616         leak.  Remove casts from void * to pointers, that are no longer
80617         needed now that we're assuming C89 or better.
80618
80619         Merge error changes from glibc.
80620
80621         * lib/error.c, error.h: Update copyright notice header to match glibc.
80622         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80623         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80624         Disable cancellation while printing error.
80625         * lib/error.h: Prepend __ to parameter names.
80626
80627 2003-09-26  Jim Meyering  <jim@meyering.net>
80628
80629         * lib/error.c (error_tail): Move some declarations
80630         into inner scope where the local variables are used.
80631
80632 2003-09-26  Bruno Haible  <bruno@clisp.org>
80633
80634         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80635         stpncpy().
80636         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80637
80638 2003-09-26  Bruno Haible  <bruno@clisp.org>
80639
80640         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80641         (stpncpy): Define as alias for gnu_stpncpy.
80642         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80643
80644 2003-09-25  Simon Josefsson  <jas@extundo.com>
80645
80646         * lib/xgetdomainname.h: New file.
80647         * lib/xgetdomainname.c: New file.
80648
80649 2003-09-25  Simon Josefsson  <jas@extundo.com>
80650             Bruno Haible  <bruno@clisp.org>
80651
80652         * modules/getdomainname: New file.
80653         * modules/xgetdomainname: New file.
80654         * MODULES.html.sh (func_all_modules): Add getdomainname,
80655         xgetdomainname.
80656
80657 2003-09-25  Simon Josefsson  <jas@extundo.com>
80658             Bruno Haible  <bruno@clisp.org>
80659
80660         * m4/getdomainname.m4: New file.
80661
80662 2003-09-25  Simon Josefsson  <jas@extundo.com>
80663             Bruno Haible  <bruno@clisp.org>
80664
80665         * lib/getdomainname.h: New file.
80666         * lib/getdomainname.c: New file.
80667
80668 2003-09-25  Karl Berry  <karl@gnu.org>
80669
80670         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80671
80672 2003-09-25  Karl Berry  <karl@gnu.org>
80673
80674         * config/install-sh: update from automake.
80675
80676 2003-09-25  Bruno Haible  <bruno@clisp.org>
80677
80678         * modules/version-etc-2: New file, from modules/version-etc with
80679         modifications.
80680         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80681
80682 2003-09-25  Bruno Haible  <bruno@clisp.org>
80683
80684         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80685         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80686
80687 2003-09-24  Simon Josefsson  <jas@extundo.com>
80688
80689         * modules/xgethostname: Add xgethostname.h.
80690
80691 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80692
80693         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80694         the buffer associated with the argument.  Bug reported by
80695         Simon Josefsson.
80696
80697 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80698
80699         * README: Document assumptions that 'int' is at least 32 bits
80700         wide, that integer arithmetic is 2's complement without overflow,
80701         that there are no holes in integer values, that adding sizes of
80702         two nonoverlapping objects can't overflow, and that all-bits-zero
80703         yields scalar zero.  Fix spelling and capitalization typos.
80704
80705 2003-09-19  Karl Berry  <karl@gnu.org>
80706
80707         * lib/argp.h: update from libc.
80708
80709 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80710
80711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80712         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80713         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80714
80715 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80716
80717         * gnulib-tool: Use "test -h", not "test -L", for portability
80718         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80719         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80720         (sed_extract_prog): Issue s commands one-by-one, rather than
80721         using \| in one s command.
80722
80723 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80724
80725         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80726         input error, instead of returning NULL the next time we are called
80727         (and therefore losing track of errno).
80728
80729 2003-09-16  Bruno Haible  <bruno@clisp.org>
80730
80731         * gnulib-tool (func_create_testdir): Warn about duplicated
80732         dependencies.
80733
80734 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80735
80736         * modules/argmatch, modules/fatal, modules/obstack,
80737         modules/xalloc, modules/xgethostname: Sort dependencies by
80738         importance, not alphabetically.
80739
80740 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80741
80742         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80743         fails, so that the caller gets the proper errno.
80744
80745         * lib/readutmp.c (read_utmp): Likewise.
80746         Check for fstat error.  Close stream and free storage
80747         when failing.
80748
80749 2003-09-14  Karl Berry  <karl@gnu.org>
80750
80751         * config/srclist.txt (strdup.c): disable for c89 changes.
80752
80753 2003-09-14  Jim Meyering  <jim@meyering.net>
80754
80755         * lib/getloadavg.c: Correct cpp indentation.
80756         * lib/strdup.c: Likewise.
80757         * lib/vasnprintf.c: Likewise.
80758
80759 2003-09-14  Bruno Haible  <bruno@clisp.org>
80760
80761         * modules/fwriteerror: New file.
80762         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80763
80764 2003-09-14  Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/fwriteerror.h: New file.
80767         * lib/fwriteerror.c: New file.
80768
80769 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80770
80771         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80772         modules/xgethostname, modules/xalloc: Depend on exit.
80773
80774 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80775
80776         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80777
80778         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80779         and AC_MINIX, too, so that their extensions are available.
80780
80781         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80782         This macro has been superseded by gl_BACKUPFILE.
80783
80784         More patches to assume C89 or better.
80785
80786         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80787
80788         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80789         unconditionally.
80790         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80791         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80792         Include <string.h>, <stdlib.h> unconditionally.
80793         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80794         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80795         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80796         headers or for string.h.
80797         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80798         or strtoul.
80799
80800         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80801         headers.
80802         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80803         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80804         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80805         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80806         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80807         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80808         memcpy, memset.
80809         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80810         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80811         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80812         strtol.
80813         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80814         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80816         strtoul.
80817
80818 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80819
80820         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80821         * lib/obstack.c [!defined _LIBC]: Likewise.
80822         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80823         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80824         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80825
80826         More changes to assume C89 or better.
80827
80828         * lib/error.c (error_tail): Assume vprintf.
80829
80830         * lib/argmatch.c (getenv): Remove decl.
80831         * lib/progreloc.c (get_full_program_name): Define via prototype.
80832         * lib/setenv.c (clearenv): Likewise.
80833         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80834         needed.
80835         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80836         (malloc, memcpy): Remove decls.
80837         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80838         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80839         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80840         (memcpy): Remove macro.
80841         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80842         (__P): Remove.  All uses removed.
80843         (PTR): Remove.  All uses changed to void *.
80844         (CHAR_BIT, NULL): Remove.
80845         (spaces, zeros, memset_space, memset_zero)
80846         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80847         Remove.
80848         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80849         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80850         Define with prototype.
80851         Remove now-unnecessary prototype decl.
80852         (extra_args_spec): Assume ANSI C.  All uses changed.
80853         (extra_args_spec_iso): Remove.
80854         (my_strftime, emacs_strftimeu): Define via prototype.
80855         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80856         unconditionally.
80857         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80858         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80859         (strtoul, strtol): Remove decls.
80860         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80861         LONG_MAX): Remove.
80862         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80863         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80864         (LOCALE_PARAM_PROTO): New macro.
80865         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80866         (INTERNAL (strtol), strtol): Define with a prototype.
80867         (PARAMS): Remove.  All uses removed.
80868         * lib/tempname.c: Include <string.h> unconditionally.
80869         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80870         * lib/xgethostname.c (main): Define with a prototype.
80871         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80872         Include <stdlib.h> unconditionally.
80873         (calloc, malloc, realloc, free): Remove decls.
80874         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80875         Include <stdlib.h> unconditionally.  Sort include file names.
80876         (strtod): Remove.
80877         (xstrtod): Define with a prototype.
80878         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80879         (strtol, strtoul): Remove decls.
80880
80881 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80882
80883         More patches to assume C89 or better.
80884         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80885         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80886         string.h, memchr, STDC_HEADERS.
80887
80888 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80889
80890         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80891         Include <stdlib.h>, <string.h> unconditionally.
80892         Remove now-unnecessary cast to char *.
80893         * lib/strnlen.c: Include <string.h> unconditionally.
80894         * lib/yesno.c (yesno): Define with a prototype.
80895
80896 2003-09-11  Bruno Haible  <bruno@clisp.org>
80897
80898         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80899
80900 2003-09-10  Jim Meyering  <jim@meyering.net>
80901
80902         * lib/error.c: Correct indentation of cpp directives.
80903
80904 2003-09-10  Bruno Haible  <bruno@clisp.org>
80905
80906         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80907         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80908         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80909         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80910         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80911         <stdlib.h> and <string.h> checks.
80912         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80913         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80914
80915 2003-09-10  Bruno Haible  <bruno@clisp.org>
80916
80917         * lib/strcspn.c: Include <string.h> unconditionally.
80918         * lib/strpbrk.c: Include <string.h> unconditionally.
80919         * lib/strstr.c: Include <string.h> unconditionally.
80920         * lib/unicodeio.c: Include <string.h> unconditionally.
80921         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80922         * lib/unsetenv.c: Likewise.
80923         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80924         * lib/yesno.c: Include <stdlib.h> unconditionally.
80925         (rpmatch): Add prototype.
80926
80927 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80928
80929         More patches to assume C89 or better.
80930         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80931         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80932         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80933         or for string.h.
80934         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80935         stdlib.h.
80936         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80937         C headers.
80938         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80939         string.h.
80940         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80941         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80942         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80943         or for string.h.
80944         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80945         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80946         C headers.
80947         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80948         memcpy.
80949         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80950         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80951         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80952         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80953         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80954         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80955         string.h, free.
80956         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80957         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80958         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80959         C headers, or for string.h.
80960         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80961         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80962         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80963         headers, memory.h, stdlib.h, string.h, strings.h.
80964         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80965         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80966         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80967         strchr.
80968         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80969         headers, memory.h, string.h.
80970         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80971         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80972         free.
80973         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80974         headers.
80975         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80976         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80977         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80978         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80979         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80980
80981 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80982
80983         More K&R removal.
80984
80985         * lib/acosl.c (main): Use a prototype.
80986         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80987         tanl.c: Likewise.
80988
80989         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80990
80991         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80992         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80993         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80994         with a prototype.
80995         * lib/getopt.c (const): Remove macro.
80996         Include <string.h> unconditionally.
80997         (my_index): Remove; all uses changed to strchr.
80998         (strlen): Remove decl.
80999         (exchange): Remove forward decl; no longer needed.
81000         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81001         Define with prototype.
81002         * lib/getopt1.c (const): Remove macro.
81003         (getopt_long, getopt_long_only, main): Define with prototype.
81004
81005         * lib/getugroups.c: Include <string.h> unconditionally.
81006
81007         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81008         (getusershell, setusershell, endusershell, readname, main):
81009         Define with prototypes.
81010
81011         * lib/group-member.c: Include group-member.h first.
81012         Include <stdlib.h> unconditionally.
81013
81014         * lib/hard-locale.c: Include hard-locale.h first.
81015         Include <stdlib.h>, <string.h> unconditionally.
81016
81017         * lib/hash.c (free, malloc): Remove decls.
81018         Include <stdlib.h> unconditionally.
81019
81020         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81021         (getenv): Do not declare.
81022
81023         * lib/idcache.c: Include <string.h> unconditionally.
81024
81025         * lib/long-options.c: Include long-options.h first, to test interface.
81026         Include <stdlib.h> unconditionally.
81027
81028         * lib/makepath.c: Include makepath.h first, to test interface.
81029         Include <stdlib.h> and <string.h> unconditionally.
81030
81031         * lib/linebuffer.c: Include <stdlib.h>.
81032         (free): Remove decl.
81033
81034         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81035         stddef.h. rpl_malloc returns void *, not char *.
81036         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81037         prototype.
81038
81039         * lib/md5.h: Include <limits.h> unconditionally.
81040         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81041         (__P): Remove; all uses removed.
81042         * lib/md5.c: Include "md5.h" first.
81043         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81044         md5_buffer, md5_process_bytes, md5_process_block):
81045         Define with prototypes.
81046         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81047         * lib/sha.c: Include "sha.h" first.
81048         Include <stdlib.h>, <string.h> unconditionally.
81049
81050         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81051         * lib/memcmp.c (__ptr_t): Likewise.
81052         * lib/memrchr.c (__ptr_t): Likewise.
81053         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81054         Include <string.h> unconditionally.
81055         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81056         * lib/memchr.c: Include <stdlib.h> unconditionally.
81057         * lib/memchr.c (LONG_MAX): Remove.
81058         * lib/memrchr.c (LONG_MAX): Likewise.
81059         * lib/memchr.c (__memchr): Define via a prototype.
81060         * lib/memrchr.c (__memrchr): Likewise.
81061         * lib/memcmp.c (__P): Remove, and remove all uses.
81062         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81063         Remove forward decls; no longer needed.
81064         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81065         Use types required by C89 in prototype.
81066
81067         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81068         * lib/savedir.c: Likewise.
81069         * lib/mkdir.c (free): Remove decl.
81070         * lib/rmdir.c (rmdir): Define with a prototype.
81071         * lib/savedir.c: Include savedir.h first, to test interface.
81072
81073         * lib/mktime.c (STDC_HEADERS): Remove.
81074         Include <stdlib.h>, <string.h> unconditionally.
81075
81076         * lib/modechange.c: Include <stdlib.h> unconditionally.
81077         (malloc): Remove decl.
81078
81079         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81080         (free): Remove decl.
81081
81082         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81083         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81084         (This type really should be intptr_t, but that's a C99ism.)
81085         (_obstack_memcpy): Remove: all uses changed to memcpy.
81086         Include <string.h> unconditionally.
81087         (struct obstack): Assume __STDC__ for types of members
81088         chunkfun, freefun, extra_arg.
81089         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81090         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81091         obstack_begin, obstack_specify_allocation,
81092         obstack_specify_allocation_with_arg, obstack_chunkfun,
81093         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81094         Remove unprototyped decls and the macros that use them.
81095         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81096         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81097         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81098         (defined __STDC__ && __STDC__)]:
81099         Remove nonprototyped code.
81100         Include <stdlib.h> unconditionally.
81101         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81102         _obstack_allocated_p, _obstack_free, obstack_free,
81103         _obstack_memory_used, print_and_abort):
81104         Define using prototypes.
81105         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81106         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81107         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81108         obstack_next_free, obstack_object_size, obstack_room) [0]:
81109         Remove unused, unprototyped code.
81110
81111         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81112
81113         * lib/physmem.c (physmem_total, physmem_available, main): Define
81114         with prototypes.
81115
81116         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81117         (main): Define with a prototype.
81118
81119         * lib/posixver.c (getenv): Remove decl.
81120
81121         * lib/putenv.c (malloc): Returns void *, not char *.
81122         Include <string.h> unconditionally.
81123         (strchr, memcpy, NULL): Do not define.
81124
81125         * lib/readtokens.c: Include readtokens.h first, to test interface.
81126         Include <stdlib.h>, <string.h> unconditionally.
81127         (init_tokenbuffer): Define with a prototype.
81128
81129         * lib/regex.c (PARAMS): Remove.  All uses removed.
81130         All uses of _RE_ARGS removed, too.
81131         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81132         unconditionally.
81133         (bzero): Assume memset exists.
81134         (memcmp, memcpy, NULL): Remove.
81135         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81136         char, or assignments to local vars of type signed char.
81137         (init_syntax_once, PREFIX(extract_number_and_incr),
81138         PREFIX(print_partial_compiled_pattern),
81139         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81140         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81141         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81142         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81143         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81144         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81145         wcs_compile_range, byte_compile_range, truncate_wchar,
81146         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81147         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81148         count_mbs_length, wcs_re_match_2_internal,
81149         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81150         PREFIX(alt_match_null_string_p),
81151         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81152         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81153         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81154         now-unnecessary declaration, if any.
81155         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81156         regcomp, regexec):
81157         Remove now-unnecessary casts among pointer types.
81158         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81159
81160         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81161         (free): Remove decl.
81162
81163         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81164
81165         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81166         (free): Remove decl.
81167
81168         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81169         * lib/xgetcwd.c: Likewise.
81170
81171         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81172         (free): Remove decl.
81173
81174         * lib/strchrnul.c (strchrnul): Define with a prototype.
81175         Fix bug: c_in was not converted to char before searching.
81176
81177         The following changes are not K&R related:
81178
81179         * lib/group-member.h: Include <sys/types.h>, so that this file is
81180         self-contained.
81181         * lib/makepath.h: Likewise.
81182
81183         * lib/getusershell.c (readname, default_index, line_size, readname):
81184         Use size_t, not int, for sizes.
81185         (readname): If the size overflows, report an error instead of
81186         looping forever.
81187
81188 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81189
81190         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81191         libc.
81192
81193 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81194
81195         * README: New section: portability guidelines.
81196
81197 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81198
81199         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81200         C89 spec.
81201
81202 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81203
81204         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81205
81206 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81207
81208         Assume C89 or better; remove K&R cruft.
81209         A few of these changes were first proposed by Derek Robert Price
81210         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81211
81212         * lib/addext.c: Include <string.h> unconditionally.
81213         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81214         Don't declare getenv or malloc.
81215
81216         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81217         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81218         (NULL): Remove.
81219         (find_stack_direction, alloca): Use prototypes.
81220
81221         * lib/atexit.c (atexit): Define using a prototype.
81222
81223         * lib/basename.c, dirname.c, stripslash.c:
81224         Include <string.h> unconditionally.
81225
81226         * lib/bcopy.c: Include <stddef.h>.
81227         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81228
81229         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81230
81231         * lib/error.h (error, error_at_line, error_print_progname)
81232         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81233         * lib/error.c: Include error.h first, to check interface.
81234         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81235         (VA_START): Remove; all uses changeed to va_start.
81236         (exit, strerror): Remove decls.
81237         (error_print_progname): Prototype uncondionally.
81238         Don't include <errno.h>; no longer needed.
81239         (private_strerror): Remove.
81240         (error_tail): Always define.
81241         (error, error_at_line): Assume C89 or better; always use prototypes.
81242         * lib/fatal.c: Include "fatal.h" first, to test interface.
81243         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81244         (VA_START): Remove; all uses changed to va_start.
81245         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81246         this case.
81247         (exit): Remove decl.
81248         (fatal): Prototype unconditionally.  Assume va_start works.
81249         Abort at end, to pacify gcc.
81250
81251         * lib/euidaccess.c (main): Define with a prototype.
81252
81253         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81254
81255         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81256
81257         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81258         prototypes.
81259         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81260         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81261         (getenv): Remove decl.
81262         (fnmatch): Define using a prototype.
81263         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81264         (FCT): Define using a prototype.
81265
81266         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81267
81268         * lib/gethostname.c: Include <stddef.h>.
81269         (gethostname): Define with prototype.  Length is size_t, not int.
81270
81271 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81272
81273         Assume C89 or better; remove K&R cruft.
81274         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81275         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81276         string.h, getenv, malloc.
81277         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81278         headers.
81279         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81280         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81281         do not check for strerror.
81282         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81283         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81284         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81285         do not check for doprnt or vprintf.
81286         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81287         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81288
81289 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81290
81291         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81292         getversion.c should have been removed then, but was accidentally
81293         preserved.
81294
81295         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81296         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81297
81298 2003-09-08  Karl Berry  <karl@gnu.org>
81299
81300         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81301                 config, forget about prep.
81302
81303         * config/depcomp, missing: update from automake.
81304
81305 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81306
81307         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81308         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81309
81310 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81311
81312         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81313         copy_tm_result.  Bug reported by Simon Josefsson in
81314         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81315
81316 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81317
81318         * m4/time_r.m4: New file.
81319         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81320         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81321         is. Check for timegm declaration.
81322         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81323         Do not check for gmtime_r.
81324         Replace mktime if __mktime_internal does not exist and if mktime
81325         hasn't been replaced already.
81326
81327 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81328
81329         * lib/time_r.c, lib/time_r.h: New files.
81330
81331         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81332         __localtime_r.
81333         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81334         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81335
81336         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81337         __gmtime_r.
81338         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81339         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81340         Include <time_r.h>.
81341
81342         * lib/timegm.c: Switch to glibc implementation, with the following
81343         changes:
81344         [defined HAVE_CONFIG_H]: Include <config.h>.
81345         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81346         (__mktime_internal) [!defined _LIBC]: New decl.
81347         (__gmtime_r) [!defined _LIBC]: New macro and function.
81348         (timegm): Use a prototype, since gnulib assumes C89.
81349         Do not bother declaring tmp to be const, as it's not really usefu.
81350         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81351         (timegm): Declare only if HAVE_DECL_TIMEGM.
81352
81353 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81354
81355         * MODULES.html.sh (func_all_modules): Add time_r.
81356         * modules/time_r: New file.
81357         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81358         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81359
81360 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81361
81362         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81363         Bug reported by Lute Kamstra in
81364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81365
81366         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81367         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81368         course with correspondingly smaller numbers for tomorrow and
81369         yesterday.  From Tadayoshi Funaba.  Originally installed into
81370         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81371         coreutils merge?).
81372
81373 2003-08-31  Simon Josefsson  <jas@extundo.com>
81374
81375         * modules/timegm: New file.
81376         * MODULES.html.sh (func_all_modules): Add timegm.
81377
81378 2003-08-31  Simon Josefsson  <jas@extundo.com>
81379
81380         * m4/timegm.m4: New file.
81381
81382 2003-08-31  Simon Josefsson  <jas@extundo.com>
81383
81384         * lib/timegm.h: New file.
81385         * lib/timegm.c: New file.  Based on
81386         wget-1.8.2/src/http.c:mktime_from_utc.
81387
81388 2003-08-31  Karl Berry  <karl@gnu.org>
81389
81390         * lib/argp.h: update from libc.
81391
81392 2003-08-28  Bruno Haible  <bruno@clisp.org>
81393
81394         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81395         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81396         followed by '#define fnmatch fnmatch_posix' gives an error.
81397
81398 2003-08-28  Bruno Haible  <bruno@clisp.org>
81399
81400         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81401         warning on QNX, which defines O_BINARY to 000000.
81402
81403 2003-08-27  Jim Meyering  <jim@meyering.net>
81404
81405         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81406         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81407         would fail after 32.  Reported by Danny Levinson.  Details here:
81408         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81409
81410 2003-08-24  Bruno Haible  <bruno@clisp.org>
81411
81412         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81413         MSVC7 <stdio.h> is included later.
81414
81415 2003-08-22  Simon Josefsson  <jas@extundo.com>
81416
81417         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81418
81419 2003-08-20  Karl Berry  <karl@gnu.org>
81420
81421         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81422
81423 2003-08-20  Bruno Haible  <bruno@clisp.org>
81424
81425         * modules/progname: New file.
81426         * MODULES.html.sh (func_all_modules): Add progname.
81427
81428 2003-08-20  Bruno Haible  <bruno@clisp.org>
81429
81430         * lib/progname.h: New file, from GNU gettext.
81431         * lib/progname.c: New file, from GNU gettext.
81432         * lib/progreloc.c: New file, from GNU gettext.
81433
81434 2003-08-19  Jim Meyering  <jim@meyering.net>
81435
81436         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81437         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81438
81439 2003-08-19  Bruno Haible  <bruno@clisp.org>
81440
81441         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81442         more.
81443
81444 2003-08-19  Bruno Haible  <bruno@clisp.org>
81445
81446         * lib/xstrdup.c: Assume <string.h> exists.
81447
81448 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81449
81450         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81451         in makefile rules.
81452
81453 2003-08-18  Jim Meyering  <jim@meyering.net>
81454
81455         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81456         * m4/lib-ld.m4: Likewise.
81457
81458 2003-08-18  Jim Meyering  <jim@meyering.net>
81459
81460         * lib/setenv.h: Indent nested cpp directive.
81461         * lib/vasnprintf.c: Remove trailing blanks.
81462
81463 2003-08-17  Simon Josefsson  <jas@extundo.com>
81464
81465         * modules/xstrndup: New file.
81466         * MODULES.html.sh (func_all_modules): Add xstrndup.
81467
81468 2003-08-17  Simon Josefsson  <jas@extundo.com>
81469
81470         * modules/argp: Fix autoconf macro name. Add more dependencies.
81471
81472 2003-08-17  Simon Josefsson  <jas@extundo.com>
81473
81474         * m4/xstrndup.m4: New file.
81475
81476 2003-08-17  Simon Josefsson  <jas@extundo.com>
81477
81478         * m4/argp.m4: New file.
81479
81480 2003-08-17  Simon Josefsson  <jas@extundo.com>
81481             Bruno Haible  <bruno@clisp.org>
81482
81483         * lib/xstrndup.h: New file.
81484         * lib/xstrndup.c: New file.
81485
81486 2003-08-17  Bruno Haible  <bruno@clisp.org>
81487
81488         * modules/strndup (Files, Include): Add lib/strndup.h.
81489
81490 2003-08-17  Bruno Haible  <bruno@clisp.org>
81491
81492         * modules/euidaccess (Files): Add lib/euidaccess.h.
81493
81494 2003-08-17  Bruno Haible  <bruno@clisp.org>
81495
81496         * lib/strndup.h: New file.
81497
81498 2003-08-17  Bruno Haible  <bruno@clisp.org>
81499
81500         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81501         like AC_GNU_SOURCE.
81502         * modules/extensions (configure.ac): Comment out the invocation of
81503         gl_USE_SYSTEM_EXTENSIONS.
81504
81505 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81506
81507         Merges from coreutils, etc.
81508         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81509         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81510         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81511         fixing a typo.
81512         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81513         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81514
81515 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81516
81517         Document merge from coreutils.
81518         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81519         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81520         * modules/utime: Add m4/utimes-null.m4.
81521
81522 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81523
81524         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81525         space, undoing this 2003-08-12 change:
81526         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81527
81528 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81529
81530         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81531         strtoul.c from libc, undoing this 2003-08-12 change:
81532         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81533
81534 2003-08-16  Jim Meyering  <jim@meyering.net>
81535
81536         Merges from coreutils.
81537         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81538         prefix.  Adjust cache variables similarly.  Create 500 rather than
81539         just 300 files, to exercise bug on Darwin6.5, too.
81540         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81541         $missing_dir.
81542         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81543         AM_SYS_POSIX_TERMIOS.
81544         Reported by mkc@mathdogs.com.
81545         Also change use of $am_cv_sys_posix_termios
81546         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81547         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81548         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81549         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81550         in /proc/mounts until it finds one with matching device number.  This
81551         is unnecessary when the FILE argument *is* a mount point.  No stat call
81552         is necessary in that case.  So, disable the statvfs-testing code on
81553         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81554         as RedHat bug# 84846.
81555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81556         to 1MB, so as not to render systems with no stack size limit (e.g.,
81557         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81558         Include <unistd.h>.  On some systems,
81559         it is required for the definition of _SC_PAGESIZE.
81560
81561 2003-08-16  Jim Meyering  <jim@meyering.net>
81562
81563         Merge from coreutils.
81564         * lib/xstrtoimax.c: #else #if -> #elif.
81565         * lib/xstrtoumax.c: Likewise.
81566
81567 2003-08-16  Jim Meyering  <jim@meyering.net>
81568
81569         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81570         * m4/utimes.m4: Removed.
81571         * m4/utimes-null.m4: Renamed from utimes.m4.
81572
81573         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81574         to 1MB, so as not to render systems with no stack size limit (e.g.,
81575         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81576         Include <unistd.h>.  On some systems,
81577         it is required for the definition of _SC_PAGESIZE.
81578
81579 2003-08-16  Jim Meyering  <jim@meyering.net>
81580         and Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         Merges from coreutils, etc.
81583
81584         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81585         using the latest version from cvs.  This avoids problems with #line
81586         directives using a vendor (Sun) compiler.
81587         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81588         Don't set GETGROUPS_LIB here; now it's
81589         done via getgroups.m4's wrapper function.
81590         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81591         rather than just in sh-util/configure.in, so that the
81592         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81593         same.
81594         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81595         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81596         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81597         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81598         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81599         Remove code that is now done by the newly-required macros.
81600         Append $(EXEEXT) to DF_PROG.
81601         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81602         Do not invoke or require the following here,
81603         since prereq.m4 or some gnulib .m4 now does this for us:
81604         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81605         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81606         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81607         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81608         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81609         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81610         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81611         AC_FUNC_OBSTACK.
81612         Do not replace the following functions, as this is now the job
81613         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81614         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81615         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81616         atexit getpass, strdup, getpagesize.
81617         Replace 'raise'.
81618         Do not check for the following functions, as this is now the job
81619         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81620         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81621         setregid.
81622         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81623         Check for sys/sysctl.h.
81624         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81625         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81626         of checking for ssize_t ourselves.
81627
81628         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81629         Require every macro that gnulib/modules/* suggests for us.
81630         (jm_PREREQ_ADDEXT): New macro.
81631         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81632         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81633
81634         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81635         (gl_PHYSMEM): Use it.
81636         Also check for `table' function.
81637         Check for new headers and functions.
81638         Add check for sys/sysmp.h.
81639         With suggestions from Kaveh Ghazi.
81640         Ignore headers that are present but cannot be compiled.  This
81641         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81642         C 5.4.
81643
81644 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81645
81646         Document merge from coreutils.
81647         * modules/userspec: Depend on posixver.
81648         * modules/strftime: Depend on tzset.
81649
81650 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81651
81652         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81653         rather than tab, after '#' in shell-script copyright notices.
81654         Suggested by Bruno Haible.
81655
81656 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81657
81658         * config/srclist-update: Use three spaces, rather than tab, after '#'
81659         in shell-script copyright notices.  Suggested by Bruno Haible.
81660         Remove unnecessary parenthesization in regular expression.
81661
81662 2003-08-15  Jim Meyering  <jim@meyering.net>
81663
81664         Merge from coreutils.
81665         * lib/xgethostname.c: Include <stdlib.h>.
81666         (xghostname): Don't exit for anything other than memory-related
81667         failure; just return NULL.
81668         * lib/userspec.c: Include "posixver.h".
81669         (parse_user_spec): Accept `.' as a separator only
81670         in pre-POSIX-200112 mode.
81671         * lib/strtoimax.c: Use #elif rather than #else #if.
81672         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81673         Remove function, now that we can rely on a working tzset function.
81674         [!_LIBC]: Ensure that the required autoconf test has been run.
81675         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81676         Use underlying_strftime for %r.
81677         * lib/sha.c: Merge in some clean-up and optimization changes from
81678         glibc.
81679         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81680         Ensure that it is a multiple of 64.
81681         Rearrange loop exit tests so as to avoid performing an
81682         additional fread after encountering an error or EOF.
81683         * lib/realloc.c: Update copyright date.
81684
81685 2003-08-15  Jim Meyering  <jim@meyering.net>
81686         and Paul Eggert  <eggert@twinsun.com>
81687
81688         Merge from coreutils.
81689         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81690         member but strut utmpx does not.  Needed for AIX 4.3.3.
81691         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81692
81693 2003-08-15  Jim Meyering  <jim@meyering.net>
81694         and Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         Merges from coreutils, etc.
81697         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81698         Require gl_FUNC_TZSET_CLOBBER.
81699         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81700         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81701         members.
81702
81703 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81704
81705         Help the merge from coreutils.
81706         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81707         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81708         * m4/tzset.m4: Use it too.
81709
81710 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81711
81712         * modules/tzset: New file.
81713
81714 2003-08-14  Jim Meyering  <jim@meyering.net>
81715
81716         Merges from coreutils.
81717         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81718         variable names, rather than @FNMATCH_H@.
81719         * modules/alloca: Likewise for $(ALLOCA_H).
81720
81721         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81722         the three copies of the literal target, `fnmatch.h'.
81723         * modules/alloca (alloca.h): Likewise.
81724
81725 2003-08-14  Jim Meyering  <jim@meyering.net>
81726
81727         Merge from coreutils.
81728         * m4/tzset.m4: New file.
81729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81730         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81731         otherwise, AIX 5.1 systems would end up using the latter.
81732         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81733         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81734         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81735         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81736
81737 2003-08-14  Jim Meyering  <jim@meyering.net>
81738
81739         Merge from coreutils.
81740         * lib/obstack.h: Whitespace changes.
81741         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81742         and xcalloc return values.
81743         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81744         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81745         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81746         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81747         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81748         error from mntctl.
81749         Use mntctl's return value to drive the entry-processing loop, since
81750         we can't rely on the value of the vmt_length member in the last
81751         entry.  On some systems doing so could result in exhausting
81752         virtual memory.  Based in part on a patch from Mike Jetzer.
81753
81754 2003-08-14  Jim Meyering  <jim@meyering.net>
81755         and Paul Eggert  <eggert@twinsun.com>
81756
81757         Merges from coreutils, plus other fixes.
81758         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81759         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81760         for credits and details.  Thanks to Kaveh Ghazi for helping
81761         to keep these files in sync.
81762         (ARRAY_SIZE): Define it.
81763         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81764         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81765         (memcasecmp): Don't assume size_t fits in unsigned int.
81766         Remove casts and duplicate code.
81767         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81768         (memcpy): Remove definition.
81769         Merge in some clean-up and optimization changes from glibc.
81770         [BLOCKSIZE]: Move definition to top of file.
81771         Ensure that it is a multiple of 64.
81772         Rearrange loop exit tests so as to avoid performing an
81773         additional fread after encountering an error or EOF.
81774         * lib/md5.h (md5_uintptr): Define.
81775         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81776         return to the initial working directory.  Preserve errno
81777         for caller.
81778         * lib/idcache.c: Include "xalloc.h".
81779         (xmalloc, xrealloc): Remove decls.
81780         (getuser): Remove casts no longer required in C89.
81781         * lib/human.c: Include stdio.h, for sprintf.
81782         * lib/group-member.c: Include "xalloc.h".
81783         (xmalloc, xrealloc): Remove decls.
81784         (get_group_info): Remove casts no longer required in C89.
81785         * lib/getusershell.c (readname): Remove casts no longer required in
81786         C89.
81787         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81788         * lib/getline.c: Whitespace fix, from coreutils.
81789
81790 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81791
81792         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81793         Check for isascii.
81794
81795         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81796         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81797         Undo previous (whitespace-only) change.
81798
81799 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81800
81801         * lib/exclude.c: Include <ctype.h>
81802         (IN_CTYPE_DOMAIN): New macro.
81803         (is_space): New fn.
81804         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81805         and empty lines.
81806
81807         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81808         Undo previous (whitespace-only) change.
81809
81810 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81811
81812         * config/srclist-update: Change update back to the old behavior,
81813         leaving whitespace alone.  Use one 'sed' command rather than a
81814         pipeline.
81815         (fixlicense): Now a variable, not a function.
81816         (remove_trailing_blanks): Remove.
81817         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81818         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81819         Undo previous (whitespace-only) change.
81820
81821 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81822
81823         Merge from coreutils.
81824         * modules/euidaccess: Add lib_SOURCES, include for new
81825         file euidaccess.h
81826
81827 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81828
81829         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81830         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81831         Normalize leading white space and remove trailing white space.
81832
81833         Merge from coreutils
81834         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81835
81836         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81837         0.12.1.  These files are now being upgraded automatically by
81838         ../config/srclist-update.
81839
81840 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81841
81842         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81843         Normalize leading white space and remove trailing white space.
81844         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81845         notice, as per ../config/srclist-update.
81846
81847         Merge from coreutils.
81848         * lib/euidaccess.h: New file.
81849         * lib/euidaccess.c: Include it.
81850         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81851         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81852         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81853
81854 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81855
81856         * config/srclist-update: Add copyright notice.
81857         (remove_id_lines, remove_trailing_blanks): New constants.
81858         (fixfile): Use them to normalize spacing a bit in copied files.
81859         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81860         Normalize leading white space and remove trailing white space.
81861
81862         * config/texinfo.tex: Sync with texinfo.
81863
81864         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81865         strtoul.c from libc, to merge coreutils whitespace changes.
81866
81867         * config/srclist.txt: Get the following m4 files from gettext:
81868         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81869         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81870         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81871         wint_t.m4.
81872
81873 2003-08-12  Karl Berry  <karl@gnu.org>
81874
81875         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81876         been made.
81877
81878 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81879
81880         * modules/gnu-source, m4/gnu-source.m4:
81881         Remove; we're assuming Autoconf 2.54 or later now.
81882         Suggested by Bruno Haible.
81883         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81884
81885 2003-08-11  Bruno Haible  <bruno@clisp.org>
81886
81887         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81888
81889 2003-08-11  Bruno Haible  <bruno@clisp.org>
81890
81891         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81892         (vasnprintf): Use it instead of wcslen.
81893
81894 2003-08-11  Bruno Haible  <bruno@clisp.org>
81895
81896         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81897         value to ensure that _Bool promotes to int. Use #define for _Bool when
81898         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81899
81900 2003-08-10  Karl Berry  <karl@gnu.org>
81901
81902         * lib/regex.h: update from libc (whitespace fix).
81903
81904 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81905
81906         Merge some files from coreutils.  These changes were
81907         originally made by Jim Meyering.
81908         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81909         many older Unixes require this.
81910         * lib/alloca.c (alloca): Remove cast to argument of free;
81911         no longer needed in C89.
81912         * lib/alloca_.h, regex.h: Fix white space to match
81913         what GNU indent does.
81914
81915 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81916
81917         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81918         apparently Emacs's Unicode mode got confused before my 2003-08-05
81919         checkin.
81920
81921 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81922
81923         * m4/extensions.m4: New file.
81924         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81925         Require gl_USE_SYSTEM_EXTENSIONS.
81926         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81927         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81928
81929 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81930
81931         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81932         * modules/extensions, modules/gnu-source: New files.
81933         * modules/timespec, modules/unlocked-io: Depend on extensions.
81934
81935 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81936
81937         * modules/restrict: New file.
81938         * MODULES.html.sh (func_all_modules): Add restrict.
81939         * modules/regex: Depend on restrict.
81940
81941 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81942
81943         * m4/restrict.m4: New file.
81944         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81945
81946 2003-08-07  Bruno Haible  <bruno@clisp.org>
81947
81948         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81949         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81950
81951 2003-08-07  Bruno Haible  <bruno@clisp.org>
81952
81953         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81954         makes the module 'getndelim2' compatible with the module 'getline'.
81955
81956 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81957
81958         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81959         byte with "\201" to avoid glitches when editing that source file
81960         with multi-gnome-terminal.
81961
81962 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81963
81964         * lib/bumpalloc.h: Remove.
81965
81966 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81967
81968         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81969         * modules/bumpalloc: Remove.
81970
81971 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81972
81973         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81974         GNU coding style.
81975
81976         Merge from coreutils.
81977         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81978         1. From glibc.
81979         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81980         from Karl Berry, implemented by Jim Meyering.
81981         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81982         from Dmitry V. Levin.
81983         Remove anachronistic cast of xrealloc.
81984         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81985         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81986         type. Otherwise, it wouldn't compile with at least /bin/cc on
81987         ymp-cray-unicos9.0.2.X.
81988         Combine two mostly-identical uses of alloca into one.
81989         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81990
81991 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81992
81993         [From Emacs.]
81994
81995         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81996         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81997         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81998         obsolete NLIST_NAME_UNION.
81999         [__GNU__]: Undef BSD and FSCALE.
82000         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82001
82002 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82003
82004         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82005         an enum type, so that it's guaranteed to promote to int.  See:
82006         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82007
82008 2003-08-03  Karl Berry  <karl@gnu.org>
82009
82010         * config/depcomp: update from automake.
82011
82012 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82013
82014         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82015         (strerror): Don't assume that a printable int fits in 14 bytes.
82016
82017 2003-07-31  Bruno Haible  <bruno@clisp.org>
82018
82019         * modules/getpass-gnu: New file.
82020         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82021
82022 2003-07-31  Bruno Haible  <bruno@clisp.org>
82023
82024         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82025
82026 2003-07-24  Karl Berry  <karl@gnu.org>
82027
82028         * config/missing: update from automake.
82029
82030 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82031             Bruno Haible  <bruno@clisp.org>
82032
82033         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82034         * lib/getline.c (getline, getdelim): Likewise.
82035         Remove _GNU_SOURCE define; now it's defined in config.h through
82036         m4/getline.m4.
82037
82038 2003-07-23  Karl Berry  <karl@gnu.org>
82039
82040         * config/config.sub: update from prep.
82041
82042 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82043
82044         * modules/xalloc (Depends-on): Add exitfail.
82045         * modules/xmemcoll: Likewise.
82046
82047 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82048
82049         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82050         over-parenthesization in macros.
82051
82052         Sync with coreutils.
82053
82054         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82055         required by C99.
82056
82057         Use `exit_failure' for xalloc and xmemcoll instead of their own
82058         private exit-failure variables.
82059         * lib/xalloc.h (xalloc_exit_failure): Remove.
82060         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82061         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82062         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82063         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82064         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82065
82066 2003-07-20  Jim Meyering  <jim@meyering.net>
82067
82068         * modules/closeout (Depends-on): Add exitfail.
82069         Suggestion from Bruno Haible.
82070
82071 2003-07-19  Karl Berry  <karl@gnu.org>
82072
82073         * config/config.sub: update from prep.
82074
82075 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82076
82077         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82078         Remove.
82079         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82080         to test that it can stand by itself.  Include "exitfail.h".
82081         Clients should set exit_failure instead.
82082         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82083
82084 2003-07-18  Bruno Haible  <bruno@clisp.org>
82085
82086         * modules/getndelim2: New file.
82087         * modules/getline: Share files with module getndelim2.
82088         * modules/getnline: Depend on getndelim2 instead of sharing files with
82089         it. Add getnline.c to lib_SOURCES.
82090         * MODULES.html.sh (func_all_modules): Add getndelim2.
82091
82092 2003-07-18  Bruno Haible  <bruno@clisp.org>
82093
82094         * m4/getndelim2.m4: New file.
82095         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82096         invoke gl_PREREQ_GETNDELIM2.
82097         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82098         gl_PREREQ_GETNDELIM2.
82099         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82100         gl_GETNDELIM2.
82101
82102 2003-07-18  Bruno Haible  <bruno@clisp.org>
82103
82104         * lib/getndelim2.h: New file.
82105         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82106         getndelim2.h.
82107         (getndelim2): Make non-static. Change return type to ssize_t.
82108         * lib/getline.h: Change argument names.
82109         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82110         * lib/getnline.c: Include getndelim2.h.
82111
82112 2003-07-18  Andreas Schwab  <schwab@suse.de>
82113
82114         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82115
82116 2003-07-17  Karl Berry  <karl@gnu.org>
82117
82118         * config/config.sub: update from prep.
82119
82120 2003-07-17  Bruno Haible  <bruno@clisp.org>
82121
82122         * modules/getnline: New file.
82123         * modules/getline: Add lib/getndelim2.c to source file list.
82124         * MODULES.html.sh (func_all_modules): Add getnline.
82125
82126 2003-07-17  Bruno Haible  <bruno@clisp.org>
82127
82128         * m4/getnline.m4: New file.
82129
82130 2003-07-17  Bruno Haible  <bruno@clisp.org>
82131
82132         * m4/Makefile.am.in: Remove file.
82133         * m4/Makefile.am: Remove file.
82134         * m4/Makefile.in: Remove file.
82135
82136 2003-07-17  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/getnline.h: New file.
82139         * lib/getnline.c: New file.
82140         * lib/getndelim2.c: New file, extracted from getline.c.
82141         (getndelim2): Renamed from getdelim2, with added nmax argument.
82142         * lib/getline.c: Include getndelim2.c.
82143         (getdelim2): Moved out to getndelim2.c.
82144         (getline, getdelim): Update.
82145
82146 2003-07-17  Bruno Haible  <bruno@clisp.org>
82147
82148         * lib/Makefile.am: Remove file.
82149         * lib/Makefile.in: Remove file.
82150
82151 2003-07-17  Bruno Haible  <bruno@clisp.org>
82152
82153         * configure.in: Remove file.
82154         * Makefile.in: Remove file.
82155
82156 2003-07-17  Bruno Haible  <bruno@clisp.org>
82157
82158         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82159
82160 2003-07-16  Karl Berry  <karl@gnu.org>
82161
82162         * config/srclist-update: was running fixlicense twice, which caused
82163                 texinfo.tex to be nullified for some reason.  Simplify,
82164                 $gplsrc is no longer needed as far as I can see?
82165
82166 2003-07-16  Jim Meyering  <jim@meyering.net>
82167
82168         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82169
82170 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82171
82172         * config/srclist.txt: Get the following files from gettext-runtime/intl
82173         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82174         ref-del.sin.  From Bruno Haible.
82175         * config/srclist-update (fixfile): Change grep pattern again, since the
82176         previous fix didn't work (there was another trailing $).  Use
82177         '[$]' to escape the $s.
82178
82179 2003-07-15  Karl Berry  <karl@gnu.org>
82180
82181         * lib/vasnprintf.c: update from gettext.
82182
82183 2003-07-15  Karl Berry  <karl@gnu.org>
82184
82185         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82186         gets expanded when surrounded by '$'.
82187
82188 2003-07-15  Jim Meyering  <jim@meyering.net>
82189
82190         * modules/save-cwd: Don't depend on error.  From Derek Price.
82191
82192 2003-07-15  Jim Meyering  <jim@meyering.net>
82193
82194         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82195
82196 2003-07-14  Simon Josefsson  <jas@extundo.com>
82197
82198         * modules/mempcpy: New file.
82199         * MODULES.html.sh (func_all_modules): Add mempcpy.
82200
82201 2003-07-14  Simon Josefsson  <jas@extundo.com>
82202
82203         * m4/mempcpy.m4: New file.
82204
82205 2003-07-14  Simon Josefsson  <jas@extundo.com>
82206
82207         * lib/mempcpy.h: New file.
82208         * lib/mempcpy.c: New file.
82209
82210 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82211
82212         * modules/getdate, modules/posixtm: Depend on mktime.
82213
82214 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82215
82216         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82217         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82218         unicodeio.c, unicodeio.h, unlocked-io.h:
82219         Switch from LGPL to GPL.
82220
82221 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82222
82223         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82224         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82225         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82226         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82227         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82228         updated automatically by ../config/srclist-update.  This changes
82229         their license from LPGL to GPL.
82230
82231 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82232
82233         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82234         assumed to refer to the root of the most recent stable gettext version.
82235         * config/srclistvars.sh: Add defaults for eggert.
82236         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82237         Match "This program" as well as "The program".  This is needed
82238         for gettext.
82239
82240 2003-07-14  Jim Meyering  <jim@meyering.net>
82241
82242         Don't emit diagnostics.  Let callers do that.
82243         * lib/save-cwd.c: Don't include "error.h".
82244         (save_cwd): Don't call error.  Ensure that errno is valid
82245         when returning nonzero.
82246
82247         * lib/save-cwd.h (restore_cwd): Update prototype.
82248         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82249         Simplify.  Don't call error upon failure.  Let callers do that.
82250         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82251         when auditing is enabled.  But don't bother updating the #if.
82252
82253 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82254
82255         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82256         it breaks C++ compilation.
82257         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82258
82259 2003-07-10  Simon Josefsson  <jas@extundo.com>
82260
82261         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82262
82263 2003-07-10  Jim Meyering  <jim@meyering.net>
82264
82265         * m4/clock_time.m4: Remove trailing blank.
82266         * m4/intmax_t.m4: Likewise.
82267
82268 2003-07-10  Jim Meyering  <jim@meyering.net>
82269
82270         * lib/vasnprintf.c: Remove trailing blanks.
82271         Make cpp indentation consistent.
82272
82273 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82274
82275         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82276         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82277         Switch from LGPL to GPL.
82278
82279 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82280
82281         * config/srclist.txt: Sort sublists.  Add
82282         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82283         that differ from gnulib for one reason or another; we'd like this list
82284         to be smaller but for now let's document what we have.
82285
82286 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82287
82288         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82289         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82290         and sweeter "eval x=$x".
82291         * config/srclist.txt: Get lib/argp* from glibc.
82292
82293 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82294
82295         * lib/mktime.c: Fix some boundary cases and remove need for floating
82296         point.
82297
82298         Issue a compile-time diagnostic if time_t is floating point, or if
82299         two's complement arithmetic is not in effect, or if arithmetic
82300         right shift does not propagate the sign.  These assumptions were
82301         all in the original code but they weren't checked.
82302
82303         (TIME_T_MIDPOINT, verify): New macros.
82304         (__isleap): Remove; it has integer overflow problems.
82305         (leapyear): New function, without those problems.
82306         (ydhms_tm_diff): Remove; splitting into two parts.
82307         (ydhms_diff): New function, containing the arithmetic part of
82308         the old ydhms_tm_diff function.  Issue a compile-time
82309         diagnostic if we are not using C99 integer division.
82310         Avoid casts when possible.
82311         (guess_time_tm): New function, containing the checking part of
82312         the old ydhms_tm_diff function.  Return the new value, rather than
82313         the difference between it and the old.  Accept a new argument T
82314         so that *T specifies the old value.  Check for overflow in the result.
82315
82316         (__mktime_internal): Use a time_t offset, not a long int offset.
82317         This undoes the 2003-06-04 change, which is no longer needed now
82318         that we have better overflow checking.
82319         (localtime_offset): Likewise.
82320
82321         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82322         and long are 64-bit but int is only 32-bit.
82323         (ydhms_diff): Use long int to store year1 and yday1.
82324         Issue a compile-time diagnostic if long int is not wide enough.
82325
82326         (__mktime_internal): Use long int to store adjusted year and yday.
82327         Use plain C rather than preprocessor commands, if that doesn't
82328         affect efficiency.
82329         Check for overflow (and try to repair) after each probe
82330         rather than checking only at the very end.  This avoids some bugs
82331         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82332         does not equal GMT offset at maximum time).
82333         Use integer to check for overflow rather than floating point; this
82334         is more portable to non-IEEE hosts, and is a tad faster.
82335         When we detect that we are oscillating between two values,
82336         don't check whether tm_isdst has the requested value, since
82337         we already know the answer.  When tm_isdst has the wrong value,
82338         use a different heuristic to find the right one, based on the
82339         extreme values actually observed in practice in tz2003a,
82340         rather than the (overly optimistic) "previous 3 calendar quarters".
82341
82342         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82343         "T const" to accommodate glibc style.
82344         (check_result): Use less-confusing report format.  "long" -> "long int.
82345         (main): Likewise.
82346         Don't loop if the iteration overflows time_t.
82347         Allow a negative step in the iteration.
82348
82349 2003-07-06  Karl Berry  <karl@gnu.org>
82350
82351         * config/depcomp: update from automake.
82352         * config/config.sub: update from prep.
82353
82354 2003-07-03  Karl Berry  <karl@gnu.org>
82355
82356         * config/config.guess: update from prep.
82357
82358 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82359
82360         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82361         xreadlink.c now includes it unconditionally.
82362
82363 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82364
82365         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82366         having it depend on HAVE_SYS_TYPES_H.
82367
82368 2003-07-01  Bruno Haible  <bruno@clisp.org>
82369
82370         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82371         <sys/types.h> should be sufficient.
82372         Reported by Paul Eggert.
82373
82374 2003-06-26  Karl Berry  <karl@gnu.org>
82375
82376         * config/depcomp: update from automake.
82377
82378 2003-06-26  Bruno Haible  <bruno@clisp.org>
82379
82380         * modules/human: Depend on module stdbool.
82381
82382 2003-06-25  Bruno Haible  <bruno@clisp.org>
82383
82384         * modules/readlink: New file.
82385         * modules/xreadlink: Depend on it.
82386         * MODULES.html.sh (func_all_modules): Add readlink.
82387
82388 2003-06-25  Bruno Haible  <bruno@clisp.org>
82389
82390         * m4/readlink.m4: New file.
82391
82392 2003-06-25  Bruno Haible  <bruno@clisp.org>
82393
82394         * lib/readlink.c: New file.
82395
82396 2003-06-22  Karl Berry  <karl@gnu.org>
82397
82398         * config/srclist.txt: update mkinstalldirs from automake.
82399         * config/mkinstalldirs: update.
82400
82401 2003-06-22  Bruno Haible  <bruno@clisp.org>
82402
82403         Portability to mingw32.
82404         * m4/ssize_t.m4: New file, from GNU gettext.
82405         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82406         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82407
82408 2003-06-22  Bruno Haible  <bruno@clisp.org>
82409
82410         * modules/safe-read: Add m4/ssize_t.m4.
82411         * modules/xreadlink: Add m4/ssize_t.m4.
82412
82413 2003-06-20  Bruno Haible  <bruno@clisp.org>
82414
82415         Assume C89, so PARAMS isn't needed.
82416         * lib/unicodeio.h (PARAMS): Remove.
82417         * lib/unicodeio.c: Don't use PARAMS.
82418
82419 2003-06-18  Karl Berry  <karl@gnu.org>
82420
82421         * config/config.{guess,sub}: update from prep.
82422
82423 2003-06-18  Jim Meyering  <jim@meyering.net>
82424
82425         Merge changes from coreutils.
82426         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82427         Remove explicit declarations of xmalloc and realloc.
82428         Include xalloc.h.
82429         (read_utmp): Remove anachronistic cast of xmalloc.
82430
82431 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82432
82433         Assume C89, so PARAMS isn't needed.
82434         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82435         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82436         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82437         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82438         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82439         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82440         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82441         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82442         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82443         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82444         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82445         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82446         no longer needed. Anyway, config.h should always be included before any
82447         other file.
82448
82449 2003-06-11  Simon Josefsson  <jas@extundo.com>
82450
82451         * modules/sysexits: New file.
82452         * MODULES.html.sh (func_all_modules): Add sysexits.
82453
82454 2003-06-11  Simon Josefsson  <jas@extundo.com>
82455
82456         * lib/sysexit_.h: New file.
82457
82458 2003-06-11  Derek Price  <derek@ximbiot.com>
82459
82460         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82461         necessary.
82462
82463 2003-06-11  Bruno Haible  <bruno@clisp.org>
82464
82465         * m4/sysexits.m4: New file.
82466
82467 2003-06-10  Simon Josefsson  <jas@extundo.com>
82468
82469         * lib/argp.h: New file, from glibc.
82470         * lib/argp-ba.c: New file, from glibc.
82471         * lib/argp-eexst.c: New file, from glibc.
82472         * lib/argp-fmtstream.c: New file, from glibc.
82473         * lib/argp-fmtstream.h: New file, from glibc.
82474         * lib/argp-fs-xinl.c: New file, from glibc.
82475         * lib/argp-help.c: New file, from glibc.
82476         * lib/argp-namefrob.h: New file, from glibc.
82477         * lib/argp-parse.c: New file, from glibc.
82478         * lib/argp-pv.c: New file, from glibc.
82479         * lib/argp-pvh.c: New file, from glibc.
82480         * lib/argp-xinl.c: New file, from glibc.
82481
82482 2003-06-10  Simon Josefsson  <jas@extundo.com>
82483
82484         * modules/strchrnul: New file.
82485
82486 2003-06-10  Simon Josefsson  <jas@extundo.com>
82487
82488         * modules/argp: New file.
82489
82490 2003-06-10  Simon Josefsson  <jas@extundo.com>
82491
82492         * m4/strchrnul.m4: New file.
82493
82494 2003-06-10  Simon Josefsson  <jas@extundo.com>
82495
82496         * lib/strchrnul.h: New file.
82497         * lib/strchrnul.c: New file.
82498
82499 2003-06-10  Bruno Haible  <bruno@clisp.org>
82500
82501         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82502
82503 2003-06-07  Karl Berry  <karl@gnu.org>
82504
82505         * config/config.{guess,sub}: update from prep.
82506
82507 2003-06-07  Jim Meyering  <jim@meyering.net>
82508
82509         * modules/strtod: Use $(...) notation, not @...@ for
82510         AC_REPLACE'd variables.
82511         * modules/localcharset: Likewise.
82512
82513 2003-06-07  Jim Meyering  <jim@meyering.net>
82514
82515         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82516         in place of my name in the copyright comment.
82517         Remove definition and uses of __P.
82518
82519         From coreutils.
82520         * lib/stat.c: Don't declare xmalloc explicitly.
82521         Instead, include "xalloc.h".
82522         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82523         xrealloc, and xcalloc return values.
82524         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82525         Improve comment.
82526         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82527
82528 2003-06-07  Bruno Haible  <bruno@clisp.org>
82529
82530         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82531         avoid AC_CONFIG_LINKS.
82532         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82533         fnmatch.h, to avoid AC_CONFIG_LINKS.
82534         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82535
82536 2003-06-07  Bruno Haible  <bruno@clisp.org>
82537
82538         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82539         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82540         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82541         directory.
82542         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82543         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82544         directory.
82545
82546 2003-06-06  Jim Meyering  <jim@meyering.net>
82547
82548         Merge from coreutils.
82549         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82550         Consolidate declarations and initializations of *_base* locals.
82551
82552         Merge from coreutils.
82553         This avoids a core dump on systems without GNU putenv,
82554         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82555         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82556         (unsetenv): New static function, from GNU libc.
82557         (rpl_putenv): Use it.
82558
82559         * lib/modechange.c: Remove trailing blanks.
82560
82561         Merge from coreutils.
82562         * lib/fsusage.c: Remove declaration of statfs.
82563         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82564
82565         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82566
82567 2003-06-06  Jim Meyering  <jim@meyering.net>
82568
82569         * lib/stdbool_.h: Renamed from stdbool.h.in.
82570
82571 2003-06-06  Jim Meyering  <jim@meyering.net>
82572             Bruno Haible  <bruno@clisp.org>
82573
82574         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82575         Adjust Makefile.am snippet not to redirect directly to target.
82576         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82577
82578 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82579
82580         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82581         mismatch, look in future quarters as well as past.  This fixes a
82582         bug when processing fall-backwards gaps immediately after a long
82583         period of daylight-saving time.
82584
82585         * lib/mktime.c: Assume freestanding C89 or better.
82586         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82587         (__P): Remove; not used.
82588         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82589         (mktime, not_equal_tm, print_tm, check_result,
82590         main): Use prototypes.  Use const * where appropriate.
82591         (main): Fix typo in testing code that uncovered by above changes.
82592         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82593
82594 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82595
82596         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82597         locale.h, localeconv.  This merges changes from coreutils.
82598
82599         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82600         It can be removed after the next Autoconf is released.
82601         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82602         needed.
82603
82604 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82605
82606         * lib/mktime.c: Fix Debian bug 177940
82607         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82608         (localtime_offset): Now long int, not time_t, because we want it
82609         to be guaranteed to be signed.  All uses changed.
82610         (__mktime_internal): If overflow would occur when adding offset,
82611         don't add it.
82612
82613         Merge 'human' changes from coreutils.  Rewrite to support
82614         locale-specific notations like thousands separators.
82615         * lib/human.c: Simplify authorship notice.
82616         Include human.h immediately after config.h.
82617         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82618         <limits.h>: Do not include, since human.h does.
82619         (SIZE_MAX, UINTMAX_MAX): New macros.
82620         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82621         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82622         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82623         (power_letter): Renamed from suffixes.
82624         (generate_suffix_backwards): Remove.
82625         (adjust_value): Now takes int style (because of human.h changes)
82626         and long double value (for greater precision on some platforms).
82627         (group_number): New function.
82628         (human_readable): Use it.  Use integer options, not enum.
82629         Put the options before the sizes in the arg list.
82630         Support all the new options.
82631         The old human_readable function has been removed;
82632         use inttostr.h instead.
82633         (human_readable, default_block_size, humblock):
82634         Use uintmax_t, not int, for block sizes.
82635         (human_readable_inexact, block_size_types): Remove.
82636         (block_size_opts): New constant.
82637         (human_options): Renamed from human_block_size, with new signature
82638         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82639         * lib/human.h: Add copyright and authorship notice.
82640         Include <limits.h> and <stdbool.h> unconditionally.
82641         (PARAMS): Remove.  All uses removed.
82642         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82643         (enum human_inexact_style): Remove tag; now a nameless enum.
82644         (human_floor, human_ceiling, human_round_to_even): Now have
82645         values 2, 0, 1 rather than -1, 1, 0.
82646         (human_group_digits, human_suppress_point_zero, human_autoscale,
82647         human_base_1024, human_SI, human_B): New constants.
82648         (human_readable_inexact, human_block_size): Remove.
82649         (human_readable): Size args are now uintmax_t, not int.
82650         (human_options): New decl.
82651
82652         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82653         unnecessary now that we assume C89 or better.  This change
82654         imported from coreutils.
82655
82656         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82657         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82658         in the 2003-05-30 sync from glibc.
82659
82660         .h files should stand alone, but we shouldn't include <sys/types.h>
82661         if we can get away with just <stddef.h>.
82662
82663         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82664         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82665         rather than <sys/types.h>, as we merely need size_t.
82666         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82667         to get size_t.
82668         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82669         Include <stdio.h>, to get FILE.
82670         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82671         memcasecmp.h has included <stddef.h> and all we need is size_t.
82672         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82673         our interface, instead of including <sys/types.h>
82674
82675 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82676
82677         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82678         now, as glibc mktime is buggy on non-glibc systems.
82679
82680 2003-06-03  Karl Berry  <karl@gnu.org>
82681
82682         * config/config.sub: update from prep.
82683
82684 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82685
82686         [from coreutils]
82687         Fix some minor time-related bugs with POSIX time arguments.
82688         Some valid time stamps were being rejected (notably -1, and
82689         time stamps before 1900 on 64-bit hosts).  And some invalid
82690         time stamps were being accepted, e.g. September 31.
82691
82692         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82693         that we can return (time_t) -1 successfully.
82694         * lib/posixtm.c: Likewise.
82695         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82696         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82697         (t): Remove static var.
82698         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82699         of static var.  All uses changed.
82700         (year): Do not reject years before 1900; they can occur with
82701         64-bit time_t.
82702         (posix_time_parse): Do not check for out-of-range components;
82703         that is now the caller's responsibility, since our checks were
82704         only approximations.
82705         (posixtime): Use mktime to check for out-of-range components,
82706         since it knows them exactly.
82707         If mktime returns (time_t) -1, check whether an error actually occurred
82708         by invoking localtime on -1.
82709         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82710         posixtime failures better.
82711         Improve the test data (in comments only).
82712
82713 2003-06-02  Karl Berry  <karl@gnu.org>
82714
82715         * config/mkinstalldirs (version): new variable.
82716         (--version): new option.
82717         (usage): improve message.
82718
82719 2003-05-30  Karl Berry  <karl@gnu.org>
82720
82721         * lib/mktime.c: update from libc.
82722
82723 2003-05-30  Bruno Haible  <bruno@clisp.org>
82724
82725         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82726         * config/config.rpath: Upgrade to gettext-0.12.1.
82727
82728 2003-05-30  Bruno Haible  <bruno@clisp.org>
82729
82730         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82731         * m4/nls.m4: New file, from gettext-0.12.1.
82732         * m4/po.m4: New file, from gettext-0.12.1.
82733         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82734
82735 2003-05-30  Bruno Haible  <bruno@clisp.org>
82736
82737         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82738         * lib/localcharset.h: Likewise.
82739         * lib/localcharset.c: Likewise.
82740
82741 2003-05-29  Karl Berry  <karl@gnu.org>
82742
82743         * config/config.rpath: update from gettext.
82744
82745 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82746
82747         Assume the headers required for C89 freestanding compilers.
82748         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82749         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82750         * m4/human.m4 (gl_HUMAN): Likewise.
82751         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82752         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82753         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82754         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82755         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82756         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82757
82758 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82759
82760         Assume the headers required for C89 freestanding compilers.
82761         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82762         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82763         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82764         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82765         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82766         define, since <limits.h> is guaranteed to do that.
82767         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82768         * lib/exclude.c: Include <stdbool.h> unconditionally.
82769         * lib/tempname.c: Include <stddef.h> unconditionally.
82770         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82771         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82772         <stddef.h> does that.
82773         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82774         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82775         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82776         needed.
82777         * lib/xstrtol.c: Likewise.
82778         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82779         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82780
82781         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82782         warnings on some platforms.
82783
82784         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82785         arbitrarily.
82786
82787 2003-05-26  Jim Meyering  <jim@meyering.net>
82788
82789         Merge in a change from coreutils:
82790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82791         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82792         that condition, rather than `-1' which is slightly misleading.
82793         Change the name of the cache variable to have the gl_ prefix.
82794         Prompted by a patch from Richard Dawe for DJGPP.
82795
82796 2003-05-24  Karl Berry  <karl@gnu.org>
82797
82798         * config/config.guess: update from prep.
82799
82800 2003-05-22  Karl Berry  <karl@gnu.org>
82801
82802         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82803
82804 2003-05-20  Karl Berry  <karl@gnu.org>
82805
82806         * config/config.guess: update from prep.
82807
82808 2003-05-18  Karl Berry  <karl@gnu.org>
82809
82810         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82811         might actually be set by the user.
82812
82813         * config/depcomp, install-sh, mdate-sh: update from automake.
82814
82815 2003-05-17  Bruno Haible  <bruno@clisp.org>
82816
82817         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82818         invalid expansion for AC_EGREP_CPP.
82819         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82820         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82821         Suggested by Akim Demaille <akim@epita.fr> in
82822         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82823
82824 2003-05-12  Jim Meyering  <jim@meyering.net>
82825
82826         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82827         the space-padded-by-default conversion specifiers, %e, %k, %l.
82828
82829 2003-05-12  Bruno Haible  <bruno@clisp.org>
82830
82831         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82832         the string is longer than 4 KB.
82833
82834 2003-05-11  Karl Berry  <karl@gnu.org>
82835
82836         * config/config.{guess,sub}: update from prep.
82837
82838 2003-05-09  Bruno Haible  <bruno@clisp.org>
82839
82840         * modules/error: Add m4/strerror_r.m4 to file list.
82841
82842 2003-05-03  Bruno Haible  <bruno@clisp.org>
82843
82844         Upgrade to Unicode-4.0.
82845         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82846         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82847         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82848         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82849         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82850         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82851         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82852         Change width of U+E0100..U+E01EF from 1 to 0.
82853
82854 2003-04-25  Jim Meyering  <jim@meyering.net>
82855
82856         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82857         of type size_t, not int.
82858
82859 2003-04-25  Bruno Haible  <bruno@clisp.org>
82860
82861         * lib/copy-file.c: Include <stddef.h>, for size_t.
82862
82863 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82864
82865         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82866         code which expansion is under static control.  Patch imported from
82867         Akim Demaille's patch to Bison; see
82868         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82869
82870 2003-04-14  Bruno Haible  <bruno@clisp.org>
82871
82872         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82873
82874 2003-04-11  Jim Meyering  <jim@meyering.net>
82875
82876         Merge changes from Coreutils.
82877
82878         2003-03-22  Jim Meyering  <jim@meyering.net>
82879
82880         * lib/strftime.c (widen): Cast alloca return value to proper type.
82881
82882         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82883
82884         From GNU libc.
82885         * lib/strftime.c (my_strftime): Handle very large width
82886         specifications for numeric values correctly.  Improve checks for
82887         overflow.
82888
82889         2003-01-19  Jim Meyering  <jim@meyering.net>
82890
82891         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82892         definitions.
82893         (nl_get_alt_digit) [! defined my_strftime]: Define.
82894         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82895         _nl_get_alt_digit and _nl_get_walt_digit.
82896
82897         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82898         libc. These changes have no effect outside of _LIBC.
82899
82900 2003-04-10  Bruno Haible  <bruno@clisp.org>
82901
82902         * modules/findprog: New file.
82903         * MODULES.html.sh (func_all_modules): Add it.
82904
82905 2003-04-10  Bruno Haible  <bruno@clisp.org>
82906
82907         * m4/findprog.m4: New file.
82908         * m4/eaccess.m4: New file.
82909
82910 2003-04-10  Bruno Haible  <bruno@clisp.org>
82911
82912         * lib/findprog.h: New file, from GNU gettext.
82913         * lib/findprog.c: New file, from GNU gettext.
82914
82915 2003-04-05  Jim Meyering  <jim@meyering.net>
82916
82917         Merge changes from Coreutils.
82918
82919         * lib/exclude.h (PARAMS): Remove definition and uses.
82920         * lib/exclude.c: Remove uses of `PARAMS'.
82921
82922         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82923         Add test-cases for DOS filenames. Declare program_name.
82924         (main): Set up program_name.  Patch by Rich Dawe.
82925
82926         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82927         error from mntctl.
82928         Use mntctl's return value to drive the entry-processing loop, since
82929         we can't rely on the value of the vmt_length member in the last
82930         entry.  On some systems doing so could result in exhausting
82931         virtual memory.  Based in part on a patch from Mike Jetzer.
82932
82933 2003-04-04  Bruno Haible  <bruno@clisp.org>
82934
82935         * modules/linebreak: New file.
82936         * MODULES.html.sh (func_all_modules): Add it.
82937
82938 2003-04-04  Bruno Haible  <bruno@clisp.org>
82939
82940         * m4/linebreak.m4: New file.
82941
82942 2003-04-04  Bruno Haible  <bruno@clisp.org>
82943
82944         * lib/linebreak.h: New file, from GNU gettext.
82945         * lib/linebreak.c: New file, from GNU gettext with slight
82946         modifications.
82947         * lib/lbrkprop.h: New file, from GNU gettext.
82948
82949 2003-04-03  Bruno Haible  <bruno@clisp.org>
82950
82951         * modules/utf8-ucs4: New file.
82952         * modules/utf16-ucs4: New file.
82953         * modules/ucs4-utf8: New file.
82954         * modules/ucs4-utf16: New file.
82955         * MODULES.html.sh (func_all_modules): Add them.
82956
82957 2003-04-03  Bruno Haible  <bruno@clisp.org>
82958
82959         * m4/utf-ucs4.m4: New file.
82960         * m4/ucs4-utf.m4: New file.
82961
82962 2003-04-03  Bruno Haible  <bruno@clisp.org>
82963
82964         * lib/utf8-ucs4.h: New file, from GNU gettext.
82965         * lib/utf16-ucs4.h: New file, from GNU gettext.
82966         * lib/ucs4-utf8.h: New file, from GNU gettext.
82967         * lib/ucs4-utf16.h: New file, from GNU gettext.
82968
82969 2003-04-02  Bruno Haible  <bruno@clisp.org>
82970
82971         * modules/binary-io: New file.
82972         * MODULES.html.sh (func_all_modules): Add it.
82973
82974 2003-04-02  Bruno Haible  <bruno@clisp.org>
82975
82976         * lib/binary-io.h: New file, from GNU gettext.
82977
82978 2003-04-01  Bruno Haible  <bruno@clisp.org>
82979
82980         * modules/pathname: New file.
82981         * MODULES.html.sh (func_all_modules): Add it.
82982
82983 2003-04-01  Bruno Haible  <bruno@clisp.org>
82984
82985         * lib/pathname.h: New file, from GNU gettext.
82986         * lib/concatpath.c: New file, from GNU gettext.
82987
82988 2003-03-30  Bruno Haible  <bruno@clisp.org>
82989
82990         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82991
82992 2003-03-30  Bruno Haible  <bruno@clisp.org>
82993
82994         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82995         function chown() doesn't exist.
82996
82997 2003-03-28  Bruno Haible  <bruno@clisp.org>
82998
82999         * modules/copy-file: New file.
83000         * MODULES.html.sh (func_all_modules): Add it.
83001
83002 2003-03-28  Bruno Haible  <bruno@clisp.org>
83003
83004         * m4/copy-file.m4: New file.
83005
83006 2003-03-28  Bruno Haible  <bruno@clisp.org>
83007
83008         * lib/copy-file.h: New file, from GNU gettext.
83009         * lib/copy-file.c: New file, from GNU gettext.
83010
83011 2003-03-18  Jim Meyering  <jim@meyering.net>
83012
83013         * lib/quote.c (quote_n): Fix typo in comment.
83014
83015 2003-03-18  Bruno Haible  <bruno@clisp.org>
83016
83017         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83018         checking.
83019         * m4/onceonly_2_57.m4: Likewise.
83020
83021 2003-03-17  Bruno Haible  <bruno@clisp.org>
83022
83023         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83024         (m4_quote): Remove macro.
83025         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83026
83027 2003-03-14  Jim Meyering  <jim@meyering.net>
83028
83029         Merge changes from Coreutils.
83030         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83031         to be const, in order to avoid warnings.
83032         (obstack_room): Likewise.
83033         (obstack_empty_p): Likewise.
83034
83035 2003-03-14  Bruno Haible  <bruno@clisp.org>
83036
83037         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83038         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83039
83040 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83041
83042         Merge changes from Bison.
83043         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83044         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83045         when compiling Bison 1.875's `bitset bset = obstack_alloc
83046         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83047         * lib/hash.c: Include <stdbool.h> unconditionally.
83048
83049 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83050
83051         * m4/onceonly.m4 (m4_quote): New macro.
83052         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83053         Quote AC_FOREACH variable-expansions properly.
83054
83055 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83056
83057         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83058
83059 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83060
83061         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83062         Reported by Bruce Becker; see:
83063         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83064
83065 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83066             Bruno Haible  <bruno@clisp.org>
83067
83068         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83069         Reported by John Hughes, see
83070         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83071
83072 2003-02-20  Bruno Haible  <bruno@clisp.org>
83073
83074         * MODULES.html.sh (func_all_modules): Add poll.
83075
83076 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83077
83078         * modules/poll: New file.
83079
83080 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83081
83082         * lib/poll_.h: New file.
83083         * lib/poll.c: New file.
83084
83085 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83086
83087         * m4/poll.m4: New file.
83088
83089 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83090
83091         * modules/mathl: New file.
83092
83093 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83094
83095         * lib/mathl.h: New file.
83096         * lib/acosl.c: New file.
83097         * lib/asinl.c: New file.
83098         * lib/atanl.c: New file.
83099         * lib/ceill.c: New file.
83100         * lib/cosl.c: New file.
83101         * lib/expl.c: New file.
83102         * lib/floorl.c: New file.
83103         * lib/frexpl.c: New file.
83104         * lib/ldexpl.c: New file.
83105         * lib/logl.c: New file.
83106         * lib/sincosl.c: New file.
83107         * lib/sinl.c: New file.
83108         * lib/sqrtl.c: New file.
83109         * lib/tanl.c: New file.
83110         * lib/trigl.c: New file.
83111         * lib/trigl.h: New file.
83112
83113 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83114
83115         * m4/mathl.m4: New file.
83116
83117 2003-02-18  Bruno Haible  <bruno@clisp.org>
83118
83119         * MODULES.html.sh (func_all_modules): Add mathl.
83120
83121 2003-02-17  Bruno Haible  <bruno@clisp.org>
83122
83123         * modules/mkdtemp: New module.
83124         * MODULES.html.sh (func_all_modules): Add it.
83125
83126 2003-02-17  Bruno Haible  <bruno@clisp.org>
83127
83128         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83129
83130 2003-02-17  Bruno Haible  <bruno@clisp.org>
83131
83132         * lib/mkdtemp.h: New file, from GNU gettext.
83133         * lib/mkdtemp.c: New file, from GNU gettext.
83134
83135 2003-02-02  Jim Meyering  <jim@meyering.net>
83136
83137         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83138         e.g. glibc-2.2.93.
83139
83140 2003-01-31  Bruno Haible  <bruno@clisp.org>
83141
83142         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83143         'rpl_rename'.
83144         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83145         'rpl_strnlen'.
83146         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83147         'rpl_strtod'.
83148         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83149         'rpl_utime'.
83150
83151 2003-01-31  Bruno Haible  <bruno@clisp.org>
83152
83153         * lib/rename.c: #undef rename before defining rpl_rename.
83154         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83155
83156 2003-01-30  Bruno Haible  <bruno@clisp.org>
83157
83158         * modules/vasnprintf, modules/vasprintf: New modules.
83159         * MODULES.html.sh (func_all_modules): Add them.
83160
83161 2003-01-30  Bruno Haible  <bruno@clisp.org>
83162
83163         * m4/signed.m4: New file, from GNU gettext.
83164         * m4/longdouble.m4: New file, from GNU gettext.
83165         * m4/wchar_t.m4: New file, from GNU gettext.
83166         * m4/wint_t.m4: New file, from GNU gettext.
83167         * m4/vasnprintf.m4: New file.
83168         * m4/vasprintf.m4: New file.
83169
83170 2003-01-30  Bruno Haible  <bruno@clisp.org>
83171
83172         * lib/printf-args.h: New file, from GNU gettext.
83173         * lib/printf-args.c: New file, from GNU gettext.
83174         * lib/printf-parse.h: New file, from GNU gettext.
83175         * lib/printf-parse.c: New file, from GNU gettext.
83176         * lib/vasnprintf.h: New file, from GNU gettext.
83177         * lib/vasnprintf.c: New file, from GNU gettext.
83178         * lib/asnprintf.c: New file, from GNU gettext.
83179         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83180         * lib/vasprintf.c: New file, from GNU gettext.
83181         * lib/asprintf.c: New file, from GNU gettext.
83182
83183 2003-01-29  Bruno Haible  <bruno@clisp.org>
83184
83185         * modules/stpncpy: New module.
83186         * MODULES.html.sh (func_all_modules): Add it.
83187
83188 2003-01-29  Bruno Haible  <bruno@clisp.org>
83189
83190         * m4/stpncpy.m4: New file.
83191
83192 2003-01-29  Bruno Haible  <bruno@clisp.org>
83193
83194         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83195         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83196
83197 2003-01-28  Bruno Haible  <bruno@clisp.org>
83198
83199         * modules/c-ctype: New module.
83200         * MODULES.html.sh (func_all_modules): Add it.
83201
83202 2003-01-28  Bruno Haible  <bruno@clisp.org>
83203
83204         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83205         Paul Eggert.
83206         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83207         Paul Eggert.
83208
83209 2003-01-27  Bruno Haible  <bruno@clisp.org>
83210
83211         * modules/xsetenv: New module.
83212         * MODULES.html.sh (func_all_modules): Add it.
83213
83214 2003-01-27  Bruno Haible  <bruno@clisp.org>
83215
83216         * lib/xsetenv.h: New file, from GNU gettext.
83217         * lib/xsetenv.c: New file, from GNU gettext.
83218
83219 2003-01-23  Jim Meyering  <jim@meyering.net>
83220
83221         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83222         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83223
83224 2003-01-23  Bruno Haible  <bruno@clisp.org>
83225
83226         * modules/minmax: New module.
83227         * MODULES.html.sh (func_all_modules): Add it.
83228
83229 2003-01-23  Bruno Haible  <bruno@clisp.org>
83230
83231         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83232         Eggert.
83233
83234 2003-01-22  Bruno Haible  <bruno@clisp.org>
83235
83236         * modules/exit: New module.
83237         * MODULES.html.sh (func_all_modules): Add it.
83238
83239 2003-01-22  Bruno Haible  <bruno@clisp.org>
83240
83241         * lib/exit.h: New file, from GNU gettext.
83242
83243 2003-01-19  Bruno Haible  <bruno@clisp.org>
83244
83245         * gnulib-tool: Recognize option --extract-maintainer.
83246         (func_get_maintainer): New function.
83247         * modules/*: Add Maintainer entry.
83248
83249 2003-01-16  Jim Meyering  <jim@meyering.net>
83250
83251         * m4/regex.m4: The `regex' struct is both input and output.
83252         Initialize it before each use.  Patch by Tim Waugh.
83253
83254 2003-01-16  Bruno Haible  <bruno@clisp.org>
83255
83256         * MODULES.html.sh: Add a table of contents. Add the module name as
83257         leftmost column. Add hyperlinks.
83258
83259 2003-01-15  Bruno Haible  <bruno@clisp.org>
83260
83261         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83262
83263 2003-01-15  Bruno Haible  <bruno@clisp.org>
83264
83265         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83266         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83267         suffix.
83268
83269 2003-01-15  Bruno Haible  <bruno@clisp.org>
83270
83271         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83272
83273 2003-01-15  Bruno Haible  <bruno@clisp.org>
83274
83275         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83276         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83277
83278 2003-01-14  Jim Meyering  <jim@meyering.net>
83279
83280         * lib/same.c (same_name): Tweak a comment.
83281
83282 2003-01-14  Bruno Haible  <bruno@clisp.org>
83283
83284         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83285         when a string comparison is sufficient.
83286
83287 2003-01-14  Bruno Haible  <bruno@clisp.org>
83288
83289         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83290         'unsigned int'.
83291
83292 2003-01-14  Bruno Haible  <bruno@clisp.org>
83293
83294         * lib/hash-pjw.c: Add comment about low quality of this function.
83295
83296 2003-01-13  Bruno Haible  <bruno@clisp.org>
83297
83298         * modules/stpcpy: Distribute lib/stpcpy.h.
83299         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83300
83301 2003-01-13  Bruno Haible  <bruno@clisp.org>
83302
83303         * modules/*: Add a description.
83304         * modules/strpbrk: Fix Makefile.am snippet.
83305         * modules/strtoimax: Fix dependencies.
83306         * modules/strtoumax: Likewise.
83307
83308 2003-01-13  Bruno Haible  <bruno@clisp.org>
83309
83310         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83311         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83312         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83313
83314 2003-01-13  Bruno Haible  <bruno@clisp.org>
83315
83316         * gnulib-tool (func_create_testdir): Store config/* files in the main
83317         directory.
83318         * config.rpath: Move to ...
83319         * config/config.rpath: ... here.
83320         * modules/gettext: Contains config/config.rpath, not config.rpath.
83321         * modules/iconv: Likewise.
83322
83323 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83324
83325         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83326         to avoid collisions with libcurses and libreadline.
83327
83328         * m4/getstr.m4: Remove.
83329         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83330
83331 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83332
83333         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83334         to avoid collisions with libcurses and libreadline.
83335
83336         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83337         * lib/getstr.h, getstr.c: Remove.
83338         * lib/getline.c: Include "getline.h", to check interface.
83339         Move body of old getstr.c here: this defines MIN_CHUNK and
83340         declares getdelim2, which is renamed from getstr.
83341         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83342
83343         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83344         All uses changed.
83345         * lib/linebuffer.h: Likewise.
83346         (readline): Remove backward-compatibility macro.
83347
83348 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83349
83350         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83351         to avoid collisions with libcurses and libreadline.
83352         * getstr: Remove.
83353         * MODULES.html.sh: Remove getstr.
83354         * modules/getline: Depend on unlocked-io, not getstr.
83355
83356 2003-01-12  Jim Meyering  <jim@meyering.net>
83357
83358         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83359
83360 2003-01-10  Bruno Haible  <bruno@clisp.org>
83361
83362         * modules/alloca: Change Makefile.am requirements. Simplify Include
83363         requirements. Add lib/alloca_.h to file list.
83364
83365 2003-01-10  Bruno Haible  <bruno@clisp.org>
83366
83367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83368
83369 2003-01-10  Bruno Haible  <bruno@clisp.org>
83370
83371         * lib/alloca_.h: New file.
83372         * lib/getdate.y: Unconditionally include alloca.h.
83373         * lib/makepath.c: Likewise.
83374         * lib/setenv.c: Likewise.
83375         * lib/userspec.c: Likewise.
83376
83377 2003-01-09  Karl Berry  <karl@gnu.org>
83378
83379         * MODULES.html.sh: include `dirname $0` in PATH, to find
83380         gnulib-tool.
83381
83382 2003-01-09  Bruno Haible  <bruno@clisp.org>
83383
83384         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83385         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83386
83387 2003-01-09  Bruno Haible  <bruno@clisp.org>
83388
83389         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83390
83391 2003-01-09  Bruno Haible  <bruno@clisp.org>
83392
83393         * lib/stdbool.h.in: New file.
83394
83395 2003-01-09  Bruno Haible  <bruno@clisp.org>
83396
83397         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83398         * MODULES.html.sh: Likewise.
83399
83400 2003-01-08  Jim Meyering  <jim@meyering.net>
83401
83402         * lib/full-write.c: Undefine and define-away `const' after inclusion
83403         of errno.h, not before.  Suggestion from Bruno Haible.
83404
83405 2003-01-08  Bruno Haible  <bruno@clisp.org>
83406
83407         * modules/full-read: Depend on full-write.
83408
83409 2003-01-08  Bruno Haible  <bruno@clisp.org>
83410
83411         * lib/safe-read.c: Include specification header first, to ensure its
83412         selfcontainedness.
83413         * lib/full-write.c: Likewise.
83414
83415 2003-01-07  Jim Meyering  <jim@meyering.net>
83416
83417         * lib/full-write.c: Rework so that it may serve to define full_read,
83418         too.
83419         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83420
83421 2003-01-07  Bruno Haible  <bruno@clisp.org>
83422
83423         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83424         <inttypes.h>.
83425         * lib/xstrtol.h: Likewise.
83426         * lib/xstrtoimax.c: Likewise.
83427         * lib/xstrtoumax.c: Likewise.
83428         * lib/human.h: Likewise.
83429
83430         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83431         on systems that have <inttypes.h> but not <stdint.h>.
83432
83433 2003-01-07  Bruno Haible  <bruno@clisp.org>
83434
83435         * MODULES.html.sh: Add copyright notice.
83436         (missed_files): Omit CVS directory entries.
83437         (func_module): Make it work with sed-3.02.
83438         * MODULES.txt: Remove file.
83439
83440 2003-01-06  Jim Meyering  <jim@meyering.net>
83441
83442         * lib/version-etc.c: Update year in translatable copyright string.
83443
83444 2003-01-03  Karl Berry  <karl@gnu.org>
83445
83446         * config/config.{guess,sub}: update from prep.
83447
83448 2003-01-02  Karl Berry  <karl@gnu.org>
83449
83450         * doc/COPYING.DOC: belatedly updated to 1.2.
83451
83452 2003-01-01  Karl Berry  <karl@gnu.org>
83453
83454         * gnulib-tool (func_verify_module): report module name $module in
83455         error message, not $1.
83456         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83457         be created, only if it doesn't exist.
83458         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83459
83460 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83461
83462         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83463
83464 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83465
83466         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83467         memcmp if strcoll doesn't work.
83468
83469 2002-12-31  Bruno Haible  <bruno@clisp.org>
83470
83471         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83472         nonempty.
83473
83474 2002-12-31  Bruno Haible  <bruno@clisp.org>
83475
83476         * lib/memcoll.c (STRCOLL): New macro.
83477         (memcoll): Use it.
83478
83479 2002-12-31  Bruno Haible  <bruno@clisp.org>
83480
83481         * lib/localcharset.h: New file.
83482         * lib/localcharset.c: Include it.
83483         * lib/unicodeio.c: Likewise.
83484
83485 2002-12-31  Bruno Haible  <bruno@clisp.org>
83486
83487         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83488         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83489
83490 2002-12-31  Bruno Haible  <bruno@clisp.org>
83491
83492         * lib/getline.h: Include <stddef.h>, for size_t.
83493
83494         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83495         * lib/unicodeio.c: Don't include <stddef.h>.
83496
83497 2002-12-31  Bruno Haible  <bruno@clisp.org>
83498
83499         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83500         HAVE_TM_ZONE.
83501
83502 2002-12-24  Karl Berry  <karl@gnu.org>
83503
83504         * config/config.guess: update from prep.
83505
83506 2002-12-24  Bruno Haible  <bruno@clisp.org>
83507
83508         General infrasructure.
83509         * m4/README: Rewritten.
83510         * m4/onceonly.m4: New file.
83511         * m4/onceonly_2_57.m4: New file.
83512
83513         Module atexit.
83514         * m4/atexit.m4: New file.
83515
83516         Module strtod.
83517         * m4/strtod.m4: New file.
83518
83519         Module strtol.
83520         * m4/strtol.m4: New file.
83521
83522         Module strtoul.
83523         * m4/strtoul.m4: New file.
83524
83525         Module memchr.
83526         * m4/memchr.m4: New file.
83527
83528         Module memcmp.
83529         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83530         (jm_FUNC_MEMCMP): Invoke it.
83531
83532         Module memcpy.
83533         * m4/memcpy.m4: New file.
83534
83535         Module memmove.
83536         * m4/memmove.m4: New file.
83537
83538         Module memset.
83539         * m4/memset.m4: New file.
83540
83541         Module strcspn.
83542         * m4/strcspn.m4: New file.
83543
83544         Module strpbrk.
83545         * m4/strpbrk.m4: New file.
83546
83547         Module strstr.
83548         * m4/strstr.m4: New file.
83549
83550         Module strerror.
83551         * m4/strerror.m4: New file.
83552
83553         Module mktime.
83554         * m4/mktime.m4: Renamed from jm-mktime.m4.
83555         (gl_PREREQ_MKTIME): New macro.
83556         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83557
83558         Module malloc.
83559         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83560         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83561         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83562
83563         Module realloc.
83564         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83565         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83566         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83567
83568         Module strftime.
83569         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83571         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83572         gl_TM_GMTOFF.
83573         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83574
83575         Module xalloc.
83576         * m4/xalloc.m4: New file.
83577
83578         Module alloca.
83579         * m4/alloca.m4: New file.
83580
83581         Module putenv.
83582         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83583         (jm_FUNC_PUTENV): Invoke it.
83584
83585         Module setenv.
83586         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83587         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83588         when invoked twice.
83589         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83590         gt_FUNC_SETENV.
83591
83592         Module memrchr.
83593         * m4/memrchr.m4: New file.
83594
83595         Module stpcpy.
83596         * m4/stpcpy.m4: New file.
83597
83598         Module strcase.
83599         * m4/strcase.m4: New file.
83600
83601         Module strdup.
83602         * m4/strdup.m4: New file.
83603
83604         Module strnlen.
83605         * m4/strnlen.m4: New file.
83606
83607         Module strndup.
83608         * m4/strndup.m4: New file.
83609
83610         Module xstrtod.
83611         * m4/xstrtod.m4: New file.
83612
83613         Module xstrtol.
83614         * m4/xstrtol.m4: New file.
83615
83616         Module getdate.
83617         * m4/getdate.m4: New file.
83618
83619         Module unlocked-io.
83620         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83621         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83622         * m4/jm-glibc-io.m4n: Remove file.
83623
83624         Module long-options.
83625         * m4/long-options.m4: New file.
83626
83627         Module md5.
83628         * m4/md5.m4: New file.
83629
83630         Module sha.
83631         * m4/sha.m4: New file.
83632
83633         Module getstr.
83634         * m4/getstr.m4: New file.
83635
83636         Module getline.
83637         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83638         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83639         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83640         simply getline. Infoke gl_PREREQ_GETLINE.
83641
83642         Module obstack.
83643         * m4/obstack.m4: New file.
83644
83645         Module hash.
83646         * m4/hash.m4: New file.
83647
83648         Module readtokens.
83649         * m4/readtokens.m4: New file.
83650
83651         Module strverscmp.
83652         * m4/strverscmp.m4: New file.
83653
83654         Module stdbool.
83655         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83656         OSF/1.
83657
83658         Module strtoll.
83659         * m4/strtoll.m4: New file.
83660
83661         Module strtoull.
83662         * m4/strtoull.m4: New file.
83663
83664         Module strtoimax.
83665         * m4/strtoimax.m4: New file.
83666
83667         Module strtoumax.
83668         * m4/strtoumax.m4: New file.
83669
83670         Module xstrtoimax.
83671         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83672         jm_AC_PREREQ_XSTRTOIMAX.
83673         Moved the strtol prerequisites to strtol.m4.
83674         Moved the strtoll prerequisites to strtoll.m4.
83675         Moved the strtoimax prerequisites to strtoimax.m4.
83676
83677         Module xstrtoumax.
83678         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83679         jm_AC_PREREQ_XSTRTOUMAX.
83680         Moved the strtoul prerequisites to strtoul.m4.
83681         Moved the strtoull prerequisites to strtoull.m4.
83682         Moved the strtoumax prerequisites to strtoumax.m4.
83683
83684         Module chown.
83685         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83686         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83687
83688         Module dup2.
83689         * m4/dup2.m4: New file.
83690
83691         Module ftruncate.
83692         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83693         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83694
83695         Module getgroups.
83696         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83697         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83698
83699         Module gettimeofday.
83700         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83701         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83702         gl_PREREQ_GETTIMEOFDAY.
83703
83704         Module mkdir.
83705         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83706         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83707
83708         Module mkstemp.
83709         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83710         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83711         jm_AC_TYPE_UINTMAX_T.
83712         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83713
83714         Module stat.
83715         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83716         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83717
83718         Module lstat.
83719         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83720         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83721
83722         Module timespec.
83723         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83724         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83725         * m4/st_mtim.m4: Indentation.
83726
83727         Module nanosleep.
83728         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83729         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83730         gl_PREREQ_NANOSLEEP.
83731
83732         Module regex.
83733         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83734         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83735         (gl_REGEX): New macro.
83736
83737         Module rename.
83738         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83739         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83740
83741         Module rmdir.
83742         * m4/rmdir.m4: New file.
83743
83744         Module utime.
83745         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83746         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83747         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83748
83749         Module dirname.
83750         * m4/dirname.m4: New file.
83751
83752         Module getopt.
83753         * m4/getopt.m4: New file.
83754
83755         Module unistd-safer.
83756         * m4/unistd-safer.m4: New file.
83757
83758         Module fnmatch.
83759         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83760         declaration.
83761         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83762         (gl_FUNC_FNMATCH_POSIX): New macro.
83763         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83764         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83765         simply fnmatch.
83766
83767         Module exclude.
83768         * m4/exclude.m4: New file.
83769
83770         Module human.
83771         * m4/human.m4: New file.
83772
83773         Module acl.
83774         * m4/acl.m4: Nop.
83775
83776         Module backupfile.
83777         * m4/backupfile.m4: New file.
83778         * m4/d-ino.m4: Indentation.
83779
83780         Module fsusage.
83781         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83782         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83783         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83784
83785         Module dirfd.
83786         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83787         requirements.
83788
83789         Module euidaccess.
83790         * m4/euidaccess.m4: New file.
83791
83792         Module file-type.
83793         * m4/file-type.m4: New file.
83794
83795         Module fileblocks.
83796         * m4/fileblocks.m4: New file.
83797
83798         Module filemode.
83799         * m4/filemode.m4: New file.
83800
83801         Module isdir.
83802         * m4/isdir.m4: New file.
83803
83804         Module lchown.
83805         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83806         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83807
83808         Module makepath.
83809         * m4/makepath.m4: New file.
83810
83811         Module modechange.
83812         * m4/modechange.m4: New file.
83813
83814         Module mountlist.
83815         * m4/mountlist.m4: New file.
83816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83817         Indentation.
83818
83819         Module path-concat.
83820         * m4/path-concat.m4: New file.
83821
83822         Module pathmax.
83823         * m4/pathmax.m4: New file.
83824
83825         Module same.
83826         * m4/same.m4: New file.
83827
83828         Module save-cwd.
83829         * m4/save-cwd.m4: New file.
83830
83831         Module savedir.
83832         * m4/savedir.m4: New file.
83833
83834         Module xgetcwd.
83835         * m4/xgetcwd.m4: New file.
83836         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83837
83838         Module xreadlink.
83839         * m4/xreadlink.m4: New file.
83840
83841         Module safe-read.
83842         * m4/safe-read.m4: New file.
83843
83844         Module safe-write.
83845         * m4/safe-write.m4: New file.
83846
83847         Module closeout.
83848         * m4/closeout.m4: New file.
83849
83850         Module stdio-safer.
83851         * m4/stdio-safer.m4: New file.
83852
83853         Module getpass.
83854         * m4/getpass.m4: New file.
83855
83856         Module getugroups.
83857         * m4/getugroups.m4: New file.
83858
83859         Module group-member.
83860         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83861         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83862
83863         Module idcache.
83864         * m4/idcache.m4: New file.
83865
83866         Module userspec.
83867         * m4/userspec.m4: New file.
83868
83869         Module gettime.
83870         * m4/clock_time.m4: New file.
83871         * m4/gettime.m4: New file.
83872
83873         Module settime.
83874         * m4/settime.m4: New file.
83875
83876         Module posixtm.
83877         * m4/posixtm.m4: New file.
83878
83879         Module gethostname.
83880         * m4/gethostname.m4: New file.
83881
83882         Module canon-host.
83883         * m4/canon-host.m4: New file.
83884
83885         Module gettext.
83886         * m4/codeset.m4: New file, from gettext-0.11.5.
83887         * m4/gettext.m4: New file, from gettext-0.11.5.
83888         * m4/glibc21.m4: New file, from gettext-0.11.5.
83889         * m4/iconv.m4: New file, from gettext-0.11.5.
83890         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83891         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83892         * m4/inttypes.m4: New file, from gettext-0.11.5.
83893         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83894         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83895         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83896         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83897         * m4/lib-link.m4: New file, from gettext-0.11.5.
83898         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83899         * m4/progtest.m4: New file, from gettext-0.11.5.
83900         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83901         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83902         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83903
83904         Module localcharset.
83905         * m4/localcharset.m4: New file.
83906
83907         Module hard-locale.
83908         * m4/hard-locale.m4: New file.
83909
83910         Module mbswidth.
83911         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83912         onceonly macros.
83913         * m4/mbrtowc.m4: Add comment.
83914
83915         Module memcasecmp.
83916         * m4/memcasecmp.m4: New file.
83917
83918         Module memcoll.
83919         * m4/memcoll.m4: New file.
83920
83921         Module unicodeio.
83922         * m4/unicodeio.m4: New file.
83923
83924         Module rpmatch.
83925         * m4/rpmatch.m4: New file.
83926
83927         Module yesno.
83928         * m4/yesno.m4: New file.
83929
83930         Module exitfail.
83931         * m4/exitfail.m4: New file.
83932
83933         Module c-stack.
83934         * m4/c-stack.m4 (gl_C_STACK): New macro.
83935         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83936
83937         Module error.
83938         * m4/error.m4 (gl_ERROR): New macro.
83939         (jm_PREREQ_ERROR): Use onceonly macros.
83940
83941         Module fatal.
83942         * m4/fatal.m4: New file.
83943
83944         Module getloadavg.
83945         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83946         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83947
83948         Module getpagesize.
83949         * m4/getpagesize.m4: New file.
83950
83951         Module getusershell.
83952         * m4/getusershell.m4: New file.
83953
83954         Module physmem.
83955         * m4/physmem.m4: New file.
83956
83957         Module posixver.
83958         * m4/posixver.m4: New file.
83959
83960         Module quotearg.
83961         * m4/quotearg.m4: New file.
83962
83963         Module quote.
83964         * m4/quote.m4: New file.
83965
83966         Module readutmp.
83967         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83968
83969         Module sig2str.
83970         * m4/sig2str.m4: New file.
83971
83972         Other.
83973         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83974         ulonglong.m4.
83975         * m4/intmax_t.m4: New file.
83976         * m4/d-type.m4: Indentation.
83977         * m4/jm-macros.m4: Update.
83978         * m4/prereq.m4 (jm_PREREQ): Update.
83979         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83980         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83981         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83982         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83983         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83984         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83985         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83986         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83987         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83988         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83989         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83990         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83991         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83992         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83993         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83994         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83995         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83996         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83997         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83998
83999 2002-12-24  Bruno Haible  <bruno@clisp.org>
84000
84001         * MODULES.txt: Update according to m4/ changes.
84002
84003         Module gettext.
84004         * config.rpath: New file, from gettext-0.11.5.
84005
84006         * modules/*: New module descriptions.
84007         * gnulib-tool: New file.
84008         * MODULES.html.sh: New file.
84009
84010 2002-12-21  Karl Berry  <karl@gnu.org>
84011
84012         * doc/fdl.texi: update to version 1.2.
84013
84014 2002-12-19  Karl Berry  <karl@gnu.org>
84015
84016         * config/config.guess: update from prep.
84017
84018 2002-12-18  Bruno Haible  <bruno@clisp.org>
84019
84020         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84021         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84022
84023 2002-12-17  Bruno Haible  <bruno@clisp.org>
84024
84025         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84026         stdlib.h, string.h.
84027
84028 2002-12-17  Bruno Haible  <bruno@clisp.org>
84029
84030         * lib/canon-host.c (strdup): Remove unused declaration.
84031
84032         * lib/fsusage.c: Include full_read.h.
84033         (get_fs_usage): Use full_read instead of safe_read.
84034
84035         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84036
84037 2002-12-12  Karl Berry  <karl@gnu.org>
84038
84039         * config/config.guess: update from prep.
84040
84041 2002-12-11  Bruno Haible  <bruno@clisp.org>
84042
84043         * m4/setenv.m4: New file, from gettext-0.11.5.
84044
84045 2002-12-11  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84048         not unsetenv().
84049         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84050         modifications:
84051
84052         2002-12-11  Bruno Haible  <bruno@clisp.org>
84053
84054                 * setenv.c (alloca): Fall back to malloc.
84055                 (freea): New macro.
84056                 (setenv): Use freea() to free memory allocated with alloca().
84057
84058         2002-11-13  Bruno Haible  <bruno@clisp.org>
84059
84060                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84061                 function declarations.
84062                 * unsetenv.c (unsetenv): Likewise.
84063
84064         2002-03-04  Bruno Haible  <bruno@clisp.org>
84065
84066                 Portability to AIX 4.3.3.
84067                 * unsetenv.c: New file, extracted from setenv.c.
84068                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84069
84070         2001-12-20  Bruno Haible  <bruno@clisp.org>
84071
84072                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84073                 use malloc instead. For SunOS 4.
84074
84075         2001-12-11  Bruno Haible  <bruno@clisp.org>
84076
84077                 * setenv.c: Declare alloca.
84078                 (compar_fn_t): New typedef.
84079                 (KNOWN_VALUE, STORE_VALUE): Use it.
84080
84081         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84082         setenv.h.
84083
84084 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84085
84086         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84087         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84088         Choose values that are less likely to collide with system fnmatch
84089         options.
84090         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84091         defined (e.g., a pure POSIX system).
84092         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84093         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84094
84095 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84096
84097         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84098         a pain in practice to deal with generated m4 files.  This change
84099         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84100
84101         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84102         and jm-glibc-io.m4, as they are no longer a special case.
84103         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84104         kludge and the auto-generation stuff.  Check only whether the
84105         functions are declared, not whether they exist, since older hosts
84106         that don't declare the functions can't use the optimization anyway.
84107
84108 2002-12-06  Jim Meyering  <jim@meyering.net>
84109
84110         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84111
84112         Merge in changes from libc's misc/error.c, in preparation
84113         for the merge of gnulib's changes back into libc.
84114
84115         * lib/error.c (_): Define only if not already defined.
84116         Move definition to follow all #include directives.
84117         Include unlocked-io.h only if !_LIBC.
84118         [_LIBC]: Include <libio/libioP.h>.
84119         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84120         (fflush): Tweak definition to use INTUSE.
84121         (putc): Define.
84122
84123 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84124
84125         * lib/alloca.c [defined emacs]: Include "lisp.h".
84126         (xalloc_die) [defined emacs]: New macro.
84127         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84128         [! defined emacs]: Include <xalloc.h>.
84129         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84130         (pointer): Typedef to POINTER_TYPE *.
84131         (malloc): Remove decl; we now always use xmalloc.
84132         (alloca): Use old-style definition, since Emacs needs this.
84133         Check for arithmetic overflow when computing combined size.
84134
84135 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84136
84137         Do not generate unlocked-io.h automatically, since it's easier to
84138         maintain it by hand.
84139
84140         * lib/unlocked-io.h: New file, from GNU diffutils,
84141         but with proper copyright notice and attribution.
84142         * lib/gen-uio: Remove.
84143         * lib/Makefile.am: Add copyright notice.
84144         (libfetish_a_SOURCES): Add unlocked-io.h.
84145         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84146         (DISTCLEANFILES, io_functions): Remove macros.
84147         (EXTRA_DIST): Remove gen_uio.
84148         (unlocked-io.h): Remove rule.
84149
84150 2002-12-04  Jim Meyering  <jim@meyering.net>
84151
84152         Reflect the fact that stat.c and lstat.c are no longer generated.
84153         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84154         (DISTCLEANFILES): Likewise.
84155         (EXTRA_DIST): Likewise.
84156         (all_local): Don't depend on stat.c or lstat.c.
84157         (stat.c, lstat.c): Remove rules.
84158         (EXTRA_DIST): Remove xstat.in.
84159
84160         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84161         * lib/stat.c: New file.  Contents mostly from xstat.in.
84162         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84163         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84164
84165         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84166         too.
84167         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84168
84169 2002-12-03  Jim Meyering  <jim@meyering.net>
84170
84171         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84172         but not semantics, to minimize the differences between these two files.
84173         (safe_read): Change comment to mention SAFE_READ_ERROR.
84174
84175         * lib/safe-read.c (IS_EINTR): Define.
84176         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84177
84178 2002-12-02  Jim Meyering  <jim@meyering.net>
84179
84180         * lib/safe-read.c (EINTR): Define.
84181         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84182         (INT_MAX): Provide fallback.
84183         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84184
84185         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84186
84187 2002-12-02  Bruno Haible  <bruno@clisp.org>
84188
84189         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84190         Define, taken from safe-read.c.
84191         (INT_MAX): Provide fallback.
84192         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84193         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84194
84195         * lib/safe-read.c (EINTR): Remove definition.
84196         (safe_read): Don't use EINTR if it is absent.
84197
84198 2002-12-01  Jim Meyering  <jim@meyering.net>
84199
84200         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84201         zero.
84202         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84203
84204 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84205
84206         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84207         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84208         with `if (! (value < limit)) abort ();', for readability.
84209
84210 2002-11-26  Karl Berry  <karl@gnu.org>
84211
84212         * lib/strdup.c: copy from libc again, with jim's ok.
84213         * lib/.cppi-disable: re-add strdup.c
84214
84215 2002-11-25  Karl Berry  <karl@gnu.org>
84216
84217         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84218         instead of "strtol.c".
84219
84220 2002-11-25  Karl Berry  <karl@gnu.org>
84221
84222         * config/install-sh: update from automake for variable quoting, $0 in
84223         error msgs, etc.
84224
84225         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84226         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84227         entry.
84228
84229 2002-11-25  Jim Meyering  <jim@meyering.net>
84230
84231         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84232
84233 2002-11-24  Karl Berry  <karl@gnu.org>
84234
84235         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84236         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84237
84238 2002-11-24  Jim Meyering  <jim@meyering.net>
84239
84240         Update from coreutils:
84241
84242         * lib/mktime.c: Merge in changes from libc.
84243
84244         Avoid a link-time failure on some Linux systems.
84245         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84246         (otherwise).
84247         (__mon_yday): Declare with the STATIC attribute.
84248         (__mktime_internal): Likewise.
84249         Based on a report from Greg Schafer.
84250
84251 2002-11-23  Jim Meyering  <jim@meyering.net>
84252
84253         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84254         Use `unsigned', not `int', as type of index.
84255
84256         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84257
84258         * lib/fsusage.c: Remove unneeded parentheses around operands of
84259         `defined'.
84260
84261 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84262
84263         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84264         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84265         so that we can be included first.
84266         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84267         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84268         No need to include stddef.h or sys/types.h any more.
84269         Surround local include files with "", not "<>".
84270         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84271         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84272         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84273         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84274         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84275         (ISPRINT): Remove; no longer needed now that we assume C89.
84276
84277         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84278         Preserve errno.
84279
84280         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84281         quotearg_char): Use SIZE_MAX rather than
84282         (size_t) -1 when we are talking about "infinity".
84283
84284         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84285
84286 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84287
84288         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84289         hint that one should use `if (! x) abort ();' rather than `assert
84290         (x);', and anyway it's one less thing to worry about configuring.
84291         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84292         hash_rehash, hash_insert): Use abort rather than assert.
84293
84294 2002-11-22  Bruno Haible  <bruno@clisp.org>
84295
84296         * lib/safe-read.h: Assume C89. Add comments.
84297         (safe_read): Change return type to size_t.
84298         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84299         byte counts > SSIZE_MAX correctly.
84300         * lib/safe-write.h: New file.
84301         * lib/safe-write.c: New file.
84302         * lib/full-read.h: New file.
84303         * lib/full-read.c: New file.
84304         * lib/full-write.h: Assume C89. Add comments.
84305         * lib/full-write.c: Include safe-write.h.
84306         (full_write): Rewritten to use safe_write.
84307         Suggested by Jim Meyering and Paul Eggert.
84308
84309 2002-11-21  Jim Meyering  <jim@meyering.net>
84310
84311         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84312
84313         Merge in changes from the coreutils.
84314
84315         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84316         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84317         <stdint.h>.
84318         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84319         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84320         int.  Work more efficiently if X is the same width as uintmax_t.
84321         Do not compare X to -1, to avoid bogus compiler warning.
84322         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84323         Don't assume that f_frsize and f_bsize are the same type.
84324
84325         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84326         warning on FreeBSD.
84327
84328         * lib/makepath.c (make_path): Restore umask *before* creating the final
84329         component.
84330         (make_path): Minor reformatting.
84331
84332         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84333         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84334         HAVE_MALLOC/HAVE_REALLOC.
84335
84336         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84337         dummy ones.  At least on GNU/Linux systems, `auto' means something
84338         else.
84339         From Michael Stone.
84340
84341 2002-11-21  Bruno Haible  <bruno@clisp.org>
84342
84343         Remove case insensitive option matching.
84344         * lib/argmatch.h (argcasematch): Remove declaration.
84345         (ARGCASEMATCH): Remove macro.
84346         (__xargmatch_internal): Remove case_sensitive argument.
84347         (XARGMATCH): Update.
84348         (XARGCASEMATCH): Remove macro.
84349         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84350         case_sensitive argument.
84351         (argcasematch): Remove function.
84352         (__xargmatch_internal): Remove case_sensitive argument.
84353         (main): Use XARGMATCH instead of XARGCASEMATCH.
84354
84355         * lib/xmalloc.c: Change compile-time error message. Add comment about
84356         required autoconf version.
84357
84358 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84359
84360         Merge argmatch cleanups from Bison.  Assume C89.
84361
84362         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84363         Include stdlib.h, for EXIT_FAILURE.
84364         Always include <string.h>, since we assume C89.
84365         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84366         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84367         Include <stddef.h> instead, since it's all we need for size_t.
84368         (PARAMS): Remove.  All uses removed.
84369         (ARRAY_CARDINALITY): Do not bother to #undef.
84370         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84371         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84372         Remove unnecessary parentheses.
84373         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84374         Insert necessary parentheses.
84375         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84376         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84377
84378 2002-11-19  Bruno Haible  <bruno@clisp.org>
84379
84380         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84381         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84382
84383         * lib/mbswidth.h (PARAMS): Remove macro.
84384         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84385         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84386
84387         * lib/gcd.h (PARAMS): Remove macro.
84388         (gcd): Use ANSI C function declarations.
84389         * lib/gcd.c (gcd): Likewise.
84390
84391 2002-11-15  Bruno Haible  <bruno@clisp.org>
84392
84393         * lib/strcspn.c: Include <stddef.h>.
84394         (strcspn): Use ANSI C function declaration. Change return type to
84395         size_t. Use NULL.
84396         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84397         (strpbrk): Use NULL.
84398         * lib/strpbrk.h (PARAMS): Remove macro.
84399         (strpbrk): Use ANSI C function declaration.
84400         * lib/strstr.c: Don't include <sys/types.h>.
84401         * lib/strstr.h (PARAMS): Remove macro.
84402         (strstr): Use ANSI C function declarations.
84403
84404 2002-11-14  Karl Berry  <karl@gnu.org>
84405
84406         * config/mkinstalldirs: `do' on separate line, instead of
84407         `for var; do'.
84408
84409 2002-11-06  Bruno Haible  <bruno@clisp.org>
84410
84411         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84412         * lib/gcd.c (gcd): Likewise.
84413
84414 2002-11-05  Bruno Haible  <bruno@clisp.org>
84415
84416         * lib/gcd.h: New file, from gettext-0.11.5.
84417         * lib/gcd.c: New file, from gettext-0.11.5.
84418
84419 2002-11-05  Bruno Haible  <bruno@clisp.org>
84420
84421         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84422         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84423         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84424         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84425
84426         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84427         <libintl.h>.
84428         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84429         <libintl.h>.
84430
84431         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84432         * lib/human.c: Include gettext.h instead of <libintl.h>.
84433         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84434         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84435         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84436         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84437         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84438         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84439         (textdomain): Remove definition.
84440         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84441
84442         * lib/long-options.c: Remove include of <libintl.h> and definition of
84443         _.
84444         * lib/same.c: Remove include of <libintl.h> and definition of _.
84445
84446 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84447
84448         * lib/config.charset: A few additions for Solaris.
84449
84450 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84451
84452         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84453         * lib/localcharset.c (locale_charset): Declare as extern "C".
84454
84455 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84456
84457         * lib/config.charset: msdos in uk_UA uses CP1125.
84458
84459 2002-11-04  Bruno Haible  <bruno@clisp.org>
84460
84461         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84462         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84463         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84464         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84465         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84466
84467 2002-11-04  Bruno Haible  <bruno@clisp.org>
84468
84469         * lib/localcharset.c (locale_charset): Don't return an empty string.
84470
84471 2002-11-04  Bruno Haible  <bruno@clisp.org>
84472
84473         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84474         aliases.
84475
84476 2002-11-04  Bruno Haible  <bruno@clisp.org>
84477
84478         * lib/config.charset: Update for newest glibc. Add canonical names
84479         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84480
84481 2002-11-04  Bruno Haible  <bruno@clisp.org>
84482
84483         * lib/config.charset: Add support for NetBSD.
84484
84485 2002-11-04  Bruno Haible  <bruno@clisp.org>
84486
84487         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84488
84489 2002-11-01  Bruno Haible  <bruno@clisp.org>
84490
84491         * configure.in: Add AC_CONFIG_AUX_DIR call.
84492         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84493         test/Makefile.
84494         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84495
84496 2002-09-28  Karl Berry  <karl@gnu.org>
84497
84498         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84499         installed automake until the next release, since changes have been
84500         made.
84501
84502 2002-09-25  Karl Berry  <karl@gnu.org>
84503
84504         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84505         * lib/getopt*: copy from libc/posix.
84506         * lib/gettext.h: copy from gettext.
84507         * lib/.cppi-disable: add strdup.c, gettext.h.
84508
84509 2002-09-25  Karl Berry  <karl@gnu.org>
84510
84511         * config/srclist.txt: enable gettext.h check.
84512         * config/config.{guess,sub}: update from prep.
84513         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84514                 from automake 1.6.3.
84515         See srclist*.
84516
84517 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84518
84519         * regex.c (PATFETCH): Remove the translating fetch.
84520         (PATFETCH_RAW): Rename to PATFETCH.
84521         (set_image_of_range): New fun.
84522         (SET_RANGE_TABLE_WORK_AREA): Use it.
84523         (regex_compile): Don't translate the pattern chars so eagerly.
84524         Only do it when inserting an `exactn' bytecode or when handling
84525         a char-range.
84526         (mutually_exclusive_p): Avoid empty statement.
84527
84528 2002-07-06  Jim Meyering  <meyering@lucent.com>
84529
84530         * m4/README: Don't mention Makefile.am.in.
84531         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84532
84533 2002-07-01  Jim Meyering  <meyering@lucent.com>
84534
84535         * lib/c-stack.c: Include sys/time.h.
84536         From Volker Borchert.
84537
84538 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84539
84540         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84541
84542 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84543
84544         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84545         New macro.  Use it uniformly instead of
84546         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84547         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84548         reported by Vin Shelton.
84549
84550 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84551
84552         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84553         Do not assume SA_SIGINFO behavior.
84554         Bug reported by Jim Meyering on NetBSD 1.5.2.
84555
84556 2002-06-22  Jim Meyering  <meyering@lucent.com>
84557
84558         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84559         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84560
84561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84562         now that configure.ac uses AC_GNU_SOURCE.
84563         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84564         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84565
84566         Update to latest tools.  Suggestions from Paul Eggert.
84567         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84568         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84569         * m4/fnmatch.m4: Likewise.
84570         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84571         to AC_HEADER_STDBOOL
84572
84573 2002-06-22  Jim Meyering  <meyering@lucent.com>
84574
84575         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84576         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84577
84578 2002-06-22  Jim Meyering  <meyering@lucent.com>
84579
84580         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84581
84582         * lib/exitfail.c, exitfail.h: Likewise.
84583         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84584
84585         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84586         of fnmatch.h.
84587         (EXTRA_DIST): Add fnmatch_loop.c.
84588         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84589
84590         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84591         * lib/fnmatch.c: Update from diffutils-2.8.2.
84592         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84593         * lib/fnmatch.h: Remove file.
84594
84595 2002-06-21  Jim Meyering  <meyering@lucent.com>
84596
84597         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84598         * m4/mbrtowc.m4: Likewise.
84599
84600         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84601         * m4/mbswidth.m4: Reflect name change:
84602         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84603         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84604
84605         * m4/lib-link.m4: Update from gettext-0.11.2.
84606         * m4/gettext.m4: Likewise.
84607
84608         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84609         From Alfred M. Szmidt.
84610
84611 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84612
84613         * lib/file-type.h: Report an error if neither S_ISREG nor
84614         S_IFREG is defined, instead of using a test specific to glibc
84615         2.2.  This should be safe, since POSIX requires S_ISREG and
84616         Unix Version 7 had S_IFREG.  We don't need to check for
84617         <sys/types.h> since we don't use any symbols that it defines.
84618
84619 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84620
84621         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84622         $@-t, so that each temporary file name is unique and valid in the first
84623         8 characters, for operation under DOS.
84624
84625 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84626
84627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84628
84629 2002-06-15  Jim Meyering  <meyering@lucent.com>
84630
84631         Work even with DJGPP 2.03, which lacks support for symlinks.
84632         From Richard Dawe.
84633         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84634         is defined.
84635         * lib/lchown.c (S_ISLNK): Likewise.
84636
84637 2002-06-15  Jim Meyering  <meyering@lucent.com>
84638
84639         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84640         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84641         have been included before this file.
84642
84643 2002-06-14  Jim Meyering  <meyering@lucent.com>
84644
84645         * lib/file-type.h: Use the version from diffutils-2.8.2.
84646         * lib/file-type.c: Likewise.
84647
84648 2002-06-07  Jim Meyering  <meyering@lucent.com>
84649
84650         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84651         They're needed at least for NetBSD 1.5.2.
84652         ($statxfs_includes): Include those same headers.
84653         ($statxfs_includes): Include sys/vfs.h if available.
84654         ($statxfs_includes): Likewise for sys/statvfs.h.
84655         Check for the following members in both structs statfs and statvfs:
84656         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84657
84658 2002-06-01  Jim Meyering  <meyering@lucent.com>
84659
84660         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84661         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84662
84663 2002-05-28  Jim Meyering  <meyering@lucent.com>
84664
84665         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84666         Reported by Volker Borchert.
84667
84668 2002-05-27  Jim Meyering  <meyering@lucent.com>
84669
84670         Fix a problem seen only on nonconforming systems whereby ls.c's
84671         use of localtime, and then of gettimeofday would cause trouble:
84672         the localtime call used to initialize rpl_gettimeofday's save
84673         mechanism would clobber ls's current local time information so
84674         that in any long listing the first file would always be listed
84675         with date 1970-01-01.  Analysis by Volker Borchert.
84676
84677         * lib/gettimeofday.c (localtime): Undefine.
84678         (rpl_localtime): New function.
84679
84680 2002-05-27  Jim Meyering  <meyering@lucent.com>
84681
84682         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84683         localtime.
84684
84685         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84686         use the replacement function; it wouldn't resolve at link time.
84687         Reported by Volker Borchert.
84688
84689 2002-05-22  Jim Meyering  <meyering@lucent.com>
84690
84691         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84692         file-type.h.
84693         * lib/file-type.h: New file.
84694         * lib/file-type.c (file_type): New file/function.  Extracted from
84695         diffutils.
84696
84697 2002-04-30  Jim Meyering  <meyering@lucent.com>
84698
84699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84700
84701 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84702
84703         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84704
84705 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84706
84707         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84708         Do not check for alloca.h (no longer used) or stdbool.h (was never
84709         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84710
84711 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84712
84713         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84714
84715 2002-04-29  Jim Meyering  <meyering@lucent.com>
84716
84717         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84718         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84719         Use AC_FUNC_STRNLEN here instead.
84720
84721         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84722         With autoconf-2.53a, it's part of AC_PROG_CC.
84723
84724 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84725
84726         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84727         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84728
84729 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84730
84731         * lib/sig2str.h, lib/sig2str.c: New files.
84732         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84733
84734 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84735
84736         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84737         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84738         of 127, since 64 is the largest conceivable number for ancient
84739         nonstandard hosts.
84740         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84741
84742 2002-04-28  Jim Meyering  <meyering@lucent.com>
84743
84744         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84745
84746 2002-04-24  Jim Meyering  <meyering@lucent.com>
84747
84748         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84749         (jm_PREREQ): Use it.
84750
84751         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84752         mach/mach.h fcntl.h.
84753         Check for this function: setlocale.
84754
84755 2002-04-24  Jim Meyering  <meyering@lucent.com>
84756
84757         * lib/gettext.h: New file, from Gettext.
84758         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84759         (libfetish_a_SOURCES): Add gettext.h.
84760
84761 2002-04-16  Jim Meyering  <meyering@lucent.com>
84762
84763         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84764         ut_pid, ut_id, ut_exit.
84765
84766 2002-04-16  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84769         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84770         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84771
84772 2002-04-12  Jim Meyering  <meyering@lucent.com>
84773
84774         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84775         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84776         existence of the getmntinfo function.  Needed for Darwin 5.3.
84777
84778         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84779         This is necessary at least on Darwin 5.3.
84780
84781         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84782         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84783         strnlen.o in the library, and that makes some versions of ranlib
84784         object.
84785
84786 2002-04-12  Jim Meyering  <meyering@lucent.com>
84787
84788         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84789
84790 2002-04-09  Jim Meyering  <meyering@lucent.com>
84791
84792         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84793         to be more precise.  Rather than saying we're checking whether the
84794         function `works', say what we're testing.
84795         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84796         Reported by Bruno Haible.
84797
84798 2002-03-10  Jim Meyering  <meyering@lucent.com>
84799
84800         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84801         Suggestion from Santiago Vila.
84802
84803 2002-03-08  Jim Meyering  <meyering@lucent.com>
84804
84805         * lib/rename.c: Mention that this wrapper is needed also on
84806         mips-dec-ultrix4.4 systems.
84807
84808 2002-03-02  Jim Meyering  <meyering@lucent.com>
84809
84810         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84811         not HAVE_CLOCK_SETTIME.
84812
84813 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84814
84815         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84816         Check for clock_settime.
84817
84818 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84819
84820         * lib/nanosleep.h: Rename to....
84821         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84822
84823         * lib/gettime.c: New file.
84824         * lib/settime.c: New file.
84825         * lib/stime.c: Remove.
84826
84827         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84828         timespec.h.  Remove nanosleep.h.
84829
84830 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84831
84832         * m4/acl.m4: New file.
84833         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84834         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84835
84836 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84837
84838         * lib/acl.c, lib/acl.h: New files.
84839         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84840
84841 2002-02-24  Jim Meyering  <meyering@lucent.com>
84842
84843         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84844         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84845         cause trouble.  Reported by Nelson Beebe.
84846
84847 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84848
84849         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84850         compilers that don't know that xalloc_die never returns.
84851
84852 2002-02-20  Jim Meyering  <meyering@lucent.com>
84853
84854         * lib/getdate.c: Regenerate using bison-1.33.
84855
84856 2002-02-17  Jim Meyering  <meyering@lucent.com>
84857
84858         * config/config.guess (main): Don't use `head -1'; it's no longer
84859         portable. Use `sed 1q' instead.
84860
84861 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84862
84863         * m4/codeset.m4: Upgrade to gettext-0.11.
84864         * m4/gettext.m4: Upgrade to gettext-0.11.
84865         * m4/glibc21.m4: Upgrade to gettext-0.11.
84866         * m4/iconv.m4: Upgrade to gettext-0.11.
84867         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84868         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84869         * m4/lib-ld.m4: New file, from gettext-0.11.
84870         * m4/lib-link.m4: New file, from gettext-0.11.
84871         * m4/lib-prefix.m4: New file, from gettext-0.11.
84872         * m4/progtest.m4: Upgrade to gettext-0.11.
84873
84874 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84875
84876         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84877         (jm_PREREQ): Use it.
84878
84879 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84880
84881         * lib/posixver.c, lib/posixver.h: New files.
84882         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84883
84884 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84885             Bruno Haible  <bruno@clisp.org>
84886
84887         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84888         (fwrite_success_callback): New declaration.
84889         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84890         print_unicode_char. Call failure callback instead of error.
84891         (fwrite_success_callback): New function.
84892         (exit_failure_callback): New function.
84893         (fallback_failure_callback): New function.
84894         (print_unicode_char): Call unicode_to_mb.
84895
84896 2002-01-26  Jim Meyering  <meyering@lucent.com>
84897
84898         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84899         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84900
84901 2002-01-26  Jim Meyering  <meyering@lucent.com>
84902
84903         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84904
84905 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84906
84907         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84908
84909 2002-01-22  Jim Meyering  <meyering@lucent.com>
84910
84911         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84912         Otherwise, some versions of automake would omit the rule that makes
84913         Makefile from Makefile.in.
84914
84915 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84916
84917         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84918         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84919         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84920         (memcoll): Set errno to zero if there is no error.
84921
84922         * lib/quotearg.c (quotearg_buffer_restyled):
84923         Fix bug with quoting buffers containing NUL when backslashing escapes.
84924         This bug was exposed by the other changes in this patch.
84925         (quotearg_n_options): New arg ARGSIZE.
84926         All callers changed.
84927         (quoting_options_from_style): New function.
84928         (quotearg_n_style): Use it.
84929         (quotearg_n_style_mem): New function.
84930
84931         * lib/quotearg.h (quotearg_n_style_mem): New function.
84932
84933 2002-01-19  Jim Meyering  <meyering@lucent.com>
84934
84935         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84936         Remove useless quotes: DF_PROG="df".
84937         * m4/strnlen.m4: New file.
84938
84939 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84940
84941         * lib/backupfile.c (ISDIGIT): Comment fix.
84942         * lib/getdate.y (ISDIGIT): Likewise.
84943         * lib/posixtm.c (ISDIGIT, year): Likewise.
84944         * lib/strverscmp.c (ISDIGIT): Likewise.
84945         * lib/userspec.c (ISDIGIT): Likewise.
84946
84947 2002-01-16  Jim Meyering  <meyering@lucent.com>
84948
84949         * lib/getdate.y: Add three semicolons, each just before a closing
84950         brace. Bison (as of version 1.31) no longer papers over that mistake.
84951
84952 2002-01-05  Jim Meyering  <meyering@lucent.com>
84953
84954         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84955
84956 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84957
84958         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84959         not silently exit merely because the output buffer happens to
84960         have nothing pending.
84961
84962 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84963
84964         See the big note in ../ChangeLog.
84965         * lib/human.c (suffixes): Prefer K to k for 1024.
84966         (generate_suffix_backwards): New function.
84967         (human_readable_inexact): Use it.
84968         * lib/xstrtol.c (__xstrtol): If there is no number but there
84969         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84970         Accept 'K' as well as 'k'.
84971
84972 2001-12-15  Jim Meyering  <meyering@lucent.com>
84973
84974         * lib/regex.h (__restrict_arr): Update from libc.
84975
84976         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84977         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84978         (STREQ): Define.
84979
84980 2001-12-14  Jim Meyering  <meyering@lucent.com>
84981
84982         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84983         Suggestion from Bruno Haible.
84984
84985 2001-12-10  Jim Meyering  <meyering@lucent.com>
84986
84987         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84988         xrealloc, Instead, include "xalloc.h".
84989         (initbuffer): Don't cast xmalloc return value to char*.
84990         (readline): Reword comment.
84991         Don't cast xrealloc return value to char*
84992         Return NULL, not 0.
84993
84994 2001-12-09  Jim Meyering  <meyering@lucent.com>
84995
84996         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84997         about `signed and unsigned type in conditional expression'.
84998         * lib/posixtm.c (posix_time_parse): Likewise.
84999
85000         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85001
85002         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85003         to avoid a pedantic warning.
85004
85005         * lib/getstr.c: Don't include assert.h.
85006         (getstr): Remove warning-evoking assertions.
85007         Return -1 if offset parameter is out of bounds.
85008         Change the type of a local from int to size_t.
85009
85010         * lib/strftime.c (my_strftime_localtime_r): Include this function
85011         definition in the `#if ! HAVE_TM_GMTOFF' block.
85012
85013         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85014         Include xalloc.h instead.
85015
85016 2001-12-02  Jim Meyering  <meyering@lucent.com>
85017
85018         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85019         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85020         included.
85021
85022         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85023         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85024
85025 2001-11-30  Akim Demaille  <akim@epita.fr>
85026
85027         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85028         before being defined.
85029
85030 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85031
85032         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85033         First arg is int, not unsigned.
85034         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85035         (SIZE_MAX, UINT_MAX): New macros.
85036         (quotearg_n_options): Abort if N is negative.
85037         Avoid overflow check on hosts where size_t is 64 bits and int
85038         is 32 bits, as overflow is impossible there.
85039         Fix off-by-one typo that caused unnecessary reallocation.
85040
85041 2001-11-27  Jim Meyering  <meyering@lucent.com>
85042
85043         * lib/tempname.c: Merge with version from libc.
85044         * lib/regex.c: Likewise.
85045
85046         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85047         systems for which STDC_HEADERS is 0, it was not included, resulting in
85048         a warning about an integer-to-pointer conversion problem with getenv.
85049         Reported by Volker Borchert.
85050
85051 2001-11-26  Jim Meyering  <meyering@lucent.com>
85052
85053         * lib/gtod.h: Remove file.
85054         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85055         * lib/gettimeofday.c: Don't include gtod.h.
85056         (GTOD_init): Remove function.
85057         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85058         Suggestion from Volker Borchert.
85059
85060 2001-11-23  Jim Meyering  <meyering@lucent.com>
85061
85062         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85063         it.
85064         * lib/hash.c (struct hash_table): Define it here instead.
85065
85066 2001-11-22  Jim Meyering  <meyering@lucent.com>
85067
85068         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85069
85070 2001-11-20  Jim Meyering  <meyering@lucent.com>
85071
85072         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85073         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85074
85075 2001-11-19  Jim Meyering  <meyering@lucent.com>
85076
85077         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85078         directory.  Use "conftestXXXXXX" as the template.
85079         Suggestion from Paul Eggert.
85080
85081         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85082         immediately, so the test doesn't mistakenly hit the max-open-files
85083         limit.
85084
85085 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85086
85087         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85088         (TEMPORARIES): New macro.
85089         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85090         removes an artificial limitation (e.g. HP-UX 10.20, where
85091         TMP_MAX is 17576).
85092
85093 2001-11-18  Jim Meyering  <meyering@lucent.com>
85094
85095         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85096
85097 2001-11-18  Jim Meyering  <meyering@lucent.com>
85098
85099         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85100         on SunOS 4.
85101
85102         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85103         files will be created before anything else.
85104
85105 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85106
85107         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85108         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85109
85110 2001-11-17  Jim Meyering  <meyering@lucent.com>
85111
85112         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85113         Prompted by a report from Bob Proulx.
85114
85115         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85116         Instead, require UTILS_FUNC_MKSTEMP.
85117
85118 2001-11-17  Jim Meyering  <meyering@lucent.com>
85119
85120         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85121         Now, that's done as part of AC_FUNC_STRTOD.
85122
85123 2001-11-17  Jim Meyering  <meyering@lucent.com>
85124
85125         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85126         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85127         rather than group writable.  Patch by Juan F. Codagnone.
85128
85129         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85130         xrealloc, Instead, include "xalloc.h".
85131
85132         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85133         Remove explicit declarations of xmalloc, xrealloc,
85134         and xstrdup.  Instead, include "xalloc.h".
85135
85136         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85137         unlocked-io.h.
85138         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85139         Likewise.
85140         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85141
85142         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85143         Reported by Padraig Brady.
85144
85145         * lib/mkstemp.c: #undef mkstemp.
85146         Include config.h.
85147         (rpl_mkstemp): Rename from mkstemp.
85148         Protoize.
85149
85150 2001-11-16  Jim Meyering  <meyering@lucent.com>
85151
85152         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85153         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85154         determine the amount of total physical memory, use pstat_getstatic.
85155         HPUX-11 doesn't define _SC_PHYS_PAGES.
85156         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85157         If sysconf couldn't be used to determine the amount of available
85158         physical memory, use both pstat_getstatic and pstat_getdynamic.
85159         Based on a patch from Bob Proulx.
85160
85161 2001-11-10  Jim Meyering  <meyering@lucent.com>
85162
85163         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85164         (jm_PREREQ): Use it.
85165
85166 2001-11-09  Jim Meyering  <meyering@lucent.com>
85167
85168         * m4/jm-macros.m4: Require autoconf-2.52f.
85169         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85170         Use these AC_-prefixed names, not the AM_-prefixed ones.
85171
85172         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85173
85174 2001-11-05  Jim Meyering  <meyering@lucent.com>
85175
85176         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85177
85178 2001-11-04  Jim Meyering  <meyering@lucent.com>
85179
85180         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85181         $DEFS.
85182
85183 2001-11-03  Jim Meyering  <meyering@lucent.com>
85184
85185         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85186         of AC_DEFUN.
85187
85188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85189         know the name of the variable in the macro definition.
85190
85191 2001-11-03  Jim Meyering  <meyering@lucent.com>
85192
85193         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85194         in argmatch_to_argument call.
85195
85196         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85197         argument.
85198
85199         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85200         e.g., a fault due to an attempt to free a NULL pointer.
85201
85202 2001-11-01  Jim Meyering  <meyering@lucent.com>
85203
85204         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85205         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85206
85207 2001-11-01  Jim Meyering  <meyering@lucent.com>
85208
85209         * lib/dirfd.c, lib/dirfd.h: New files.
85210         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85211
85212         * lib/hash.c (hash_print) [TESTING]: Clean up.
85213
85214 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85215
85216         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85217         to avoid a warning if -Wall.
85218
85219 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85220
85221         * README: New file
85222         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85223         (per RMS's instructions, this is now the canonical source)
85224         * lgpl/, gpl/: New directories.
85225
85226 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85227
85228         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85229
85230 2001-10-21  Jim Meyering  <meyering@lucent.com>
85231
85232         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85233         this code would end up calling gettext even in packages built
85234         with --disable-nls.
85235         * lib/getopt.c (_): Likewise.
85236         * lib/regex.c (_): Likewise.
85237
85238 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85239
85240         * m4/error.m4 (jm_PREREQ_ERROR):
85241         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85242         AC_FUNC_STRERROR_R does that.
85243         Check for strerror declaration.
85244
85245         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85246         are supposed to have them these days.
85247         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85248         Merge changes from latest Autoconf CVS.
85249         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85250         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85251         POSIX decided to standardize on the int flavor of strerror_r.
85252
85253 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85254
85255         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85256         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85257         Use strerror_r that is only a macro, even if it is not a function.
85258         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85259         (private_strerror): Use prototypes, not old-style function definition.
85260         (print_errno_message): New function.
85261         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85262         char*-flavored one.
85263         (error_tail, error, error_at_line): Use it.
85264
85265 2001-10-11  Jim Meyering  <meyering@lucent.com>
85266
85267         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85268         and quote_n (1, ... to avoid clobbering a buffer.
85269
85270 2001-10-05  Jim Meyering  <meyering@lucent.com>
85271
85272         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85273         hash-pjw.h.
85274         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85275         * lib/hash-pjw.h: New file.
85276
85277 2001-09-30  Jim Meyering  <meyering@lucent.com>
85278
85279         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85280         `struct fsstat' has the `f_fstypename' member.
85281         Use that to define FS_TYPE, which is now used to make
85282         the getfsstat link test tighter.
85283
85284 2001-09-30  Jim Meyering  <meyering@lucent.com>
85285
85286         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85287         Include <sys/ucred.h>, for Apple Darwin.
85288         Include sys/mount.h and sys/fs_types.h only if available.
85289         (FS_TYPE): Define.
85290         (read_filesystem_list): Use FS_TYPE.
85291
85292 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85293
85294         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85295         a boolean context.
85296
85297 2001-09-29  Jim Meyering  <meyering@lucent.com>
85298
85299         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85300         [one-argument getmntent function]): Include stdio.h before mntent.h.
85301         SunOS 4.1.x needs it for the declaration of `FILE'.
85302         Patch by Volker Borchert.
85303
85304         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85305         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85306         sys/fs_types.h, and make the link-test for getfsstat guard #include
85307         directives with appropriate #if HAVE_*_H tests so that we can
85308         detect getfsstat on Apple Darwin1.3.7 systems.
85309         Reported by Nelson Beebe.
85310         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85311
85312 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85313
85314         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85315         #defines strtoimax.  Also treat the other strto* functions
85316         like strtoimax.
85317
85318         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85319         Check for strtoul and strtoumax,
85320         as those declarations are made even in the signed case.
85321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85322         Likewise, for strtol and strtoimax.
85323
85324 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85325
85326         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85327         #defines strtoimax.  Also treat the other strto* functions
85328         like strtoimax.
85329
85330         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85331         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85332         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85333
85334 2001-09-26  Jim Meyering  <meyering@lucent.com>
85335
85336         Most macros in unlocked-io.h had the wrong number of arguments.
85337         * lib/gen-uio: New script.
85338         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85339         * lib/unlocked-io.hin: Remove file.
85340         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85341         rather than trying to embed it here.
85342         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85343         Reported by Padraig Brady.
85344
85345 2001-09-25  Volker Borchert  <bt@teknon.de>
85346
85347         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85348         `result'.
85349
85350 2001-09-24  Jim Meyering  <meyering@lucent.com>
85351
85352         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85353
85354 2001-09-23  Jim Meyering  <meyering@lucent.com>
85355
85356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85357         instead of the mere test for existence of mntent.h.  The latter
85358         would get a false-positive on AIX 3.4 systems.
85359         In the outer getmntent if-block, don't die if neither of the getmntent
85360         tests succeeds.  Instead, just fall through and continue with the
85361         remaining tests.
85362
85363 2001-09-23  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/mountlist.c: Remove useless parentheses in #if directives.
85366         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85367         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85368
85369 2001-09-22  Jim Meyering  <meyering@lucent.com>
85370
85371         * m4/gettext.m4: New file.  From gettext.
85372         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85373         * m4/progtest.m4: Likewise
85374         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85375         * m4/glibc21.m4: Likewise.
85376
85377         * m4/libintl.m4: Remove.  No longer used.
85378
85379 2001-09-22  Jim Meyering  <meyering@lucent.com>
85380
85381         * lib/localcharset.c: Update from latest gettext.
85382         * lib/config.charset: Likewise.
85383
85384 2001-09-20  Jim Meyering  <meyering@lucent.com>
85385
85386         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85387         strtoimax.
85388         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85389         strtoumax.
85390
85391 2001-09-20  Jim Meyering  <meyering@lucent.com>
85392
85393         * lib/xstrtol.c (strtoimax): Guard declaration with
85394         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85395         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85396         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85397         (strtoumax): Likewise, for completeness (it wasn't necessary).
85398
85399 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85400
85401         * lib/strtoimax.c (HAVE_LONG_LONG):
85402         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85403         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85404         to work around bug in IBM C compiler.
85405
85406 2001-09-17  Jim Meyering  <meyering@lucent.com>
85407
85408         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85409         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85410         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85411         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85412         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85413         whenever the right hand side need not be expanded by the shell.
85414
85415 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85416
85417         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85418         library.  It's not correct, as some older glibcs are buggy.
85419         fnmatch wasn't fixed until glibc 2.2.
85420
85421         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85422         special shell magic here.
85423
85424 2001-09-16  Jim Meyering  <meyering@lucent.com>
85425
85426         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85427         * m4/jm-macros.m4: Require it.
85428
85429 2001-09-16  Jim Meyering  <meyering@lucent.com>
85430
85431         * lib/mkdir.c: New file.
85432
85433 2001-09-15  Jim Meyering  <meyering@lucent.com>
85434
85435         * m4/jm-macros.m4: Check for help2man.
85436
85437 2001-09-11  Jim Meyering  <meyering@lucent.com>
85438
85439         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85440         The body, by Paul Eggert, was moved here from configure.in.
85441         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85442
85443 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85444
85445         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85446         (jm_PREREQ): Use it.
85447
85448 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85449
85450         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85451         Use ssize_t, not int, to store result of readlink.
85452         Check for ssize_t overflow as well as size_t overflow,
85453         as POSIX says the result of readlink is implementation-defined
85454         when ssize_t overflows.
85455         Remove unnecessary cast to char*.
85456         Use free+malloc instead of realloc, as the storage doesn't need
85457         to be preserved and it's clearer and can be more efficient that way.
85458         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85459         * lib/xreadlink.h (xreadlink): Update prototype.
85460
85461 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85462
85463         * lib/xgetcwd.c: Revert some of the previous change; intead,
85464         fix the HAVE_GETCWD_NULL code to behave more like the
85465         !HAVE_GETCWD_NULL code used to.
85466
85467         Include "xalloc.h".
85468         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85469         invoke xalloc_die.
85470
85471 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85472
85473         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85474         sys/param.h, as pathmax.h includes them.
85475
85476 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85477
85478         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85479         (jm_PREREQ_XGETCWD): New macro.
85480
85481         * m4/getcwd.m4: New file.
85482
85483 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85484
85485         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85486         like the HAVE_GETCWD_NULL code.
85487         Include pathmax.h if not HAVE_GETCWD.
85488         Do not include xalloc.h.
85489         (INITIAL_BUFFER_SIZE): New symbol.
85490         Do not use xmalloc / xrealloc, since the caller is responsible for
85491         handling errors.  Preserve errno around `free' during failure.
85492         Do not overrun buffer when using getwd.
85493
85494 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85495
85496         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85497         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85498         getcwd (NULL, 0).
85499
85500 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85501
85502         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85503         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85504         spotted by Jim Meyering.
85505
85506 2001-09-03  Jim Meyering  <meyering@lucent.com>
85507
85508         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85509         failure.
85510
85511 2001-09-02  Jim Meyering  <meyering@lucent.com>
85512
85513         * lib/error.c: Update from GNU libc.
85514
85515 2001-09-01  Jim Meyering  <meyering@lucent.com>
85516
85517         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85518         Used by df.
85519
85520 2001-09-01  Jim Meyering  <meyering@lucent.com>
85521
85522         * lib/xreadlink.c: New file.
85523         * lib/xreadlink.h: New file.
85524         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85525         xreadlink.h.
85526
85527         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85528         doesn't conflict with sparc Solaris 7's definition in
85529         /usr/include/sys/int_types.h.
85530
85531         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85532         files.
85533         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85534         and strncasecmp as r-values.  Unixware didn't have declarations.
85535
85536 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85537
85538         * lib/xstrtol.h: Add copyright notice.
85539         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85540         LONGINT_INVALID_SUFFIX_CHAR.
85541
85542 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85543
85544         * lib/xstrtol.c (strtoimax): New decl.
85545
85546 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85547
85548         * lib/xgetcwd.c: Don't include pathmax.h.
85549         Include stdlib.h and unistd.h if available.
85550         Include xalloc.h.
85551         (xmalloc, xstrdup, free): Remove decls.
85552         (xgetcwd): Don't assume sizes fit in unsigned.
85553         Check for overflow when computing sizes.
85554         Simplify reallocation code.
85555
85556 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85557
85558         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85559         a directory's st_size can have an arbitrary value, so the old
85560         usage could waste an arbitrary amount of memory.  All uses
85561         changed.
85562         * lib/savedir.h: Update prototype.
85563
85564 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85565
85566         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85567
85568         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85569         old strtoimax.c.
85570
85571         Also, make the following further changes to make this file's
85572         configuration more similar to that of strtol.c:
85573         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85574         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85575         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85576         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85577         changed to signed values.
85578
85579         And make the following changes as well:
85580         Fix copyright notice, as 1999 was missing.
85581         (verify): New macro.
85582         (strtoimax): Check sizes at compile-time, not run-time.
85583         Prefer strtol to strtoll if both work.
85584         (main): Remove; it was not that useful and was a pain to maintain.
85585
85586         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85587
85588 2001-08-31  Jim Meyering  <meyering@lucent.com>
85589
85590         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85591         Use an initial, malloc'd, buffer of length 128 rather than
85592         a statically allocated one of length 1024.
85593
85594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85595
85596         Simplify code, partly by assuming autoconf 2.52 semantics.
85597
85598         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85599
85600         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85601         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85602         All uses removed.
85603         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85604         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85605         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85606         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85607         jm_AC_HEADER_INTTYPES_H.
85608         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85609
85610         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85611
85612         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85613         Quote first arg of AC_DEFUN.
85614         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85615         since they are needed to parse the include file even if we need
85616         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85617         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85618         but with opposite signedness.
85619
85620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85621
85622         Merge 'exclude' changes from tar 1.13.22.
85623         This fixes one or two unlikely storage allocation overflow bugs,
85624         but doesn't change user-visible behavior otherwise.
85625
85626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85627
85628         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85629         (jm_PREREQ_EXCLUDE): New macro.
85630
85631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85632
85633         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85634         tm to be declared.
85635
85636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85637
85638         * lib/hash.c: Remove '2001' from copyright notice.
85639
85640 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85641
85642         * lib/full-write.h: New file.
85643         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85644         * lib/full-write.c: Correct credits, as cccp.c no longer
85645         exists and anyway it was so heavily changed from the old cccp
85646         code as to be unrecognizable.  Include full-write.h.
85647         (full_write): Return size_t, with short writes meaning failure.
85648         All callers changed.  This fixes a bug with large buffers
85649         on 64-bit hosts.
85650         * lib/utime.c: Include full-write.h.
85651
85652 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85653
85654         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85655         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85656         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85657         Include if available.
85658         (<xalloc.h>): Include
85659         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85660         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85661         collide with FNM macros.
85662         (struct patopts): New struct.
85663         (struct exclude): Use it, as exclude patterns now come with options.
85664         (new_exclude): Support above changes.
85665         (new_exclude, add_exclude_file):
85666         Initial size must now be a power of two to simplify overflow checking.
85667         (free_exclude, fnmatch_no_wildcards): New function.
85668         (excluded_filename): No longer requires options arg, as the options
85669         are determined by add_exclude.  Now returns bool, not int.
85670         (excluded_filename, add_exclude):
85671         Add support for the fancy new exclusion options.
85672         (add_exclude, add_exclude_file): Now takes int options arg.
85673         Check for arithmetic overflow when computing sizes.
85674         (add_exclude_file): xrealloc might modify errno, so don't
85675         realloc until after errno might be used.
85676
85677         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85678         New macros.
85679         (free_exclude): New decl.
85680         (add_exclude, add_exclude_file): Now takes int options arg.
85681         (excluded_filename): No longer requires options arg, as the options
85682         are determined by add_exclude.  Now returns bool, not int.
85683
85684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85685
85686         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85687
85688 2001-08-27  Jim Meyering  <meyering@lucent.com>
85689
85690         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85691
85692         * lib/version-etc.c (N_): Remove definition.
85693         Revert most of last change.
85694         Instead, simply don't mark the `Copyright...' string for translation.
85695         Based on advice from Paul Eggert.
85696
85697         * lib/strtoxmax.c: Tweak comment.
85698
85699 2001-08-26  Jim Meyering  <meyering@lucent.com>
85700
85701         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85702
85703         * m4/xstrtoimax.m4: New file.
85704         * m4/xstrtoumax.m4: Add comments explaining why we
85705         AC_REPLACE_FUNCS(strtol).
85706
85707 2001-08-26  Jim Meyering  <meyering@lucent.com>
85708
85709         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85710         of copyright with `%s' so translators don't get an untranslated
85711         message in 2002.
85712         (COPYRIGHT_YEAR): Define.
85713         (version_etc): Use fprintf rather than fputs.
85714         Suggestion from Ulrich Drepper.
85715
85716         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85717
85718         * lib/strtoll.c: New file, from GNU libc.
85719         * lib/xstrtoimax.c: New file.
85720
85721         * lib/xstrtol.h: Add xstrtoimax.
85722         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85723         * lib/strtoimax.c: New file.  Likewise, but first define
85724         STRTOUXMAX_SIGNED.
85725
85726         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85727         ...
85728         * lib/strtoxmax.c: ... then renamed to this.
85729
85730 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85731
85732         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85733         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85734         (jm_AC_TYPE_INTMAX_T): New macro.
85735         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85736
85737         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85738
85739         * m4/longlong.m4: Renamed from ulonglong.m4.
85740         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85741         * m4/uintmax_t.m4: Removed.
85742
85743 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85744
85745         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85746         Port to Solaris 8, where 'sed' requires a space after the 'r'
85747         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85748         Redirect output to $tmp just once.
85749
85750 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85751
85752         * lib/addext.c (<errno.h>): Include.
85753         (errno): Declare if not defined.
85754         (addext): Work correctly when pathconf returns -1 and leaves
85755         errno alone because there is no limit.  Also, work even if
85756         pathconf returns a value greater than SIZE_MAX.
85757
85758 2001-08-12  Jim Meyering  <meyering@lucent.com>
85759
85760         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85761         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85762         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85763         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85764         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85765         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85766         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85767         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85768         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85769         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85770         utime.m4, utimes.m4, xstrtoumax.m4:
85771         Quote the first argument in each use of AC_DEFUN.
85772
85773 2001-08-12  Jim Meyering  <meyering@lucent.com>
85774
85775         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85776         Simply `return getcwd (NULL, 0);'.
85777         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85778         Use 1300 as initial value for length, not PATH_MAX.
85779
85780         * lib/pathmax.h: Clean up cpp syntax.
85781
85782 2001-08-12  Jim Meyering  <meyering@lucent.com>
85783
85784         * lib/gettimeofday.c: New file.
85785         * lib/gtod.h: New file.
85786         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85787
85788 2001-08-05  Jim Meyering  <meyering@lucent.com>
85789
85790         * m4/jm-macros.m4: Require autoconf-2.52.
85791
85792 2001-08-04  Jim Meyering  <meyering@lucent.com>
85793
85794         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85795         stmt, to get in sync with glibc.
85796
85797 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85798
85799         The following changes are from gettext 0.10.39 as maintained by
85800         Bruno Haible.
85801
85802         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85803         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85804         with inverted sense.  All uses changed.
85805
85806         * lib/mbswidth.c: Don't include <limits.h>.
85807         Include <stdlib.h> and <string.h> unconditionally.
85808         (iswcntrl, mbsinit, ISCNTRL): New macros.
85809         (mbsnwidth): Use K&R style function declarations.
85810         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85811         can optimize it when MB_CUR_MAX == 1.
85812         The width of control characters is zero, not 1.
85813
85814 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85815
85816         The following changes are from gettext 0.10.39 as maintained by
85817         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85818
85819         * m4/codeset.m4: Upgrade to serial AM1.
85820         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85821         all uses changed.  Quote first arg of AC_DEFUN.
85822         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85823
85824         * m4/iconv.m4: Upgrade to serial AM2.
85825         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85826         Add --with-libconv-prefix.
85827         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85828         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85829         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85830         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85831         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85832
85833         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85834         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85835         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85836         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85837         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85838         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85839         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85840         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85841         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85842
85843         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85844         string.h any more.
85845
85846         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85847         not the default value.
85848
85849         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85850         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85851         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85852         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85853         Also check for iswcntrl, used for wcwidth fallback.
85854         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85855         to Autoconf 2.13.
85856
85857 2001-08-03  Jim Meyering  <meyering@lucent.com>
85858
85859         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85860         as it was in the original.  Reported by Paul Eggert.
85861
85862 2001-07-16  Jim Meyering  <meyering@lucent.com>
85863
85864         * m4/gettimeofday.m4: New file.
85865         Prompted by a report from Bernhard Baehr.
85866
85867 2001-07-15  Jim Meyering  <meyering@lucent.com>
85868
85869         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85870         stuff. Now it's in ../Makefile.cfg.
85871
85872 2001-07-15  Jim Meyering  <meyering@lucent.com>
85873
85874         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85875         (BUILT_SOURCES): Add unlocked-io.h.
85876         (io_functions): Define.
85877         (unlocked-io.h): New rule.
85878         (DISTCLEANFILES): Add unlocked-io.h.
85879         (all-local): Depend on unlocked-io.h, to ensure it is created.
85880
85881         * lib/unlocked-io.hin: New file
85882
85883         * lib/regex.c: Update from glibc.
85884
85885 2001-07-05  Jim Meyering  <meyering@lucent.com>
85886
85887         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85888         recommendation.
85889         (libfetish_a_SOURCES): Put all .h files here instead.
85890         Remove a thus-exposed (better checks in automake) duplicate and
85891         two unnecessary .h files.
85892
85893 2001-07-04  Jim Meyering  <meyering@lucent.com>
85894
85895         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85896         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85897         distcheck failure.
85898
85899 2001-07-02  Jim Meyering  <meyering@lucent.com>
85900
85901         The following changes were prompted by suggestions from Bruno Haible.
85902
85903         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85904         is now generated.
85905         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85906         definition of EXTRA_DIST.
85907         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85908         ensure that the generated file is created/updated whenever the list
85909         of $(unlocked_functions) is changed.
85910         (jm-glibc-io.m4): New rule.
85911         (unlocked-io.h): New rule -- currently unused.
85912
85913 2001-06-24  Jim Meyering  <meyering@lucent.com>
85914
85915         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85916         unmatched right bracket, rather than kludging it with an extra,
85917         falsely-matching quote in a comment.  Patch by Akim Demaille.
85918
85919 2001-06-11  Jim Meyering  <meyering@lucent.com>
85920
85921         * lib/regex.c: Update from GNU libc.
85922
85923 2001-05-27  Jim Meyering  <meyering@lucent.com>
85924
85925         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85926         Check for ut_type in struct utmp.
85927
85928 2001-05-27  Jim Meyering  <meyering@lucent.com>
85929
85930         * lib/readutmp.h (UT_TYPE): Define.
85931
85932 2001-05-24  Jim Meyering  <meyering@lucent.com>
85933
85934         * lib/argmatch.c: Include "quote.h".
85935         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85936         quote function.  Reported by Göran Uddeborg.
85937
85938 2001-05-22  Jim Meyering  <meyering@lucent.com>
85939
85940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85941         now that we use the package-supplied version unconditionally.
85942         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85943
85944 2001-05-21  Jim Meyering  <meyering@lucent.com>
85945
85946         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85947         shell syntax errors.
85948
85949 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85950
85951         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85952
85953 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85954
85955         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85956         Don't bother to check library strftime, since
85957         we'll be using our own my_strftime function anyway.
85958         Define my_strftime instead of strftime.
85959
85960 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85961
85962         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85963         which is not yet declared.
85964
85965 2001-05-15  Jim Meyering  <meyering@lucent.com>
85966
85967         * m4/regex.m4: Use proper quoting so brackets appear in the test
85968         program.
85969         Reported by, and with help from, Bruno Haible.
85970
85971 2001-05-13  Jim Meyering  <meyering@lucent.com>
85972
85973         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85974         undefined.
85975
85976 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85977
85978         dirname code cleanup.  base_name now behaves more compatibly
85979         with POSIX basename when given file names that have trailing
85980         slashes, and similarly for dir_name.  Add new primitives
85981         base_len and dir_len.  Put the directory-name-related decls
85982         into dirname.h.
85983
85984         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85985         * lib/backupfile.c (base_name): Likewise.
85986         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85987         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85988         * lib/makepath.c (strip_trailing_slashes): Likewise.
85989         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85990         ISSLASH): Likewise.
85991         * lib/rename.c (strip_trailing_slashes): Likewise.
85992         * lib/same.c (base_name): Likewise.
85993         * lib/stripslash.c (ISSLASH): Likewise.
85994
85995         * lib/addext.c: Include <dirname.h> after size_t is defined.
85996         * lib/backupfile.c: Likewise.
85997
85998         * lib/addext.c (addext): Use base_len to trim redundant
85999         trailing slashes instead of doing it ourselves.
86000         But do not trim the last slash if it is not redundant.
86001
86002         * lib/backupfile.c (find_backup_file_name,
86003         max_backup_version): Use base_len instead of rolling it ourselves.
86004         Handle the case of "" and (on DOS) "C:" correctly.
86005
86006         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86007         needed. Include <string.h>, <dirname.h>.
86008         (base_name): Allow file names ending in slashes, other than names
86009         that are all slashes.  In this case, return the basename followed
86010         by the slashes.  This is more general, and can be used in places
86011         where the original base_name purposely had an assertion failure.
86012         (base_len): New function.
86013
86014         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86015         Do not include <assert.h>; no longer needed.
86016         Include xalloc.h.
86017         (memrchr): Remove decl.
86018         (dir_name_r): Remove.
86019         (dir_len): Renamed from dirlen.  All callers changed.
86020         Rewrite in terms of base_name, for simplicity and consistency.
86021         (dir_name): Never return NULL.  All callers changed.
86022         Do not include <stdlib.h> in test program; no longer needed.
86023         return 0; is fine for test program.
86024
86025         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86026         New macros.
86027         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86028
86029         * lib/path-concat.c (path_concat): Use base_len to compute
86030         base length, not strlen; this means we cannot rely on memcpy
86031         to null-terminate.
86032
86033         * lib/same.c (STREQ): Remove.
86034         (same_name): Handle the case where the basename ends in trailing '/'.
86035
86036         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86037         a slash was stripped.  Do not strip the last slash after a
86038         file system prefix.
86039
86040 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86041
86042         * lib/Makefile.am (libfetish_a_SOURCES):
86043         Add strftime.c, since we now compile it on all hosts.
86044
86045         * lib/strftime.c (my_strftime):
86046         Define to nstrftime if emacs, but only if my_strftime is not defined.
86047         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86048         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86049         Add one more extra argument: a nanoseconds value.
86050         All uses changed.
86051         (ns): New macro.
86052         (my_strftime function): Add %N format.
86053         (emacs_strftimeu): Renamed from emacs_strftime,
86054         with extra ut argument.
86055
86056 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86057
86058         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86059
86060 2001-04-21  Jim Meyering  <meyering@lucent.com>
86061
86062         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86063         doesn't interfere.
86064
86065 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86066
86067         * m4/ftruncate.m4: Check for chsize.
86068         Link with ftruncate.o unconditionally if ftruncate is missing.
86069         This was required when cross-compiling to i586-mingw32msvc.
86070
86071 2001-04-08  Jim Meyering  <meyering@lucent.com>
86072
86073         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86074         recomputed; that's necessary when the offset spans a DST transition.
86075         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86076
86077 2001-04-02  Jim Meyering  <meyering@lucent.com>
86078
86079         * lib/regex.h, regex.c: Update from GNU libc.
86080
86081 2001-03-24  Jim Meyering  <meyering@lucent.com>
86082
86083         * m4/jm-macros.m4: Require autoconf-2.49d.
86084
86085 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86086
86087         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86088
86089 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86090
86091         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86092
86093 2001-03-17  Jim Meyering  <meyering@lucent.com>
86094
86095         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86096         now that the version in autoconf is equivalent.
86097         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86098
86099         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86100         Suggestion from Akim Demaille.
86101
86102         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86103         (jm_PREREQ_TEMPNAME): New function.
86104
86105 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86106
86107         * lib/tempname.c (uint64_t): Define to uintmax_t if
86108         not defined, and if UINT64_MAX is not defined.
86109         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86110         Reported by John David Anglin.
86111
86112 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86113
86114         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86115         resolve alias if codeset is empty.
86116         * lib/config.charset (BeOS): Use wildcard syntax.
86117
86118 2001-03-13  Jim Meyering  <meyering@lucent.com>
86119
86120         * lib/path-concat.c (path_concat)
86121         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86122         concatenating e.g., `C:' and `foo'.
86123         From Bruno Haible.
86124
86125 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86126
86127         * lib/localcharset.c (locale_charset): Don't use
86128         setlocale(LC_CTYPE,NULL). Don't return NULL.
86129         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86130
86131 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86132
86133         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86134         support for DOS/DJGPP.
86135
86136 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86137
86138         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86139         lacks mkstemp.  Compile our own tempname.c if we compile our own
86140         mkstemp.c, as mkstemp relies on tempname.
86141
86142 2001-03-01  Jim Meyering  <meyering@lucent.com>
86143
86144         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86145         AH_VERBATIM really does output its argument verbatim.
86146
86147 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86148
86149         * lib/Makefile.am (libfetish_a_SOURCES):
86150         Add dup-safer.c, fopen-safer.c.
86151         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86152
86153         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86154         * lib/unistd-safer.h: New files.
86155
86156 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86157
86158         The mkstemp replacement is taken from glibc 2.2.2, with some
86159         portability fixes for use outside glibc, as follows:
86160
86161         * lib/tempname.c (struct_stat64): New macro.
86162         (direxists, __gen_tempname): Use it.
86163         This avoids a portability problem with Solaris 8.
86164
86165         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86166         (<stddef.h>, <stdint.h>, <string.h>):
86167         Include only if STDC_HEADERS || _LIBC.
86168         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86169         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86170         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86171         (__set_errno): Define this macro if <errno.h> doesn't.
86172         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86173         Define these macros if <stdio.h> doesn't.
86174         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86175         Define these macros if <sys/stat.h>
86176         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86177         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86178         __xstat64): Define if not _LIBC.
86179         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86180         (__gen_tempname): Invoke gettimeofday only if
86181         HAVE_GETTIMEOFDAY || _LIBC;
86182         otherwise, fall back on plain "time".
86183         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86184
86185         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86186
86187         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86188
86189 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86190
86191         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86192
86193 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86194
86195         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86196         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86197         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86198         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86199
86200 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86201
86202         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86203         Remove workaround macros for hosts that have mbrtowc but not
86204         mbstate_t, as we now insist on proper declarations for both
86205         before using mbrtowc.
86206
86207 2001-02-17  Jim Meyering  <meyering@lucent.com>
86208
86209         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86210         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86211         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86212         UnixWare 7.1.1.
86213
86214         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86215         rather than AC_CACHE_VAL.
86216
86217 2001-02-17  Jim Meyering  <meyering@lucent.com>
86218
86219         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86220         around included file name.
86221
86222         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86223
86224         * lib/strftime.c: Update from GNU libc (the only changes were to
86225         comments).
86226
86227 2001-02-17  Jim Meyering  <meyering@lucent.com>
86228
86229         * lib/regex.c: Update from libc.
86230
86231 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86232
86233         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86234         clash.
86235
86236 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86237
86238         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86239         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86240         Reported by Mark Hounschell via Paul Eggert.
86241
86242 2001-02-07  Jim Meyering  <meyering@lucent.com>
86243
86244         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86245
86246 2001-02-05  Jim Meyering  <meyering@lucent.com>
86247
86248         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86249         it includes the patch required for `large file' support with at least
86250         HP-UX's 10.20 /bin/cc.
86251
86252 2001-02-03  Jim Meyering  <meyering@lucent.com>
86253
86254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86255         AS_IF, now that it works once again (mysteriously).
86256         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86257
86258 2001-01-30  Jim Meyering  <meyering@lucent.com>
86259
86260         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86261         * m4/chown.m4: Rename conftestchown to conftest.chown.
86262         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86263         s/conftestdir2/conftest.d2/.
86264         * m4/utimes.m4: s/conftestdata/conftest.data/
86265         Inspired by Pavel Roskin's change in autoconf.
86266
86267 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86268
86269         * lib/config.charset: Update for FreeBSD 4.2.
86270
86271 2001-01-27  Jim Meyering  <meyering@lucent.com>
86272
86273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86274         a use of AS_IF.
86275         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86276
86277 2001-01-26  Jim Meyering  <meyering@lucent.com>
86278
86279         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86280         quotearg.c includes it.
86281
86282 2001-01-26  Jim Meyering  <meyering@lucent.com>
86283
86284         * lib/quotearg.c: Include stddef.h.
86285         * lib/quote.c: Include stddef.h.
86286         Reported by Axel Kittenberger.
86287
86288         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86289         line in double quotes so that it evokes a better diagnostic.
86290         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86291         Reported by Axel Kittenberger.
86292
86293 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86294
86295         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86296         as if it was a `charset'.
86297
86298 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86299
86300         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86301         has const.
86302
86303 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86304
86305         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86306         to avoid a warning.  Add back 'const' to inptr.
86307
86308 2001-01-20  Jim Meyering  <meyering@lucent.com>
86309
86310         Be sure that headers are checked before used in code compiled
86311         for the type checks.
86312         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86313         In place of that, invoke jm_CHECK_ALL_TYPES.
86314         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86315         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86316         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86317         The check for ssize_t was mistakenly run before the test for unistd.h.
86318
86319         The configure-time check for stdbool.h was missing.
86320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86321         (jm_PREREQ_HASH): New function.
86322
86323 2001-01-17  Jim Meyering  <meyering@lucent.com>
86324
86325         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86326         for autoconf-2.49c.
86327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86328
86329 2001-01-16  Jim Meyering  <meyering@lucent.com>
86330
86331         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86332         From Bruno Haible.
86333
86334 2001-01-14  Jim Meyering  <meyering@lucent.com>
86335
86336         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86337         foo and bar.  Create conftestdir/ in the script, not in the C code.
86338         Remove directories in the script, not in the C code.
86339         Remove conftestdir{,2} before trying to create the directory.
86340         Make the entire configure script fail if the mkdir fails.
86341
86342 2001-01-14  Jim Meyering  <meyering@lucent.com>
86343
86344         * lib/rename.c: New file.  From Volker Borchert.
86345         Include stdlib.h, string.h or strings.h, and xalloc.h.
86346         Use strip_trailing_slashes rather than open-coding it.
86347
86348 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86349
86350         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86351
86352 2001-01-03  Jim Meyering  <meyering@lucent.com>
86353
86354         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86355         of local `inptr' to avoid warning with some system declarations of
86356         iconv.
86357
86358 2001-01-02  Volker Borchert  <bt@teknon.de>
86359
86360         * m4/rename.m4: New file.
86361         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86362
86363 2001-01-01  Jim Meyering  <meyering@lucent.com>
86364
86365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86366         even on systems with utmpx.h.  It's necessary for the declaration of
86367         utmp's ut_user member.  Reported by Andreas Jaeger.
86368
86369         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86370         available. They are required for the declarations of getgrgid and
86371         getpwuid resp.
86372         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86373         Reported by Andreas Jaeger.
86374
86375 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86376
86377         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86378         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86379         so `make install' also works in VPATH builds.
86380
86381 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86382
86383         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86384         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86385         can be used in subdirectories.
86386
86387 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86388
86389         * lib/modechange.c: Do not assume that mode_t uses the
86390         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86391         the other-execute bit of FOO even if S_IXOTH != 1.
86392
86393         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86394         WOTH, XOTH, ALLM): New macros.
86395         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86396          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86397         Use them.
86398         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86399         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86400         (mode_compile):
86401         No need to use uintmax_t; unsigned long is long enough.
86402         Don't bother to get suffix since we don't use it.
86403
86404 2000-12-26  Jim Meyering  <meyering@lucent.com>
86405
86406         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86407         better with autoheader.
86408
86409 2000-12-24  Jim Meyering  <meyering@lucent.com>
86410
86411         * lib/hash.c (is_prime): Return explicit boolean values.
86412         (hash_get_first): Return NULL to appease Irix5.6's 89.
86413         Reported by Nelson Beebe.
86414
86415 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86416
86417         * lib/localcharset.c (locale_charset): Add support for Win32.
86418
86419 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86420
86421         * lib/physmem.h, lib/physmem.c: New files.
86422
86423         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86424         (noinst_HEADERS): Add physmem.h.
86425
86426         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86427         't' for compatibility with Solaris 8 sort.
86428
86429 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86430
86431         * lib/config.charset: Add support for BeOS.
86432
86433 2000-12-17  Jim Meyering  <meyering@lucent.com>
86434
86435         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86436         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86437
86438 2000-12-16  Jim Meyering  <meyering@lucent.com>
86439
86440         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86441         N and M) would have treated it like `chown N:N FILE'.
86442
86443         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86444
86445 2000-12-16  Jim Meyering  <meyering@lucent.com>
86446
86447         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86448         SHELLS_FILE to a file name that's useful on djgpp systems.
86449         Include stdlib.h.
86450         (ADDITIONAL_DEFAULT_SHELLS): Define.
86451         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86452         Based mostly on a patch from Prashant TR.
86453
86454 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86455
86456         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86457         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86458         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86459
86460 2000-12-08  Andreas Schwab  <schwab@suse.de>
86461
86462         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86463         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86464
86465 2000-12-07  Jim Meyering  <meyering@lucent.com>
86466
86467         * lib/stripslash.c (ISSLASH): Define.
86468         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86469         `/'.
86470         From Prashant TR.
86471
86472         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86473         (dir_name_r): Declare this function as static.
86474         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86475         manifest itself on a name containing a mix of slashes and
86476         backslashes.
86477         Make this function work with names starting with a DOS-style
86478         drive letter and colon prefix.
86479         (dir_name): Append `.' if necessary.
86480         Based mostly on patches from Prashant TR and Eli Zaretskii.
86481
86482         * lib/dirname.h (dir_name_r): Remove prototype.
86483
86484 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86485
86486         * m4/off_t-format.m4: Remove this file.
86487         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86488
86489 2000-12-06  Jim Meyering  <meyering@lucent.com>
86490
86491         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86492         replacement strtoull, we may well need the replacement strtoul, too.
86493         Check for declarations of strtoul and strtoull.
86494         Check for strtol.  Mainly as a cue to cause automake to include
86495         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86496         Check for limits.h -- strtol.c needs it.
86497
86498 2000-12-05  Jim Meyering  <meyering@lucent.com>
86499
86500         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86501
86502 2000-12-04  Jim Meyering  <meyering@lucent.com>
86503
86504         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86505         Also include memory.h, stdlib.h, unistd.h if appropriate.
86506         Reported by Andreas Jaeger (conflicting declaration of malloc).
86507
86508 2000-12-02  Jim Meyering  <meyering@lucent.com>
86509
86510         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86511         * m4/jm-macros.m4 (jm_MACROS): require it.
86512
86513 2000-12-02  Jim Meyering  <meyering@lucent.com>
86514
86515         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86516
86517 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86518
86519         * lib/memrchr.c: Include <config.h> before any system include file.
86520
86521 2000-11-30  Jim Meyering  <meyering@lucent.com>
86522
86523         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86524
86525 2000-11-30  Jim Meyering  <meyering@lucent.com>
86526
86527         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86528
86529 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86530
86531         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86532
86533 2000-11-26  Jim Meyering  <meyering@lucent.com>
86534
86535         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86536
86537 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86538
86539         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86540         size of (size_t) -1; it's not portable.
86541
86542 2000-11-17  Jim Meyering  <meyering@lucent.com>
86543
86544         * lib/strstr.c: Update from GNU libc.
86545
86546 2000-11-17  Akim Demaille  <akim@epita.fr>
86547
86548         * lib/obstack.h: Formatting changes.
86549         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86550         prevent type checking.
86551         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86552         cast the value to (void *): assigning a `foo *' to a `void *'
86553         variable is valid.
86554         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86555
86556 2000-11-16  Jim Meyering  <meyering@lucent.com>
86557
86558         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86559
86560 2000-11-11  Jim Meyering  <meyering@lucent.com>
86561
86562         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86563
86564 2000-11-10  Jim Meyering  <meyering@lucent.com>
86565
86566         * lib/obstack.h: Update from GNU libc.
86567         * lib/obstack.c: Likewise.
86568
86569 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86570
86571         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86572
86573 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86574
86575         * lib/getusershell.c (setusershell): Use rewind rather than
86576         fseek/fseeko, to avoid configuration hassles with fseeko.
86577         Don't bother opening SHELLS_FILE if shellstream is NULL;
86578         it's not necessary.
86579
86580 2000-11-05  Jim Meyering  <meyering@lucent.com>
86581
86582         * lib/makepath.h (make_dir): Declare.
86583         * lib/makepath.c (make_dir): Remove `static' attribute.
86584         Tweak a comment.
86585
86586 2000-11-04  Jim Meyering  <meyering@lucent.com>
86587
86588         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86589
86590 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86591
86592         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86593         last one in a bucket, advance to the next bucket.
86594
86595 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86596
86597         * lib/fnmatch.c: Do not comment out all the code if we are using
86598         the GNU C library, because in some cases we are replacing buggy
86599         code in the GNU C library itself.
86600
86601 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86602
86603         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86604         (regex_compile): Catch bogus \(\1\).
86605
86606 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86607
86608         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86609         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86610         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86611
86612 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86613
86614         * lib/error.h, getline.h, modechange.h:
86615         Remove "2000" from Copyright line, as the file hasn't been
86616         changed this year other than in the copyright notice.
86617
86618         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86619         was changed this year.
86620
86621 2000-10-29  Jim Meyering  <meyering@lucent.com>
86622
86623         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86624         renaming.
86625         * m4/ls-mntd-fs.m4: Likewise
86626
86627 2000-10-29  Jim Meyering  <meyering@lucent.com>
86628
86629         * lib/xstat.in: Fix grammar in comment.
86630
86631 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86632
86633         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86634         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86635         doesn't define __restrict_arr.
86636
86637 2000-10-28  Jim Meyering  <meyering@lucent.com>
86638
86639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86640         (jm_PREREQ_MEMCHR): New function.
86641
86642 2000-10-28  Jim Meyering  <meyering@lucent.com>
86643
86644         * lib/memchr.c: Update from libc.
86645         Adjust for portability:
86646         [HAVE_STDLIB_H]: Include stdlib.h.
86647         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86648         Undef __memchr, too.
86649         [!weak_alias]: Define __memchr to memchr.
86650
86651         * lib/regex.c: Update from libc.
86652         * lib/regex.h: Likewise.
86653         * lib/getopt1.c: Likewise.
86654         * lib/memcmp.c: Likewise.
86655
86656         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86657         Avoid using fseek, when possible -- it's broken by design.
86658         Patch by Ulrich Drepper.
86659
86660 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86661
86662         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86663         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86664         Giving in to popular pressure to shut up the compiler with casts.
86665
86666 2000-10-26  Jim Meyering  <meyering@lucent.com>
86667
86668         * lib/strftime.c: Update from libc.
86669
86670 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86671
86672         * regex.c: More `unsigned char' -> `re_char' changes.
86673         Also change several `int' into `re_wchar_t'.
86674         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86675         (PUSH_FAILURE_POINTER): Don't cast any more.
86676         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86677         We want GCC to complain, since this piece of code makes
86678         re_match non-reentrant, which *should* be fixed.
86679         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86680         (EXTEND_BUFFER): Use RETALLOC.
86681         (SET_LIST_BIT): Don't cast.
86682         (re_wchar_t): New type.
86683         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86684         that those two functions will always properly return.
86685         (IMMEDIATE_QUIT_CHECK): Cast to void.
86686         (analyse_first): Use recursion rather than an explicit stack.
86687         (re_compile_fastmap): Can't fail anymore.
86688         (re_search_2): Don't check re_compile_fastmap for failure.
86689         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86690         Now also sets the new value (passed in a new argument).
86691         (re_match_2_internal): Use it.
86692         Also, use a new var `reg' of type size_t when looping through regs
86693         rather than reuse the inappropriate `mcnt'.
86694
86695 2000-10-25  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/obstack.c: Update from libc.
86698
86699 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86700
86701         * regex.c (regex_compile): Change the way of handling a range from
86702         a char less than 256 to a char not less than 256.
86703
86704 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86705
86706         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86707         NT-Emacs only.
86708         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86709         so that re_search functions only quit when callers expect them to.
86710
86711 2000-10-23  Jim Meyering  <meyering@lucent.com>
86712
86713         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86714         wrong.  That set_locale call must not have any side effects.
86715         From Paul Eggert.
86716
86717 2000-10-22  Jim Meyering  <meyering@lucent.com>
86718
86719         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86720         [CYCLIC]: Remove now-unused definition.
86721
86722         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86723         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86724         Suggestion from Ulrich Drepper.
86725
86726 2000-10-21  Jim Meyering  <meyering@lucent.com>
86727
86728         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86729         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86730         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86731
86732 2000-10-21  Jim Meyering  <meyering@lucent.com>
86733
86734         * lib/dirname.c (memrchr): Declare if necessary.
86735         (dir_name): Remove the restriction that there be no
86736         trailing slashes.  Now, this code skips past them, effectively
86737         ignoring them.
86738         [TEST_DIRNAME] (main): New unit tests.
86739
86740         * lib/memrchr.c: New file from GNU libc.
86741         Undef __memrchr, too.
86742         [!weak_alias]: Define __memrchr to memrchr.
86743         Guard weak_alias use with `#ifdef weak_alias'.
86744
86745 2000-10-21  Jim Meyering  <meyering@lucent.com>
86746
86747         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86748         (dir_name): Use dir_name_r.
86749         * lib/dirname.h (dir_name_r): Declare it.
86750
86751 2000-10-17  Jim Meyering  <meyering@lucent.com>
86752
86753         * lib/quote.h (PARAMS): Define and use.
86754         Reported by Akim Demaille.
86755
86756         * lib/getopt.c: Update from libc.
86757
86758 2000-10-16  Jim Meyering  <meyering@lucent.com>
86759
86760         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86761         setlocale.
86762         From Jan Fedak.
86763
86764 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86765
86766         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86767
86768 2000-09-25  Jim Meyering  <meyering@lucent.com>
86769
86770         * lib/md5.h (rol): Define (from GnuPG).
86771
86772         * lib/sha.c: Give credit (GnuPG) where due.
86773         (M): Use rol rather than open-coding it.
86774         Add a FIXME comment.
86775
86776 2000-09-21  Jim Meyering  <meyering@lucent.com>
86777
86778         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86779         Reported by Michael Stone.
86780
86781 2000-09-20  Jim Meyering  <meyering@lucent.com>
86782
86783         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86784         (noinst_HEADERS): Add sha.h.
86785         Based on code from Scott G. Miller and from GnuPG.
86786
86787 2000-09-18  Jim Meyering  <meyering@lucent.com>
86788
86789         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86790         LIBS. Otherwise, everyone ends up linking with -lelf for some
86791         configurations.
86792         Reported by Mike Stone.
86793
86794 2000-09-15  Jim Meyering  <meyering@lucent.com>
86795
86796         * lib/regex.c: Update from libc.
86797
86798 2000-09-10  Jim Meyering  <meyering@lucent.com>
86799
86800         * lib/getopt.c (_getopt_internal): Update from glibc.
86801
86802 2000-09-09  Jim Meyering  <meyering@lucent.com>
86803
86804         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86805         think it should be used as a general replacement for isascii.
86806         * lib/fnmatch.c: Likewise.
86807         * lib/mbswidth.c: Likewise
86808         * lib/regex.c: Likewise.
86809
86810         Don't use atoi.
86811         * lib/userspec.c: Include sys/param.h and limits.h.
86812         Include xstrtol.h.
86813         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86814         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86815         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86816         UID, GID.  Check range.
86817
86818 2000-09-06  Jim Meyering  <meyering@lucent.com>
86819
86820         * lib/getopt.c (_getopt_internal): Update from glibc.
86821
86822 2000-08-30  Jim Meyering  <meyering@lucent.com>
86823
86824         * lib/strftime.c: Merge in changes from GNU libc.
86825
86826 2000-08-26  Jim Meyering  <meyering@lucent.com>
86827
86828         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86829         * m4/fpending.m4: New file.
86830
86831 2000-08-26  Jim Meyering  <meyering@lucent.com>
86832
86833         * lib/closeout.c: Include "__fpending.h".
86834         (close_stdout_status): Return right away if there's nothing to flush.
86835
86836         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86837         * lib/__fpending.c: New file.
86838         * lib/__fpending.h: New file.
86839
86840 2000-08-20  Jim Meyering  <meyering@lucent.com>
86841
86842         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86843         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86844         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86845
86846 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86847
86848         Improve fileutils installation on systems where running
86849         programs (like install) can't be unlinked.
86850         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86851         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86852
86853 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86854
86855         Standardize on "memory exhausted" instead of "Memory exhausted"
86856         or "virtual memory exhausted".
86857         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86858         "virtual memory exhausted".
86859         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86860         our own message.
86861         * lib/userspec.c (parse_user_spec): Likewise.
86862         * lib/bumpalloc.h: comment fix
86863         * lib/same.c, userspec.c: Include xalloc.h.
86864
86865         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86866         not char *const and pointing to a constant array.
86867         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86868         (xrealloc): Comment fix.
86869
86870         * lib/userspec.c (parse_user_spec):
86871         Don't translate a message until just before returning,
86872         to avoid unnecessary translation.
86873
86874 2000-08-07  Jim Meyering  <meyering@lucent.com>
86875
86876         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86877         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86878         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86879         getgroups.c, gethostname.c, getopt.h, group-member.c,
86880         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86881         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86882         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86883         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86884         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86885         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86886         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86887         yesno.c: Back out Copyright date changes for each file with no change
86888         this year.  This eases coordination with other programs using the same
86889         source code modules.  From Paul Eggert.
86890
86891 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86892
86893         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86894         not char, for compatibility with glibc 2.1.3 strftime.c.
86895
86896 2000-08-03  Greg McGary  <greg@mcgary.org>
86897
86898         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86899         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86900         (EXTEND_BUFFER): Use them.
86901
86902 2000-08-01  Jim Meyering  <meyering@lucent.com>
86903
86904         * lib/dirname.c (ISSLASH): Define.
86905         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86906         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86907         both `\' and `/' may be use as path separators.
86908         Based on a patch from Prashant TR.
86909
86910 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86911
86912         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86913         slot vector a constant, since it might get modified.
86914
86915 2000-07-31  Jim Meyering  <meyering@lucent.com>
86916
86917         * lib/xmalloc.c: Use `virtual memory exhausted', not
86918         `Memory exhausted'.
86919         * lib/obstack.c (print_and_abort): Likewise.
86920
86921 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86922
86923         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86924         buffer, so that the caller can always quote one small
86925         component of a "memory exhausted" message in slot 0.
86926         From a suggestion by Jim Meyering.
86927
86928 2000-07-30  Jim Meyering  <meyering@lucent.com>
86929
86930         * lib/makepath.c (make_path): Quote the other instance, too.
86931
86932         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86933         (STATIC_BUF_SIZE): Define.
86934         (quotearg_n_options): Use only statically allocated storage when
86935         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86936         than STATIC_BUF_SIZE.
86937
86938 2000-07-29  Jim Meyering  <meyering@lucent.com>
86939
86940         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86941         * lib/dirname.c (dir_name): Likewise.
86942
86943         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86944         `/'.
86945
86946         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86947         (dir_name): Assert that there are no trailing slashes.
86948
86949 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86950
86951         * lib/mbswidth.h (mbswidth): Add a flags argument.
86952         (mbswidth): New declaration.
86953         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86954         * lib/mbswidth.c (mbswidth): Add a flags argument.
86955         (mbsnwidth): New function.
86956
86957 2000-07-24  Jim Meyering  <meyering@lucent.com>
86958
86959         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86960
86961 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86962
86963         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86964
86965 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86966
86967         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86968         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86969         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86970         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86971         invoke multibyte primitives.
86972
86973 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86974
86975         * lib/quotearg.c:
86976         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86977         so that mbstate_t is always defined.
86978
86979         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86980         be 1 in at least one GCC installation, and this configuration
86981         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86982         performance on hosts that have mbrtowc but have only unibyte
86983         locales, but I assume these hosts are rare.
86984
86985 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86986
86987         * lib/mbswidth.c (_XOPEN_SOURCE):
86988         Don't define; this causes problems on Solaris 7.
86989         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86990
86991 2000-07-23  Jim Meyering  <meyering@lucent.com>
86992
86993         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86994         too: getgrgid, getpwuid, getuid.
86995
86996 2000-07-23  Jim Meyering  <meyering@lucent.com>
86997
86998         * lib/basename.c (base_name): Add an assertion.
86999
87000 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87001
87002         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87003         shadow its mbsinit function.
87004
87005 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87006
87007         * lib/mbswidth.h: New file.
87008         * lib/mbswidth.c: New file.
87009         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87010         (noinst_HEADERS): Add mbswidth.h.
87011
87012 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87013
87014         * lib/config.charset: Add support for FreeBSD. Improve support for
87015         HP-UX and IRIX 6.
87016
87017 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87018
87019         * m4/mbswidth.m4: New file.
87020         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87021
87022 2000-07-15  Jim Meyering  <meyering@lucent.com>
87023
87024         * lib/makepath.c: Include quote.h.
87025         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87026         corresponding argument in a `quote (...)' call.
87027         Give better diagnostics.
87028
87029         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87030         (noinst_HEADERS): Add quote.h.
87031
87032         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87033         from tar's src/misc.c.
87034         * lib/quote.h: New file.  Prototypes for same.
87035
87036 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87037
87038         From a suggestion by Bruno Haible.
87039         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87040         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87041         to decide whether to define the BeOS workaround macro;
87042         this adjusts to the change to AC_MBSTATE_T.
87043
87044 2000-07-14  Jim Meyering  <meyering@lucent.com>
87045
87046         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87047         jm_AC_TYPE_UINTMAX_T.
87048
87049 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87050
87051         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87052
87053         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87054         quotearg_buffer_restyled): Add support for
87055         clocale_quoting_style.  Undo previous change to
87056         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87057         and "{RIGHT QUOTATION MARK}" msgids.
87058
87059 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87060
87061         From a suggestion by Bruno Haible.
87062         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87063         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87064         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87065         and mbstate_t, to a single-part test that simply defines mbstate_t.
87066         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87067         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87068
87069 2000-07-10  Jim Meyering  <meyering@lucent.com>
87070
87071         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87072
87073         * m4/gnu-source.m4: Output to confdefs.h directly.
87074         Suggestion from Akim Demaille.
87075
87076 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87077
87078         The old behavior of quoting `like this' doesn't look good with
87079         newer, ISO-style fonts.  See:
87080         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87081
87082         Instead, quote "like this" by default.  Let the translator
87083         tailor the locale-specific quoting behavior by providing
87084         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87085
87086         * lib/quotearg.c (N_): New macro.
87087         (gettext_default): New function.
87088         (quotearg_buffer_restyled): Use
87089         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87090         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87091
87092 2000-07-09  Jim Meyering  <meyering@lucent.com>
87093
87094         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87095         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87096
87097         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87098         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87099
87100 2000-07-09  Jim Meyering  <meyering@lucent.com>
87101
87102         * lib/Most files: Update copyright dates to include 2000.
87103
87104 2000-07-08  Jim Meyering  <meyering@lucent.com>
87105
87106         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87107         if not defined.
87108         (xgethostname): Remove now-unnecessary #ifdef.
87109         Move declaration of `err' into loop where it's used.
87110
87111 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87112         and Bruno Haible  <haible@clisp.cons.org>
87113
87114         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87115         only if the test for an object-type mbstate_t fails.  This
87116         prevents us from mistakenly reporting that mbstate_t is a
87117         system object type after we "#define mbstate_t int" to work
87118         around its lack.
87119
87120 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87121         and Bruno Haible  <haible@clisp.cons.org>
87122
87123         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87124
87125 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87126
87127         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87128         to strerror_r.
87129         Include <ctype.h> for use of isalpha.
87130
87131 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87132
87133         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87134         by allocating a larger buffer. Test the gethostname return value for
87135         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87136         returns an error and ENAMETOOLONG isn't defined.
87137
87138 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87139
87140         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87141         dimension.
87142
87143 2000-07-04  Jim Meyering  <meyering@lucent.com>
87144
87145         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87146         of the deprecated AC_CHECKING.
87147
87148 2000-07-04  Jim Meyering  <meyering@lucent.com>
87149
87150         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87151         Reported by Bruno Haible.
87152
87153 2000-07-04  Jim Meyering  <meyering@lucent.com>
87154
87155         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87156         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87157         lacks mbrtowc.
87158
87159 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87160
87161         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87162         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87163
87164 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87165         and Bruno Haible  <haible@clisp.cons.org>
87166
87167         * lib/quotearg.c (mbrtowc):
87168         Assign to *pwc, and return 1 only if result is nonzero.
87169         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87170
87171 2000-07-03  Jim Meyering  <meyering@lucent.com>
87172
87173         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87174
87175 2000-07-03  Jim Meyering  <meyering@lucent.com>
87176
87177         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87178         This is necessary to get a definition of e.g., UTMP_FILE on
87179         HP-UX 10.20.
87180         From Bob Proulx.
87181
87182 2000-07-02  Jim Meyering  <meyering@lucent.com>
87183
87184         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87185
87186         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87187         AC_LIBOBJ(function_name).
87188         * m4/chown.m4: Likewise.
87189         * m4/fnmatch.m4: Likewise.
87190         * m4/ftruncate.m4: Likewise.
87191         * m4/getgroups.m4: Likewise.
87192         * m4/getline.m4: Likewise.
87193         * m4/group-member.m4: Likewise.
87194         * m4/jm-macros.m4: Likewise.
87195         * m4/lstat.m4: Likewise.
87196         * m4/malloc.m4: Likewise.
87197         * m4/memcmp.m4: Likewise.
87198         * m4/nanosleep.m4: Likewise.
87199         * m4/putenv.m4: Likewise.
87200         * m4/realloc.m4: Likewise.
87201         * m4/regex.m4: Likewise.
87202         * m4/stat.m4: Likewise.
87203         * m4/strftime.m4: Likewise.
87204
87205 2000-07-02  Jim Meyering  <meyering@lucent.com>
87206
87207         * lib/quotearg.c (mbstate_t): Don't define here.
87208
87209 2000-07-02  Jim Meyering  <meyering@lucent.com>
87210
87211         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87212
87213 2000-07-01  Jim Meyering  <meyering@lucent.com>
87214
87215         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87216
87217 2000-07-01  Jim Meyering  <meyering@lucent.com>
87218
87219         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87220         problem.
87221
87222 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87223
87224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87225         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87226
87227 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87228
87229         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87230         per change in ../m4/ls-mntd-fs.m4.
87231         (read_filesystem_list): Ignore symbolic links.
87232
87233 2000-06-29  Jim Meyering  <meyering@lucent.com>
87234
87235         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87236         for declaration of strcmp.
87237
87238         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87239
87240         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87241         Avoid warning by casting result to `char *' to remove `const'.
87242
87243 2000-06-28  Jim Meyering  <meyering@lucent.com>
87244
87245         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87246         included by quotearg.c, for which we perform this test.  From
87247         Bruno Haible.
87248
87249 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87250
87251         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87252         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87253         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87254
87255 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87256
87257         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87258
87259 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87260
87261         savedir now sets errno on failure and invokes xmalloc to get memory.
87262         Fix a couple of other minor bugs while we're at it.
87263
87264         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87265         (NAMLEN): Remove macro.
87266         (malloc, realloc): Remove decls.
87267         (stpcpy): Likewise.
87268         ("xalloc.h"): Include.
87269         (NAME_SIZE_DEFAULT): New macro.
87270         (savedir): Use xmalloc / xrealloc to allocate memory.
87271         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87272         Skip "" directory entries.
87273         Use strlen to calculate directory entry length, since the old method
87274         is rarely used these days and isn't worth supporting.
87275         Don't use a pointer after freeing it.
87276         Check for integer overflow when calculating allocation size.
87277         Use memcpy to copy entries, instead of stpcpy.
87278         Set errno properly when returning NULL.
87279         Check for readdir error.
87280
87281 2000-06-26  Jim Meyering  <meyering@lucent.com>
87282
87283         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87284
87285 2000-06-25  Jim Meyering  <meyering@lucent.com>
87286
87287         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87288         Linux header bug when _XOPEN_SOURCE is defined to 500.
87289
87290 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87291
87292         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87293         deficiency.
87294
87295 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87296
87297         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87298         Include xalloc.h.
87299         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87300
87301 2000-06-24  Jim Meyering  <meyering@lucent.com>
87302
87303         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87304         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87305         for which strerror does return char*, but which lacks a conveniently
87306         accessible declaration of the function.  If the compile-test says
87307         strerror_r doesn't work, then resort to a `run'-test that works on
87308         BeOS and segfaults on DEC Unix.
87309
87310 2000-06-24  Jim Meyering  <meyering@lucent.com>
87311
87312         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87313
87314 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87315
87316         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87317         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87318
87319 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87320
87321         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87322         (mbrtowc, mbstate_t): Define substitutes if
87323         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87324         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87325         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87326
87327 2000-06-23  Jim Meyering  <meyering@lucent.com>
87328
87329         * m4/afs.m4: Add missing AC_MSG_RESULT.
87330         Reported by Bruno Haible.
87331
87332         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87333         Suggestion from Bruno Haible.
87334
87335 2000-06-23  Jim Meyering  <meyering@lucent.com>
87336
87337         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87338
87339 2000-06-21  Jim Meyering  <meyering@lucent.com>
87340
87341         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87342
87343 2000-06-21  Jim Meyering  <meyering@lucent.com>
87344
87345         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87346         (noinst_HEADERS): Add getstr.h.
87347
87348         * lib/getline.c (getstr): Move into a separate file.
87349         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87350         the following changes: new parameter, delim2; both delim[12]
87351         parameters have type `int', not `char'.  The latter would lose
87352         with 8-bit delimiters.
87353         * lib/getstr.h: New file.
87354
87355 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87356
87357         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87358         than 1024, return a memory chunk of least possible size, instead
87359         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87360         Use free/xmalloc instead of xrealloc to avoid copying for very long
87361         paths.
87362
87363 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87364
87365         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87366         the empty string.
87367
87368 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87369
87370         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87371         address, not strdup.  Include <stdlib.h> and don't declare free().
87372
87373 2000-06-19  Jim Meyering  <meyering@lucent.com>
87374
87375         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87376
87377 2000-06-18  Jim Meyering  <meyering@lucent.com>
87378
87379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87380
87381         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87382         `checking whether...' message to be consistent with that of the
87383         lstat test.
87384
87385 2000-06-18  Jim Meyering  <meyering@lucent.com>
87386
87387         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87388         Besides, these days every porting target provides a mkdir function.
87389
87390         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87391         needed. (this snippet comes from src/system.h).
87392
87393 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87394
87395         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87396
87397 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87398
87399         * lib/human.c (adjust_value): New function.
87400         (human_readable_inexact): Apply rounding style even when
87401         printing approximate values.
87402
87403 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87404
87405         * lib/human.c (human_readable_inexact): Allow an input block
87406         size that is not a multiple of the output block size, and vice versa.
87407         Reported by Piergiorgio Sartor.
87408
87409 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87410
87411         * lib/getdate.y (get_date): Apply relative times after time
87412         zone indicator, not before.  Reported by Todd A. Jacobs.
87413
87414 2000-06-13  Jim Meyering  <meyering@lucent.com>
87415
87416         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87417
87418         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87419
87420 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87421
87422         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87423
87424 2000-06-12  Jim Meyering  <meyering@lucent.com>
87425
87426         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87427         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87428         optional argument.
87429         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87430         the optional argument, `lib'.
87431
87432 2000-06-08  Jim Meyering  <meyering@lucent.com>
87433
87434         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87435
87436 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87437
87438         Rewrite largefile configuration so that we don't need to run
87439         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87440         AC_CANONICAL_HOST in configure.in -- jmm]
87441
87442         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87443         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87444         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87445         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87446         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87447         All uses changed.
87448         Instead of inspecting the output of getconf, try to compile the
87449         test program without and with the macro definition.
87450         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87451         for getconf.  Instead, check for the needed flags by compiling
87452         test programs.
87453
87454 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87455
87456         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87457
87458 2000-06-04  Jim Meyering  <meyering@lucent.com>
87459
87460         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87461         SunOS 4.1.4 for which gid_t is an unsigned type.
87462
87463 2000-06-03  Jim Meyering  <meyering@lucent.com>
87464
87465         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87466         now that autoconf requires that.
87467
87468         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87469         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87470         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87471
87472 2000-06-03  Jim Meyering  <meyering@lucent.com>
87473
87474         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87475
87476 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87477
87478         * m4/glibc21.m4: New file.
87479         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87480
87481 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87482
87483         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87484         newer, don't install charset.alias.
87485         * lib/config.charset: Change the Linux/glibc rules so they become empty
87486         on glibc-2.1 or newer.
87487
87488 2000-06-02  Jim Meyering  <meyering@lucent.com>
87489
87490         * lib/mountlist.c: Back out last change.  Instead, do this...
87491         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87492         me_dummy member using the same `ignore'-testing code.
87493         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87494         fs_type strings.
87495         From Mark D. Roth.
87496
87497 2000-05-29  Jim Meyering  <meyering@lucent.com>
87498
87499         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87500         mounts with the `ignore' attribute.  Based on a patch from
87501         Mark D. Roth.
87502
87503 2000-05-28  Jim Meyering  <meyering@lucent.com>
87504
87505         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87506         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87507         * m4/stat.m4: Likewise.
87508         * m4/lstat.m4: Likewise.
87509         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87510
87511         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87512         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87513
87514 2000-05-26  Jim Meyering  <meyering@lucent.com>
87515
87516         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87517
87518 2000-05-24  Jim Meyering  <meyering@lucent.com>
87519
87520         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87521         autoconf requires that.
87522         * m4/lib-check.m4: Likewise.
87523         * m4/jm-macros.m4: Likewise.
87524         * m4/strftime.m4: Likewise.
87525
87526         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87527         AC_CHECK_DECLS, now that autoconf requires that.
87528
87529 2000-05-22  Jim Meyering  <meyering@lucent.com>
87530
87531         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87532         * m4/lstat.m4: Likewise.
87533
87534 2000-05-22  Jim Meyering  <meyering@lucent.com>
87535
87536         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87537
87538 2000-05-20  Jim Meyering  <meyering@lucent.com>
87539
87540         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87541         (jm_PREREQ): Use it.
87542
87543 2000-05-18  Jim Meyering  <meyering@lucent.com>
87544
87545         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87546         back, too, since it may have been modified by allocate_entry.
87547         (hash_delete): Rewrite to use neither the assignment operator
87548         nor the comma operator in an if-expression.
87549
87550 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87551
87552         * lib/closeout.c:
87553         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87554         Remove; no longer needed.
87555         "quotearg.h": Add include.
87556         (file_name): Do not bother to explicitly initialize to NULL; it's less
87557         efficient on some hosts.
87558         (close_stdout_status): Remove test as to whether stdout was already
87559         closed; it breaks for the case "echo x | sort >&-".
87560         Quote file name colons.
87561         Do not assume that _("write error") lacks format strings.
87562
87563 2000-05-15  Jim Meyering  <meyering@lucent.com>
87564
87565         * lib/version-etc.c (version_etc_copyright): Update the copyright
87566         string used in all --version output.
87567
87568 2000-05-14  Jim Meyering  <meyering@lucent.com>
87569
87570         * lib/closeout.c (close_stdout_set_file_name): New function.
87571         (close_stdout_status): Use new file-scoped global.
87572         Return right away if fstat says the stdout file descriptor is invalid.
87573         * lib/closeout.h (close_stdout_set_file_name): Declare.
87574
87575 2000-05-10  Jim Meyering  <meyering@lucent.com>
87576
87577         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87578         (close_stdout_set_status): New function.
87579         * lib/closeout.h (close_stdout_set_status): Declare.
87580
87581 2000-05-09  Jim Meyering  <meyering@lucent.com>
87582
87583         * m4/gettext.m4: Rename this...
87584         * m4/libintl.m4: ...to this.
87585
87586 2000-05-08  Jim Meyering  <meyering@lucent.com>
87587
87588         * lib/long-options.c: Don't include closeout.h.
87589         (parse_long_options): Don't call close_stdout for --version.
87590
87591 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87592
87593         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87594         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87595         2.1.3 bug.  This avoids a clash when files like regex.c define
87596         _GNU_SOURCE.
87597
87598 2000-05-06  Jim Meyering  <meyering@lucent.com>
87599
87600         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87601         (AC_REPLACE_FUNCS): Add strnlen.
87602
87603         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87604         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87605
87606         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87607         AC_SEARCH_LIBS call for nanosleep.
87608         (LIB_NANOSLEEP): Set and AC_SUBST.
87609
87610 2000-05-06  Jim Meyering  <meyering@lucent.com>
87611
87612         * lib/strnlen.c: Undefine __strnlen and strnlen.
87613         [!weak_alias]: Define __strnlen to strnlen.
87614
87615         * lib/atexit.c: New file, from libiberty.
87616
87617 2000-05-06  Jim Meyering  <meyering@lucent.com>
87618
87619         * lib/closeout.c (close_stdout_status): Also check for errors on the
87620         stderr stream.
87621
87622 2000-05-05  Jim Meyering  <meyering@lucent.com>
87623
87624         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87625         AC_SEARCH_LIBS call for clock_gettime.
87626         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87627
87628         * m4/search-libs.m4: Update from autoconf.
87629
87630         su doesn't work on Solaris 2.6.
87631         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87632         <shadow.h>.  Reported by Dragos Harabor.
87633
87634 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87635
87636         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87637         memcpy instead of xmalloc, xrealloc, path_concat.
87638         (locale_charset): Treat empty environment variables as absent.
87639         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87640
87641 2000-05-04  Jim Meyering  <meyering@lucent.com>
87642
87643         * lib/getopt.c: Update from glibc.
87644         * lib/obstack.c: Likewise.
87645         * lib/obstack.h: Likewise.
87646         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87647         file
87648
87649         * lib/regex.h: Likewise.
87650         * lib/strndup.c: Likewise.
87651         * lib/strnlen.c: New file, from glibc.
87652
87653 2000-05-03  Jim Meyering  <meyering@lucent.com>
87654
87655         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87656
87657 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87658
87659         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87660         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87661         compile-time test, rather than inspecting host and OS, to
87662         decide whether to define _LARGEFILE_SOURCE.
87663
87664 2000-05-01  Jim Meyering  <meyering@lucent.com>
87665
87666         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87667
87668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87669         Based on a patch from Bruno Haible.
87670
87671 2000-05-01  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87674
87675 2000-04-29  Jim Meyering  <meyering@lucent.com>
87676
87677         * lib/path-concat.c: Declare strdup only if it's not defined.
87678         * lib/canon-host.c: Likewise.
87679
87680 2000-04-28  Jim Meyering  <meyering@lucent.com>
87681
87682         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87683         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87684         is included first, then limits.h is included by locale.h by libintl.h.
87685         From John David Anglin.
87686
87687 2000-04-25  Jim Meyering  <meyering@lucent.com>
87688
87689         * lib/makepath.c (S_IRWXUGO): Define.
87690         (make_path): Always perform explicit chmod if MODE specifies any
87691         of the `special' permission bits.  Prompted by a bug report against
87692         install from Mate Wierdl and Joost van Baal.
87693
87694 2000-04-18  Jim Meyering  <meyering@lucent.com>
87695
87696         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87697         (jm_PREREQ): Use it.
87698
87699 2000-04-18  Jim Meyering  <meyering@lucent.com>
87700
87701         * lib/README: New file.
87702
87703         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87704         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87705
87706 2000-04-17  Jim Meyering  <meyering@lucent.com>
87707
87708         Get it right :-)
87709         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87710         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87711         Suggestion from Akim Demaille.
87712
87713 2000-04-17  Jim Meyering  <meyering@lucent.com>
87714
87715         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87716         the definition of it to rpl_strftime also defined-away the system's
87717         declaration.
87718
87719 2000-04-15  Jim Meyering  <meyering@lucent.com>
87720
87721         Use `C' to denote so-called `contiguous' files, the same way
87722         that tar does.
87723         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87724         (ftypelet): Use S_ISCTG.
87725         From Michael Deutschmann.
87726
87727 2000-04-14  Jim Meyering  <meyering@lucent.com>
87728
87729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87730         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87731         clobbered.
87732
87733 2000-04-14  Jim Meyering  <meyering@lucent.com>
87734
87735         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87736
87737 2000-04-13  Jim Meyering  <meyering@lucent.com>
87738
87739         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87740         AH_VERBATIM to insert required #ifndef into config.h.in.
87741         Suggestion from Akim Demaille.
87742
87743 2000-04-12  Jim Meyering  <meyering@lucent.com>
87744
87745         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87746         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87747         Christian Krackowizer.
87748
87749         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87750         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87751         (AC_SYS_LARGEFILE): Require.
87752         (AM_C_PROTOTYPES): Require.
87753
87754 2000-04-08  Jim Meyering  <meyering@lucent.com>
87755
87756         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87757         names don't conflict.  Reported by Eli Zaretskii.
87758
87759 2000-04-07  Jim Meyering  <meyering@lucent.com>
87760
87761         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87762         sys/types.h, to work around system header problems on AIX 3.2.5.
87763         From Bruno Haible.
87764
87765 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87766
87767         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87768         bug.  Deal with the different error behavior of Irix iconv.
87769
87770 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87771
87772         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87773         IRIX if the installer said otherwise.
87774
87775 2000-04-05  Jim Meyering  <meyering@lucent.com>
87776
87777         Portability tweaks required for ultrix4.3.
87778         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87779         (jm_CHECK_DECLS): Add getutent to the list of functions.
87780         (_jm_DECL_HEADERS): Add utmpx.h.
87781         From John David Anglin.
87782
87783         * m4/strftime.m4: Back out the 2000-04-02 change.
87784         Instead of that change, simply undefine putenv in the test program.
87785
87786 2000-04-05  Jim Meyering  <meyering@lucent.com>
87787
87788         Portability tweaks required for ultrix4.3.
87789         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87790         getutent.
87791         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87792         * lib/canon-host.c: Declare strdup.
87793         * lib/path-concat.c: Likewise.
87794         From John David Anglin.
87795
87796 2000-04-04  Jim Meyering  <meyering@lucent.com>
87797
87798         Be more DOS 8.3-friendly.
87799         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87800         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87801         * lib/Makefile.am: Reflect renaming.
87802         Reported by Eli Zaretskii.
87803
87804         Use a temporary file name that won't clash with `charset.alias'
87805         in the DOS 8.3 name space.
87806         * lib/Makefile.am (charset_tmp): Define.
87807         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87808         (uninstall-local): Likewise.
87809         Reported by Eli Zaretskii.
87810
87811 2000-04-03  Jim Meyering  <meyering@lucent.com>
87812
87813         * m4/gettext.m4: Fix typo in comment.
87814
87815         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87816         textutils/configure.in).  Suggestion from Paul Eggert.
87817         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87818
87819 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87820
87821         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87822         variable in the shell rather than using putenv, which isn't
87823         portable.  This avoids the configure-time inter-test dependency
87824         on the potentially-renamed putenv function.
87825
87826 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87827
87828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87829         before checking struct stat.st_blksize, so that
87830         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87831
87832 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87833
87834         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87835         since strftime.c uses HAVE_STRFTIME to decide whether to use
87836         the underlying strftime.
87837
87838 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87839
87840         * lib/time/strftime.c (my_strftime): Make sure we call the system
87841         strftime, not ourselves, when invoking the underlying strftime.
87842
87843 2000-03-24  Jim Meyering  <meyering@lucent.com>
87844
87845         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87846         (charset_alias): Define.
87847         (install-exec-local): Factor out common code.
87848         (uninstall-local): Split lines longer than 80.
87849         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87850         (SUFFIXES): Define.
87851         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87852         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87853
87854 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87855
87856         * lib/config.charset: Output a line containing "Packages using this
87857         file".
87858         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87859         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87860         ref-del.sed): New rules.
87861
87862 2000-03-17  Jim Meyering  <meyering@lucent.com>
87863
87864         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87865         Otherwise, include <strings.h>
87866
87867 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87868
87869         * lib/unicodeio.c (utf8_wctomb): New function.
87870         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87871         format instead of in UCS-4 with platform dependent endianness.
87872
87873 2000-03-10  Jim Meyering  <meyering@lucent.com>
87874
87875         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87876         From Marco Franzen.
87877
87878 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87879
87880         * lib/savedir.c (savedir): Work even if directory size is
87881         negative; this can happen with some screwy NFS configurations.
87882
87883 2000-03-06  Jim Meyering  <meyering@lucent.com>
87884
87885         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87886         if it's NULL (because we ran out of memory).  From Bruno Haible.
87887
87888 2000-03-05  Jim Meyering  <meyering@lucent.com>
87889
87890         * lib/localcharset.c ("path-concat.h"): Include.
87891         (get_charset_aliases): Use path_concat instead of ANSI string
87892         concatenation.
87893
87894         * lib/unicodeio.h (PARAMS): Define.
87895         Use it to guard prototype.
87896
87897 2000-03-04  Jim Meyering  <meyering@lucent.com>
87898
87899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87900         for lib/localcharset.c.
87901
87902 2000-03-04  Jim Meyering  <meyering@lucent.com>
87903
87904         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87905         installing into it.
87906         (uninstall-local): Uncomment this rule so `make distcheck' works
87907         once again.
87908
87909         * lib/unicodeio.c (<errno.h>): Include it.
87910         (errno): Declare if not defined.
87911
87912         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87913
87914         * lib/config.charset: New version, incorporating remarks from a linux
87915         i18n mailing list.  From Bruno Haible.
87916
87917 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87918
87919         * m4/codeset.m4: New file.
87920         * m4/iconv.m4: New file.
87921         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87922
87923 2000-03-03  Jim Meyering  <meyering@lucent.com>
87924
87925         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87926
87927 2000-03-02  Jim Meyering  <meyering@lucent.com>
87928
87929         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87930         the messages come out on separate lines.
87931
87932         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87933         rather than jm_CHECK_DECLARATIONS.
87934         * m4/decl.m4: Remove now-unused file.
87935
87936         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87937         geteuid.
87938
87939 2000-03-02  Jim Meyering  <meyering@lucent.com>
87940
87941         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87942
87943 2000-03-01  Jim Meyering  <meyering@lucent.com>
87944
87945         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87946         * lib/unicodeio.c: Likewise.
87947
87948 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87949
87950         * lib/config.charset: New file.
87951         * lib/localcharset.c: New file.
87952         * lib/unicodeio.h, lib/unicodeio.c: New files.
87953         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87954         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87955         (noinst_HEADERS): Add unicodeio.h.
87956         (all-local, install-exec-local, charset.alias): New targets.
87957
87958 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87959
87960         * lib/quotearg.c (ALERT_CHAR): New macro.
87961         (quotearg_buffer_restyled): Use it.
87962
87963 2000-02-27  Jim Meyering  <meyering@lucent.com>
87964
87965         * m4/check-decl.m4: Add getenv to the list.
87966
87967 2000-02-27  Jim Meyering  <meyering@lucent.com>
87968
87969         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87970         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87971
87972         * lib/backupfile.c: Guard inclusion of stdlib.h with
87973         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87974         Declare malloc if needed.
87975
87976         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87977         `#ifndef HAVE_DECL..'
87978         now that autoconf always defines the HAVE_DECL_ symbols.
87979         * lib/human.c: Likewise.
87980         * lib/same.c: Likewise.
87981         * lib/strtoumax.c: Likewise.
87982
87983         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87984         declaration check was not run.
87985         * lib/hash.c: Likewise.
87986         * lib/human.c: Likewise.
87987         * lib/same.c: Likewise.
87988         * lib/strtoumax.c: Likewise.
87989
87990         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87991         `.', then first look up the entire `.'-containing string as a login
87992         name.
87993
87994 2000-02-23  Jim Meyering  <meyering@lucent.com>
87995
87996         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87997         in place of my hack.
87998
87999 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88000
88001         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88002         (textint): New typedef.
88003         (parser_control): Member year changed from int to textint.
88004         All uses changed.
88005         (YYSTYPE): Removed; replaced by %union with int and textint members.
88006         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88007         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88008         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88009         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88010         (date, number, to_year): Use width of number in digits, not its value,
88011         to determine whether it's a 2-digit year, or a 2-digit time.
88012         (yylex): Store number of digits of numeric tokens.
88013         Reported by John Kendall.
88014
88015         (parser_control): Changed from struct parser_control to typedef (for
88016         consistency).  All uses changed.
88017
88018         (tID): Removed; not used.
88019         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88020
88021 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88022
88023         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88024         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88025
88026 2000-02-12  Jim Meyering  <meyering@lucent.com>
88027
88028         * lib/userspec.c (ISDIGIT): Define it.
88029         (isdigit): Remove definition.
88030         (is_number): Use ISDIGIT, not isdigit.
88031         <libintl.h>: Include.
88032         (_ and N_): Define.
88033         (parse_user_spec): Mark translatable strings.
88034
88035 2000-02-10  Jim Meyering  <meyering@lucent.com>
88036
88037         With these changes, nanosleep.[ch] are finally enough like the other
88038         lib/* replacement files to compile on a few more losing systems.
88039
88040         * lib/nanosleep.h: Don't include config.h.
88041         Remove prototype from declaration of nanosleep.
88042         (PARAMS): Remove now-unneeded definition.
88043         * lib/nanosleep.c: #undef nanosleep.
88044         (rpl_nanosleep): Rename from nanosleep.
88045
88046 2000-02-10  Jim Meyering  <meyering@lucent.com>
88047
88048         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88049         gnu_nanosleep to rpl_nanosleep.
88050
88051 2000-02-09  Jim Meyering  <meyering@lucent.com>
88052
88053         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88054         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88055
88056 2000-02-08  Akim Demaille  <akim@epita.fr>
88057
88058         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88059         `[' and `]' and remove uses of `changequote'.
88060         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88061         (AC_SYS_LARGEFILE): Likewise.
88062         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88063         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88064         of changequote.
88065         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88066         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88067         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88068         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88069
88070 2000-02-05  Jim Meyering  <meyering@lucent.com>
88071
88072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88073         Remove explicit use of AC_HEADER_TIME.  It is required by
88074         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88075         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88076         in autoconf whereby the expansion of the latter ended up preceding
88077         the expansion of its prerequisite, AC_HEADER_TIME.
88078         Reported by Volker Borchert.
88079
88080 2000-02-03  Jim Meyering  <meyering@lucent.com>
88081
88082         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88083
88084 2000-02-03  Jim Meyering  <meyering@lucent.com>
88085
88086         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88087         rather than with `#if HAVE_UTMPNAME'.
88088
88089 2000-02-02  Jim Meyering  <meyering@lucent.com>
88090
88091         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88092         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88093         Reported by Eli Zaretskii.
88094
88095 2000-02-01  Jim Meyering  <meyering@lucent.com>
88096
88097         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88098
88099 2000-01-31  Jim Meyering  <meyering@lucent.com>
88100
88101         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88102         functions.  Add the time.h and sys/time.h headers along with the
88103         AC_REQUIRE'ment of AC_HEADER_TIME.
88104
88105 2000-01-31  Jim Meyering  <meyering@lucent.com>
88106
88107         * lib/nanosleep.h (nanosleep): Guard declaration with
88108         `#if ! HAVE_DECL_NANOSLEEP'.
88109         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88110         the declaration in that vendor's sys/timers.h.
88111         Reported by Christian Krackowizer.
88112
88113         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88114         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88115         (ISPRINT): Likewise.
88116         Reported by Tom Tromey.
88117
88118 2000-01-30  Jim Meyering  <meyering@lucent.com>
88119
88120         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88121
88122         * m4/prereq.m4 (utmp_includes): Define.
88123         Check for ut_user and ut_name members in both struct utmpx
88124         and struct utmp.
88125
88126 2000-01-30  Jim Meyering  <meyering@lucent.com>
88127
88128         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88129         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88130         header files where only utmpx.ut_user is declared.
88131
88132         * lib/readutmp.h (UT_USER): Define.
88133
88134 2000-01-29  Jim Meyering  <meyering@lucent.com>
88135
88136         * m4/lib-check.m4: New file containing library-related checks from
88137         fileutils and sh-utils (textutils had none).
88138
88139 2000-01-28  Jim Meyering  <meyering@lucent.com>
88140
88141         * m4/perl.m4: Change format of warning message to look more like that
88142         from the missing script.  Suggestion from François Pinard.
88143
88144 2000-01-25  Jim Meyering  <meyering@lucent.com>
88145
88146         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88147         well as time.h in the compile check.
88148         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88149         Fix typo in cross-compiling case: s/yes/no/.
88150
88151 2000-01-23  Jim Meyering  <meyering@lucent.com>
88152
88153         * m4/jm-macros.m4: Move df-related tests here from
88154         fileutils/configure.in
88155
88156         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88157         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88158
88159         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88160         s/space/ac_fsusage_space/.
88161         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88162
88163         * m4/ftruncate.m4: New file (derived from part of
88164         fileutils/configure.in).
88165         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88166         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88167
88168         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88169         AC_SUBST these here, rather than just in sh-util/configure.in, so
88170         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88171         all the same.
88172         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88173         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88174         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88175         (AC_SUBST(POW_LIBM)): Likewise.
88176         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88177
88178 2000-01-23  Jim Meyering  <meyering@lucent.com>
88179
88180         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88181         obstack.c.
88182
88183 2000-01-22  Jim Meyering  <meyering@lucent.com>
88184
88185         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88186
88187         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88188
88189         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88190         configure.in
88191         (AC_CHECK_HEADERS): Likewise for sh-utils.
88192         (AC_CHECK_HEADERS): Likewise for textutils.
88193         Merge the three lists of headers.
88194
88195         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88196         from fileutils' configure.in.
88197
88198         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88199         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88200         check-decl.m4.
88201
88202         * m4/check-decl.m4: Use #if rather than #ifdef.
88203         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88204         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88205         (_jm_DECL_HEADERS): Define new function.
88206         (jm_CHECK_DECLARATIONS): Require it.
88207
88208 2000-01-22  Jim Meyering  <meyering@lucent.com>
88209
88210         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88211         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88212         Required for some AIX systems.  Reported by Christian Krackowizer.
88213         [TESTING] (main): New function.
88214
88215         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88216         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88217         letters.
88218
88219         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88220         iswprint.
88221
88222         * lib/strverscmp.c (ISDIGIT): Define.
88223         (strverscmp): Use ISDIGIT, not isdigit.
88224
88225 2000-01-19  Jim Meyering  <meyering@lucent.com>
88226
88227         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88228         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88229         defines `struct timespec' in <sys/time.h>
88230
88231         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88232         Thanks to Akim for explaining.
88233
88234 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88235
88236         * lib/nanosleep.c (nanosleep):
88237         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88238         POSIX.1 doesn't require SA_INTERRUPT and some systems
88239         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88240         it's been part of POSIX.1 since day 1 (in 1988).
88241
88242 2000-01-17  Jim Meyering  <meyering@lucent.com>
88243
88244         * lib/interlock: Remove unused file.  Reported by François Pinard.
88245
88246 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88247
88248         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88249         alert, backslash, formfeed, and vertical tab unnecessarily in
88250         shell quoting style.
88251
88252 2000-01-16  Jim Meyering  <meyering@lucent.com>
88253
88254         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88255         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88256         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88257         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88258
88259 2000-01-16  Jim Meyering  <meyering@lucent.com>
88260
88261         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88262         because the latter didn't work.
88263
88264 2000-01-15  Jim Meyering  <meyering@lucent.com>
88265
88266         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88267         (AC_REPLACE_FUNCS): Add memcpy and memset.
88268         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88269         Add strpbrk.
88270         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88271
88272 2000-01-12  Jim Meyering  <meyering@lucent.com>
88273
88274         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88275         (jm_PREREQ): Use it.
88276         (jm_PREREQ_READUTMP): New macro.
88277         (jm_PREREQ): Use it.
88278
88279 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88280
88281         Quote multibyte characters correctly.
88282         * m4/c-bs-a.m4: New file.
88283         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88284         (jm_PREREQ): Use it.
88285
88286 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88287
88288         * m4/uintmax_t.m4: Port to autoconf 2.13.
88289
88290 2000-01-08  Jim Meyering  <meyering@ascend.com>
88291
88292         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88293         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88294
88295 2000-01-04  Jim Meyering  <meyering@ascend.com>
88296
88297         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88298         jm_STRUCT_DIRENT_D_TYPE.
88299         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88300         jm_STRUCT_DIRENT_D_INO.
88301         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88302         jm_STRUCT_UTIMBUF.
88303         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88304         renamings.
88305         * m4/utime.m4: Likewise.
88306
88307         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88308         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88309
88310 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88311
88312         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88313         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88314
88315 2000-01-02  Jim Meyering  <meyering@ascend.com>
88316
88317         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88318         remember if this is necessary.
88319
88320 1999-12-26  Jim Meyering  <meyering@ascend.com>
88321
88322         * m4/jm-macros.m4: Use it here.
88323         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88324
88325 1999-12-23  Jim Meyering  <meyering@ascend.com>
88326
88327         * m4/jm-macros.m4: Check for clock_gettime (moved from
88328         fileutils/configure.in)
88329         Check for gettimeofday.
88330
88331 1999-12-20  Jim Meyering  <meyering@ascend.com>
88332
88333         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88334         autoconf-2.14a-1999-12-20.
88335
88336 1999-12-19  Jim Meyering  <meyering@ascend.com>
88337
88338         * m4/lstat-slash.m4: New file.
88339         * m4/jm-macros.m4: Use the new macro:
88340         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88341
88342 1999-12-07  Jim Meyering  <meyering@ascend.com>
88343
88344         * m4/perl.m4: Require that File::Compare be available, too.
88345         Too many systems seem to lack it.
88346
88347         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88348         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88349
88350 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88351
88352         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88353         problem with the QNX 4.25 shell, which doesn't propagate exit
88354         status of failed commands inside shell assignments.
88355
88356 1999-11-17  Jim Meyering  <meyering@ascend.com>
88357
88358         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88359
88360 1999-11-07  Jim Meyering  <meyering@ascend.com>
88361
88362         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88363
88364 1999-11-06  Jim Meyering  <meyering@ascend.com>
88365
88366         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88367         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88368
88369 1999-11-05  Jim Meyering  <meyering@ascend.com>
88370
88371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88372         configure.in of textutils, fileutils, and sh-utils into this one
88373         (shared between those packages) file.
88374         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88375         AC_STRUCT_ST_BLKSIZE.
88376
88377 1999-11-03  Jim Meyering  <meyering@ascend.com>
88378
88379         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88380         of AC_CHECK_TYPE checks includes unistd.h.
88381         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88382         Suggestion from Akim Demaille.
88383
88384 1999-10-30  Jim Meyering  <meyering@ascend.com>
88385
88386         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88387         m4-quoted string.
88388         * m4/ls-mntd-fs.m4: Likewise.
88389         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88390         * m4/jm-winsz1.m4: Likewise.
88391
88392         * m4/const.m4: Remove file, since the fix made it into the experimental
88393         version of autoconf.
88394         * m4/mktime.m4: Likewise.
88395
88396         * m4/check-type.m4: Remove file, now that the latest version of
88397         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88398
88399         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88400         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88401         AC_CHECK_TYPE.
88402
88403 1999-10-04  Jim Meyering  <meyering@ascend.com>
88404
88405         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88406
88407 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88408
88409         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88410         2.95.1 bug with HP-UX 10.20.
88411
88412 1999-09-17  Jim Meyering  <meyering@ascend.com>
88413
88414         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88415         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88416         due to missing strdup (against sh-utils-2.0).
88417
88418 1999-08-29  Jim Meyering  <meyering@ascend.com>
88419
88420         * m4/jm-macros.m4: Require jm_BISON.
88421         * m4/bison.m4: New file.
88422
88423 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88424
88425         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88426         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88427
88428 1999-08-05  Jim Meyering  <meyering@ascend.com>
88429
88430         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88431         to avoid conflicts with `conftest' on 8+3 filesystems.
88432         Suggestion from Eli Zaretskii.
88433
88434 1999-08-04  Jim Meyering  <meyering@ascend.com>
88435
88436         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88437         fileutils and sh-utils (textutils's getline test was inadequate).
88438         (AM_FUNC_GETLINE): Run this test.
88439         (AC_CHECK_FUNCS): Check for getdelim.
88440         Reported by Bob Proulx.
88441
88442 1999-08-02  Jim Meyering  <meyering@ascend.com>
88443
88444         * m4/jm-macros.m4: Add a comment.
88445
88446 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88447
88448         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88449         <inttypes.h> defines strtoumax as a macro (and not as a
88450         function).
88451
88452 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88453
88454         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88455         that we can shift, multiply and divide unsigned long long
88456         values; Ultrix cc can't do it.
88457
88458 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88459
88460         * m4/mktime.m4: New file, which is a preview of what should appear
88461         in the next public autoconf release.
88462
88463 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88464
88465         * m4/lfs.m4: Remove this file.
88466         * m4/largefile.m4: New file.  It contains the old contents of
88467         lfs.m4, except that all names with prefix AC_LFS have been
88468         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88469         compatible with future autoconf versions.  Also, some minor m4
88470         quoting problems have been fixed.
88471
88472 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88473
88474         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88475         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88476         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88477         and simplify the shell code.
88478
88479 1999-08-01  Jim Meyering  <meyering@ascend.com>
88480
88481         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88482         m4.
88483
88484 1999-07-20  Jim Meyering  <meyering@ascend.com>
88485
88486         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88487
88488 1999-07-15  Jim Meyering  <meyering@ascend.com>
88489
88490         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88491
88492 1999-05-22  Jim Meyering  <meyering@ascend.com>
88493
88494         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88495
88496 1999-05-20  Jim Meyering  <meyering@ascend.com>
88497
88498         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88499         Add a colon after each `then' in case $4 is empty.
88500
88501 1999-05-16  Jim Meyering  <meyering@ascend.com>
88502
88503         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88504
88505 1999-05-10  Jim Meyering  <meyering@ascend.com>
88506
88507         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88508
88509         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88510         AC_FUNC_MKTIME.
88511
88512 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88513
88514         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88515
88516 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88517
88518         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88519         not CPPFLAGS, so that linking works correctly in IRIX.
88520
88521 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88522
88523         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88524
88525 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88526
88527         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88528         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88530         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88531         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88532
88533         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88534
88535 1999-04-20  Jim Meyering  <meyering@ascend.com>
88536
88537         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88538         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88539         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88540
88541 1999-04-18  Jim Meyering  <meyering@ascend.com>
88542
88543         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88544         * m4/jm-macros.m4: Use it.
88545
88546 1999-04-06  Jim Meyering  <meyering@ascend.com>
88547
88548         * m4/strftime.m4: Remove test for %f.
88549
88550 1999-03-29  Jim Meyering  <meyering@ascend.com>
88551
88552         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88553         superset of the AC_TYPE_* checks in the textutils, fileutils,
88554         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88555         AC_TYPE_PID_T.
88556
88557 1999-03-28  Jim Meyering  <meyering@ascend.com>
88558
88559         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88560         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88561         replaced e.g., in the *.sh files of the sh-utils.
88562
88563 1999-03-20  Jim Meyering  <meyering@ascend.com>
88564
88565         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88566         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88567         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88568
88569 1999-03-19  Jim Meyering  <meyering@ascend.com>
88570
88571         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88572
88573 1999-03-12  Jim Meyering  <meyering@ascend.com>
88574
88575         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88576
88577 1999-03-07  Jim Meyering  <meyering@ascend.com>
88578
88579         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88580         declared.
88581
88582 1999-02-17  Jim Meyering  <meyering@ascend.com>
88583
88584         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88585         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88586
88587 1999-02-07  Jim Meyering  <meyering@ascend.com>
88588
88589         * m4/group-member.m4: New file -- extracted from sh-utils'
88590         configure.in.
88591
88592         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88593         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88594
88595 1999-02-06  Jim Meyering  <meyering@ascend.com>
88596
88597         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88598         * m4/fnmatch.m4: Likewise.
88599         * m4/getgroups.m4: Likewise.
88600         * m4/lstat.m4: Likewise.
88601         * m4/malloc.m4: Likewise.
88602         * m4/putenv.m4: Likewise.
88603         * m4/realloc.m4: Likewise.
88604         * m4/regex.m4: Likewise.
88605         * m4/stat.m4: Likewise.
88606         * m4/strftime.m4: Likewise.
88607         Suggestion from Alain Magloire.
88608
88609         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88610         * m4/fnmatch.m4: Likewise.
88611         * m4/getgroups.m4: Likewise.
88612         * m4/getline.m4: Likewise.
88613         * m4/lstat.m4: Likewise.
88614         * m4/malloc.m4: Likewise.
88615         * m4/memcmp.m4: Likewise.
88616         * m4/putenv.m4: Likewise.
88617         * m4/realloc.m4: Likewise.
88618         * m4/regex.m4: Likewise.
88619         * m4/stat.m4: Likewise.
88620         * m4/strftime.m4: Likewise.
88621         Suggestion from Alain Magloire.
88622
88623         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88624         an argument.
88625
88626         * m4/regex.m4: Add a run-time Test for proper operation of
88627         re_compile_pattern.
88628
88629 1999-01-31  Jim Meyering  <meyering@ascend.com>
88630
88631         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88632
88633 1999-01-30  Jim Meyering  <meyering@ascend.com>
88634
88635         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88636
88637         * m4/jm-mktime.m4: Make this a wrapper around the official
88638         AM_FUNC_MKTIME rather than my private copy, now that the official one
88639         is up to date.
88640         * m4/mktime.m4: Remove file.
88641
88642         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88643         * m4/uptime.m4: Likewise.
88644         * m4/uintmax_t.m4: Likewise.
88645
88646 1999-01-28  Jim Meyering  <meyering@ascend.com>
88647
88648         * m4/jm-macros.m4: Use jm_AFS.
88649         * m4/afs.m4: New file (from fileutils' configure.in).
88650
88651         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88652         * m4/chown.m4: Likewise.
88653         * m4/d-ino.m4: Likewise.
88654         * m4/d-type.m4: Likewise.
88655         * m4/fnmatch.m4: Likewise.
88656         * m4/getgroups.m4: Likewise.
88657         * m4/gettext.m4: Likewise.
88658         * m4/jm-mktime.m4: Likewise.
88659         * m4/jm-winsz2.m4: Likewise.
88660         * m4/lcmessage.m4: Likewise.
88661         * m4/ls-mntd-fs.m4: Likewise.
88662         * m4/malloc.m4: Likewise.
88663         * m4/memcmp.m4: Likewise.
88664         * m4/putenv.m4: Likewise.
88665         * m4/realloc.m4: Likewise.
88666         * m4/st_mtim.m4: Likewise.
88667         * m4/strftime.m4: Likewise.
88668
88669 1999-01-16  Jim Meyering  <meyering@ascend.com>
88670
88671         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88672         (ARGMATCH_DIE_DECL): Define.
88673
88674 1999-01-12  Jim Meyering  <meyering@ascend.com>
88675
88676         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88677         Reported by Lars Hecking.
88678
88679 1999-01-10  Jim Meyering  <meyering@ascend.com>
88680
88681         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88682         gross kludge.
88683         * m4/inttypes_h.m4: Likewise.
88684         * m4/lstat.m4: Likewise.
88685         * m4/malloc.m4: Likewise.
88686         * m4/readdir.m4: Likewise.
88687         * m4/realloc.m4: Likewise.
88688         * m4/st_dm_mode.m4: Likewise.
88689         * m4/stat.m4: Likewise.
88690         * m4/utimbuf.m4: Likewise.
88691         * m4/utimes.m4: Likewise.
88692
88693         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88694         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88695         comments in config.h.in are meaningful.
88696
88697         * m4/jm-macros.m4: Require autoconf-2.13 here.
88698
88699         * m4/regex.m4: By default, don't use the included regex.c on systems
88700         with glibc 2.  Suggestion from Uli Drepper.
88701
88702 1999-01-02  Jim Meyering  <meyering@ascend.com>
88703
88704         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88705
88706 1998-12-18  Jim Meyering  <meyering@ascend.com>
88707
88708         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88709         Based on a suggestion from Lars Hecking.
88710
88711 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88712
88713         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88714
88715 1998-11-16  Jim Meyering  <meyering@ascend.com>
88716
88717         * m4/lfs.m4: Double-quote the `uname...` expression.
88718
88719 1998-11-14  Jim Meyering  <meyering@ascend.com>
88720
88721         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88722         * m4/stat.m4: Likewise.
88723
88724 1998-11-03  Jim Meyering  <meyering@ascend.com>
88725
88726         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88727         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88728
88729 1998-10-18  Jim Meyering  <meyering@ascend.com>
88730
88731         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88732
88733 1998-10-17  Jim Meyering  <meyering@ascend.com>
88734
88735         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88736         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88737         calls for those previously hard-coded headers.  Instead, take a new
88738         parameter.
88739         (jm_CHECK_DECLARATIONS): Reflect interface change.
88740         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88741         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88742
88743         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88744
88745 1998-10-14  Jim Meyering  <meyering@ascend.com>
88746
88747         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88748         instead of "TZ=America/Vancouver".  From Paul Eggert.
88749
88750 1998-10-11  Jim Meyering  <meyering@ascend.com>
88751
88752         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88753         This adds a test for a recently added compatibility fix for mktime.c.
88754         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88755
88756 1998-09-27  Jim Meyering  <meyering@ascend.com>
88757
88758         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88759
88760         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88761         ../configure.in, including a change from Gordon Matzigkeit to allow
88762         cross-compiling for the Hurd.
88763
88764         * m4/glibc.m4: New file/macro to test for the GNU C Library
88765         versions 1 and 2.  From Gordon Matzigkeit.
88766         Indent.
88767
88768 1998-09-21  Jim Meyering  <meyering@ascend.com>
88769
88770         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88771
88772 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88773
88774         Port nanosecond-resolution times to UnixWare 2.1.2 and
88775         pedantic Solaris 2.6.
88776
88777         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88778         AC_STRUCT_ST_MTIM.
88779         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88780         Generate name of ns member, instead of just 1 or undef.
88781         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88782
88783 1998-08-15  Jim Meyering  <meyering@ascend.com>
88784
88785         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88786         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88787         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88788         instead of jm_TYPE_SSIZE_T.
88789
88790 1998-08-12  Jim Meyering  <meyering@ascend.com>
88791
88792         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88793
88794 1998-08-02  Jim Meyering  <meyering@ascend.com>
88795
88796         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88797         in acconfig.h manually.
88798
88799 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88800
88801         * m4/st_mtim.m4: New file.
88802
88803 1998-07-28  Jim Meyering  <meyering@ascend.com>
88804
88805         * m4/utimes.m4: Undef stat.
88806
88807 1998-07-25  Jim Meyering  <meyering@ascend.com>
88808
88809         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88810         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88811
88812 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88813
88814         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88815         uid and gid actually remain unchanged.
88816
88817 1998-07-07  Jim Meyering  <meyering@ascend.com>
88818
88819         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88820
88821 1998-07-04  Jim Meyering  <meyering@ascend.com>
88822
88823         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88824         to prove that this macro can be used in packages without regex.c.
88825
88826 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88827
88828         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88829         is to be used.
88830
88831 1998-07-03  Jim Meyering  <meyering@ascend.com>
88832
88833         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88834
88835         * m4/gettext.m4: New file -- from gettext-0.10.35.
88836         * m4/lcmessage.m4: Likewise.
88837         * m4/progtest.m4: Likewise.
88838
88839         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88840         * m4/jm-macros.m4: Require the new macro.
88841
88842 1998-06-29  Jim Meyering  <meyering@ascend.com>
88843
88844         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88845         for the definition of NGROUPS (used in a system header included
88846         by sys/mount.h).
88847
88848 1998-06-28  Jim Meyering  <meyering@ascend.com>
88849
88850         * m4/ls-mntd-fs.m4: New file.
88851         * m4/fstypename.m4: New file.
88852
88853         * m4/jm-macros.m4: Require the new macro.
88854         * m4/jm-glibc-io.m4: New file.
88855
88856 1998-05-19  Jim Meyering  <meyering@ascend.com>
88857
88858         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88859         * m4/lchown.m4: New file.
88860
88861         * m4/Makefile.am.in: New file.
88862         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88863
88864 1998-05-14  Jim Meyering  <meyering@ascend.com>
88865
88866         * m4/Makefile.am (EXTRA_DIST): Add them.
88867         * m4/jm-macros.m4: New file.
88868         * m4/utimbuf.m4: New file.
88869
88870 1998-05-12  Jim Meyering  <meyering@ascend.com>
88871
88872         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88873
88874 1998-05-11  Jim Meyering  <meyering@ascend.com>
88875
88876         * m4/isc-posix.m4: New file.
88877
88878 1998-05-10  Jim Meyering  <meyering@ascend.com>
88879
88880         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88881
88882 1998-05-09  Jim Meyering  <meyering@ascend.com>
88883
88884         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88885         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88886         with automake.
88887
88888         * m4/ssize_t.m4: New file.
88889         * m4/mktime.m4: Remove file -- the new automake has this now.
88890
88891 1998-04-26  Jim Meyering  <meyering@ascend.com>
88892
88893         * m4/assert.m4: New file.
88894         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88895
88896 1998-04-05  Jim Meyering  <meyering@ascend.com>
88897
88898         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88899         (jm_PREREQ): Use it here.
88900
88901 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88902
88903         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88904         in acconfig.h.
88905
88906 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88907
88908         * m4/prereq.m4: New file.
88909         * m4/error.m4: New file.
88910         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88911
88912 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88913
88914         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88915         cache-check for the same variable -- that defeated the purpose of
88916         the test; the test program was never run.  This was a problem only
88917         on systems with losing getline functions -- HP-UX 10.20 is one.
88918         Reported by Bjorn Helgaas.
88919
88920 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88921
88922         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88923
88924 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88925
88926         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88927
88928         * m4/const.m4: New file.  Use an initializer in this declaration
88929         typedef int charset[2]; const charset x;
88930         Reported by Bob Glickstein.
88931
88932 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88933
88934         * m4/chown.m4: Fix reversed types on -1 args to chown.
88935         From Kaveh Ghazi.
88936
88937 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88938
88939         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88940         Add lseek and memchr.
88941
88942         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88943         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88944         have a 20-character limit on names.
88945
88946 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88947
88948         * m4/inttypes_h.m4: New file.
88949         * m4/uintmax_t.m4: New file.
88950         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88951
88952
88953         -----
88954
88955         Local Variables:
88956         coding: utf-8
88957         End:
88958
88959         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88960
88961         Copying and distribution of this file, with or without
88962         modification, are permitted provided the copyright notice
88963         and this notice are preserved.