raise test: Avoid a test failure on Linux/MIPS.
[gnulib.git] / ChangeLog
1 2011-10-27  Bruno Haible  <bruno@clisp.org>
2
3         raise test: Avoid a test failure on Linux/MIPS.
4         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5         because 99 is a valid signal on Linux/MIPS.
6
7 2011-10-27  Bruno Haible  <bruno@clisp.org>
8
9         nonblocking tests: Fix test failure on Linux/MIPS.
10         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11         Set to 270000.
12
13 2011-10-27  Bruno Haible  <bruno@clisp.org>
14
15         utimensat: Work around problem on Linux/hppa.
16         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
17         values.
18         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
19
20 2011-10-25  Jim Meyering  <meyering@redhat.com>
21
22         maint.mk: fix a bug in sc_prohibit_stddef_without_use
23         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
24         after symbols like NULL, size_t, etc.
25         Reported by Alfred M. Szmidt.
26
27         maint.mk: exempt ENODATA from a syntax-check rule
28         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
29         from the sc_prohibit_always-defined_macros syntax-check rule.
30         Add a comment.  See this for more details:
31         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
32
33 2011-10-23  Jim Meyering  <meyering@redhat.com>
34
35         fts: close parent dir FD before returning from post-traversal fts_read
36         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
37         unlink A, even though an FD open on A remained.  This is suboptimal
38         (holding a file descriptor open longer than needed), but otherwise not
39         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
40         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
41         that represents a real problem: it causes the removal of A to fail
42         with e.g., "rm: cannot remove `A': Device or resource busy"
43
44         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45         directory file descriptors.  After completing the final, FTS_DP,
46         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
47         cache, but then proceeded to add a new FD to it via the subsequent
48         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
49         final file descriptor would be closed only via fts_close's call to
50         fd_ring_clear.  Now, it is usually closed earlier, via the final
51         FTS_DP-returning fts_read call.
52         * lib/fts.c (restore_initial_cwd): New function, converted from
53         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
54         Update callers.
55         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
56         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
57
58 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
59             Bruno Haible  <bruno@clisp.org>
60             Jim Meyering  <jim@meyering.net>
61
62         readme-release: improve safety of release prep instructions.
63         * README-release: Don't git pull all branches when only master
64         is needed for the release process.
65         Run make maintainer-clean before changing trees and merging.
66         Don't try to run ./configure right after git pull in case files
67         that influence the bootstrap process have changed, move the
68         ./configure step to after running ./bootstrap.
69         Don't bootstrap "one last time"... it's the first time!
70
71 2011-10-22  Bruno Haible  <bruno@clisp.org>
72
73         errno, strerror-override: Support for MSVC 10.
74         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
75         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
76         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
77         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
78         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
79         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
80         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
81         Assign values compatible with MSVC 10.
82         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
83         New macros.
84         (GNULIB_defined_EWINSOCK): New macro.
85         * lib/strerror-override.c (strerror_override): Update accordingly.
86         * lib/strerror-override.h: Likewise.
87         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
88         longer equal to the corresponding errno value.
89         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
90
91 2011-10-22  Bruno Haible  <bruno@clisp.org>
92
93         perror: Recognize when test program crashes.
94         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
95         strerror, set gl_cv_func_perror_works to no.
96         Reported by Daniel Richard G. <skunk@iskunk.org>.
97
98         perror: Fix indentation.
99         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
100
101 2011-10-22  Bruno Haible  <bruno@clisp.org>
102
103         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
104         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
105         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
106         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
107         functions, not as a macro.
108         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
109         macros.
110         (isfinite, isinf, isnan, signbit): Check overloaded functions and
111         absence of macro.
112         Suggested by Eric Blake.
113         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
114
115 2011-10-21  Bruno Haible  <bruno@clisp.org>
116
117         relocatable-prog-wrapper: Don't leave object files behind.
118         * build-aux/install-reloc: Re-synchronize list of .o files to be
119         removed with list of compilation units.
120
121 2011-10-20  Bruno Haible  <bruno@clisp.org>
122
123         openpty, posix_openpt: Remove code duplication.
124         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
125         * lib/openpty.c: Include <stdlib.h>.
126         (openpty): Use posix_openpt on all platforms except IRIX.
127         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
128
129 2011-10-20  Bruno Haible  <bruno@clisp.org>
130
131         unlockpt: Detect invalid argument.
132         * lib/unlockpt.c: Include <fcntl.h>.
133         (unlockpt): Check whether fd is valid, using fcntl().
134         * modules/unlockpt (Depends-on): Add fcntl-h.
135
136 2011-10-20  Bruno Haible  <bruno@clisp.org>
137
138         openpty: Avoid compilation error on AIX 6.1.
139         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
140
141 2011-10-20  Bruno Haible  <bruno@clisp.org>
142
143         posix_openpt: Support for OpenBSD.
144         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
145         (posix_openpt) [OpenBSD]: New code.
146         * lib/grantpt.c: Include <fcntl.h>.
147         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
148         * modules/grantpt (Depends-on): Add fcntl-h.
149
150 2011-10-20  Bruno Haible  <bruno@clisp.org>
151
152         posix_openpt test: Coding style.
153         * tests/test-posix_openpt.c: Use GNU coding style.
154
155 2011-10-20  Bruno Haible  <bruno@clisp.org>
156
157         grantpt: Support --avoid=pt_chown.
158         * modules/grantpt (Files): Add lib/pty-private.h.
159
160 2011-10-20  Bruno Haible  <bruno@clisp.org>
161
162         posix_openpt: Fix autoconf macro.
163         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
164         unneeded check for _getpty.
165
166 2011-10-20  Bruno Haible  <bruno@clisp.org>
167
168         openpty: Update comments.
169         * lib/openpty.c: Add comments about Minix.
170
171 2011-10-19  Eric Blake  <eblake@redhat.com>
172
173         openpty: relax license
174         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
175
176         pt_chown: use configmake to simplify build
177         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
178
179         ptsname and others: relax license
180         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
181         * modules/unlockpt (License): Likewise.
182         * modules/pt_chown (License): Likewise.
183         * modules/ptsname (License): Likewise.
184         * modules/ttyname_r (License): Likewise.
185
186 2011-10-19  Jim Meyering  <meyering@redhat.com>
187
188         posix_openpt: remove spurious #endif
189         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
190
191 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
192
193         maint.mk: Respect $(build_aux) in web-manual rule.
194         * top/maint.mk (web-manual): Find gen-announce script in user's
195         $(build_aux) directory instead of hard-coding 'build-aux'.
196
197 2011-10-19  Bruno Haible  <bruno@clisp.org>
198
199         posix_openpt: Fix compilation error.
200         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
201         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
202         Mention the openpty module as an alternative.
203
204 2011-10-19  Bruno Haible  <bruno@clisp.org>
205
206         Support for old NeXTstep 3.3 frexp().
207         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
208         execution time of the test to 5 seconds.
209         Reported by Daniel Richard G. <skunk@iskunk.org>.
210
211 2011-10-19  Bruno Haible  <bruno@clisp.org>
212
213         Support for old NeXTstep 3.3 sed.
214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
215         part, use /.../, not \|...|. Escape periods in the header file name.
216         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
217         Reported by Daniel Richard G. <skunk@iskunk.org>.
218
219 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
220
221         Support for old NeXTstep 3.3 gcc.
222         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
223         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
224         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
225         * lib/spawn.in.h (_Restrict_arr_): Likewise.
226         * lib/regex.h (_Restrict_arr_): Likewise.
227         * lib/regex_internal.h (re_token_t): Likewise.
228         * lib/regexec.c (check_node_accept_bytes): Likewise.
229         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
230
231 2011-10-18  Eric Blake  <eblake@redhat.com>
232
233         posix_openpt: new module
234         * modules/posix_openpt: New module.
235         * m4/posix_openpt.m4: New file.
236         * lib/posix_openpt.c: Likewise.
237         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
238         (gl_STDLIB_H_DEFAULTS): Set defaults.
239         * modules/stdlib (Makefile.am): Substitute macros.
240         * lib/stdlib.in.h (posix_openpt): Declare.
241         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
242         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
243         * modules/posix_openpt-tests: New test module.
244         * tests/test-posix_openpt.c: New test.
245
246 2011-10-15  Bruno Haible  <bruno@clisp.org>
247
248         xstrtoll: Fix compilation failure.
249         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
250         from lib/strtol.c.
251         * doc/posix-headers/limits.texi: Mention missing numerical limits on
252         some platforms.
253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
254
255 2011-10-15  Bruno Haible  <bruno@clisp.org>
256
257         vasnprintf: Optimize bit search operation.
258         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
260         gl_DOUBLE_EXPONENT_LOCATION.
261         * modules/vasnprintf (Files): Add m4/exponentd.m4.
262         * modules/unistdio/u8-vasnprintf (Files): Likewise.
263         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
264         * modules/unistdio/u16-vasnprintf (Files): Likewise.
265         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
266         * modules/unistdio/u32-vasnprintf (Files): Likewise.
267         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
268         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
269         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
270
271 2011-10-15  Bruno Haible  <bruno@clisp.org>
272
273         vasnprintf: Fix comments.
274         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
275
276 2011-10-14  Bruno Haible  <bruno@clisp.org>
277
278         Tests for module 'integer_length_ll'.
279         * modules/integer_length_ll-tests: New file.
280         * tests/test-integer_length_ll.c: New file.
281
282         New module 'integer_length_ll'.
283         * lib/integer_length_ll.c: New file.
284         * modules/integer_length_ll: New file.
285
286 2011-10-14  Bruno Haible  <bruno@clisp.org>
287
288         Tests for module 'integer_length_l'.
289         * modules/integer_length_l-tests: New file.
290         * tests/test-integer_length_l.c: New file.
291
292         New module 'integer_length_l'.
293         * lib/integer_length_l.c: New file.
294         * modules/integer_length_l: New file.
295
296 2011-10-14  Bruno Haible  <bruno@clisp.org>
297
298         Tests for module 'integer_length'.
299         * modules/integer_length-tests: New file.
300         * tests/test-integer_length.c: New file.
301
302         New module 'integer_length'.
303         * lib/integer_length.h: New file.
304         * lib/integer_length.c: New file.
305         * modules/integer_length: New file.
306
307 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
308
309         popen: Fix dependency conditions.
310         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
311
312 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
313
314         perror: Fix autoconf test.
315         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
316         <stdlib.h> and <string.h>.
317
318 2011-10-14  Bruno Haible  <bruno@clisp.org>
319
320         ffsl: Optimize on 64-bit platforms.
321         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
322         unrolling.
323
324 2011-10-13  Bruno Haible  <bruno@clisp.org>
325
326         ffsl: Optimize on 32-bit platforms.
327         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
328         use ffs() without a loop.
329
330         ffsl, ffsll: Optimize for GCC.
331         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
332         * lib/ffsl.c (GCC_BUILTIN): New macro.
333         * lib/ffsll.c (GCC_BUILTIN): Likewise.
334
335 2011-10-13  Bruno Haible  <bruno@clisp.org>
336
337         ffs, bcopy, memset: Support symbol renaming via config.h.
338         * lib/ffs.c: Include <config.h>.
339         * lib/bcopy.c: Likewise.
340         * lib/memset.c: Likewise.
341
342 2011-10-10  Bruno Haible  <bruno@clisp.org>
343
344         atanl: Simplify for platforms where 'long double' == 'double'.
345         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
346         alternative implementation.
347         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
348         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
349         * modules/atanl (Depends-on): Add atan. Update conditions.
350
351 2011-10-10  Bruno Haible  <bruno@clisp.org>
352
353         acosl: Simplify for platforms where 'long double' == 'double'.
354         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
355         alternative implementation.
356         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
357         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
358         * modules/acosl (Depends-on): Add acos. Update conditions.
359
360 2011-10-10  Bruno Haible  <bruno@clisp.org>
361
362         asinl: Simplify for platforms where 'long double' == 'double'.
363         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
364         alternative implementation.
365         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
366         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
367         * modules/asinl (Depends-on): Add asin. Update conditions.
368
369 2011-10-10  Bruno Haible  <bruno@clisp.org>
370
371         tanl: Simplify for platforms where 'long double' == 'double'.
372         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
373         implementation.
374         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
375         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
376         * modules/tanl (Depends-on): Add tan. Update conditions.
377         (configure.ac): Don't compile trigl.c if
378         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
379
380 2011-10-10  Bruno Haible  <bruno@clisp.org>
381
382         cosl: Simplify for platforms where 'long double' == 'double'.
383         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
384         implementation.
385         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
386         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
387         * modules/cosl (Depends-on): Add cos. Update conditions.
388         (configure.ac): Don't compile sincosl.c and trigl.c if
389         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
390
391 2011-10-10  Bruno Haible  <bruno@clisp.org>
392
393         sinl: Simplify for platforms where 'long double' == 'double'.
394         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
395         implementation.
396         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
397         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
398         * modules/sinl (Depends-on): Add sin. Update conditions.
399         (configure.ac): Don't compile sincosl.c and trigl.c if
400         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
401
402 2011-10-10  Bruno Haible  <bruno@clisp.org>
403
404         logl: Simplify for platforms where 'long double' == 'double'.
405         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
406         implementation.
407         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
408         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
409         * modules/logl (Depends-on): Add log. Update conditions.
410
411 2011-10-10  Bruno Haible  <bruno@clisp.org>
412
413         expl: Simplify for platforms where 'long double' == 'double'.
414         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
415         implementation.
416         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
417         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
418         * modules/expl (Depends-on): Add exp. Update conditions.
419
420 2011-10-10  Bruno Haible  <bruno@clisp.org>
421
422         sqrtl: Simplify for platforms where 'long double' == 'double'.
423         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
424         alternative implementation.
425         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
426         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
427         * modules/sqrtl (Depends-on): Update conditions.
428
429 2011-10-10  Bruno Haible  <bruno@clisp.org>
430
431         ldexpl: Simplify for platforms where 'long double' == 'double'.
432         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
433         alternative implementation.
434         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
435         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
436         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
437
438 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
439
440         ffsll: set correct witness
441         * modules/ffsll (configure.ac): Fix typo.
442
443 2011-10-10  Bruno Haible  <bruno@clisp.org>
444
445         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
446         * lib/printf-frexpl.c: Include <config.h>.
447         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
448         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
449         second time.
450         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
451         gl_LONG_DOUBLE_VS_DOUBLE.
452         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
453         conditions.
454
455 2011-10-10  Bruno Haible  <bruno@clisp.org>
456
457         frexpl: Simplify for platforms where 'long double' == 'double'.
458         * lib/frexpl.c: Include <config.h>.
459         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
460         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
461         time.
462         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
463         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
464         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
465         * modules/frexpl (Depends-on): Add frexp. Update conditions.
466         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
467         conditions.
468
469 2011-10-10  Jim Meyering  <meyering@redhat.com>
470
471         test-renameat: don't leave behind a temporary file
472         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
473           ERROR: files left in build directory after distclean:
474           ./gltests/test-renameat.too
475           make[1]: *** [distcleancheck] Error 1
476         Reported by Tom G. Christensen.
477
478 2011-10-09  Bruno Haible  <bruno@clisp.org>
479
480         rint: Determine RINT_LIBM correctly on AIX 7.
481         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
482         directly, not only through a function pointer. Also accept an optional
483         4th argument with extra code.
484         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
485         rintf() call by gcc when optimizing.
486
487         mathfunc.m4: Refactor.
488         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
489         m4 variable.
490
491 2011-10-09  Bruno Haible  <bruno@clisp.org>
492
493         rintl: Simplify for platforms where 'long double' == 'double'.
494         * lib/rintl.c: Include <config.h>.
495         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
496         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
497         time.
498         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
499         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
500         * modules/rintl (Depends-on): Add rint. Update conditions.
501
502 2011-10-09  Bruno Haible  <bruno@clisp.org>
503
504         roundl: Simplify for platforms where 'long double' == 'double'.
505         * lib/roundl.c: Include <config.h>.
506         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
507         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
508         time.
509         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
510         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
511         * modules/roundl (Depends-on): Add round. Update conditions.
512
513 2011-10-09  Bruno Haible  <bruno@clisp.org>
514
515         truncl: Simplify for platforms where 'long double' == 'double'.
516         * lib/truncl.c: Include <config.h>.
517         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
518         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
519         time.
520         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
521         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
522         * modules/truncl (Depends-on): Add trunc. Update conditions.
523
524 2011-10-09  Bruno Haible  <bruno@clisp.org>
525
526         ceill: Simplify for platforms where 'long double' == 'double'.
527         * lib/ceill.c: Include <config.h>.
528         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
529         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
530         time.
531         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
532         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
533         * modules/ceill (Depends-on): Add ceil. Update conditions.
534
535 2011-10-09  Bruno Haible  <bruno@clisp.org>
536
537         floorl: Simplify for platforms where 'long double' == 'double'.
538         * lib/floorl.c: Include <config.h>.
539         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
540         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
541         time.
542         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
543         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
544         * modules/floorl (Depends-on): Add floor. Update conditions.
545
546 2011-10-09  Bruno Haible  <bruno@clisp.org>
547
548         rint: Fix ordering constraints.
549         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
550         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
551         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
552
553 2011-10-09  Bruno Haible  <bruno@clisp.org>
554
555         copysignl: Simplify for platforms where 'long double' == 'double'.
556         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
557         alternative.
558         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
559         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
560         * modules/copysignl (Depends-on): Add copysign. Update conditions.
561
562 2011-10-09  Bruno Haible  <bruno@clisp.org>
563
564         Tests for module 'rintl'.
565         * modules/rintl-tests: New file.
566         * tests/test-rintl.c: New file.
567
568         New module 'rintl'.
569         * lib/math.in.h (rintl): New declaration.
570         * lib/rintl.c: New file.
571         * m4/rintl.m4: New file.
572         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
574         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
575         * modules/rintl: New file.
576         * tests/test-math-c++.cc: Check the declaration of rintl.
577         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
578         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
579         * doc/posix-functions/rintl.texi: Mention the new module.
580
581 2011-10-09  Bruno Haible  <bruno@clisp.org>
582
583         Tests for module 'rintf'.
584         * modules/rintf-tests: New file.
585         * tests/test-rintf.c: New file.
586
587         New module 'rintf'.
588         * lib/math.in.h (rintf): New declaration.
589         * lib/rintf.c: New file.
590         * m4/rintf.m4: New file.
591         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
593         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
594         * modules/rintf: New file.
595         * tests/test-math-c++.cc: Check the declaration of rintf.
596         * doc/posix-functions/rintf.texi: Mention the new module.
597
598 2011-10-09  Bruno Haible  <bruno@clisp.org>
599
600         rint: Support for MSVC.
601         * lib/math.in.h (rint): New declaration.
602         * lib/rint.c: New file.
603         * m4/rint.m4: New file.
604         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
606         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
607         * modules/rint (Description): Fix.
608         (Files): Add lib/rint.c, m4/rint.m4.
609         (Depends-on): Add math.
610         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
611         gl_MATH_MODULE_INDICATOR.
612         * tests/test-math-c++.cc: Check the declaration of rint.
613         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
614         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
615         * doc/posix-functions/rint.texi: Mention the replacement provided by
616         the module.
617
618         rint tests: More tests.
619         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
620         minus-zero.h, infinity.h, nan.h.
621         (main): Skip the test if the current rounding mode is not standard. Add
622         tests for negative numbers, minus zero, infinity, NaN.
623         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
624         tests/nan.h.
625         (Depends-on): Add isnand-nolibm.
626
627 2011-10-09  Bruno Haible  <bruno@clisp.org>
628
629         Tests for module 'copysignl'.
630         * modules/copysignl-tests: New file.
631         * tests/test-copysignl.c: New file.
632
633         New module 'copysignl'.
634         * lib/math.in.h (copysignl): New declaration.
635         * lib/copysignl.c: New file.
636         * m4/copysignl.m4: New file.
637         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
639         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
640         HAVE_COPYSIGNL.
641         * modules/copysignl: New file.
642         * tests/test-math-c++.cc: Check the declaration of copysignl.
643         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
644         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
645         * doc/posix-functions/copysignl.texi: Mention the new module.
646
647 2011-10-09  Bruno Haible  <bruno@clisp.org>
648
649         Tests for module 'copysignf'.
650         * modules/copysignf-tests: New file.
651         * tests/test-copysignf.c: New file.
652
653         New module 'copysignf'.
654         * lib/math.in.h (copysignf): New declaration.
655         * lib/copysignf.c: New file.
656         * m4/copysignf.m4: New file.
657         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
659         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
660         HAVE_COPYSIGNF.
661         * modules/copysignf: New file.
662         * tests/test-math-c++.cc: Check the declaration of copysignf.
663         * doc/posix-functions/copysignf.texi: Mention the new module.
664
665 2011-10-09  Bruno Haible  <bruno@clisp.org>
666
667         Ensure that HAVE_* variables are set to 1 before they are set to 0.
668         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
669         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
670         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
671         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
672         gl_SIGNAL_H_DEFAULTS.
673
674 2011-10-09  Bruno Haible  <bruno@clisp.org>
675
676         poll: Make macro safer.
677         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
678         ac_cv_header_poll_h is not set.
679
680 2011-10-09  Bruno Haible  <bruno@clisp.org>
681
682         copysign: Provide replacement.
683         * lib/math.in.h (copysign): New declaration.
684         * lib/copysign.c: New file.
685         * m4/copysign.m4: New file.
686         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
688         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
689         HAVE_COPYSIGN.
690         * modules/copysign (Description): Clarify.
691         (Files): Add lib/copysign.c, m4/copysign.m4.
692         (Depends-on): Add math, signbit.
693         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
694         gl_MATH_MODULE_INDICATOR.
695         * tests/test-math-c++.cc: Check the declaration of copysign.
696         * doc/posix-functions/copysign.texi: Mention the effects of the module
697         on Minix and MSVC.
698
699 2011-10-09  Bruno Haible  <bruno@clisp.org>
700
701         isinf: Ensure macro on AIX 5.1.
702         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
703         macro.
704         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
705
706 2011-10-09  Bruno Haible  <bruno@clisp.org>
707
708         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
709         * modules/snprintf-posix-tests (configure.ac): Require
710         gl_LONG_DOUBLE_VS_DOUBLE.
711         * modules/sprintf-posix-tests (configure.ac): Likewise.
712         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
713         * modules/vasprintf-posix-tests (configure.ac): Likewise.
714         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
715         * modules/vsprintf-posix-tests (configure.ac): Likewise.
716         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
717         tests on platforms where 'long double' is the same as 'double'.
718         * tests/test-sprintf-posix.h (test_function): Likewise.
719         * tests/test-vasnprintf-posix.c (test_function): Likewise.
720         * tests/test-vasprintf-posix.c (test_function): Likewise.
721
722         *printf: Fix for platforms where 'long double' == 'double'.
723         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
724         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
725         * modules/dprintf-posix (Files): Add m4/math_h.m4.
726         * modules/fprintf-posix (Files): Likewise.
727         * modules/obstack-printf-posix (Files): Likewise.
728         * modules/snprintf-posix (Files): Likewise.
729         * modules/sprintf-posix (Files): Likewise.
730         * modules/vasnprintf (Files): Likewise.
731         * modules/vasnprintf-posix (Files): Likewise.
732         * modules/vasprintf-posix (Files): Likewise.
733         * modules/vdprintf-posix (Files): Likewise.
734         * modules/vfprintf-posix (Files): Likewise.
735         * modules/vsnprintf-posix (Files): Likewise.
736         * modules/vsprintf-posix (Files): Likewise.
737         * modules/unistdio/u8-vasnprintf (Files): Likewise.
738         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
739         * modules/unistdio/u16-vasnprintf (Files): Likewise.
740         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
741         * modules/unistdio/u32-vasnprintf (Files): Likewise.
742         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
743         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
744
745         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
746         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
747         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
748         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
749         'long double'.
750         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
751
752         isinf: Fix for platforms where 'long double' == 'double'.
753         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
754         Don't blindly assume 80-bit 'long double'.
755
756         isfinite: Fix for platforms where 'long double' == 'double'.
757         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
758         Don't blindly assume 80-bit 'long double'.
759
760         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
761         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
762         * modules/isfinite-tests (configure.ac): Require
763         gl_LONG_DOUBLE_VS_DOUBLE.
764         * modules/isinf-tests (configure.ac): Likewise.
765         * modules/isnan-tests (configure.ac): Likewise.
766         * modules/isnanl-tests (configure.ac): Likewise.
767         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
768         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
769         tests on platforms where 'long double' is the same as 'double'.
770         * tests/test-isinf.c (test_isinfl): Likewise.
771         * tests/test-isnan.c (test_long_double): Likewise.
772         * tests/test-isnanl.h (main): Likewise.
773
774 2011-10-08  Bruno Haible  <bruno@clisp.org>
775
776         Tests for module 'tanhf'.
777         * modules/tanhf-tests: New file.
778         * tests/test-tanhf.c: New file.
779
780         New module 'tanhf'.
781         * lib/math.in.h (tanhf): New declaration.
782         * lib/tanhf.c: New file.
783         * m4/tanhf.m4: New file.
784         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
786         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
787         * modules/tanhf: New file.
788         * tests/test-math-c++.cc: Check the declaration of tanhf.
789         * doc/posix-functions/tanhf.texi: Mention the new module.
790
791         tanh: Use a .m4 file.
792         * m4/tanh.m4: New file.
793         * modules/tanh (Files): Add it.
794         (configure.ac): Just invoke gl_FUNC_TANH.
795
796 2011-10-08  Bruno Haible  <bruno@clisp.org>
797
798         Tests for module 'coshf'.
799         * modules/coshf-tests: New file.
800         * tests/test-coshf.c: New file.
801
802         New module 'coshf'.
803         * lib/math.in.h (coshf): New declaration.
804         * lib/coshf.c: New file.
805         * m4/coshf.m4: New file.
806         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
808         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
809         * modules/coshf: New file.
810         * tests/test-math-c++.cc: Check the declaration of coshf.
811         * doc/posix-functions/coshf.texi: Mention the new module.
812
813         cosh: Use a .m4 file.
814         * m4/cosh.m4: New file.
815         * modules/cosh (Files): Add it.
816         (configure.ac): Just invoke gl_FUNC_COSH.
817
818 2011-10-08  Bruno Haible  <bruno@clisp.org>
819
820         Tests for module 'sinhf'.
821         * modules/sinhf-tests: New file.
822         * tests/test-sinhf.c: New file.
823
824         New module 'sinhf'.
825         * lib/math.in.h (sinhf): New declaration.
826         * lib/sinhf.c: New file.
827         * m4/sinhf.m4: New file.
828         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
830         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
831         * modules/sinhf: New file.
832         * tests/test-math-c++.cc: Check the declaration of sinhf.
833         * doc/posix-functions/sinhf.texi: Mention the new module.
834
835         sinh: Use a .m4 file.
836         * m4/sinh.m4: New file.
837         * modules/sinh (Files): Add it.
838         (configure.ac): Just invoke gl_FUNC_SINH.
839
840 2011-10-08  Bruno Haible  <bruno@clisp.org>
841
842         Tests for module 'atan2f'.
843         * modules/atan2f-tests: New file.
844         * tests/test-atan2f.c: New file.
845
846         New module 'atan2f'.
847         * lib/math.in.h (atan2f): New declaration.
848         * lib/atan2f.c: New file.
849         * m4/atan2f.m4: New file.
850         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
852         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
853         * modules/atan2f: New file.
854         * tests/test-math-c++.cc: Check the declaration of atan2f.
855         * doc/posix-functions/atan2f.texi: Mention the new module.
856
857         atan2: Use a .m4 file.
858         * m4/atan2.m4: New file.
859         * modules/atan2 (Files): Add it.
860         (configure.ac): Just invoke gl_FUNC_ATAN2.
861
862 2011-10-08  Bruno Haible  <bruno@clisp.org>
863
864         Tests for module 'atanf'.
865         * modules/atanf-tests: New file.
866         * tests/test-atanf.c: New file.
867
868         New module 'atanf'.
869         * lib/math.in.h (atanf): New declaration.
870         * lib/atanf.c: New file.
871         * m4/atanf.m4: New file.
872         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
874         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
875         * modules/atanf: New file.
876         * tests/test-math-c++.cc: Check the declaration of atanf.
877         * doc/posix-functions/atanf.texi: Mention the new module.
878
879         atan: Use a .m4 file.
880         * m4/atan.m4: New file.
881         * modules/atan (Files): Add it.
882         (configure.ac): Just invoke gl_FUNC_ATAN.
883
884 2011-10-08  Bruno Haible  <bruno@clisp.org>
885
886         Tests for module 'acosf'.
887         * modules/acosf-tests: New file.
888         * tests/test-acosf.c: New file.
889
890         New module 'acosf'.
891         * lib/math.in.h (acosf): New declaration.
892         * lib/acosf.c: New file.
893         * m4/acosf.m4: New file.
894         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
896         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
897         * modules/acosf: New file.
898         * tests/test-math-c++.cc: Check the declaration of acosf.
899         * doc/posix-functions/acosf.texi: Mention the new module.
900
901         acos: Use a .m4 file.
902         * m4/acos.m4: New file.
903         * modules/acos (Files): Add it.
904         (configure.ac): Just invoke gl_FUNC_ACOS.
905
906 2011-10-08  Bruno Haible  <bruno@clisp.org>
907
908         Tests for module 'asinf'.
909         * modules/asinf-tests: New file.
910         * tests/test-asinf.c: New file.
911
912         New module 'asinf'.
913         * lib/math.in.h (asinf): New declaration.
914         * lib/asinf.c: New file.
915         * m4/asinf.m4: New file.
916         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
918         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
919         * modules/asinf: New file.
920         * tests/test-math-c++.cc: Check the declaration of asinf.
921         * doc/posix-functions/asinf.texi: Mention the new module.
922
923         asin: Use a .m4 file.
924         * m4/asin.m4: New file.
925         * modules/asin (Files): Add it.
926         (configure.ac): Just invoke gl_FUNC_ASIN.
927
928 2011-10-08  Bruno Haible  <bruno@clisp.org>
929
930         Tests for module 'tanf'.
931         * modules/tanf-tests: New file.
932         * tests/test-tanf.c: New file.
933
934         New module 'tanf'.
935         * lib/math.in.h (tanf): New declaration.
936         * lib/tanf.c: New file.
937         * m4/tanf.m4: New file.
938         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
940         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
941         * modules/tanf: New file.
942         * tests/test-math-c++.cc: Check the declaration of tanf.
943         * doc/posix-functions/tanf.texi: Mention the new module.
944
945         tan: Use a .m4 file.
946         * m4/tan.m4: New file.
947         * modules/tan (Files): Add it.
948         (configure.ac): Just invoke gl_FUNC_TAN.
949
950 2011-10-08  Bruno Haible  <bruno@clisp.org>
951
952         Tests for module 'cosf'.
953         * modules/cosf-tests: New file.
954         * tests/test-cosf.c: New file.
955
956         New module 'cosf'.
957         * lib/math.in.h (cosf): New declaration.
958         * lib/cosf.c: New file.
959         * m4/cosf.m4: New file.
960         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
962         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
963         * modules/cosf: New file.
964         * tests/test-math-c++.cc: Check the declaration of cosf.
965         * doc/posix-functions/cosf.texi: Mention the new module.
966
967         cos: Use a .m4 file.
968         * m4/cos.m4: New file.
969         * modules/cos (Files): Add it.
970         (configure.ac): Just invoke gl_FUNC_COS.
971
972 2011-10-08  Bruno Haible  <bruno@clisp.org>
973
974         Tests for module 'sinf'.
975         * modules/sinf-tests: New file.
976         * tests/test-sinf.c: New file.
977
978         New module 'sinf'.
979         * lib/math.in.h (sinf): New declaration.
980         * lib/sinf.c: New file.
981         * m4/sinf.m4: New file.
982         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
984         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
985         * modules/sinf: New file.
986         * tests/test-math-c++.cc: Check the declaration of sinf.
987         * doc/posix-functions/sinf.texi: Mention the new module.
988
989         sin: Use a .m4 file.
990         * m4/sin.m4: New file.
991         * modules/sin (Files): Add it.
992         (configure.ac): Just invoke gl_FUNC_SIN.
993
994 2011-10-08  Bruno Haible  <bruno@clisp.org>
995
996         Tests for module 'powf'.
997         * modules/powf-tests: New file.
998         * tests/test-powf.c: New file.
999
1000         New module 'powf'.
1001         * lib/math.in.h (powf): New declaration.
1002         * lib/powf.c: New file.
1003         * m4/powf.m4: New file.
1004         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1006         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1007         * modules/powf: New file.
1008         * tests/test-math-c++.cc: Check the declaration of powf.
1009         * doc/posix-functions/powf.texi: Mention the new module.
1010
1011         pow: Use a .m4 file.
1012         * m4/pow.m4: New file.
1013         * modules/pow (Files): Add it.
1014         (configure.ac): Just invoke gl_FUNC_POW.
1015
1016 2011-10-08  Bruno Haible  <bruno@clisp.org>
1017
1018         Tests for module 'log10f'.
1019         * modules/log10f-tests: New file.
1020         * tests/test-log10f.c: New file.
1021
1022         New module 'log10f'.
1023         * lib/math.in.h (log10f): New declaration.
1024         * lib/log10f.c: New file.
1025         * m4/log10f.m4: New file.
1026         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1028         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1029         * modules/log10f: New file.
1030         * tests/test-math-c++.cc: Check the declaration of log10f.
1031         * doc/posix-functions/log10f.texi: Mention the new module.
1032
1033         log10: Use a .m4 file.
1034         * m4/log10.m4: New file.
1035         * modules/log10 (Files): Add it.
1036         (configure.ac): Just invoke gl_FUNC_LOG10.
1037
1038 2011-10-08  Bruno Haible  <bruno@clisp.org>
1039
1040         Tests for module 'logf'.
1041         * modules/logf-tests: New file.
1042         * tests/test-logf.c: New file.
1043
1044         New module 'logf'.
1045         * lib/math.in.h (logf): New declaration.
1046         * lib/logf.c: New file.
1047         * m4/logf.m4: New file.
1048         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1050         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1051         * modules/logf: New file.
1052         * tests/test-math-c++.cc: Check the declaration of logf.
1053         * doc/posix-functions/logf.texi: Mention the new module.
1054
1055         log: Use a .m4 file.
1056         * m4/log.m4: New file.
1057         * modules/log (Files): Add it.
1058         (configure.ac): Just invoke gl_FUNC_LOG.
1059
1060 2011-10-08  Bruno Haible  <bruno@clisp.org>
1061
1062         Tests for module 'expf'.
1063         * modules/expf-tests: New file.
1064         * tests/test-expf.c: New file.
1065
1066         New module 'expf'.
1067         * lib/math.in.h (expf): New declaration.
1068         * lib/expf.c: New file.
1069         * m4/expf.m4: New file.
1070         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1072         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1073         * modules/expf: New file.
1074         * tests/test-math-c++.cc: Check the declaration of expf.
1075         * doc/posix-functions/expf.texi: Mention the new module.
1076
1077         exp: Use a .m4 file.
1078         * m4/exp.m4: New file.
1079         * modules/exp (Files): Add it.
1080         (configure.ac): Just invoke gl_FUNC_EXP.
1081
1082 2011-10-08  Bruno Haible  <bruno@clisp.org>
1083
1084         Tests for module 'sqrtf'.
1085         * modules/sqrtf-tests: New file.
1086         * tests/test-sqrtf.c: New file.
1087
1088         New module 'sqrtf'.
1089         * lib/math.in.h (sqrtf): New declaration.
1090         * lib/sqrtf.c: New file.
1091         * m4/sqrtf.m4: New file.
1092         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1094         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1095         * modules/sqrtf: New file.
1096         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1097         * doc/posix-functions/sqrtf.texi: Mention the new module.
1098
1099 2011-10-08  Bruno Haible  <bruno@clisp.org>
1100
1101         Tests: Avoid link failures w.r.t. libintl.
1102         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1103         $(LIBINTL).
1104         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1105         $(LIBINTL).
1106         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1107         against $(LIBINTL).
1108         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1109         $(LIBINTL).
1110         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1111         $(LIBINTL).
1112         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1113
1114 2011-10-08  Bruno Haible  <bruno@clisp.org>
1115
1116         pow tests: Defeat compiler optimizations.
1117         * tests/test-pow.c (main): Assign arguments to x and y before use.
1118
1119 2011-10-08  Bruno Haible  <bruno@clisp.org>
1120
1121         gnulib-tool: Improve last commit.
1122         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1123         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1124         ignore dependencies that are not among the modules list.
1125
1126 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1127
1128         gnulib-tool: don't follow dependencies to avoided modules
1129         This fixes a bug that is related to the previous one.
1130         * gnulib-tool (func_modules_transitive_closure)
1131         (func_emit_autoconf_snippets):
1132         Check whether a dependency is acceptable before using it.
1133         (--extract-dependencies): Report an error if --avoid is also used,
1134         since this combination of options is not yet supported.
1135
1136         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1137         Problem reported by Peter Dyballa in
1138         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1139         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1140         when echoing "$condition".
1141
1142 2011-10-07  Bruno Haible  <bruno@clisp.org>
1143
1144         Fix documentation about math functions on MacOS X.
1145         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1146         MacOS X 10.5.
1147         * doc/posix-functions/fdim.texi: Likewise.
1148         * doc/posix-functions/feclearexcept.texi: Likewise.
1149         * doc/posix-functions/fegetenv.texi: Likewise.
1150         * doc/posix-functions/fegetround.texi: Likewise.
1151         * doc/posix-functions/feholdexcept.texi: Likewise.
1152         * doc/posix-functions/feraiseexcept.texi: Likewise.
1153         * doc/posix-functions/fesetenv.texi: Likewise.
1154         * doc/posix-functions/fesetround.texi: Likewise.
1155         * doc/posix-functions/fetestexcept.texi: Likewise.
1156         * doc/posix-functions/feupdateenv.texi: Likewise.
1157         * doc/posix-functions/fmax.texi: Likewise.
1158         * doc/posix-functions/fmin.texi: Likewise.
1159         * doc/posix-functions/log2.texi: Likewise.
1160         * doc/posix-functions/modff.texi: Likewise.
1161         * doc/posix-functions/nan.texi: Likewise.
1162         * doc/posix-functions/nanf.texi: Likewise.
1163         * doc/posix-functions/nextafterf.texi: Likewise.
1164         * doc/posix-functions/remquo.texi: Likewise.
1165
1166 2011-10-07  Bruno Haible  <bruno@clisp.org>
1167
1168         modff: Drop assumption about library that defines modff.
1169         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1170         AC_CHECK_FUNCS.
1171         * modules/modff (Files): Add m4/mathfunc.m4.
1172
1173 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1174
1175         raise tests: Avoid a GCC warning.
1176         * tests/test-raise.c (handler): Use _Noreturn.
1177
1178 2011-10-07  Bruno Haible  <bruno@clisp.org>
1179
1180         Tests for module 'ldexpf'.
1181         * modules/ldexpf-tests: New file.
1182         * tests/test-ldexpf.c: New file.
1183
1184         New module 'ldexpf'.
1185         * lib/math.in.h (ldexpf): New declaration.
1186         * lib/ldexpf.c: New file.
1187         * m4/ldexpf.m4: New file.
1188         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1190         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1191         * modules/ldexpf: New file.
1192         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1193         * doc/posix-functions/ldexpf.texi: Mention the new module.
1194
1195 2011-10-06  Bruno Haible  <bruno@clisp.org>
1196
1197         frexpf: Work around problems on IRIX and mingw.
1198         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1200         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1201         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1202         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1203         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1204         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1205
1206 2011-10-06  Bruno Haible  <bruno@clisp.org>
1207
1208         fabsf: Drop assumption about library that defines fabsf.
1209         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1210         AC_CHECK_FUNCS.
1211         * modules/fabsf (Files): Add m4/mathfunc.m4.
1212
1213 2011-10-06  Bruno Haible  <bruno@clisp.org>
1214
1215         frexpf: Drop assumption about library that defines frexpf.
1216         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1217         'int *', 'float *', 'long double *', 'float', 'long double'.
1218         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1219         AC_CHECK_FUNCS.
1220         * modules/frexpf (Files): Add m4/mathfunc.m4.
1221
1222         Tests for module 'frexpf'.
1223         * modules/frexpf-tests: New file.
1224         * tests/test-frexpf.c: New file.
1225
1226         New module 'frexpf'.
1227         * lib/math.in.h (frexpf): New declaration.
1228         * lib/frexpf.c: New file.
1229         * m4/frexpf.m4: New file.
1230         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1232         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1233         * modules/frexpf: New file.
1234         * tests/test-math-c++.cc: Check the declaration of frexpf.
1235         * doc/posix-functions/frexpf.texi: Mention the new module.
1236
1237 2011-10-06  Bruno Haible  <bruno@clisp.org>
1238
1239         math: Sort function declarations of math.in.h.
1240         * lib/math.in.h (frexp, logb): Move declarations.
1241
1242 2011-10-05  Bruno Haible  <bruno@clisp.org>
1243
1244         Tests for module 'modff'.
1245         * modules/modff-tests: New file.
1246         * tests/test-modff.c: New file.
1247
1248         New module 'modff'.
1249         * lib/math.in.h (modff): New declaration.
1250         * lib/modff.c: New file.
1251         * m4/modff.m4: New file.
1252         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1254         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1255         * modules/modff: New file.
1256         * tests/test-math-c++.cc: Check the declaration of modff.
1257         * doc/posix-functions/modff.texi: Mention the new module.
1258
1259         modf tests: Make test sharper.
1260         * tests/test-modf.c (main): Strengthen upper bound.
1261
1262         modf: Use a .m4 file.
1263         * m4/modf.m4: New file.
1264         * modules/modf (Files): Add it.
1265         (configure.ac): Just invoke gl_FUNC_MODF.
1266
1267 2011-10-05  Bruno Haible  <bruno@clisp.org>
1268
1269         Tests for module 'fmodf'.
1270         * modules/fmodf-tests: New file.
1271         * tests/test-fmodf.c: New file.
1272
1273         New module 'fmodf'.
1274         * lib/math.in.h (fmodf): New declaration.
1275         * lib/fmodf.c: New file.
1276         * m4/fmodf.m4: New file.
1277         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1279         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1280         * modules/fmodf: New file.
1281         * tests/test-math-c++.cc: Check the declaration of fmodf.
1282         * doc/posix-functions/fmodf.texi: Mention the new module.
1283
1284         fmod: Use a .m4 file.
1285         * m4/fmod.m4: New file.
1286         * modules/fmod (Files): Add it.
1287         (configure.ac): Just invoke gl_FUNC_FMOD.
1288
1289 2011-10-05  Bruno Haible  <bruno@clisp.org>
1290
1291         Tests for module 'fabsf'.
1292         * modules/fabsf-tests: New file.
1293         * tests/test-fabsf.c: New file.
1294
1295         New module 'fabsf'.
1296         * lib/math.in.h (fabsf): New declaration.
1297         * lib/fabsf.c: New file.
1298         * m4/fabsf.m4: New file.
1299         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1301         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1302         * modules/fabsf: New file.
1303         * tests/test-math-c++.cc: Check the declaration of fabsf.
1304         * doc/posix-functions/fabsf.texi: Mention the new module.
1305
1306         fabs: Use a .m4 file.
1307         * m4/fabs.m4: New file.
1308         * modules/fabs (Files): Add it.
1309         (configure.ac): Just invoke gl_FUNC_FABS.
1310
1311 2011-10-05  Jim Meyering  <meyering@redhat.com>
1312
1313         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1314         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1315         ls -lL regression introduced in coreutils-8.12, it does so at the
1316         cost of an additional stat call in the common case.  Besides, now
1317         that the kernel change that prompted commit 95f7c57f has been reverted
1318         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1319         we have no use for commit 95f7c57f, "file-has-acl: use
1320         acl_extended_file_nofollow if available".
1321
1322 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1323
1324         file-has-acl: revert unintended change in behavior of ls -L
1325         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1326         derived from...
1327         (file_has_acl): ...code here.  Call it.
1328         This problem was introduced with 2011-07-22 commit 95f7c57f,
1329         "file-has-acl: use acl_extended_file_nofollow if available".
1330         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1331
1332 2011-10-03  Bruno Haible  <bruno@clisp.org>
1333
1334         poll: Avoid link errors on MSVC.
1335         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1336         * modules/poll (Depends-on): Add sockets.
1337         (Link): New section.
1338         * NEWS: Mention the change.
1339         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1340         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1341         $(LIB_POLL) instead of $(LIBSOCKET).
1342
1343 2011-10-03  Bruno Haible  <bruno@clisp.org>
1344
1345         sys_select tests: Fix link error on MSVC 9.
1346         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1347         with $(LIB_SELECT) instead of $(LIBSOCKET).
1348
1349 2011-10-03  Bruno Haible  <bruno@clisp.org>
1350
1351         sys_select: Fix compilation error on mingw.
1352         * lib/sys_select.in.h: On native Windows, include <io.h>.
1353
1354 2011-10-03  Bruno Haible  <bruno@clisp.org>
1355
1356         wmemset: Support for MSVC.
1357         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1358         whether wmemset() exists.
1359
1360 2011-10-03  Bruno Haible  <bruno@clisp.org>
1361
1362         wmemmove: Support for MSVC.
1363         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1364         whether wmemmove() exists.
1365
1366 2011-10-03  Bruno Haible  <bruno@clisp.org>
1367
1368         wmemcpy: Support for MSVC.
1369         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1370         whether wmemcpy() exists.
1371
1372 2011-10-03  Bruno Haible  <bruno@clisp.org>
1373
1374         wmemcmp: Support for MSVC.
1375         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1376         whether wmemcmp() exists.
1377
1378 2011-10-03  Bruno Haible  <bruno@clisp.org>
1379
1380         wmemchr: Support for MSVC.
1381         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1382         whether wmemchr() exists.
1383
1384 2011-10-03  Bruno Haible  <bruno@clisp.org>
1385
1386         glthread/*, strsignal: Support for MSVC.
1387         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1388         including <winsock.h> on MSVC 9.
1389         * lib/glthread/lock.h: Likewise.
1390         * lib/glthread/thread.h: Likewise.
1391         * lib/glthread/tls.h: Likewise.
1392         * lib/glthread/yield.h: Likewise.
1393         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1394         if HAVE_UNISTD_H is false.
1395         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1396
1397 2011-10-03  Bruno Haible  <bruno@clisp.org>
1398
1399         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1400         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1401         Set to 100000.
1402
1403 2011-10-03  Bruno Haible  <bruno@clisp.org>
1404
1405         acl: Fix specification.
1406         * lib/file-has-acl.c (file_has_acl): Fix specification.
1407
1408 2011-10-03  Bruno Haible  <bruno@clisp.org>
1409
1410         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1411         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1412         (compute_curr_prefix, shared_library_fullname,
1413         find_shared_library_fullname, get_shared_library_fullname, relocate):
1414         Use it together with PIC && INSTALLDIR.
1415         Reported by <jojelino@gmail.com>
1416         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1417
1418 2011-10-01  Jim Meyering  <meyering@redhat.com>
1419
1420         maint.mk: adjust a release-related rule not to require use of gzip
1421         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1422         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1423         projects that build only .tar.xz files.  Also fix an erroneous test.
1424
1425         test-linkat: don't leave behind a temporary file
1426         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1427         Otherwise, coreutils' "make distcheck" would fail with this:
1428           Only in /c/cu/tests/torture/coreutils/test/\
1429             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1430           make[2]: *** [my-distcheck] Error 1
1431
1432         float, math: add omitted file
1433         * lib/itold.c: Add file, required for yesterday's float change.
1434
1435 2011-10-01  Bruno Haible  <bruno@clisp.org>
1436
1437         isinf: Fix for OpenBSD/x86.
1438         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1439         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1440         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1441
1442 2011-10-01  Bruno Haible  <bruno@clisp.org>
1443
1444         isfinite: Fix syntax error in configure test.
1445         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1446
1447         isfinite: Fix typo.
1448         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1449         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1450
1451 2011-10-01  Bruno Haible  <bruno@clisp.org>
1452
1453         nonblocking tests: Fix test failure on Linux/IA-64.
1454         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1455         Set to 270000.
1456
1457 2011-10-01  Bruno Haible  <bruno@clisp.org>
1458
1459         mkfifoat tests: Fix a test failure on mingw.
1460         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1461         with error ENOSYS.
1462
1463 2011-09-30  Bruno Haible  <bruno@clisp.org>
1464
1465         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1466         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1467         'long double'. Set REPLACE_ITOLD.
1468         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1469         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1470         * lib/itold.c: New file.
1471         * modules/float (Files): Add lib/itold.c.
1472         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1473         (Makefile.am): Substitute REPLACE_ITOLD.
1474         * modules/math (Depends-on): Add float.
1475         (Makefile.am): Substitute REPLACE_ITOLD.
1476         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1477         * doc/posix-headers/math.texi: Likewise.
1478         * doc/posix-functions/logl.texi: Likewise.
1479
1480 2011-09-30  Bruno Haible  <bruno@clisp.org>
1481
1482         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1483         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1484         Set to 140000.
1485
1486 2011-09-30  Bruno Haible  <bruno@clisp.org>
1487
1488         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1489         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1490         invocation, say "right after AC_PROG_CC_STDC", not "right after
1491         AC_PROG_CC".
1492         Reported by Gary V. Vaughan <gary@gnu.org>.
1493
1494 2011-09-30  Bruno Haible  <bruno@clisp.org>
1495
1496         Centralize C99 requirement.
1497         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1498         * modules/stdarg (configure.ac-early): Invoke it instead of
1499         AC_PROG_CC_STDC.
1500         Reported by Gary V. Vaughan and Paul Eggert.
1501
1502 2011-09-29  Bruno Haible  <bruno@clisp.org>
1503
1504         float: Fix LDBL_MAX value on Linux/PowerPC.
1505         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1506         on Linux/PowerPC.
1507         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1508         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1509         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1510         platform.
1511         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1512
1513 2011-09-29  Bruno Haible  <bruno@clisp.org>
1514
1515         doc: Improve doc about gl_EARLY.
1516         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1517         AC_PROG_CC_STDC invocation.
1518         Reported by Gary V. Vaughan <gary@gnu.org>.
1519
1520 2011-09-28  Bruno Haible  <bruno@clisp.org>
1521
1522         fgetc, fputc, fread, fwrite tests: Fix link error.
1523         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1524         on non-MSVC platforms.
1525         * tests/test-fputc.c (main): Likewise.
1526         * tests/test-fread.c (main): Likewise.
1527         * tests/test-fwrite.c (main): Likewise.
1528         Reported by Jim Meyering.
1529
1530 2011-09-27  Bruno Haible  <bruno@clisp.org>
1531
1532         fputc, fwrite tests: Avoid test failure on MSVC.
1533         * tests/test-fgetc.c: Include msvc-inval.h.
1534         (main): Invoke gl_msvc_inval_ensure_handler.
1535         * tests/test-fputc.c: Include msvc-inval.h.
1536         (main): Invoke gl_msvc_inval_ensure_handler.
1537         * tests/test-fread.c: Include msvc-inval.h.
1538         (main): Invoke gl_msvc_inval_ensure_handler.
1539         * tests/test-fwrite.c: Include msvc-inval.h.
1540         (main): Invoke gl_msvc_inval_ensure_handler.
1541         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1542         * modules/fputc-tests (Depends-on): Likewise.
1543         * modules/fread-tests (Depends-on): Likewise.
1544         * modules/fwrite-tests (Depends-on): Likewise.
1545
1546 2011-09-27  Bruno Haible  <bruno@clisp.org>
1547
1548         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1549         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1550         (raise): Remove older, duplicated declaration.
1551         (_gl_raise_SIGPIPE): New declaration.
1552         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1553         (rpl_raise): Remove function.
1554         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1555         a gnulib-defined SIGPIPE here.
1556         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1557         'sigprocmask' has detected missing signal-blocking and the module
1558         'sigpipe' is enabled.
1559         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1560
1561 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1562
1563         base64-tests: avoid memory leak
1564         * tests/test-base64.c (main): Plug memory leak.
1565
1566         base32: new module
1567         * modules/base32: New module.
1568         * lib/base32.c: New file.
1569         * lib/base32.h: Likewise.
1570         * m4/base32.m4: Likewise.
1571         * modules/base32-tests: New test.
1572         * tests/test-base32.c: Likewise.
1573         * MODULES.html.sh (Misc): Mention it.
1574
1575 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1576
1577         gnulib: use more-standard license notice wording
1578         * gnulib-tool (func_emit_copyright_notice): When emitting a
1579         license notice into a file, use the standard wording as suggested
1580         by the current information for GNU maintainers, except say "file"
1581         rather than "program".  The new wording gives a license version
1582         number, which addresses an issue raised by Glenn Morris in
1583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1584         * m4/onceonly.m4: Use that same wording here, too.
1585
1586         dup2: minor simplification
1587         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1588         as lib/dup2.c no longer uses 'inline'.
1589
1590 2011-09-25  Bruno Haible  <bruno@clisp.org>
1591
1592         strings: Fix compilation error on MSVC.
1593         * lib/strings.in.h: Include <stddef.h> for size_t.
1594
1595 2011-09-25  Bruno Haible  <bruno@clisp.org>
1596
1597         fflush et al.: Document limitation on MSVC.
1598         * doc/posix-functions/fflush.texi: Document possible crash in handling
1599         mode other than DEFAULT_HANDLING.
1600         * doc/posix-functions/fgetc.texi: Likewise.
1601         * doc/posix-functions/fputc.texi: Likewise.
1602         * doc/posix-functions/fread.texi: Likewise.
1603         * doc/posix-functions/fwrite.texi: Likewise.
1604
1605 2011-09-25  Bruno Haible  <bruno@clisp.org>
1606
1607         msvc-inval: Allow three invalid parameter handling modes.
1608         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1609         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1610         macros.
1611         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1612         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1613         SANE_LIBRARY_HANDLING as a no-op.
1614         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1615         <stdlib.h>.
1616         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1617
1618 2011-09-25  Bruno Haible  <bruno@clisp.org>
1619
1620         msvc-inval: Make handler multithread-safe.
1621         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1622         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1623         declarations.
1624         (gl_msvc_inval_current): New declaration.
1625         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1626         Operate on the structure returned by gl_msvc_inval_current().
1627         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1628         Remove varaiables.
1629         (tls_index, tls_initialized): New variables.
1630         (not_per_thread): New variable.
1631         (gl_msvc_inval_current): New function.
1632         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1633         returned by gl_msvc_inval_current().
1634
1635 2011-09-25  Bruno Haible  <bruno@clisp.org>
1636
1637         msvc-inval: Install handler globally.
1638         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1639         !_MSC_VER.
1640         (gl_msvc_invalid_parameter_handler): Remove declaration.
1641         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1642         declarations.
1643         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1644         Install the handler globally, don't uninstall it.
1645         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1646         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1647         currently valid, call RaiseException instead.
1648         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1649         for !_MSC_VER.
1650
1651 2011-09-25  Bruno Haible  <bruno@clisp.org>
1652
1653         strerror_r-posix: Fix for MSVC 9.
1654         * lib/strerror_r.c (local_snprintf): New function.
1655         (snprintf): Define to local_snprintf, not to _snprintf.
1656
1657 2011-09-25  Bruno Haible  <bruno@clisp.org>
1658
1659         ftruncate: Support for MSVC 9.
1660         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1661         (chsize_nothrow): New function.
1662         (chsize): Redefine as a macro.
1663         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1664         * modules/ftruncate (Depends-on): Add msvc-inval.
1665
1666 2011-09-25  Bruno Haible  <bruno@clisp.org>
1667
1668         New module 'fstat'.
1669         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1670         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1671         * lib/fchdir.c (rpl_fstat): Remove function.
1672         * m4/fstat.m4: New file.
1673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1675         declared.
1676         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1677         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1678         * modules/fstat: New file.
1679         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1680         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1681         is set.
1682         * doc/posix-functions/fstat.texi: Mention the new module and the
1683         problem on MSVC.
1684         * NEWS: Mention the change.
1685         * modules/acl (Depends-on): Add fstat.
1686         * modules/chdir-safer (Depends-on): Likewise.
1687         * modules/chown (Depends-on): Likewise.
1688         * modules/copy-file (Depends-on): Likewise.
1689         * modules/fchdir (Depends-on): Likewise.
1690         * modules/fdopendir (Depends-on): Likewise.
1691         * modules/fopen (Depends-on): Likewise.
1692         * modules/fts (Depends-on): Likewise.
1693         * modules/getcwd (Depends-on): Likewise.
1694         * modules/isapipe (Depends-on): Likewise.
1695         * modules/linkat (Depends-on): Likewise.
1696         * modules/lseek (Depends-on): Likewise.
1697         * modules/mkdir-p (Depends-on): Likewise.
1698         * modules/open (Depends-on): Likewise.
1699         * modules/openat (Depends-on): Likewise.
1700         * modules/read-file (Depends-on): Likewise.
1701         * modules/renameat (Depends-on): Likewise.
1702         * modules/utimens (Depends-on): Likewise.
1703
1704 2011-09-25  Bruno Haible  <bruno@clisp.org>
1705
1706         linkat: Fix compilation on MSVC 9.
1707         * lib/linkat.c: Don't include <stdint.h>.
1708
1709 2011-09-25  Bruno Haible  <bruno@clisp.org>
1710
1711         fclose: Support for MSVC 9.
1712         * lib/fclose.c: Include msvc-inval.h.
1713         (fclose_nothrow): New function.
1714         (rpl_fclose): Use it.
1715         * modules/fclose (Depends-on): Add msvc-inval.
1716         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1717
1718 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1719
1720         dup2: minor simplifications
1721         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1722         that it's a performance win.
1723         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1724         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1725
1726 2011-09-24  Jim Meyering  <meyering@redhat.com>
1727
1728         test-futimens: avoid a warning from gcc -Wshadow
1729         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1730         to avoid a shadowing warning.
1731
1732 2011-09-24  Bruno Haible  <bruno@clisp.org>
1733
1734         fdopen: Support for MSVC 9.
1735         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1736         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1737         * lib/fdopen.c: Include msvc-inval.h.
1738         (fdopen_nothrow): New function.
1739         (rpl_fdopen): Use it.
1740         * modules/fdopen (Depends-on): Add msvc-inval.
1741         * modules/fclose-tests (Depends-on): Add fdopen.
1742         * modules/fflush-tests (Depends-on): Likewise.
1743         * modules/fgetc-tests (Depends-on): Likewise.
1744         * modules/fputc-tests (Depends-on): Likewise.
1745         * modules/fread-tests (Depends-on): Likewise.
1746         * modules/freopen-tests (Depends-on): Likewise.
1747         * modules/fseeko-tests (Depends-on): Likewise.
1748         * modules/ftello-tests (Depends-on): Likewise.
1749         * modules/fwrite-tests  (Depends-on): Likewise.
1750         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1751
1752 2011-09-24  Bruno Haible  <bruno@clisp.org>
1753
1754         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1755         * modules/fgetc-tests (Depends-on): Add unistd.
1756         * modules/fputc-tests (Depends-on): Likewise.
1757         * modules/fread-tests (Depends-on): Likewise.
1758         * modules/fwrite-tests (Depends-on): Likewise.
1759
1760 2011-09-24  Bruno Haible  <bruno@clisp.org>
1761
1762         dup: Simplify autoconf test.
1763         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1764         on gl_MSVC_INVAL's result.
1765
1766 2011-09-24  Bruno Haible  <bruno@clisp.org>
1767
1768         Tests for function fwrite().
1769         * modules/fwrite-tests: New file.
1770         * tests/test-fwrite.c: New file.
1771         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1772
1773         Tests for function fread().
1774         * modules/fread-tests: New file.
1775         * tests/test-fread.c: New file.
1776         * modules/stdio-tests (Depends-on): Add fread-tests.
1777
1778         Activate fputc tests.
1779         * modules/stdio-tests (Depends-on): Add fputc-tests.
1780
1781         Enhance fgetc, fputc tests.
1782         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1783         * tests/test-fputc.c (main): Likewise.
1784
1785 2011-09-24  Bruno Haible  <bruno@clisp.org>
1786
1787         write: Support for MSVC 9.
1788         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1789         is not 1.
1790         * lib/write.c (write_nothrow): New function.
1791         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1792         not 1. Use write_nothrow.
1793         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1794         invalid parameter handler.
1795         (gl_PREREQ_WRITE): New macro.
1796         * modules/write (Depends-on): Add msvc-inval.
1797         (configure.ac): Invoke gl_PREREQ_WRITE.
1798         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1799
1800 2011-09-24  Bruno Haible  <bruno@clisp.org>
1801
1802         read: Fix last commit.
1803         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1804
1805 2011-09-24  Bruno Haible  <bruno@clisp.org>
1806
1807         dup2: Fix last commit.
1808         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1809         (rpl_dup2): Disable fcntl workaround on native Windows.
1810
1811         sigprocmask: Make code safer.
1812         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1813         section that changes macro definitions for this compilation unit.
1814
1815 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1816
1817         dup2: clarify by coalescing Windows-specific material
1818         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1819         "msvc-nothrow.h"' to the Windows-specific section, so that the
1820         Emacs source need not contain these include files.
1821         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1822         Windows-specific fixes into this function rather than just the
1823         nothrow fix, as this shortens and clarifies the code.  Always
1824         define as a function, as that's a bit cleaner than having it be
1825         sometimes a function and sometimes a macro.
1826         (rpl_dup2): Move the Windows-specific stuff out of here and into
1827         ms_windows_dup2.  Don't protect the Haiku-related fix with
1828         "#if !defined __linux__", as the same code also works around
1829         a Linux kernel bug, and it doesn't add any system calls on any
1830         platform.  Add comment about FreeBSD 6.1.
1831
1832         sigprocmask: move #include directive
1833         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1834         Windows-specific section, so that the Emacs source need not
1835         contain msvc-inval.h.
1836
1837 2011-09-23  Bruno Haible  <bruno@clisp.org>
1838
1839         read: Support for MSVC 9.
1840         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1841         is not 1.
1842         * lib/read.c (read_nothrow): New function.
1843         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1844         read_nothrow.
1845         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1846         invalid parameter handler.
1847         (gl_PREREQ_READ): New macro.
1848         * modules/read (Depends-on): Add msvc-inval.
1849         (configure.ac): Invoke gl_PREREQ_READ.
1850         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1851
1852 2011-09-23  Bruno Haible  <bruno@clisp.org>
1853
1854         close: Support for MSVC 9.
1855         * lib/close.c: Include <errno.h>, msvc-inval.h.
1856         (close_nothrow): New function.
1857         (rpl_close): Use it.
1858         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1859         invalid parameter handler.
1860         * modules/close (Depends-on): Add msvc-inval.
1861         * modules/dup2-tests (Depends-on): Add close.
1862         * modules/dup3-tests (Depends-on): Likewise.
1863         * modules/fcntl-tests (Depends-on): Likewise.
1864         * modules/spawn-pipe-tests (Depends-on): Likewise.
1865         * modules/unistd-safer-tests (Depends-on): Likewise.
1866         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1867
1868 2011-09-23  Bruno Haible  <bruno@clisp.org>
1869
1870         New module 'dup'.
1871         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1872         Allow replacement.
1873         * lib/dup.c: New file.
1874         * lib/fchdir.c (rpl_dup): Remove function.
1875         * m4/dup.m4: New file.
1876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1877         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1878         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1879         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1880         * modules/dup: New file.
1881         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1882         'dup' module is in use.
1883         * modules/fdopendir (Depends-on): Add dup.
1884         * modules/fdutimensat-tests (Depends-on): Likewise.
1885         * modules/fts (Depends-on): Likewise.
1886         * modules/futimens-tests (Depends-on): Likewise.
1887         * modules/posix_spawnp-tests (Depends-on): Likewise.
1888         * modules/unistd-safer-tests (Depends-on): Likewise.
1889         * modules/utimens-tests (Depends-on): Likewise.
1890         * doc/posix-functions/dup.texi: Mention the new module and the problem
1891         on MSVC.
1892
1893 2011-09-23  Bruno Haible  <bruno@clisp.org>
1894
1895         getdtablesize: Support for MSVC 9.
1896         * lib/getdtablesize.c: Include msvc-inval.h.
1897         (_setmaxstdio_nothrow): New function.
1898         (_setmaxstdio): Redefine it.
1899         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1900         * modules/getdtablesize (Depends-on): Add msvc-inval.
1901         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1902
1903 2011-09-23  Bruno Haible  <bruno@clisp.org>
1904
1905         signal-h: Rename from signal.
1906         * modules/signal-h: Renamed from modules/signal.
1907         * modules/pthread_sigmask (Depends-on): Update.
1908         * modules/raise (Depends-on): Likewise.
1909         * modules/sigaction (Depends-on): Likewise.
1910         * modules/sigpipe (Depends-on): Likewise.
1911         * modules/sigprocmask (Depends-on): Likewise.
1912         * modules/sys_select (Depends-on): Likewise.
1913         * modules/signal-h-tests: Renamed from modules/signal-tests.
1914         (Files, Depends-on, Makefile.am): Update.
1915         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1916         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1917         (Files, Makefile.am): Update.
1918         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1919         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1920         * modules/signal: New placeholder file.
1921         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1922         * doc/posix-headers/signal.texi: Update.
1923         * NEWS: Mention the change.
1924
1925 2011-09-23  Bruno Haible  <bruno@clisp.org>
1926
1927         sigprocmask: Avoid crashes through signal() on MSVC 9.
1928         * lib/sigprocmask.c: Include msvc-inval.h.
1929         (signal_nothrow): New function.
1930         (signal): Redefine it.
1931         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1932         * modules/sigprocmask (Depends-on): Add msvc-inval.
1933         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1934
1935 2011-09-23  Bruno Haible  <bruno@clisp.org>
1936
1937         Tests for module 'raise'.
1938         * modules/raise-tests: New file.
1939         * tests/test-raise.c: New file.
1940
1941         raise: Support for MSVC.
1942         * lib/signal.in.h (raise): New declaration.
1943         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1944         for native Windows platforms.
1945         * m4/raise.m4: New file.
1946         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1947         HAVE_RAISE, REPLACE_RAISE.
1948         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1949         REPLACE_RAISE.
1950         * modules/raise (Status, Notice): Remove fields.
1951         (Files): Add m4/raise.m4.
1952         (Depends-on): Add signal, msvc-inval.
1953         (configure.ac): Use the common idioms.
1954         (Maintainer): Add me.
1955         * tests/test-signal-c++.cc: Check the signature of raise.
1956         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1957
1958 2011-09-23  Bruno Haible  <bruno@clisp.org>
1959
1960         pipe2: Fix compilation on pre-C99 compilers.
1961         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1962
1963 2011-09-23  Bruno Haible  <bruno@clisp.org>
1964
1965         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1966         * lib/msvc-nothrow.h: New file.
1967         * lib/msvc-nothrow.c: New file.
1968         * m4/msvc-nothrow.m4: New file.
1969         * modules/msvc-nothrow: New file.
1970         * lib/dup2.c: Include msvc-nothrow.h.
1971         (rpl_dup2): No need to protect _get_osfhandle call here.
1972         * lib/accept4.c: Include msvc-nothrow.h.
1973         * lib/error.c: Likewise.
1974         * lib/fcntl.c: Likewise.
1975         * lib/lseek.c: Likewise.
1976         * lib/nonblocking.c: Likewise.
1977         * lib/poll.c: Likewise.
1978         * lib/read.c: Likewise.
1979         * lib/select.c: Likewise.
1980         * lib/sockets.h: Likewise.
1981         * lib/sockets.c: Likewise.
1982         * lib/stdio-read.c: Likewise.
1983         * lib/stdio-write.c: Likewise.
1984         * lib/write.c: Likewise.
1985         * lib/w32sock.h: Likewise.
1986         * lib/w32spawn.h: Likewise.
1987         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1988         * lib/fsync.c: Likewise.
1989         * lib/isapipe.c: Likewise.
1990         * modules/dup2 (Depends-on): Add msvc-nothrow.
1991         * modules/accept4 (Depends-on): Likewise.
1992         * modules/error (Depends-on): Likewise.
1993         * modules/fcntl (Depends-on): Likewise.
1994         * modules/lseek (Depends-on): Likewise.
1995         * modules/nonblocking (Depends-on): Likewise.
1996         * modules/poll (Depends-on): Likewise.
1997         * modules/read (Depends-on): Likewise.
1998         * modules/select (Depends-on): Likewise.
1999         * modules/sockets (Depends-on): Likewise.
2000         * modules/sigpipe (Depends-on): Likewise.
2001         * modules/write (Depends-on): Likewise.
2002         * modules/accept (Depends-on): Likewise.
2003         * modules/bind (Depends-on): Likewise.
2004         * modules/connect (Depends-on): Likewise.
2005         * modules/gethostname (Depends-on): Likewise.
2006         * modules/getpeername (Depends-on): Likewise.
2007         * modules/getsockname (Depends-on): Likewise.
2008         * modules/getsockopt (Depends-on): Likewise.
2009         * modules/ioctl (Depends-on): Likewise.
2010         * modules/listen (Depends-on): Likewise.
2011         * modules/recv (Depends-on): Likewise.
2012         * modules/recvfrom (Depends-on): Likewise.
2013         * modules/send (Depends-on): Likewise.
2014         * modules/sendto (Depends-on): Likewise.
2015         * modules/setsockopt (Depends-on): Likewise.
2016         * modules/shutdown (Depends-on): Likewise.
2017         * modules/socket (Depends-on): Likewise.
2018         * modules/execute (Depends-on): Likewise.
2019         * modules/spawn-pipe (Depends-on): Likewise.
2020         * modules/flock (Depends-on): Likewise.
2021         * modules/fsync (Depends-on): Likewise.
2022         * modules/isapipe (Depends-on): Likewise.
2023         * tests/test-cloexec.c: Include msvc-nothrow.h.
2024         * tests/test-dup-safer.c: Likewise.
2025         * tests/test-dup2.c: Likewise.
2026         * tests/test-dup3.c: Likewise.
2027         * tests/test-fcntl.c: Likewise.
2028         * tests/test-pipe.c: Likewise.
2029         * tests/test-pipe2.c: Likewise.
2030         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2031         * modules/unistd-safer-tests (Depends-on): Likewise.
2032         * modules/dup2-tests (Depends-on): Likewise.
2033         * modules/dup3-tests (Depends-on): Likewise.
2034         * modules/fcntl-tests (Depends-on): Likewise.
2035         * modules/pipe-posix-tests (Depends-on): Likewise.
2036         * modules/pipe2-tests (Depends-on): Likewise.
2037
2038 2011-09-23  Bruno Haible  <bruno@clisp.org>
2039
2040         dup2: Make code more maintainable.
2041         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2042         (rpl_dup2): Use it.
2043         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2044         * modules/dup2 (configure.ac): Invoke it.
2045         Reported by Paul Eggert.
2046
2047 2011-09-23  Bruno Haible  <bruno@clisp.org>
2048
2049         msvc-inval: Fix compilation error.
2050         * lib/msvc-inval.h: Include <excpt.h>.
2051
2052 2011-09-23  Bruno Haible  <bruno@clisp.org>
2053
2054         mkdir: Tweak for MSVC 9.
2055         * lib/sys_stat.in.h: Update comments.
2056         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2057
2058         Tests for module 'chdir'.
2059         * modules/chdir-tests: New file.
2060         * tests/test-chdir.c: New file.
2061
2062         New module 'chdir'.
2063         * modules/chdir: New file.
2064         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2065         (chdir): New declaration.
2066         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2067         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2068         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2069         * tests/test-unistd-c++.cc: Check signature of chdir.
2070         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2071         * modules/chdir-long (Depends-on): Add chdir.
2072         * modules/fchdir (Depends-on): Likewise.
2073         * modules/rename (Depends-on): Likewise.
2074         * modules/savewd (Depends-on): Likewise.
2075
2076         rmdir: Support for mingw, MSVC 9.
2077         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2078         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2079
2080         getcwd: Tweak for MSVC 9.
2081         * lib/unistd.in.h: Update comments.
2082         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2083
2084 2011-09-22  Bruno Haible  <bruno@clisp.org>
2085
2086         strerror_r-posix: Avoid a link error on MSVC.
2087         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2088         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2089
2090 2011-09-22  Bruno Haible  <bruno@clisp.org>
2091
2092         select: Avoid link errors on MSVC.
2093         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2094         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2095         * modules/pselect (Link): Likewise.
2096         * NEWS: Mention the change.
2097         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2098         test-select-stdin against $(LIB_SELECT).
2099         * modules/pselect-tests (Makefile.am): Link test-pselect against
2100         $(LIB_SELECT).
2101
2102 2011-09-22  Bruno Haible  <bruno@clisp.org>
2103
2104         select: Avoid compilation error on MSVC.
2105         * lib/select.c: Don't include <stdbool.h>.
2106
2107 2011-09-21  Bruno Haible  <bruno@clisp.org>
2108
2109         Consolidate all uses of PATH_MAX in *.m4 files.
2110         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2111         macros.
2112         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2113         and gl_PATHMAX_SNIPPET.
2114         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2115         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2116         * modules/chdir-long (Files): Add m4/pathmax.m4.
2117         * modules/getcwd (Files): Likewise.
2118
2119 2011-09-21  Bruno Haible  <bruno@clisp.org>
2120
2121         ftruncate: Un-deprecate, concentrate on Win32 support.
2122         * modules/ftruncate (Status, Notice): Remove sections.
2123         (Depends-on): Add largefile.
2124         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2125         non-mingw platforms.
2126         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2127         include <io.h>.
2128         * modules/perror-tests (Depends-on): Add ftruncate.
2129         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2130         'ftruncate' module.
2131
2132 2011-09-21  Bruno Haible  <bruno@clisp.org>
2133
2134         Add dependencies to new dirent related modules.
2135         * modules/opendir (Depends-on): Add closedir.
2136         * modules/getcwd (Depends-on): Add opendir, closedir.
2137         * modules/dirent-safer-tests (Depends-on): Likewise.
2138         * modules/fdopendir-tests (Depends-on): Likewise.
2139         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2140         * modules/renameat-tests (Depends-on): Likewise.
2141
2142 2011-09-21  Bruno Haible  <bruno@clisp.org>
2143
2144         opendir: Avoid compilation error on mingw.
2145         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2146         * modules/opendir (Depends-on): Add unistd.
2147
2148 2011-09-21  Bruno Haible  <bruno@clisp.org>
2149
2150         ftruncate tests: Avoid a test failure on mingw.
2151         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2152
2153 2011-09-21  Bruno Haible  <bruno@clisp.org>
2154
2155         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2156         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2157         native Windows.
2158
2159 2011-09-21  Bruno Haible  <bruno@clisp.org>
2160
2161         New module 'fdopen'.
2162         * lib/stdio.in.h (fdopen): New declaration.
2163         * lib/fdopen.c: New file.
2164         * m4/fdopen.m4: New file.
2165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2166         REPLACE_FDOPEN.
2167         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2168         REPLACE_FDOPEN.
2169         * modules/fdopen: New file.
2170         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2171         * tests/test-stdio-c++.cc: Check signature of fdopen.
2172         * doc/posix-functions/fdopen.texi: Mention the new module.
2173
2174 2011-09-21  Bruno Haible  <bruno@clisp.org>
2175
2176         unlockpt tests: Avoid test failure on NetBSD 5.1.
2177         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2178         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2179
2180 2011-09-21  Bruno Haible  <bruno@clisp.org>
2181
2182         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2183         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2184         * tests/test-getlogin_r.c (main): Likewise.
2185
2186 2011-09-20  Bruno Haible  <bruno@clisp.org>
2187
2188         time tests: Don't require pid_t.
2189         * doc/posix-headers/time.texi: Revert last change.
2190         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2191         * tests/test-time.c: Comment out the check for pid_t.
2192
2193 2011-09-20  Bruno Haible  <bruno@clisp.org>
2194
2195         fsync tests: Avoid a test failure on mingw.
2196         * tests/test-fsync.c (main): Allow a failure with EIO.
2197
2198 2011-09-20  Bruno Haible  <bruno@clisp.org>
2199
2200         euidaccess: Update comments.
2201         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2202
2203 2011-09-20  Bruno Haible  <bruno@clisp.org>
2204
2205         Ensure EBADF returns for socket functions on mingw.
2206         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2207         descriptor is invalid.
2208         * lib/bind.c (rpl_bind): Likewise.
2209         * lib/connect.c (rpl_connect): Likewise.
2210         * lib/getpeername.c (rpl_getpeername): Likewise.
2211         * lib/getsockname.c (rpl_getsockname): Likewise.
2212         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2213         * lib/listen.c (rpl_listen): Likewise.
2214         * lib/recv.c (rpl_recv): Likewise.
2215         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2216         * lib/send.c (rpl_send): Likewise.
2217         * lib/sendto.c (rpl_sendto): Likewise.
2218         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2219         * lib/shutdown.c (rpl_shutdown): Likewise.
2220
2221 2011-09-20  Bruno Haible  <bruno@clisp.org>
2222
2223         select tests: EBADF tests.
2224         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2225         test_bad_fd): New functions.
2226         (test_function): Invoke also test_bad_fd.
2227
2228 2011-09-20  Bruno Haible  <bruno@clisp.org>
2229
2230         Tests for module 'posix_spawn_file_actions_addopen.
2231         * modules/posix_spawn_file_actions_addopen-tests: New file.
2232         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2233
2234         Tests for module 'posix_spawn_file_actions_adddup2'.
2235         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2236         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2237
2238         Tests for module 'posix_spawn_file_actions_addclose'.
2239         * modules/posix_spawn_file_actions_addclose-tests: New file.
2240         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2241
2242 2011-09-20  Bruno Haible  <bruno@clisp.org>
2243
2244         Tests for module 'unlockpt'.
2245         * modules/unlockpt-tests: New file.
2246         * tests/test-unlockpt.c: New file.
2247         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2248
2249         Tests for module 'grantpt'.
2250         * modules/grantpt-tests: New file.
2251         * tests/test-grantpt.c: New file.
2252         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2253
2254 2011-09-20  Bruno Haible  <bruno@clisp.org>
2255
2256         freopen tests: EBADF tests.
2257         * tests/test-freopen.c: Include errno.h, unistd.h.
2258         (main): Add tests for EBADF, commented out for the moment.
2259
2260         fclose tests: EBADF tests.
2261         * tests/test-fclose.c (main): Add tests for EBADF.
2262
2263         fflush tests: EBADF tests.
2264         * tests/test-fflush.c: Include errno.h, macros.h.
2265         (main): Add tests for EBADF.
2266
2267         ftello tests: EBADF tests.
2268         * tests/test-ftello4.sh: New file.
2269         * tests/test-ftello4.c: New file.
2270         * modules/ftello-tests (Files): Add them.
2271         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2272
2273         fseeko tests: EBADF tests.
2274         * tests/test-fseeko4.sh: New file.
2275         * tests/test-fseeko4.c: New file.
2276         * modules/fseeko-tests (Files): Add them.
2277         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2278
2279         Tests for function fputc().
2280         * modules/fputc-tests: New file.
2281         * tests/test-fputc.c: New file.
2282         * modules/stdio-tests (Depends-on): Add fputc-tests.
2283
2284         Tests for function fgetc().
2285         * modules/fgetc-tests: New file.
2286         * tests/test-fgetc.c: New file.
2287         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2288
2289         Tests for function fdopen().
2290         * modules/fdopen-tests: New file.
2291         * tests/test-fdopen.c: New file.
2292         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2293
2294         Tests for module 'vdprintf'.
2295         * modules/vdprintf-tests: New file.
2296         * tests/test-vdprintf.c: New file.
2297
2298         Tests for module 'dprintf'.
2299         * modules/dprintf-tests: New file.
2300         * tests/test-dprintf.c: New file.
2301
2302 2011-09-20  Bruno Haible  <bruno@clisp.org>
2303
2304         Tests for module 'ioctl'.
2305         * modules/ioctl-tests: New file.
2306         * tests/test-ioctl.c: New file.
2307
2308 2011-09-20  Bruno Haible  <bruno@clisp.org>
2309
2310         fcntl tests: EBADF tests.
2311         * tests/test-fcntl.c (main): Add more tests for EBADF.
2312
2313 2011-09-20  Bruno Haible  <bruno@clisp.org>
2314
2315         utimensat tests: EBADF tests.
2316         * tests/test-utimensat.c (main): Add tests for EBADF.
2317
2318         renameat tests: EBADF tests.
2319         * tests/test-renameat.c (main): Add tests for EBADF.
2320
2321         mkfifoat tests: EBADF tests.
2322         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2323
2324         readlinkat tests: EBADF tests.
2325         * tests/test-readlinkat.c (main): Add tests for EBADF.
2326
2327         symlinkat tests: EBADF tests.
2328         * tests/test-symlinkat.c (main): Add tests for EBADF.
2329
2330         linkat tests: EBADF tests.
2331         * tests/test-linkat.c (main): Add tests for EBADF.
2332
2333         Tests for module 'faccessat'.
2334         * modules/faccessat-tests: New file.
2335         * tests/test-faccessat.c: New file.
2336
2337         fdopendir tests: EBADF tests.
2338         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2339
2340         openat tests: EBADF tests.
2341         * tests/test-fchownat.c (main): Add tests for EBADF.
2342         * tests/test-fstatat.c (main): Likewise.
2343         * tests/test-mkdirat.c (main): Likewise.
2344         * tests/test-openat.c (main): Likewise.
2345         * tests/test-unlinkat.c (main): Likewise.
2346         * tests/test-fchmodat.c: New file.
2347         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2348         (Makefile.am): Also run 'test-fchmodat'.
2349
2350 2011-09-20  Bruno Haible  <bruno@clisp.org>
2351
2352         utimens, futimens, fdutimensat tests: EBADF tests.
2353         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2354
2355         Tests for function fstat().
2356         * modules/fstat-tests: New file.
2357         * tests/test-fstat.c: New file.
2358         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2359
2360 2011-09-20  Bruno Haible  <bruno@clisp.org>
2361
2362         test-ttyname_r tests: EBADF tests.
2363         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2364
2365         Tests for module 'isatty'.
2366         * modules/isatty-tests: New file.
2367         * tests/test-isatty.c: New file.
2368
2369         Tests for module 'write'.
2370         * modules/write-tests: New file.
2371         * tests/test-write.c: New file.
2372
2373         Tests for module 'read'.
2374         * modules/read-tests: New file.
2375         * tests/test-read.c: New file.
2376
2377         pwrite tests: EBADF tests.
2378         * tests/test-pwrite.c (main): Add tests for EBADF.
2379
2380         pread tests: EBADF tests.
2381         * tests/test-pread.c (main): Add tests for EBADF.
2382
2383         lseek tests: EBADF tests.
2384         * tests/test-lseek.c (main): Add more tests for EBADF.
2385
2386         Tests for module 'ftruncate'.
2387         * modules/ftruncate-tests: New file.
2388         * tests/test-ftruncate.sh: New file.
2389         * tests/test-ftruncate.c: New file.
2390
2391         fsync tests: EBADF tests.
2392         * tests/test-fsync.c (main): Add more tests for EBADF.
2393
2394         fdatasync tests: EBADF tests.
2395         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2396
2397         Tests for module 'fchown'.
2398         * modules/fchown-tests: New file.
2399         * tests/test-fchown.c: New file.
2400
2401         Tests for module 'fchmod'.
2402         * modules/fchmod-tests: New file.
2403         * tests/test-fchmod.c: New file.
2404
2405         fchdir tests: EBADF tests.
2406         * tests/test-fchdir.c (main): Add more tests for EBADF.
2407
2408         dup2 tests: EBADF tests.
2409         * tests/test-dup2.c (main): Add more tests for EBADF.
2410
2411         Tests for module 'dup'.
2412         * modules/dup-tests: New file.
2413         * tests/test-dup.c: New file.
2414
2415         Tests for module 'close'.
2416         * modules/close-tests: New file.
2417         * tests/test-close.c: New file.
2418
2419 2011-09-20  Bruno Haible  <bruno@clisp.org>
2420
2421         Tests for module 'shutdown'.
2422         * modules/shutdown-tests: New file.
2423         * tests/test-shutdown.c: New file.
2424
2425         Tests for module 'setsockopt'.
2426         * modules/setsockopt-tests: New file.
2427         * tests/test-setsockopt.c: New file.
2428
2429         Tests for module 'sendto'.
2430         * modules/sendto-tests: New file.
2431         * tests/test-sendto.c: New file.
2432
2433         Tests for module 'send'.
2434         * modules/send-tests: New file.
2435         * tests/test-send.c: New file.
2436
2437         Tests for module 'recvfrom'.
2438         * modules/recvfrom-tests: New file.
2439         * tests/test-recvfrom.c: New file.
2440
2441         Tests for module 'recv'.
2442         * modules/recv-tests: New file.
2443         * tests/test-recv.c: New file.
2444
2445         Tests for module 'listen'.
2446         * modules/listen-tests: New file.
2447         * tests/test-listen.c: New file.
2448
2449         Tests for module 'getsockopt'.
2450         * modules/getsockopt-tests: New file.
2451         * tests/test-getsockopt.c: New file.
2452
2453         Tests for module 'getsockname'.
2454         * modules/getsockname-tests: New file.
2455         * tests/test-getsockname.c: New file.
2456
2457         Tests for module 'getpeername'.
2458         * modules/getpeername-tests: New file.
2459         * tests/test-getpeername.c: New file.
2460
2461         Tests for module 'connect'.
2462         * modules/connect-tests: New file.
2463         * tests/test-connect.c: New file.
2464
2465         Tests for module 'bind'.
2466         * modules/bind-tests: New file.
2467         * tests/test-bind.c: New file.
2468
2469         accept4 tests: Fix for native Windows.
2470         * tests/test-accept4.c: Include sockets.h.
2471         (main): Invoke gl_sockets_startup.
2472         * modules/accept4-tests (Depends-on): Add sockets.
2473
2474         accept tests: Fix for native Windows.
2475         * tests/test-accept.c: Include sockets.h.
2476         (main): Invoke gl_sockets_startup.
2477         * modules/accept-tests (Depends-on): Add sockets.
2478
2479 2011-09-19  Bruno Haible  <bruno@clisp.org>
2480
2481         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2482         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2483         do...while(0).
2484         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2485         Suggested by Paul Eggert.
2486
2487 2011-09-19  Bruno Haible  <bruno@clisp.org>
2488
2489         sched: Ensure pid_t is defined.
2490         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2491         not define pid_t.
2492         * lib/sched.in.h: Include <sys/types.h>.
2493         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2495
2496 2011-09-19  Bruno Haible  <bruno@clisp.org>
2497
2498         msvc-inval: Ensure the entire expansion is a single statement.
2499         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2500         of braces.
2501
2502 2011-09-19  Jim Meyering  <meyering@redhat.com>
2503
2504         tests: use printf, not echo in init.sh's warn_ function
2505         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2506         misbehave when given strings containing a backslash or starting
2507         with e.g., -n.  James Youngman suggested setting IFS.
2508
2509 2011-09-19  Eric Blake  <eblake@redhat.com>
2510
2511         futimens: enhance test
2512         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2513         closed non-negative fd.
2514
2515         date: accept 'hence' as opposite of 'ago'
2516         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2517         * tests/test-parse-datetime.c (main): Enhance test.
2518         Suggested by Jesse Wilson.
2519
2520 2011-09-19  Jim Meyering  <meyering@redhat.com>
2521
2522         getcwd: don't fail in a deep directory on a system without openat
2523         Before this change, getcwd would fail when called from a directory
2524         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2525         the non-openat implementation used "..", "../..", "../../..", etc.
2526         to access ancestor directories.  With too many, that string would
2527         be longer than PATH_MAX.
2528         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2529         using gnulib's openat replacement.
2530         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2531         we're using the replacement function.
2532
2533 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2534
2535         maint.mk: avoid warnings from perl about missing files
2536         * top/maint.mk (def_sym_regex): Ignore files listed in
2537         $(gl_other_headers_) that do not exist, say because a project
2538         does not use a corresponding module.
2539
2540 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2541
2542         stat: use pathmax.h only if needed
2543         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2544         This is better for Emacs, which does not have a mingw port and
2545         therefore can avoid the pathmax module.
2546
2547         utimens: remove dependency on dup2
2548         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2549         to work around the Linux kernel bug.
2550         * modules/utimens (Depends-on): Remove dup2.
2551
2552 2011-09-18  Bruno Haible  <bruno@clisp.org>
2553
2554         inet_ntop, inet_pton: Look for it also in libresolv.
2555         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2556         libnsl, search for it in libresolv.
2557         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2558         Needed on Solaris 7.
2559
2560 2011-09-18  Bruno Haible  <bruno@clisp.org>
2561
2562         accept, accept4 tests: Avoid link error on Solaris.
2563         * modules/accept-tests (Makefile.am): Link test-accept against
2564         $(LIBSOCKET).
2565         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2566         $(LIBSOCKET).
2567
2568         accept4: Avoid link error on Solaris.
2569         * modules/accept4 (Link): New section.
2570
2571         socket functions: Avoid link errors on Solaris.
2572         * modules/accept (Depends-on): Add socketlib.
2573         (Link): New section.
2574         * modules/bind (Depends-on): Add socketlib.
2575         (Link): New section.
2576         * modules/connect (Depends-on): Add socketlib.
2577         (Link): New section.
2578         * modules/getpeername (Depends-on): Add socketlib.
2579         (Link): New section.
2580         * modules/getsockname (Depends-on): Add socketlib.
2581         (Link): New section.
2582         * modules/getsockopt (Depends-on): Add socketlib.
2583         (Link): New section.
2584         * modules/listen (Depends-on): Add socketlib.
2585         (Link): New section.
2586         * modules/recv (Depends-on): Add socketlib.
2587         (Link): New section.
2588         * modules/recvfrom (Depends-on): Add socketlib.
2589         (Link): New section.
2590         * modules/send (Depends-on): Add socketlib.
2591         (Link): New section.
2592         * modules/sendto (Depends-on): Add socketlib.
2593         (Link): New section.
2594         * modules/setsockopt (Depends-on): Add socketlib.
2595         (Link): New section.
2596         * modules/shutdown (Depends-on): Add socketlib.
2597         (Link): New section.
2598         * modules/socket (Depends-on): Add socketlib.
2599         (Link): New section.
2600
2601 2011-09-18  Bruno Haible  <bruno@clisp.org>
2602
2603         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2604         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2605         than 5 seconds.
2606         * modules/ptsname-tests (configure.ac): Test for alarm.
2607
2608 2011-09-18  Bruno Haible  <bruno@clisp.org>
2609
2610         posix_spawn_file_actions_add*: Fix module dependencies.
2611         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2612         posix_spawn_file_actions_init.
2613         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2614         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2615
2616 2011-09-18  Bruno Haible  <bruno@clisp.org>
2617
2618         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2619         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2620         * tests/test-renameat.c (main): Likewise.
2621
2622 2011-09-18  Bruno Haible  <bruno@clisp.org>
2623
2624         Tests for module 'accept4'.
2625         * modules/accept4-tests: New file.
2626         * tests/test-accept4.c: New file.
2627
2628 2011-09-18  Bruno Haible  <bruno@clisp.org>
2629
2630         Tests for module 'accept'.
2631         * modules/accept-tests: New file.
2632         * tests/test-accept.c: New file.
2633
2634 2011-09-18  Bruno Haible  <bruno@clisp.org>
2635
2636         dup2: Support for MSVC.
2637         * lib/dup2.c: Include msvc-inval.h.
2638         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2639         _get_osfhandle calls.
2640         * modules/dup2 (Depends-on): Add msvc-inval.
2641         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2642
2643         New module 'msvc-inval'.
2644         * lib/msvc-inval.h: New file.
2645         * lib/msvc-inval.c: New file.
2646         * m4/msvc-inval.m4: New file.
2647         * modules/msvc-inval: New file.
2648
2649 2011-09-17  Bruno Haible  <bruno@clisp.org>
2650
2651         Tests for module 'pclose'.
2652         * modules/pclose-tests: New file.
2653
2654         New module 'pclose'.
2655         * lib/stdio.in.h (pclose): New declaration.
2656         * lib/pclose.c: New file.
2657         * m4/pclose.m4: New file.
2658         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2659         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2660         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2661         * modules/pclose: New file.
2662         * modules/popen-tests (Depends-on): Add pclose.
2663         * modules/popen-safer-tests (Depends-on): Likewise.
2664         * doc/posix-functions/pclose.texi: Mention the new module.
2665
2666 2011-09-17  Bruno Haible  <bruno@clisp.org>
2667
2668         popen: Support for MSVC.
2669         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2670         * lib/popen.c (popen): Provide alternate definition for native Windows.
2671         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2673         * modules/popen (Depends-on, configure.ac): Update condition.
2674         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2675         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2676         fixed.
2677
2678 2011-09-17  Bruno Haible  <bruno@clisp.org>
2679
2680         isnanl, isnand, isnanf: Work around MSVC bug.
2681         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2682
2683 2011-09-17  Bruno Haible  <bruno@clisp.org>
2684
2685         sys_socket tests: Fix recent mistake.
2686         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2687
2688 2011-09-17  Bruno Haible  <bruno@clisp.org>
2689
2690         putenv: Support for MSVC.
2691         * modules/putenv (Depends-on): Add environ.
2692         * lib/putenv.c (environ): Disable declaration.
2693         * lib/unistd.in.h: Update comment.
2694
2695 2011-09-17  Bruno Haible  <bruno@clisp.org>
2696
2697         math: Avoid macro redefinition warnings on MSVC.
2698         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2699         Undefine before redefining.
2700
2701 2011-09-17  Bruno Haible  <bruno@clisp.org>
2702
2703         doc: Mention functions which are declared as macros.
2704         * doc/posix-functions/*[fl].texi: Mention that some functions are
2705         defined as macros with arguments only.
2706
2707 2011-09-17  Bruno Haible  <bruno@clisp.org>
2708
2709         Add dependencies to new dirent related modules.
2710         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2711         * modules/fts (Depends-on): Likewise.
2712         * modules/glob (Depends-on): Likewise.
2713         * modules/savedir (Depends-on): Likewise.
2714         * modules/scandir (Depends-on): Likewise.
2715         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2716         * modules/fdopendir (Depends-on): Add opendir.
2717
2718 2011-09-17  Bruno Haible  <bruno@clisp.org>
2719
2720         inet_pton: Support for MSVC on Windows Vista or newer.
2721         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2722         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2723         HAVE_DECL_INET_PTON is defined.
2724         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2725         On platforms with <winsock2.h>, test whether inet_pton is declared in
2726         <ws2tcpip.h>. If so, arrange to replace it.
2727         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2728         REPLACE_INET_PTON.
2729         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2730         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2731         (Depends-on, configure.ac): Update condition.
2732         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2733
2734 2011-09-17  Bruno Haible  <bruno@clisp.org>
2735
2736         inet_ntop: Support for MSVC on Windows Vista or newer.
2737         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2738         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2739         HAVE_DECL_INET_NTOP is defined.
2740         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2741         On platforms with <winsock2.h>, test whether inet_ntop 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_NTOP.
2745         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2746         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2747         (Depends-on, configure.ac): Update condition.
2748         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2749
2750 2011-09-16  Eric Blake  <eblake@redhat.com>
2751
2752         test-fsync: yet another enhancement
2753         * tests/test-fsync.c (main): Also test behavior on read-only text
2754         file.
2755
2756 2011-09-16  Bruno Haible  <bruno@clisp.org>
2757
2758         Enhance fsync, fdatasync tests.
2759         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2760         * tests/test-fdatasync.c (main): Likewise.
2761
2762 2011-09-16  Bruno Haible  <bruno@clisp.org>
2763
2764         Support for MSVC compiler: Ensure mode_t gets defined.
2765         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2766         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2768         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2769         * tests/test-fcntl-h.c: Check that mode_t is defined.
2770         * tests/test-sys_stat.c: Likewise.
2771         * tests/test-sys_types.c: Likewise.
2772         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2773         * doc/posix-headers/sys_stat.texi: Likewise.
2774         * doc/posix-headers/sys_types.texi: Likewise.
2775
2776 2011-09-16  Bruno Haible  <bruno@clisp.org>
2777
2778         sys_stat: Support for MSVC.
2779         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2780         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2781         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2782         MSVC.
2783
2784 2011-09-16  Bruno Haible  <bruno@clisp.org>
2785
2786         Support for MSVC compiler: Ensure off_t gets defined.
2787         * lib/unistd.in.h: Include <sys/types.h>.
2788         * tests/test-fcntl-h.c: Check that off_t is defined.
2789         * tests/test-sys_stat.c: Likewise.
2790         * tests/test-sys_types.c: Likewise.
2791
2792 2011-09-16  Eric Blake  <eblake@redhat.com>
2793
2794         fdatasync: port to Solaris
2795         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2796         * modules/fdatasync (Link): Document it.
2797         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2798
2799         fdatasync: port to MacOS X 10.7
2800         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2801         declared.
2802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2803         * modules/unistd (Makefile.am): Substitute it.
2804         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2805         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2806
2807         fdatasync: minor improvements
2808         * modules/fdatasync (Depends-on): Add condition for fsync.
2809         * lib/fdatasync.c (fdatasync): Add comment.
2810         * tests/test-unistd-c++.cc: Test fdatasync.
2811
2812         unistd: update refs to newer POSIX
2813         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2814         Suggested by Bruno Haible.
2815
2816         fdatasync: new module
2817         * modules/fsync (Description): Document difference to fdatasync.
2818         * modules/fdatasync: New module.
2819         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2820         * lib/fdatasync.c (fdatasync): Likewise.
2821         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2822         defaults.
2823         * modules/unistd (Makefile.am): Set witnesses.
2824         * lib/unistd.in.h (fdatasync): Declare.
2825         * MODULES.html.sh: Document it.
2826         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2827         * modules/fdatasync-tests: New test.
2828         * tests/test-fdatasync.c: Likewise.
2829
2830 2011-09-16  Eric Blake  <eblake@redhat.com>
2831
2832         test-fsync: enhance tests
2833         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2834         * tests/test-fsync.c (main): Enhance test.
2835
2836 2011-09-15  Bruno Haible  <bruno@clisp.org>
2837
2838         Support for MSVC compiler: Ensure ssize_t gets defined.
2839         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2840         * doc/posix-headers/stdio.texi: Likewise.
2841         * modules/stdio (Depends-on): Add ssize_t.
2842         * modules/sys_socket (Depends-on): Likewise.
2843         * modules/sys_types (Depends-on): Likewise.
2844         * modules/sys_uio (Depends-on): Likewise.
2845         * modules/unistd (Depends-on): Likewise.
2846         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2847         * tests/test-sys_types.c: Check that ssize_t is defined.
2848
2849 2011-09-14  Bruno Haible  <bruno@clisp.org>
2850
2851         Avoid using #, the m4 comment starter character, near brackets.
2852         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2853         delimiter character in sed expressions.
2854         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2855         Suggested by Eric Blake.
2856
2857         Properly quote AC_CHECK_DECLS' 4th argument.
2858         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2859         argument.
2860         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2861         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2862         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2863         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2865         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2866         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2867         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2868         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2869         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2870         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2871         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2872         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2873         * m4/isinf.m4 (gl_ISINF): Likewise.
2874         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2875         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2876         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2877         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2878         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2880         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2881         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2882         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2883         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2884         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2885         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2887         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2889         Reported by Eric Blake.
2890
2891         Properly quote AC_CHECK_DECL's 4th argument.
2892         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2893         argument.
2894         * m4/argp.m4 (gl_ARGP): Likewise.
2895         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2896         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2897         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2898         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2899         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2900         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2901         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2902         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2903         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2904         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2905         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2906         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2907         Reported by Eric Blake.
2908
2909 2011-09-14  Eric Blake  <eblake@redhat.com>
2910
2911         opendir: avoid compile warning
2912         * lib/opendir.c (includes): Always include errno.h.
2913         Reported by Tatsuro MATSUOKA.
2914
2915 2011-09-14  Jim Meyering  <meyering@redhat.com>
2916
2917         maint.mk: sc_tight_scope: propagate failure from sub-make
2918         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2919         Reported by Martin von Gagern.
2920
2921 2011-09-13  Bruno Haible  <bruno@clisp.org>
2922
2923         tempname: Support for MSVC.
2924         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2925         MSVC.
2926         * modules/tempname (Depends-on): Add fcntl-h.
2927
2928 2011-09-13  Bruno Haible  <bruno@clisp.org>
2929
2930         sys_time: Support for MSVC.
2931         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2932         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2933         include <winsock2.h>.
2934         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2935         function declarations that collide with POSIX.
2936         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2937         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2938
2939 2011-09-13  Bruno Haible  <bruno@clisp.org>
2940
2941         stat: Support for MSVC.
2942         * lib/stat.c: Include pathmax.h.
2943         * modules/stat (Depends-on): Add pathmax.
2944
2945         pathmax: Support for native Windows.
2946         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2947
2948 2011-09-12  Bruno Haible  <bruno@clisp.org>
2949
2950         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2951         * lib/dirent.in.h (struct dirent): New type.
2952         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2953         DT_WHT): New macros.
2954         (DIR): New type.
2955         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2956         (readdir, rewinddir): New declarations.
2957         * lib/dirent-private.h: New file.
2958         * lib/opendir.c: New file.
2959         * lib/readdir.c: New file.
2960         * lib/rewinddir.c: New file.
2961         * lib/closedir.c: New file.
2962         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2963         * m4/opendir.m4: New file.
2964         * m4/readdir.m4: New file.
2965         * m4/rewinddir.m4: New file.
2966         * m4/closedir.m4: New file.
2967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2968         REPLACE_CLOSEDIR here.
2969         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2970         readdir, rewinddir are declared.
2971         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2972         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2973         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2974         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2975         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2976         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2977         * modules/opendir: New file.
2978         * modules/readdir: New file.
2979         * modules/rewinddir: New file.
2980         * modules/closedir: New file.
2981         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2982         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2983         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2984         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2985         * NEWS: Mention the 'fchdir' change.
2986
2987 2011-09-11  Bruno Haible  <bruno@clisp.org>
2988
2989         asm-underscore.m4: Support for MSVC.
2990         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2991         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2992
2993 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2994
2995         Doc about crypt functions.
2996         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2997         needing for _GNU_SOURCE to get crypt.
2998         * doc/posix-functions/encrypt.texi: Likewise.
2999         * doc/posix-functions/setkey.texi: Likewise.
3000
3001 2011-09-11  Bruno Haible  <bruno@clisp.org>
3002
3003         doc: Update regarding MSVC 9.
3004         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3005         tested".
3006         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3007         * doc/posix-headers/*.texi: Likewise.
3008         * doc/pastposix-functions/*.texi: Likewise.
3009         * doc/glibc-functions/*.texi: Likewise.
3010         * doc/glibc-headers/*.texi: Likewise.
3011
3012 2011-09-11  Bruno Haible  <bruno@clisp.org>
3013
3014         unistd et al.: Don't assume <unistd.h> exists.
3015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3016         does not exist.
3017         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3018         exist. But include <stdlib.h>.
3019         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3020         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3021         symlink() does not exist.
3022         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3023         include <io.h> instead.
3024         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3025         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3026         include <direct.h> instead.
3027         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3028         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3029         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3030         <io.h> instead.
3031         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3032         correctly if the system does not have hard links.
3033         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3034         <direct.h> instead.
3035         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3036         it when looking for function declarations.
3037         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3038         <direct.h> and <io.h> instead.
3039         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3040
3041 2011-09-11  Bruno Haible  <bruno@clisp.org>
3042
3043         strcase: Support for MSVC.
3044         * modules/strcase (Status, Notice): Remove obsoletion mark.
3045         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3046         * doc/posix-functions/strncasecmp.texi: Likewise.
3047
3048         strings: Don't assume <strings.h> exists.
3049         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3050         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3051         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3052         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3053
3054 2011-09-11  Bruno Haible  <bruno@clisp.org>
3055
3056         dirent: Don't assume <dirent.h> exists.
3057         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3058         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3059         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3060         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3061
3062 2011-09-11  Bruno Haible  <bruno@clisp.org>
3063
3064         Fix wint_t on MSVC.
3065         * lib/wchar.in.h (wint_t): On MSVC, override it.
3066         * lib/wctype.in.h (wint_t): Likewise.
3067         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3068         MSVC.
3069         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3070         * doc/posix-headers/wctype.texi: Likewise.
3071
3072 2011-09-11  Bruno Haible  <bruno@clisp.org>
3073
3074         sys_types: Fix typo.
3075         * lib/sys_types.in.h: Fix typo in comment.
3076         Reported by Paul Eggert.
3077
3078         Support for MSVC compiler: Ensure size_t gets defined.
3079         * modules/strings (Depends-on): Add 'sys_types'.
3080         * modules/sys_uio (Depends-on): Likewise.
3081         * lib/sys_uio.in.h: Update comment.
3082
3083         C++ tests for module 'sys_types'.
3084         * modules/sys_types-c++-tests: New file.
3085         * tests/test-sys_types-c++.cc: New file.
3086
3087         Tests for module 'sys_types'.
3088         * modules/sys_types-tests: New file.
3089         * tests/test-sys_types.c: New file.
3090
3091         New module 'sys_types'.
3092         * lib/sys_types.in.h: New file.
3093         * m4/sys_types_h.m4: New file.
3094         * modules/sys_types: New file.
3095         * doc/posix-headers/sys_types.texi: Mention the new module and the
3096         size_t problem on MSVC 9.
3097
3098 2011-09-11  Bruno Haible  <bruno@clisp.org>
3099
3100         Support for MSVC compiler: Avoid division by a literal 0.
3101         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3102         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3103         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3104         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3105         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3106         * tests/infinity.h: New file.
3107         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3108         on MSVC.
3109         * tests/test-ceilf1.c: Include infinity.h.
3110         (main): Use Infinityf.
3111         * tests/test-ceil1.c: Include infinity.h.
3112         (main): Use Infinityd.
3113         * tests/test-ceill.c: Include infinity.h.
3114         (main): Use Infinityl.
3115         * tests/test-dprintf-posix.c: Include infinity.h.
3116         (test_function): Use Infinityd.
3117         * tests/test-floorf1.c: Include infinity.h.
3118         (main): Use Infinityf.
3119         * tests/test-floor1.c: Include infinity.h.
3120         (main): Use Infinityd.
3121         * tests/test-floorl.c: Include infinity.h.
3122         (main): Use Infinityl.
3123         * tests/test-fprintf-posix.c: Include infinity.h.
3124         (test_function): Use Infinityd.
3125         * tests/test-frexp.c: Include infinity.h.
3126         (main): Use Infinityd.
3127         * tests/test-frexpl.c: Include infinity.h.
3128         (main): Use Infinityl.
3129         * tests/test-isfinite.c: Include infinity.h.
3130         (test_isfinitef): Use Infinityf.
3131         (test_isfinited): Use Infinityd.
3132         (test_isfinitel): Use Infinityl.
3133         * tests/test-isinf.c: Include infinity.h.
3134         (test_isinff): Use Infinityf.
3135         (test_isinfd): Use Infinityd.
3136         (test_isinfl): Use Infinityl.
3137         * tests/test-isnan.c: Include infinity.h.
3138         (test_float): Use Infinityf.
3139         (test_double): Use Infinityd.
3140         (test_long_double): Use Infinityl.
3141         * tests/test-isnanf.h: Include infinity.h.
3142         (main): Use Infinityf.
3143         * tests/test-isnand.h: Include infinity.h.
3144         (main): Use Infinityd.
3145         * tests/test-isnanl.h: Include infinity.h.
3146         (main): Use Infinityl.
3147         * tests/test-ldexpl.c: Include infinity.h.
3148         (main): Use Infinityl.
3149         * tests/test-printf-posix.h: Include infinity.h.
3150         (test_function): Use Infinityd.
3151         * tests/test-roundf1.c: Include infinity.h.
3152         (main): Use Infinityf.
3153         * tests/test-round1.c: Include infinity.h.
3154         (main): Use Infinityd.
3155         * tests/test-roundl.c: Include infinity.h.
3156         (main): Use Infinityl.
3157         * tests/test-signbit.c: Include infinity.h.
3158         (test_signbitf): Use Infinityf.
3159         (test_signbitd): Use Infinityd.
3160         (test_signbitl): Use Infinityl.
3161         * tests/test-snprintf-posix.h: Include infinity.h.
3162         (test_function): Use Infinityd, Infinityl.
3163         * tests/test-sprintf-posix.h: Include infinity.h.
3164         (test_function): Use Infinityd, Infinityl.
3165         * tests/test-truncf1.c: Include infinity.h.
3166         (main): Use Infinityf.
3167         * tests/test-trunc1.c: Include infinity.h.
3168         (main): Use Infinityd.
3169         * tests/test-truncl.c: Include infinity.h.
3170         (main): Use Infinityl.
3171         * tests/test-vasnprintf-posix.c: Include infinity.h.
3172         (test_function): Use Infinityd, Infinityl.
3173         * tests/test-vasprintf-posix.c: Include infinity.h.
3174         (test_function): Use Infinityd, Infinityl.
3175         * modules/ceilf-tests (Files): Add tests/infinity.h.
3176         * modules/ceil-tests (Files): Likewise.
3177         * modules/ceill-tests (Files): Likewise.
3178         * modules/dprintf-posix-tests (Files): Likewise.
3179         * modules/floorf-tests (Files): Likewise.
3180         * modules/floor-tests (Files): Likewise.
3181         * modules/floorl-tests (Files): Likewise.
3182         * modules/fprintf-posix-tests (Files): Likewise.
3183         * modules/frexp-tests (Files): Likewise.
3184         * modules/frexp-nolibm-tests (Files): Likewise.
3185         * modules/frexpl-tests (Files): Likewise.
3186         * modules/frexpl-nolibm-tests (Files): Likewise.
3187         * modules/isfinite-tests (Files): Likewise.
3188         * modules/isinf-tests (Files): Likewise.
3189         * modules/isnan-tests (Files): Likewise.
3190         * modules/isnanf-tests (Files): Likewise.
3191         * modules/isnanf-nolibm-tests (Files): Likewise.
3192         * modules/isnand-tests (Files): Likewise.
3193         * modules/isnand-nolibm-tests (Files): Likewise.
3194         * modules/isnanl-tests (Files): Likewise.
3195         * modules/isnanl-nolibm-tests (Files): Likewise.
3196         * modules/ldexpl-tests (Files): Likewise.
3197         * modules/printf-posix-tests (Files): Likewise.
3198         * modules/roundf-tests (Files): Likewise.
3199         * modules/round-tests (Files): Likewise.
3200         * modules/roundl-tests (Files): Likewise.
3201         * modules/signbit-tests (Files): Likewise.
3202         * modules/snprintf-posix-tests (Files): Likewise.
3203         * modules/sprintf-posix-tests (Files): Likewise.
3204         * modules/truncf-tests (Files): Likewise.
3205         * modules/trunc-tests (Files): Likewise.
3206         * modules/truncl-tests (Files): Likewise.
3207         * modules/vasnprintf-posix-tests (Files): Likewise.
3208         * modules/vasprintf-posix-tests (Files): Likewise.
3209         * modules/vdprintf-posix-tests (Files): Likewise.
3210         * modules/vfprintf-posix-tests (Files): Likewise.
3211         * modules/vprintf-posix-tests (Files): Likewise.
3212         * modules/vsnprintf-posix-tests (Files): Likewise.
3213         * modules/vsprintf-posix-tests (Files): Likewise.
3214         * modules/xprintf-posix-tests (Files): Likewise.
3215
3216 2011-09-11  Bruno Haible  <bruno@clisp.org>
3217
3218         Ensure pid_t gets defined.
3219         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3220         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3221         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3222         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3223         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3224         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3225         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3226         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3227         * tests/test-fcntl-h.c: Check that pid_t is defined.
3228         * tests/test-sched.c: Likewise.
3229         * tests/test-termios.c: Likewise.
3230         * tests/test-time.c: Likewise.
3231         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3232         * doc/posix-headers/signal.texi: Likewise.
3233         * doc/posix-headers/sys_types.texi: Likewise.
3234         * doc/posix-headers/time.texi: Likewise.
3235
3236 2011-09-11  Bruno Haible  <bruno@clisp.org>
3237
3238         acl: Fix compilation on Solaris 10 (older version).
3239         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3240         of ACE_EVERYONE.
3241         * lib/set-mode-acl.c (qset_acl): Likewise.
3242         Reported by Christian Jullien <eligis@orange.fr>.
3243
3244 2011-09-10  Bruno Haible  <bruno@clisp.org>
3245
3246         iconv, unsetenv: Add support for MSVC compiler.
3247         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3248         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3249
3250 2011-09-10  Bruno Haible  <bruno@clisp.org>
3251
3252         *printf: Add support for MSVC compiler.
3253         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3254         handles the exception caused by the %n directive. When cross-compiling,
3255         guess no on native Windows.
3256         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3257         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3258         emulate it through vsnprintf.
3259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3260         * doc/posix-functions/dprintf.texi: Update documentation regarding
3261         MSVC 9.
3262         * doc/posix-functions/fprintf.texi: Likewise.
3263         * doc/posix-functions/printf.texi: Likewise.
3264         * doc/posix-functions/snprintf.texi: Likewise.
3265         * doc/posix-functions/sprintf.texi: Likewise.
3266         * doc/posix-functions/swprintf.texi: Likewise.
3267         * doc/posix-functions/vdprintf.texi: Likewise.
3268         * doc/posix-functions/vfprintf.texi: Likewise.
3269         * doc/posix-functions/vprintf.texi: Likewise.
3270         * doc/posix-functions/vsnprintf.texi: Likewise.
3271         * doc/posix-functions/vsprintf.texi: Likewise.
3272         * doc/glibc-functions/asprintf.texi: Likewise.
3273         * doc/glibc-functions/obstack_printf.texi: Likewise.
3274         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3275         * doc/glibc-functions/vasprintf.texi: Likewise.
3276
3277 2011-09-10  Bruno Haible  <bruno@clisp.org>
3278
3279         nocrash: Add support for native Windows.
3280         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3281
3282 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3283             Bruno Haible  <bruno@clisp.org>
3284
3285         absolute-header, include-next: Add support for MSVC compiler.
3286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3287         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3288         directory separator in #line directives.
3289         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3290         recognize also backslash as directory separator in #line directives.
3291
3292 2011-09-08  Jim Meyering  <meyering@redhat.com>
3293
3294         maint.mk: mark the post-release commit log with "maint: " prefix
3295         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3296         one-line commit-log summary.
3297
3298 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3299             Bruno Haible  <bruno@clisp.org>
3300
3301         Doc about crypt functions.
3302         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3303         systems.
3304         * doc/posix-functions/encrypt.texi: Likewise.
3305         * doc/posix-functions/setkey.texi: Likewise.
3306
3307 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3308
3309         * lib/gc.h: Fix copyright header.
3310
3311 2011-09-07  Bruno Haible  <bruno@clisp.org>
3312
3313         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3314         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3315         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3316
3317 2011-09-07  Bruno Haible  <bruno@clisp.org>
3318
3319         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3320         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3321         * lib/freopen.c: Likewise.
3322         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3323         * lib/lstat.c: Likewise.
3324         * lib/stat.c: Likewise.
3325         * lib/open.c: Use different syntax for include of <fcntl.h>.
3326         * lib/openat.c: Include fcntl.h again, explicitly.
3327
3328 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3329
3330         parse-datetime: document the newly accepted format
3331         * doc/parse-datetime.texi (Combined date and time of day items):
3332         New section.
3333
3334 2011-09-06  Bruno Haible  <bruno@clisp.org>
3335
3336         acl: Fix a test failure on newer Solaris 10 with ZFS.
3337         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3338         ENOSYS as no ACL.
3339         Reported by Jim Meyering.
3340
3341 2011-09-06  Bruno Haible  <bruno@clisp.org>
3342
3343         acl: Update for AIX >= 5.3 with NFS.
3344         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3345         ENOSYS as no ACL.
3346
3347         acl: Fix a test failure on AIX >= 5.3 with NFS.
3348         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3349         as no ACL.
3350
3351 2011-09-06  Bruno Haible  <bruno@clisp.org>
3352
3353         acl: Fix a test failure on IRIX 6.5 with NFS.
3354         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3355         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3356         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3357         * lib/copy-acl.c (qcopy_acl): Likewise.
3358
3359 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3360
3361         openat: port to AIX 7.1 with large files
3362         AIX 7.1 does a "#define openat open64at" if large files are in use,
3363         so we can't simply #undef openat.  Use the orig_openat trick (similar
3364         to orig_open in lib/open.c) to work around the problem.  Problem
3365         reported by Kevin Brott for GNU tar, in the thread containing
3366         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3367         * lib/openat.c (__need_system_fcntl_h): Define first.
3368         Include <fcntl.h> and <sys/types.h> before undefining.
3369         (orig_openat) [HAVE_OPENAT]: New inline function.
3370         (openat) [HAVE_OPENAT]: Do not undef.
3371         (rpl_openat): Use orig_openat, not openat.
3372
3373 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3374             Bruno Haible  <bruno@clisp.org>
3375
3376         acl: Avoid errors on NonStop Kernel.
3377         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3378         ENOTSUP errors.
3379
3380 2011-09-05  Bruno Haible  <bruno@clisp.org>
3381
3382         acl: Clean up Solaris code.
3383         * lib/acl-internal.h: Remove no-op #if.
3384         * lib/file-has-acl.c: Likewise.
3385         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3386         * lib/copy-acl.c (qcopy_acl): Likewise.
3387
3388 2011-09-05  Bruno Haible  <bruno@clisp.org>
3389
3390         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3391         binaries built on the original Solaris 10.
3392         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3393         trivial.
3394
3395 2011-09-05  Bruno Haible  <bruno@clisp.org>
3396
3397         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3398         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3399         10.
3400         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3401         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3402         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3403         instead of acl_get, facl_get, acl_set, facl_set.
3404
3405 2011-09-05  Bruno Haible  <bruno@clisp.org>
3406
3407         copy-file: Try unit tests on more file systems.
3408         * tests/test-copy-file-1.sh: New file.
3409         * tests/test-copy-file-2.sh: New file.
3410         * modules/copy-file-tests (Files): Add them.
3411         (Makefile.am): Add them to TESTS.
3412
3413         acl: Try unit tests on more file systems.
3414         * tests/test-file-has-acl-1.sh: New file.
3415         * tests/test-file-has-acl-2.sh: New file.
3416         * tests/test-set-mode-acl-1.sh: New file.
3417         * tests/test-set-mode-acl-2.sh: New file.
3418         * tests/test-copy-acl-1.sh: New file.
3419         * tests/test-copy-acl-2.sh: New file.
3420         * modules/acl-tests (Files): Add them.
3421         (Makefile.am): Add them to TESTS.
3422
3423 2011-09-04  Bruno Haible  <bruno@clisp.org>
3424
3425         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3426         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3427         10.
3428         (OLD_ALLOW, OLD_DENY): New macros.
3429         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3430         ACE_ACCESS_ALLOWED_ACE_TYPE.
3431         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3432         ACE_ACCESS_DENIED_ACE_TYPE.
3433         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3434         (NEW_ACE_EXECUTE): Fix value.
3435         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3436         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3437         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3438         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3439         NEW_ACE_SYNCHRONIZE): New macros.
3440         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3441         instead of acl_fromtext, acl_set, facl_set.
3442         Fixes a coreutils/tests/cp/perm failure.
3443
3444 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3445
3446         openat: test for fstatat (..., 0) bug
3447         Further testing with tar suggests that fstatat (..., 0)
3448         does not work in general, on AIX 7.1; see
3449         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3450         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3451         replacement fstatat (which is what older AIX releases were using
3452         anyway).
3453         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3454         use is now changed to orig_fstatat.  This was probably the right
3455         thing to do anyway.
3456         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3457         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3458         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3459         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3460         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3461         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3462         if the bug is found.
3463
3464         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3465         This tests for another fstatat bug on AIX 7.1:
3466         fstatat (AT_FDCWD, ..., 0) does not work.  See
3467         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3468         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3469         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3470         (rpl_fstatat): Adjust so that it works around either (or both)
3471         bugs if present.
3472         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3473
3474 2011-09-03  Karl Berry  <karl@gnu.org>
3475
3476         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3477         in index entries.
3478
3479 2011-09-02  Bruno Haible  <bruno@clisp.org>
3480
3481         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3482         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3483         values of AR, ARFLAGS, RANLIB.
3484         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3485
3486 2011-09-02  Bruno Haible  <bruno@clisp.org>
3487
3488         Find 'ar' program that fits with --host argument.
3489         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3490
3491 2011-09-02  Bruno Haible  <bruno@clisp.org>
3492
3493         tests: init.sh: Support any non-GNU diff.
3494         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3495         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3496         Solaris 8.
3497
3498 2011-09-02  Bruno Haible  <bruno@clisp.org>
3499
3500         tests: init.sh: work also with any non-GNU diff that supports -u
3501         * tests/init.sh: Relax check for diff -u support.
3502         Rather than checking for GNU diff via --version, simply check
3503         for support for -u itself.  Useful at least on OpenBSD 4.9,
3504         AIX 7.1, IRIX 6.5, and Solaris 10.
3505
3506 2011-09-01  Bruno Haible  <bruno@clisp.org>
3507
3508         strtoimax, strtoumax: Document problem on HP-UX 11.
3509         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3510         * doc/posix-functions/strtoumax.texi: Likewise.
3511
3512 2011-09-01  Bruno Haible  <bruno@clisp.org>
3513
3514         strtoumax: Avoid link error on OSF/1 with DTK cc.
3515         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3516         defined as a function.
3517         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3518         strtoumax is defined, not whether it is declared.
3519
3520 2011-09-01  Bruno Haible  <bruno@clisp.org>
3521
3522         strtoimax: Avoid link error on OSF/1 with DTK cc.
3523         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3524         defined as a function.
3525         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3526         strtoimax is defined, not whether it is declared.
3527
3528 2011-09-01  Bruno Haible  <bruno@clisp.org>
3529
3530         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3531         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3532         as a function.
3533         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3534         whether it is declared.
3535
3536 2011-09-01  Bruno Haible  <bruno@clisp.org>
3537
3538         imaxabs: Avoid link error on OSF/1 with DTK cc.
3539         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3540         as a function.
3541         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3542         whether it is declared.
3543
3544 2011-09-01  Bruno Haible  <bruno@clisp.org>
3545
3546         Tests for module 'strtoumax'.
3547         * modules/strtoumax-tests: New file.
3548         * tests/test-strtoumax.c: New file.
3549
3550         Tests for module 'strtoimax'.
3551         * modules/strtoimax-tests: New file.
3552         * tests/test-strtoimax.c: New file.
3553
3554         Tests for module 'imaxdiv'.
3555         * modules/imaxdiv-tests: New file.
3556         * tests/test-imaxdiv.c: New file.
3557
3558         Tests for module 'imaxabs'.
3559         * modules/imaxabs-tests: New file.
3560         * tests/test-imaxabs.c: New file.
3561
3562 2011-09-01  Bruno Haible  <bruno@clisp.org>
3563
3564         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3565         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3566         pthread_create.
3567
3568 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3569
3570         openat: work around AIX 7.1 fstatat issue
3571         This should fix the problem that was not properly fixed
3572         in the previous change, dated 2011-08-30.
3573         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3574         __need_system_stat_h defined.
3575         (orig_fstatat) [HAVE_FSTATAT]: New function.
3576         (rpl_fstatat): Go back to the old way of doing things,
3577         except call orig_fstatat instead of fstatat.
3578         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3579         Remove unnecessary check whether fstatat fills in st_size etc.
3580
3581 2011-09-01  Bruno Haible  <bruno@clisp.org>
3582
3583         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3584         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3585         just include the system's header.
3586
3587 2011-08-31  Jim Meyering  <meyering@redhat.com>
3588
3589         tests: avoid spurious assertion failure in test-float.c on ppc64
3590         * tests/test-float.c (test_long_double): Comment out an assertion,
3591         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3592         with gcc-4.4.4.
3593
3594         maint: indent with spaces, not TABs
3595         I need to get in the habit of running gnulib's "make check".
3596         Both of these would have been caught.
3597         * m4/largefile.m4: Indent with spaces, not TABs.
3598         * lib/parse-datetime.y (iso_8601_time): Likewise.
3599         Spotted by Pádraig Brady.
3600
3601         test-parse-datetime.c: accommodate a relatively strict gcc warning
3602         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3603         to avoid a warning from gcc's -Werror=missing-declarations.
3604         Insert a few spaces-before-funcall-parenthesis.
3605
3606 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3607
3608         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3609         The parser now accepts ISO 8601 date-time strings with "T" as the
3610         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3611         with a space between the date and time strings.  Now it also parses
3612         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3613         variants like "2004-02-29T16:21:42.333-07:00"
3614         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3615         of day representation using the 'T' separator character.
3616         * doc/parse-datetime.texi (General date syntax): replace use of
3617         deprecated --iso-8601 option with --rfc-3339 in example of date
3618         command output formats that can be parsed.
3619         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3620         lib/parse-datetime.y.
3621         (gmt_offset): New function.
3622         (main): Add additional test cases to validate ISO8601 extended
3623         date and time of day parsing.
3624
3625 2011-08-31  Bruno Haible  <bruno@clisp.org>
3626
3627         freopen: Documentation.
3628         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3629         name.
3630         Reported by Claudio Bley <claudio.bley@gmail.com>.
3631
3632 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3633
3634         freopen: Don't crash if the filename argument is NULL.
3635         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3636         NULL.
3637
3638 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3639
3640         openat: work around AIX 7.1 fstatat bug
3641         Problem reported by Kevin Brott for GNU tar, in the thread containing
3642         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3643         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3644         FSTATAT_ST_SIZE_ETC_BROKEN.
3645         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3646         rpl_fstatat.
3647         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3648         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3649         AC_CHECK_FUNCS_ONCE for fstatat.
3650         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3651         fchmodat, mkdirat, openat and unlinkat.
3652
3653 2011-08-30  Bruno Haible  <bruno@clisp.org>
3654
3655         Avoid endless recursions if config.h includes some header files.
3656         * lib/fopen.c (__need_FILE): Define already before including config.h.
3657         * lib/freopen.c (__need_FILE): Likewise.
3658         * lib/open.c (__need_system_fcntl_h): Likewise.
3659         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3660         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3661         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3662
3663 2011-08-25  Karl Berry  <karl@gnu.org>
3664
3665         * config/srclist.txt (ylwrap): new try.
3666         * build-aux/ylwrap: new file.
3667
3668 2011-08-23  Bruno Haible  <bruno@clisp.org>
3669
3670         tmpdir: Use a good default directory on native Windows.
3671         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3672         (P_tmpdir): Default to _P_tmpdir on native Windows.
3673         (path_search): On native Windows, try the value returned by GetTempPath
3674         before trying P_tmpdir.
3675         * modules/tmpdir (Depends-on): Add pathmax.
3676         Suggested by John Darrington <john@darrington.wattle.id.au>.
3677
3678 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3679
3680         doc: fix typo in README-release
3681         * top/README-release: Capitalize first word of a sentence.
3682
3683 2011-08-19  Jim Meyering  <meyering@redhat.com>
3684
3685         fts: do not exhaust memory when processing million-entry directories
3686         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3687         directory would require about 256*N bytes of memory.  Thus, it was
3688         easy to construct a directory too large to be processed by any of
3689         those tools.  With this change, fts' maximum memory utilization is
3690         now limited to around 30MB.
3691         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3692         (fts_read): When we've processed the final entry (i.e., when
3693         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3694         using the parent entry to read any remaining entries.  Dispatch
3695         depending on what fts_build returns:
3696         - NULL+stop, aka failure: stop
3697         - NULL otherwise: move up in the dir hierarchy
3698         - non-NULL: handle this new entry
3699         (fts_build): Declare and use new local, continue_readdir.
3700         Prepare to be called from fts_read, when the entries
3701         from a partially-read directory have just been exhausted.
3702         In that case, we'll skip the opendir and instead use the parent's
3703         fts_dirp and derive dir_fd from that.
3704         Finally, in the readdir loop, if we read max_entries entries,
3705         exit the loop ensuring *not* to call closedir.  This is required
3706         so that fts_dirp can be reused on a subsequent call.
3707         Prompted by Ben England's report of memory exhaustion in find
3708         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3709
3710         maint: fts: move decl of `dp' down into while loop; split a long line
3711         * lib/fts.c (fts_build): No semantic change.
3712
3713         fts: add/use new struct member, fts_dirp
3714         We are about to use this to manage any directory with
3715         too many entries to read all of them into memory at once.
3716         To do that, we'll need to save the DIR* pointer in each
3717         affected FTSENT struct.
3718         * lib/fts_.h: Include <dirent.h>.
3719         (struct FTSENT) [fts_dirp]: New member.
3720         * lib/fts.c (closedir_and_clear): Define.
3721         Use it in place of closedir so that we are sure to
3722         clear the new fts_dirp member when done with it.
3723         (fts_alloc): Initialize the new member.
3724         (fts_lfree): Free, if needed.
3725
3726         maint: fts: give __opendir2 a new parameter and rename
3727         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3728         than surreptitiously using sole caller's "dir_fd".
3729         (fts_opendir): Rename from __opendir2.
3730
3731         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3732         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3733
3734         maint: fts.c: correct off-by-one indentation
3735         * lib/fts.c (fts_build): Correct indentation, change style
3736         of a couple of block comments, and bracing style.
3737
3738         maint: fts.c: move __opendir2 #define "up" out of function body
3739         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3740
3741         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3742         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3743         out for a long time and besides was useful only on BSD systems.
3744
3745 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3746
3747         regex: port to Stratus OpenVOS
3748         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3749         define to empty, rather than attempting nonportable optimizations.
3750         Problem reported by Paul Green in:
3751         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3752         and fix suggested by Eric Blake in:
3753         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3754
3755 2011-08-17  Eric Blake  <eblake@redhat.com>
3756
3757         getcwd: fix test failures on mingw
3758         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3759         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3760         test if long directory cannot be created, and allow mingw errno.
3761
3762         getcwd-lgpl: fix m4 to match relaxed test for BSD
3763         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3764         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3765         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3766         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3767         signature problem.
3768
3769         getcwd: fix compilation on mingw64
3770         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3771         getcwd.
3772         Reported by Marc-André Lureau.
3773
3774         pipe2: silence compiler warning
3775         * lib/pipe2.c (pipe2): Hide label if it is not used.
3776
3777 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3778
3779         relocatable-prog: fix link error
3780         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3781         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3782         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3783         into modules/relocatable-lib without noticing that
3784         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3785         also needs to build relocatable.c.
3786
3787 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3788
3789         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3791         shell code: it contained a 'break' that was not in a loop.
3792         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3793         via a shell-language loop; this may have been true in old Autoconf
3794         versions, but it's not true in Autoconf 2.68.  I found this bug
3795         when testing coreutils git on Solaris 8, whose shell complains
3796         about the syntax error.
3797
3798 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3799
3800         * lib/base64.c: Fix comment to reference RFC 4648.
3801         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3802         <gvtulder@gmail.com>.
3803
3804 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3805
3806         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3807
3808         po/Makefile.in.in: fix make -q problem
3809         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3810         rule, since there's no file named 'check-macro-version' and its
3811         use as a file breaks make -q.
3812         (all): Don't depend on check-macro-version.
3813         (CHECK_MACRO_VERSION): New macro.
3814         (stamp-po): Use it.
3815
3816         configmake: fix make -q problem
3817         * modules/configmake (configmake.h): Update configmake.h's time stamp
3818         even if the file does not change.  Otherwise, 'make -q' fails.
3819         Problem reported by Simon Josefsson in
3820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3821
3822 2011-08-11  Jim Meyering  <meyering@redhat.com>
3823
3824         git-version-gen: correct the advice in a comment
3825         * build-aux/git-version-gen: Correct comment.
3826         Don't recommend to list .tarball-version in .gitignore.
3827
3828 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3829
3830         base64: fix off-by-one buffer size bug
3831         Problem and (trivial) fix reported by Gijs van Tulder in
3832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3833         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3834         * tests/test-base64.c (main): Catch the bug.
3835
3836 2011-08-10  Eric Blake  <eblake@redhat.com>
3837
3838         closein: correct comments
3839         * lib/closein.c (close_stdin): Improve comments.
3840
3841 2011-08-09  Bruno Haible  <bruno@clisp.org>
3842
3843         More tests for 'fseeko'.
3844         * tests/test-fseeko3.c: New file, from Eric Blake.
3845         * tests/test-fseeko3.sh: New file.
3846         * modules/fseeko-tests (Files): Add them.
3847         (TESTS): Add test-fseeko3.sh.
3848         (check_PROGRAMS): Add test-fseeko3.
3849
3850 2011-08-09  Eric Blake  <eblake@redhat.com>
3851
3852         fseeko: remove unneeded hack
3853         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3854
3855         fseeko: fix bug on glibc
3856         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3857         Reported by John W. Eaton.
3858
3859 2011-08-08  Bruno Haible  <bruno@clisp.org>
3860
3861         unictype/base: Fix interoperability with preinstalled libunistring.
3862         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3863         Reported by Simon Josefsson.
3864
3865 2011-08-08  Bruno Haible  <bruno@clisp.org>
3866
3867         iswblank: Detect declaration correctly.
3868         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3869         AC_CHECK_DECLS invocation.
3870
3871 2011-08-08  Bruno Haible  <bruno@clisp.org>
3872
3873         tcgetsid: Detect declaration correctly.
3874         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3875         AC_CHECK_DECLS invocation.
3876         Reported by Simon Josefsson.
3877
3878 2011-08-08  Eric Blake  <eblake@redhat.com>
3879
3880         largefile: fix typo that regressed large file support
3881         * modules/largefile (configure.ac-early): Fix section name.
3882
3883 2011-08-06  Karl Berry  <karl@gnu.org>
3884
3885         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3886         a separate module.
3887
3888 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3889
3890         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3891         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3892         get prototype for free.
3893
3894 2011-08-04  Bruno Haible  <bruno@clisp.org>
3895
3896         Tests for module 'pathmax'.
3897         * modules/pathmax-tests: New file.
3898         * tests/test-pathmax.c: New file.
3899
3900         canonicalize-lgpl: Support larger filenames on the Hurd.
3901         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3902         Reported by Paul Eggert.
3903
3904         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3905         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3906         * lib/chdir-long.h: Include pathmax.h.
3907         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3908         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3909         (PATH_MAX): Remove code that is done by pathmax.h.
3910         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3911         * lib/tmpfile.c: Add a comment.
3912         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3913         * modules/chdir-long (Depends-on): Add pathmax.
3914         * modules/getcwd (Depends-on): Add pathmax.
3915         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3916         is not defined.
3917         * doc/posix-headers/limits.texi: Mention the pathmax module.
3918         * NEWS: Mention the change.
3919
3920 2011-08-02  Bruno Haible  <bruno@clisp.org>
3921
3922         pthread_sigmask: Actually use results of gl_THREADLIB.
3923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3924         gl_THREADLIB, not gl_[]THREADLIB.
3925         Reported by Eric Blake.
3926
3927 2011-08-02  Jim Meyering  <meyering@redhat.com>
3928
3929         maint.mk: relax the default _gl_TS_function_match regexp
3930         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3931         space between function name and "(" in an "extern" declaration.
3932         That would fail to match a decl with no space there: extern void foo();
3933
3934 2011-07-31  Iain Nicol  <iain@thenicols.net>
3935
3936         git-version-gen: document that EXTRA_DIST must include .version
3937         * build-aux/git-version-gen: In the how-to-use comment, document
3938         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3939         will fail when run from an unpacked distribution tarball.
3940
3941 2011-08-01  Bruno Haible  <bruno@clisp.org>
3942
3943         wctype-h: Fix last change.
3944         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3945         REPLACE_TOWLOWER to 0.
3946         Reported by Sam Steingold <sds@gnu.org>.
3947
3948 2011-07-31  Bruno Haible  <bruno@clisp.org>
3949
3950         frexpl: Update autoconf test.
3951         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3952         according to changes of 2011-06-20.
3953
3954 2011-07-31  Bruno Haible  <bruno@clisp.org>
3955
3956         sys_utsname: Add support for Minix.
3957         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3958         <sys/utsname.h>.
3959         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3960         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3961
3962 2011-07-31  Bruno Haible  <bruno@clisp.org>
3963
3964         strings: Add support for Minix.
3965         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3966         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3967         * doc/posix-headers/strings.texi: Document the Minix problem.
3968
3969 2011-07-31  Bruno Haible  <bruno@clisp.org>
3970
3971         wctype-h: Add support for Minix.
3972         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3973         REPLACE_TOWLOWER.
3974         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3975         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3976         REPLACE_ISWCNTRL.
3977
3978 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3979
3980         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3981         This is a performance improvement for 64-bit hosts: it causes the
3982         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3983
3984 2011-07-31  Bruno Haible  <bruno@clisp.org>
3985
3986         stdioext: Add support for Minix.
3987         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3988         * lib/fpurge.c (fpurge): Likewise.
3989         * lib/freadahead.c (freadahead): Likewise.
3990         * lib/freadable.c (freadable): Likewise.
3991         * lib/freading.c (freading): Likewise.
3992         * lib/freadptr.c (freadptr): Likewise.
3993         * lib/freadseek.c (freadptrinc): Likewise.
3994         * lib/fseeko.c (rpl_fseeko): Likewise.
3995         * lib/fseterr.c (fseterr): Likewise.
3996         * lib/fwritable.c (fwritable): Likewise.
3997         * lib/fwriting.c (fwriting): Likewise.
3998         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3999         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4000
4001 2011-07-31  Bruno Haible  <bruno@clisp.org>
4002
4003         errno: Port to Minix.
4004         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4005         ECONNABORTED are defined.
4006         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4007         GNULIB_defined_ECONNABORTED): New macros.
4008         * lib/strerror-override.h (strerror_override): Test also
4009         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4010         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4011         ECONNABORTED.
4012         * doc/posix-headers/errno.texi: Mention the Minix problem.
4013
4014 2011-07-31  Bruno Haible  <bruno@clisp.org>
4015
4016         Work around declaration collisions on Minix.
4017         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4018         defined, set REPLACE_MBSINIT.
4019         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4020         defined, set REPLACE_MBRTOWC.
4021         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4022         set REPLACE_MBRLEN.
4023         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4024         defined, set REPLACE_MBSRTOWCS.
4025         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4026         defined, set REPLACE_WCRTOMB.
4027         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4028         defined, set REPLACE_WCSRTOMBS.
4029
4030 2011-07-31  Bruno Haible  <bruno@clisp.org>
4031
4032         Add support for Minix with ACK compiler.
4033         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4034         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4035         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4036
4037 2011-07-31  Bruno Haible  <bruno@clisp.org>
4038
4039         Documentation about Minix.
4040         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4041         * doc/glibc-headers/*.texi: Likewise.
4042         * doc/posix-functions/*.texi: Likewise.
4043         * doc/glibc-functions/*.texi: Likewise.
4044
4045 2011-07-31  Bruno Haible  <bruno@clisp.org>
4046
4047         snippet/warn-on-use: Fix indentation.
4048         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4049
4050 2011-07-25  Jim Meyering  <meyering@redhat.com>
4051
4052         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4053         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4054         commands.
4055
4056 2011-07-27  Jim Meyering  <meyering@redhat.com>
4057
4058         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4059         * top/maint.mk (gl_extract_significant_defines_): Now that
4060         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4061         gnulib/lib/signal.in.h, and now that we recommend to
4062         define-if-undefined those two symbols in application code,
4063         we must filter them out of the "significant" list.
4064         This avoids a "make syntax-check" failure in coreutils.
4065
4066 2011-07-26  Eric Blake  <eblake@redhat.com>
4067
4068         warnings: add comments about previous patch
4069         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4070         * m4/include_next.m4: Likewise.
4071         * m4/warn-on-use.m4: Likewise.
4072         * m4/warnings.m4: Likewise, and simplify use.
4073         Suggested by Stefano Lattarini.
4074
4075         include-next, warnings: support older autoconf
4076         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4077         AS_VAR_PUSHDEF in a way that works with older autoconf.
4078         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4079         Reported by Daniel P. Berrange.
4080
4081 2011-07-25  Bruno Haible  <bruno@clisp.org>
4082
4083         fseek, ftell: Fix doc.
4084         * doc/posix-functions/fseek.texi: Reword statement about
4085         AC_SYS_LARGEFILE.
4086         * doc/posix-functions/ftell.texi: Likewise.
4087
4088 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4089             Bruno Haible  <bruno@clisp.org>
4090
4091         Add dependencies to the 'largefile' module.
4092         * modules/fopen (Depends-on): Add 'largefile'.
4093         * modules/freopen (Depends-on): Likewise.
4094         * modules/fseeko (Depends-on): Likewise.
4095         * modules/ftello (Depends-on): Likewise.
4096         * modules/glob (Depends-on): Likewise.
4097         * modules/lseek (Depends-on): Likewise.
4098         * modules/lstat (Depends-on): Likewise.
4099         * modules/mkostemp (Depends-on): Likewise.
4100         * modules/mkostemps (Depends-on): Likewise.
4101         * modules/mkstemp (Depends-on): Likewise.
4102         * modules/mkstemps (Depends-on): Likewise.
4103         * modules/open (Depends-on): Likewise.
4104         * modules/openat (Depends-on): Likewise.
4105         * modules/pread (Depends-on): Likewise.
4106         * modules/pwrite (Depends-on): Likewise.
4107         * modules/scandir (Depends-on): Likewise.
4108         * modules/stat (Depends-on): Likewise.
4109         * modules/tmpfile (Depends-on): Likewise.
4110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4111         since the containing module now depends on the largefile module.
4112         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4113         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4114         off_t is fixed by gnulib.
4115         * doc/posix-functions/freopen.texi: Likewise.
4116         * doc/posix-functions/fseeko.texi: Likewise.
4117         * doc/posix-functions/fstatat.texi: Likewise.
4118         * doc/posix-functions/ftello.texi: Likewise.
4119         * doc/posix-functions/glob.texi: Likewise.
4120         * doc/posix-functions/lseek.texi: Likewise.
4121         * doc/posix-functions/lstat.texi: Likewise.
4122         * doc/posix-functions/mkstemp.texi: Likewise.
4123         * doc/posix-functions/open.texi: Likewise.
4124         * doc/posix-functions/openat.texi: Likewise.
4125         * doc/posix-functions/pread.texi: Likewise.
4126         * doc/posix-functions/pwrite.texi: Likewise.
4127         * doc/posix-functions/scandir.texi: Likewise.
4128         * doc/posix-functions/stat.texi: Likewise.
4129         * doc/posix-functions/tmpfile.texi: Likewise.
4130         * doc/glibc-functions/mkostemp.texi: Likewise.
4131         * doc/glibc-functions/mkostemps.texi: Likewise.
4132         * doc/glibc-functions/mkstemps.texi: Likewise.
4133
4134 2011-07-25  Bruno Haible  <bruno@clisp.org>
4135
4136         fcntl: Move AC_LIBOBJ invocation to module description.
4137         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4138         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4139
4140         fcntl: Remove call-in from fchdir.m4.
4141         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4143
4144         dup3: Remove potential call-in from fchdir.m4.
4145         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4147
4148         dup2: Move AC_LIBOBJ invocation to module description.
4149         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4150         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4151         Don't invoke AC_LIBOBJ.
4152         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4153
4154         dup2: Remove call-in from fchdir.m4.
4155         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4157
4158         fclose: Move AC_LIBOBJ invocation to module description.
4159         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4160         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4161         to 1.
4162         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4163
4164         fclose: Remove call-in from close.m4.
4165         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4166         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4167
4168         close: Move AC_LIBOBJ invocation to module description.
4169         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4170         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4171         1.
4172         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4173
4174         close: Remove call-in from fchdir.m4.
4175         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4177
4178         open: Move AC_LIBOBJ invocation to module description.
4179         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4180         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4181         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4182
4183         open: Remove call-in from fchdir.m4.
4184         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4186
4187         fchdir: Start to remove gl_REPLACE_* idiom.
4188         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4189         (gl_FUNC_FCHDIR): Invoke it.
4190
4191 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4192
4193         * lib/ftell.c (ftell): Comment out cast.
4194
4195         close: use gl_REPLACE_FCLOSE only if defined
4196         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4197         is defined.  The close module doesn't depend on the fclose module
4198         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4200         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4201
4202 2011-07-24  Jim Meyering  <meyering@redhat.com>
4203
4204         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4205         * tests/test-select.h (test_function): Declare as "static".
4206
4207 2011-07-24  Bruno Haible  <bruno@clisp.org>
4208
4209         doc: Mention the effects of AC_SYS_LARGEFILE.
4210         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4211         on this function.
4212         * doc/posix-functions/aio_error.texi: Likewise.
4213         * doc/posix-functions/aio_fsync.texi: Likewise.
4214         * doc/posix-functions/aio_read.texi: Likewise.
4215         * doc/posix-functions/aio_return.texi: Likewise.
4216         * doc/posix-functions/aio_suspend.texi: Likewise.
4217         * doc/posix-functions/aio_write.texi: Likewise.
4218         * doc/posix-functions/fgetpos.texi: Likewise.
4219         * doc/posix-functions/fopen.texi: Likewise.
4220         * doc/posix-functions/freopen.texi: Likewise.
4221         * doc/posix-functions/fsetpos.texi: Likewise.
4222         * doc/posix-functions/fstatvfs.texi: Likewise.
4223         * doc/posix-functions/ftruncate.texi: Likewise.
4224         * doc/posix-functions/ftw.texi: Likewise.
4225         * doc/posix-functions/getrlimit.texi: Likewise.
4226         * doc/posix-functions/glob.texi: Likewise.
4227         * doc/posix-functions/lio_listio.texi: Likewise.
4228         * doc/posix-functions/lockf.texi: Likewise.
4229         * doc/posix-functions/mkstemp.texi: Likewise.
4230         * doc/posix-functions/mmap.texi: Likewise.
4231         * doc/posix-functions/nftw.texi: Likewise.
4232         * doc/posix-functions/openat.texi: Likewise.
4233         * doc/posix-functions/opendir.texi: Likewise.
4234         * doc/posix-functions/posix_fadvise.texi: Likewise.
4235         * doc/posix-functions/posix_fallocate.texi: Likewise.
4236         * doc/posix-functions/pread.texi: Likewise.
4237         * doc/posix-functions/pwrite.texi: Likewise.
4238         * doc/posix-functions/readdir.texi: Likewise.
4239         * doc/posix-functions/readdir_r.texi: Likewise.
4240         * doc/posix-functions/rewinddir.texi: Likewise.
4241         * doc/posix-functions/scandir.texi: Likewise.
4242         * doc/posix-functions/seekdir.texi: Likewise.
4243         * doc/posix-functions/setrlimit.texi: Likewise.
4244         * doc/posix-functions/statvfs.texi: Likewise.
4245         * doc/posix-functions/telldir.texi: Likewise.
4246         * doc/posix-functions/tmpfile.texi: Likewise.
4247         * doc/posix-functions/truncate.texi: Likewise.
4248         * doc/glibc-functions/fallocate.texi: Likewise.
4249         * doc/glibc-functions/fstatfs.texi: Likewise.
4250         * doc/glibc-functions/fts_children.texi: Likewise.
4251         * doc/glibc-functions/fts_read.texi: Likewise.
4252         * doc/glibc-functions/getdirentries.texi: Likewise.
4253         * doc/glibc-functions/mkostemp.texi: Likewise.
4254         * doc/glibc-functions/mkostemps.texi: Likewise.
4255         * doc/glibc-functions/mkstemps.texi: Likewise.
4256         * doc/glibc-functions/preadv.texi: Likewise.
4257         * doc/glibc-functions/pwritev.texi: Likewise.
4258         * doc/glibc-functions/sendfile.texi: Likewise.
4259         * doc/glibc-functions/statfs.texi: Likewise.
4260
4261 2011-07-24  Bruno Haible  <bruno@clisp.org>
4262
4263         doc: Fix typo.
4264         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4265
4266 2011-07-24  Bruno Haible  <bruno@clisp.org>
4267
4268         doc: Mention fsusage.
4269         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4270
4271 2011-07-24  Bruno Haible  <bruno@clisp.org>
4272
4273         doc: Mention new glibc headers and functions.
4274         * doc/glibc-headers/gshadow.texi: New file.
4275         * doc/glibc-functions/endsgent.texi: New file.
4276         * doc/glibc-functions/fgetsgent.texi: New file.
4277         * doc/glibc-functions/fgetsgent_r.texi: New file.
4278         * doc/glibc-functions/getsgent.texi: New file.
4279         * doc/glibc-functions/getsgent_r.texi: New file.
4280         * doc/glibc-functions/getsgnam.texi: New file.
4281         * doc/glibc-functions/getsgnam_r.texi: New file.
4282         * doc/glibc-functions/putsgent.texi: New file.
4283         * doc/glibc-functions/setsgent.texi: New file.
4284         * doc/glibc-functions/sgetsgent.texi: New file.
4285         * doc/glibc-functions/sgetsgent_r.texi: New file.
4286         * doc/glibc-functions/malloc_info.texi: New file.
4287         * doc/glibc-functions/preadv.texi: New file.
4288         * doc/glibc-functions/pwritev.texi: New file.
4289         * doc/glibc-functions/register_printf_modifier.texi: New file.
4290         * doc/glibc-functions/register_printf_specifier.texi: New file.
4291         * doc/glibc-functions/register_printf_type.texi: New file.
4292         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4293         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4294         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4295         * doc/glibc-functions/pthread_getname_np.texi: New file.
4296         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4297         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4298         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4299         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4300         * doc/glibc-functions/pthread_setname_np.texi: New file.
4301         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4302         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4303         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4304         * doc/glibc-functions/qsort_r.texi: New file.
4305         * doc/glibc-functions/quick_exit.texi: New file.
4306         * doc/glibc-functions/syncfs.texi: New file.
4307         * doc/gnulib.texi: Include them.
4308         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4309         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4310         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4311         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4312         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4313         * doc/glibc-functions/execvpe.texi: Likewise.
4314
4315 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4316
4317         ftell: don't include <unistd.h>
4318         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4319         guaranteed to define off_t, and the ftell module depends on the
4320         stdio module.
4321
4322         ftell: do not assume wraparound signed arithmetic
4323         * lib/ftell.c: Include <limits.h>.
4324         (ftell): Don't assume wraparound signed arithmetic.
4325
4326 2011-07-24  Bruno Haible  <bruno@clisp.org>
4327
4328         close: No longer depend on module 'fclose'.
4329         * modules/close (Depends-on): Remove fclose.
4330         * NEWS: Mention the change.
4331         Suggested by Sam Steingold <sds@gnu.org>.
4332
4333 2011-07-24  Bruno Haible  <bruno@clisp.org>
4334
4335         fsusage: Enable large volume support on AIX >= 5.2.
4336         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4337         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4338         instead of STAT_STATVFS.
4339         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4340
4341         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4343         f_blocks field only on MacOS X.
4344
4345         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4347         * modules/fsusage (Depends-on): Add largefile.
4348
4349 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4350
4351         * README: Modernize discussion of signed integers.
4352         Assuming overflow wraparound is no longer safe.
4353         Mention ones' complement and signed magnitude.
4354
4355 2011-07-22  Bruno Haible  <bruno@clisp.org>
4356
4357         select tests, pselect tests: Refactor.
4358         * tests/test-select.h: New file, extracted from tests/test-select.c.
4359         (select_fn): New type.
4360         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4361         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4362         test_pipe): Add my_select argument.
4363         (test_function): Renamed from main. Add my_select argument.
4364         * tests/test-select.c: Move most code to tests/test-select.h. Include
4365         test-select.h.
4366         * modules/select-tests (Files): Add tests/test-select.h.
4367         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4368         (my_select, main): New functions.
4369         * modules/pselect-tests (Files): Add tests/test-select.h,
4370         tests/macros.h, tests/signature.h.
4371         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4372         (configure.ac): Check for <sys/wait.h>.
4373
4374 2011-07-22  Bruno Haible  <bruno@clisp.org>
4375
4376         sys_select tests: Check the signature of FD_*.
4377         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4378         signature tests from here...
4379         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4380         here.
4381         * modules/sys_select-tests (Files): Add tests/signature.h.
4382
4383 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4384
4385         largefile: new module, replacing large-inode
4386         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4387         * MODULES.html.sh: Add largefile, remove large-inode.
4388         * modules/largefile, m4/largefile.m4: New files.
4389         * modules/large-inode, m4/large-inode.m4: Remove.
4390
4391         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4392         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4393         implementations that use only 32 bits to count blocks.
4394         On typical hosts with 1024-byte blocks, this fails with file
4395         systems as small as 4 TiB.  Problem reported by Herb Wartens
4396         <http://debbugs.gnu.org/9140> and this should also fix a similar
4397         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4398
4399         large-inode: New module
4400         * MODULES.html.sh: Add it.
4401         * modules/large-inode, m4/large-inode.m4: New files.
4402
4403         extensions: Enable extensions on MacOS X 10.5 and later.
4404         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4405
4406 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4407
4408         file-has-acl: use acl_extended_file_nofollow if available
4409         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4410         (acl_extended_file): New macro.
4411         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4412         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4413
4414 2011-07-21  Bruno Haible  <bruno@clisp.org>
4415
4416         Declare system functions in a way that works with C++.
4417         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4418         declare fdopendir as extern "C".
4419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4420         declare frexpl as extern "C".
4421         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4422         declare gai_strerror as extern "C".
4423         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4424         programs, declare gai_strerror as extern "C".
4425         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4426         declare getlogin_r as extern "C".
4427         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4428         as extern "C".
4429         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4430         declare ldexpl as extern "C".
4431         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4432         as extern "C".
4433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4434         program, declare getmntinfo as extern "C".
4435         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4436         stpncpy as extern "C".
4437         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4438         program, declare __xpg_strerror_r as extern "C".
4439         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4440         strndup as extern "C".
4441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4442         declare memset and bzero as extern "C".
4443         Reported by Sam Steingold <sds@gnu.org>.
4444
4445 2011-07-12  Jim Meyering  <meyering@redhat.com>
4446
4447         maint.mk: prohibit inclusion of "verify.h" without use
4448         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4449
4450 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4451
4452         timer-time: A new module to check for timer_settime()
4453         * m4/timer_time.m4: Check for the posix function.
4454         * modules/timer-time: Add the new module.
4455         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4456         Mention it.
4457
4458 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4459             Bruno Haible  <bruno@clisp.org>
4460
4461         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4463         not defined, assume POSIX threads and look for pthread_sigmask in
4464         $LIBS, without changing $CPPFLAGS.
4465
4466 2011-07-19  Bruno Haible  <bruno@clisp.org>
4467
4468         strstr: Update cross-compilation guess.
4469         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4470         CPUs, guess no, in view of glibc
4471         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4472         Suggested by Eric Blake. Reported by Reuben Thomas.
4473
4474 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4475
4476         getopt-gnu: suppress core dumps from detection code
4477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4478         to suppress core dumps that may well occur on glibc systems.
4479         * modules/getopt-gnu: Depend on nocrash.
4480
4481 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4482
4483         pthread_sigmask: ensure usleep is declared
4484         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4485         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4486
4487 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4488
4489         doc: Document NonStop portability issues.
4490         * doc/posix-functions/sigaction.texi (sigaction):
4491         * doc/posix-headers/signal.texi (signal.h):
4492         Document NonStop.  See Joachim Schmitz in
4493         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4494
4495 2011-07-15  Bruno Haible  <bruno@clisp.org>
4496
4497         ffsl, ffsll: Avoid unportable behaviour.
4498         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4499
4500 2011-07-15  Bruno Haible  <bruno@clisp.org>
4501
4502         ffs: More tests.
4503         * tests/test-ffs.c (NBITS): New macro.
4504         (main): Add more tests.
4505         * tests/test-ffsl.c (NBITS): New macro.
4506         (main): Add more tests.
4507         * tests/test-ffsll.c (NBITS): New macro.
4508         (main): Add more tests.
4509
4510 2011-07-15  Eric Blake  <eblake@redhat.com>
4511
4512         ffsl, ffsll: new modules
4513         * modules/ffsl: New file.
4514         * modules/ffsll: Likewise.
4515         * m4/ffsl.m4: Likewise.
4516         * m4/ffsll.m4: Likewise.
4517         * lib/ffsl.c: Likewise.
4518         * lib/ffsl.h: Likewise.
4519         * lib/ffsll.c: Likewise.
4520         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4521         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4522         * modules/string (Makefile.am): Substitute witnesses.
4523         * lib/strings.in.h (ffsl, ffsll): Declare.
4524         * modules/ffsl-tests: New test file.
4525         * modules/ffsll-tests: Likewise.
4526         * tests/test-ffsl.c: Likewise.
4527         * tests/test-ffsll.c: Likewise.
4528         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4529         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4530         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4531
4532         ffs: fix m4 prerequisite
4533         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4534
4535         ffs: avoid undefined behavior
4536         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4537         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4538         Reported by Bruno Haible.
4539
4540 2011-07-12  Bruno Haible  <bruno@clisp.org>
4541
4542         pthread_sigmask: Rely on module 'threadlib'.
4543         * modules/pthread_sigmask (Depends-on): Add threadlib.
4544         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4545         is defined.
4546
4547 2011-07-12  Bruno Haible  <bruno@clisp.org>
4548
4549         regex: Depend on module 'strcase'.
4550         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4551
4552 2011-07-12  Jim Meyering  <meyering@redhat.com>
4553
4554         warn-on-use: fix typo in file name
4555         * modules/snippet/warn-on-use (Files): Correct file name:
4556         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4557
4558 2011-07-12  Bruno Haible  <bruno@clisp.org>
4559
4560         strings: Document module.
4561         * doc/posix-headers/strings.texi: Mention module 'strings'.
4562
4563 2011-07-12  Bruno Haible  <bruno@clisp.org>
4564
4565         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4566         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4567         (Files, Makefile.am): Update.
4568         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4569         * modules/stdlib (Depends-on): Update.
4570
4571 2011-07-12  Bruno Haible  <bruno@clisp.org>
4572
4573         * NEWS: Mention the changes.
4574
4575         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4576         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4577         (Files, Makefile.am): Update.
4578         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4579         * modules/arpa_inet (Depends-on): Update.
4580         * modules/ctype (Depends-on): Update.
4581         * modules/dirent (Depends-on): Update.
4582         * modules/fcntl-h (Depends-on): Update.
4583         * modules/glob (Depends-on): Update.
4584         * modules/iconv-h (Depends-on): Update.
4585         * modules/inttypes-incomplete (Depends-on): Update.
4586         * modules/langinfo (Depends-on): Update.
4587         * modules/locale (Depends-on): Update.
4588         * modules/math (Depends-on): Update.
4589         * modules/netdb (Depends-on): Update.
4590         * modules/poll-h (Depends-on): Update.
4591         * modules/pty (Depends-on): Update.
4592         * modules/search (Depends-on): Update.
4593         * modules/signal (Depends-on): Update.
4594         * modules/spawn (Depends-on): Update.
4595         * modules/stdio (Depends-on): Update.
4596         * modules/stdlib (Depends-on): Update.
4597         * modules/string (Depends-on): Update.
4598         * modules/strings (Depends-on): Update.
4599         * modules/sys_file (Depends-on): Update.
4600         * modules/sys_ioctl (Depends-on): Update.
4601         * modules/sys_select (Depends-on): Update.
4602         * modules/sys_socket (Depends-on): Update.
4603         * modules/sys_stat (Depends-on): Update.
4604         * modules/sys_time (Depends-on): Update.
4605         * modules/sys_times (Depends-on): Update.
4606         * modules/sys_utsname (Depends-on): Update.
4607         * modules/sys_wait (Depends-on): Update.
4608         * modules/termios (Depends-on): Update.
4609         * modules/time (Depends-on): Update.
4610         * modules/unistd (Depends-on): Update.
4611         * modules/wchar (Depends-on): Update.
4612         * modules/wctype-h (Depends-on): Update.
4613         * MODULES.html.sh (Support for building libraries and executables):
4614         Update.
4615
4616         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4617         * modules/snippet/unused-parameter: Renamed from
4618         modules/unused-parameter.
4619         (Files, Makefile.am): Update.
4620         * build-aux/snippet/unused-parameter.h: Renamed from
4621         build-aux/unused-parameter.h.
4622         * modules/selinux-h (Depends-on): Update.
4623         * modules/unistr/base (Depends-on): Update.
4624         * MODULES.html.sh (Core language properties): Update.
4625
4626         Rename module 'link-warning' to 'snippet/link-warning'.
4627         * modules/snippet/link-warning: Renamed from modules/link-warning.
4628         (Files, Makefile.am): Update.
4629         * build-aux/snippet/link-warning.h: Renamed from
4630         build-aux/link-warning.h.
4631         * MODULES.html.sh (Support for building libraries and executables):
4632         Update.
4633
4634         Rename module 'c++defs' to 'snippet/c++defs'.
4635         * modules/snippet/c++defs: Renamed from modules/c++defs.
4636         (Files, Makefile.am): Update.
4637         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4638         * modules/arpa_inet (Depends-on): Update.
4639         * modules/ctype (Depends-on): Update.
4640         * modules/dirent (Depends-on): Update.
4641         * modules/fcntl-h (Depends-on): Update.
4642         * modules/glob (Depends-on): Update.
4643         * modules/iconv-h (Depends-on): Update.
4644         * modules/langinfo (Depends-on): Update.
4645         * modules/locale (Depends-on): Update.
4646         * modules/math (Depends-on): Update.
4647         * modules/netdb (Depends-on): Update.
4648         * modules/poll-h (Depends-on): Update.
4649         * modules/pty (Depends-on): Update.
4650         * modules/search (Depends-on): Update.
4651         * modules/signal (Depends-on): Update.
4652         * modules/spawn (Depends-on): Update.
4653         * modules/stdio (Depends-on): Update.
4654         * modules/stdlib (Depends-on): Update.
4655         * modules/string (Depends-on): Update.
4656         * modules/strings (Depends-on): Update.
4657         * modules/sys_ioctl (Depends-on): Update.
4658         * modules/sys_select (Depends-on): Update.
4659         * modules/sys_socket (Depends-on): Update.
4660         * modules/sys_stat (Depends-on): Update.
4661         * modules/sys_time (Depends-on): Update.
4662         * modules/sys_wait (Depends-on): Update.
4663         * modules/termios (Depends-on): Update.
4664         * modules/time (Depends-on): Update.
4665         * modules/unistd (Depends-on): Update.
4666         * modules/wchar (Depends-on): Update.
4667         * modules/wctype-h (Depends-on): Update.
4668
4669         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4670         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4671         (Files, Makefile.am): Update.
4672         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4673         * modules/argv-iter (Depends-on): Update.
4674         * modules/arpa_inet (Depends-on): Update.
4675         * modules/dirent (Depends-on): Update.
4676         * modules/fcntl-h (Depends-on): Update.
4677         * modules/fnmatch (Depends-on): Update.
4678         * modules/getopt-posix (Depends-on): Update.
4679         * modules/glob (Depends-on): Update.
4680         * modules/iconv-h (Depends-on): Update.
4681         * modules/inttypes-incomplete (Depends-on): Update.
4682         * modules/locale (Depends-on): Update.
4683         * modules/math (Depends-on): Update.
4684         * modules/netdb (Depends-on): Update.
4685         * modules/search (Depends-on): Update.
4686         * modules/signal (Depends-on): Update.
4687         * modules/spawn (Depends-on): Update.
4688         * modules/stdio (Depends-on): Update.
4689         * modules/stdlib (Depends-on): Update.
4690         * modules/string (Depends-on): Update.
4691         * modules/strings (Depends-on): Update.
4692         * modules/sys_socket (Depends-on): Update.
4693         * modules/sys_stat (Depends-on): Update.
4694         * modules/sys_time (Depends-on): Update.
4695         * modules/sys_times (Depends-on): Update.
4696         * modules/sys_utsname (Depends-on): Update.
4697         * modules/time (Depends-on): Update.
4698         * modules/unistd (Depends-on): Update.
4699         * modules/wchar (Depends-on): Update.
4700         * MODULES.html.sh (Support for building libraries and executables):
4701         Update.
4702
4703 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         Improvements on _Noreturn and related modules.
4706
4707         modules/_Exit-tests: test _Noreturn too
4708         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4709         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4710         (main): Use them.
4711
4712         stdnoreturn, stdnoreturn-tests: remove modules
4713         They're not needed here and a bit premature for use elsewhere.  See
4714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4715         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4716         * tests/test-stdnoreturn.c: Remove files.
4717         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4718         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4719         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4720         and using noreturn.
4721         * modules/openat, modules/sigpipe-die, modules/xalloc:
4722         * modules/xmemdup0, modules/xstrtol:
4723         Remove dependency on stdnoreturn.
4724
4725         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4726         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4727         Reparenthesize to avoid GCC warning.
4728         Support Microsoft's syntax.
4729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4730
4731         _Noreturn-tests: remove module
4732         * modules/_Noreturn-tests: Remove.
4733         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4734         * tests/test-_Noreturn.c: Remove.
4735         * tests/test-stdnoreturn.c: Merge from the old
4736         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4737
4738 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4739
4740         _Noreturn, stdnoreturn, and related modules.
4741
4742         * top/maint.mk: Adjust to new noreturn support.
4743         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4744         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4745
4746         xalloc: use stdnoreturn.h
4747         * lib/xalloc.h: Include <stdnoreturn.h>.
4748         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4749         * modules/xalloc (Depends-on): Add stdnoreturn.
4750
4751         xstrtol: use stdnoreturn.h
4752         * lib/xstrtol.h: Include <stdnoreturn.h>.
4753         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4754         * modules/xstrtol (Depends-on): Add stdnoreturn.
4755
4756         xmemdup0: use stdnoreturn.h
4757         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4758         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4759         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4760
4761         sigpipe-die: use stdnoreturn.h
4762         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4763         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4764         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4765
4766         openat: use stdnoreturn.h
4767         * lib/openat.h: Include <stdnoreturn.h>.
4768         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4769         * modules/openat (Depends-on): Add stdnoreturn.
4770
4771         * lib/openat-die.c (openat_save_fail): Modernize comment.
4772
4773         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4774
4775         * lib/glthread/thread.h: Modernize comment.
4776
4777         obstack: use _Noreturn
4778         * lib/obstack.c (__attribute__): Remove macro.
4779         (print_and_abort): Use _Noreturn.
4780
4781         c-stack: use _Noreturn
4782         * lib/c-stack.c (die, overflow_handler, segv_handler):
4783         Use _Noreturn rather than __attribute__((noreturn)).
4784
4785         argmatch-tests, exclude_tests: use _Noreturn
4786         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4787         Remove.
4788         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4789
4790         stdlib: use _Noreturn
4791         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4792         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4793         * modules/stdlib (Depends-on): Add _Noreturn.
4794         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4795
4796         stdnoreturn-tests: new module
4797         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4798
4799         stdnoreturn: new module
4800         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4801         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4802
4803         _Noreturn-tests: new module
4804         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4805
4806         _Noreturn: new module
4807         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4808         New section, mentioning it.
4809         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4810
4811         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4812
4813 2011-07-11  Eric Blake  <eblake@redhat.com>
4814
4815         ffs: new module
4816         * modules/ffs: New file.
4817         * m4/ffs.m4: Likewise.
4818         * lib/ffs.c: Likewise.
4819         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4820         * modules/strings (Makefile.am): Substitute witness.
4821         (Depends-on): Add c++defs.
4822         * lib/strings.in.h (ffs): Declare.
4823         * modules/ffs-tests: New test file.
4824         * tests/test-ffs.c: Test new module.
4825         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4826         * doc/posix-functions/ffs.texi (ffs): Likewise.
4827
4828         regex: avoid compiler warning
4829         * lib/regex.c (includes): Include <strings.h>, for use of
4830         strcasecmp in regcomp.c.
4831         Reported by Joachim Schmitz.
4832
4833 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4834
4835         stdint: respect system's intmax_t if INTMAX_MAX
4836         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4837         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4838         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4839         long but int64_t is long long, and where we will clash with the
4840         system intmax_t if we override it.  See
4841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4842         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4843         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4844         similarly for UINTMAX_C.
4845
4846 2011-07-08  Bruno Haible  <bruno@clisp.org>
4847
4848         pthread_sigmask tests: Avoid a compiler warning.
4849         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4850         non-zero.
4851
4852         sigprocmask tests: A better way to avoid a compiler warning.
4853         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4854         (main): Complain if system() returns non-zero.
4855         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4856
4857 2011-07-08  Bruno Haible  <bruno@clisp.org>
4858
4859         pthread_sigmask: Work around IRIX bug.
4860         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4861         bug.
4862         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4863         there may be unblocked pending signals.
4864         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4865
4866 2011-07-08  Bruno Haible  <bruno@clisp.org>
4867
4868         pthread_sigmask: Work around Cygwin bug.
4869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4870         bug.
4871         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4872         the system's pthread_sigmask function.
4873         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4874
4875 2011-07-08  Bruno Haible  <bruno@clisp.org>
4876
4877         pthread_sigmask: Work around bug in single-threaded implementation.
4878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4879         FreeBSD, HP-UX, Solaris bug.
4880         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4881         * lib/pthread_sigmask.c: Include <stddef.h>.
4882         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4883         the system's pthread_sigmask function.
4884         * modules/pthread_sigmask (configure.ac): Invoke
4885         gl_PREREQ_PTHREAD_SIGMASK.
4886         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4887         HP-UX, Solaris.
4888
4889 2011-07-08  Eric Blake  <eblake@redhat.com>
4890
4891         test-sigprocmask: avoid compiler warning
4892         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4893         * tests/test-sigprocmask.c (main): Use it to silence warning.
4894         Reported by Jim Meyering.
4895
4896         test-snprintf: avoid compiler warning
4897         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4898         * tests/test-vsnprintf.c (main): Likewise.
4899         Reported by Jim Meyering.
4900
4901 2011-07-08  Bruno Haible  <bruno@clisp.org>
4902
4903         Tests for module 'pthread_sigmask'.
4904         * modules/pthread_sigmask-tests: New file.
4905         * tests/test-pthread_sigmask1.c: New file, based on
4906         tests/test-sigprocmask.c.
4907         * tests/test-pthread_sigmask2.c: New file.
4908
4909 2011-07-08  Jim Meyering  <meyering@redhat.com>
4910
4911         test-getopt.h: avoid warning about an unused variable
4912         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4913
4914 2011-07-07  Jim Meyering  <meyering@redhat.com>
4915
4916         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4917         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4918         now that it no longer contains leading TABs.
4919         Remove unused "url=FIXME" statement.
4920
4921 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4922
4923         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4925         When gl_THREADLIB is not in use, assume that the POSIX sematics
4926         are desired.  This is better for Emacs, which uses POSIX semantics
4927         on GNUish and/or POSIXish platforms, and does not use threads at
4928         all otherwise.
4929
4930         pthread_sigmask: fix typo when testing for libraries
4931         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4932         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4933
4934 2011-07-08  Eric Blake  <eblake@redhat.com>
4935
4936         fts: introduce FTS_NOATIME
4937         * lib/fts_.h (FTS_NOATIME): New bit flag.
4938         (FTS_OPTIONMASK): Adjust.
4939         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4940         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4941
4942 2011-07-08  Bruno Haible  <bruno@clisp.org>
4943
4944         Tests for module 'thread'.
4945         * modules/thread-tests: New file.
4946         * tests/test-thread_self.c: New file.
4947         * tests/test-thread_create.cc: New file.
4948
4949 2011-07-08  Bruno Haible  <bruno@clisp.org>
4950
4951         thread: Avoid gcc warnings when using gl_thread_self().
4952         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4953         'void *'.
4954         (gl_thread_self_pointer): Update.
4955
4956 2011-07-07  Bruno Haible  <bruno@clisp.org>
4957
4958         signal-c++-tests: Check declaration of pthread_sigmask.
4959         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4960         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4961         $(LIB_PTHREAD_SIGMASK).
4962
4963 2011-07-07  Bruno Haible  <bruno@clisp.org>
4964
4965         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4966         * lib/signal.in.h (pthread_sigmask): Override if
4967         REPLACE_PTHREAD_SIGMASK is 1.
4968         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4969         REPLACE_PTHREAD_SIGMASK.
4970         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4971         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4972         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4973         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4974         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4975
4976 2011-07-07  Bruno Haible  <bruno@clisp.org>
4977
4978         pthread_sigmask: Ensure declaration in <signal.h>.
4979         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4980         include <pthread.h>.
4981         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4982         problem.
4983
4984 2011-07-07  Bruno Haible  <bruno@clisp.org>
4985
4986         pthread_sigmask: Document the module.
4987         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4988
4989 2011-07-07  Bruno Haible  <bruno@clisp.org>
4990
4991         pthread_sigmask: Follow gnulib conventions.
4992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4993         gl_PTHREAD_SIGMASK.
4994         * modules/pthread_sigmask (configure.ac): Update.
4995
4996 2011-07-07  Bruno Haible  <bruno@clisp.org>
4997
4998         pthread_sigmask: Make declaration C++ safe.
4999         * lib/signal.in.h: In two special conditions, just do an #include_next.
5000         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5001         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5002         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5003         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5004         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5005         not REPLACE_PTHREAD_MASK.
5006         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5007         not REPLACE_PTHREAD_MASK.
5008         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5009
5010 2011-07-07  Bruno Haible  <bruno@clisp.org>
5011
5012         pthread_sigmask: Fix return value.
5013         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5014         * lib/pthread_sigmask.c: New file.
5015         * modules/pthread_sigmask (Files): Add it.
5016         (configure.ac): Invoke AC_LIBOBJ.
5017
5018 2011-07-07  Eric Blake  <eblake@redhat.com>
5019
5020         getopt: more portable argv creation
5021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5022         const, use char arrays rather than strings.
5023         Suggested by Paul Eggert.
5024
5025 2011-07-07  Bruno Haible  <bruno@clisp.org>
5026
5027         Tests for module 'sigprocmask'.
5028         * modules/sigprocmask-tests: New file.
5029         * tests/test-sigprocmask.c: New file.
5030
5031 2011-07-07  Bruno Haible  <bruno@clisp.org>
5032
5033         float tests: Tweak.
5034         * tests/test-float.c (main): Tweak skip message.
5035
5036 2011-07-07  Eric Blake  <eblake@redhat.com>
5037
5038         getopt: avoid compiler warning during configure
5039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5040         assigning string literals to non-const pointer.
5041
5042         getopt-gnu: avoid crash in glibc getopt
5043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5044         * tests/test-getopt.h (test_getopt): Enhance test.
5045         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5046         * doc/posix-functions/getopt.texi (getopt): Document it.
5047         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5048         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5049         Likewise.
5050
5051 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5052
5053         getopt: handle W; without long options in getopt [BZ #12922]
5054         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5055         but no long options are defined, just return 'W'.
5056
5057 2011-07-07  Bruno Haible  <bruno@clisp.org>
5058
5059         Avoid literal tabs.
5060         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5061         variable containing a tab instead of a literal tab.
5062         Reported by Jim Meyering.
5063
5064 2011-07-07  Bruno Haible  <bruno@clisp.org>
5065
5066         Comments.
5067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5068
5069 2011-07-06  Bruno Haible  <bruno@clisp.org>
5070
5071         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5072         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5073         <winsock2.h>.
5074         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5075         lib/sys_socket.in.h.
5076         (close, gethostname): Hide declarations from <winsock2.h>.
5077         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5078         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5079         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5080         (select): Don't override if gnulib's <sys/select.h> was already
5081         included.
5082         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5083         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5084         setsockopt, shutdown, select): Tweak indentation.
5085
5086 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5087
5088         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5089         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5090         in an application that does not use the sys_select module.
5091
5092 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5093
5094         poll: do not return 0 on timeout=-1
5095         * lib/poll.c: Loop with yield if no events occured
5096
5097 2011-07-06  Eric Blake  <eblake@redhat.com>
5098
5099         pthread_sigmask: always replace when not using pthread
5100         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5101         replacement when using some threading other than pthread.  Fix
5102         logic bug.
5103
5104 2011-07-06  Bruno Haible  <bruno@clisp.org>
5105
5106         Comments.
5107         * m4/printf.m4: Update comments about mingw.
5108
5109 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5110
5111         sys_select: define sigset_t more portably
5112         * lib/sys_select.in.h: Always include <sys/types.h>, since
5113         we now need sigset_t and mingw defines it there.
5114         Include <signal.h> before split inclusion guard, to avoid
5115         mishaps on Solaris, whose <signal.h> eventually includes us.
5116         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5117         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5118         which come from ...
5119         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5120         gl_CHECK_TYPE_SIGSET_T.
5121         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5122         does the real work.
5123         * modules/sys_select (Depends-on): Add 'signal'.
5124
5125         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5126         Suggested by Bruno Haible.
5127
5128         pselect: Use pthread_sigmask, not sigprocmask.
5129         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5130         multithreaded apps better than sigprocmask does.
5131         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5132         sigprocmask directly.
5133
5134 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5135
5136         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5137         Don't #undef,  since we don't need any underlying pselect.
5138         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5139         (Depends-on): Add select.
5140         (Link): Add $(LIBSOCKET).
5141         These changes suggested by Bruno Haible.
5142
5143         pselect: document better
5144         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5145         * doc/posix-functions/pselect.texi (pselect): Document new module.
5146
5147         pthread_sigmask: new module
5148         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5149         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5150         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5151         This is done only as a macro; I don't know how well that'll
5152         work for C++.  Move <sys/types.h> include before the include_next,
5153         to avoid mishap on Solaris.
5154         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5155         * modules/signal (Makefile.am): Substitute the check's results.
5156         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5157
5158         test-pselect: new module
5159         * modules/pselect-tests, tests/test-pselect.c: New files.
5160         * tests/test-select.c, tests/test-sys_select-c++.cc:
5161         If TEST_PSELECT is defined, test pselect instead of testing select.
5162
5163         * tests/test-sys_select.c (sigset_t): Test for it, too.
5164         Suggested by Bruno Haible.
5165
5166 2011-07-05  Eric Blake  <eblake@redhat.com>
5167
5168         snprintf: guarantee %1$d, for libintl
5169         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5170         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5171         * doc/posix-functions/snprintf.texi (snprintf): Update.
5172         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5173         * tests/test-snprintf.c (main): Enhance test.
5174         * tests/test-vsnprintf.c (main): Likewise.
5175
5176 2011-07-05  Jim Meyering  <meyering@redhat.com>
5177
5178         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5179         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5180         per Bruno's request, to accommodate this idiom (no space after "#")
5181         even when the function is inside an #if block:
5182         char *
5183         gets (char *s)
5184         #undef gets
5185         {
5186           ...
5187         }
5188
5189 2011-07-04  Jim Meyering  <meyering@redhat.com>
5190
5191         maint: indent with spaces, not TABs, and add a rule to check this
5192         * tests/test-userspec.c: Indent with spaces, not TABs.
5193         * tests/test-argp.c: Likewise.
5194         * tests/test-c-stack2.sh: Likewise.
5195         * tests/test-parse-duration.sh: Likewise
5196         * m4/strtod.m4: Likewise.
5197         * m4/alloca.m4: Likewise.
5198         * m4/pselect.m4: Likewise.
5199         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5200
5201 2011-07-03  Jim Meyering  <meyering@redhat.com>
5202
5203         maint.mk: correct omissions in prohibit_argmatch_without_use check
5204         This rule would mistakenly report that argmatch.h is included without
5205         use even when both the argmatch and invalid_arg macro were used.
5206         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5207         of argmatch and invalid_arg.
5208
5209 2011-07-03  Bruno Haible  <bruno@clisp.org>
5210
5211         Comments about EINTR.
5212         * lib/safe-read.h: Explain the purpose of this module.
5213         * lib/safe-write.h: Likewise.
5214         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5215         module.
5216         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5217         module.
5218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5219
5220 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5221
5222         xnanosleep: Rewrite to use new dtotimespec module.
5223         It has the conversion code that used to be in xnanosleep.
5224         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5225         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5226         (TIME_T_MAX): Remove.
5227         (xnanosleep): Rewrite in terms of dtotimespec.
5228         * modules/xnanosleep (Depends-on): Add dtotimespec.
5229         Remove intprops, stdbool.
5230
5231         timespec-add, timespec-sub: new modules
5232         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5233         * lib/timespec-add.c, lib/timespec-sub.c:
5234         * modules/timespec-add, modules/timespec-sub: New files.
5235
5236         dtotimespec: new module
5237         * lib/timespec.h (dtotimespec): New decl.
5238         * lib/dtotimespec.c, modules/dtotimespec: New files.
5239
5240         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5241
5242         pselect: new module
5243         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5244         (pselect): New decls.
5245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5246         since the standard pselect decl uses 'restrict'.
5247         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5248         HAVE_PSELECT, REPLACE_PSELECT.
5249         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5250         HAVE_PSELECT, REPLACE_PSELECT.
5251         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5252
5253         sys_select: don't depend on sys_socket
5254         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5256         This fix works on GNU and GNU-like platforms, but has not been tested
5257         on native Windows.
5258         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5260         gl_HEADER_SYS_SOCKET.
5261         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5262         gl_PREREQ_SYS_H_WINSOCK2.
5263
5264 2011-06-29  Eric Blake  <eblake@redhat.com>
5265
5266         pipe2: fix C89 compile problem
5267         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5268         Reported by Bruno Haible.
5269
5270         pipe, pipe2: don't corrupt fd on error
5271         * lib/pipe.c (pipe): Leave fd unchanged on error.
5272         * lib/pipe2.c (pipe2): Likewise.
5273         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5274         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5275
5276 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5277
5278         mmap-anon: do not use regular expressions inadvertently
5279         * m4/mmap-anon.m4: Remove trailing period from strings sought
5280         in the output.
5281
5282 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5283
5284         nanosleep: fix integer overflow problem
5285         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5286         arithmetic wraps around on overflow.
5287
5288         nanosleep: simplify carrying
5289         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5290         first call to the underyling nanosleep, not for the last one.
5291         This doesn't fix any bugs, but it simplifies the computation of
5292         the remaining delay.  Found while auditing integer overflow issues.
5293
5294         dup2: remove test for existence of fcntl
5295         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5296         "#if HAVE_FCNTL", in the configure-time test program.
5297         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5298         and therefore speeds up "configure" a bit.  Found while
5299         adding the dup2 module to Emacs.
5300
5301 2011-06-24  Eric Blake  <eblake@redhat.com>
5302
5303         maint.mk: enhance useless header checks
5304         * top/maint.mk (_sc_header_without_use): Check both include
5305         styles.
5306         (sc_prohibit_assert_without_use)
5307         (sc_prohibit_close_stream_without_use)
5308         (sc_prohibit_getopt_without_use)
5309         (sc_prohibit_quotearg_without_use)
5310         (sc_prohibit_quote_without_use)
5311         (sc_prohibit_long_options_without_use)
5312         (sc_prohibit_inttostr_without_use)
5313         (sc_prohibit_ignore_value_without_use)
5314         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5315         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5316         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5317         (sc_prohibit_hash_pjw_without_use)
5318         (sc_prohibit_safe_read_without_use)
5319         (sc_prohibit_argmatch_without_use)
5320         (sc_prohibit_canonicalize_without_use)
5321         (sc_prohibit_root_dev_ino_without_use)
5322         (sc_prohibit_openat_without_use)
5323         (sc_prohibit_c_ctype_without_use)
5324         (sc_prohibit_signal_without_use)
5325         (sc_prohibit_stdio--_without_use)
5326         (sc_prohibit_stdio-safer_without_use)
5327         (sc_prohibit_strings_without_use)
5328         (sc_prohibit_intprops_without_use)
5329         (sc_prohibit_stddef_without_use)
5330         (sc_prohibit_xfreopen_without_use): Update clients.
5331
5332 2011-06-24  Jim Meyering  <meyering@redhat.com>
5333
5334         syntax-check: keep one maint.mk rule in sync with its header
5335         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5336         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5337         I prefer to avoid temporary files here, so use <(...), but that
5338         is not supported by /bin/sh, so...
5339         (SHELL): Define to /bin/bash.
5340
5341 2011-06-24  Eric Blake  <eblake@redhat.com>
5342
5343         maint.mk: update sc_prohibit_intprops_without_use
5344         * top/maint.mk (_intprops_names): Match recent changes.
5345
5346 2011-06-24  Bruno Haible  <bruno@clisp.org>
5347
5348         strerror-override: No-op tweak.
5349         * lib/strerror-override.h (strerror_override): Reorder conditions,
5350         for consistency with lib/strerror-override.c.
5351
5352 2011-06-23  Eric Blake  <eblake@redhat.com>
5353
5354         maint.mk: test further PATH_MAX issues
5355         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5356         (sc_prohibit_path_max_allocation): ...and also test alloca.
5357         Suggested by Jim Meyering.
5358
5359 2011-06-22  Eric Blake  <eblake@redhat.com>
5360
5361         maint.mk: add syntax-check to avoid char[PATH_MAX]
5362         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5363
5364         stat: be robust to PATH_MAX definition
5365         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5366         * modules/stat (Depends-on): Add verify.
5367
5368         link: work around IRIX bug
5369         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5370         * lib/link.c (rpl_link): Work around it.
5371         * tests/test-link.h (test_link): Enhance test.
5372         * doc/posix-functions/link.texi (link): Document the bug.
5373
5374         getopt: silence clang warning
5375         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5376         dereference.
5377         Reported by Gustavo Martin Domato.
5378
5379 2011-06-22  Jim Meyering  <meyering@redhat.com>
5380
5381         bootstrap: do not insert a blank line into each .gitignore file
5382         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5383
5384 2011-06-21  Eric Blake  <eblake@redhat.com>
5385
5386         perror: test for output mismatch
5387         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5388         perror on IRIX.
5389
5390         strerror_r: fix OpenBSD behavior on out-of-range
5391         * lib/strerror_r.c (strerror_r): Always use maximal string.
5392         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5393
5394         strerror_r: fix OpenBSD behavior on 0
5395         * lib/strerror-override.c (strerror_override): Also override 0
5396         when needed.
5397         * lib/strerror-override.h (strerror_override): Likewise.
5398         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5399         earlier.
5400         * lib/strerror_r.c (strerror_r): Likewise.
5401         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5402         behavior...
5403         (gl_FUNC_STRERROR_0): ...into new macro.
5404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5405         is overridden.
5406         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5407         * modules/strerror-override (Files): Add strerror.m4.
5408         (configure.ac): Also provide override for 0 when needed.
5409         * doc/posix-functions/strerror.texi (strerror): Document this.
5410         * doc/posix-functions/perror.texi (perror): Likewise.
5411
5412         perror: adjust array size
5413         * modules/perror (Depends-on): Add strerror-override.
5414         * lib/perror.c (perror): Use it to avoid magic number.
5415
5416         strerror-override: reduce size
5417         * lib/strerror-override.c (strerror_override): Use fewer lines.
5418
5419 2011-06-20  Bruno Haible  <bruno@clisp.org>
5420
5421         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5422         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5423
5424 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5425
5426         alloca: port to compilers that can optimize like GCC 4.6.0
5427         * lib/alloca.c (find_stack_direction): New signature, taken from
5428         Autoconf git.  This works with GCC 4.6.0.  This code should never
5429         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5430         be used with other compilers that optimize as well as GCC 4.6.0 does.
5431         (alloca): Adjust to new signature.
5432         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5433         New macro, which patches Autoconf in a similar way.
5434
5435         c-stack: stop worrying about stack direction
5436         * lib/c-stack.c (find_stack_direction): Remove.
5437         (segv_handler): Don't worry about stack direction growth, as it's
5438         too much of a pain to configure this correctly, given how compilers
5439         are optimizing-away our stack-growth detection code.  Instead, assume
5440         that any access to just before or just after the stack is OK.
5441         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5442         Don't require AC_FUNC_ALLOCA; no longer needed.
5443
5444 2011-06-20  Eric Blake  <eblake@redhat.com>
5445
5446         test-stat: don't allocate PATH_MAX bytes
5447         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5448         PATH_MAX-sized buffer.
5449         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5450         * modules/stat-tests (Depends-on): Likewise.
5451         * tests/test-fstatat.c (includes): Drop pathmax.h.
5452         * tests/test-stat.c (includes): Likewise.
5453         Reported by Bruno Haible.
5454
5455 2011-06-20  Bruno Haible  <bruno@clisp.org>
5456
5457         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5458         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5459         * lib/float.c: New file.
5460         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5461         REPLACE_FLOAT_LDBL.
5462         * modules/float (Files): Add lib/float.c.
5463         (configure.ac): Invoke AC_LIBOBJ.
5464         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5465
5466 2011-06-20  Bruno Haible  <bruno@clisp.org>
5467
5468         Tests for module 'float'.
5469         * modules/float-tests: New file.
5470         * tests/test-float.c: New file.
5471
5472 2011-06-19  Bruno Haible  <bruno@clisp.org>
5473
5474         isinf: Coding style.
5475         * lib/isinf.c: Use GNU coding style.
5476
5477 2011-06-19  Bruno Haible  <bruno@clisp.org>
5478
5479         linkat test: Avoid test failure on AIX 7.1.
5480         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5481         * tests/test-link.h (test_link): Likewise.
5482
5483 2011-06-19  Bruno Haible  <bruno@clisp.org>
5484
5485         pread test: Avoid test failure on OpenBSD 4.9.
5486         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5487
5488 2011-06-19  Bruno Haible  <bruno@clisp.org>
5489
5490         sprintf-posix: Fix test failure on AIX 7.1.
5491         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5492         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5493         on AIX.
5494         * doc/posix-functions/fprintf.texi: Likewise.
5495         * doc/posix-functions/printf.texi: Likewise.
5496         * doc/posix-functions/snprintf.texi: Likewise.
5497         * doc/posix-functions/sprintf.texi: Likewise.
5498         * doc/posix-functions/vdprintf.texi: Likewise.
5499         * doc/posix-functions/vfprintf.texi: Likewise.
5500         * doc/posix-functions/vprintf.texi: Likewise.
5501         * doc/posix-functions/vsnprintf.texi: Likewise.
5502         * doc/posix-functions/vsprintf.texi: Likewise.
5503
5504 2011-06-19  Bruno Haible  <bruno@clisp.org>
5505
5506         roundl-ieee: Fix test failure on AIX 7.1.
5507         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5508         * doc/posix-functions/roundl.texi: Mention problem with negative
5509         arguments.
5510
5511 2011-06-19  Bruno Haible  <bruno@clisp.org>
5512
5513         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5514         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5515         * doc/posix-functions/round.texi: Mention problem with negative
5516         arguments.
5517         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5518
5519 2011-06-19  Bruno Haible  <bruno@clisp.org>
5520
5521         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5523         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5524         * doc/posix-functions/roundf.texi: Mention problem with negative
5525         arguments.
5526         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5527
5528 2011-06-19  Bruno Haible  <bruno@clisp.org>
5529
5530         ceilf-ieee: Work around bug on MacOS X 10.5.
5531         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5532
5533         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5534         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5535         IEEE compliant, avoid compiler optimizations.
5536         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5537         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5538         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5539         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5540         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5541         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5542         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5543         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5544         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5546
5547 2011-06-19  Bruno Haible  <bruno@clisp.org>
5548
5549         ceilf-ieee: Work around bug on AIX 7.1.
5550         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5551         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5552
5553 2011-06-19  Bruno Haible  <bruno@clisp.org>
5554
5555         ceil-ieee: Work around bug on AIX 7.1.
5556         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5557         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5558
5559 2011-06-18  Bruno Haible  <bruno@clisp.org>
5560
5561         fsync test: Avoid test failure on MacOS X and AIX.
5562         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5563         EINVAL.
5564
5565 2011-06-18  Bruno Haible  <bruno@clisp.org>
5566
5567         openat, fdopendir tests: Fix link errors.
5568         * modules/openat-tests (Depends-on): Add progname.
5569         * modules/fdopendir-tests (Depends-on): Likewise.
5570         * tests/test-fchownat.c: Include progname.h.
5571         (main): Call set_program_name.
5572         * tests/test-fstatat.c: Include progname.h.
5573         (main): Call set_program_name.
5574         * tests/test-mkdirat.c: Include progname.h.
5575         (main): Call set_program_name.
5576         * tests/test-openat.c: Include progname.h.
5577         (main): Call set_program_name.
5578         * tests/test-unlinkat.c: Include progname.h.
5579         (main): Call set_program_name.
5580         * tests/test-fdopendir.c: Include progname.h.
5581         (main): Call set_program_name.
5582
5583 2011-06-18  Bruno Haible  <bruno@clisp.org>
5584
5585         Doc update.
5586         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5587         HP-UX.
5588         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5589
5590 2011-06-18  Bruno Haible  <bruno@clisp.org>
5591
5592         getcwd tests: Avoid compilation error on HP-UX 11.31.
5593         * modules/getcwd-tests (Depends-on): Add pathmax.
5594         * tests/test-getcwd.c: Include pathmax.h.
5595
5596 2011-06-18  Bruno Haible  <bruno@clisp.org>
5597
5598         isfinite, isinf: Fix link error on AIX 6 and 7.
5599         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5600         needed, also test the macro with a 'float' argument.
5601         * m4/isinf.m4 (gl_ISINF): Likewise.
5602
5603 2011-06-18  Bruno Haible  <bruno@clisp.org>
5604
5605         getloadavg: Don't clobber LIBS. Regression from previous commit.
5606         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5607         AC_CHECK_LIB from here...
5608         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5609         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5610         gl_func_getloadavg_done.
5611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5612
5613 2011-06-18  Bruno Haible  <bruno@clisp.org>
5614
5615         clean-temp: Improve documentation.
5616         * lib/clean-temp.h: Explain better how to use this module.
5617         Reported by John Darrington <john@darrington.wattle.id.au>.
5618
5619 2011-06-17  Bruno Haible  <bruno@clisp.org>
5620
5621         pread, pwrite: Avoid cc warning on AIX.
5622         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5623         (pwrite): Likewise.
5624
5625 2011-06-17  Bruno Haible  <bruno@clisp.org>
5626
5627         spawn-pipe tests: Fix link error.
5628         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5630
5631 2011-06-17  Bruno Haible  <bruno@clisp.org>
5632
5633         Tests: Remove unnecessary dependency.
5634         * modules/canonicalize-tests (Depends-on): Remove progname.
5635         * modules/chown-tests (Depends-on): Likewise.
5636         * modules/dirname-tests (Depends-on): Likewise.
5637         * modules/fdopendir-tests (Depends-on): Likewise.
5638         * modules/fdutimensat-tests (Depends-on): Likewise.
5639         * modules/hash-tests (Depends-on): Likewise.
5640         * modules/lchown-tests (Depends-on): Likewise.
5641         * modules/linkat-tests (Depends-on): Likewise.
5642         * modules/renameat-tests (Depends-on): Likewise.
5643         * modules/spawn-pipe-tests (Depends-on): Likewise.
5644         * modules/utimensat-tests (Depends-on): Likewise.
5645
5646 2011-06-17  Bruno Haible  <bruno@clisp.org>
5647
5648         spawn-pipe tests: Fix link error.
5649         * tests/test-spawn-pipe-child.c: Undefine fflush.
5650
5651 2011-06-17  Bruno Haible  <bruno@clisp.org>
5652
5653         Fix tests link errors.
5654         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5655         * modules/chown-tests (Makefile.am): Don't link test-chown with
5656         LIBINTL.
5657         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5658         LIBINTL.
5659         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5660         LIBINTL.
5661         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5662         LIBINTL.
5663
5664 2011-06-16  Bruno Haible  <bruno@clisp.org>
5665
5666         crypto/gc-sha1: Fix recent regression.
5667         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5668         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5669
5670         crypto/gc-md5: Fix recent regression.
5671         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5672
5673         crypto/gc-md4: Fix recent regression.
5674         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5675         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5676
5677         crypto/gc-arctwo: Fix recent regression.
5678         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5679         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5680
5681         crypto/gc-rijndael: Fix recent regression.
5682         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5683         (configure.ac): Invoke AC_LIBOBJ here.
5684         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5686
5687         crypto/gc-hmac-sha1: Fix recent regression.
5688         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5689         (configure.ac): Invoke AC_LIBOBJ here.
5690         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5692
5693         crypto/gc-hmac-md5: Fix recent regression.
5694         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5695         (configure.ac): Invoke AC_LIBOBJ here.
5696         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5698
5699         crypto/gc-des: Fix recent regression.
5700         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5701         (configure.ac): Invoke AC_LIBOBJ here.
5702         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5704
5705         crypto/gc-arcfour: Fix recent regression.
5706         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5707         (configure.ac): Invoke AC_LIBOBJ here.
5708         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5710
5711 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5712
5713         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5714         After the 2011-05-21 change, this macro requires
5715         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5716         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5717
5718 2011-06-16  Bruno Haible  <bruno@clisp.org>
5719
5720         fprintftime: Move AC_LIBOBJ invocations to module description.
5721         * m4/fprintftime.m4: Remove file.
5722         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5723         (configure.ac): Remove gl_FPRINTFTIME call.
5724         (Makefile.am): Augment lib_SOURCES.
5725         Reported by Jim Meyering.
5726
5727 2011-06-16  Bruno Haible  <bruno@clisp.org>
5728
5729         tmpfile-safer: Finish 2011-05-23 commit.
5730         * m4/stdio-safer.m4: Really remove file.
5731         Reported by Jim Meyering.
5732
5733 2011-06-16  Bruno Haible  <bruno@clisp.org>
5734
5735         syntax-check: Fix typo.
5736         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5737         printf-posix.m4.
5738         Reported by Jim Meyering.
5739
5740 2011-06-13  Jim Meyering  <meyering@redhat.com>
5741
5742         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5743         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5744
5745 2011-05-23  Bruno Haible  <bruno@clisp.org>
5746
5747         yesno: Move AC_LIBOBJ invocations to module description.
5748         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5749         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5750
5751 2011-05-23  Bruno Haible  <bruno@clisp.org>
5752
5753         xstrtol: Move AC_LIBOBJ invocations to module description.
5754         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5755         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5756
5757 2011-05-23  Bruno Haible  <bruno@clisp.org>
5758
5759         xstrtold: Move AC_LIBOBJ invocations to module description.
5760         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5761         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5762
5763 2011-05-23  Bruno Haible  <bruno@clisp.org>
5764
5765         xstrtod: Move AC_LIBOBJ invocations to module description.
5766         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5767         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5768
5769 2011-05-23  Bruno Haible  <bruno@clisp.org>
5770
5771         xnanosleep: Move AC_LIBOBJ invocations to module description.
5772         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5773         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5774
5775 2011-05-23  Bruno Haible  <bruno@clisp.org>
5776
5777         xgetcwd: Move AC_LIBOBJ invocations to module description.
5778         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5779         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5780
5781 2011-05-23  Bruno Haible  <bruno@clisp.org>
5782
5783         xalloc: Move AC_LIBOBJ invocations to module description.
5784         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5785         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5786
5787 2011-05-23  Bruno Haible  <bruno@clisp.org>
5788
5789         write-any-file: Move AC_LIBOBJ invocations to module description.
5790         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5791         invocation.
5792         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5793
5794 2011-05-23  Bruno Haible  <bruno@clisp.org>
5795
5796         utimens: Move AC_LIBOBJ invocations to module description.
5797         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5798         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5799
5800 2011-05-23  Bruno Haible  <bruno@clisp.org>
5801
5802         utimecmp: Move AC_LIBOBJ invocations to module description.
5803         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5804         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5805
5806 2011-05-23  Bruno Haible  <bruno@clisp.org>
5807
5808         userspec: Move AC_LIBOBJ invocations to module description.
5809         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5810         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5811
5812 2011-05-23  Bruno Haible  <bruno@clisp.org>
5813
5814         unlinkdir: Move AC_LIBOBJ invocations to module description.
5815         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5816         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5817
5818 2011-05-23  Bruno Haible  <bruno@clisp.org>
5819
5820         unistd-safer: Move AC_LIBOBJ invocations to module description.
5821         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5822         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5823
5824 2011-05-23  Bruno Haible  <bruno@clisp.org>
5825
5826         tempname: Move AC_LIBOBJ invocations to module description.
5827         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5828         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5829
5830 2011-05-23  Bruno Haible  <bruno@clisp.org>
5831
5832         strftime: Move AC_LIBOBJ invocations to module description.
5833         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5834         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5835
5836 2011-05-23  Bruno Haible  <bruno@clisp.org>
5837
5838         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5839         * m4/stdlib-safer.m4: Remove file.
5840         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5841         (configure.ac): Remove gl_STDLIB_SAFER call.
5842         (Makefile.am): Augment lib_SOURCES.
5843
5844 2011-05-23  Bruno Haible  <bruno@clisp.org>
5845
5846         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5847         * m4/stdio-safer.m4: Remove file.
5848         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5849         (configure.ac): Remove gl_TMPFILE_SAFER call.
5850         (Makefile.am): Augment lib_SOURCES.
5851
5852 2011-05-23  Bruno Haible  <bruno@clisp.org>
5853
5854         popen-safer: Move AC_LIBOBJ invocations to module description.
5855         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5856         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5857         (configure.ac): Remove gl_POPEN_SAFER call.
5858         (Makefile.am): Augment lib_SOURCES.
5859
5860 2011-05-23  Bruno Haible  <bruno@clisp.org>
5861
5862         freopen-safer: Move AC_LIBOBJ invocations to module description.
5863         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5864         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5865         (configure.ac): Remove gl_FREOPEN_SAFER call.
5866         (Makefile.am): Augment lib_SOURCES.
5867
5868 2011-05-23  Bruno Haible  <bruno@clisp.org>
5869
5870         fopen-safer: Move AC_LIBOBJ invocations to module description.
5871         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5872         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5873         (configure.ac): Remove gl_FOPEN_SAFER call.
5874         (Makefile.am): Augment lib_SOURCES.
5875
5876 2011-05-23  Bruno Haible  <bruno@clisp.org>
5877
5878         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5879         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5880         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5881
5882 2011-05-23  Bruno Haible  <bruno@clisp.org>
5883
5884         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5885         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5886         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5887
5888 2011-05-23  Bruno Haible  <bruno@clisp.org>
5889
5890         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5891         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5892         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5893
5894 2011-05-23  Bruno Haible  <bruno@clisp.org>
5895
5896         settime: Move AC_LIBOBJ invocations to module description.
5897         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5898         * modules/settime (Makefile.am): Augment lib_SOURCES.
5899
5900 2011-05-23  Bruno Haible  <bruno@clisp.org>
5901
5902         savedir: Move AC_LIBOBJ invocations to module description.
5903         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5904         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5905
5906 2011-05-23  Bruno Haible  <bruno@clisp.org>
5907
5908         save-cwd: Move AC_LIBOBJ invocations to module description.
5909         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5910         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5911
5912 2011-05-23  Bruno Haible  <bruno@clisp.org>
5913
5914         same: Move AC_LIBOBJ invocations to module description.
5915         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5916         * modules/same (Makefile.am): Augment lib_SOURCES.
5917
5918 2011-05-23  Bruno Haible  <bruno@clisp.org>
5919
5920         safe-write: Move AC_LIBOBJ invocations to module description.
5921         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5922         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5923         instead of gl_SAFE_WRITE.
5924         (Makefile.am): Augment lib_SOURCES.
5925
5926 2011-05-23  Bruno Haible  <bruno@clisp.org>
5927
5928         safe-read: Move AC_LIBOBJ invocations to module description.
5929         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5930         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5931         of gl_SAFE_READ.
5932         (Makefile.am): Augment lib_SOURCES.
5933
5934 2011-05-23  Bruno Haible  <bruno@clisp.org>
5935
5936         safe-alloc: Move AC_LIBOBJ invocations to module description.
5937         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5938         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5939
5940 2011-05-23  Bruno Haible  <bruno@clisp.org>
5941
5942         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5943         * m4/rijndael.m4: Remove file.
5944         * modules/crypto/rijndael (Files): Remove it.
5945         (configure.ac): Remove gl_RIJNDAEL call.
5946         (Makefile.am): Augment lib_SOURCES.
5947
5948 2011-05-23  Bruno Haible  <bruno@clisp.org>
5949
5950         readtokens: Move AC_LIBOBJ invocations to module description.
5951         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5952         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5953
5954 2011-05-23  Bruno Haible  <bruno@clisp.org>
5955
5956         read-file: Move AC_LIBOBJ invocations to module description.
5957         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5958         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5959         of gl_FUNC_READ_FILE.
5960         (Makefile.am): Augment lib_SOURCES.
5961
5962 2011-05-23  Bruno Haible  <bruno@clisp.org>
5963
5964         quotearg: Move AC_LIBOBJ invocations to module description.
5965         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5966         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5967
5968 2011-05-23  Bruno Haible  <bruno@clisp.org>
5969
5970         quote: Move AC_LIBOBJ invocations to module description.
5971         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5972         * modules/quote (Makefile.am): Augment lib_SOURCES.
5973
5974 2011-05-23  Bruno Haible  <bruno@clisp.org>
5975
5976         posixver: Move AC_LIBOBJ invocations to module description.
5977         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5978         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5979
5980 2011-05-23  Bruno Haible  <bruno@clisp.org>
5981
5982         posixtm: Move AC_LIBOBJ invocations to module description.
5983         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5984         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5985
5986 2011-05-23  Bruno Haible  <bruno@clisp.org>
5987
5988         physmem: Move AC_LIBOBJ invocations to module description.
5989         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5990         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5991
5992 2011-05-23  Bruno Haible  <bruno@clisp.org>
5993
5994         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5995         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5996         invocation.
5997         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5998
5999 2011-05-23  Bruno Haible  <bruno@clisp.org>
6000
6001         mpsort: Move AC_LIBOBJ invocations to module description.
6002         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6003         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6004
6005 2011-05-23  Bruno Haible  <bruno@clisp.org>
6006
6007         modechange: Move AC_LIBOBJ invocations to module description.
6008         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6009         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6010
6011 2011-05-23  Bruno Haible  <bruno@clisp.org>
6012
6013         mkdir-p: Move AC_LIBOBJ invocations to module description.
6014         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6015         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6016
6017 2011-05-23  Bruno Haible  <bruno@clisp.org>
6018
6019         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6020         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6021         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6022
6023 2011-05-23  Bruno Haible  <bruno@clisp.org>
6024
6025         mgetgroups: Move AC_LIBOBJ invocations to module description.
6026         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6027         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6028
6029 2011-05-23  Bruno Haible  <bruno@clisp.org>
6030
6031         memxor: Move AC_LIBOBJ invocations to module description.
6032         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6033         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6034
6035 2011-05-23  Bruno Haible  <bruno@clisp.org>
6036
6037         memcoll: Move AC_LIBOBJ invocations to module description.
6038         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6039         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6040
6041 2011-05-23  Bruno Haible  <bruno@clisp.org>
6042
6043         memcasecmp: Move AC_LIBOBJ invocations to module description.
6044         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6045         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6046
6047 2011-05-23  Bruno Haible  <bruno@clisp.org>
6048
6049         crypto/md5: Move AC_LIBOBJ invocations to module description.
6050         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6051         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6052
6053 2011-05-23  Bruno Haible  <bruno@clisp.org>
6054
6055         crypto/md4: Move AC_LIBOBJ invocations to module description.
6056         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6057         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6058
6059 2011-05-23  Bruno Haible  <bruno@clisp.org>
6060
6061         crypto/md2: Move AC_LIBOBJ invocations to module description.
6062         * m4/md2.m4: Remove file.
6063         * modules/crypto/md2 (Files): Remove it.
6064         (configure.ac): Remove gl_MD2 call.
6065         (Makefile.am): Augment lib_SOURCES.
6066
6067 2011-05-23  Bruno Haible  <bruno@clisp.org>
6068
6069         long-options: Move AC_LIBOBJ invocations to module description.
6070         * m4/long-options.m4: Remove file.
6071         * modules/long-options (Files): Remove it.
6072         (configure.ac): Remove gl_LONG_OPTIONS call.
6073         (Makefile.am): Augment lib_SOURCES.
6074
6075 2011-05-23  Bruno Haible  <bruno@clisp.org>
6076
6077         i-ring: Move AC_LIBOBJ invocations to module description.
6078         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6079         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6080
6081 2011-05-23  Bruno Haible  <bruno@clisp.org>
6082
6083         idcache: Move AC_LIBOBJ invocations to module description.
6084         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6085         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6086
6087 2011-05-23  Bruno Haible  <bruno@clisp.org>
6088
6089         human: Move AC_LIBOBJ invocations to module description.
6090         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6091         * modules/human (Makefile.am): Augment lib_SOURCES.
6092
6093 2011-05-23  Bruno Haible  <bruno@clisp.org>
6094
6095         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6096         * m4/hmac-sha1.m4: Remove file.
6097         * modules/crypto/hmac-sha1 (Files): Remove it.
6098         (configure.ac): Remove gl_HMAC_SHA1 call.
6099         (Makefile.am): Augment lib_SOURCES.
6100
6101 2011-05-23  Bruno Haible  <bruno@clisp.org>
6102
6103         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6104         * m4/hmac-md5.m4: Remove file.
6105         * modules/crypto/hmac-md5 (Files): Remove it.
6106         (configure.ac): Remove gl_HMAC_MD5 call.
6107         (Makefile.am): Augment lib_SOURCES.
6108
6109 2011-05-23  Bruno Haible  <bruno@clisp.org>
6110
6111         hash: Move AC_LIBOBJ invocations to module description.
6112         * m4/hash.m4: Remove file.
6113         * modules/hash (Files): Remove it.
6114         (configure.ac): Remove gl_HASH call.
6115         (Makefile.am): Augment lib_SOURCES.
6116
6117 2011-05-23  Bruno Haible  <bruno@clisp.org>
6118
6119         hard-locale: Move AC_LIBOBJ invocations to module description.
6120         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6121         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6122
6123 2011-05-23  Bruno Haible  <bruno@clisp.org>
6124
6125         getugroups: Move AC_LIBOBJ invocations to module description.
6126         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6127         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6128
6129 2011-05-23  Bruno Haible  <bruno@clisp.org>
6130
6131         gettime: Move AC_LIBOBJ invocations to module description.
6132         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6133         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6134
6135 2011-05-23  Bruno Haible  <bruno@clisp.org>
6136
6137         getndelim2: Move AC_LIBOBJ invocations to module description.
6138         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6139         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6140
6141 2011-05-23  Bruno Haible  <bruno@clisp.org>
6142
6143         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6144         * m4/gc-pbkdf2-sha1.m4: Remove file.
6145         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6146         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6147         (Makefile.am): Augment lib_SOURCES.
6148
6149 2011-05-23  Bruno Haible  <bruno@clisp.org>
6150
6151         fts: Move AC_LIBOBJ invocations to module description.
6152         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6153         * modules/fts (configure.ac): ... to here.
6154
6155 2011-05-23  Bruno Haible  <bruno@clisp.org>
6156
6157         file-type: Move AC_LIBOBJ invocations to module description.
6158         * m4/file-type.m4: Remove file.
6159         * modules/file-type (Files): Remove it.
6160         (configure.ac): Remove gl_FILE_TYPE call.
6161         (Makefile.am): Augment lib_SOURCES.
6162
6163 2011-05-23  Bruno Haible  <bruno@clisp.org>
6164
6165         filenamecat*: Respect rules for use of AC_LIBOBJ.
6166         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6167         Remove AC_LIBOBJ invocation.
6168         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6169         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6170
6171 2011-05-23  Bruno Haible  <bruno@clisp.org>
6172
6173         filemode: Move AC_LIBOBJ invocations to module description.
6174         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6175         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6176
6177 2011-05-23  Bruno Haible  <bruno@clisp.org>
6178
6179         openat-safer: Move AC_LIBOBJ invocations to module description.
6180         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6181         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6182
6183 2011-05-23  Bruno Haible  <bruno@clisp.org>
6184
6185         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6186         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6187         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6188
6189 2011-05-23  Bruno Haible  <bruno@clisp.org>
6190
6191         exclude: Move AC_LIBOBJ invocations to module description.
6192         * m4/exclude.m4: Remove file.
6193         * modules/exclude (Files): Remove it.
6194         (configure.ac): Remove gl_EXCLUDE call.
6195         (Makefile.am): Augment lib_SOURCES.
6196
6197 2011-05-23  Bruno Haible  <bruno@clisp.org>
6198
6199         dirname*: Respect rules for use of AC_LIBOBJ.
6200         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6201         invocations.
6202         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6203         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6204
6205 2011-05-23  Bruno Haible  <bruno@clisp.org>
6206
6207         dirent-safer: Move AC_LIBOBJ invocations to module description.
6208         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6209         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6210
6211 2011-05-23  Bruno Haible  <bruno@clisp.org>
6212
6213         crypto/des: Move AC_LIBOBJ invocations to module description.
6214         * m4/des.m4: Remove file.
6215         * modules/crypto/des (Files): Remove it.
6216         (configure.ac): Remove gl_DES call.
6217         (Makefile.am): Augment lib_SOURCES.
6218
6219 2011-05-23  Bruno Haible  <bruno@clisp.org>
6220
6221         cycle-check: Move AC_LIBOBJ invocations to module description.
6222         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6223         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6224
6225 2011-05-23  Bruno Haible  <bruno@clisp.org>
6226
6227         c-strtold: Move AC_LIBOBJ invocations to module description.
6228         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6229         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6230
6231 2011-05-23  Bruno Haible  <bruno@clisp.org>
6232
6233         c-strtod: Move AC_LIBOBJ invocations to module description.
6234         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6235         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6236
6237 2011-05-23  Bruno Haible  <bruno@clisp.org>
6238
6239         crc: Move AC_LIBOBJ invocations to module description.
6240         * m4/crc.m4: Remove file.
6241         * modules/crc (Files): Remove it.
6242         (configure.ac): Remove gl_CRC call.
6243         (Makefile.am): Augment lib_SOURCES.
6244
6245 2011-05-23  Bruno Haible  <bruno@clisp.org>
6246
6247         close-stream: Move AC_LIBOBJ invocations to module description.
6248         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6249         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6250
6251 2011-05-23  Bruno Haible  <bruno@clisp.org>
6252
6253         closeout: Move AC_LIBOBJ invocations to module description.
6254         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6255         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6256
6257 2011-05-23  Bruno Haible  <bruno@clisp.org>
6258
6259         closein: Move AC_LIBOBJ invocations to module description.
6260         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6261         * modules/closein (Makefile.am): Augment lib_SOURCES.
6262
6263 2011-05-23  Bruno Haible  <bruno@clisp.org>
6264
6265         cloexec: Move AC_LIBOBJ invocations to module description.
6266         * m4/cloexec.m4: Remove file.
6267         * modules/cloexec (Files): Remove it.
6268         (configure.ac): Remove gl_CLOEXEC call.
6269         (Makefile.am): Augment lib_SOURCES.
6270
6271 2011-05-23  Bruno Haible  <bruno@clisp.org>
6272
6273         check-version: Move AC_LIBOBJ invocations to module description.
6274         * m4/check-version.m4: Remove file.
6275         * modules/check-version (Files): Remove it.
6276         (configure.ac): Remove gl_CHECK_VERSION call.
6277         (Makefile.am): Augment lib_SOURCES.
6278
6279 2011-05-23  Bruno Haible  <bruno@clisp.org>
6280
6281         chdir-safer: Move AC_LIBOBJ invocations to module description.
6282         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6283         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6284
6285 2011-05-23  Bruno Haible  <bruno@clisp.org>
6286
6287         canonicalize: Move AC_LIBOBJ invocations to module description.
6288         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6289         AC_LIBOBJ invocation.
6290         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6291
6292 2011-05-23  Bruno Haible  <bruno@clisp.org>
6293
6294         canon-host: Move AC_LIBOBJ invocations to module description.
6295         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6296         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6297         instead of gl_CANON_HOST.
6298         (Makefile.am): Augment lib_SOURCES.
6299
6300 2011-05-23  Bruno Haible  <bruno@clisp.org>
6301
6302         backupfile: Move AC_LIBOBJ invocations to module description.
6303         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6304         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6305
6306 2011-05-23  Bruno Haible  <bruno@clisp.org>
6307
6308         argmatch: Move AC_LIBOBJ invocations to module description.
6309         * m4/argmatch.m4: Remove file.
6310         * modules/argmatch (Files): Remove it.
6311         (configure.ac): Remove gl_ARGMATCH call.
6312         (Makefile.am): Augment lib_SOURCES.
6313
6314 2011-05-23  Bruno Haible  <bruno@clisp.org>
6315
6316         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6317         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6318         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6319
6320 2011-05-23  Bruno Haible  <bruno@clisp.org>
6321
6322         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6323         * m4/arcfour.m4: Remove file.
6324         * modules/crypto/arcfour (Files): Remove it.
6325         (configure.ac): Remove gl_ARCFOUR call.
6326         (Makefile.am): Augment lib_SOURCES.
6327
6328 2011-05-22  Bruno Haible  <bruno@clisp.org>
6329
6330         write: Move AC_LIBOBJ invocations to module description.
6331         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6332         * modules/write (configure.ac): ... to here.
6333
6334 2011-05-22  Bruno Haible  <bruno@clisp.org>
6335
6336         wmemset: Move AC_LIBOBJ invocations to module description.
6337         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6338         here...
6339         * modules/wmemset (configure.ac): ... to here.
6340
6341 2011-05-22  Bruno Haible  <bruno@clisp.org>
6342
6343         wmemmove: Move AC_LIBOBJ invocations to module description.
6344         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6345         here...
6346         * modules/wmemmove (configure.ac): ... to here.
6347
6348 2011-05-22  Bruno Haible  <bruno@clisp.org>
6349
6350         wmemcpy: Move AC_LIBOBJ invocations to module description.
6351         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6352         here...
6353         * modules/wmemcpy (configure.ac): ... to here.
6354
6355 2011-05-22  Bruno Haible  <bruno@clisp.org>
6356
6357         wmemcmp: Move AC_LIBOBJ invocations to module description.
6358         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6359         here...
6360         * modules/wmemcmp (configure.ac): ... to here.
6361
6362 2011-05-22  Bruno Haible  <bruno@clisp.org>
6363
6364         wmemchr: Move AC_LIBOBJ invocations to module description.
6365         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6366         here...
6367         * modules/wmemchr (configure.ac): ... to here.
6368
6369 2011-05-22  Bruno Haible  <bruno@clisp.org>
6370
6371         wcswidth: Move AC_LIBOBJ invocations to module description.
6372         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6373         here...
6374         * modules/wcswidth (configure.ac): ... to here.
6375
6376 2011-05-22  Bruno Haible  <bruno@clisp.org>
6377
6378         wcwidth: Respect rules for use of AC_LIBOBJ.
6379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6380         invocation from here...
6381         * modules/wcwidth (configure.ac): ... to here.
6382         (Depends-on): Update conditions.
6383
6384 2011-05-22  Bruno Haible  <bruno@clisp.org>
6385
6386         wctype: Move AC_LIBOBJ invocations to module description.
6387         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6388         invocation from here...
6389         * modules/wctype (configure.ac): ... to here.
6390         (Depends-on): Update conditions.
6391
6392 2011-05-22  Bruno Haible  <bruno@clisp.org>
6393
6394         wctrans: Move AC_LIBOBJ invocations to module description.
6395         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6396         invocation from here...
6397         * modules/wctrans (configure.ac): ... to here.
6398
6399 2011-05-22  Bruno Haible  <bruno@clisp.org>
6400
6401         wctomb: Move AC_LIBOBJ invocations to module description.
6402         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6403         invocations from here...
6404         * modules/wctomb (configure.ac): ... to here.
6405
6406 2011-05-22  Bruno Haible  <bruno@clisp.org>
6407
6408         wctob: Move AC_LIBOBJ invocations to module description.
6409         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6410         gl_PREREQ_WCTOB invocations from here...
6411         * modules/wctob (configure.ac): ... to here.
6412         (Depends-on): Update conditions.
6413
6414 2011-05-22  Bruno Haible  <bruno@clisp.org>
6415
6416         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6417         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6418         here...
6419         * modules/wcsxfrm (configure.ac): ... to here.
6420
6421 2011-05-22  Bruno Haible  <bruno@clisp.org>
6422
6423         wcstok: Move AC_LIBOBJ invocations to module description.
6424         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6425         * modules/wcstok (configure.ac): ... to here.
6426
6427 2011-05-22  Bruno Haible  <bruno@clisp.org>
6428
6429         wcsstr: Move AC_LIBOBJ invocations to module description.
6430         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6431         * modules/wcsstr (configure.ac): ... to here.
6432
6433 2011-05-22  Bruno Haible  <bruno@clisp.org>
6434
6435         wcsspn: Move AC_LIBOBJ invocations to module description.
6436         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6437         * modules/wcsspn (configure.ac): ... to here.
6438
6439 2011-05-22  Bruno Haible  <bruno@clisp.org>
6440
6441         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6442         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6443         gl_PREREQ_WCSRTOMBS invocations from here...
6444         * modules/wcsrtombs (configure.ac): ... to here.
6445
6446 2011-05-22  Bruno Haible  <bruno@clisp.org>
6447
6448         wcsrchr: Move AC_LIBOBJ invocations to module description.
6449         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6450         here...
6451         * modules/wcsrchr (configure.ac): ... to here.
6452
6453 2011-05-22  Bruno Haible  <bruno@clisp.org>
6454
6455         wcspbrk: Move AC_LIBOBJ invocations to module description.
6456         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6457         here...
6458         * modules/wcspbrk (configure.ac): ... to here.
6459
6460 2011-05-22  Bruno Haible  <bruno@clisp.org>
6461
6462         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6463         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6464         gl_PREREQ_WCSNRTOMBS invocations from here...
6465         * modules/wcsnrtombs (configure.ac): ... to here.
6466
6467 2011-05-22  Bruno Haible  <bruno@clisp.org>
6468
6469         wcsnlen: Move AC_LIBOBJ invocations to module description.
6470         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6471         here...
6472         * modules/wcsnlen (configure.ac): ... to here.
6473
6474 2011-05-22  Bruno Haible  <bruno@clisp.org>
6475
6476         wcsncpy: Move AC_LIBOBJ invocations to module description.
6477         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6478         here...
6479         * modules/wcsncpy (configure.ac): ... to here.
6480
6481 2011-05-22  Bruno Haible  <bruno@clisp.org>
6482
6483         wcsncmp: Move AC_LIBOBJ invocations to module description.
6484         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6485         here...
6486         * modules/wcsncmp (configure.ac): ... to here.
6487
6488 2011-05-22  Bruno Haible  <bruno@clisp.org>
6489
6490         wcsncat: Move AC_LIBOBJ invocations to module description.
6491         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6492         here...
6493         * modules/wcsncat (configure.ac): ... to here.
6494
6495 2011-05-22  Bruno Haible  <bruno@clisp.org>
6496
6497         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6498         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6499         from here...
6500         * modules/wcsncasecmp (configure.ac): ... to here.
6501
6502 2011-05-22  Bruno Haible  <bruno@clisp.org>
6503
6504         wcslen: Move AC_LIBOBJ invocations to module description.
6505         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6506         * modules/wcslen (configure.ac): ... to here.
6507
6508 2011-05-22  Bruno Haible  <bruno@clisp.org>
6509
6510         wcsdup: Move AC_LIBOBJ invocations to module description.
6511         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6512         * modules/wcsdup (configure.ac): ... to here.
6513
6514 2011-05-22  Bruno Haible  <bruno@clisp.org>
6515
6516         wcscspn: Move AC_LIBOBJ invocations to module description.
6517         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6518         here...
6519         * modules/wcscspn (configure.ac): ... to here.
6520
6521 2011-05-22  Bruno Haible  <bruno@clisp.org>
6522
6523         wcscpy: Move AC_LIBOBJ invocations to module description.
6524         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6525         * modules/wcscpy (configure.ac): ... to here.
6526
6527 2011-05-22  Bruno Haible  <bruno@clisp.org>
6528
6529         wcscoll: Move AC_LIBOBJ invocations to module description.
6530         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6531         here...
6532         * modules/wcscoll (configure.ac): ... to here.
6533
6534 2011-05-22  Bruno Haible  <bruno@clisp.org>
6535
6536         wcscmp: Move AC_LIBOBJ invocations to module description.
6537         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6538         * modules/wcscmp (configure.ac): ... to here.
6539
6540 2011-05-22  Bruno Haible  <bruno@clisp.org>
6541
6542         wcschr: Move AC_LIBOBJ invocations to module description.
6543         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6544         * modules/wcschr (configure.ac): ... to here.
6545
6546 2011-05-22  Bruno Haible  <bruno@clisp.org>
6547
6548         wcscat: Move AC_LIBOBJ invocations to module description.
6549         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6550         * modules/wcscat (configure.ac): ... to here.
6551
6552 2011-05-22  Bruno Haible  <bruno@clisp.org>
6553
6554         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6555         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6556         here...
6557         * modules/wcscasecmp (configure.ac): ... to here.
6558
6559 2011-05-22  Bruno Haible  <bruno@clisp.org>
6560
6561         wcrtomb: Move AC_LIBOBJ invocations to module description.
6562         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6563         invocations from here...
6564         * modules/wcrtomb (configure.ac): ... to here.
6565
6566 2011-05-22  Bruno Haible  <bruno@clisp.org>
6567
6568         wcpncpy: Move AC_LIBOBJ invocations to module description.
6569         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6570         here...
6571         * modules/wcpncpy (configure.ac): ... to here.
6572
6573 2011-05-22  Bruno Haible  <bruno@clisp.org>
6574
6575         wcpcpy: Move AC_LIBOBJ invocations to module description.
6576         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6577         * modules/wcpcpy (configure.ac): ... to here.
6578
6579 2011-05-22  Bruno Haible  <bruno@clisp.org>
6580
6581         waitpid: Move AC_LIBOBJ invocations to module description.
6582         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6583         invocation from here...
6584         * modules/waitpid (configure.ac): ... to here.
6585
6586 2011-05-22  Bruno Haible  <bruno@clisp.org>
6587
6588         utimensat: Move AC_LIBOBJ invocations to module description.
6589         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6590         here...
6591         * modules/utimensat (configure.ac): ... to here.
6592
6593 2011-05-22  Bruno Haible  <bruno@clisp.org>
6594
6595         usleep: Move AC_LIBOBJ invocations to module description.
6596         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6597         here...
6598         * modules/usleep (configure.ac): ... to here.
6599
6600 2011-05-22  Bruno Haible  <bruno@clisp.org>
6601
6602         unlockpt: Move AC_LIBOBJ invocations to module description.
6603         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6604         gl_PREREQ_UNLOCKPT invocations from here...
6605         * modules/unlockpt (configure.ac): ... to here.
6606
6607 2011-05-22  Bruno Haible  <bruno@clisp.org>
6608
6609         unlink: Respect rules for use of AC_LIBOBJ.
6610         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6611         * modules/unlink (configure.ac): ... to here.
6612
6613 2011-05-22  Bruno Haible  <bruno@clisp.org>
6614
6615         uname: Move AC_LIBOBJ invocations to module description.
6616         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6618         here...
6619         * modules/uname (configure.ac): ... to here.
6620
6621 2011-05-22  Bruno Haible  <bruno@clisp.org>
6622
6623         ttyname_r: Move AC_LIBOBJ invocations to module description.
6624         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6625         gl_PREREQ_TTYNAME_R invocations from here...
6626         * modules/ttyname_r (configure.ac): ... to here.
6627
6628 2011-05-22  Bruno Haible  <bruno@clisp.org>
6629
6630         tsearch: Move AC_LIBOBJ invocations to module description.
6631         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6632         invocations from here...
6633         * modules/tsearch (configure.ac): ... to here.
6634
6635 2011-05-22  Bruno Haible  <bruno@clisp.org>
6636
6637         towctrans: Move AC_LIBOBJ invocations to module description.
6638         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6639         AC_LIBOBJ invocation from here...
6640         * modules/towctrans (configure.ac): ... to here.
6641
6642 2011-05-22  Bruno Haible  <bruno@clisp.org>
6643
6644         tmpfile: Move AC_LIBOBJ invocations to module description.
6645         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6646         invocations from here...
6647         * modules/tmpfile (configure.ac): ... to here.
6648
6649 2011-05-22  Bruno Haible  <bruno@clisp.org>
6650
6651         times: Move AC_LIBOBJ invocations to module description.
6652         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6653         * modules/times (configure.ac): ... to here.
6654
6655 2011-05-22  Bruno Haible  <bruno@clisp.org>
6656
6657         time_r: Move AC_LIBOBJ invocations to module description.
6658         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6659         invocations from here...
6660         * modules/time_r (configure.ac): ... to here.
6661
6662 2011-05-22  Bruno Haible  <bruno@clisp.org>
6663
6664         timegm: Move AC_LIBOBJ invocations to module description.
6665         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6666         invocations from here...
6667         * modules/timegm (configure.ac): ... to here.
6668
6669 2011-05-22  Bruno Haible  <bruno@clisp.org>
6670
6671         tcgetsid: Move AC_LIBOBJ invocations to module description.
6672         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6673         and gl_PREREQ_TCGETSID invocations from here...
6674         * modules/tcgetsid (configure.ac): ... to here.
6675         (Depends-on): Update conditions.
6676
6677 2011-05-22  Bruno Haible  <bruno@clisp.org>
6678
6679         symlinkat: Move AC_LIBOBJ invocations to module description.
6680         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6681         here...
6682         * modules/symlinkat (configure.ac): ... to here.
6683
6684 2011-05-22  Bruno Haible  <bruno@clisp.org>
6685
6686         symlink: Move AC_LIBOBJ invocations to module description.
6687         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6688         here...
6689         * modules/symlink (configure.ac): ... to here.
6690
6691 2011-05-22  Bruno Haible  <bruno@clisp.org>
6692
6693         strverscmp: Move AC_LIBOBJ invocations to module description.
6694         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6696         from here...
6697         * modules/strverscmp (configure.ac): ... to here.
6698
6699 2011-05-22  Bruno Haible  <bruno@clisp.org>
6700
6701         strtok_r: Move AC_LIBOBJ invocations to module description.
6702         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6703         and gl_PREREQ_STRTOK_R invocations from here...
6704         * modules/strtok_r (configure.ac): ... to here.
6705         (Depends-on): Update conditions.
6706
6707 2011-05-22  Bruno Haible  <bruno@clisp.org>
6708
6709         strtoumax: Move AC_LIBOBJ invocations to module description.
6710         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6712         from here...
6713         * modules/strtoumax (configure.ac): ... to here.
6714
6715 2011-05-22  Bruno Haible  <bruno@clisp.org>
6716
6717         strtoimax: Move AC_LIBOBJ invocations to module description.
6718         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6720         from here...
6721         * modules/strtoimax (configure.ac): ... to here.
6722
6723 2011-05-22  Bruno Haible  <bruno@clisp.org>
6724
6725         strtoull: Move AC_LIBOBJ invocations to module description.
6726         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6728         from here...
6729         * modules/strtoull (configure.ac): ... to here.
6730
6731 2011-05-22  Bruno Haible  <bruno@clisp.org>
6732
6733         strtoll: Move AC_LIBOBJ invocations to module description.
6734         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6735         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6736         here...
6737         * modules/strtoll (configure.ac): ... to here.
6738
6739 2011-05-22  Bruno Haible  <bruno@clisp.org>
6740
6741         strtoul: Move AC_LIBOBJ invocations to module description.
6742         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6743         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6744         * modules/strtoul (configure.ac): ... to here.
6745
6746 2011-05-22  Bruno Haible  <bruno@clisp.org>
6747
6748         strtol: Move AC_LIBOBJ invocations to module description.
6749         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6750         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6751         * modules/strtol (configure.ac): ... to here.
6752
6753 2011-05-22  Bruno Haible  <bruno@clisp.org>
6754
6755         strtod: Move AC_LIBOBJ invocations to module description.
6756         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6757         invocations from here...
6758         * modules/strtod (configure.ac): ... to here.
6759
6760 2011-05-22  Bruno Haible  <bruno@clisp.org>
6761
6762         strstr*: Move AC_LIBOBJ invocations to module description.
6763         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6764         invocations from here...
6765         * modules/strstr-simple (configure.ac): ... to here.
6766         * modules/strstr (configure.ac): ... and here.
6767
6768 2011-05-22  Bruno Haible  <bruno@clisp.org>
6769
6770         strsignal: Move AC_LIBOBJ invocations to module description.
6771         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6772         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6773         * modules/strsignal (configure.ac): ... to here.
6774         (Depends-on): Update conditions.
6775
6776 2011-05-22  Bruno Haible  <bruno@clisp.org>
6777
6778         strsep: Move AC_LIBOBJ invocations to module description.
6779         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6781         here...
6782         * modules/strsep (configure.ac): ... to here.
6783
6784 2011-05-22  Bruno Haible  <bruno@clisp.org>
6785
6786         strptime: Move AC_LIBOBJ invocations to module description.
6787         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6788         gl_PREREQ_STRPTIME invocations from here...
6789         * modules/strptime (configure.ac): ... to here.
6790
6791 2011-05-22  Bruno Haible  <bruno@clisp.org>
6792
6793         strpbrk: Move AC_LIBOBJ invocations to module description.
6794         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6796         here...
6797         * modules/strpbrk (configure.ac): ... to here.
6798
6799 2011-05-22  Bruno Haible  <bruno@clisp.org>
6800
6801         strnlen: Move AC_LIBOBJ invocations to module description.
6802         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6803         invocations from here...
6804         * modules/strnlen (configure.ac): ... to here.
6805
6806 2011-05-22  Bruno Haible  <bruno@clisp.org>
6807
6808         strndup: Move AC_LIBOBJ invocations to module description.
6809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6810         invocations from here...
6811         * modules/strndup (configure.ac): ... to here.
6812         (Depends-on): Update conditions.
6813
6814 2011-05-22  Bruno Haible  <bruno@clisp.org>
6815
6816         strncat: Move AC_LIBOBJ invocations to module description.
6817         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6818         invocations from here...
6819         * modules/strncat (configure.ac): ... to here.
6820
6821 2011-05-22  Bruno Haible  <bruno@clisp.org>
6822
6823         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6824         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6825         invocations from here...
6826         * modules/strdup (configure.ac): ... to here.
6827         * modules/strdup-posix (configure.ac): ... and here.
6828
6829 2011-05-22  Bruno Haible  <bruno@clisp.org>
6830
6831         strcspn: Move AC_LIBOBJ invocations to module description.
6832         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6833         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6834         here...
6835         * modules/strcspn (configure.ac): ... to here.
6836
6837 2011-05-22  Bruno Haible  <bruno@clisp.org>
6838
6839         strchrnul: Move AC_LIBOBJ invocations to module description.
6840         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6841         gl_PREREQ_STRCHRNUL invocations from here...
6842         * modules/strchrnul (configure.ac): ... to here.
6843
6844 2011-05-22  Bruno Haible  <bruno@clisp.org>
6845
6846         strcasestr*: Move AC_LIBOBJ invocations to module description.
6847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6848         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6849         * modules/strcasestr-simple (configure.ac): ... to here.
6850         * modules/strcasestr (configure.ac): ... and here.
6851
6852 2011-05-22  Bruno Haible  <bruno@clisp.org>
6853
6854         strcase: Move AC_LIBOBJ invocations to module description.
6855         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6856         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6857         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6858         gl_PREREQ_STRNCASECMP invocations from here...
6859         * modules/strcase (configure.ac): ... to here.
6860
6861 2011-05-22  Bruno Haible  <bruno@clisp.org>
6862
6863         stpncpy: Move AC_LIBOBJ invocations to module description.
6864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6865         here...
6866         * modules/stpncpy (configure.ac): ... to here.
6867
6868 2011-05-22  Bruno Haible  <bruno@clisp.org>
6869
6870         stpcpy: Move AC_LIBOBJ invocations to module description.
6871         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6873         here...
6874         * modules/stpcpy (configure.ac): ... to here.
6875
6876 2011-05-21  Bruno Haible  <bruno@clisp.org>
6877
6878         stat: Move AC_LIBOBJ invocations to module description.
6879         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6880         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6881         here...
6882         * modules/stat (configure.ac): ... to here.
6883
6884 2011-05-21  Bruno Haible  <bruno@clisp.org>
6885
6886         sleep: Move AC_LIBOBJ invocations to module description.
6887         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6888         * modules/sleep (configure.ac): ... to here.
6889
6890 2011-05-21  Bruno Haible  <bruno@clisp.org>
6891
6892         signbit: Move AC_LIBOBJ invocations to module description.
6893         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6894         * modules/signbit (configure.ac): ... to here.
6895
6896 2011-05-21  Bruno Haible  <bruno@clisp.org>
6897
6898         sigprocmask: Move AC_LIBOBJ invocations to module description.
6899         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6900         gl_PREREQ_SIGPROMASK invocations from here...
6901         * modules/sigprocmask (configure.ac): ... to here.
6902
6903 2011-05-21  Bruno Haible  <bruno@clisp.org>
6904
6905         sigaction: Move AC_LIBOBJ invocations to module description.
6906         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6907         gl_PREREQ_SIGACTION invocations from here...
6908         * modules/sigaction (configure.ac): ... to here.
6909
6910 2011-05-21  Bruno Haible  <bruno@clisp.org>
6911
6912         sig2str: Move AC_LIBOBJ invocations to module description.
6913         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6915         here...
6916         * modules/sig2str (configure.ac): ... to here.
6917
6918 2011-05-21  Bruno Haible  <bruno@clisp.org>
6919
6920         setlocale: Move AC_LIBOBJ invocations to module description.
6921         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6922         gl_PREREQ_SETLOCALE invocations from here...
6923         * modules/setlocale (configure.ac): ... to here.
6924
6925 2011-05-21  Bruno Haible  <bruno@clisp.org>
6926
6927         unsetenv: Move AC_LIBOBJ invocations to module description.
6928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6929         and gl_PREREQ_UNSETENV invocations from here...
6930         * modules/unsetenv (configure.ac): ... to here.
6931         (Depends-on): Update.
6932
6933 2011-05-21  Bruno Haible  <bruno@clisp.org>
6934
6935         setenv: Move AC_LIBOBJ invocations to module description.
6936         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6937         here...
6938         * modules/setenv (configure.ac): ... to here.
6939
6940 2011-05-21  Bruno Haible  <bruno@clisp.org>
6941
6942         selinux-h: Move AC_LIBOBJ invocations to module description.
6943         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6944         AC_LIBOBJ invocation from here...
6945         * modules/selinux-h (configure.ac): ... to here.
6946
6947 2011-05-21  Bruno Haible  <bruno@clisp.org>
6948
6949         select: Respect rules for use of AC_LIBOBJ.
6950         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6951         here...
6952         * modules/select (configure.ac): ... to here.
6953
6954 2011-05-21  Bruno Haible  <bruno@clisp.org>
6955
6956         scandir: Move AC_LIBOBJ invocations to module description.
6957         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6958         invocations from here...
6959         * modules/scandir (configure.ac): ... to here.
6960
6961 2011-05-21  Bruno Haible  <bruno@clisp.org>
6962
6963         rpmatch: Move AC_LIBOBJ invocations to module description.
6964         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6965         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6966         here...
6967         * modules/rpmatch (configure.ac): ... to here.
6968
6969 2011-05-21  Bruno Haible  <bruno@clisp.org>
6970
6971         rmdir: Respect rules for use of AC_LIBOBJ.
6972         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6973         * modules/rmdir (configure.ac): ... to here.
6974
6975 2011-05-21  Bruno Haible  <bruno@clisp.org>
6976
6977         renameat: Move AC_LIBOBJ invocations to module description.
6978         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6979         here...
6980         * modules/renameat (configure.ac): ... to here.
6981
6982 2011-05-21  Bruno Haible  <bruno@clisp.org>
6983
6984         rename: Respect rules for use of AC_LIBOBJ.
6985         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6986         here...
6987         * modules/rename (configure.ac): ... to here.
6988
6989 2011-05-21  Bruno Haible  <bruno@clisp.org>
6990
6991         remove: Move AC_LIBOBJ invocations to module description.
6992         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6993         here...
6994         * modules/remove (configure.ac): ... to here.
6995
6996 2011-05-21  Bruno Haible  <bruno@clisp.org>
6997
6998         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6999         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7000         macro.
7001         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7002         * modules/relocatable-lib (configure.ac): ... to here.
7003         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7004         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7005
7006 2011-05-21  Bruno Haible  <bruno@clisp.org>
7007
7008         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7009         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7010         here...
7011         * modules/relocatable-prog (configure.ac): ... to here.
7012
7013 2011-05-21  Bruno Haible  <bruno@clisp.org>
7014
7015         regex: Move AC_LIBOBJ invocations to module description.
7016         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7017         invocations from here...
7018         * modules/regex (configure.ac): ... to here.
7019
7020 2011-05-21  Bruno Haible  <bruno@clisp.org>
7021
7022         realloc-*: Move AC_LIBOBJ invocations to module description.
7023         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7024         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7025         AC_LIBOBJ invocations from here...
7026         * modules/realloc-gnu (configure.ac): ... to here.
7027         * modules/realloc-posix (configure.ac): ... and here.
7028
7029 2011-05-21  Bruno Haible  <bruno@clisp.org>
7030
7031         readutmp: Move AC_LIBOBJ invocations to module description.
7032         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7033         * modules/readutmp (configure.ac): ... to here.
7034
7035 2011-05-21  Bruno Haible  <bruno@clisp.org>
7036
7037         readlinkat: Move AC_LIBOBJ invocations to module description.
7038         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7039         here...
7040         * modules/readlinkat (configure.ac): ... to here.
7041
7042 2011-05-21  Bruno Haible  <bruno@clisp.org>
7043
7044         readlink: Move AC_LIBOBJ invocations to module description.
7045         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7046         gl_PREREQ_READLINK invocations from here...
7047         * modules/readlink (configure.ac): ... to here.
7048
7049 2011-05-21  Bruno Haible  <bruno@clisp.org>
7050
7051         readline: Move AC_LIBOBJ invocations to module description.
7052         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7053         gl_PREREQ_READLINE invocations from here...
7054         * modules/readline (configure.ac): ... to here.
7055
7056 2011-05-21  Bruno Haible  <bruno@clisp.org>
7057
7058         read: Move AC_LIBOBJ invocations to module description.
7059         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7060         * modules/read (configure.ac): ... to here.
7061
7062 2011-05-21  Bruno Haible  <bruno@clisp.org>
7063
7064         rawmemchr: Move AC_LIBOBJ invocations to module description.
7065         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7067         from here...
7068         * modules/rawmemchr (configure.ac): ... to here.
7069
7070 2011-05-21  Bruno Haible  <bruno@clisp.org>
7071
7072         random_r: Move AC_LIBOBJ invocations to module description.
7073         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7074         gl_PREREQ_RANDOM_R invocations from here...
7075         * modules/random_r (configure.ac): ... to here.
7076
7077 2011-05-21  Bruno Haible  <bruno@clisp.org>
7078
7079         pwrite: Move AC_LIBOBJ invocations to module description.
7080         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7081         * modules/pwrite (configure.ac): ... to here.
7082
7083 2011-05-21  Bruno Haible  <bruno@clisp.org>
7084
7085         putenv: Move AC_LIBOBJ invocations to module description.
7086         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7087         * modules/putenv (configure.ac): ... to here.
7088
7089 2011-05-21  Bruno Haible  <bruno@clisp.org>
7090
7091         login_tty: Move AC_LIBOBJ invocations to module description.
7092         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7093         * modules/login_tty (configure.ac): ... to here.
7094
7095 2011-05-21  Bruno Haible  <bruno@clisp.org>
7096
7097         openpty: Move AC_LIBOBJ invocations to module description.
7098         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7099         * modules/openpty (configure.ac): ... to here.
7100
7101 2011-05-21  Bruno Haible  <bruno@clisp.org>
7102
7103         forkpty: Move AC_LIBOBJ invocations to module description.
7104         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7105         * modules/forkpty (configure.ac): ... to here.
7106
7107 2011-05-21  Bruno Haible  <bruno@clisp.org>
7108
7109         ptsname: Move AC_LIBOBJ invocations to module description.
7110         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7111         invocations from here...
7112         * modules/ptsname (configure.ac): ... to here.
7113
7114 2011-05-21  Bruno Haible  <bruno@clisp.org>
7115
7116         pread: Move AC_LIBOBJ invocations to module description.
7117         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7118         * modules/pread (configure.ac): ... to here.
7119
7120 2011-05-21  Bruno Haible  <bruno@clisp.org>
7121
7122         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7123         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7124         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7125         * modules/posix_spawn (configure.ac): ... to here.
7126         * modules/posix_spawnp (configure.ac): ... and here.
7127
7128 2011-05-21  Bruno Haible  <bruno@clisp.org>
7129
7130         popen: Move AC_LIBOBJ invocations to module description.
7131         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7132         invocations from here...
7133         * modules/popen (configure.ac): ... to here.
7134
7135 2011-05-21  Bruno Haible  <bruno@clisp.org>
7136
7137         poll: Move AC_LIBOBJ invocations to module description.
7138         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7139         invocations from here...
7140         * modules/poll (configure.ac): ... to here.
7141
7142 2011-05-21  Bruno Haible  <bruno@clisp.org>
7143
7144         pipe-posix: Move AC_LIBOBJ invocations to module description.
7145         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7146         * modules/pipe-posix (configure.ac): ... to here.
7147
7148 2011-05-21  Bruno Haible  <bruno@clisp.org>
7149
7150         openat: Respect rules for use of AC_LIBOBJ.
7151         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7152         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7153         * modules/openat (configure.ac): ... to here.
7154
7155 2011-05-21  Bruno Haible  <bruno@clisp.org>
7156
7157         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7158         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7159         invocation from here...
7160         * modules/obstack-printf (configure.ac): ... to here.
7161         * modules/obstack-printf-posix (configure.ac): ... and here.
7162
7163 2011-05-21  Bruno Haible  <bruno@clisp.org>
7164
7165         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7166         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7167         from here...
7168         * modules/nl_langinfo (configure.ac): ... to here.
7169
7170 2011-05-21  Bruno Haible  <bruno@clisp.org>
7171
7172         nanosleep: Move AC_LIBOBJ invocations to module description.
7173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7174         gl_PREREQ_NANOSLEEP invocations from here...
7175         * modules/nanosleep (configure.ac): ... to here.
7176
7177 2011-05-21  Bruno Haible  <bruno@clisp.org>
7178
7179         mountlist: Move AC_LIBOBJ invocations to module description.
7180         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7181         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7182         * modules/mountlist (configure.ac): ... to here.
7183
7184 2011-05-21  Bruno Haible  <bruno@clisp.org>
7185
7186         mktime: Respect rules for use of AC_LIBOBJ.
7187         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7188         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7189         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7190         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7191         * modules/mktime (configure.ac): ... to here.
7192         * modules/mktime-internal (configure.ac): ... and here.
7193         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7194
7195 2011-05-21  Bruno Haible  <bruno@clisp.org>
7196
7197         mkstemps: Move AC_LIBOBJ invocations to module description.
7198         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7199         here...
7200         * modules/mkstemps (configure.ac): ... to here.
7201
7202 2011-05-21  Bruno Haible  <bruno@clisp.org>
7203
7204         mkstemp: Move AC_LIBOBJ invocations to module description.
7205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7206         gl_PREREQ_MKSTEMP invocations from here...
7207         * modules/mkstemp (configure.ac): ... to here.
7208
7209 2011-05-21  Bruno Haible  <bruno@clisp.org>
7210
7211         mkostemps: Move AC_LIBOBJ invocations to module description.
7212         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7213         here...
7214         * modules/mkostemps (configure.ac): ... to here.
7215
7216 2011-05-21  Bruno Haible  <bruno@clisp.org>
7217
7218         mkostemp: Move AC_LIBOBJ invocations to module description.
7219         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7220         gl_PREREQ_MKOSTEMP invocations from here...
7221         * modules/mkostemp (configure.ac): ... to here.
7222
7223 2011-05-21  Bruno Haible  <bruno@clisp.org>
7224
7225         mknod: Move AC_LIBOBJ invocations to module description.
7226         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7227         * modules/mknod (configure.ac): ... to here.
7228
7229 2011-05-21  Bruno Haible  <bruno@clisp.org>
7230
7231         mkfifoat: Move AC_LIBOBJ invocations to module description.
7232         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7233         here...
7234         * modules/mkfifoat (configure.ac): ... to here.
7235
7236 2011-05-21  Bruno Haible  <bruno@clisp.org>
7237
7238         mkfifo: Respect rules for use of AC_LIBOBJ.
7239         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7240         here...
7241         * modules/mkfifo (configure.ac): ... to here.
7242
7243 2011-05-21  Bruno Haible  <bruno@clisp.org>
7244
7245         mkdtemp: Move AC_LIBOBJ invocations to module description.
7246         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7247         invocations from here...
7248         * modules/mkdtemp (configure.ac): ... to here.
7249
7250 2011-05-21  Bruno Haible  <bruno@clisp.org>
7251
7252         mkdir: Move AC_LIBOBJ invocations to module description.
7253         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7254         * modules/mkdir (configure.ac): ... to here.
7255
7256 2011-05-21  Bruno Haible  <bruno@clisp.org>
7257
7258         memset: Move AC_LIBOBJ invocations to module description.
7259         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7261         here...
7262         * modules/memset (configure.ac): ... to here.
7263
7264 2011-05-21  Bruno Haible  <bruno@clisp.org>
7265
7266         memrchr: Move AC_LIBOBJ invocations to module description.
7267         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7269         here...
7270         * modules/memrchr (configure.ac): ... to here.
7271
7272 2011-05-21  Bruno Haible  <bruno@clisp.org>
7273
7274         mempcpy: Move AC_LIBOBJ invocations to module description.
7275         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7277         here...
7278         * modules/mempcpy (configure.ac): ... to here.
7279
7280 2011-05-21  Bruno Haible  <bruno@clisp.org>
7281
7282         memmove: Move AC_LIBOBJ invocations to module description.
7283         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7285         here...
7286         * modules/memmove (configure.ac): ... to here.
7287
7288 2011-05-21  Bruno Haible  <bruno@clisp.org>
7289
7290         memmem*: Move AC_LIBOBJ invocations to module description.
7291         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7292         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7293         here...
7294         (gl_FUNC_MEMMEM): ... and here...
7295         * modules/memmem-simple (configure.ac): ... to here.
7296         * modules/memmem (configure.ac): ... and here.
7297
7298 2011-05-21  Bruno Haible  <bruno@clisp.org>
7299
7300         memcpy: Move AC_LIBOBJ invocations to module description.
7301         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7302         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7303         here...
7304         * modules/memcpy (configure.ac): ... to here.
7305
7306 2011-05-21  Bruno Haible  <bruno@clisp.org>
7307
7308         memcmp: Simplify autoconf macro.
7309         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7310         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7311         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7312
7313 2011-05-21  Bruno Haible  <bruno@clisp.org>
7314
7315         memcmp: Move AC_LIBOBJ invocations to module description.
7316         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7317         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7318         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7319         * modules/memcmp (configure.ac): ... to here.
7320         (Depends-on): Update conditions.
7321
7322 2011-05-21  Bruno Haible  <bruno@clisp.org>
7323
7324         memchr: Respect rules for use of AC_LIBOBJ.
7325         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7326         invocations from here...
7327         * modules/memchr (configure.ac): ... to here.
7328
7329 2011-05-21  Bruno Haible  <bruno@clisp.org>
7330
7331         mbtowc: Move AC_LIBOBJ invocations to module description.
7332         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7333         invocations from here...
7334         * modules/mbtowc (configure.ac): ... to here.
7335
7336 2011-05-21  Bruno Haible  <bruno@clisp.org>
7337
7338         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7339         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7340         gl_PREREQ_MBSRTOWCS invocations from here...
7341         * modules/mbsrtowcs (configure.ac): ... to here.
7342
7343 2011-05-21  Bruno Haible  <bruno@clisp.org>
7344
7345         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7346         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7347         gl_PREREQ_MBSNRTOWCS invocations from here...
7348         * modules/mbsnrtowcs (configure.ac): ... to here.
7349
7350 2011-05-21  Bruno Haible  <bruno@clisp.org>
7351
7352         mbsinit: Move AC_LIBOBJ invocations to module description.
7353         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7354         invocations from here...
7355         * modules/mbsinit (configure.ac): ... to here.
7356
7357 2011-05-21  Bruno Haible  <bruno@clisp.org>
7358
7359         mbrlen: Move AC_LIBOBJ invocations to module description.
7360         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7361         invocations from here...
7362         * modules/mbrlen (configure.ac): ... to here.
7363
7364 2011-05-21  Bruno Haible  <bruno@clisp.org>
7365
7366         mbrtowc: Respect rules for use of AC_LIBOBJ.
7367         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7368         invocations from here...
7369         * modules/mbrtowc (configure.ac): ... to here.
7370
7371 2011-05-21  Bruno Haible  <bruno@clisp.org>
7372
7373         malloc-*: Move AC_LIBOBJ invocations to module description.
7374         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7375         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7376         AC_LIBOBJ invocations from here...
7377         * modules/malloc-gnu (configure.ac): ... to here.
7378         * modules/malloc-posix (configure.ac): ... and here.
7379
7380 2011-05-21  Bruno Haible  <bruno@clisp.org>
7381
7382         lstat, openat: Respect rules for use of AC_LIBOBJ.
7383         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7384         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7385         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7386         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7387         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7388         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7389         here.
7390         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7391
7392 2011-05-21  Bruno Haible  <bruno@clisp.org>
7393
7394         lseek: Move AC_LIBOBJ invocations to module description.
7395         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7396         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7397         * modules/lseek (configure.ac): ... to here.
7398
7399 2011-05-21  Bruno Haible  <bruno@clisp.org>
7400
7401         linkat: Move AC_LIBOBJ invocations to module description.
7402         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7403         here...
7404         * modules/linkat (configure.ac): ... to here.
7405
7406 2011-05-21  Bruno Haible  <bruno@clisp.org>
7407
7408         link: Respect rules for use of AC_LIBOBJ.
7409         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7410         * modules/link (configure.ac): ... to here.
7411
7412 2011-05-21  Bruno Haible  <bruno@clisp.org>
7413
7414         lchown: Move AC_LIBOBJ invocations to module description.
7415         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7416         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7417         * modules/lchown (configure.ac): ... to here.
7418
7419 2011-05-21  Bruno Haible  <bruno@clisp.org>
7420
7421         iswctype: Move AC_LIBOBJ invocations to module description.
7422         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7423         here...
7424         * modules/iswctype (configure.ac): ... to here.
7425
7426 2011-05-21  Bruno Haible  <bruno@clisp.org>
7427
7428         iswblank: Move AC_LIBOBJ invocations to module description.
7429         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7430         here...
7431         * modules/iswblank (configure.ac): ... to here.
7432
7433 2011-05-21  Bruno Haible  <bruno@clisp.org>
7434
7435         atanl: Move AC_LIBOBJ invocations to module description.
7436         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7437         * modules/atanl (configure.ac): ... to here.
7438
7439 2011-05-21  Bruno Haible  <bruno@clisp.org>
7440
7441         acosl: Move AC_LIBOBJ invocations to module description.
7442         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7443         * modules/acosl (configure.ac): ... to here.
7444
7445 2011-05-21  Bruno Haible  <bruno@clisp.org>
7446
7447         asinl: Respect rules for use of AC_LIBOBJ.
7448         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7449         * modules/asinl (configure.ac): ... to here.
7450
7451 2011-05-21  Bruno Haible  <bruno@clisp.org>
7452
7453         tanl: Move AC_LIBOBJ invocations to module description.
7454         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7455         * modules/tanl (configure.ac): ... to here.
7456
7457 2011-05-21  Bruno Haible  <bruno@clisp.org>
7458
7459         cosl: Move AC_LIBOBJ invocations to module description.
7460         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7461         * modules/cosl (configure.ac): ... to here.
7462
7463 2011-05-21  Bruno Haible  <bruno@clisp.org>
7464
7465         sinl: Move AC_LIBOBJ invocations to module description.
7466         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7467         * modules/sinl (configure.ac): ... to here.
7468
7469 2011-05-21  Bruno Haible  <bruno@clisp.org>
7470
7471         logl: Move AC_LIBOBJ invocations to module description.
7472         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7473         * modules/logl (configure.ac): ... to here.
7474
7475 2011-05-21  Bruno Haible  <bruno@clisp.org>
7476
7477         expl: Move AC_LIBOBJ invocations to module description.
7478         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7479         * modules/expl (configure.ac): ... to here.
7480
7481 2011-05-21  Bruno Haible  <bruno@clisp.org>
7482
7483         roundl: Move AC_LIBOBJ invocations to module description.
7484         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7485         * modules/roundl (configure.ac): ... to here.
7486
7487 2011-05-21  Bruno Haible  <bruno@clisp.org>
7488
7489         round: Move AC_LIBOBJ invocations to module description.
7490         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7491         * modules/round (configure.ac): ... to here.
7492
7493 2011-05-21  Bruno Haible  <bruno@clisp.org>
7494
7495         roundf: Move AC_LIBOBJ invocations to module description.
7496         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7497         * modules/roundf (configure.ac): ... to here.
7498
7499 2011-05-21  Bruno Haible  <bruno@clisp.org>
7500
7501         truncl: Move AC_LIBOBJ invocations to module description.
7502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7503         * modules/truncl (configure.ac): ... to here.
7504
7505 2011-05-21  Bruno Haible  <bruno@clisp.org>
7506
7507         trunc: Move AC_LIBOBJ invocations to module description.
7508         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7509         * modules/trunc (configure.ac): ... to here.
7510
7511 2011-05-21  Bruno Haible  <bruno@clisp.org>
7512
7513         truncf: Move AC_LIBOBJ invocations to module description.
7514         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7515         * modules/truncf (configure.ac): ... to here.
7516
7517 2011-05-21  Bruno Haible  <bruno@clisp.org>
7518
7519         ceill: Move AC_LIBOBJ invocations to module description.
7520         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7521         * modules/ceill (configure.ac): ... to here.
7522
7523 2011-05-21  Bruno Haible  <bruno@clisp.org>
7524
7525         ceil: Move AC_LIBOBJ invocations to module description.
7526         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7527         * modules/ceil (configure.ac): ... to here.
7528
7529 2011-05-21  Bruno Haible  <bruno@clisp.org>
7530
7531         ceilf: Move AC_LIBOBJ invocations to module description.
7532         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7533         * modules/ceilf (configure.ac): ... to here.
7534
7535 2011-05-21  Bruno Haible  <bruno@clisp.org>
7536
7537         floorl: Respect rules for use of AC_LIBOBJ.
7538         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7539         * modules/floorl (configure.ac): ... to here.
7540
7541 2011-05-21  Bruno Haible  <bruno@clisp.org>
7542
7543         floor: Respect rules for use of AC_LIBOBJ.
7544         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7545         * modules/floor (configure.ac): ... to here.
7546
7547 2011-05-21  Bruno Haible  <bruno@clisp.org>
7548
7549         floorf: Move AC_LIBOBJ invocations to module description.
7550         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7551         * modules/floorf (configure.ac): ... to here.
7552
7553 2011-05-20  Bruno Haible  <bruno@clisp.org>
7554
7555         sqrtl: Respect rules for use of AC_LIBOBJ.
7556         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7557         * modules/sqrtl (configure.ac): ... to here.
7558
7559 2011-05-20  Bruno Haible  <bruno@clisp.org>
7560
7561         ldexpl: Respect rules for use of AC_LIBOBJ.
7562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7563         * modules/ldexpl (configure.ac): ... to here.
7564
7565 2011-05-20  Bruno Haible  <bruno@clisp.org>
7566
7567         frexpl*: Respect rules for use of AC_LIBOBJ.
7568         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7569         invocation from here...
7570         * modules/frexpl (configure.ac): ... to here.
7571         * modules/frexpl-nolibm (configure.ac): ... and here.
7572
7573 2011-05-20  Bruno Haible  <bruno@clisp.org>
7574
7575         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7576         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7577         invocation from here...
7578         * modules/frexp (configure.ac): ... to here.
7579         * modules/frexp-nolibm (configure.ac): ... and here.
7580
7581 2011-05-20  Bruno Haible  <bruno@clisp.org>
7582
7583         isnan: Respect rules for use of AC_LIBOBJ.
7584         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7585         invocations here.
7586         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7587         REPLACE_ISNAN.
7588         * modules/isnand (configure.ac): Likewise.
7589         * modules/isnanl (configure.ac): Likewise.
7590
7591 2011-05-20  Bruno Haible  <bruno@clisp.org>
7592
7593         isnanl*: Respect rules for use of AC_LIBOBJ.
7594         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7595         invocation from here...
7596         * modules/isnanl (configure.ac): ... to here.
7597         * modules/isnanl-nolibm (configure.ac): ... and here.
7598
7599 2011-05-20  Bruno Haible  <bruno@clisp.org>
7600
7601         isnand*: Move AC_LIBOBJ invocations to module description.
7602         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7603         invocation from here...
7604         * modules/isnand (configure.ac): ... to here.
7605         * modules/isnand-nolibm (configure.ac): ... and here.
7606
7607 2011-05-20  Bruno Haible  <bruno@clisp.org>
7608
7609         isnanf*: Move AC_LIBOBJ invocations to module description.
7610         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7611         invocation from here...
7612         * modules/isnanf (configure.ac): ... to here.
7613         * modules/isnanf-nolibm (configure.ac): ... and here.
7614
7615 2011-05-20  Bruno Haible  <bruno@clisp.org>
7616
7617         isnan*: Separate the AC_LIBOBJ invocations.
7618         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7619         AC_LIBOBJ invocation.
7620         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7621         here.
7622         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7623         AC_LIBOBJ invocation.
7624         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7625         here.
7626         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7627         AC_LIBOBJ invocation.
7628         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7629         here.
7630         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7631
7632 2011-05-08  Bruno Haible  <bruno@clisp.org>
7633
7634         isinf: Move AC_LIBOBJ invocations to module description.
7635         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7636         * modules/isinf (configure.ac): ... to here.
7637
7638 2011-05-08  Bruno Haible  <bruno@clisp.org>
7639
7640         isfinite: Move AC_LIBOBJ invocations to module description.
7641         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7642         * modules/isfinite (configure.ac): ... to here.
7643
7644 2011-05-08  Bruno Haible  <bruno@clisp.org>
7645
7646         isblank: Move AC_LIBOBJ invocations to module description.
7647         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7648         here...
7649         * modules/isblank (configure.ac): ... to here.
7650
7651 2011-05-08  Bruno Haible  <bruno@clisp.org>
7652
7653         isapipe: Move AC_LIBOBJ invocations to module description.
7654         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7655         gl_PREREQ_ISAPIPE invocations from here...
7656         * modules/isapipe (configure.ac): ... to here.
7657         (Depends-on): Update condition.
7658
7659 2011-05-08  Bruno Haible  <bruno@clisp.org>
7660
7661         ioctl: Move AC_LIBOBJ invocations to module description.
7662         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7663         invocations from here...
7664         * modules/ioctl (configure.ac): ... to here.
7665         (Depends-on): Update condition.
7666
7667 2011-05-08  Bruno Haible  <bruno@clisp.org>
7668
7669         imaxdiv: Move AC_LIBOBJ invocations to module description.
7670         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7671         invocations from here...
7672         * modules/imaxdiv (configure.ac): ... to here.
7673
7674 2011-05-08  Bruno Haible  <bruno@clisp.org>
7675
7676         imaxabs: Move AC_LIBOBJ invocations to module description.
7677         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7678         invocations from here...
7679         * modules/imaxabs (configure.ac): ... to here.
7680
7681 2011-05-08  Bruno Haible  <bruno@clisp.org>
7682
7683         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7685         AC_LIBOBJ invocations from here...
7686         * modules/getaddrinfo (configure.ac): ... to here.
7687         (Depends-on): Add conditions.
7688
7689 2011-05-08  Bruno Haible  <bruno@clisp.org>
7690
7691         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7692         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7693         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7694         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7695         (gl_PREREQ_INET_PTON): ... from here.
7696         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7697         gl_PREREQ_INET_PTON here.
7698         (Depends-on): Update condition.
7699
7700 2011-05-08  Bruno Haible  <bruno@clisp.org>
7701
7702         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7703         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7704         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7705         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7706         (gl_PREREQ_INET_NTOP): ... from here.
7707         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7708         gl_PREREQ_INET_NTOP here.
7709         (Depends-on): Update condition.
7710
7711 2011-05-08  Bruno Haible  <bruno@clisp.org>
7712
7713         iconv_open: Move AC_LIBOBJ invocations to module description.
7714         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7715         AC_LIBOBJ invocations from here...
7716         * modules/iconv_open (configure.ac): ... to here.
7717
7718 2011-05-08  Bruno Haible  <bruno@clisp.org>
7719
7720         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7721         If module 'iconv_open' is among the main modules and module
7722         'iconv_open-utf' is among the tests dependencies, then
7723         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7724         return the special iconv_t values. Therefore iconv() and iconv_close()
7725         must support these special iconv_t values, already in lib, not only in
7726         tests.
7727         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7728         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7729         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7730         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7731         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7732         (Depends-on): Add the dependencies of iconv_open-utf.
7733         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7734         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7735         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7736
7737 2011-05-08  Bruno Haible  <bruno@clisp.org>
7738
7739         group-member: Move AC_LIBOBJ invocations to module description.
7740         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7741         gl_PREREQ_GROUP_MEMBER invocations from here...
7742         * modules/group-member (configure.ac): ... to here.
7743
7744 2011-05-08  Bruno Haible  <bruno@clisp.org>
7745
7746         grantpt: Move AC_LIBOBJ invocations to module description.
7747         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7748         invocations from here...
7749         * modules/grantpt (configure.ac): ... to here.
7750
7751 2011-05-08  Bruno Haible  <bruno@clisp.org>
7752
7753         glob: Move AC_LIBOBJ invocations to module description.
7754         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7755         from here...
7756         * modules/glob (configure.ac): ... to here.
7757
7758 2011-05-08  Bruno Haible  <bruno@clisp.org>
7759
7760         getusershell: Move AC_LIBOBJ invocations to module description.
7761         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7762         Move AC_LIBOBJ invocation from here...
7763         * modules/getusershell (configure.ac): ... to here.
7764         (Depends-on): Update condition.
7765
7766 2011-05-08  Bruno Haible  <bruno@clisp.org>
7767
7768         gettimeofday: Move AC_LIBOBJ invocations to module description.
7769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7770         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7771         gl_PREREQ_GETTIMEOFDAY invocations from here...
7772         * modules/gettimeofday (configure.ac): ... to here.
7773
7774 2011-05-08  Bruno Haible  <bruno@clisp.org>
7775
7776         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7777         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7778         just gl_FUNC_TZSET.
7779         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7780         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7781         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7782         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7783
7784 2011-05-08  Bruno Haible  <bruno@clisp.org>
7785
7786         getsubopt: Move AC_LIBOBJ invocations to module description.
7787         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7788         gl_PREREQ_GETSUBOPT invocations from here...
7789         * modules/getsubopt (configure.ac): ... to here.
7790
7791 2011-05-08  Bruno Haible  <bruno@clisp.org>
7792
7793         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7794         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7795         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7796         * modules/getpass-gnu (configure.ac): ... to here.
7797
7798 2011-05-08  Bruno Haible  <bruno@clisp.org>
7799
7800         getpass: Move AC_LIBOBJ invocations to module description.
7801         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7802         gl_PREREQ_GETPASS invocations from here...
7803         * modules/getpass (configure.ac): ... to here.
7804
7805 2011-05-08  Bruno Haible  <bruno@clisp.org>
7806
7807         getpagesize: Move AC_LIBOBJ invocations to module description.
7808         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7809         from here...
7810         * modules/getpagesize (configure.ac): ... to here.
7811
7812 2011-05-08  Bruno Haible  <bruno@clisp.org>
7813
7814         getopt: Move AC_LIBOBJ invocations to module description.
7815         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7816         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7817         invocations from here...
7818         * modules/getopt-gnu (configure.ac): ... to here.
7819         * modules/getopt-posix (configure.ac): ... and here.
7820         (Depends-on): Update condition.
7821
7822 2011-05-08  Bruno Haible  <bruno@clisp.org>
7823
7824         getopt, argp: Respect rules for use of AC_LIBOBJ.
7825         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7826         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7827         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7828         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7829
7830 2011-05-08  Bruno Haible  <bruno@clisp.org>
7831
7832         getlogin_r: Move AC_LIBOBJ invocations to module description.
7833         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7834         gl_PREREQ_GETLOGIN_R invocations from here...
7835         * modules/getlogin_r (configure.ac): ... to here.
7836
7837 2011-05-08  Bruno Haible  <bruno@clisp.org>
7838
7839         getlogin: Move AC_LIBOBJ invocations to module description.
7840         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7841         here...
7842         * modules/getlogin (configure.ac): ... to here.
7843
7844 2011-05-08  Bruno Haible  <bruno@clisp.org>
7845
7846         getloadavg: Move AC_LIBOBJ invocations to module description.
7847         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7848         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7849         * modules/getloadavg (configure.ac): ... to here.
7850
7851 2011-05-08  Bruno Haible  <bruno@clisp.org>
7852
7853         gethrxtime: Move AC_LIBOBJ invocations to module description.
7854         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7855         LIB_GETHRXTIME from here...
7856         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7857         invocations from here...
7858         * modules/gethrxtime (configure.ac): ... to here.
7859
7860 2011-05-08  Bruno Haible  <bruno@clisp.org>
7861
7862         gethostname: Move AC_LIBOBJ invocations to module description.
7863         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7864         gl_PREREQ_GETHOSTNAME invocations from here...
7865         * modules/gethostname (configure.ac): ... to here.
7866
7867 2011-05-08  Bruno Haible  <bruno@clisp.org>
7868
7869         getgroups: Move AC_LIBOBJ invocations to module description.
7870         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7871         here...
7872         * modules/getgroups (configure.ac): ... to here.
7873
7874 2011-05-08  Bruno Haible  <bruno@clisp.org>
7875
7876         getdtablesize: Move AC_LIBOBJ invocations to module description.
7877         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7878         invocation from here...
7879         * modules/getdtablesize (configure.ac): ... to here.
7880
7881 2011-05-08  Bruno Haible  <bruno@clisp.org>
7882
7883         getdomainname: Move AC_LIBOBJ invocations to module description.
7884         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7885         gl_PREREQ_GETDOMAINNAME invocations from here...
7886         * modules/getdomainname (configure.ac): ... to here.
7887
7888 2011-05-08  Bruno Haible  <bruno@clisp.org>
7889
7890         getline: Move AC_LIBOBJ invocations to module description.
7891         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7892         invocations from here...
7893         * modules/getline (configure.ac): ... to here.
7894
7895 2011-05-08  Bruno Haible  <bruno@clisp.org>
7896
7897         getline: Simplify.
7898         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7899         It's already handled through the module dependency.
7900
7901 2011-05-08  Bruno Haible  <bruno@clisp.org>
7902
7903         getdelim: Move AC_LIBOBJ invocations to module description.
7904         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7905         and gl_PREREQ_GETDELIM invocations from here...
7906         * modules/getdelim (configure.ac): ... to here.
7907         (Depends-on): Fix condition.
7908
7909 2011-05-08  Bruno Haible  <bruno@clisp.org>
7910
7911         getcwd: Move AC_LIBOBJ invocations to module description.
7912         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7913         invocations from here...
7914         * modules/getcwd (configure.ac): ... to here.
7915
7916 2011-05-08  Bruno Haible  <bruno@clisp.org>
7917
7918         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7919         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7920         here...
7921         * modules/getcwd-lgpl (configure.ac): ... to here.
7922
7923 2011-05-07  Bruno Haible  <bruno@clisp.org>
7924
7925         crypto/gc: Move AC_LIBOBJ invocations to module description.
7926         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7927         * modules/crypto/gc (configure.ac): ... to here.
7928
7929 2011-05-07  Bruno Haible  <bruno@clisp.org>
7930
7931         fwriting: Move AC_LIBOBJ invocations to module description.
7932         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7933         here...
7934         * modules/fwriting (configure.ac): ... to here.
7935
7936 2011-05-07  Bruno Haible  <bruno@clisp.org>
7937
7938         fwritable: Move AC_LIBOBJ invocations to module description.
7939         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7940         here...
7941         * modules/fwritable (configure.ac): ... to here.
7942
7943 2011-05-07  Bruno Haible  <bruno@clisp.org>
7944
7945         futimens: Move AC_LIBOBJ invocations to module description.
7946         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7947         here...
7948         * modules/futimens (configure.ac): ... to here.
7949
7950 2011-05-07  Bruno Haible  <bruno@clisp.org>
7951
7952         ftruncate: Move AC_LIBOBJ invocations to module description.
7953         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7954         gl_PREREQ_FTRUNCATE invocations from here...
7955         * modules/ftruncate (configure.ac): ... to here.
7956
7957 2011-05-07  Bruno Haible  <bruno@clisp.org>
7958
7959         fsync: Move AC_LIBOBJ invocations to module description.
7960         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7961         invocations from here...
7962         * modules/fsync (configure.ac): ... to here.
7963
7964 2011-05-07  Bruno Haible  <bruno@clisp.org>
7965
7966         fsusage: Move AC_LIBOBJ invocations to module description.
7967         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7968         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7969         * modules/fsusage (configure.ac): ... to here.
7970
7971 2011-05-07  Bruno Haible  <bruno@clisp.org>
7972
7973         freopen: Move AC_LIBOBJ invocations to module description.
7974         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7975         invocations from here...
7976         * modules/freopen (configure.ac): ... to here.
7977
7978 2011-05-07  Bruno Haible  <bruno@clisp.org>
7979
7980         free: Move AC_LIBOBJ invocations to module description.
7981         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7982         invocations from here...
7983         * modules/free (configure.ac): ... to here.
7984
7985 2011-05-07  Bruno Haible  <bruno@clisp.org>
7986
7987         freadable: Move AC_LIBOBJ invocations to module description.
7988         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7989         here...
7990         * modules/freadable (configure.ac): ... to here.
7991
7992 2011-05-07  Bruno Haible  <bruno@clisp.org>
7993
7994         fpurge: Move AC_LIBOBJ invocations to module description.
7995         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7996         invocations from here...
7997         * modules/fpurge (configure.ac): ... to here.
7998
7999 2011-05-07  Bruno Haible  <bruno@clisp.org>
8000
8001         fpending: Move AC_LIBOBJ invocations to module description.
8002         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8003         gl_FUNC_FPENDING.
8004         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8005         invocations from here...
8006         * modules/fpending (configure.ac): ... to here.
8007
8008 2011-05-07  Bruno Haible  <bruno@clisp.org>
8009
8010         fopen: Move AC_LIBOBJ invocations to module description.
8011         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8012         invocations from here...
8013         * modules/fopen (configure.ac): ... to here.
8014
8015 2011-05-07  Bruno Haible  <bruno@clisp.org>
8016
8017         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8018         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8019         gl_FUNC_FNMATCH_POSIX.
8020         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8021         invocations from here...
8022         * modules/fnmatch (configure.ac): ... to here.
8023         * modules/fnmatch-gnu (configure.ac): ... and here.
8024
8025 2011-05-07  Bruno Haible  <bruno@clisp.org>
8026
8027         flock: Move AC_LIBOBJ invocations to module description.
8028         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8029         invocations from here...
8030         * modules/flock (configure.ac): ... to here.
8031
8032 2011-05-07  Bruno Haible  <bruno@clisp.org>
8033
8034         fileblocks: Move AC_LIBOBJ invocations to module description.
8035         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8036         gl_PREREQ_FILEBLOCKS invocations from here...
8037         * modules/fileblocks (configure.ac): ... to here.
8038
8039 2011-05-06  Bruno Haible  <bruno@clisp.org>
8040
8041         fflush: Move AC_LIBOBJ invocations to module description.
8042         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8043         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8044         invocations from here...
8045         * modules/fflush (configure.ac): ... to here.
8046
8047 2011-05-06  Bruno Haible  <bruno@clisp.org>
8048
8049         fdopendir: Move AC_LIBOBJ invocations to module description.
8050         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8051         here...
8052         * modules/fdopendir (configure.ac): ... to here.
8053         (Depends-on): Improve conditions.
8054
8055 2011-05-06  Bruno Haible  <bruno@clisp.org>
8056
8057         _Exit: Move AC_LIBOBJ invocations to module description.
8058         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8059         invocations from here...
8060         * modules/_Exit (configure.ac): ... to here.
8061
8062 2011-05-21  Bruno Haible  <bruno@clisp.org>
8063
8064         euidaccess: Respect rules for use of AC_LIBOBJ.
8065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8067         from here...
8068         * modules/euidaccess (configure.ac): ... to here.
8069
8070 2011-05-06  Bruno Haible  <bruno@clisp.org>
8071
8072         error: Move AC_LIBOBJ invocations to module description.
8073         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8074         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8075         invocations from here...
8076         * modules/error (configure.ac): ... to here.
8077
8078 2011-05-06  Bruno Haible  <bruno@clisp.org>
8079
8080         duplocale: Move AC_LIBOBJ invocations to module description.
8081         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8082         gl_PREREQ_DUPLOCALE invocations from here...
8083         * modules/duplocale (configure.ac): ... to here.
8084
8085 2011-05-05  Bruno Haible  <bruno@clisp.org>
8086
8087         dirfd: Move AC_LIBOBJ invocations to module description.
8088         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8089         gl_FUNC_DIRFD.
8090         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8091         here...
8092         * modules/dirfd (configure.ac): ... to here.
8093         (Depends-on): Fix condition.
8094
8095 2011-05-05  Bruno Haible  <bruno@clisp.org>
8096
8097         chown: Respect rules for use of AC_LIBOBJ.
8098         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8099         * modules/chown (configure.ac): ... to here.
8100
8101 2011-05-05  Bruno Haible  <bruno@clisp.org>
8102
8103         chdir-long: Move AC_LIBOBJ invocations to module description.
8104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8105         gl_PREREQ_CHDIR_LONG invocations from here...
8106         * modules/chdir-long (configure.ac): ... to here.
8107
8108 2011-05-05  Bruno Haible  <bruno@clisp.org>
8109
8110         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8111         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8112         from here...
8113         * modules/canonicalize-lgpl (configure.ac): ... to here.
8114
8115 2011-05-05  Bruno Haible  <bruno@clisp.org>
8116
8117         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8118         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8119         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8120         REPLACE_CALLOC.
8121         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8122         * modules/calloc-gnu (configure.ac): Likewise.
8123
8124 2011-05-05  Bruno Haible  <bruno@clisp.org>
8125
8126         btowc: Move AC_LIBOBJ invocations to module description.
8127         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8128         invocations from here...
8129         * modules/btowc (configure.ac): ... to here.
8130
8131 2011-05-21  Bruno Haible  <bruno@clisp.org>
8132
8133         atexit: Move AC_LIBOBJ invocations to module description.
8134         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8136         here...
8137         * modules/atexit (configure.ac): ... to here.
8138
8139 2011-05-05  Bruno Haible  <bruno@clisp.org>
8140
8141         atoll: Move AC_LIBOBJ invocations to module description.
8142         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8143         invocations from here...
8144         * modules/atoll (configure.ac): ... to here.
8145
8146 2011-05-05  Bruno Haible  <bruno@clisp.org>
8147
8148         argz: Move AC_LIBOBJ invocations to module description.
8149         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8150         * modules/argz (configure.ac): ... to here.
8151
8152 2011-05-05  Bruno Haible  <bruno@clisp.org>
8153
8154         alphasort: Move AC_LIBOBJ invocations to module description.
8155         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8156         gl_PREREQ_ALPHASORT invocations from here...
8157         * modules/alphasort (configure.ac): ... to here.
8158
8159 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         verify: new macro verify_expr; verify_true deprecated
8162         * NEWS: Mention this.
8163         * doc/verify.texi (Compile-time Assertions): Document this.
8164         * lib/verify.h (verify_true): Deprecate.
8165         (verify_expr): New macro.
8166         * tests/test-verify.c (function): Test verify_expr.
8167
8168 2011-06-14  Jim Meyering  <meyering@redhat.com>
8169
8170         init.sh: give more portable redirection-related advice in a comment
8171         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8172         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8173         for lots of discussion.  Stefano Lattarini suggested the solution
8174         of putting "9>&2" after the command.  Reported by Bruno Haible.
8175
8176 2011-06-13  Bruno Haible  <bruno@clisp.org>
8177
8178         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8180         'none'.
8181
8182 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8183
8184         ftoastr: use strtof only if HAVE_STRTOF
8185         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8187         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8188         * modules/ftoastr (configure.ac): Check for strtof.
8189
8190 2011-06-13  Bruno Haible  <bruno@clisp.org>
8191
8192         gnulib-tool: Addendum to 2011-06-08 commit.
8193         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8194         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8195
8196 2011-06-13  Bruno Haible  <bruno@clisp.org>
8197
8198         fseeko: Provide a non-inline replacement of fseek().
8199         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8200         * modules/fseeko (Depends-on): Add fseek.
8201         * modules/fseek (License): Change to LGPLv2+.
8202
8203 2011-06-13  Bruno Haible  <bruno@clisp.org>
8204
8205         ftello: Provide a non-inline replacement of ftell().
8206         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8207         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8208         not have ftello() (such as on mingw).
8209         * modules/ftello (Depends-on): Add ftell.
8210         * modules/ftell (License): Change to LGPLv2+.
8211
8212 2011-05-07  Bruno Haible  <bruno@clisp.org>
8213
8214         ftell: Move AC_LIBOBJ invocations to module description.
8215         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8216         * modules/ftell (configure.ac): ... to here.
8217
8218 2011-05-07  Bruno Haible  <bruno@clisp.org>
8219
8220         ftello: Respect rules for use of AC_LIBOBJ.
8221         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8222         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8223         here...
8224         * modules/ftello (configure.ac): ... to here.
8225
8226 2011-05-07  Bruno Haible  <bruno@clisp.org>
8227
8228         fseeko: Simplify.
8229         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8230         (gl_FUNC_FSEEKO): Inline it here.
8231
8232 2011-05-07  Bruno Haible  <bruno@clisp.org>
8233
8234         fseek: Move AC_LIBOBJ invocations to module description.
8235         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8236         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8237         * modules/fseek (configure.ac): ... to here.
8238
8239 2011-05-07  Bruno Haible  <bruno@clisp.org>
8240
8241         fseek: Respect rules for use of AC_LIBOBJ.
8242         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8243         here...
8244         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8245
8246 2011-05-07  Bruno Haible  <bruno@clisp.org>
8247
8248         fseeko: Respect rules for use of AC_LIBOBJ.
8249         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8250         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8251         here...
8252         * modules/fseeko (configure.ac): ... to here.
8253
8254 2011-06-13  Bruno Haible  <bruno@clisp.org>
8255
8256         gnulib-tool: Allow comments in the 'Depends-on' section.
8257         * doc/gnulib.texi (Module description): Mention comment syntax in the
8258         Depends-on section.
8259         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8260
8261 2011-06-13  Bruno Haible  <bruno@clisp.org>
8262
8263         file-set.h: guard __attibute__ use, now that it's not always defined
8264         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8265         versions that support it.  This fixes a coreutils build failure with
8266         the vendor cc on HP-UX 11.31.
8267
8268 2011-06-12  Bruno Haible  <bruno@clisp.org>
8269
8270         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8271         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8272         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8273         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8274         (acl, aclsort): New declarations.
8275         (aclv_nontrivial): New declaration.
8276         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8277         (file_has_acl): Read also the second kind of HP-UX ACLs.
8278         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8279         kind of HP-UX ACLs if the first kind fails.
8280         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8281         second kind of HP-UX ACLs.
8282         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8283         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8284         agree.
8285         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8286         hpuxjfs.
8287         Handle hpuxjfs.
8288         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8289         hpuxjfs.
8290         Handle hpuxjfs.
8291         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8292         (func_test_same_acls): Use both lsacl and getacl.
8293         Handle hpuxjfs.
8294         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8295         (func_test_same_acls): Use both lsacl and getacl.
8296         Handle hpuxjfs.
8297
8298 2011-06-12  Bruno Haible  <bruno@clisp.org>
8299
8300         acl: Complete the 2010-08-10 fix.
8301         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8302         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8303         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8304         explicitly.
8305         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8306         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8307
8308 2011-06-12  Bruno Haible  <bruno@clisp.org>
8309
8310         spawn-pipe tests: Comments.
8311         * tests/test-spawn-pipe-child.c (main): Update comment.
8312         Reported by James Youngman <jay@gnu.org>.
8313
8314 2011-06-11  James Youngman  <jay@gnu.org>
8315
8316         New module 'stat-size'.
8317         * modules/stat-size: New module.  Provides macros for accessing
8318         file size information in instances of struct stat.  Depends on the
8319         fileblocks module because it calls st_blocks.
8320         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8321         * doc/gnulib.texi: Include stat-size.texi.
8322         * doc/stat-size.texi: Documentation for this module.
8323         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8324         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8325         AC_STRUCT_ST_BLOCKS.
8326
8327 2011-06-09  Bruno Haible  <bruno@clisp.org>
8328
8329         thread: Support pthreads-win32.
8330         * lib/glthread/thread.h (gl_thread_self): Define differently on
8331         pthreads-win32.
8332         (gl_null_thread): New declaration.
8333         (gl_thread_self_pointer): New macro.
8334         * lib/glthread/thread.c (gl_null_thread): New constant.
8335         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8336         gl_thread_self.
8337         * tests/test-tls.c: Likewise.
8338         Suggested by Paul Eggert. Reported by Eric Blake.
8339
8340 2011-06-09  Bruno Haible  <bruno@clisp.org>
8341
8342         thread: Fix confusion between NULL and 0.
8343         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8344         Reported by Paul Eggert.
8345
8346 2011-06-09  Bruno Haible  <bruno@clisp.org>
8347
8348         spawn-pipe tests: Avoid test failure on HP-UX 11.
8349         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8350         is closed.
8351
8352 2011-06-09  Bruno Haible  <bruno@clisp.org>
8353
8354         acl tests: Fix compilation error on HP-UX 11.
8355         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8356
8357 2011-06-09  Bruno Haible  <bruno@clisp.org>
8358
8359         rmdir: Avoid test failure on HP-UX 10.20.
8360         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8361         EEXIST.
8362
8363 2011-06-08  Eric Blake  <eblake@redhat.com>
8364
8365         perror: fix test on mingw
8366         * modules/perror-tests (Depends-on): Add dup2.
8367
8368         strerror_r-posix: fix on MacOS
8369         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8371         logic bug.
8372         * lib/strerror_r.c (strerror_r): Fix the bug.
8373         * lib/strerror.c (strerror): Likewise.
8374         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8375         problem.
8376         * doc/posix-functions/strerror.texi (strerror): Likewise.
8377         * doc/posix-functions/perror.texi (perror): Likewise.
8378         * tests/test-strerror.c (main): Enhance test.
8379         * tests/test-strerror_r.c (main): Likewise.
8380
8381 2011-06-08  Bruno Haible  <bruno@clisp.org>
8382
8383         gnulib-tool: Better isolation between different gnulib-tool invocations.
8384         * gnulib-tool: New option --witness-c-macro.
8385         (witness_c_macro): New variable.
8386         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8387         AM_CPPFLAGS define it as a C macro.
8388         (func_emit_tests_Makefile_am): Likewise.
8389         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8390         read it from there.
8391         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8392         m4_define, not AC_DEFUN.
8393         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8394         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8395         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8396         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8397         s|...|...|, to substitute the values of the GNULIB_* module indicator
8398         variables.
8399         * modules/dirent (Makefile.am): Likewise.
8400         * modules/fcntl-h (Makefile.am): Likewise.
8401         * modules/iconv-h (Makefile.am): Likewise.
8402         * modules/langinfo (Makefile.am): Likewise.
8403         * modules/locale (Makefile.am): Likewise.
8404         * modules/math (Makefile.am): Likewise.
8405         * modules/netdb (Makefile.am): Likewise.
8406         * modules/poll-h (Makefile.am): Likewise.
8407         * modules/pty (Makefile.am): Likewise.
8408         * modules/search (Makefile.am): Likewise.
8409         * modules/signal (Makefile.am): Likewise.
8410         * modules/spawn (Makefile.am): Likewise.
8411         * modules/stdio (Makefile.am): Likewise.
8412         * modules/stdlib (Makefile.am): Likewise.
8413         * modules/string (Makefile.am): Likewise.
8414         * modules/sys_ioctl (Makefile.am): Likewise.
8415         * modules/sys_select (Makefile.am): Likewise.
8416         * modules/sys_socket (Makefile.am): Likewise.
8417         * modules/sys_stat (Makefile.am): Likewise.
8418         * modules/sys_times (Makefile.am): Likewise.
8419         * modules/sys_utsname (Makefile.am): Likewise.
8420         * modules/sys_wait (Makefile.am): Likewise.
8421         * modules/termios (Makefile.am): Likewise.
8422         * modules/time (Makefile.am): Likewise.
8423         * modules/unistd (Makefile.am): Likewise.
8424         * modules/wchar (Makefile.am): Likewise.
8425
8426 2011-06-08  Eric Blake  <eblake@redhat.com>
8427
8428         strerror: simplify replacement
8429         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8430         * modules/strerror (configure.ac): No prereqs needed here...
8431         * modules/strerror-override (configure.ac): ...but this needs it.
8432         (Files): Add file for needed prereq macro.
8433
8434 2011-06-08  Bruno Haible  <bruno@clisp.org>
8435
8436         strerror_r-posix: Tweaks.
8437         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8438         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8439         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8440         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8441         (gl_FUNC_STRERROR_R): ... to here.
8442         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8443
8444 2011-06-07  Eric Blake  <eblake@redhat.com>
8445
8446         perror: document fixed bugs
8447         * doc/posix-functions/perror.texi (perror): Document recent
8448         patches.
8449
8450 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8451
8452         stat-time: get_stat_birthtime failure is better-defined
8453         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8454         return a timestamp whose tv_sec and tv_nsec values are both -1.
8455         Previously, the spec said only that the tv_nsec value was negative.
8456         This upward-compatible change simplifies GNU tar a bit.
8457
8458 2011-06-07  Eric Blake  <eblake@redhat.com>
8459
8460         strerror_r-posix: work around cygwin 1.7.9
8461         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8462         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8463         bug without replacing strerror_r.
8464         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8465         strerror_r is buggy, but without requiring strerror_r compilation.
8466         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8467
8468         test-perror: relax test to ignore cygwin bug
8469         * tests/test-perror2.c (main): Relax test on requiring detection
8470         of stream errors, and use unbuffered stream.
8471         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8472         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8473         * doc/posix-functions/fputc.texi (fputc): Likewise.
8474         * doc/posix-functions/fputs.texi (fputs): Likewise.
8475         * doc/posix-functions/fputws.texi (fputws): Likewise.
8476         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8477         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8478         * doc/posix-functions/getopt.texi (getopt): Likewise.
8479         * doc/posix-functions/perror.texi (perror): Likewise.
8480         * doc/posix-functions/printf.texi (printf): Likewise.
8481         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8482         * doc/posix-functions/psignal.texi (psignal): Likewise.
8483         * doc/posix-functions/putc.texi (putc): Likewise.
8484         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8485         Likewise.
8486         * doc/posix-functions/putchar.texi (putchar): Likewise.
8487         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8488         Likewise.
8489         * doc/posix-functions/puts.texi (puts): Likewise.
8490         * doc/posix-functions/putwc.texi (putwc): Likewise.
8491         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8492         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8493         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8494         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8495         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8496         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8497         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8498         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8499
8500 2011-05-22  Bruno Haible  <bruno@clisp.org>
8501
8502         strerror: Move AC_LIBOBJ invocations to module description.
8503         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8504         gl_PREREQ_STRERROR invocations from here...
8505         * modules/strerror (configure.ac): ... to here.
8506
8507 2011-05-21  Bruno Haible  <bruno@clisp.org>
8508
8509         perror: Use common idiom.
8510         * modules/perror (configure.ac): Reorder statements.
8511
8512 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8513
8514         tests: fix usage message in 'mktempd_'
8515         * tests/init.sh (mktempd_): In the usage message, use literal
8516         'mktempd_', not '$ME' (which is even undefined), as the name of
8517         the subroutine.
8518
8519 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8520
8521         tests init: new function 'fatal_', for hard errors
8522         Before this patch, the only way offered by tests/init.sh to
8523         properly signal a hard error was the `framework_failure_'
8524         function.  But the error message issued by that function,
8525         as its name would suggest, refers to a set-up failure in the
8526         testsuite, while hard errors can obviously also be due to
8527         other reasons.  The best way to fix this inconsistency is to
8528         introduce a new function with a more general error message.
8529         * tests/init.sh (fatal_): New function.
8530
8531 2011-06-06  Eric Blake  <eblake@redhat.com>
8532
8533         canonicalize-lgpl: use common idiom
8534         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8535         over newer POSIX -Rf.
8536         Reported by Bruno Haible.
8537
8538         canonicalize-lgpl: work around AIX realpath bug
8539         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8540         * doc/posix-functions/realpath.texi (realpath): Document it.
8541         Reported by Bruno Haible.
8542
8543         strerror: work around FreeBSD bug
8544         * lib/strerror.c (strerror): Special case 0.
8545         Reported by Bruno Haible.
8546
8547         strerror-override: avoid bloating errno module
8548         * modules/errno (Files, configure.ac): Move replacement strings...
8549         * modules/strerror-override: ...to new module.
8550         * modules/strerror (Depends-on): Add strerror-override.
8551         * modules/strerror_r-posix (Depends-on): Likewise.
8552         * MODULES.html.sh: Document new module.
8553         Reported by Bruno Haible.
8554
8555 2011-06-06  Bruno Haible  <bruno@clisp.org>
8556
8557         spawn-pipe tests: Rename program.
8558         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8559         * tests/test-spawn-pipe-child.c: Update comment.
8560         * tests/test-spawn-pipe.sh: Update.
8561         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8562
8563         spawn-pipe tests: Link the child program only against libc.
8564         * tests/test-spawn-pipe-child.c: New file, extracted from
8565         tests/test-spawn-pipe.c.
8566         (main): Expect only one argument.
8567         (is_open): New function, copied from tests/test-pipe.c.
8568         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8569         (child_main): Remove function.
8570         (test_pipe): Pass only one argument to the child program.
8571         (main): Remove child process code. Expect the child program's name as
8572         first argument.
8573         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8574         argument.
8575         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8576         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8577         test-spawn-pipe-child against no libraries.
8578
8579 2011-06-06  Bruno Haible  <bruno@clisp.org>
8580
8581         careadlinkat: Avoid mismatch between ssize_t and int.
8582         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8583         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8584
8585 2011-06-06  Jim Meyering  <meyering@redhat.com>
8586
8587         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8588         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8589         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8590
8591 2011-06-05  Bruno Haible  <bruno@clisp.org>
8592
8593         ansi-c++-opt: Interoperability with libtool.
8594         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8595         set the variable to "no", not to ":".
8596         * NEWS: Mention the change.
8597
8598 2011-06-05  Bruno Haible  <bruno@clisp.org>
8599
8600         acl: Fix test failure on AIX 7.
8601         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8602         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8603
8604 2011-06-05  Bruno Haible  <bruno@clisp.org>
8605
8606         pipe-filter-ii: Fix test failure on AIX and IRIX.
8607         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8608         with EAGAIN, retry with a smaller buffer size.
8609
8610 2011-06-05  Bruno Haible  <bruno@clisp.org>
8611
8612         localename: Fix link dependencies.
8613         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8614         * modules/localename-tests (Makefile.am): Link test-localename with
8615         $(LIBTHREAD).
8616
8617 2011-06-05  Bruno Haible  <bruno@clisp.org>
8618
8619         error: Avoid gcc warning.
8620         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8621
8622 2011-06-05  Bruno Haible  <bruno@clisp.org>
8623
8624         unsetenv: Avoid gcc warning.
8625         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8626
8627 2011-06-05  Bruno Haible  <bruno@clisp.org>
8628
8629         setenv: Avoid gcc warning.
8630         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8631
8632 2011-06-05  Bruno Haible  <bruno@clisp.org>
8633
8634         sys_select: Ensure memset is declared also on AIX 7.
8635         * lib/sys_select.in.h: Include <string.h> also on AIX.
8636         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8637         self-contained also on AIX 7.1.
8638
8639 2011-06-04  Jim Meyering  <meyering@redhat.com>
8640
8641         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8642         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8643         function name, "error".
8644         (_gl_translatable_diag_func_re): New configurable variable.
8645
8646 2011-06-04  Bruno Haible  <bruno@clisp.org>
8647
8648         getopt: Avoid gcc warning.
8649         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8650
8651 2011-06-04  Bruno Haible  <bruno@clisp.org>
8652
8653         strerror_r: Fix comments.
8654         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8655         commit.
8656
8657 2011-06-04  Bruno Haible  <bruno@clisp.org>
8658
8659         perror: Fix compilation error.
8660         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8661         Undefine fprintf, not sprintf.
8662         * modules/perror (Depends-on): Remove intprops, verify.
8663
8664 2011-06-04  Bruno Haible  <bruno@clisp.org>
8665
8666         setlocale: Enable replacement on Cygwin 1.5.
8667         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8668         Cygwin 1.5.x.
8669         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8670         LC_CTYPE category also exists on Cygwin 1.5.x.
8671
8672 2011-06-04  Bruno Haible  <bruno@clisp.org>
8673
8674         strerror-override: Don't disable symbol renamings.
8675         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8676         * lib/strerror-override.c: Include config.h.
8677         (strerror_override): Don't undefine.
8678
8679 2011-06-03  Bruno Haible  <bruno@clisp.org>
8680
8681         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8682         * lib/localename.h: Update copyright header.
8683         * lib/localename.c: Likewise.
8684         * lib/relocatable.h: Likewise.
8685         * lib/relocatable.c: Likewise.
8686
8687 2011-06-02  Bruno Haible  <bruno@clisp.org>
8688
8689         doc: Fix a module name.
8690         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8691
8692 2011-06-02  Bruno Haible  <bruno@clisp.org>
8693
8694         pipe2: Remove dependency on 'nonblocking' module.
8695         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8696         O_NONBLOCK is defined by gnulib.
8697         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8698         is zero.
8699         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8700         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8701         defined by gnulib.
8702         (get_nonblocking_flag): New function.
8703         (main): Test O_NONBLOCK flag only if it is nonzero.
8704         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8705
8706 2011-06-03  Jim Meyering  <meyering@redhat.com>
8707
8708         maint: three new prohibit-header-without-use rules
8709         Prohibit use of cloexec.h, posixver.h, same.h without use.
8710         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8711         (sc_prohibit_posixver_without_use): Likewise.
8712         (sc_prohibit_same_without_use): Likewise.
8713
8714 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8715
8716         allocator: 'die' routine is now given requested size
8717         * lib/allocator.h (struct allocator.die): New size arg.
8718         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8719         If the actual problem is an ssize_t limitation, not a size_t or
8720         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8721
8722 2011-06-01  Eric Blake  <eblake@redhat.com>
8723
8724         strerror: drop strerror_r dependency
8725         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8726         * lib/strerror-override.c (strerror_override): ...to new file.
8727         * lib/strerror-override.h: Add prototype.
8728         * lib/strerror-impl.h: Delete.
8729         * lib/strerror.c (strerror): New implementation.
8730         * modules/errno (Files): Add new files.
8731         (configure.ac): Compile new file as appropriate.
8732         * modules/strerror (Files): Drop unused file.
8733         (Depends-on): Drop strerror_r-posix.
8734         * MODULES.html.sh: Document strerror_r-posix.
8735         Requested by Sam Steingold.
8736
8737         perror: call strerror_r directly
8738         * modules/perror (Files): Drop strerror-impl.h.
8739         * lib/perror.c (perror): Use our own stack buffer, rather than
8740         calling a wrapper that uses static storage.
8741         * doc/posix-functions/perror.texi (perror): Document a limitation
8742         of our replacement.
8743
8744         strerror_r: fix includes for FreeBSD
8745         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8746         since we use abort on some platforms.
8747         Reported by Matthias Bolte.
8748
8749 2011-05-31  Bruno Haible  <bruno@clisp.org>
8750
8751         Fix link errors in tests: openat-die uses gettext-h.
8752         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8753         against $(LIBINTL).
8754         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8755         against $(LIBINTL).
8756         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8757         $(LIBINTL).
8758         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8759         against $(LIBINTL).
8760         * modules/linkat-tests (Makefile.am): Link test-linkat against
8761         $(LIBINTL).
8762         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8763         $(LIBINTL).
8764         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8765         against $(LIBINTL).
8766         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8767         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8768         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8769         $(LIBINTL).
8770         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8771         $(LIBINTL).
8772         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8773         $(LIBINTL).
8774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8775
8776 2011-05-31  Bruno Haible  <bruno@clisp.org>
8777
8778         Fix link errors in tests: wait-process uses gettext-h.
8779         * modules/nonblocking-pipe-tests (Makefile.am): Set
8780         test_nonblocking_pipe_main_LDADD.
8781         * modules/nonblocking-socket-tests (Makefile.am): Link
8782         test-nonblocking-socket-main against $(LIBINTL).
8783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8784
8785 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8786
8787         assert-h: work around 'verify' incompatibility
8788         * lib/verify.h: Use @...@ directives, not ifdef.
8789         * modules/assert-h (assert.h): Implement the directives.
8790         (assert.h): Substitute the symbol-prefix more consistently.
8791
8792 2011-05-29  Jim Meyering  <meyering@redhat.com>
8793
8794         trim: remove three superfluous assignments
8795         * lib/trim.c (trim2): Remove three superfluous assignments
8796         and correct brace positioning.
8797
8798 2011-05-29  Bruno Haible  <bruno@clisp.org>
8799
8800         wctype-h: Avoid namespace pollution on Solaris 2.6.
8801         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8802         identifiers.
8803         * doc/posix-headers/wctype.texi: Mention the problem.
8804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8805
8806 2011-05-28  Jim Meyering  <meyering@redhat.com>
8807
8808         parse-datetime.y: accommodate -Wstrict-overflow
8809         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8810         placate -Wstrict-overflow.
8811
8812         trim: avoid a warning from -O2 -Wstrict-overflow
8813         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8814
8815 2011-05-29  Bruno Haible  <bruno@clisp.org>
8816
8817         gnulib-tool: Fix bug in yesterday's commit.
8818         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8819         twice.
8820
8821 2011-05-29  Bruno Haible  <bruno@clisp.org>
8822
8823         Allow multiple gnulib generated include files to be combined.
8824         * gnulib-tool (func_compute_include_guard_prefix): New function.
8825         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8826         ${gl_include_guard_prefix} references.
8827         (func_import, func_create_testdir): Invoke
8828         func_compute_include_guard_prefix.
8829         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8830         * lib/ctype.in.h: Likewise.
8831         * lib/dirent.in.h: Likewise.
8832         * lib/errno.in.h: Likewise.
8833         * lib/fcntl.in.h: Likewise.
8834         * lib/float.in.h: Likewise.
8835         * lib/getopt.in.h: Likewise.
8836         * lib/iconv.in.h: Likewise.
8837         * lib/langinfo.in.h: Likewise.
8838         * lib/locale.in.h: Likewise.
8839         * lib/math.in.h: Likewise.
8840         * lib/netdb.in.h: Likewise.
8841         * lib/netinet_in.in.h: Likewise.
8842         * lib/poll.in.h: Likewise.
8843         * lib/pthread.in.h: Likewise.
8844         * lib/pty.in.h: Likewise.
8845         * lib/sched.in.h: Likewise.
8846         * lib/se-selinux.in.h: Likewise.
8847         * lib/search.in.h: Likewise.
8848         * lib/signal.in.h: Likewise.
8849         * lib/spawn.in.h: Likewise.
8850         * lib/stdarg.in.h: Likewise.
8851         * lib/stddef.in.h: Likewise.
8852         * lib/stdint.in.h: Likewise.
8853         * lib/stdio.in.h: Likewise.
8854         * lib/stdlib.in.h: Likewise.
8855         * lib/string.in.h: Likewise.
8856         * lib/strings.in.h: Likewise.
8857         * lib/sys_file.in.h: Likewise.
8858         * lib/sys_ioctl.in.h: Likewise.
8859         * lib/sys_select.in.h: Likewise.
8860         * lib/sys_socket.in.h: Likewise.
8861         * lib/sys_stat.in.h: Likewise.
8862         * lib/sys_time.in.h: Likewise.
8863         * lib/sys_times.in.h: Likewise.
8864         * lib/sys_uio.in.h: Likewise.
8865         * lib/sys_utsname.in.h: Likewise.
8866         * lib/sys_wait.in.h: Likewise.
8867         * lib/sysexits.in.h: Likewise.
8868         * lib/termios.in.h: Likewise.
8869         * lib/time.in.h: Likewise.
8870         * lib/unistd.in.h: Likewise.
8871         * lib/wchar.in.h: Likewise.
8872         * lib/wctype.in.h: Likewise.
8873         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8874         * modules/ctype (Makefile.am): Likewise.
8875         * modules/dirent (Makefile.am): Likewise.
8876         * modules/errno (Makefile.am): Likewise.
8877         * modules/fcntl-h (Makefile.am): Likewise.
8878         * modules/float (Makefile.am): Likewise.
8879         * modules/getopt-posix (Makefile.am): Likewise.
8880         * modules/iconv-h (Makefile.am): Likewise.
8881         * modules/langinfo (Makefile.am): Likewise.
8882         * modules/locale (Makefile.am): Likewise.
8883         * modules/math (Makefile.am): Likewise.
8884         * modules/netdb (Makefile.am): Likewise.
8885         * modules/netinet_in (Makefile.am): Likewise.
8886         * modules/poll-h (Makefile.am): Likewise.
8887         * modules/pthread (Makefile.am): Likewise.
8888         * modules/pty (Makefile.am): Likewise.
8889         * modules/sched (Makefile.am): Likewise.
8890         * modules/search (Makefile.am): Likewise.
8891         * modules/selinux-h (Makefile.am): Likewise.
8892         * modules/signal (Makefile.am): Likewise.
8893         * modules/spawn (Makefile.am): Likewise.
8894         * modules/stdarg (Makefile.am): Likewise.
8895         * modules/stddef (Makefile.am): Likewise.
8896         * modules/stdint (Makefile.am): Likewise.
8897         * modules/stdio (Makefile.am): Likewise.
8898         * modules/stdlib (Makefile.am): Likewise.
8899         * modules/string (Makefile.am): Likewise.
8900         * modules/strings (Makefile.am): Likewise.
8901         * modules/sys_file (Makefile.am): Likewise.
8902         * modules/sys_ioctl (Makefile.am): Likewise.
8903         * modules/sys_select (Makefile.am): Likewise.
8904         * modules/sys_socket (Makefile.am): Likewise.
8905         * modules/sys_stat (Makefile.am): Likewise.
8906         * modules/sys_time (Makefile.am): Likewise.
8907         * modules/sys_times (Makefile.am): Likewise.
8908         * modules/sys_uio (Makefile.am): Likewise.
8909         * modules/sys_utsname (Makefile.am): Likewise.
8910         * modules/sys_wait (Makefile.am): Likewise.
8911         * modules/sysexits (Makefile.am): Likewise.
8912         * modules/termios (Makefile.am): Likewise.
8913         * modules/time (Makefile.am): Likewise.
8914         * modules/unistd (Makefile.am): Likewise.
8915         * modules/wchar (Makefile.am): Likewise.
8916         * modules/wctype-h (Makefile.am): Likewise.
8917         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8918
8919 2011-05-29  Bruno Haible  <bruno@clisp.org>
8920
8921         assert-h: Allow multiple gnulib generated replacements to coexist.
8922         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8923
8924 2011-05-29  Bruno Haible  <bruno@clisp.org>
8925
8926         argp: Allow coexistence with strerror_r-posix module.
8927         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8928         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8929         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8930         not the glibc signature.
8931
8932 2011-05-28  Bruno Haible  <bruno@clisp.org>
8933
8934         gnulib-tool: Alternative structure of testdirs, similar to --import.
8935         * gnulib-tool: New option --single-configure.
8936         (func_usage): Document it.
8937         (single_configure): New variable.
8938         (func_modules_transitive_closure_separately,
8939         func_modules_transitive_closure_separately,
8940         func_determine_use_libtests, func_modules_add_dummy_separately,
8941         func_modules_to_filelist_separately): New functions, extracted from
8942         func_import.
8943         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8944         (func_import): Use the new functions.
8945         (func_create_testdir): Set final_modules. Handle $single_configure =
8946         true case.
8947
8948 2011-05-28  Bruno Haible  <bruno@clisp.org>
8949
8950         getloadavg: Remove an unreliable safety check.
8951         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8952         getloadavg.c is in place.
8953         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8954         Reported by Sam Steingold <sds@gnu.org>.
8955
8956 2011-05-28  Bruno Haible  <bruno@clisp.org>
8957
8958         doc: Cleanup yet another file produced by texinfo.tex.
8959         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8960
8961 2011-05-28  Bruno Haible  <bruno@clisp.org>
8962
8963         Finish the conditional dependencies mechanism.
8964         * gnulib-tool: New option --no-conditional-dependencies.
8965         (func_usage): Document it. Don't mark --conditional-dependencies as
8966         experimental.
8967         (cond_dependencies): The possible values can now be true, false, empty.
8968         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8969         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8970         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8971
8972 2011-05-28  Bruno Haible  <bruno@clisp.org>
8973
8974         doc: Use a recent texinfo.tex.
8975         * doc/Makefile (tex_opts): New variable.
8976         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8977
8978 2011-05-28  Jim Meyering  <meyering@redhat.com>
8979
8980         intprops.h: adjust comment to match code change
8981         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8982         only once, it *may* have side effects.  Also fix an unrelated typo.
8983         (_GL_INT_SIGNED): Likewise.
8984
8985 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8986
8987         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8988
8989 2011-05-26  Bruno Haible  <bruno@clisp.org>
8990
8991         mbsrchr: Avoid collision with system function on Interix.
8992         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8993         Reported by Markus Duft <mduft@gentoo.org>.
8994
8995 2011-05-15  James Youngman  <jay@gnu.org>
8996
8997         getopt: for ambiguous options, enumerate the possibilities.
8998         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8999         the ambiguous options when an ambiguous prefix is given. This was
9000         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9001         glibc change was
9002         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9003
9004 2011-05-25  Eric Blake  <eblake@redhat.com>
9005
9006         getcwd: work around mingw bug
9007         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9008         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9009         Reported by Matthias Bolte.
9010
9011 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9012
9013         test-intprops: disable -Wtype-limits diagnostics
9014         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9015         diagnostics.  Otherwise, the integer overflow macros generate many
9016         diagnostics.  Reported by Jim Meyering in
9017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9018
9019         intprops: shorten, to pacify gcc -Woverlength-strings
9020         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9021         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9022         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9023         likely to run afoul of C compiler limits for string constant lengths.
9024         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9025
9026 2011-05-24  Eric Blake  <eblake@redhat.com>
9027
9028         docs: document recently fixed glibc printf bug
9029         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9030         * doc/posix-functions/printf.texi (printf): Likewise.
9031         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9032         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9033
9034         closein-tests: convert to init.sh
9035         * modules/closein-tests (Files): Add init.sh
9036         * tests/test-closein.sh Use it.
9037
9038         yesno-tests: convert to init.sh
9039         * modules/yesno-tests (Files): Add init.sh.
9040         * tests/test-yesno.sh: Use it.
9041
9042         atexit-tests: ensure reliable exit status
9043         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9044         Reported by Bruno Haible.
9045
9046 2011-05-24  Bruno Haible  <bruno@clisp.org>
9047
9048         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9050         gl_PREREQ_STRERROR_R invocations from here...
9051         * modules/strerror_r-posix (configure.ac): ... to here.
9052
9053 2011-05-24  Eric Blake  <eblake@redhat.com>
9054
9055         strerror_r: fix missing header
9056         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9057
9058         strerror_r: fix AIX test failures
9059         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9060         ERANGE failure.
9061
9062         strerror_r: fix Solaris test failures
9063         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9064         failures.
9065         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9066
9067         strerror_r: enforce POSIX recommendations
9068         * lib/strerror_r.c (safe_copy): New helper method.
9069         (strerror_r): Guarantee a non-empty string.
9070         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9071         recent POSIX rulings and to match our strerror guarantees.
9072         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9073
9074 2011-05-24  Jim Meyering  <meyering@redhat.com>
9075
9076         test-perror2.c: avoid warning about unused variable
9077         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9078
9079 2011-05-24  Eric Blake  <eblake@redhat.com>
9080
9081         perror: avoid spurious test failure on HP-UX
9082         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9083
9084         tests: fix logic bug in init.sh
9085         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9086         shell.
9087
9088 2011-05-24  Jim Meyering  <meyering@redhat.com>
9089
9090         utimensat: do not reference an out-of-scope buffer
9091         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9092         declared in an inner scope, yet "times" would be dereferenced outside
9093         the scope in which "ts" was valid.
9094         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9095         of ts[2] "out/up", so that the use of aliased "times" (via
9096         "times = ts;") does not end up referencing an out-of-scope "ts"
9097
9098         opendir-safer.c: don't clobber errno; don't close negative FD
9099         * lib/opendir-safer.c (opendir_safer):
9100         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9101         file descriptor, and more importantly, don't clobber the
9102         offending errno value with EINVAL.  Before, upon failure
9103         of dup_safer, we would pass the negative file descriptor to
9104         fdopendir, which would clobber errno.
9105
9106 2011-05-23  Bruno Haible  <bruno@clisp.org>
9107
9108         idcache: Fix module description.
9109         * modules/idcache (Include): Set to "idcache.h".
9110
9111 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9112
9113         gnulib-tool: fix portability problem with MacOS sed
9114         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9115         before the "}".  Problem reported by Leo in
9116         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9117         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9118         sed_extract_condition1, sed_extract_condition2.
9119
9120 2011-05-23  Bruno Haible  <bruno@clisp.org>
9121
9122         hash: Simplify autoconf macro.
9123         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9124
9125 2011-05-23  Bruno Haible  <bruno@clisp.org>
9126
9127         getugroups: Fix module description.
9128         * modules/getugroups (Include): Set to "getugroups.h".
9129
9130 2011-05-23  Bruno Haible  <bruno@clisp.org>
9131
9132         linkat: Simplify autoconf macro.
9133         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9134
9135 2011-05-23  Bruno Haible  <bruno@clisp.org>
9136             Eric Blake  <eblake@redhat.com>
9137
9138         linkat, renameat: Update dependencies.
9139         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9140         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9141         symlinkat.
9142
9143 2011-05-23  Jim Meyering  <meyering@redhat.com>
9144
9145         maint.mk: more tight_scope improvements
9146         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9147         (_gl_TS_headers): Define only in if-0'd block.
9148         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9149         sometimes we must *not* use it.  Adjust uses accordingly.
9150         (sc_tight_scope): Use much simpler grep-based test to determine
9151         whether we skip this rule.
9152
9153         maint.mk: generalize/improve the tight-scope rule
9154         * top/maint.mk: Emit a warning when the test is skipped.
9155         (_gl_TS_dir): Add $(srcdir)/ prefix.
9156         (_gl_TS_function_match): Simplify, rather than trying
9157         to enumerate common types.  Otherwise, it would fail to match an
9158         "extern unsigned char const *" declaration in idutils.
9159         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9160         a way to support use of that type of macro.
9161         (_gl_TS_var_match): Simplify regexp.
9162         (_gl_TS_obj_files): New configurable variable.
9163         (_gl_TS_headers): Likewise.
9164
9165 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9166
9167         verify: fix bug when gnulib <assert.h> is also included
9168         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9169         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9170         Perhaps there's a better way, but this fixes the immediate problem.
9171         Problem reported by Bruno Haible in
9172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9173
9174 2011-05-22  Bruno Haible  <bruno@clisp.org>
9175
9176         xgetcwd: Simplify autoconf macro.
9177         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9178
9179 2011-05-22  Bruno Haible  <bruno@clisp.org>
9180
9181         New module 'mktime-internal'.
9182         * modules/mktime-internal: New file.
9183         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9184         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9185         mktime_internal as a C macro if libc has __mktime_internal.
9186         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9187         conditions.
9188         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9189
9190 2011-05-22  Bruno Haible  <bruno@clisp.org>
9191
9192         timegm: Correct mktime replacement statements.
9193         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9194         defining mktime as a C macro. This completes a 2009-07-28 commit.
9195
9196 2011-05-22  Bruno Haible  <bruno@clisp.org>
9197
9198         timegm: Simplify autoconf macro.
9199         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9200
9201 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9202
9203         clock-time: change to LGPLv2+.
9204         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9205         BSD-like but we have no mark for that; this is good enough for now.
9206
9207 2011-05-21  Bruno Haible  <bruno@clisp.org>
9208
9209         strerror_r: Fix comments.
9210         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9211
9212 2011-05-21  Bruno Haible  <bruno@clisp.org>
9213
9214         relocatable-prog-wrapper: Fix possible link error.
9215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9216         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9217         (gl_FUNC_SETENV): ... to here.
9218         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9219         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9220
9221 2011-05-21  Bruno Haible  <bruno@clisp.org>
9222
9223         relocatable-prog-wrapper: Assume strerror() exists.
9224         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9225         m4/strerror.m4.
9226         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9227         * lib/relocwrapper.c: Remove mention of strerror module.
9228         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9229         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9230         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9231         C macro.
9232
9233 2011-05-21  Bruno Haible  <bruno@clisp.org>
9234
9235         select: Simplify replacement idiom.
9236         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9237         Win32 platforms.
9238         * lib/sys_select.in.h (select): Simplify accordingly.
9239         * modules/select (Depends-on): Likewise.
9240
9241 2011-05-21  Bruno Haible  <bruno@clisp.org>
9242
9243         mkdir-p: Simplify autoconf macro.
9244         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9245         gl_FUNC_LCHOWN.
9246
9247 2011-05-21  Eric Blake  <eblake@redhat.com>
9248
9249         strerror_r: avoid clobbering strerror on cygwin
9250         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9251         fall back instead to sys_errlist.
9252         * modules/strerror (configure.ac): Add witness.
9253         * tests/test-strerror_r.c (main): Enhance test.
9254         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9255         * tests/test-perror2.c (main): Free memory before exit.
9256
9257 2011-05-21  Bruno Haible  <bruno@clisp.org>
9258
9259         mkdtemp: Use gnulib naming conventions.
9260         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9261         * modules/mkdtemp (configure.ac): Update.
9262
9263 2011-05-20  Eric Blake  <eblake@redhat.com>
9264
9265         strerror_r: avoid corrupting errno on Solaris
9266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9267         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9268
9269         strerror_r: avoid compiler warning
9270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9271
9272         strerror_r: simplify AIX code
9273         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9274
9275         test-perror: avoid spurious failure on FreeBSD
9276         * modules/perror-tests (Depends-on): Add strerror, now that
9277         strerror_r no longer pulls it in.
9278
9279 2011-05-20  Bruno Haible  <bruno@clisp.org>
9280
9281         strerror_r-posix: Remove unused dependencies.
9282         * modules/strerror_r-posix (Depends-on): Remove strerror.
9283         Reported by Eric Blake.
9284
9285 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9286
9287         intprops: remove assumption about A|B representation
9288         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9289         is a valid integer if both A and B are.  Although this is true for
9290         all known practical hosts, the C standard doesn't guarantee it,
9291         and the code need not assume it.  Also, this change may work around
9292         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9294
9295 2011-05-20  Eric Blake  <eblake@redhat.com>
9296
9297         perror: work around FreeBSD bug
9298         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9299         is broken.  Move AC_LIBOBJ...
9300         * modules/perror (configure.ac): Here.
9301         * doc/posix-functions/perror.texi (perror): Document this.
9302         * tests/test-perror2.c (main): Enhance test.
9303
9304         test-perror: check for strerror interactions
9305         * tests/macros.h (STREQ): Add macro.
9306         * modules/perror-tests (Files): Add second test.
9307         * tests/test-perror2.c (main): New file.
9308         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9309
9310         test-perror: rewrite to use init script
9311         * modules/perror-tests (Files): Add init.sh.
9312         * tests/test-perror.sh: Use temporary directory.
9313
9314 2011-05-20  Jim Meyering  <meyering@redhat.com>
9315
9316         maint: replace misused "a" with "an"
9317         * doc/intprops.texi: "a integer"
9318         * doc/regex.texi: "a explanation"
9319         * lib/alignof.h: "a object"
9320         * lib/argmatch.h: "a explanation"
9321         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9322         * lib/stdint.in.h: "a integer"
9323         * lib/userspec.c: "a owner"
9324         * doc/gnulib.texi: Fix "a idea", and reword.
9325
9326 2011-05-19  Jim Meyering  <meyering@redhat.com>
9327
9328         maint: correct misuse of "a" and "an"
9329         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9330         * lib/argp-help.c: "an docum...": s/an/a/
9331         * lib/argp-parse.c: "An vector": s/An/A/
9332         * lib/execute.c: "an native": s/an/a/
9333         * lib/spawn-pipe.c: Likewise.
9334         * lib/gc.h: "an Gc_rc": s/an/a/
9335         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9336         * lib/fts.c: "an stat.st_dev": s/an/a/
9337
9338 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9339
9340         intprops-tests: work around HP-UX 11.23 cc bug with constants
9341         * tests/test-intprops.c (VERIFY): New macro.
9342         (main): Use it, instead of verify, to work around the compiler bug; see
9343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9344
9345         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9346         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9347         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9348         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9349         (_GL_REMAINDER_OVERFLOW): Use it.
9350
9351         intprops-tests: revert unsigned part of previous change
9352         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9353         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9354         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9356
9357 2011-05-19  Bruno Haible  <bruno@clisp.org>
9358
9359         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9360         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9361         strerror_r() returned without filling the buffer.
9362         Reported by Eric Blake.
9363
9364 2011-05-19  Eric Blake  <eblake@redhat.com>
9365
9366         strerror_r: guarantee unchanged errno
9367         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9368         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9369         failure.
9370         * tests/test-strerror_r.c (main): Enhance test.
9371
9372 2011-05-19  Bruno Haible  <bruno@clisp.org>
9373
9374         strerror_r: Reorder #if blocks.
9375         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9376         for consistency with the previous commit.
9377
9378 2011-05-19  Bruno Haible  <bruno@clisp.org>
9379
9380         perror: Avoid clobbering the strerror buffer when possible.
9381         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9382         * lib/strerror.c: Include it.
9383         * modules/strerror (Files): Add lib/strerror-impl.h.
9384         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9385         (my_strerror): New function, defined through lib/strerror-impl.h.
9386         (perror): Use it instead of strerror.
9387         * modules/perror (Files): Add lib/strerror-impl.h.
9388         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9389
9390 2011-05-19  Eric Blake  <eblake@redhat.com>
9391
9392         strerror_r: fix on newer cygwin
9393         * lib/strerror_r.c (strerror_r): Cygwin now has
9394         __xpg_strerror_r, use it.
9395
9396 2011-05-19  Bruno Haible  <bruno@clisp.org>
9397
9398         strerror_r: Avoid clobbering the strerror buffer when possible.
9399         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9400         (sys_nerr, sys_errlist): New declarations.
9401         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9402         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9403         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9404
9405 2011-05-19  Bruno Haible  <bruno@clisp.org>
9406
9407         strerror_r: Fix test failure on mingw.
9408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9409         EXTEND_STRERROR_R.
9410         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9411         macros from errno.in.h instead.
9412
9413 2011-05-19  Eric Blake  <eblake@redhat.com>
9414
9415         strerror: relax test for Solaris
9416         * tests/test-strerror.c (main): Permit Solaris behavior.
9417         * tests/test-strerror_r.c (main): Likewise.
9418
9419         strerror: enforce POSIX ruling on strerror(0)
9420         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9422         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9423         * doc/posix-functions/strerror.texi (strerror): Document it.
9424         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9425         * tests/test-strerror.c (main): Strengthen test.
9426         * tests/test-strerror_r.c (main): Likewise.
9427
9428 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9429
9430         intprop-tests: port to older and more-pedantic compilers
9431         * modules/intprops-tests (Files): Add tests/macros.h.
9432         * tests/test-intprops.c: Include macros.h.
9433         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9434         it's no longer documented to expand to an integer constant expression.
9435         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9436         argument is floating point, as it's no longer documented to expand
9437         to an integer constant expression in that case.
9438         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9439         compiler bugs reported by Bruno Haible.  See
9440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9441         (U0, U1): New constants, to work around the same bugs.  Also,
9442         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9443
9444         intprops: work around C compiler bugs
9445         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9446         bug in Sun C 5.11 2010/08/13 and other compilers; see
9447         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9448
9449         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9450         * doc/intprops.texi (Integer Type Determination): Fix
9451         documentation for TYPE_IS_INTEGER: it returns an constant
9452         expression, not an integer constant expression.  Fix doc for
9453         TYPE_SIGNED: it returns an integer constant expression only if its
9454         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9455         hardly worth documented that way....)
9456
9457 2011-05-18  Bruno Haible  <bruno@clisp.org>
9458
9459         strerror_r: Avoid clobbering the strerror buffer when possible.
9460         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9461         Handle gnulib defined errno values here. When strerror() returns NULL
9462         or an empty string, return EINVAL.
9463         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9464         gnulib defined errno values here.
9465         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9466
9467 2011-05-18  Eric Blake  <eblake@redhat.com>
9468
9469         fnmatch: avoid compiler warning
9470         * lib/fnmatch_loop.c (FCT): Use correct type.
9471         Reported by Matthias Bolte.
9472
9473 2011-05-13  Jim Meyering  <meyering@redhat.com>
9474
9475         maint.mk: three new prohibit_<HDR>_without_use rules
9476         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9477         (sc_prohibit_stdio-safer_without_use): Likewise.
9478         (sc_prohibit_xfreopen_without_use): Likewise.
9479
9480 2011-05-17  Jim Meyering  <meyering@redhat.com>
9481
9482         announce-gen: fail if the NEWS delta is empty
9483         If there's nothing noteworthy in NEWS, then either you forgot
9484         or you shouldn't be releasing.
9485         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9486
9487 2011-05-17  Pádraig Brady <P@draigBrady.com>
9488
9489         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9490         reserved symbols starting with double underscore from the check.
9491
9492 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9493
9494         intprops: add doc
9495         * doc/intprops.texi: New file, documenting intprops.
9496         * doc/gnulib.texi (Particular Modules): Include it.
9497
9498         verify: add doc to gnulib manual and fix example
9499         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9500         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9501         (Compile-time Assertions): Fix example so it can't overflow.
9502
9503 2011-05-17  Jim Meyering  <meyering@redhat.com>
9504
9505         warnings.m4: don't usurp save_CPPFLAGS variable name
9506         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9507
9508         doc: fix typo
9509         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9510
9511 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9512             Bruno Haible  <bruno@clisp.org>
9513
9514         doc: Tweak recent change.
9515         * README (Portability guidelines): Tweak new text.
9516         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9517         Interix 6.1.
9518
9519 2011-05-16  Eric Blake  <eblake@redhat.com>
9520
9521         inttypes: avoid autoconf warning
9522         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9523         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9524
9525 2011-05-16  Sam Steingold <sds@gnu.org>
9526         and Eric Blake  <eblake@redhat.com>
9527
9528         vc-list-files: accept multiple directory operands
9529         * build-aux/vc-list-files: Iterate over all remaining operands.
9530
9531 2011-05-16  Bruno Haible  <bruno@clisp.org>
9532
9533         Fix confusion regarding deprecated modules.
9534         * modules/calloc (Status, Notice): Mark module as deprecated, not
9535         obsolete.
9536         * modules/fnmatch-posix (Status, Notice): Likewise.
9537         * modules/getdate (Status, Notice): Likewise.
9538         * modules/getopt (Status, Notice): Likewise.
9539         * modules/malloc (Status, Notice): Likewise.
9540         * modules/pipe (Status, Notice): Likewise.
9541         * modules/realloc (Status, Notice): Likewise.
9542         * modules/rename-dest-slash (Status, Notice): Likewise.
9543         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9544         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9545         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9546         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9547         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9548
9549 2011-05-16  Bruno Haible  <bruno@clisp.org>
9550
9551         doc: List the target platforms.
9552         * doc/gnulib-intro.texi (Target Platforms): New section.
9553         * doc/gnulib.texi (Introduction): Update menu.
9554         * README (Portability guidelines): Refer to the new section. Update
9555         statement about oldest supported environment. Remove rationale why
9556         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9557         unportable C89 function.
9558         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9559         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9560
9561 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9562
9563         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9564
9565 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9566
9567         intprops-tests: new module
9568         * modules/intprops-tests, tests/test-intprops.c: New files.
9569
9570         intprops: add safe, portable integer overflow checking
9571         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9572         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9573         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9574         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9575         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9576         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9577         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9578         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9579         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9580         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9581         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9582
9583 2011-05-12  James Youngman  <jay@gnu.org>
9584
9585         Add a test for glibc's Bugzilla bug #12378.
9586         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9587         doesn't allow the literal matching of a lone "[" (which is
9588         required by POSIX).
9589         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9590
9591 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9592
9593         Sync glibc change fixing Bugzilla bug #12378.
9594         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9595         beginning and fall back to matching as normal character if the
9596         string ends before the matching ']' is found.  This is what POSIX
9597         requires.
9598
9599 2011-05-13  Eric Blake  <eblake@redhat.com>
9600
9601         getcwd-lgpl: relax test for FreeBSD
9602         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9603         issue.
9604         * tests/test-getcwd-lgpl.c (main): Relax test.
9605         Reported by Matthias Bolte.
9606
9607 2011-05-11  Eric Blake  <eblake@redhat.com>
9608
9609         test-fflush: silence compiler warning
9610         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9611
9612 2011-05-11  Bruno Haible  <bruno@clisp.org>
9613
9614         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9615         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9616         * modules/canonicalize (Depends-on): Add 'nocrash'.
9617         * modules/canonicalize-lgpl (Depends-on): Likewise.
9618         * doc/posix-functions/realpath.texi: Update platforms list.
9619         Reported by Ryan Schmidt <ryandesign@macports.org>.
9620
9621 2011-05-11  Bruno Haible  <bruno@clisp.org>
9622
9623         group-member: Declare function in <unistd.h>.
9624         * lib/unistd.in.h (group_member): New declaration.
9625         * lib/group-member.h: Remove file.
9626         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9627         * tests/test-unistd-c++.cc: Check signature of group_member.
9628         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9629         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9630         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9631         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9632         HAVE_GROUP_MEMBER.
9633         * modules/group-member (Files): Remove lib/group-member.h.
9634         (Depends-on): Add unistd. Specify conditions.
9635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9636         (Include): Change to <unistd.h>.
9637         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9638         HAVE_GROUP_MEMBER.
9639         * NEWS: Mention the change.
9640         * lib/euidaccess.c: Don't include group-member.h.
9641
9642 2011-05-11  Bruno Haible  <bruno@clisp.org>
9643
9644         group-member: Document module.
9645         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9646         module.
9647
9648 2011-05-11  Bruno Haible  <bruno@clisp.org>
9649
9650         fclose: Fix mistake earlier today.
9651         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9652
9653 2011-05-11  Eric Blake  <eblake@redhat.com>
9654
9655         fclose: preserve fflush errors
9656         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9657         Reported by Jim Meyering.
9658
9659         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9660         * build-aux/bootstrap (check_versions): When no specific version
9661         is required, merely check that the app produces an exit status
9662         that indicates its existence.
9663
9664         maint.mk: drop redundant check
9665         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9666         the same but better.
9667
9668 2011-05-11  Bruno Haible  <bruno@clisp.org>
9669
9670         fclose: Fix possible link error.
9671         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9672         unregister_shadow_fd. Improve comments.
9673         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9674         Eric Blake.
9675
9676 2011-05-11  Jim Meyering  <meyering@redhat.com>
9677
9678         maint.mk: improve "can not" detection and generalize rule name
9679         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9680         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9681         Use the same technique as in sc_prohibit_doubled_word, so that
9682         we recognize "can not" also when the words are separated by a newline.
9683         Suggested by Eric Blake.
9684         (perl_filename_lineno_text_): Define.  Factored out of...
9685         (prohibit_doubled_word_): ...here.  Use the new definition.
9686         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9687         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9688         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9689
9690 2011-05-10  Eric Blake  <eblake@redhat.com>
9691
9692         fclose: avoid double close race when possible
9693         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9694         all but WINDOWS_SOCKETS.
9695
9696 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9697
9698         openat: correct new comment
9699         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9700
9701 2011-05-10  Jim Meyering  <meyering@redhat.com>
9702
9703         openat: add comments
9704         * lib/openat-proc.c (openat_proc_name): Add comments,
9705         mostly from Eric Blake.
9706
9707 2011-05-09  Eric Blake  <eblake@redhat.com>
9708
9709         openat: reduce syscalls in first probe of /proc
9710         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9711         be a directory.  Simplify the probe for .. bugs.
9712         * modules/openat (Depends-on): Drop same-inode.
9713         Reported by Bastien ROUCARIES.
9714
9715 2011-05-09  Jim Meyering  <meyering@redhat.com>
9716
9717         maint.mk: change semantics/name of tight_scope variables
9718         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9719         Rename variables to align with semantics that make them more useful.
9720
9721         maint.mk: tweak new rule's name not to impinge
9722         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9723         (sc_tight_scope): Use new rule name rather than $@-0.
9724
9725         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9726         * top/maint.mk (sc_tight_scope): New rule.
9727         (sc_tight_scope-0): New rule, ifdef'd out.
9728         (_gl_TS_dir): Default.
9729         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9730         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9731
9732 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9733
9734         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9735         Haible <bruno@clisp.org>.
9736
9737 2011-05-08  Bruno Haible  <bruno@clisp.org>
9738
9739         Comments.
9740         * m4/isnanf.m4: Add comment.
9741         * m4/isnanl.m4: Likewise.
9742
9743 2011-05-08  Bruno Haible  <bruno@clisp.org>
9744
9745         glob: Remove obsolete macro.
9746         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9747
9748 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9749
9750         intprops: Sun C 5.11 supports __typeof__
9751         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9752         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9753         which is new.
9754         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9755
9756         intprops: switch to usual gnulib indenting and naming
9757         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9758         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9759
9760         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9761
9762 2011-05-08  Jim Meyering  <meyering@redhat.com>
9763
9764         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9765         * top/maint.mk (release-prep): Use make's --no-print-directory
9766         option when generating the announcement.  This eliminates the
9767         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9768         generated announcement template.
9769
9770 2011-05-08  Bruno Haible  <bruno@clisp.org>
9771
9772         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9773         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9774         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9775
9776 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9777
9778         ignore-value, verify: Omit include files from lib_SOURCES.
9779         * modules/ignore-value, modules/verify (Makefile.am):
9780         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9781         that leads Automake to duplicate use of am__objects_... variables
9782         in Makefile.in.  See
9783         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9784
9785 2011-05-07  Bruno Haible  <bruno@clisp.org>
9786
9787         fclose: Simplify autoconf macro.
9788         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9789         defined.
9790
9791 2011-05-07  Bruno Haible  <bruno@clisp.org>
9792
9793         canonicalize-lgpl: Fix autoconf macro ordering bug.
9794         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9795         gl_STDLIB_H_DEFAULTS.
9796
9797 2011-05-06  Eric Blake  <eblake@redhat.com>
9798
9799         maintainer-makefile: make sc_po_check easier to tune
9800         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9801         to probe for strings, such as an alternate location for gnulib.
9802
9803         fclose: guarantee behavior on seekable stdin
9804         * modules/fclose (Depends-on): Add fflush.
9805         * doc/posix-functions/fclose.texi (fclose): Document this.
9806         * tests/test-fclose.c (main): Make test for this unconditional.
9807
9808 2011-05-06  Bruno Haible  <bruno@clisp.org>
9809
9810         fflush, fpurge: Relicense under LGPLv2+.
9811         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9812         * modules/fpurge (License): Likewise.
9813         With permission from Eric Blake and Jim Meyering.
9814         Suggested by Eric Blake.
9815
9816 2011-05-06  Karl Berry  <karl@gnu.org>
9817
9818         * MODULES.html.sh (func_all_modules): remove exit.
9819
9820 2011-05-06  Jim Meyering  <meyering@redhat.com>
9821
9822         maint.mk: use info-gnu@ as the default only for a stable release
9823         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9824         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9825         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9827
9828 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9829
9830         assert-h: new module, which supports C1X-style static_assert
9831         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9832         * lib/verify.h: Revamp so that this can be copied into assert.h,
9833         while retaining the ability to use it standalone as before.
9834         Rename private identifiers so as not to encroach on the
9835         standard C namespace, since this is now used by assert.h.
9836         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9837         the old verify_true.
9838         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9839         the old verify_true.  Use _GL_VERIFY_TYPE.
9840         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9841         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9842         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9843         defined when this file is copied into the replacement assert.h.
9844         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9845         and _Static_assert is not built in.
9846         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9847         defined, and use the new macros mentioned above.
9848         * doc/posix-headers/assert.texi: Document this.
9849
9850 2011-05-05  Bruno Haible  <bruno@clisp.org>
9851
9852         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9853         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9854         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9855         gl_REPLACE_FCLOSE here.
9856         * modules/fflush (Depends-on): Remove fclose.
9857         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9858         combination with module 'fclose'.
9859
9860 2011-05-05  Bruno Haible  <bruno@clisp.org>
9861
9862         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9863         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9864         gl_FUNC_FFLUSH.
9865         (gl_FUNC_FFLUSH): Use it.
9866         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9867         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9868         gl_REPLACE_FSEEKO here.
9869
9870 2011-05-05  Bruno Haible  <bruno@clisp.org>
9871
9872         tzset: Relicense under LGPL.
9873         * modules/tzset (License): Change to LGPL.
9874         No agreement needed; it's a no-op.
9875
9876         strtoimax, strtoumax: Relicense under LGPL.
9877         * modules/strtoimax (License): Change to LGPL.
9878         * modules/strtoumax (License): Likewise.
9879         With permission from Jim Meyering, Paul Eggert:
9880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9882
9883         getgroups: Relicense under LGPL.
9884         * modules/getgroups (License): Change to LGPL.
9885         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9889
9890         nanosleep: Relicense under LGPL.
9891         * modules/nanosleep (License): Change to LGPL.
9892         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9893         Haible:
9894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9898
9899         futimens: Relicense under LGPL.
9900         * modules/futimens (License): Change to LGPL.
9901         With permission from Eric Blake:
9902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9903
9904         fflush: Relicense under LGPL.
9905         * modules/fflush (License): Change to LGPL.
9906         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9910
9911         tmpfile: Relicense under LGPL.
9912         * modules/tmpfile (License): Change to LGPL.
9913         With permission from Ben Pfaff:
9914         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9915
9916         isfinite: Relicense under LGPL.
9917         * modules/isfinite (License): Change to LGPL.
9918         With permission from Ben Pfaff, Bruno Haible:
9919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9921
9922         acosl..tanl: Relicense under LGPL.
9923         * modules/acosl (License): Change to LGPL.
9924         * modules/asinl (License): Likewise.
9925         * modules/atanl (License): Likewise.
9926         * modules/cosl (License): Likewise.
9927         * modules/expl (License): Likewise.
9928         * modules/logl (License): Likewise.
9929         * modules/sinl (License): Likewise.
9930         * modules/sqrtl (License): Likewise.
9931         * modules/tanl (License): Likewise.
9932         Source code originally from glibc and Paolo Bonzini. Agreements:
9933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9935
9936 2011-05-05  Bruno Haible  <bruno@clisp.org>
9937
9938         signal: Define sighandler_t.
9939         * lib/signal.in.h (sighandler_t): New type.
9940         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9941         whether sighandler_t is defined.
9942         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9943         * modules/signal (Depends-on): Add extensions.
9944         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9945         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9946         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9947
9948 2011-05-05  Eric Blake  <eblake@redhat.com>
9949
9950         maint: remove useless REPLACE_*_H macros
9951         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9952         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9953         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9954         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9955         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9956         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9957         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9958         * m4/btowc.m4: Update callers.
9959         * m4/dirfd.m4: Likewise.
9960         * m4/duplocale.m4: Likewise.
9961         * m4/fchdir.m4: Likewise.
9962         * m4/fdopendir.m4: Likewise.
9963         * m4/inet_ntop.m4: Likewise.
9964         * m4/inet_pton.m4: Likewise.
9965         * m4/ioctl.m4: Likewise.
9966         * m4/mbrlen.m4: Likewise.
9967         * m4/mbrtowc.m4: Likewise.
9968         * m4/mbsinit.m4: Likewise.
9969         * m4/mbsnrtowcs.m4: Likewise.
9970         * m4/mbsrtowcs.m4: Likewise.
9971         * m4/poll.m4: Likewise.
9972         * m4/setlocale.m4: Likewise.
9973         * m4/wcrtomb.m4: Likewise.
9974         * m4/wcsnrtombs.m4: Likewise.
9975         * m4/wcsrtombs.m4: Likewise.
9976         * m4/wctob.m4: Likewise.
9977         * m4/wcwidth.m4: Likewise.
9978         * modules/posix_spawn: Likewise.
9979         * modules/posix_spawn_file_actions_addclose: Likewise.
9980         * modules/posix_spawn_file_actions_adddup2: Likewise.
9981         * modules/posix_spawn_file_actions_addopen: Likewise.
9982         * modules/posix_spawn_file_actions_destroy: Likewise.
9983         * modules/posix_spawn_file_actions_init: Likewise.
9984         * modules/posix_spawnattr_destroy: Likewise.
9985         * modules/posix_spawnattr_getflags: Likewise.
9986         * modules/posix_spawnattr_getpgroup: Likewise.
9987         * modules/posix_spawnattr_getschedparam: Likewise.
9988         * modules/posix_spawnattr_getschedpolicy: Likewise.
9989         * modules/posix_spawnattr_getsigdefault: Likewise.
9990         * modules/posix_spawnattr_getsigmask: Likewise.
9991         * modules/posix_spawnattr_init: Likewise.
9992         * modules/posix_spawnattr_setflags: Likewise.
9993         * modules/posix_spawnattr_setpgroup: Likewise.
9994         * modules/posix_spawnattr_setschedparam: Likewise.
9995         * modules/posix_spawnattr_setschedpolicy: Likewise.
9996         * modules/posix_spawnattr_setsigdefault: Likewise.
9997         * modules/posix_spawnattr_setsigmask: Likewise.
9998         * modules/posix_spawnp: Likewise.
9999
10000 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10001
10002         Add option to do-release-commit-and-tag to specify branch.
10003         * build-aux/do-release-commit-and-tag: Add --branch.
10004
10005 2011-05-03  Bruno Haible  <bruno@clisp.org>
10006
10007         Avoid unnecessary compilation units, through conditional dependencies.
10008         * modules/accept (Depends-on): Add conditions to the dependencies.
10009         * modules/acosl (Depends-on): Likewise.
10010         * modules/argz (Depends-on): Likewise.
10011         * modules/asinl (Depends-on): Likewise.
10012         * modules/atanl (Depends-on): Likewise.
10013         * modules/atoll (Depends-on): Likewise.
10014         * modules/bind (Depends-on): Likewise.
10015         * modules/btowc (Depends-on): Likewise.
10016         * modules/canonicalize-lgpl (Depends-on): Likewise.
10017         * modules/ceil (Depends-on): Likewise.
10018         * modules/ceilf (Depends-on): Likewise.
10019         * modules/ceill (Depends-on): Likewise.
10020         * modules/chdir-long (Depends-on): Likewise.
10021         * modules/chown (Depends-on): Likewise.
10022         * modules/close (Depends-on): Likewise.
10023         * modules/connect (Depends-on): Likewise.
10024         * modules/cosl (Depends-on): Likewise.
10025         * modules/dirfd (Depends-on): Likewise.
10026         * modules/dprintf (Depends-on): Likewise.
10027         * modules/dprintf-posix (Depends-on): Likewise.
10028         * modules/error (Depends-on): Likewise.
10029         * modules/euidaccess (Depends-on): Likewise.
10030         * modules/expl (Depends-on): Likewise.
10031         * modules/faccessat (Depends-on): Likewise.
10032         * modules/fchdir (Depends-on): Likewise.
10033         * modules/fclose (Depends-on): Likewise.
10034         * modules/fcntl (Depends-on): Likewise.
10035         * modules/fdopendir (Depends-on): Likewise.
10036         * modules/fflush (Depends-on): Likewise.
10037         * modules/floor (Depends-on): Likewise.
10038         * modules/floorf (Depends-on): Likewise.
10039         * modules/floorl (Depends-on): Likewise.
10040         * modules/fnmatch (Depends-on): Likewise.
10041         * modules/fopen (Depends-on): Likewise.
10042         * modules/fprintf-posix (Depends-on): Likewise.
10043         * modules/frexp (Depends-on): Likewise.
10044         * modules/frexp-nolibm (Depends-on): Likewise.
10045         * modules/frexpl (Depends-on): Likewise.
10046         * modules/frexpl-nolibm (Depends-on): Likewise.
10047         * modules/fseek (Depends-on): Likewise.
10048         * modules/fsusage (Depends-on): Likewise.
10049         * modules/ftell (Depends-on): Likewise.
10050         * modules/ftello (Depends-on): Likewise.
10051         * modules/futimens (Depends-on): Likewise.
10052         * modules/getcwd (Depends-on): Likewise.
10053         * modules/getcwd-lgpl (Depends-on): Likewise.
10054         * modules/getdelim (Depends-on): Likewise.
10055         * modules/getdomainname (Depends-on): Likewise.
10056         * modules/getgroups (Depends-on): Likewise.
10057         * modules/gethostname (Depends-on): Likewise.
10058         * modules/getline (Depends-on): Likewise.
10059         * modules/getlogin_r (Depends-on): Likewise.
10060         * modules/getopt-posix (Depends-on): Likewise.
10061         * modules/getpeername (Depends-on): Likewise.
10062         * modules/getsockname (Depends-on): Likewise.
10063         * modules/getsockopt (Depends-on): Likewise.
10064         * modules/getsubopt (Depends-on): Likewise.
10065         * modules/getusershell (Depends-on): Likewise.
10066         * modules/glob (Depends-on): Likewise.
10067         * modules/grantpt (Depends-on): Likewise.
10068         * modules/iconv_open (Depends-on): Likewise.
10069         * modules/iconv_open-utf (Depends-on): Likewise.
10070         * modules/inet_ntop (Depends-on): Likewise.
10071         * modules/inet_pton (Depends-on): Likewise.
10072         * modules/ioctl (Depends-on): Likewise.
10073         * modules/isapipe (Depends-on): Likewise.
10074         * modules/isfinite (Depends-on): Likewise.
10075         * modules/isinf (Depends-on): Likewise.
10076         * modules/lchown (Depends-on): Likewise.
10077         * modules/ldexpl (Depends-on): Likewise.
10078         * modules/link (Depends-on): Likewise.
10079         * modules/linkat (Depends-on): Likewise.
10080         * modules/listen (Depends-on): Likewise.
10081         * modules/logl (Depends-on): Likewise.
10082         * modules/lstat (Depends-on): Likewise.
10083         * modules/mbrlen (Depends-on): Likewise.
10084         * modules/mbrtowc (Depends-on): Likewise.
10085         * modules/mbsinit (Depends-on): Likewise.
10086         * modules/mbsnrtowcs (Depends-on): Likewise.
10087         * modules/mbsrtowcs (Depends-on): Likewise.
10088         * modules/mbtowc (Depends-on): Likewise.
10089         * modules/memcmp (Depends-on): Likewise.
10090         * modules/mkdir (Depends-on): Likewise.
10091         * modules/mkdtemp (Depends-on): Likewise.
10092         * modules/mkfifo (Depends-on): Likewise.
10093         * modules/mkfifoat (Depends-on): Likewise.
10094         * modules/mknod (Depends-on): Likewise.
10095         * modules/mkostemp (Depends-on): Likewise.
10096         * modules/mkostemps (Depends-on): Likewise.
10097         * modules/mkstemp (Depends-on): Likewise.
10098         * modules/mkstemps (Depends-on): Likewise.
10099         * modules/mktime (Depends-on): Likewise.
10100         * modules/nanosleep (Depends-on): Likewise.
10101         * modules/open (Depends-on): Likewise.
10102         * modules/openat (Depends-on): Likewise.
10103         * modules/perror (Depends-on): Likewise.
10104         * modules/poll (Depends-on): Likewise.
10105         * modules/popen (Depends-on): Likewise.
10106         * modules/posix_spawn (Depends-on): Likewise.
10107         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10108         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10109         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10110         * modules/posix_spawnp (Depends-on): Likewise.
10111         * modules/pread (Depends-on): Likewise.
10112         * modules/printf-posix (Depends-on): Likewise.
10113         * modules/ptsname (Depends-on): Likewise.
10114         * modules/putenv (Depends-on): Likewise.
10115         * modules/pwrite (Depends-on): Likewise.
10116         * modules/readline (Depends-on): Likewise.
10117         * modules/readlink (Depends-on): Likewise.
10118         * modules/readlinkat (Depends-on): Likewise.
10119         * modules/recv (Depends-on): Likewise.
10120         * modules/recvfrom (Depends-on): Likewise.
10121         * modules/regex (Depends-on): Likewise.
10122         * modules/remove (Depends-on): Likewise.
10123         * modules/rename (Depends-on): Likewise.
10124         * modules/renameat (Depends-on): Likewise.
10125         * modules/rmdir (Depends-on): Likewise.
10126         * modules/round (Depends-on): Likewise.
10127         * modules/roundf (Depends-on): Likewise.
10128         * modules/roundl (Depends-on): Likewise.
10129         * modules/rpmatch (Depends-on): Likewise.
10130         * modules/select (Depends-on): Likewise.
10131         * modules/send (Depends-on): Likewise.
10132         * modules/sendto (Depends-on): Likewise.
10133         * modules/setenv (Depends-on): Likewise.
10134         * modules/setlocale (Depends-on): Likewise.
10135         * modules/setsockopt (Depends-on): Likewise.
10136         * modules/shutdown (Depends-on): Likewise.
10137         * modules/sigaction (Depends-on): Likewise.
10138         * modules/signbit (Depends-on): Likewise.
10139         * modules/sigprocmask (Depends-on): Likewise.
10140         * modules/sinl (Depends-on): Likewise.
10141         * modules/sleep (Depends-on): Likewise.
10142         * modules/snprintf (Depends-on): Likewise.
10143         * modules/snprintf-posix (Depends-on): Likewise.
10144         * modules/socket (Depends-on): Likewise.
10145         * modules/sprintf-posix (Depends-on): Likewise.
10146         * modules/sqrtl (Depends-on): Likewise.
10147         * modules/stat (Depends-on): Likewise.
10148         * modules/strchrnul (Depends-on): Likewise.
10149         * modules/strdup-posix (Depends-on): Likewise.
10150         * modules/strerror (Depends-on): Likewise.
10151         * modules/strerror_r-posix (Depends-on): Likewise.
10152         * modules/strndup (Depends-on): Likewise.
10153         * modules/strnlen (Depends-on): Likewise.
10154         * modules/strptime (Depends-on): Likewise.
10155         * modules/strsep (Depends-on): Likewise.
10156         * modules/strsignal (Depends-on): Likewise.
10157         * modules/strstr-simple (Depends-on): Likewise.
10158         * modules/strtod (Depends-on): Likewise.
10159         * modules/strtoimax (Depends-on): Likewise.
10160         * modules/strtok_r (Depends-on): Likewise.
10161         * modules/strtoumax (Depends-on): Likewise.
10162         * modules/symlink (Depends-on): Likewise.
10163         * modules/symlinkat (Depends-on): Likewise.
10164         * modules/tanl (Depends-on): Likewise.
10165         * modules/tcgetsid (Depends-on): Likewise.
10166         * modules/tmpfile (Depends-on): Likewise.
10167         * modules/trunc (Depends-on): Likewise.
10168         * modules/truncf (Depends-on): Likewise.
10169         * modules/truncl (Depends-on): Likewise.
10170         * modules/uname (Depends-on): Likewise.
10171         * modules/unlink (Depends-on): Likewise.
10172         * modules/unlockpt (Depends-on): Likewise.
10173         * modules/unsetenv (Depends-on): Likewise.
10174         * modules/usleep (Depends-on): Likewise.
10175         * modules/utimensat (Depends-on): Likewise.
10176         * modules/vasprintf (Depends-on): Likewise.
10177         * modules/vdprintf (Depends-on): Likewise.
10178         * modules/vdprintf-posix (Depends-on): Likewise.
10179         * modules/vfprintf-posix (Depends-on): Likewise.
10180         * modules/vprintf-posix (Depends-on): Likewise.
10181         * modules/vsnprintf (Depends-on): Likewise.
10182         * modules/vsnprintf-posix (Depends-on): Likewise.
10183         * modules/vsprintf-posix (Depends-on): Likewise.
10184         * modules/wcrtomb (Depends-on): Likewise.
10185         * modules/wcscasecmp (Depends-on): Likewise.
10186         * modules/wcscspn (Depends-on): Likewise.
10187         * modules/wcsdup (Depends-on): Likewise.
10188         * modules/wcsncasecmp (Depends-on): Likewise.
10189         * modules/wcsnrtombs (Depends-on): Likewise.
10190         * modules/wcspbrk (Depends-on): Likewise.
10191         * modules/wcsrtombs (Depends-on): Likewise.
10192         * modules/wcsspn (Depends-on): Likewise.
10193         * modules/wcsstr (Depends-on): Likewise.
10194         * modules/wcstok (Depends-on): Likewise.
10195         * modules/wcswidth (Depends-on): Likewise.
10196         * modules/wctob (Depends-on): Likewise.
10197         * modules/wctomb (Depends-on): Likewise.
10198         * modules/wctype (Depends-on): Likewise.
10199         * modules/wcwidth (Depends-on): Likewise.
10200         * modules/write (Depends-on): Likewise.
10201
10202 2011-05-03  Bruno Haible  <bruno@clisp.org>
10203
10204         Support for conditional dependencies.
10205         * doc/gnulib.texi (Module description): Document the syntax of
10206         conditional dependencies.
10207         * gnulib-tool: New option --conditional-dependencies.
10208         (func_usage): Document it.
10209         (cond_dependencies): New variable.
10210         (func_get_automake_snippet_conditional,
10211         func_get_automake_snippet_unconditional): New functions, extracted from
10212         func_get_automake_snippet.
10213         (func_get_automake_snippet): Use them.
10214         (sed_first_32_chars): New variable.
10215         (func_module_shellfunc_name): New function.
10216         (func_module_shellvar_name): New function.
10217         (func_module_conditional_name): New function.
10218         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10219         func_cond_module_condition): New functions.
10220         (func_modules_transitive_closure): Add support for conditional
10221         dependencies.
10222         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10223         conditional automake snippet in an automake conditional.
10224         (func_emit_autoconf_snippets): Emit shell functions that contain the
10225         code for conditional modules.
10226         (func_import, func_create_testdir): Update specification.
10227
10228 2011-05-03  Eric Blake  <eblake@redhat.com>
10229
10230         test-getaddrinfo: report error information
10231         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10232
10233 2011-05-03  Jim Meyering  <meyering@redhat.com>
10234
10235         bootstrap: avoid build failure when $GZIP is set
10236         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10237         program name.  If defined at all, it is supposed to list gzip options.
10238         Reported by Alan Curry in http://debbugs.gnu.org/8609
10239
10240 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10241
10242         readme-release: new module with release instructions
10243         * modules/readme-release: New module.
10244         * top/README-release: New file, from coreutils, grep, diffutils.
10245         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10246
10247 2011-05-02  Eric Blake  <eblake@redhat.com>
10248
10249         fflush: also replace fclose when fixing fflush
10250         * modules/fflush (Depends-on): Add fclose.
10251         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10252         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10253         memstreams with no backing fd.
10254         * doc/posix-functions/fclose.texi (fclose): Document the use of
10255         fflush module to fix the bug.
10256         * tests/test-fclose.c (main): Relax test when fclose is used in
10257         isolation.
10258
10259         fclose: add some tests
10260         * modules/fclose-tests: New test module.
10261         * tests/test-fclose.c: New file.
10262         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10263
10264         fclose: reduced dependencies
10265         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10266         simpler lseek.
10267         * lib/fclose.c (rpl_fclose): Likewise.
10268         Reported by Simon Josefsson.
10269
10270         exit: drop remaining clients
10271         * modules/argmatch (Depends-on): Replace exit with stdlib.
10272         * modules/copy-file (Depends-on): Likewise.
10273         * modules/execute (Depends-on): Likewise.
10274         * modules/exitfail (Depends-on): Likewise.
10275         * modules/obstack (Depends-on): Likewise.
10276         * modules/pagealign_alloc (Depends-on): Likewise.
10277         * modules/pipe-filter-gi (Depends-on): Likewise.
10278         * modules/pipe-filter-ii (Depends-on): Likewise.
10279         * modules/savewd (Depends-on): Likewise.
10280         * modules/spawn-pipe (Depends-on): Likewise.
10281         * modules/wait-process (Depends-on): Likewise.
10282         * modules/xsetenv (Depends-on): Likewise.
10283         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10284         * modules/git-merge-changelog (Depends-on): Likewise.
10285         * modules/long-options (Depends-on): Likewise.
10286         * modules/pt_chown (Depends-on): Likewise.
10287         * modules/sysexits (Depends-on): Likewise.
10288
10289         freading: relax license from LGPLv3+ to LGPLv2+
10290         * modules/freading (License): Relax LGPL version.
10291
10292 2011-05-02  Bruno Haible  <bruno@clisp.org>
10293
10294         fchdir: Remove unused dependencies.
10295         * modules/fchdir (Depends-on): Remove include_next.
10296
10297 2011-05-02  Bruno Haible  <bruno@clisp.org>
10298
10299         gnulib-tool: Refactor.
10300         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10301         from func_emit_autoconf_snippets.
10302         (func_emit_autoconf_snippets): Use it.
10303
10304 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10305
10306         * NEWS: Document removal of 'exit'.
10307         * modules/exit: Remove file.
10308
10309 2011-05-01  Bruno Haible  <bruno@clisp.org>
10310
10311         Update DEPENDENCIES.
10312         * DEPENDENCIES (gettext): Recommend the newest release.
10313         Reported by Simon Josefsson.
10314
10315 2011-05-01  Bruno Haible  <bruno@clisp.org>
10316
10317         gnulib-tool: Reduce code duplication.
10318         * gnulib-tool (func_emit_autoconf_snippets): New function.
10319         (func_import, func_create_testdir): Use it.
10320
10321 2011-04-30  Eric Blake  <eblake@redhat.com>
10322
10323         fclose: don't fail on non-seekable input stream
10324         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10325         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10326         since fflush is allowed to fail in that case.
10327
10328 2011-04-30  Bruno Haible  <bruno@clisp.org>
10329
10330         dup3: cleanup
10331         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10332
10333 2011-04-30  Bruno Haible  <bruno@clisp.org>
10334
10335         netdb: Make it work in C++ mode.
10336         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10337         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10338         module.
10339         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10340         gl_MODULE_INDICATOR_FOR_TESTS.
10341         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10342         * modules/netdb-c++-tests: New file.
10343         * tests/test-netdb-c++.cc: New file.
10344
10345 2011-04-30  Bruno Haible  <bruno@clisp.org>
10346
10347         New modules 'vfscanf', 'vscanf'.
10348         * modules/vfscanf: New file.
10349         * modules/vscanf: New file.
10350         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10351         here.
10352         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10353         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10354
10355 2011-04-30  Bruno Haible  <bruno@clisp.org>
10356
10357         passfd: Add comments.
10358         * lib/passfd.c: Add comments about platforms.
10359
10360 2011-04-30  Bruno Haible  <bruno@clisp.org>
10361
10362         sys_uio: Make <sys/uio.h> self-contained.
10363         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10364         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10365
10366 2011-04-30  Bruno Haible  <bruno@clisp.org>
10367
10368         sys_socket: Ensure 'struct iovec' definition.
10369         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10370         <sys/socket.h>.
10371         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10372
10373 2011-04-30  Bruno Haible  <bruno@clisp.org>
10374
10375         sys_uio: Protect definition of 'struct iovec'.
10376         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10377         it as a C struct.
10378
10379 2011-04-30  Bruno Haible  <bruno@clisp.org>
10380
10381         manywarnings: fix indentation
10382         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10383
10384 2011-04-30  Pádraig Brady <P@draigBrady.com>
10385
10386         manywarnings: add -Wno-missing-field-initializers if needed.
10387         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10388         option if it's needed to allow initialization with { 0, }
10389
10390 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10391
10392         announce-gen: cosmetic improvement
10393         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10394
10395 2011-04-29  Jim Meyering  <meyering@redhat.com>
10396
10397         vc-list-files: indent with spaces, not TABs
10398         * build-aux/vc-list-files: Convert leading TABs to spaces,
10399         to match the style of most other files in gnulib.
10400
10401         announce-gen: indent with spaces, not TABs
10402         * build-aux/announce-gen: Convert all TABs to spaces, to match
10403         the style of most other files in gnulib.
10404
10405 2011-04-29  Eric Blake  <eblake@redhat.com>
10406
10407         quotearg: avoid uninitialized variable use
10408         * lib/quotearg.c (quoting_options_from_style): Initialize
10409         remaining fields, and ensure that custom styles are only used via
10410         quoting_options rather than quoting_style.
10411
10412 2011-04-29  Jim Meyering  <meyering@redhat.com>
10413
10414         maint.mk: remove unused VC-tag variable
10415         * top/maint.mk (VC-tag): Remove unused variable.
10416
10417 2011-04-29  Bruno Haible  <bruno@clisp.org>
10418
10419         netdb: fix gai_strerror replacements
10420         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10421         * modules/netdb: Substitute it.
10422
10423 2011-04-29  Jim Meyering  <meyering@redhat.com>
10424
10425         test-getcwd.c: avoid new set-but-not-used warning
10426         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10427         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10428         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10429         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10430
10431         test-hash.c: avoid a new shadowing warning
10432         * tests/test-hash.c (main): Don't shadow "dup".
10433
10434 2011-04-28  Eric Blake  <eblake@redhat.com>
10435
10436         getaddrinfo: fix gai_strerror signature
10437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10438         and work around mingw with UNICODE defined.
10439         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10440         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10441         * modules/netdb (Makefile.am): Substitute it.
10442         * lib/netdb.in.h (gai_strerror): Declare replacement.
10443         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10444         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10445         the fix.
10446
10447         getsockopt: avoid compiler warning
10448         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10449         Reported by Matthias Bolte.
10450
10451         tests: drop unused link dependency
10452         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10453         * modules/dirent-safer-tests (Makefile.am): Likewise.
10454         * modules/fdopendir-tests (Makefile.am): Likewise.
10455         * modules/mkfifoat-tests (Makefile.am): Likewise.
10456         * modules/openat-safer-tests (Makefile.am): Likewise.
10457         * modules/openat-tests (Makefile.am): Likewise.
10458         * modules/readlinkat-tests (Makefile.am): Likewise.
10459         * modules/symlinkat-tests (Makefile.am): Likewise.
10460         * modules/linkat-tests (Makefile.am): Likewise.
10461         (Depends-on): Switch to filenamecat-lgpl.
10462         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10463         LIBINTL.
10464         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10465         * tests/test-linkat.c (main): Don't require xalloc.
10466
10467         hash, mgetgroups: drop xalloc dependency
10468         * lib/hash.c (includes): Adjust includes.
10469         * lib/mgetgroups.c (includes): Likewise.
10470         (xgetgroups): Move...
10471         * lib/xgetgroups.c: ...to new file.
10472         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10473         * modules/xgetgroups: New file, split from...
10474         * modules/mgetgroups: ...here.
10475         (Depends-on): Add xalloc-oversized.
10476         * modules/hash (Depends-on): Likewise.
10477         * modules/hash-tests (Depends-on): Drop xalloc.
10478         (test_hash_LDADD): Drop unused library.
10479         * tests/test-hash.c (main): Break xalloc dependency.
10480         (includes): Drop unused include.
10481
10482         xalloc-oversized: new module
10483         * modules/xalloc-oversized: New module.
10484         * modules/xalloc (Depends-on): Add it.
10485         * lib/xalloc.h (xalloc_oversized): Move...
10486         * lib/xalloc-oversized.h: ...into new file.
10487
10488         utimecmp: drop dependency on xmalloc
10489         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10490         due to memory pressure.
10491         * modules/utimecmp (Depends-on): Drop xalloc.
10492
10493 2011-04-27  Eric Blake  <eblake@redhat.com>
10494
10495         getcwd: fix mingw bugs
10496         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10497         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10498         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10499
10500 2011-04-27  Bruno Haible  <bruno@clisp.org>
10501
10502         mkstemps: Ensure declaration on MacOS X 10.5.
10503         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10504         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10505         MacOS X.
10506
10507 2011-04-27  Bruno Haible  <bruno@clisp.org>
10508
10509         mkstemp: More documentation.
10510         * doc/posix-functions/mkstemp.texi: Document header file problem on
10511         MacOS X.
10512
10513 2011-04-27  Bruno Haible  <bruno@clisp.org>
10514
10515         mkstemp: Tweak configure message when cross-compiling.
10516         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10517         result as a guess.
10518
10519 2011-04-27  Bruno Haible  <bruno@clisp.org>
10520
10521         clean-temp: Clarify what it does.
10522         * lib/clean-temp.h: Add more comments.
10523         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10524         module.
10525         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10526         * doc/glibc-functions/mkstemps.texi: Likewise.
10527         * doc/glibc-functions/mkostemps.texi: Likewise.
10528
10529 2011-04-27  Eric Blake  <eblake@redhat.com>
10530
10531         fchdir: avoid extra chdir and fix test
10532         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10533         getcwd-lgpl.
10534         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10535         have to be canonical.
10536         (canonicalize_file_name): Drop unused macro.
10537         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10538
10539         filenamecat-lgpl: fix licence
10540         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10541         when it was first created.
10542
10543         linkat, renameat: add missing dependency
10544         * modules/linkat (Depends-on): Require getcwd-lgpl.
10545         * modules/renameat (Depends-on): Likewise.
10546
10547         tests: reduce dependencies
10548         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10549         * tests/test-renameat.c (main): Likewise.
10550         * modules/linkat-tests (Depends-on): Relax dependency.
10551         * modules/renameat-tests (Depends-on): Likewise.
10552         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10553         dependency explicit.
10554
10555         save-cwd: reduce default dependency
10556         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10557         * lib/save-cwd.c: Update comments.
10558         * NEWS: Document the semantic change.
10559
10560         getcwd: enhance tests
10561         * tests/test-getcwd-lgpl.c: New file, taken from...
10562         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10563         repeat long path stress tests from m4 probe.
10564         * modules/getcwd-lgpl-tests: New module.
10565         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10566         * m4/getcwd-abort-bug.m4: Update comment.
10567         * m4/getcwd-path-max.m4: Likewise.
10568
10569         getcwd-lgpl: new module
10570         * modules/getcwd-lgpl: New module.
10571         * lib/getcwd-lgpl.c: New file.
10572         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10573         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10574         * modules/getcwd (configure.ac): Set C witness.
10575         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10576
10577         getcwd: tweak comments
10578         * m4/getcwd-abort-bug.m4: Fix comments.
10579         * m4/getcwd-path-max.m4: Likewise.
10580         * m4/getcwd.m4: Likewise.
10581
10582 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10583         and Eric Blake  <eblake@redhat.com>
10584
10585         mkstemp: replace if system version uses wrong permissions
10586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10587         read/write mode bits set in file created by mkstemp.
10588         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10589
10590 2011-04-27  Eric Blake  <eblake@redhat.com>
10591
10592         passfd: avoid compiler warning
10593         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10594         Reported by Laine Stump.
10595
10596 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10597
10598         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10599         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10600
10601 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10602         and Eric Blake  <eblake@redhat.com>
10603
10604         mkstemp: mention clean-temp module
10605         * lib/mkstemp.c: Add comment.
10606         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10607
10608 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10609
10610         inttypes: also provide default values for 32-bit tests
10611         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10612         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10613
10614 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10615
10616         strtoumax: remove dependency on strtoimax
10617         This is like the strtoull change of yesterday.
10618         * modules/strtoumax (Files): Add lib/strtoimax.c.
10619         (Depends-on): Remove strtoimax and add verify.
10620
10621         inttypes-incomplete: new module
10622         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10623         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10624         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10625         of gl_INTTYPES_H.
10626         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10627         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10628         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10629         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10630         * modules/strtoumax, modules/xstrtol (Depends-on):
10631         Depend on inttypes-incomplete, not inttypes.
10632         * modules/inttypes-incomplete: New module, containing the contents
10633         of the old modules/inttypes module, except that the Files: section
10634         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10635         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10636         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10637         (Depends-on): Depend only on inttypes-incomplete.
10638         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10639
10640         inttypes: omit now-redundant strtoimax and strtoumax work
10641         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10642         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10643
10644         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10645         This supports apps that need pointers to strtoimax and strtoumax,
10646         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10647         nonexistent functions.  See
10648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10649         et seq.
10650         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10651         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10652         a macro.
10653         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10654
10655 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10656
10657         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10658
10659 2011-04-25  Bruno Haible  <bruno@clisp.org>
10660
10661         strtol, strtoul: Mark modules as obsolete.
10662         * modules/strtol (Status, Notice): New sections.
10663         * modules/strtoul (Status, Notice): New sections.
10664
10665 2011-04-25  Bruno Haible  <bruno@clisp.org>
10666
10667         strtod: Remove check for strtod, unless supporting old platforms.
10668         * modules/strtod-obsolete: New file.
10669         * m4/strtod-obsolete.m4: New file.
10670         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10671         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10672         * modules/strtod (Depends-on): Add strtod-obsolete.
10673         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10674
10675 2011-04-25  Bruno Haible  <bruno@clisp.org>
10676
10677         strcase: Make module obsolete.
10678         * modules/strcase (Status, Notice): New sections.
10679
10680 2011-04-25  Bruno Haible  <bruno@clisp.org>
10681
10682         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10683         * modules/dup2-obsolete: New file.
10684         * m4/dup2-obsolete.m4: New file.
10685         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10686         gl_FUNC_DUP2_OBSOLETE is not also defined.
10687         * modules/dup2 (Depends-on): Add dup2-obsolete.
10688         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10689
10690 2011-04-25  Bruno Haible  <bruno@clisp.org>
10691
10692         strnlen: Avoid memchr related link error on old obsolete platforms.
10693         * modules/memchr-obsolete: New file.
10694         * m4/memchr-obsolete.m4: New file.
10695         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10696         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10697         * modules/memchr (Depends-on): Add memchr-obsolete.
10698         * modules/strnlen (Depends-on): Likewise.
10699         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10700
10701 2011-04-25  Jim Meyering  <meyering@redhat.com>
10702
10703         maint.mk: makefile_at_at_check extend and clean up
10704         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10705         in addition to */Makefile.am.
10706         Exempt legitimate uses of @VAR@ notation, e.g.,
10707         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10708         Remove obsolete coreutils-specific comment.
10709         Prompted by discussion here:
10710         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10711
10712 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10713
10714         strtoul: remove dependency on strtol
10715         This is so that 'configure' need not check for strtol merely because
10716         the application needs strtoul.
10717         * modules/strtoul (Files): Add lib/strtol.c.
10718         (Depends-on): Remove strtol.
10719
10720         strtoull: remove dependency on strtoul
10721         This is like the strtoll change.
10722         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10723         (Depends-on): Remove strtoul.
10724
10725         strtoll: remove dependency on strtol
10726         This is so that 'configure' need not check for strtol merely because
10727         the application needs strtoll.
10728         * modules/strtoll (Files): Add lib/strtol.c.
10729         (Depends-on): Remove strtol.
10730
10731 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10732
10733         inttypes: Move some configure check to module 'imaxdiv'.
10734         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10735         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10736         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10737
10738 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10739
10740         inttypes: Move some configure check to module 'imaxabs'.
10741         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10742         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10743         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10744
10745 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10746
10747         inttypes: Remove configure tests that are not needed since 2009-12-31.
10748         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10749         gl_cv_header_working_inttypes_h.
10750
10751 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10752
10753         * modules/strnlen (Depends-on): Remove memchr.
10754         The strnlen implementation doesn't need the memchr module's fixes; see
10755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10756
10757         strtol: remove dependency on wchar
10758         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10759         * modules/strtol (Depends-on): Remove wchar.
10760
10761 2011-04-21  Eric Blake  <eblake@redhat.com>
10762
10763         passfd: fix test regression on Linux
10764         * modules/passfd-tests (configure.ac): Correct socketpair check.
10765
10766         passfd: speed up configure and drop unused code
10767         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10768         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10769         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10770         Instead of probing at configure for unix_scm_rights_bsd44_way,
10771         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10772         check to a struct member probe.
10773         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10774         (sendfd, recvfd): Update preprocessor checks.
10775         * modules/passfd (Files): Reflect rename, and drop unused file.
10776         (Depends-on): Drop unused dependency.
10777
10778         passfd: allow compilation on mingw
10779         * modules/sys_socket (Depends-on): Add sys_uio.
10780         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10781         iovec and a minimal struct msghdr.
10782         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10783         * tests/test-sys_socket.c (main): Enhance test.
10784         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10785         guaranteed to provide what we need.
10786         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10787         * modules/passfd-tests (Depends-on): Add sys_wait.
10788         * tests/test-passfd.c (main): Skip test on mingw, for now.
10789         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10790         partial 'struct msghdr' implementation.
10791
10792         sys_uio: new module
10793         * modules/sys_uio: New module.
10794         * modules/sys_uio-tests: Likewise.
10795         * lib/sys_uio.in.h: New file.
10796         * m4/sys_uio_h.m4: Likewise.
10797         * tests/test-sys_uio.c: Likewise.
10798         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10799         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10800
10801 2011-04-20  Jim Meyering  <meyering@redhat.com>
10802
10803         useless-if-before-free: avoid false-positive
10804         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10805         disjunct so that it too requires a terminating ";".  Without that,
10806         this script would identify as useless one statement from gcc that
10807         was not:
10808           if (aligned_ptr)
10809             free (((void **) aligned_ptr) [-1]);
10810
10811 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10812
10813         doc: update users.txt.
10814         * users.txt: Add barcode.
10815
10816 2011-04-19  Bruno Haible  <bruno@clisp.org>
10817
10818         ioctl: Remove link dependency on native Windows.
10819         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10820         (gl_close_fn, gl_ioctl_fn): New types.
10821         (struct fd_hook): Renamed from struct close_hook. Change type of
10822         private_close_fn field. Add private_ioctl_fn field.
10823         (close_hook_fn): Add parameter for primary close method.
10824         (execute_close_hooks, execute_all_close_hooks): Likewise.
10825         (ioctl_hook_fn): New type.
10826         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10827         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10828         argument.
10829         (unregister_fd_hook): Renamed from unregister_close_hook.
10830         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10831         Don't include <unistd.h>.
10832         (close): Remove undef.
10833         (anchor): Update.
10834         (execute_close_hooks): Add argument for primary close method.
10835         (execute_all_close_hooks): Likewise.
10836         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10837         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10838         argument. Allow each argument to be NULL.
10839         (unregister_fd_hook): Renamed from unregister_close_hook.
10840         * lib/close.c (rpl_close): Pass 'close' function pointer to
10841         execute_all_close_hooks.
10842         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10843         (primary_ioctl): New function.
10844         (ioctl): Don't call ioctlsocket here. Instead, call
10845         execute_all_ioctl_hooks.
10846         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10847         close method.
10848         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10849         (fd_sockets_hook): Renamed from close_sockets_hook.
10850         (gl_sockets_startup, gl_sockets_cleanup): Update.
10851         * modules/fd-hook: Renamed from modules/close-hook. Update.
10852         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10853         * modules/sockets (Depends-on): Likewise.
10854         * modules/ioctl (Depends-on): Add fd-hook.
10855         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10856         GNULIB_SOCKET.
10857
10858 2011-04-19  Bruno Haible  <bruno@clisp.org>
10859
10860         Move the support of O_NONBLOCK in open() to the 'open' module.
10861         * modules/nonblocking (Depends-on): Remove 'open'.
10862         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10863         gl_cv_have_open_O_NONBLOCK.
10864         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10865         O_NONBLOCK support.
10866         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10867
10868 2011-04-17  Bruno Haible  <bruno@clisp.org>
10869
10870         pipe2: Simplify code.
10871         * lib/pipe2.c (pipe2): Reduce code duplication.
10872
10873 2011-04-17  Bruno Haible  <bruno@clisp.org>
10874
10875         nonblocking: Add comment.
10876         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10877
10878 2011-04-17  Bruno Haible  <bruno@clisp.org>
10879
10880         nonblocking: Add tests for sockets.
10881         * tests/test-nonblocking-socket.sh: New file.
10882         * tests/test-nonblocking-socket-main.c: New file.
10883         * tests/test-nonblocking-socket-child.c: New file.
10884         * tests/test-nonblocking-socket.h: New file.
10885         * tests/socket-server.h: New file.
10886         * tests/socket-client.h: New file.
10887         * modules/nonblocking-socket-tests: New file.
10888         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10889
10890 2011-04-17  Bruno Haible  <bruno@clisp.org>
10891
10892         nonblocking: Add tests for pipes.
10893         * tests/test-nonblocking-pipe.sh: New file.
10894         * tests/test-nonblocking-pipe-main.c: New file.
10895         * tests/test-nonblocking-pipe-child.c: New file.
10896         * tests/test-nonblocking-pipe.h: New file.
10897         * tests/test-nonblocking-writer.h: New file.
10898         * tests/test-nonblocking-reader.h: New file.
10899         * tests/test-nonblocking-misc.h: New file.
10900         * modules/nonblocking-pipe-tests: New file.
10901         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10902
10903 2011-04-16  Bruno Haible  <bruno@clisp.org>
10904
10905         gettext: Clarify the needed programmer actions.
10906         * modules/gettext (Notice): New field.
10907         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10908
10909 2011-04-16  Bruno Haible  <bruno@clisp.org>
10910
10911         strchrnul: Tweak last commit.
10912         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10913         bug.
10914         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10915         as in _GL_FUNCDECL_SYS.
10916         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10917         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10918
10919 2011-04-15  Eric Blake  <eblake@redhat.com>
10920
10921         strchrnul: work around cygwin bug
10922         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10923         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10925         * modules/string (Makefile.am): Substitute it.
10926         * lib/string.in.h (strchrnul): Use it.
10927
10928 2011-04-15  Bruno Haible  <bruno@clisp.org>
10929
10930         Don't require lib/stdio-write.c when only module 'stdio' is used.
10931         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10932         invocation.
10933         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10934
10935 2011-04-14  Bruno Haible  <bruno@clisp.org>
10936
10937         Support non-blocking pipe I/O in read() on native Windows.
10938         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10939         (read): New declaration.
10940         * lib/read.c: New file.
10941         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10942         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10943         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10944         vscanf): New declarations.
10945         * lib/stdio-read.c: New file.
10946         * m4/read.m4: New file.
10947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10948         REPLACE_READ.
10949         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10950         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10951         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10952         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10953         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10954         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10955         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10956         * modules/read: New file.
10957         * modules/nonblocking (Files): Add lib/stdio-read.c.
10958         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10959         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10960         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10961         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10962         * modules/pread (Depends-on): Add read.
10963         * modules/safe-read (Depends-on): Likewise.
10964         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10965         gets, scanf, vfscanf, vscanf): Verify signatures.
10966         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10967         problem with non-blocking pipes.
10968         * doc/posix-functions/fgetc.texi: Likewise.
10969         * doc/posix-functions/fgets.texi: Likewise.
10970         * doc/posix-functions/fread.texi: Likewise.
10971         * doc/posix-functions/fscanf.texi: Likewise.
10972         * doc/posix-functions/getc.texi: Likewise.
10973         * doc/posix-functions/getchar.texi: Likewise.
10974         * doc/posix-functions/gets.texi: Likewise.
10975         * doc/posix-functions/scanf.texi: Likewise.
10976         * doc/posix-functions/vfscanf.texi: Likewise.
10977         * doc/posix-functions/vscanf.texi: Likewise.
10978
10979 2011-04-14  Bruno Haible  <bruno@clisp.org>
10980
10981         Support non-blocking pipe I/O in write() on native Windows.
10982         * lib/write.c (rpl_write): Split a write request that failed merely
10983         because the byte count was larger than the pipe buffer's size.
10984         * doc/posix-functions/write.texi: Mention the problem with large byte
10985         counts.
10986
10987 2011-04-14  Bruno Haible  <bruno@clisp.org>
10988
10989         wchar: Ensure that wchar_t gets defined on uClibc.
10990         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10991         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10992
10993 2011-04-13  Bruno Haible  <bruno@clisp.org>
10994
10995         safe-write, full-read: Avoid unnecessary compilation units.
10996         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10997         (Depends-on): Remove safe-read. Add ssize_t.
10998         * modules/full-read (Files): Add lib/full-write.c.
10999         (Depends-on): Add full-write.
11000
11001 2011-04-13  Bruno Haible  <bruno@clisp.org>
11002
11003         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11004         * modules/pwrite (Depends-on): Add 'write'.
11005
11006 2011-04-13  Bruno Haible  <bruno@clisp.org>
11007
11008         Support non-blocking pipe I/O in write() on native Windows.
11009         * lib/unistd.in.h (write): Enable replacement also if
11010         GNULIB_UNISTD_H_NONBLOCKING is 1.
11011         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11012         (rpl_write): When failing to write on a non-blocking pipe, change
11013         errno from ENOSPC to EAGAIN.
11014         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11015         putchar, puts, vfprintf, vprintf): Enable replacement also if
11016         GNULIB_STDIO_H_NONBLOCKING is 1.
11017         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11018         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11019         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11020         CALL_WITH_SIGPIPE_EMULATION.
11021         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11022         * m4/nonblocking.m4: New file.
11023         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11024         for non-blocking I/O support.
11025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11026         GNULIB_UNISTD_H_NONBLOCKING.
11027         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11028         required for non-blocking I/O support.
11029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11030         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11031         lib/stdio-write.c, m4/asm-underscore.m4.
11032         (Depends-on): Add stdio, unistd.
11033         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11034         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11035         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11036         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11037         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11038         problem with non-blocking pipes.
11039         * doc/posix-functions/fputc.texi: Likewise.
11040         * doc/posix-functions/fputs.texi: Likewise.
11041         * doc/posix-functions/fwrite.texi: Likewise.
11042         * doc/posix-functions/printf.texi: Likewise.
11043         * doc/posix-functions/putc.texi: Likewise.
11044         * doc/posix-functions/putchar.texi: Likewise.
11045         * doc/posix-functions/puts.texi: Likewise.
11046         * doc/posix-functions/vfprintf.texi: Likewise.
11047         * doc/posix-functions/vprintf.texi: Likewise.
11048         * doc/posix-functions/write.texi: Likewise.
11049
11050 2011-04-10  Jim Meyering  <meyering@redhat.com>
11051
11052         maint.mk: prohibit doubled words
11053         Detect them also when they're separated by a newline.
11054         There are 3 ways to customize it:
11055           - disable the test on a per file basis, as usual with rules using
11056             $(VC_LIST_EXCEPT)
11057           - replace the default doubled-word-selecting regexp (affects all files)
11058           - ignore a particular file-vs-doubled-word match
11059         I nearly used that last one to ignore the "is is" match in
11060         coreutils' NEWS file, since the text was "ls -is is ..."
11061         To do that, I would have added this line to cfg.mk:
11062           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11063         but it would have ignored any "is is" match in NEWS.
11064         Low probability, but still...
11065         Instead, I changed the text, slightly:
11066           -  ls -is is now consistent with ls -lis in ignoring values returned
11067           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11068         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11069         (prohibit_doubled_word_): Define.
11070         (sc_prohibit_doubled_word): New rule.
11071         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11072
11073 2011-04-10  Jim Meyering  <meyering@redhat.com>
11074
11075         maint: fix doubled-word typo in comment
11076         * m4/gethostname.m4: s/is is/it is/
11077         * m4/getdomainname.m4: Likewise.
11078
11079 2011-04-10  Jim Meyering  <meyering@redhat.com>
11080
11081         maint: remove doubled word: s/it it/it/
11082         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11083
11084 2011-04-10  Jim Meyering  <meyering@redhat.com>
11085
11086         maint.mk: remove useless semicolon and backslash
11087         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11088         semicolon and backslash.
11089
11090 2011-04-10  Bruno Haible  <bruno@clisp.org>
11091
11092         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11093         * modules/stdint-tests (Depends-on): Add wchar.
11094
11095 2011-04-10  Jim Meyering  <meyering@redhat.com>
11096
11097         maint: remove doubled words in comments, e.g., s/a a/a/
11098         * lib/strptime.c (day_of_the_week): s/the the/the/
11099         * tests/test-chown.h (test_chown): s/a a/a/
11100
11101         test-chown.h: correct a cast
11102         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11103         when the destination is a stat.st_gid.
11104
11105 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11106
11107         getaddrinfo: Fix test for sa_len member.
11108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11109         include <sys/types.h> before <sys/socket.h>.
11110
11111 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11112
11113         maint: change "can not" to "cannot"
11114         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11115         boundaries.
11116
11117 2011-04-09  Jim Meyering  <meyering@redhat.com>
11118
11119         maint: change "a a" to "a"
11120         * tests/test-lchown.h (test_lchown): s/a a/a/
11121
11122         maint.mk: prohibit \<the the\>
11123         * top/maint.mk (sc_prohibit_the_the): New rule.
11124
11125         maint: fix "the the" in comment
11126         * lib/count-one-bits.h: s/the the/the/
11127
11128         maint: change "can not" to "cannot"
11129         But do not change the occurrences in maintain.texi or in
11130         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11131         * doc/gnulib-tool.texi: s/can not/cannot/
11132         * doc/posix-functions/accept.texi (accept): Likewise.
11133         * doc/posix-functions/socket.texi (socket): Likewise.
11134         * lib/mbrtowc.c: Likewise.
11135
11136         maint.mk: prohibit use of "can not"
11137         * top/maint.mk (sc_prohibit_can_not): New rule.
11138         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11139
11140 2011-04-09  Bruno Haible  <bruno@clisp.org>
11141
11142         careadlinkat: Guard against misuse of careadlinkatcwd.
11143         * lib/careadlinkat.c: Include <stdlib.h>.
11144         (careadlinkatcwd): Check that the fd argument is as expected.
11145
11146 2011-04-09  Bruno Haible  <bruno@clisp.org>
11147
11148         careadlinkat: Use common coding style.
11149         * lib/careadlinkat.c: Move gnulib includes after system includes.
11150
11151 2011-04-09  Bruno Haible  <bruno@clisp.org>
11152
11153         careadlinkat: Clarify specification.
11154         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11155         (careadlinkatcwd): Add comment.
11156         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11157
11158 2011-04-09  Bruno Haible  <bruno@clisp.org>
11159
11160         areadlinkat: Avoid link error on many platforms.
11161         * modules/areadlinkat (Depends-on): Add areadlink.
11162
11163 2011-04-09  Bruno Haible  <bruno@clisp.org>
11164
11165         allocator, careadlinkat: Fix double-inclusion guard.
11166         * lib/allocator.h: Fix double-inclusion guard.
11167         * lib/careadlinkat.h: Likewise.
11168
11169 2011-04-09  Bruno Haible  <bruno@clisp.org>
11170
11171         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11172         * lib/relocwrapper.c: Update dependencies hierarchy.
11173         * build-aux/install-reloc: Update list of files to be compiled.
11174         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11175         lib/allocator.[hc].
11176
11177 2011-04-08  Eric Blake  <eblake@redhat.com>
11178
11179         strftime: silence gnulib-tool warning
11180         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11181
11182 2011-04-08  Bruno Haible  <bruno@clisp.org>
11183
11184         verify: Fix syntax error with GCC 4.6 in C++ mode.
11185         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11186         (HAVE_STATIC_ASSERT): New macro.
11187         (verify_true, verify): Use 'static_assert' if it is supported and
11188         '_Static_assert' is not supported.
11189
11190 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11191
11192         allocator: New module.
11193         * modules/allocator, lib/allocator.c: New files.
11194         * lib/allocator.h (stdlib_allocator): New decl.
11195         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11196         Remove.  Do not include <stdlib.h>.
11197         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11198         * modules/careadlinkat (Files): Remove lib/allocator.h.
11199         (Depends-on): Add allocator.
11200
11201         stdlib: let modules use system malloc, realloc
11202         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11203         if !_GL_USE_STDLIB_ALLOC.
11204         (malloc, realloc): Limit this change to a smaller scope.
11205
11206         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11207         (malloc, realloc): Don't #undef; no longer needed.
11208         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11209         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11210         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11211         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11212         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11213         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11214         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11215         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11216
11217         careadlinkat: rename members to avoid problem
11218         * lib/allocator.h (struct allocator): Rename members from
11219         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11220         and realloc are #define'd.  Reported by Eric Blake in
11221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11222         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11223
11224 2011-04-08  Eric Blake  <eblake@redhat.com>
11225
11226         nonblocking: reduce dependency
11227         * tests/test-nonblocking.c: Only test sockets when in use.
11228         * modules/nonblocking-tests (Depends-on): Drop socket.
11229         (Makefile.am): Link even if sockets are not present.
11230         * modules/pipe2-tests (Makefile.am): Likewise.
11231         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11232
11233         pipe2: fix O_NONBLOCK support on mingw
11234         * modules/pipe2 (Depends-on): Add nonblocking.
11235         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11236         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11237         * tests/test-nonblocking.c (main): Likewise.
11238         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11239
11240         fcntl-h: fix O_ACCMODE on cygwin
11241         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11242         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11243
11244         pipe-filter: drop O_NONBLOCK workarounds
11245         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11246         * modules/pipe-filter-ii (Depends-on): Likewise.
11247         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11248
11249         nonblocking: provide O_NONBLOCK for mingw
11250         * modules/nonblocking (Depends-on): Add open.
11251         (configure.ac): Set new witness macro.
11252         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11253         * modules/fcntl-h (Makefile.am): Substitute it.
11254         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11255         nonblocking module is in use.
11256         * lib/nonblocking.c: Adjust portability test.
11257         * lib/open.c (open): Don't let native open see gnulib flag.
11258         * tests/test-fcntl-h.c (main): Enhance test.
11259         * tests/test-open.h (test_open): Likewise.
11260         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11261
11262         careadlinkat: fix compilation error on mingw
11263         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11264         within struct allocator.
11265
11266 2011-04-06  Eric Blake  <eblake@redhat.com>
11267
11268         binary-io: relicense under LGPLv2+
11269         * modules/binary-io (License): Relax to LGPLv2+.
11270         Requested for libvirt, and required by pipe2.
11271
11272 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11273
11274         verify: use _Static_assert if available
11275         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11276         (verify_true, verify): Use it if available.  This generates better
11277         diagnostics with GCC 4.6.0 and later.
11278
11279 2011-04-05  Bruno Haible  <bruno@clisp.org>
11280
11281         Remove leftover generated .h files after config.status changed.
11282
11283         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11284         GL_GENERATE_ALLOCA_H.
11285         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11286         GL_GENERATE_ALLOCA_H evaluates to false.
11287
11288         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11289         GL_GENERATE_ARGZ_H.
11290         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11291         evaluates to false.
11292
11293         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11294         GL_GENERATE_BYTESWAP_H.
11295         * modules/byteswap (Makefile.am): Remove byteswap.h if
11296         GL_GENERATE_BYTESWAP_H evaluates to false.
11297
11298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11299         GL_GENERATE_ERRNO_H.
11300         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11301         evaluates to false.
11302
11303         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11304         GL_GENERATE_FLOAT_H.
11305         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11306         evaluates to false.
11307
11308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11309         GL_GENERATE_FNMATCH_H.
11310         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11311         GL_GENERATE_FNMATCH_H evaluates to false.
11312
11313         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11314         GL_GENERATE_GLOB_H.
11315         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11316         evaluates to false.
11317
11318         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11319         automake conditional GL_GENERATE_ICONV_H.
11320         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11321         evaluates to false.
11322
11323         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11324         GL_GENERATE_NETINET_IN_H.
11325         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11326         GL_GENERATE_NETINET_IN_H evaluates to false.
11327
11328         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11329         conditional GL_GENERATE_PTHREAD_H.
11330         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11331         * modules/pthread (Makefile.am): Remove pthread.h if
11332         GL_GENERATE_PTHREAD_H evaluates to false.
11333
11334         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11335         GL_GENERATE_SCHED_H.
11336         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11337         evaluates to false.
11338
11339         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11340         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11341         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11342         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11343
11344         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11345         GL_GENERATE_STDARG_H.
11346         * modules/stdarg (Makefile.am): Remove stdarg.h if
11347         GL_GENERATE_STDARG_H evaluates to false.
11348
11349         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11350         GL_GENERATE_STDBOOL_H.
11351         * modules/stdbool (Makefile.am): Remove stdbool.h if
11352         GL_GENERATE_STDBOOL_H evaluates to false.
11353
11354         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11355         conditional GL_GENERATE_STDDEF_H.
11356         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11357         * modules/stddef (Makefile.am): Remove stddef.h if
11358         GL_GENERATE_STDDEF_H evaluates to false.
11359
11360         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11361         GL_GENERATE_STDINT_H.
11362         * modules/stdint (Makefile.am): Remove stdint.h if
11363         GL_GENERATE_STDINT_H evaluates to false.
11364
11365         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11366         GL_GENERATE_SYSEXITS_H.
11367         * modules/sysexits (Makefile.am): Remove sysexits.h if
11368         GL_GENERATE_SYSEXITS_H evaluates to false.
11369
11370         Reported by Karl Berry and Ralf Wildenhues.
11371
11372 2011-04-05  Bruno Haible  <bruno@clisp.org>
11373
11374         Ensure to rebuild generated .h files when config.status has changed.
11375         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11376         config.status.
11377         * modules/ctype (Makefile.am): Likewise.
11378         * modules/dirent (Makefile.am): Likewise.
11379         * modules/errno (Makefile.am): Likewise.
11380         * modules/fcntl-h (Makefile.am): Likewise.
11381         * modules/float (Makefile.am): Likewise.
11382         * modules/getopt-posix (Makefile.am): Likewise.
11383         * modules/glob (Makefile.am): Likewise.
11384         * modules/iconv-h (Makefile.am): Likewise.
11385         * modules/inttypes (Makefile.am): Likewise.
11386         * modules/langinfo (Makefile.am): Likewise.
11387         * modules/locale (Makefile.am): Likewise.
11388         * modules/math (Makefile.am): Likewise.
11389         * modules/netdb (Makefile.am): Likewise.
11390         * modules/netinet_in (Makefile.am): Likewise.
11391         * modules/poll-h (Makefile.am): Likewise.
11392         * modules/pthread (Makefile.am): Likewise.
11393         * modules/pty (Makefile.am): Likewise.
11394         * modules/sched (Makefile.am): Likewise.
11395         * modules/search (Makefile.am): Likewise.
11396         * modules/selinux-h (Makefile.am): Likewise.
11397         * modules/signal (Makefile.am): Likewise.
11398         * modules/spawn (Makefile.am): Likewise.
11399         * modules/stdarg (Makefile.am): Likewise.
11400         * modules/stdbool (Makefile.am): Likewise.
11401         * modules/stddef (Makefile.am): Likewise.
11402         * modules/stdint (Makefile.am): Likewise.
11403         * modules/stdio (Makefile.am): Likewise.
11404         * modules/stdlib (Makefile.am): Likewise.
11405         * modules/string (Makefile.am): Likewise.
11406         * modules/strings (Makefile.am): Likewise.
11407         * modules/sys_file (Makefile.am): Likewise.
11408         * modules/sys_ioctl (Makefile.am): Likewise.
11409         * modules/sys_select (Makefile.am): Likewise.
11410         * modules/sys_socket (Makefile.am): Likewise.
11411         * modules/sys_stat (Makefile.am): Likewise.
11412         * modules/sys_time (Makefile.am): Likewise.
11413         * modules/sys_times (Makefile.am): Likewise.
11414         * modules/sys_utsname (Makefile.am): Likewise.
11415         * modules/sys_wait (Makefile.am): Likewise.
11416         * modules/sysexits (Makefile.am): Likewise.
11417         * modules/termios (Makefile.am): Likewise.
11418         * modules/time (Makefile.am): Likewise.
11419         * modules/unistd (Makefile.am): Likewise.
11420         * modules/wchar (Makefile.am): Likewise.
11421         * modules/wctype-h (Makefile.am): Likewise.
11422         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11423
11424 2011-04-05  Bruno Haible  <bruno@clisp.org>
11425
11426         pipe2: Relicense under LGPLv2+.
11427         * modules/pipe2 (License): Change to LGPLv2+.
11428         Requested by Eric Blake, for libvirt.
11429
11430 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11431
11432         bootstrap: compute gnulib_extra_files after updating build_aux
11433         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11434         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11435
11436 2011-04-05  Eric Blake  <eblake@redhat.com>
11437
11438         bootstrap: preserve git whitelist item sorting
11439         * build-aux/bootstrap (sort_patterns): New function.
11440         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11441
11442 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11443
11444         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11445         sc_space_tab check.
11446
11447 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11448
11449         areadlink, areadlinkat: rewrite in terms of careadlinkat
11450         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11451         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11452         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11453         (malloc, realloc): Remove #undefs.
11454         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11455         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11456         readlink, ssize_t, stdint, unistd.
11457         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11458         areadlink, stdint.
11459
11460         careadlinkat: new module
11461         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11462         * modules/careadlinkat: New files, written by me with
11463         a review and feedback from Ben Pfaff in
11464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11465
11466 2011-04-01  Bruno Haible  <bruno@clisp.org>
11467
11468         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11469         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11470         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11471         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11472         Reported by Bruce Korb <bruce.korb@gmail.com>.
11473
11474 2011-04-01  Bruno Haible  <bruno@clisp.org>
11475
11476         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11477         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11478         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11479         * modules/wcpcpy (Depends-on): Add extensions.
11480         * modules/wcpncpy (Depends-on): Likewise.
11481         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11482         systems.
11483         * doc/posix-functions/wcpncpy.texi: Likewise.
11484         * doc/posix-functions/wcwidth.texi: Likewise.
11485
11486 2011-03-31  Eric Blake  <eblake@redhat.com>
11487
11488         nonblocking: fix mingw test failures
11489         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11490         non-blocking flag on regular file.
11491         (get_nonblocking_flag): Set errno on invalid fd.
11492         * tests/test-nonblocking.c (main): Avoid test failure on
11493         directories if fchdir is not active.
11494         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11495
11496 2011-03-31  Bruno Haible  <bruno@clisp.org>
11497
11498         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11499         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11500         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11501         Reported by Simon Josefsson <simon@josefsson.org>.
11502
11503 2011-03-31  Bruno Haible  <bruno@clisp.org>
11504         and Eric Blake  <eblake@redhat.com>
11505
11506         nonblocking: new module
11507         * modules/nonblocking: New module.
11508         * modules/nonblocking-tests: Likewise.
11509         * lib/nonblocking.h: New file.
11510         * lib/nonblocking.c: Likewise.
11511         * tests/test-nonblocking.c: New test.
11512         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11513
11514 2011-03-30  Bruno Haible  <bruno@clisp.org>
11515
11516         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11517         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11518         instead of 'printf' format for GCC >= 4.4.
11519         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11520         (fprintf, printf, vfprintf, vprintf): Declare with
11521         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11522         the system's vfprintf() function.
11523         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11524
11525 2011-03-30  Eric Blake  <eblake@redhat.com>
11526
11527         passfd: fix scoping bug
11528         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11529         before sendmsg/recvmsg.
11530
11531         passfd: standardize coding conventions
11532         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11533         can be learned at compile time.
11534         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11535         ifdefs.
11536         (sendfd, recvfd): Follow gnulib code conventions.
11537
11538         passfd: fix incorrect sendmsg arguments
11539         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11540         incorrect msg_controllen value.
11541         * modules/passfd-tests (Depends-on): Check for alarm.
11542         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11543         Reported by Bastien ROUCARIES.
11544
11545 2011-03-30  Bruno Haible  <bruno@clisp.org>
11546
11547         c-strcasestr: Relicense under LGPLv2+.
11548         * modules/c-strcasestr (License): Change to LGPLv2+.
11549         Requested by Eric Blake, for libvirt.
11550
11551 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11552
11553         * users.txt: Add libidn2.  Fix libtasn1 link.
11554
11555 2011-03-30  Jim Meyering  <meyering@redhat.com>
11556
11557         tests: readlink* ("",... fails with EINVAL on newer kernels
11558         readlink and readlinkat have typically failed with ENOENT for
11559         the invalid, empty file name,  "".  However, with the advent
11560         of linux-2.6.39, they fail with EINVAL.
11561         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11562         when operating on the empty file name.
11563         * tests/test-readlink.h (test_readlink): Likewise.
11564
11565 2011-03-29  Bruno Haible  <bruno@clisp.org>
11566
11567         Relicense some modules under LGPLv2+, for libidn2.
11568         * modules/array-mergesort (License): Change to LGPLv2+.
11569         * modules/c-strcaseeq (License): Likewise.
11570         * modules/striconveh (License): Likewise.
11571         * modules/striconveha (License): Likewise.
11572         * modules/uniconv/base (License): Likewise.
11573         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11574         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11575         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11576         * modules/unictype/base (License): Likewise.
11577         * modules/unictype/bidiclass-of (License): Likewise.
11578         * modules/unictype/category-M (License): Likewise.
11579         * modules/unictype/category-none (License): Likewise.
11580         * modules/unictype/category-of (License): Likewise.
11581         * modules/unictype/category-test (License): Likewise.
11582         * modules/unictype/category-test-withtable (License): Likewise.
11583         * modules/unictype/combining-class (License): Likewise.
11584         * modules/unictype/joiningtype-of (License): Likewise.
11585         * modules/unictype/scripts (License): Likewise.
11586         * modules/uninorm/base (License): Likewise.
11587         * modules/uninorm/canonical-decomposition (License): Likewise.
11588         * modules/uninorm/composition (License): Likewise.
11589         * modules/uninorm/decompose-internal (License): Likewise.
11590         * modules/uninorm/decomposition-table (License): Likewise.
11591         * modules/uninorm/nfc (License): Likewise.
11592         * modules/uninorm/nfd (License): Likewise.
11593         * modules/uninorm/u32-normalize (License): Likewise.
11594         * modules/unistr/base (License): Likewise.
11595         * modules/unistr/u32-cpy (License): Likewise.
11596         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11597         * modules/unistr/u32-to-u8 (License): Likewise.
11598         * modules/unistr/u32-uctomb (License): Likewise.
11599         * modules/unistr/u8-check (License): Likewise.
11600         * modules/unistr/u8-mblen (License): Likewise.
11601         * modules/unistr/u8-mbtouc (License): Likewise.
11602         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11603         * modules/unistr/u8-mbtoucr (License): Likewise.
11604         * modules/unistr/u8-prev (License): Likewise.
11605         * modules/unistr/u8-strlen (License): Likewise.
11606         * modules/unistr/u8-to-u32 (License): Likewise.
11607         * modules/unistr/u8-uctomb (License): Likewise.
11608         * modules/unitypes (License): Likewise.
11609         Requested by Simon Josefsson.
11610
11611 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11612
11613         lib-symbol-visibility: Add a notice.
11614         * modules/lib-symbol-visibility (Notice): New field.
11615
11616 2011-03-29  Bruno Haible  <bruno@clisp.org>
11617
11618         getaddrinfo: Doc fix.
11619         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11620         section "fixed in Gnulib".
11621
11622 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11623
11624         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11625         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11626
11627 2011-03-26  Bruno Haible  <bruno@clisp.org>
11628
11629         unictype/property-byname: Reduce the number of load-time relocations.
11630         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11631         (UC_PROPERTY_INDEX_*): New enumeration values.
11632         (uc_property_byname): Convert an index from the lookup table to an
11633         uc_property_t.
11634         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11635         values.
11636
11637 2011-03-26  Bruno Haible  <bruno@clisp.org>
11638
11639         unictype/property-byname: Allow omitted word separators and aliases.
11640         * lib/unictype/pr_byname.gperf: Add property names without word
11641         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11642         for 'space'.
11643
11644 2011-03-26  Bruno Haible  <bruno@clisp.org>
11645
11646         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11647         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11648         also hyphens to space.
11649         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11650         without spaces.
11651         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11652
11653 2011-03-26  Bruno Haible  <bruno@clisp.org>
11654
11655         unictype/joiningtype-byname: Recognize long names as well.
11656         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11657         a long name.
11658         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11659         unictype/joiningtype_byname.h.
11660         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11661         * lib/unictype/joiningtype_byname.gperf: New file.
11662         * modules/unictype/joiningtype-byname (Files): Add
11663         lib/unictype/joiningtype_byname.gperf.
11664         (Depends-on): Add gperf.
11665         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11666         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11667         long names.
11668
11669         Tests for module 'unictype/joiningtype-longname'.
11670         * modules/unictype/joiningtype-longname-tests: New file.
11671         * tests/unictype/test-joiningtype_longname.c: New file.
11672
11673         New module 'unictype/joiningtype-longname'.
11674         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11675         * lib/unictype/joiningtype_longname.c: New file.
11676         * modules/unictype/joiningtype-longname: New file.
11677         * modules/unictype/joiningtype-all (Depends-on): Add
11678         unictype/joiningtype-longname.
11679
11680 2011-03-26  Bruno Haible  <bruno@clisp.org>
11681
11682         unictype/bidiclass-byname: Recognize long names as well.
11683         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11684         name.
11685         * lib/unictype/bidi_byname.c: Include <string.h>,
11686         unictype/bidi_byname.h.
11687         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11688         * lib/unictype/bidi_byname.gperf: New file.
11689         * modules/unictype/bidiclass-byname (Files): Add
11690         lib/unictype/bidi_byname.gperf.
11691         (Depends-on): Add gperf.
11692         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11693         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11694         long names.
11695
11696         Tests for module 'unictype/bidiclass-longname'.
11697         * modules/unictype/bidiclass-longname-tests: New file.
11698         * tests/unictype/test-bidi_longname.c: New file.
11699
11700         New module 'unictype/bidiclass-longname'.
11701         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11702         * lib/unictype/bidi_longname.c: New file.
11703         * modules/unictype/bidiclass-longname: New file.
11704         * modules/unictype/bidiclass-all (Depends-on): Add
11705         unictype/bidiclass-longname.
11706
11707 2011-03-26  Bruno Haible  <bruno@clisp.org>
11708
11709         unictype/bidi*: Rename modules.
11710         * modules/unictype/bidiclass-all: Renamed from
11711         modules/unictype/bidicategory-all.
11712         * modules/unictype/bidiclass-name: Renamed from
11713         modules/unictype/bidiclass-name.
11714         (Description): Update.
11715         * modules/unictype/bidiclass-name-tests: Renamed from
11716         modules/unictype/bidicategory-name-tests.
11717         * modules/unictype/bidiclass-byname: Renamed from
11718         modules/unictype/bidicategory-byname.
11719         (Description): Update.
11720         * modules/unictype/bidiclass-byname-tests: Renamed from
11721         modules/unictype/bidicategory-byname-tests.
11722         * modules/unictype/bidiclass-of: Renamed from
11723         modules/unictype/bidicategory-of.
11724         (Description): Update.
11725         * modules/unictype/bidiclass-of-tests: Renamed from
11726         modules/unictype/bidicategory-of-tests.
11727         * modules/unictype/bidiclass-test: Renamed from
11728         modules/unictype/bidicategory-test.
11729         (Description): Update.
11730         * modules/unictype/bidiclass-test-tests: Renamed from
11731         modules/unictype/bidicategory-test-tests.
11732         * modules/unictype/bidicategory-all: New file, a simple redirection.
11733         * modules/unictype/bidicategory-name: Likewise.
11734         * modules/unictype/bidicategory-byname: Likewise.
11735         * modules/unictype/bidicategory-of: Likewise.
11736         * modules/unictype/bidicategory-test: Likewise.
11737         * modules/unictype/property-bidi-* (Dependencies): Update.
11738         * lib/unictype/bidi_*.c: Update comment.
11739
11740 2011-03-26  Bruno Haible  <bruno@clisp.org>
11741
11742         unictype/bidi*: Rename functions, part 2.
11743         * modules/unictype/bidicategory-name (configure.ac): Update required
11744         libunistring version.
11745         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11746
11747 2011-03-25  Bruno Haible  <bruno@clisp.org>
11748
11749         New module 'unictype/combining-class-all'.
11750         * modules/unictype/combining-class-all: New file.
11751
11752         Tests for module 'unictype/combining-class-byname'.
11753         * modules/unictype/combining-class-byname-tests: New file.
11754         * tests/unictype/test-combiningclass_byname.c: New file.
11755
11756         New module 'unictype/combining-class-byname'.
11757         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11758         * lib/unictype/combiningclass_byname.c: New file.
11759         * lib/unictype/combiningclass_byname.gperf: New file.
11760         * modules/unictype/combining-class-byname: New file.
11761
11762         Tests for module 'unictype/combining-class-longname'.
11763         * modules/unictype/combining-class-longname-tests: New file.
11764         * tests/unictype/test-combiningclass_longname.c: New file.
11765
11766         New module 'unictype/combining-class-longname'.
11767         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11768         * lib/unictype/combiningclass_longname.c: New file.
11769         * modules/unictype/combining-class-longname: New file.
11770
11771         Tests for module 'unictype/combining-class-name'.
11772         * modules/unictype/combining-class-name-tests: New file.
11773         * tests/unictype/test-combiningclass_name.c: New file.
11774
11775         New module 'unictype/combining-class-name'.
11776         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11777         * lib/unictype/combiningclass_name.c: New file.
11778         * modules/unictype/combining-class-name: New file.
11779
11780 2011-03-25  Bruno Haible  <bruno@clisp.org>
11781
11782         unictype/combining-class: Rename source files.
11783         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11784         of unictype/combining.h.
11785         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11786         Update.
11787         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11788         * modules/unictype/combining-class (Description): Fix.
11789         (Files, Makefile.am): Update.
11790         * tests/unictype/test-combiningclass.c: Renamed from
11791         tests/unictype/test-combining.c.
11792         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11793
11794 2011-03-25  Bruno Haible  <bruno@clisp.org>
11795
11796         unictype: Update list of canonical combining classes.
11797         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11798
11799 2011-03-25  Bruno Haible  <bruno@clisp.org>
11800
11801         unictype/category-byname: Recognize long names as well.
11802         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11803         a long name.
11804         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11805         unictype/categ_byname.h.
11806         (UC_CATEGORY_INDEX_*): New enumeration values.
11807         (uc_general_category_byname): Use uc_general_category_lookup and
11808         convert from index to value.
11809         * lib/unictype/categ_byname.gperf: New file.
11810         * modules/unictype/category-byname (Files): Add
11811         lib/unictype/categ_byname.gperf.
11812         (Depends-on): Add gperf.
11813         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11814         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11815         long names.
11816
11817         Tests for module 'unictype/category-longname'.
11818         * modules/unictype/category-longname-tests: New file.
11819         * tests/unictype/test-categ_longname.c: New file.
11820
11821         New module 'unictype/category-longname'.
11822         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11823         * lib/unictype/categ_longname.c: New file.
11824         * modules/unictype/category-longname: New file.
11825         * modules/unictype/category-all (Depends-on): Add it.
11826
11827 2011-03-25  Bruno Haible  <bruno@clisp.org>
11828
11829         Tests for module 'unictype/category-LC'.
11830         * modules/unictype/category-LC-tests: New file.
11831         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11832
11833         New module 'unictype/category-LC'.
11834         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11835         (UC_CATEGORY_LC): New declaration.
11836         (UC_CASED_LETTER): New macro.
11837         * lib/gen-uni-tables.c (is_category_LC): New function.
11838         (output_categories): Also handle category LC.
11839         (UC_CATEGORY_MASK_LC): New enumeration value.
11840         (general_category_byname): Also handle category LC.
11841         * lib/unictype/categ_LC.c: New file.
11842         * lib/unictype/categ_LC.h: New file, automatically generated.
11843         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11844         category LC.
11845         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11846         * modules/unictype/category-LC: New file.
11847         * modules/unictype/category-byname (Depends-on): Add
11848         unictype/category-LC.
11849         * modules/unictype/category-all (Depends-on): Likewise.
11850
11851 2011-03-25  Eric Blake  <eblake@redhat.com>
11852
11853         xmalloc: revert yesterday's regression
11854         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11855         realloc's underlying behavior (allowing allocation of zero-size
11856         objects, especially if malloc-gnu is also in use).
11857
11858 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11859
11860         maint.mk: add missing version to VC-tag
11861         * top/maint.mk: git tag was missing actual tag name; add it.
11862
11863         valgrind: do leak checking, and exit with code 1 on error (not 0)
11864         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11865         to VALGRIND.
11866
11867 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11868
11869         posix-modules: say what it does.
11870         * posix-modules: Add a line to the --help output saying what it does.
11871
11872 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11873
11874         xmalloc: Do not leak if underlying realloc is C99 compatible.
11875         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11876         This avoids a leak on C99-based systems.  See
11877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11878
11879 2011-03-24  Eric Blake  <eblake@redhat.com>
11880
11881         realloc: document portability problem
11882         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11883         passing 0 size to realloc.
11884
11885 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11886
11887         doc: update users.txt
11888         * users.txt: Add cvsps, tmpwatch
11889
11890 2011-03-23  Matt Rice  <ratmice@gmail.com>
11891
11892         doc: update users.txt
11893         * users.txt: Add gdb.
11894
11895 2011-03-23  Jim Meyering  <meyering@redhat.com>
11896
11897         doc: update users.txt
11898         Looking through matches up to the following URL (there are still
11899         several more pages), I found several projects that use gnulib:
11900         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11901         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11902         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11903
11904 2011-03-22  Bruno Haible  <bruno@clisp.org>
11905
11906         unictype/bidi*: Rename functions.
11907         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11908         uc_bidi_class, uc_is_bidi_class): New declarations.
11909         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11910         uc_bidi_category_byname.
11911         (uc_bidi_category_byname): New function.
11912         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11913         u_bidi_category_name.
11914         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11915         (uc_bidi_category_name): New function.
11916         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11917         uc_bidi_category.
11918         (uc_bidi_category): New function.
11919         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11920         uc_is_bidi_category. Invoke uc_bidi_class.
11921         (uc_is_bidi_category): New function.
11922         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11923         instead of uc_bidi_category_byname.
11924         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11925         instead of uc_bidi_category_name.
11926         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11927         uc_bidi_category.
11928         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11929         instead of uc_is_bidi_category.
11930
11931 2011-03-21  Bruno Haible  <bruno@clisp.org>
11932
11933         New module 'unictype/joininggroup-all'.
11934         * modules/unictype/joininggroup-all: New file.
11935
11936         Tests for module 'unictype/joininggroup-of'.
11937         * modules/unictype/joininggroup-of-tests: New file.
11938         * tests/unictype/test-joininggroup_of.c: New file.
11939         * tests/unictype/test-joininggroup_of.h: New file, automatically
11940         generated by gen-uni-tables.
11941
11942         New module 'unictype/joininggroup-of'.
11943         * modules/unictype/joininggroup-of: New file.
11944         * lib/unictype/joininggroup_of.c: New file.
11945         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11946         gen-uni-tables.
11947
11948         Tests for module 'unictype/joininggroup-byname'.
11949         * modules/unictype/joininggroup-byname-tests: New file.
11950         * tests/unictype/test-joininggroup_byname.c: New file.
11951
11952         New module 'unictype/joininggroup-byname'.
11953         * modules/unictype/joininggroup-byname: New file.
11954         * lib/unictype/joininggroup_byname.c: New file.
11955         * lib/unictype/joininggroup_byname.gperf: New file.
11956
11957         Tests for module 'unictype/joininggroup-name'.
11958         * modules/unictype/joininggroup-name-tests: New file.
11959         * tests/unictype/test-joininggroup_name.c: New file.
11960
11961         New module 'unictype/joininggroup-name'.
11962         * modules/unictype/joininggroup-name: New file.
11963         * lib/unictype/joininggroup_name.c: New file.
11964         * lib/unictype/joininggroup_name.h: New file.
11965
11966         New module 'unictype/joiningtype-all'.
11967         * modules/unictype/joiningtype-all: New file.
11968
11969         Tests for module 'unictype/joiningtype-of'.
11970         * modules/unictype/joiningtype-of-tests: New file.
11971         * tests/unictype/test-joiningtype_of.c: New file.
11972         * tests/unictype/test-joiningtype_of.h: New file, automatically
11973         generated by gen-uni-tables.
11974
11975         New module 'unictype/joiningtype-of'.
11976         * modules/unictype/joiningtype-of: New file.
11977         * lib/unictype/joiningtype_of.c: New file.
11978         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11979         gen-uni-tables.
11980
11981         Tests for module 'unictype/joiningtype-byname'.
11982         * modules/unictype/joiningtype-byname-tests: New file.
11983         * tests/unictype/test-joiningtype_byname.c: New file.
11984
11985         New module 'unictype/joiningtype-byname'.
11986         * modules/unictype/joiningtype-byname: New file.
11987         * lib/unictype/joiningtype_byname.c: New file.
11988
11989         Tests for module 'unictype/joiningtype-name'.
11990         * modules/unictype/joiningtype-name-tests: New file.
11991         * tests/unictype/test-joiningtype_name.c: New file.
11992
11993         New module 'unictype/joiningtype-name'.
11994         * modules/unictype/joiningtype-name: New file.
11995         * lib/unictype/joiningtype_name.c: New file.
11996
11997         unictype: Add support for Arabic shaping properties.
11998         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11999         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12000         declarations.
12001         (UC_JOINING_GROUP_*): New enumeration values.
12002         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12003         declarations.
12004         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12005         (unicode_joining_type): New variable.
12006         (UC_JOINING_GROUP_*): New enumeration values.
12007         (unicode_joining_group): New variable.
12008         (fill_arabicshaping, joining_type_as_c_identifier,
12009         output_joining_type_test, output_joining_type,
12010         joining_group_as_c_identifier, output_joining_group_test,
12011         output_joining_group): New functions.
12012         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12013         fill_arabicshaping and output_joining_type_test, output_joining_type,
12014         output_joining_group_test, output_joining_group.
12015         Reported by Simon Josefsson.
12016
12017 2011-03-21  Jim Meyering  <meyering@redhat.com>
12018
12019         strftime: fix a bug in yesterday's change
12020         * lib/strftime.c (add): Accommodate width's initial value of -1.
12021         Otherwise, nstrftime would copy uninitialized data into
12022         the result buffer.
12023
12024 2011-03-21  Jim Meyering  <meyering@redhat.com>
12025
12026         tests: add strftime-tests module
12027         * tests/test-strftime.c: New file.
12028         * modules/strftime-tests: New module.
12029
12030 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12031
12032         strftime: don't assume a byte count fits in 'int'
12033         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12034         found this problem by static analysis, using gcc -Wstrict-overflow
12035         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12036         on an integer overflow having undefined behavior, but it turns out
12037         that the argument is a size, which might not fit in 'int' anyway,
12038
12039 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12040
12041         stdio: don't require ignore_value around fwrite
12042
12043         This patch works around libc bug 11959
12044         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12045         Without this patch, applications must often write
12046         ignore_value (fwrite (...)) even though the ignore_value is
12047         not helpful here.  It's common to write many objects, using
12048         fwrite/printf/etc., and then use ferror to detect output error.
12049
12050         I considered making this patch optional, but decided against it,
12051         because libc is obviously being inconsistent here: there is no
12052         reason libc should insist that user code must inspect fwrite
12053         return's value without also insisting that it inspect printf's,
12054         putchar's, etc.  If user code wants to have a strict style where
12055         all these functions' values are checked (so that ferror need not
12056         be checked), we could add support for that style in a new gnulib
12057         module, but in the meantime it's better to be consistent and to
12058         support common usage.
12059
12060         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12061         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12062         that we are compiling in checking mode, and if not C++, and
12063         if not already wrapping fwrite for some other reason.
12064         (fwrite): #define to rpl_fwrite if the latter is defined.
12065
12066 2011-03-20  Bruno Haible  <bruno@clisp.org>
12067
12068         verror: Fix compilation error introduced on 2011-02-13.
12069         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12070         instead of __attribute__.
12071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12072
12073 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12074             Bruno Haible  <bruno@clisp.org>
12075
12076         socklen: do not depend on sys_socket
12077         While trying to modify Emacs to use gnulib's socklen module,
12078         I discovered a circular dependency: socklen depends on sys_socket
12079         and vice versa.  Emacs can use socklen, but it does not need
12080         sys_socket because it has its own substitute for sys/socket.h.
12081         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12082         gl_TYPE_SOCKLEN_T.
12083         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12084         gl_PREREQ_SYS_H_SOCKET.
12085         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12086         gl_PREREQ_SYS_H_SOCKET.
12087         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12088         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12089         * modules/socklen (Depends-on): Do not depend on sys_socket.
12090         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12091
12092 2011-03-20  Jim Meyering  <meyering@redhat.com>
12093
12094         maint.mk: sort file names *after* new transformation
12095         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12096         prefix would have led to an unwarranted failure in GNU parted.
12097         Sort after that transformation.
12098
12099 2011-03-19  Jim Meyering  <meyering@redhat.com>
12100
12101         maint.mk: fix po-file syntax-check rule
12102         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12103         Patch by Bruno Haible.
12104
12105 2011-03-19  Bruno Haible  <bruno@clisp.org>
12106
12107         socklen: Update comment.
12108         * m4/socklen.m4: Update comment about platforms.
12109
12110 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12111             Bruno Haible  <bruno@clisp.org>
12112
12113         inet_ntop, inet_pton: Simplify.
12114         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12115         documented to provide socklen_t and we already depend on sys_socket.
12116         * modules/inet_pton (Depends-on): Likewise.
12117         * lib/arpa_inet.in.h: Adjust comment.
12118
12119 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12120             Bruno Haible  <bruno@clisp.org>
12121
12122         netdb: Simplify.
12123         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12124         documented to provide socklen_t and we already depend on sys_socket.
12125         * lib/netdb.in.h: Adjust comment.
12126
12127 2011-03-19  Bruno Haible  <bruno@clisp.org>
12128
12129         sys_socket, netdb: Document problem with socklen_t.
12130         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12131         platforms.
12132         * doc/posix-headers/netdb.texi: Likewise.
12133
12134 2011-03-18  Eric Blake  <eblake@redhat.com>
12135
12136         maint.mk: let po check work in VPATH build
12137         * top/maint.mk (po_file): Allow cfg.mk override.
12138         (sc_po_check): Allow VPATH use.
12139         Reported by Jiri Denemark.
12140
12141 2011-03-16  Jim Meyering  <meyering@redhat.com>
12142
12143         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12144         Before, you would have had to create one .x-sc_ file per rule in order
12145         to exempt offending files.  Now, you may instead use a Make variable --
12146         usually defined in cfg.mk -- whose name identifies the affected rule.
12147         * top/maint.mk (_sc_excl): Define.
12148         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12149         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12150
12151 2011-03-13  Bruno Haible  <bruno@clisp.org>
12152
12153         ignore-value tests: Avoid warnings.
12154         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12155         empty for gcc < 3.4.
12156
12157 2011-03-13  Bruno Haible  <bruno@clisp.org>
12158
12159         passfd: Fix link error on Solaris.
12160         * modules/passfd (Description): Correct.
12161         (Depends-on): Add socketlib.
12162         (Link): New section.
12163         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12164
12165 2011-03-13  Bruno Haible  <bruno@clisp.org>
12166
12167         passfd: Fix link error on AIX 5.2.
12168         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12169
12170 2011-03-13  Bruno Haible  <bruno@clisp.org>
12171
12172         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12173         * lib/sys_socket.in.h: Include <stddef.h>.
12174         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12175         CMSG_FIRSTHDR. Remove unused variable.
12176
12177 2011-03-13  Bruno Haible  <bruno@clisp.org>
12178
12179         passfd: Fix compilation error on OpenBSD.
12180         * lib/passfd.c: Include <sys/uio.h>.
12181
12182 2011-03-13  Bruno Haible  <bruno@clisp.org>
12183
12184         passfd test: Fix warnings.
12185         * tests/test-passfd.c: Include <sys/wait.h>.
12186         (main): Fix typo.
12187
12188 2011-03-13  Bruno Haible  <bruno@clisp.org>
12189
12190         passfd module, part 4, tweaks.
12191         * tests/test-passfd.c: Reorder includes.
12192         (main): Fix perror and printf calls.
12193
12194 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12195
12196         passfd module, part 4.
12197         * modules/passfd-tests: New file.
12198         * tests/test-passfd.c: New file.
12199
12200 2011-03-13  Jim Meyering  <meyering@redhat.com>
12201
12202         Makefile: rely on GNU make; derive syntax-check rule names
12203         Rather than requiring that each sc_ rule be listed as a dependent
12204         of "check", use features of GNU make to derive the list.
12205         * Makefile (syntax-check-rules): Define.
12206         (check): Depend on the new variable, not the hard-coded list.
12207
12208 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12209             Bruno Haible  <bruno@clisp.org>
12210
12211         passfd module, part 3.
12212         * lib/passfd.h (recvfd): Add a flags argument.
12213         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12214         (recvfd): Add a flags argument.
12215         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12216         exists.
12217         * modules/passfd (Depends-on): Add cloexec.
12218         Suggested by Eric Blake.
12219
12220 2011-03-13  Bruno Haible  <bruno@clisp.org>
12221
12222         passfd module, part 2, tweaks.
12223         * modules/passfd (Files): Reorder.
12224         (Depends-on): Remove errno.
12225         (Include): Remove <sys/socket.h>, <sys/un.h>.
12226         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12227         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12228         specification header. Include <sys/socket.h> always. Don't include
12229         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12230         (sendfd): Clarify that it sets errno when it fails.
12231         (recvfd): Fix specification.
12232
12233 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12234
12235         passfd module, part 2.
12236         * modules/passfd: New file.
12237         * lib/passfd.h: New file.
12238         * lib/passfd.c: New file.
12239
12240 2011-03-12  Bruno Haible  <bruno@clisp.org>
12241
12242         wcswidth, mbswidth: Avoid integer overflow.
12243         * lib/wcswidth.c: Include <limits.h>.
12244         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12245         * lib/mbswidth.c: Include <limits.h>.
12246         (mbsnwidth): Avoid 'int' overflow.
12247         Reported by Jim Meyering.
12248
12249 2011-03-12  Bruno Haible  <bruno@clisp.org>
12250
12251         futimens, utimensat: Avoid endless recursion on Solaris 10.
12252         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12253         Solaris.
12254         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12255         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12256
12257 2011-03-11  Jim Meyering  <meyering@redhat.com>
12258
12259         maint.mk: relax a regexp to accommodate other formatting styles
12260         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12261         between "ngettext" and the following "(".
12262
12263 2011-03-11  Pádraig Brady <P@draigBrady.com>
12264
12265         maint.mk: suppress a false positive warning
12266         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12267         diagnostics are marked with ngettext.
12268
12269 2011-03-10  Eric Blake  <eblake@redhat.com>
12270
12271         wchar: add explicit dependencies, for Tru64
12272         * modules/mbmemcasecoll (Depends-on): Add wchar.
12273         * modules/mbtowc (Depends-on): Likewise.
12274         * modules/vasnprintf (Depends-on): Likewise.
12275         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12276         * modules/wctomb (Depends-on): Likewise.
12277         Reported by Peter O'Gorman.
12278
12279 2011-03-08  Bruno Haible  <bruno@clisp.org>
12280
12281         passfd module, part 1, tweaks.
12282         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12283         Improve indentation. Improve AC_MSG_CHECKING messages.
12284         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12285         gl_SOCKET_FAMILIES.
12286
12287 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12288
12289         passfd module, part 1.
12290         * m4/afunix.m4: New file.
12291         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12292         sockets.
12293
12294 2011-03-08  Bruno Haible  <bruno@clisp.org>
12295
12296         regex-quote: New API.
12297         * lib/regex-quote.h: Include <stdbool.h>.
12298         (struct regex_quote_spec): New type.
12299         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12300         New declarations.
12301         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12302         'const struct regex_quote_spec *' argument.
12303         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12304         (pcre_special): New constant.
12305         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12306         New functions.
12307         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12308         'const struct regex_quote_spec *' argument.
12309         * modules/regex-quote (Depends-on): Add stdbool.
12310         * tests/test-regex-quote.c (check): Update for new API. Add test for
12311         anchored results.
12312         * NEWS: Mention the API change.
12313         Reported by Reuben Thomas and Eric Blake.
12314
12315 2011-03-06  Bruno Haible  <bruno@clisp.org>
12316
12317         regex-quote: Fix creation of POSIX extended regular expressions.
12318         * lib/regex-quote.c (ere_special): Add grouping and alternation
12319         operators.
12320
12321 2011-03-05  Bruno Haible  <bruno@clisp.org>
12322
12323         doc: Improve doc regarding autopoint vs. gnulib.
12324         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12325         disable autopoint while running autoreconf.
12326         Suggested by Ralf Wildenhues.
12327
12328 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12329
12330         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12331         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12332
12333 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12334
12335         parse-duration: remove xalloc.h dependency
12336         * lib/parse-duration.c (parse_period): handle NULL return from
12337         strdup instead of calling xstrdup().
12338         * modules/parse-duration: remove "xalloc" dependency
12339
12340 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12341
12342         bootstrap: honor m4_base when running aclocal
12343         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12344
12345 2011-03-02  Jim Meyering  <meyering@redhat.com>
12346
12347         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12348         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12349         on request from Matt Booth.
12350
12351 2011-03-01  Eric Blake  <eblake@redhat.com>
12352
12353         test-link: work on Hurd
12354         * tests/test-link.h (test_link): Hurd rejects linking directories
12355         with EISDIR instead of the POSIX-mandated EPERM.
12356
12357 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12358
12359         stdio: simplify by moving files to printf-posix, sigpipe
12360         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12361         since this symbol is needed only if printf is replaced.
12362         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12363         Require gl_ASM_SYMBOL_PREFIX.
12364         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12365         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12366         (Depends-on): Add 'raise'.
12367         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12368         * modules/stdio (Files): Remove lib/stdio-write.c,
12369         m4/asm-underscore.m4.
12370         (Depends-on): Remove 'raise'.
12371
12372         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12373         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12374         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12375         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12376
12377 2011-02-28  Bruno Haible  <bruno@clisp.org>
12378
12379         localcharset: Assume ANSI C behaviour of free().
12380         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12381         calling free().
12382         Suggested by Simon Josefsson <simon@josefsson.org>.
12383
12384 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12385             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12386             Bruno Haible  <bruno@clisp.org>  (tiny change)
12387
12388         On Cygwin, use /proc file system instead of win32 API.
12389         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12390         Win32 file names.
12391         (DllMain): Simplify by removing Cygwin specific code.
12392         (find_shared_library_fullname): Use Linux specific implementation also
12393         for Cygwin.
12394         (get_shared_library_fullname): Update accordingly.
12395         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12396         Win32 file names.
12397         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12398         Cygwin specific code.
12399
12400 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12401             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12402
12403         Fix OpenMP flag detection for various Fortran compilers.
12404         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12405         OpenMP-conditional compilation construct, to force compile
12406         failure with missing OpenMP flag.
12407         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12408
12409 2011-02-25  Eric Blake  <eblake@redhat.com>
12410
12411         strstr: expand test coverage
12412         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12413         compilation.
12414         * tests/test-memmem.c (main): Duplicate tests.
12415         * tests/test-strcasestr.c (main): Likewise.
12416         * tests/test-c-strcasestr.c (main): Likewise.
12417
12418 2011-02-25  Jim Meyering  <meyering@redhat.com>
12419
12420         maint.mk: detect missing-NL-at-EOF, too
12421         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12422         it also detects when a file lacks a newline at EOF.
12423         (require_exactly_one_NL_at_EOF_): Renamed from
12424         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12425         since people may well have .x-sc_... file names tied to the
12426         existing name.  Suggested by Eric Blake.
12427
12428 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12429
12430         dirname: move m4/dos.m4 functionality into lib/dosname.h
12431
12432         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12433         extracts symbols from it, puts them into config.h; but it's much
12434         easier to use the symbols directly.  filename.h already does this,
12435         but it disagrees with dos.m4 in some respects.  This patch
12436         introduces a different include file dosname.h that packages up
12437         dos.m4, and then later we can work on merging filename.h and
12438         dosname.h.  Applications that need only the easy-to-configure
12439         symbols should consider including dosname.h rather than dirname.h.
12440         * NEWS: Mention incompatible changes.
12441         * m4/dos.m4: Remove.
12442         * lib/dosname.h, modules/dosname: New files.
12443         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12444         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12445         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12446         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12447         Include dosname.h, not dirname.h.
12448         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12449         Include dosname.h, for definitions of symbols like ISSLASH
12450         that used to be in config.h.
12451         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12452         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12453         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12454         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12455         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12456         * modules/rmdir (Files): Likewise.
12457         * modules/stat (Files): Likewise.
12458         * modules/unlink (Files): Likewise.
12459         * modules/dirname-lgpl (Depends-on): Add dosname.
12460         * modules/lstat (Depends-on): Likewise.
12461         * modules/openat (Depends-on): Likewise.
12462         * modules/rmdir (Depends-on): Likewise.
12463         * modules/savewd (Depends-on): Likewise.
12464         * modules/stat (Depends-on): Likewise.
12465         * modules/unlink (Depends-on): Likewise.
12466         * modules/openat (Depends-on): Remove dirname-lgpl.
12467         * modules/savewd (Depends-on): Likewise.
12468         * tests/test-dirname.c: Do not use removed symbols like
12469         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12470         the remaining symbols, e.g., ISSLASH ('\\').
12471
12472 2011-02-25  Eric Blake  <eblake@redhat.com>
12473
12474         strstr: revert patches that introduced bug and pessimization
12475         * lib/str-two-way.h: Add another reference.
12476         (two_way_short_needle, two_way_long_needle): Revert changes from
12477         2011-02-24; they pessimize search speed.
12478         (critical_factorization): Partially revert changes from
12479         2010-06-22; they violate the requirement that the left half of the
12480         needle be smaller than the period of the needle.
12481
12482 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12483
12484         filenamecat: remove unnecessary dependency on dirname-lgpl
12485         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12486         is no direct dependency, just an indirect one via filenamecat-lgpl.
12487
12488         remove: remove unnecessary use of m4/dos.m4
12489         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12490         * modules/remove (FILES): Remove m4/dos.m4.
12491
12492         * lib/openat-proc.c: Don't include dirname.h; not needed.
12493
12494         backupfile: remove unnecessary use of m4/dos.m4
12495         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12496         of its symbols are used by the backupfile code.  backupfile.c does
12497         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12498         for the rare case of programs that want all their backup file
12499         names to live within 8+3 limits, and dos.m4 doesn't address that.
12500         * modules/backupfile (Files): Remove m4/dos.m4.
12501
12502 2011-02-24  Jim Meyering  <meyering@redhat.com>
12503
12504         strstr: fix a bug whereby strstr would mistakenly return NULL
12505         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12506         in period calculation.
12507         (two_way_long_needle): Likewise.
12508         The original problem was reported by Mike Stump in
12509         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12510         Ralf Wildenhues provided the short needle and haystack.
12511         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12512         Add a more involved test to trigger the bug in two_way_long_needle.
12513
12514 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12515
12516         gnulib-tool: remove use of bold display in help screen
12517         * gnulib-tool (func_usage): Do not use bold display anymore in the
12518         help screen.  That was just meant to be a temporary emphasis for a
12519         backward-incompatible change.
12520
12521 2011-02-23  Bruno Haible  <bruno@clisp.org>
12522
12523         Fix misindentation of preprocessor directives.
12524         * lib/argp-namefrob.h: Reindent preprocessor directives.
12525         * lib/getopt_int.h (struct _getopt_data): Likewise.
12526         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12527         * lib/vasnprintf.c (decode_long_double): Likewise.
12528         * tests/test-argmatch.c: Insert blank lines, for clarity.
12529         * tests/test-exclude.c: Likewise.
12530
12531 2011-02-22  Bruno Haible  <bruno@clisp.org>
12532
12533         ioctl: Fix for MacOS X in 64-bit mode.
12534         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12535         value.
12536         Suggested by Eric Blake.
12537         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12538
12539 2011-02-22  Jim Meyering  <meyering@redhat.com>
12540
12541         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12542         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12543         in lib/.
12544
12545 2011-02-22  Eric Blake  <eblake@redhat.com>
12546
12547         maint: avoid any CDPATH issue
12548         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12549
12550         maint: adjust cpp indentation for my modules, as well
12551         * Makefile (sc_cpp_indent_check): Add my name.
12552         * lib/fbufmode.c: Filter through cppi.
12553         * lib/fpurge.c: Likewise.
12554         * lib/freadable.c: Likewise.
12555         * lib/freading.c: Likewise.
12556         * lib/fwritable.c: Likewise.
12557         * lib/fwriting.c: Likewise.
12558         * lib/sigaction.c: Likewise.
12559
12560 2011-02-22  Jim Meyering  <meyering@redhat.com>
12561
12562         maint: adjust cpp indentation to reflect nesting depth
12563         I.e., in a block of code that begins with an unnested "#if",
12564         put one space between the "#" in column 1 and following token.
12565         For example,
12566         -#include <sys/vfs.h>
12567         +# include <sys/vfs.h>
12568         Do this only in .c files that are part of a module I maintain.
12569         * lib/linkat.c: Filter through cppi.
12570         * lib/nanosleep.c: Likewise.
12571         * lib/openat.c: Likewise.
12572         * lib/openat-die.c: Likewise.
12573         * lib/dup3.c: Likewise.
12574         * lib/fchownat.c: Likewise.
12575         * lib/flock.c: Likewise.
12576         * lib/fsync.c: Likewise.
12577         * lib/fts.c: Likewise.
12578         * lib/getpass.c: Likewise.
12579         * lib/gettimeofday.c: Likewise.
12580         * lib/userspec.c: Likewise.
12581         * Makefile (sc_cpp_indent_check): New rule, to check this.
12582
12583 2011-02-22  Bruno Haible  <bruno@clisp.org>
12584
12585         New module 'wctomb'.
12586         * lib/stdlib.in.h (wctomb): New declaration.
12587         * lib/wctomb.c: New file.
12588         * lib/wctomb-impl.h: New file.
12589         * m4/wctomb.m4: New file.
12590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12591         REPLACE_WCTOMB.
12592         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12593         REPLACE_WCTOMB.
12594         * modules/wctomb: New file.
12595         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12596         * doc/posix-functions/wctomb.texi: Mention the new module.
12597         * modules/wctob (Depends-on): Add wctomb.
12598
12599 2011-02-22  Bruno Haible  <bruno@clisp.org>
12600
12601         New module 'mbtowc'.
12602         * lib/stdlib.in.h (mbtowc): New declaration.
12603         * lib/mbtowc.c: New file.
12604         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12605         * m4/mbtowc.m4: New file.
12606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12607         REPLACE_MBTOWC.
12608         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12609         REPLACE_MBTOWC.
12610         * modules/mbtowc: New file.
12611         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12612         * doc/posix-functions/mbtowc.texi: Mention the new module.
12613         * modules/btowc (Depends-on): Add mbtowc.
12614
12615 2011-02-22  Bruno Haible  <bruno@clisp.org>
12616
12617         wcrtomb: Add more tests for native Windows platforms.
12618         * tests/test-wcrtomb-w32-1.sh: New file.
12619         * tests/test-wcrtomb-w32-2.sh: New file.
12620         * tests/test-wcrtomb-w32-3.sh: New file.
12621         * tests/test-wcrtomb-w32-4.sh: New file.
12622         * tests/test-wcrtomb-w32-5.sh: New file.
12623         * tests/test-wcrtomb-w32.c: New file.
12624         * modules/wcrtomb-tests (Files): Add them.
12625         (Makefile.am): Arrange to run these tests.
12626         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12627         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12628
12629 2011-02-20  Bruno Haible  <bruno@clisp.org>
12630
12631         wcrtomb: Enhance test.
12632         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12633
12634 2011-02-20  Bruno Haible  <bruno@clisp.org>
12635
12636         mbrtowc: Tiny optimization.
12637         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12638
12639 2011-02-20  Jim Meyering  <meyering@redhat.com>
12640
12641         test-exclude.c: remove unmatched #endif
12642         * tests/test-exclude.c: Remove stray #endif, left over from
12643         the change of a week ago.
12644
12645 2011-02-19  Jim Meyering  <meyering@redhat.com>
12646
12647         git-version-gen: skip "-dirty" check when appropriate
12648         * build-aux/git-version-gen: Don't run any git commands when the
12649         version string comes from .tarball-version.  Prior to this, we
12650         would run git update-index --refresh even from a just-unpacked
12651         tarball directory, and that could affect a .git/ directory in a
12652         parent of the build directory.  Reported by Mike Frysinger.
12653
12654 2011-02-19  Bruno Haible  <bruno@clisp.org>
12655
12656         unictype/property-byname: Reduce the size of the 'data' segment.
12657         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12658
12659 2011-02-19  Bruno Haible  <bruno@clisp.org>
12660
12661         unictype/scripts: Reduce the size of the 'data' segment.
12662         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12663         '%pic'.
12664         * lib/unictype/scripts_byname.gperf: Regenerated.
12665
12666 2011-02-19  Bruno Haible  <bruno@clisp.org>
12667
12668         stdint: Update documentation.
12669         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12670
12671 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12672
12673         stdint: omit redundant check for wchar.h
12674         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12675         always tests whether wchar.h exists, so remove the now-redundant test.
12676
12677 2011-02-18  Bruno Haible  <bruno@clisp.org>
12678
12679         stdint: Cut dependency to module 'wchar'.
12680         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12681         include the necessary prerequisites.
12682         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12683         * modules/stdint (Depends-on): Remove wchar.
12684         (Makefile.am): Substitute HAVE_WCHAR_H.
12685         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12686
12687 2011-02-18  Eric Blake  <eblake@redhat.com>
12688
12689         longlong: skip, rather than fail, on cross-compilation
12690         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12691         when cross-compiling; regression from 2011-02-16.
12692
12693 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12694
12695         * NEWS: Mention 2011-02-08 change to stdlib.
12696
12697 2011-02-17  Bruno Haible  <bruno@clisp.org>
12698
12699         getloadavg: Add comments about platforms.
12700         * m4/getloadavg.m4: Add comment.
12701         * lib/getloadavg.c: Likewise.
12702
12703 2011-02-17  Bruno Haible  <bruno@clisp.org>
12704
12705         getloadavg: Fix link error on Solaris 2.6.
12706         * modules/getloadavg (Link): New section.
12707         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12708         linking test-getloadavg.
12709         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12710         getloadavg.
12711
12712 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12713
12714         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12715         It was 'int', but this doesn't match the IRIX 6.5 manual.
12716         Suggested by Bruno Haible in
12717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12718
12719 2011-02-17  Bruno Haible  <bruno@clisp.org>
12720
12721         havelib: Fix comments.
12722         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12723         change.
12724
12725 2011-02-17  Bruno Haible  <bruno@clisp.org>
12726
12727         havelib: Update config.rpath.
12728         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12729
12730 2011-02-17  Bruno Haible  <bruno@clisp.org>
12731
12732         getloadavg test: Add some plausibility checks.
12733         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12734         is improbable.
12735
12736 2011-02-16  Eric Blake  <eblake@redhat.com>
12737
12738         maintainer-makefile: make syntax-check a no-op from tarballs
12739         * top/maint.mk (no-vc-detected): New rule.
12740         (local-checks-available): Use it to avoid hanging if someone tries
12741         'make syntax-check' from a tarball.  Also append to any non-syntax
12742         checks already defined in cfg.mk.
12743
12744 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12745
12746         longlong: tune, particularly for common case of c99
12747
12748         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12749         or running anything if c99, or if unsigned long long int does not
12750         work.  In either case, we know the answer without further tests.
12751         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12752         it at most once, and use its results for both long long int and
12753         unsigned long long int.  This is more likely to be efficient in
12754         the common case where the program wants to check for both long
12755         long int and unsigned long long int.
12756         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12757         since the answer is already known.
12758
12759 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12760
12761         getloadavg: set errno
12762         * lib/getloadavg.c: Set errno when returning -1.  If no other
12763         error number looks appropriate, set it to ENOSYS if the getloadavg
12764         looks like it can't possibly ever work, ENOTSUP otherwise.
12765         Suggested by Bruno Haible in
12766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12767
12768         getloadavg: trim unused parts and speed up 'configure'
12769         * NEWS: Document this.
12770         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12771         always compiled if getloadavg is absent.
12772         Move test code to ...
12773         * tests/test-getloadavg.c: New file, containing previous
12774         contents of test from lib/getloadavg.c.  It also contains
12775         suggestions by Bruno Haible in
12776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12777         * modules/getloadavg-tests: New file.
12778         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12779         Do tests in the same order as they're needed for getloadavg.c.
12780         Omit setgid-related tests that generate symbols KMEM_GROUP,
12781         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12782         Do only the tests that are needed to see whether the system has
12783         getloadavg, moving the other tests into ...
12784         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12785         NLIST_NAME_UNION; nobody should be using it.  Do not define
12786         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12787         relevant, as the user of this module shouldn't care how getloadavg
12788         is implemented.
12789
12790         getloadavg: omit unused var
12791         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12792
12793 2011-02-15  Jim Meyering  <meyering@redhat.com>
12794
12795         doc: update users.txt
12796         * users.txt: Update iwhd's URL.
12797
12798 2011-02-13  Bruno Haible  <bruno@clisp.org>
12799
12800         Consistent macro naming for macros that use GCC __attribute__.
12801         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12802         _ATTRIBUTE_NONNULL_.
12803         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12804         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12805         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12806         ATTRIBUTE_DEPRECATED.
12807         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12808         ATTRIBUTE_NORETURN.
12809         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12810         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12811         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12812         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12813         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12814         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12815         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12816         ATTRIBUTE_SENTINEL.
12817         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12818         ATTRIBUTE_RETURN_CHECK.
12819         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12820         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12821         ATTRIBUTE_NORETURN.
12822         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12823         Reported by Paul Eggert.
12824
12825 2011-02-13  Bruno Haible  <bruno@clisp.org>
12826
12827         Don't interfere with a program's definition of __attribute__.
12828         * lib/argp.h (__attribute__): Remove definition.
12829         (_GL_ATTRIBUTE_FORMAT): New macro.
12830         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12831         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12832         (_GL_ATTRIBUTE_FORMAT): New macro.
12833         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12834         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12835         GCC 3 or newer.
12836         * lib/error.h (__attribute__): Remove definition.
12837         (_GL_ATTRIBUTE_FORMAT): New macro.
12838         (error, error_at_line): Use it.
12839         * lib/hash.h (__attribute__): Remove definition.
12840         (ATTRIBUTE_WUR): Update definition. Define always.
12841         * lib/openat.h (__attribute__): Remove definition.
12842         (ATTRIBUTE_NORETURN): Update definition. Define always.
12843         * lib/sigpipe-die.h (__attribute__): Remove definition.
12844         (ATTRIBUTE_NORETURN): Update definition. Define always.
12845         * lib/vasnprintf.h (__attribute__): Remove definition.
12846         (_GL_ATTRIBUTE_FORMAT): New macro.
12847         (asnprintf, vasnprintf): Use it.
12848         * lib/xalloc.h (__attribute__): Remove definition.
12849         (ATTRIBUTE_NORETURN): Update definition. Define always.
12850         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12851         * lib/xmemdup0.h (__attribute__): Remove definition.
12852         (ATTRIBUTE_NORETURN): Update definition. Define always.
12853         * lib/xprintf.h (__attribute__): Remove definition.
12854         (_GL_ATTRIBUTE_FORMAT): New macro.
12855         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12856         * lib/xstrtol.h (__attribute__): Remove definition.
12857         (ATTRIBUTE_NORETURN): Update definition. Define always.
12858         * lib/xvasprintf.h (__attribute__): Remove definition.
12859         (_GL_ATTRIBUTE_FORMAT): New macro.
12860         (xasprintf, xvasprintf): Use it.
12861         * tests/test-argmatch.c (__attribute__): Remove definition.
12862         (ATTRIBUTE_NORETURN): Update definition. Define always.
12863         * tests/test-exclude.c (__attribute__): Remove definition.
12864         (ATTRIBUTE_NORETURN): Update definition. Define always.
12865         Reported by Paul Eggert.
12866
12867 2011-02-13  Bruno Haible  <bruno@clisp.org>
12868
12869         mbrtowc: Add more tests for native Windows platforms.
12870         * tests/test-mbrtowc-w32-1.sh: New file.
12871         * tests/test-mbrtowc-w32-2.sh: New file.
12872         * tests/test-mbrtowc-w32-3.sh: New file.
12873         * tests/test-mbrtowc-w32-4.sh: New file.
12874         * tests/test-mbrtowc-w32-5.sh: New file.
12875         * tests/test-mbrtowc-w32.c: New file.
12876         * modules/mbrtowc-tests (Files): Add them.
12877         (Makefile.am): Arrange to run these tests.
12878         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12879         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12880
12881 2011-02-13  Bruno Haible  <bruno@clisp.org>
12882
12883         mbrtowc: Work around native Windows bug.
12884         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12885         guess when no suitable locale for testing was found.
12886         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12887
12888 2011-02-13  Bruno Haible  <bruno@clisp.org>
12889
12890         mbsinit: Work around mingw bug.
12891         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12892         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12893         Windows.
12894         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12895
12896 2011-02-13  Bruno Haible  <bruno@clisp.org>
12897
12898         mbsinit: Don't crash for a NULL argument.
12899         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12900         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12901
12902 2011-02-13  Bruno Haible  <bruno@clisp.org>
12903
12904         Don't interfere with a program's definition of __attribute__.
12905         * lib/stdio.in.h (__attribute__): Remove definition.
12906         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12907         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12908         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12909         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12910         * lib/string.in.h (__attribute__): Remove definition.
12911         Reported by Paul Eggert.
12912
12913 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12914
12915         stdlib: don't get in the way of non-GCC __attribute__
12916         See thread starting at
12917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12918         Revert previous stdlib change, installing the following instead:
12919         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12920         to get in the way of a non-GCC compiler that supports __attribute__.
12921         (_GL_ATTRIBUTE_RETURN): New macro.
12922         (_Exit): Use it instead of __attribute__.
12923
12924 2011-02-12  Bruno Haible  <bruno@clisp.org>
12925
12926         quotearg test: Avoid test failure on mingw.
12927         * tests/test-quotearg.sh: Convert the locale identifier from native
12928         Windows syntax to Unix syntax.
12929
12930 2011-02-12  Bruno Haible  <bruno@clisp.org>
12931
12932         setlocale: Prefer gnulib's override over libintl's override.
12933         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12934         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12935         GNULIB_defined_setlocale is set.
12936
12937 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12938
12939         stdlib: support non-GCC __attribute__
12940
12941         Fix a serious and tricky problem encountered when attempting to
12942         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12943         5.5, but it crashed due to memory corruption on Solaris 10 with
12944         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12945         bits that are otherwise zero.  This tagging is optional inside
12946         Emacs but is preferred and is used when __attribute__ ((__aligned
12947         (8))) works, as it does with both recent-enough GCC and with Sun C
12948         5.11.  However, Sun C 5.11 is not GCC and does not #define
12949         __GNUC__ and __GNUC_MINOR__.
12950
12951         When I added the getloadavg module to Emacs, it brought in
12952         stdlib.in.h, which contained this fragment:
12953
12954            #ifndef __attribute__
12955            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12956            #  define __attribute__(Spec)   /* empty */
12957            # endif
12958            #endif
12959
12960         When files that include <stdlib.h> were compiled with Sun C 5.11,
12961         the above code disabled __attribute__ ((__aligned (8))), which
12962         caused variables to not be properly aligned, which eventually led
12963         to the pointer corruption mentioned above.  (This was a bit hard
12964         to diagnose, unfortunately.)
12965
12966         Several "#define __attribute__(X) /* empty */" code snippets need
12967         to be eradicated from Gnulib to work with non-GCC compilers that
12968         support __attribute__.  The Autoconf way to do this is to test for
12969         each kind of attribute that we want support for, and selectively
12970         enable that in source code.
12971
12972         Fix this problem just for stdlib.h, by adding a test for the
12973         __noreturn__ attribute, and change stdlib.in.h to use that test
12974         when needed.  This technique can be easily generalized to the
12975         other *.in.h files and attributes, and a similar technique can be
12976         used for *.h and *.c files.  This patch is enough to solve the
12977         problem for Emacs + getloadavg, and I thought I'd publish it for
12978         feedback before undertaking further, similar fixes in other
12979         modules.
12980
12981         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12982         because it's not needed for stdlib.h.  It merely substitutes the
12983         value directly into stdlib.h.  We may well need to #define it, or
12984         similar symbols, for other modules, but it's nice to also have an
12985         option to not #define it for applications like Emacs that do not
12986         need it.
12987
12988         * lib/stdlib.in.h (__attribute__): Do not #define.
12989         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12990         be defined only if the _Exit module is also used.
12991         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12993         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12994         platforms.
12995         * modules/_Exit (Files): Add m4/attribute.m4.
12996         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12997         * m4/attribute.m4: New file.
12998
12999 2011-02-12  Bruno Haible  <bruno@clisp.org>
13000
13001         wcsrtombs: Work around bug on native Windows.
13002         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13003         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13004         instead of len.
13005         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13006
13007 2011-02-12  Bruno Haible  <bruno@clisp.org>
13008
13009         mbsrtowcs: Work around bug on native Windows.
13010         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13011         against mingw bug.
13012         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13013
13014 2011-02-12  Bruno Haible  <bruno@clisp.org>
13015
13016         Avoid setlocale bugs in tests.
13017         * modules/btowc (Dependencies): Add setlocale.
13018         * modules/c-strcase (Dependencies): Likewise.
13019         * modules/mbmemcasecmp (Dependencies): Likewise.
13020         * modules/mbmemcasecoll (Dependencies): Likewise.
13021         * modules/mbrtowc (Dependencies): Likewise.
13022         * modules/mbscasecmp (Dependencies): Likewise.
13023         * modules/mbscasestr (Dependencies): Likewise.
13024         * modules/mbschr (Dependencies): Likewise.
13025         * modules/mbscspn (Dependencies): Likewise.
13026         * modules/mbsinit (Dependencies): Likewise.
13027         * modules/mbsncasecmp (Dependencies): Likewise.
13028         * modules/mbsnrtowcs (Dependencies): Likewise.
13029         * modules/mbspbrk (Dependencies): Likewise.
13030         * modules/mbspcasecmp (Dependencies): Likewise.
13031         * modules/mbsrchr (Dependencies): Likewise.
13032         * modules/mbsrtowcs (Dependencies): Likewise.
13033         * modules/mbsspn (Dependencies): Likewise.
13034         * modules/mbsstr (Dependencies): Likewise.
13035         * modules/nl_langinfo (Dependencies): Likewise.
13036         * modules/quotearg (Dependencies): Likewise.
13037         * modules/unicase/locale-language (Dependencies): Likewise.
13038         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13039         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13040         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13041         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13042         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13043         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13044         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13045         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13046         * modules/vasnprintf-posix (Dependencies): Likewise.
13047         * modules/wcrtomb (Dependencies): Likewise.
13048         * modules/wcsnrtombs (Dependencies): Likewise.
13049         * modules/wcsrtombs (Dependencies): Likewise.
13050
13051 2011-02-12  Bruno Haible  <bruno@clisp.org>
13052
13053         setlocale: Workaround native Windows bug.
13054         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13055         succeeds but sets LC_CTYPE to "C", report a failure.
13056         * tests/test-setlocale2.sh: New file.
13057         * tests/test-setlocale2.c: New file.
13058         * modules/setlocale-tests (Files): Add the new files.
13059         (Makefile.am): Enable test-setlocale2.sh test.
13060         * doc/posix-functions/setlocale.texi: Mention workaround.
13061
13062 2011-02-11  Bruno Haible  <bruno@clisp.org>
13063
13064         Tests for module 'setlocale'.
13065         * modules/setlocale-tests: New file.
13066         * tests/test-setlocale1.sh: New file.
13067         * tests/test-setlocale1.c: New file.
13068
13069         New module 'setlocale'.
13070         * lib/locale.in.h (setlocale): New declaration.
13071         * lib/setlocale.c: New file, based on
13072         gettext/gettext-runtime/intl/setlocale.c.
13073         * m4/setlocale.m4: New file.
13074         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13075         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13076         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13077         REPLACE_SETLOCALE.
13078         * modules/setlocale: New file.
13079         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13080         * doc/posix-functions/setlocale.texi: Mention the new module.
13081
13082 2011-02-11  Bruno Haible  <bruno@clisp.org>
13083
13084         Prepare for locale dependent tests on mingw.
13085         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13086         because it has the wrong locale encoding.
13087         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13088         French_France.1252 instead of "fr".
13089         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13090         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13091         because it has the wrong locale encoding.
13092         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13093         native Windows, try Turkish_Turkey.65001.
13094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13095         Chinese_China.54936.
13096
13097         Prepare for locale dependent tests on mingw.
13098         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13099         differently.
13100         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13101         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13102         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13103         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13104
13105 2011-02-11  Eric Blake  <eblake@redhat.com>
13106
13107         strptime: avoid compiler warnings
13108         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13109         compiler warnings about dead code.
13110         Reported by Daniel P. Berrange.
13111
13112 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13113
13114         doc: update users.txt
13115         * users.txt: Add rcs.
13116
13117 2011-02-10  John W. Eaton  <jwe@gnu.org>
13118
13119         doc: update users.txt
13120         * users.txt: Add octave.
13121
13122 2011-02-10  Jim Meyering  <meyering@redhat.com>
13123
13124         doc: update users.txt
13125         * users.txt: Add iwhd.
13126
13127 2011-02-09  Bruno Haible  <bruno@clisp.org>
13128
13129         gnulib-tool: Make copyright notice adjustment more robust.
13130         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13131         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13132         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13133         License".
13134         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13135
13136 2011-02-06  Bruno Haible  <bruno@clisp.org>
13137
13138         New module 'towctrans'.
13139         * modules/towctrans: New file.
13140         * lib/wctype.in.h (towctrans): New declaration.
13141         * lib/towctrans.c: New file.
13142         * lib/towctrans-impl.h: New file.
13143         * m4/towctrans.m4: New file.
13144         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13145         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13146         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13147         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13148         * doc/posix-functions/towctrans.texi: Mention the new module.
13149
13150 2011-02-06  Bruno Haible  <bruno@clisp.org>
13151
13152         New module 'wctrans'.
13153         * modules/wctrans: New file.
13154         * lib/wctype.in.h (wctrans): New declaration.
13155         * lib/wctrans.c: New file.
13156         * lib/wctrans-impl.h: New file.
13157         * m4/wctrans.m4: New file.
13158         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13159         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13160         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13161         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13162         * doc/posix-functions/wctrans.texi: Mention the new module.
13163
13164 2011-02-06  Bruno Haible  <bruno@clisp.org>
13165
13166         New module 'iswctype'.
13167         * modules/iswctype: New file.
13168         * lib/wctype.in.h (iswctype): New declaration.
13169         * lib/iswctype.c: New file.
13170         * lib/iswctype-impl.h: New file.
13171         * m4/iswctype.m4: New file.
13172         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13173         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13174         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13175         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13176         * doc/posix-functions/iswctype.texi: Mention the new module and the
13177         HP-UX 11.00 problem.
13178
13179 2011-02-06  Bruno Haible  <bruno@clisp.org>
13180
13181         New module 'wctype'.
13182         * modules/wctype: Change to represent the wctype() substitute.
13183         * lib/wctype.in.h (wctype): New declaration.
13184         * lib/wctype.c: New file.
13185         * lib/wctype-impl.h: New file.
13186         * m4/wctype.m4: New file.
13187         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13188         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13189         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13190         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13191         * doc/posix-functions/wctype.texi: Mention the new module and the
13192         HP-UX 11.00 problem.
13193
13194 2011-02-06  Bruno Haible  <bruno@clisp.org>
13195
13196         wctype-h: Ensure wctype_t and wctrans_t are defined.
13197         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13198         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13199         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13200         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13201         HAVE_WCTRANS_T.
13202         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13203
13204 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13205
13206         flock: fix license typo
13207
13208         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13209         omitted.
13210
13211 2011-02-08  Bruno Haible  <bruno@clisp.org>
13212
13213         Split large sed scripts, for HP-UX sed.
13214         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13215         to avoid HP-UX limit of 99 commands, in the near future.
13216         * modules/stdlib (Makefile.am): Likewise.
13217         * modules/unistd (Makefile.am): Likewise.
13218         * modules/wchar (Makefile.am): Likewise.
13219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13220         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13222
13223 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13224             Bruno Haible  <bruno@clisp.org>
13225
13226         stdlib: improve random_r modularization
13227         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13228         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13229         you also need the random_r module to get this material right.
13230         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13231         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13232         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13233
13234 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13235
13236         stdlib: don't depend on stdint
13237         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13238         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13239         be independent of whether stdint.h is needed.
13240         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13241         here, instead of ...
13242         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13243         struct random_data should be using the random_r module, not just
13244         the stdlib module (which wouldn't make sense: what package needs
13245         just struct random_data without also needing random_r?).
13246         * modules/stdlib (Depends-on): Remove stdint.
13247
13248         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13249         See the thread rooted at
13250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13251         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13252         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13253         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13254         __VMS)); previously it was always included (via fcntl--.h).
13255         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13256         hand; this is good enough for load averages.  Also, do not use
13257         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13258         flags directly if available and don't bother otherwise.  (Packages
13259         that need the extra reliability should use the modules that define
13260         these flags on older platforms that lack them.)
13261         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13262         fcntl-safer.
13263
13264 2011-02-08  Jim Meyering  <meyering@redhat.com>
13265
13266         di-set.h, ino-map.h: add multiple-inclusion guard
13267         Technically, the guard is required only for ino-map.h, due to its
13268         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13269         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13270         * lib/ino-map.h: Likewise.
13271
13272 2011-02-06  Bruno Haible  <bruno@clisp.org>
13273
13274         iswblank: Ensure declaration on glibc systems.
13275         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13276         * modules/iswblank (Dependencies): Add 'extensions'.
13277         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13278
13279 2011-02-06  Bruno Haible  <bruno@clisp.org>
13280
13281         New module 'iswblank'.
13282         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13283         * modules/iswblank: New file.
13284         * modules/wctype-h (Files): Remove lib/iswblank.c.
13285         (Makefile.am): Substitute GNULIB_ISWBLANK.
13286         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13287         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13288         (gl_WCTYPE_H_DEFAULTS): New macro.
13289         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13290         * modules/iswblank-tests: New file.
13291         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13292         * tests/test-wctype-h.c (main): Remove iswblank tests.
13293         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13294         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13295         of 'wctype-h'.
13296         * NEWS: Mention the change.
13297         * modules/mbchar (Depends-on): Add iswblank.
13298
13299 2011-02-08  Bruno Haible  <bruno@clisp.org>
13300
13301         di-set tests: Refactor.
13302         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13303         unnecessary includes.
13304         (ASSERT): Remove macro.
13305         (main): Make C90 compliant by avoiding variable declaration after
13306         statement.
13307         * modules/di-set-tests (Files): Add tests/macros.h.
13308
13309 2011-02-08  Bruno Haible  <bruno@clisp.org>
13310
13311         ino-map tests: Refactor.
13312         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13313         unnecessary includes.
13314         (ASSERT): Remove macro.
13315         (main): Make C90 compliant by avoiding variable declaration after
13316         statement.
13317         * modules/ino-map-tests (Files): Add tests/macros.h.
13318
13319 2011-02-08  Jim Meyering  <meyering@redhat.com>
13320
13321         di-set: add "const" to a cast
13322         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13323         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13324
13325 2011-02-06  Bruno Haible  <bruno@clisp.org>
13326
13327         Rename module 'wctype' to 'wctype-h'.
13328         * modules/wctype-h: Renamed from modules/wctype.
13329         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13330         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13331         (Files, Depends-on, Makefile.am): Update.
13332         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13333         (Files, Makefile.am): Update.
13334         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13335         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13336         * doc/posix-headers/wctype.texi: Update.
13337         * doc/posix-functions/iswalnum.texi: Update.
13338         * doc/posix-functions/iswalpha.texi: Update.
13339         * doc/posix-functions/iswblank.texi: Update.
13340         * doc/posix-functions/iswcntrl.texi: Update.
13341         * doc/posix-functions/iswdigit.texi: Update.
13342         * doc/posix-functions/iswgraph.texi: Update.
13343         * doc/posix-functions/iswlower.texi: Update.
13344         * doc/posix-functions/iswprint.texi: Update.
13345         * doc/posix-functions/iswpunct.texi: Update.
13346         * doc/posix-functions/iswspace.texi: Update.
13347         * doc/posix-functions/iswupper.texi: Update.
13348         * doc/posix-functions/iswxdigit.texi: Update.
13349         * doc/posix-functions/towlower.texi: Update.
13350         * doc/posix-functions/towupper.texi: Update.
13351         * NEWS: Mention the change.
13352         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13353         * modules/mbchar (Dependencies): Likewise.
13354         * modules/mbswidth (Dependencies): Likewise.
13355         * modules/quotearg (Dependencies): Likewise.
13356         * modules/regex (Dependencies): Likewise.
13357         * modules/wcscasecmp (Dependencies): Likewise.
13358         * modules/wcsncasecmp (Dependencies): Likewise.
13359         * modules/wcwidth (Dependencies): Likewise.
13360
13361 2011-02-06  Bruno Haible  <bruno@clisp.org>
13362
13363         New module 'wcswidth'.
13364         * modules/wcswidth: New file.
13365         * lib/wchar.in.h (wcswidth): New declaration.
13366         * lib/wcswidth.c: New file.
13367         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13368         * m4/wcswidth.m4: New file.
13369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13371         REPLACE_WCSWIDTH.
13372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13373         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13374         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13375         * doc/posix-functions/wcswidth.texi: Mention the new module.
13376
13377 2011-02-06  Bruno Haible  <bruno@clisp.org>
13378
13379         New module 'wcstok'.
13380         * modules/wcstok: New file.
13381         * lib/wchar.in.h (wcstok): New declaration.
13382         * lib/wcstok.c: New file.
13383         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13384         * m4/wcstok.m4: New file.
13385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13388         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13389         * doc/posix-functions/wcstok.texi: Mention the new module.
13390
13391 2011-02-06  Bruno Haible  <bruno@clisp.org>
13392
13393         New module 'wcsstr'.
13394         * modules/wcsstr: New file.
13395         * lib/wchar.in.h (wcsstr): New declaration.
13396         * lib/wcsstr.c: New file.
13397         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13398         * m4/wcsstr.m4: New file.
13399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13402         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13403         * doc/posix-functions/wcsstr.texi: Mention the new module.
13404
13405 2011-02-06  Bruno Haible  <bruno@clisp.org>
13406
13407         New module 'wcspbrk'.
13408         * modules/wcspbrk: New file.
13409         * lib/wchar.in.h (wcspbrk): New declaration.
13410         * lib/wcspbrk.c: New file.
13411         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13412         * m4/wcspbrk.m4: New file.
13413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13416         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13417         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13418
13419 2011-02-06  Bruno Haible  <bruno@clisp.org>
13420
13421         New module 'wcsspn'.
13422         * modules/wcsspn: New file.
13423         * lib/wchar.in.h (wcsspn): New declaration.
13424         * lib/wcsspn.c: New file.
13425         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13426         * m4/wcsspn.m4: New file.
13427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13430         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13431         * doc/posix-functions/wcsspn.texi: Mention the new module.
13432
13433 2011-02-06  Bruno Haible  <bruno@clisp.org>
13434
13435         New module 'wcscspn'.
13436         * modules/wcscspn: New file.
13437         * lib/wchar.in.h (wcscspn): New declaration.
13438         * lib/wcscspn.c: New file.
13439         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13440         * m4/wcscspn.m4: New file.
13441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13444         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13445         * doc/posix-functions/wcscspn.texi: Mention the new module.
13446
13447 2011-02-06  Bruno Haible  <bruno@clisp.org>
13448
13449         New module 'wcsrchr'.
13450         * modules/wcsrchr: New file.
13451         * lib/wchar.in.h (wcsrchr): New declaration.
13452         * lib/wcsrchr.c: New file.
13453         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13454         * m4/wcsrchr.m4: New file.
13455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13458         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13459         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13460
13461 2011-02-06  Bruno Haible  <bruno@clisp.org>
13462
13463         New module 'wcschr'.
13464         * modules/wcschr: New file.
13465         * lib/wchar.in.h (wcschr): New declaration.
13466         * lib/wcschr.c: New file.
13467         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13468         * m4/wcschr.m4: New file.
13469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13472         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13473         * doc/posix-functions/wcschr.texi: Mention the new module.
13474
13475 2011-02-06  Bruno Haible  <bruno@clisp.org>
13476
13477         New module 'wcsdup'.
13478         * modules/wcsdup: New file.
13479         * lib/wchar.in.h (wcsdup): New declaration.
13480         * lib/wcsdup.c: New file.
13481         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13482         * m4/wcsdup.m4: New file.
13483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13486         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13487         * doc/posix-functions/wcsdup.texi: Mention the new module.
13488
13489 2011-02-06  Bruno Haible  <bruno@clisp.org>
13490
13491         New module 'wcsxfrm'.
13492         * modules/wcsxfrm: New file.
13493         * lib/wchar.in.h (wcsxfrm): New declaration.
13494         * lib/wcsxfrm.c: New file.
13495         * lib/wcsxfrm-impl.h: New file.
13496         * m4/wcsxfrm.m4: New file.
13497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13500         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13501         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13502
13503 2011-02-06  Bruno Haible  <bruno@clisp.org>
13504
13505         New module 'wcscoll'.
13506         * modules/wcscoll: New file.
13507         * lib/wchar.in.h (wcscoll): New declaration.
13508         * lib/wcscoll.c: New file.
13509         * lib/wcscoll-impl.h: New file.
13510         * m4/wcscoll.m4: New file.
13511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13514         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13515         * doc/posix-functions/wcscoll.texi: Mention the new module.
13516
13517 2011-02-06  Bruno Haible  <bruno@clisp.org>
13518
13519         New module 'wcsncasecmp'.
13520         * modules/wcsncasecmp: New file.
13521         * lib/wchar.in.h (wcsncasecmp): New declaration.
13522         * lib/wcsncasecmp.c: New file.
13523         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13524         * m4/wcsncasecmp.m4: New file.
13525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13528         HAVE_WCSNCASECMP.
13529         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13530         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13531
13532 2011-02-06  Bruno Haible  <bruno@clisp.org>
13533
13534         New module 'wcscasecmp'.
13535         * modules/wcscasecmp: New file.
13536         * lib/wchar.in.h (wcscasecmp): New declaration.
13537         * lib/wcscasecmp.c: New file.
13538         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13539         * m4/wcscasecmp.m4: New file.
13540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13543         HAVE_WCSCASECMP.
13544         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13545         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13546
13547 2011-02-05  Bruno Haible  <bruno@clisp.org>
13548
13549         New module 'wcsncmp'.
13550         * modules/wcsncmp: New file.
13551         * lib/wchar.in.h (wcsncmp): New declaration.
13552         * lib/wcsncmp.c: New file.
13553         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13554         * m4/wcsncmp.m4: New file.
13555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13558         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13559         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13560
13561 2011-02-05  Bruno Haible  <bruno@clisp.org>
13562
13563         New module 'wcscmp'.
13564         * modules/wcscmp: New file.
13565         * lib/wchar.in.h (wcscmp): New declaration.
13566         * lib/wcscmp.c: New file.
13567         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13568         * m4/wcscmp.m4: New file.
13569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13572         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13573         * doc/posix-functions/wcscmp.texi: Mention the new module.
13574
13575 2011-02-05  Bruno Haible  <bruno@clisp.org>
13576
13577         New module 'wcsncat'.
13578         * modules/wcsncat: New file.
13579         * lib/wchar.in.h (wcsncat): New declaration.
13580         * lib/wcsncat.c: New file.
13581         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13582         * m4/wcsncat.m4: New file.
13583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13586         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13587         * doc/posix-functions/wcsncat.texi: Mention the new module.
13588
13589 2011-02-05  Bruno Haible  <bruno@clisp.org>
13590
13591         New module 'wcscat'.
13592         * modules/wcscat: New file.
13593         * lib/wchar.in.h (wcscat): New declaration.
13594         * lib/wcscat.c: New file.
13595         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13596         * m4/wcscat.m4: New file.
13597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13600         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13601         * doc/posix-functions/wcscat.texi: Mention the new module.
13602
13603 2011-02-05  Bruno Haible  <bruno@clisp.org>
13604
13605         New module 'wcpncpy'.
13606         * modules/wcpncpy: New file.
13607         * lib/wchar.in.h (wcpncpy): New declaration.
13608         * lib/wcpncpy.c: New file.
13609         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13610         * m4/wcpncpy.m4: New file.
13611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13613         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13614         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13615         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13616
13617 2011-02-05  Bruno Haible  <bruno@clisp.org>
13618
13619         New module 'wcsncpy'.
13620         * modules/wcsncpy: New file.
13621         * lib/wchar.in.h (wcsncpy): New declaration.
13622         * lib/wcsncpy.c: New file.
13623         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13624         * m4/wcsncpy.m4: New file.
13625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13628         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13629         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13630
13631 2011-02-05  Bruno Haible  <bruno@clisp.org>
13632
13633         New module 'wcpcpy'.
13634         * modules/wcpcpy: New file.
13635         * lib/wchar.in.h (wcpcpy): New declaration.
13636         * lib/wcpcpy.c: New file.
13637         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13638         * m4/wcpcpy.m4: New file.
13639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13641         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13642         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13643         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13644
13645 2011-02-05  Bruno Haible  <bruno@clisp.org>
13646
13647         New module 'wcscpy'.
13648         * modules/wcscpy: New file.
13649         * lib/wchar.in.h (wcscpy): New declaration.
13650         * lib/wcscpy.c: New file.
13651         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13652         * m4/wcscpy.m4: New file.
13653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13656         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13657         * doc/posix-functions/wcscpy.texi: Mention the new module.
13658
13659 2011-02-05  Bruno Haible  <bruno@clisp.org>
13660
13661         New module 'wcsnlen'.
13662         * modules/wcsnlen: New file.
13663         * lib/wchar.in.h (wcsnlen): New declaration.
13664         * lib/wcsnlen.c: New file.
13665         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13666         * m4/wcsnlen.m4: New file.
13667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13670         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13671         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13672
13673 2011-02-05  Bruno Haible  <bruno@clisp.org>
13674
13675         New module 'wcslen'.
13676         * modules/wcslen: New file.
13677         * lib/wchar.in.h (wcslen): New declaration.
13678         * lib/wcslen.c: New file.
13679         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13680         * m4/wcslen.m4: New file.
13681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13684         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13685         * doc/posix-functions/wcslen.texi: Mention the new module.
13686
13687 2011-02-05  Bruno Haible  <bruno@clisp.org>
13688
13689         New module 'wmemset'.
13690         * modules/wmemset: New file.
13691         * lib/wchar.in.h (wmemset): New declaration.
13692         * lib/wmemset.c: New file.
13693         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13694         * m4/wmemset.m4: New file.
13695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13697         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13698         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13699         * doc/posix-functions/wmemset.texi: Mention the new module.
13700
13701 2011-02-05  Bruno Haible  <bruno@clisp.org>
13702
13703         New module 'wmemmove'.
13704         * modules/wmemmove: New file.
13705         * lib/wchar.in.h (wmemmove): New declaration.
13706         * lib/wmemmove.c: New file.
13707         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13708         * m4/wmemmove.m4: New file.
13709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13711         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13712         HAVE_WMEMMOVE.
13713         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13714         * doc/posix-functions/wmemmove.texi: Mention the new module.
13715
13716 2011-02-05  Bruno Haible  <bruno@clisp.org>
13717
13718         New module 'wmemcpy'.
13719         * modules/wmemcpy: New file.
13720         * lib/wchar.in.h (wmemcpy): New declaration.
13721         * lib/wmemcpy.c: New file.
13722         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13723         * m4/wmemcpy.m4: New file.
13724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13726         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13727         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13728         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13729
13730 2011-02-05  Bruno Haible  <bruno@clisp.org>
13731
13732         New module 'wmemcmp'.
13733         * modules/wmemcmp: New file.
13734         * lib/wchar.in.h (wmemcmp): New declaration.
13735         * lib/wmemcmp.c: New file.
13736         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13737         * m4/wmemcmp.m4: New file.
13738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13740         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13741         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13742         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13743
13744 2011-02-07  Jim Meyering  <meyering@redhat.com>
13745
13746         di-set, ino-map: new modules, from coreutils
13747         * lib/di-set.c: New file.
13748         * lib/di-set.h: Likewise.
13749         * lib/ino-map.c: Likewise.
13750         * lib/ino-map.h: Likewise.
13751         * modules/di-set: Likewise.
13752         * modules/di-set-tests: Likewise.
13753         * modules/ino-map: Likewise.
13754         * modules/ino-map-tests: Likewise.
13755         * tests/test-di-set.c: Likewise.
13756         * tests/test-ino-map.c: Likewise.
13757
13758 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13759
13760         getloadavg: merge minor changes from Emacs
13761
13762         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13763         (getloadavg): Use memset, not bzero.
13764
13765         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13766         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13767         clash (bug#86).
13768
13769 2010-11-14  Bruno Haible  <bruno@clisp.org>
13770
13771         Allow multiple gnulib generated replacements to coexist.
13772         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13773         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13774         * lib/langinfo.in.h (nl_item): Likewise.
13775         * lib/math.in.h (_NaN, NAN): Likewise.
13776         * lib/netdb.in.h (struct addrinfo): Likewise.
13777         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13778         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13779         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13780         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13781         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13782         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13783         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13784         pthread_mutexattr_init, pthread_mutexattr_settype,
13785         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13786         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13787         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13788         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13789         * lib/sched.in.h (struct sched_param): Likewise.
13790         * lib/se-selinux.in.h (security_class_t, security_context_t,
13791         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13792         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13793         lsetfilecon, fsetfilecon, security_check_context,
13794         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13795         Likewise.
13796         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13797         Likewise.
13798         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13799         _gl_function_taking_int_returning_void_t, union sigval,
13800         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13801         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13802         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13803         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13804         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13805         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13806         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13807         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13808         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13809         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13810         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13811         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13812         socklen_t, rpl_fd_isset): Likewise.
13813         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13814         * lib/sys_time.in.h (struct timeval): Likewise.
13815         * lib/sys_times.in.h (struct tms): Likewise.
13816         * lib/sys_utsname.in.h (struct utsname):
13817         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13818         * lib/unistd.in.h (getpagesize): Likewise.
13819         * lib/wchar.in.h (mbstate_t): Likewise.
13820         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13821         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13822         towlower, towupper): Likewise.
13823         Reported by Sam Steingold <sds@gnu.org>.
13824
13825 2011-02-05  Eric Blake  <eblake@redhat.com>
13826
13827         unsetenv: work around Haiku issues
13828         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13829         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13830
13831 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13832
13833         libposix: avoid calling error() within libposix
13834         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13835         is defined.
13836
13837 2011-02-05  Eric Blake  <eblake@redhat.com>
13838
13839         strerror_r-posix: port to cygwin
13840         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13841         implementation.
13842         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13843         * tests/test-strerror_r.c (main): Fix test.
13844         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13845         issue.
13846
13847 2011-02-05  Bruno Haible  <bruno@clisp.org>
13848
13849         New module 'wmemchr'.
13850         * modules/wmemchr: New file.
13851         * lib/wchar.in.h (wmemchr): New declaration.
13852         * lib/wmemchr.c: New file.
13853         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13854         * m4/wmemchr.m4: New file.
13855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13857         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13858         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13859         * doc/posix-functions/wmemchr.texi: Mention the new module.
13860
13861 2011-02-04  Eric Blake  <eblake@redhat.com>
13862
13863         fdopendir: detect FreeBSD bug
13864         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13865         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13866
13867 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13868
13869         stdbool: do not define HAVE_STDBOOL_H
13870         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13871         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13872         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13873         imported from the latest Autoconf git.  It was motivated by Emacs,
13874         which uses gnulib but does not need HAVE_STDBOOL_H.
13875
13876 2011-02-04  Bruno Haible  <bruno@clisp.org>
13877
13878         wcsnrtombs: Prepare for new module wwcsnrtombs.
13879         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13880         * lib/wcsnrtombs.c: Include it.
13881         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13882
13883         wcsrtombs: Prepare for new module wwcsrtombs.
13884         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13885         * lib/wcsrtombs.c: Include it.
13886         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13887
13888         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13889         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13890         * lib/mbsnrtowcs.c: Include it.
13891         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13892
13893         mbsrtowcs: Prepare for new module mbsrtowwcs.
13894         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13895         * lib/mbsrtowcs.c: Include it.
13896         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13897
13898 2011-02-04  Bruno Haible  <bruno@clisp.org>
13899
13900         vasnprintf: Reduce use of malloc for small format strings.
13901         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13902         (arguments): Add room for the first 7 arguments.
13903         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13904         (char_directives, u8_directives, u16_directives, u32_directives): Add
13905         room for the first 7 directives.
13906         * lib/printf-parse.c: Include <string.h>.
13907         (PRINTF_PARSE): Change memory handling code so that it uses the first
13908         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13909         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13910         Reported by Pádraig Brady <P@draigbrady.com>.
13911
13912 2011-01-31  Eric Blake  <eblake@redhat.com>
13913
13914         dup2: work around Haiku bug
13915         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13916         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13917         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13918         * tests/test-dup2.c (main): Enhance test.
13919
13920 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13921
13922         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13923         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13924         declared by eglibc 2.11.2.
13925         * lib/stdio.in.h: Likewise.
13926
13927 2011-01-31  Eric Blake  <eblake@redhat.com>
13928
13929         ignore-value: add missing test dependency
13930         * tests/test-ignore-value.c: Revert previous change; stdio.h
13931         provides off_t.
13932         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13933
13934 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13935
13936         mktime: clarify long_int width checking
13937         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13938         the top level, to make it clearer that the assumption about
13939         long_int width is being checked.  See
13940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13941
13942 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13943
13944         ignore-value: Fix self-test.
13945         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13946
13947 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13948
13949         TYPE_MAXIMUM: avoid theoretically undefined behavior
13950         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13951         negative number, which the C Standard says has undefined behavior.
13952         In practice this is not a problem, but might as well do it by the book.
13953         Reported by Rich Felker and Eric Blake; see
13954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13955         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13956         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13958         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13959         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13960         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13961
13962         mktime: #undef mktime before #defining it
13963         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13964
13965         mktime: systematically normalize tm_isdst comparisons
13966         * lib/mktime.c (isdst_differ): New function.
13967         (__mktime_internal): Use it systematically for all isdst comparisons.
13968         This completes the fix for libc BZ #6723, and removes the need for
13969         normalizing tm_isdst.  See
13970         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13971         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13972
13973         mktime: fix some integer overflow issues and sidestep the rest
13974
13975         This was prompted by a bug report by Benjamin Lindner for MinGW
13976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13977         His bug is due to signed integer overflow (0 - INT_MIN), and I
13978         I scanned through mktime.c looking for other integer overflow
13979         problems, fixing all the bugs I found.
13980
13981         Although the C Standard says the resulting code is still not safe
13982         in the presence of integer overflow, in practice it should be good
13983         enough for all real-world two's-complement implementations, except
13984         for debugging environments that deliberately trap on integer
13985         overflow (e.g., gcc -ftrapv).
13986
13987         * lib/mktime.c (WRAPV): New macro.
13988         (SHR): Also check that long_int and time_t shift right in the
13989         usual way, before using the fast-but-unportable method.
13990         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13991         used.  The code already assumed two's complement, so there's
13992         no need to test for alternatives.  All uses removed.
13993         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13994         the C standard.  Problem reported by Rich Felker in
13995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13996         (twos_complement_arithmetic): Also check long_int and time_t.
13997         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13998         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13999         (__mktime_internal): Avoid integer overflow with unary subtraction
14000         in two instances where -1 - X is an adequate replacement for -X,
14001         since the calculations are approximate.
14002
14003 2011-01-29  Eric Blake  <eblake@redhat.com>
14004
14005         mktime: avoid infinite loop
14006         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14007         type; behavior is still undefined but portable to all known targets.
14008         Reported by Rich Felker.
14009
14010 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14011
14012         rename, unlink, same-inode: Relicense.
14013         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14014         * modules/unlink (License): Likewise.
14015         * modules/same-inode (License): Likewise.
14016
14017 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14018
14019         mktime: avoid problems on NetBSD 5 / i386
14020         * lib/mktime.c (long_int): New type.  This works around a problem
14021         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14022         but time_t is 64 bits, and where I expect the existing code is
14023         wrong in some cases.
14024         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14025         (ydhms_diff): Bring back the compile-time check for wide-enough
14026         year and yday.
14027
14028         mktime: fix misspelling in comment
14029         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14030         This merges all recent glibc changes of importance.
14031
14032 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14033
14034         move-if-change: cope with concurrent mv of identical file.
14035         * build-aux/move-if-change (CMPPROG): Accept environment
14036         variable as an override for `cmp'.
14037         (usage): Document CMPPROG.
14038         Adjust comparison to drop stdout.  Cope with failure of mv if
14039         the target file exists and is identical to the source, for
14040         parallel builds.
14041         Report from H.J. Lu against binutils in PR binutils/12283.
14042
14043 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14044
14045         * users.txt: Mention sharutils.
14046
14047 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14048
14049         * users.txt: Mention OATH Toolkit.
14050
14051 2011-01-27  Bruno Haible  <bruno@clisp.org>
14052
14053         Prepare for supporting FreeBSD 10.
14054         * build-aux/config.libpath: Remove handling of freebsd1*.
14055
14056 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14057
14058         Prepare for supporting FreeBSD 10.
14059         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14060         match FreeBSD 10.0.
14061
14062 2011-01-27  Bruno Haible  <bruno@clisp.org>
14063
14064         vma-iter, get-rusage-as: Add OpenBSD support.
14065         * modules/vma-iter (configure.ac): Test for mquery.
14066         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14067         * lib/vma-iter.c: Include <sys/mman.h>.
14068         (vma_iterate): Add an implementation based on mquery().
14069         * lib/resource-ext.h (get_rusage_as): Update comments.
14070         * lib/get-rusage-as.c: Likewise.
14071         * lib/get-rusage-data.c: Likewise.
14072
14073 2011-01-26  Karl Berry  <karl@gnu.org>
14074
14075         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14076         variables to make it easier to override the makeinfo program used.
14077
14078 2011-01-26  Eric Blake  <eblake@redhat.com>
14079
14080         fcntl: work around Haiku F_DUPFD bugs
14081         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14082         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14083         cloexec bit on duplication.
14084         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14085
14086 2011-01-26  Bruno Haible  <bruno@clisp.org>
14087
14088         Enable memory leak tests on AIX.
14089         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14090         * tests/test-fprintf-posix3.c (main): Likewise.
14091
14092 2011-01-26  Bruno Haible  <bruno@clisp.org>
14093
14094         Tests for module 'get-rusage-data'.
14095         * modules/get-rusage-data-tests: New file.
14096         * tests/test-get-rusage-data.c: New file.
14097
14098         New module 'get-rusage-data'.
14099         * lib/resource-ext.h (get_rusage_data): New declaration.
14100         * lib/get-rusage-data.c: New file.
14101         * modules/get-rusage-data: New file.
14102
14103 2011-01-25  Bruno Haible  <bruno@clisp.org>
14104
14105         get-rusage-as: Allow for easier testing.
14106         * lib/resource-ext.h (get_rusage_as): Add comment.
14107         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14108         (main): New function for interactive testing.
14109
14110 2011-01-25  Bruno Haible  <bruno@clisp.org>
14111
14112         vma-iter: Treat Haiku like BeOS.
14113         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14114         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14115
14116 2011-01-25  Eric Blake  <eblake@redhat.com>
14117
14118         c-stack: fix regression on cygwin when libsigsegv is present
14119         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14120
14121 2011-01-24  Bruno Haible  <bruno@clisp.org>
14122
14123         vma-iter: Avoid empty intervals.
14124         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14125         on an empty interval.
14126
14127 2011-01-24  Jim Meyering  <meyering@redhat.com>
14128
14129         u64: remove unnecessary #include
14130         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14131
14132 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14133
14134         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14135         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14136
14137 2011-01-23  Bruno Haible  <bruno@clisp.org>
14138
14139         New module 'vma-iter'.
14140         * lib/vma-iter.h: New file.
14141         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14142         * modules/vma-iter: New file.
14143         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14144         for get_rusage_as_via_iterator.
14145         (vma_iterate_callback): New function.
14146         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14147         * modules/get-rusage-as (Depends-on): Add vma-iter.
14148
14149 2011-01-23  Bruno Haible  <bruno@clisp.org>
14150
14151         uninorm: Tweak includes.
14152         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14153         Reported by Jim Meyering.
14154
14155 2011-01-23  Bruno Haible  <bruno@clisp.org>
14156
14157         get-rusage-as: Improve on NetBSD.
14158         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14159         /proc, like on FreeBSD.
14160
14161 2011-01-23  Jim Meyering  <meyering@redhat.com>
14162
14163         xreadlink.h: remove unnecessary #include
14164         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14165
14166         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14167         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14168
14169 2011-01-23  Bruno Haible  <bruno@clisp.org>
14170
14171         get-rusage-as: Fix bug.
14172         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14173         original limit when aborting the first loop.
14174
14175 2011-01-23  Bruno Haible  <bruno@clisp.org>
14176
14177         wctype: Ensure valid C syntax.
14178         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14179         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14180
14181 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14182
14183         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14185         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14186         as they are needed only for configure's test case.
14187         This removes two unnecessary symbols from config.h.
14188
14189         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14190         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14192         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14193         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14194         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14195         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14196         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14197         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14198         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14199         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14201         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14202         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14203         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14204         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14205         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14206         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14207
14208 2011-01-21  Eric Blake  <eblake@redhat.com>
14209
14210         maintainer-makefile: work with older git for submodule check
14211         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14212         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14213         Reported by Matthias Bolte.
14214
14215         bootstrap: minor portability fixes
14216         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14217         (usage): Omit leading capital and trailing . on help phrases, per
14218         GNU Coding Standards.
14219         (check_versions, top level): Prefix messages with script name.
14220
14221 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14222
14223         bootstrap: support --no-git option
14224         * build-aux/bootstrap: Add --no-git option, to be used when
14225         --gnulib-srcdir points to the exact desired checkout.
14226
14227 2011-01-21  Eric Blake  <eblake@redhat.com>
14228
14229         strerror_r-posix: work with glibc 2.13
14230         * lib/strerror_r.c (strerror_r): Fix return type.
14231
14232 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14233             Bruno Haible  <bruno@clisp.org>
14234
14235         uN_strstr: New unit tests.
14236         * modules/unistr/u8-strstr-tests: New file.
14237         * modules/unistr/u16-strstr-tests: New file.
14238         * modules/unistr/u32-strstr-tests: New file.
14239         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14240         * tests/unistr/test-u8-strstr.c: New file.
14241         * tests/unistr/test-u16-strstr.c: New file.
14242         * tests/unistr/test-u32-strstr.c: New file.
14243
14244 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14245             Bruno Haible  <bruno@clisp.org>
14246
14247         Make uN_strstr functions O(n) worst-case.
14248         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14249         16-bit and 32-bit unit cases, use the unibyte algorithm from
14250         lib/mbsstr.c.
14251         * lib/unistr/u8-strstr.c: Include <string.h>.
14252         (UNIT_IS_UINT8_T): New macro.
14253         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14254         (U_STRLEN, U_STRNLEN): New macros.
14255         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14256         (U_STRLEN, U_STRNLEN): New macros.
14257         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14258         (configure.ac): Update required libunistring version.
14259         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14260         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14261         malloca.
14262         (configure.ac): Update required libunistring version.
14263         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14264         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14265         malloca.
14266         (configure.ac): Update required libunistring version.
14267
14268 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14269             Bruno Haible  <bruno@clisp.org>
14270
14271         Prepare for faster uN_strstr functions.
14272         * lib/str-kmp.h: Support definable UNITs.
14273         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14274         needle_len argument.
14275         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14276         * lib/mbscasestr.c (mbscasestr): Likewise.
14277
14278 2011-01-21  Pádraig Brady <P@draigBrady.com>
14279
14280         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14281         * tests/test-malloca.c (main): Unset the environment variable
14282         to greatly speed up the test.
14283         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14284         * modules/malloca-tests: Depend on unsetenv.
14285
14286 2011-01-21  Pádraig Brady <P@draigBrady.com>
14287
14288         ignore-value: remove stdint dependency
14289         * lib/ignore-value.h: Remove <stdint.h>
14290         * modules/ignore-value: Remove stdint dependency.
14291
14292 2011-01-21  Jim Meyering  <meyering@redhat.com>
14293
14294         maint.mk: adjust variable name to be consistent with other gl_ vars
14295         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14296         to be lower case.
14297
14298 2011-01-20  Jim Meyering  <meyering@redhat.com>
14299
14300         maint.mk: make "check" depend on public-submodule-commit by default
14301         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14302
14303 2011-01-20  Bruno Haible  <bruno@clisp.org>
14304
14305         mbfile, mbiter: Complete change from 2008-12-21.
14306         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14307         * m4/mbiter.m4 (gl_MBITER): Likewise.
14308
14309 2011-01-20  Jim Meyering  <meyering@redhat.com>
14310
14311         init.sh: insert space between each function name and "()"
14312         * tests/init.sh: Make it a little easier to see that a function's
14313         name is "warn_", and not "warn" when looking at the first part of
14314         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14315
14316 2011-01-20  Jim Meyering  <meyering@redhat.com>
14317
14318         mountlist: clean up code formatting
14319         * lib/mountlist.c (read_file_system_list): Split a long line,
14320         correct bracing style, use NULL in place of "(struct statfs *)0",
14321         don't parenthesize return value, add spaces around "=" and after
14322         ";-in-for-stmt".
14323
14324 2011-01-14  Markus Duft <mduft@gentoo.org>
14325
14326         mountlist: add support for Interix
14327         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14328         Apply statvfs to all entries of /dev/fs.
14329         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14330         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14331
14332 2011-01-20  Jim Meyering  <meyering@redhat.com>
14333
14334         maint.mk: improve the public-submodule-commit rule
14335         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14336         to suppress printing of its commands... unless V=1.
14337         Add git submodule's --quiet option to suppress printing of e.g.,
14338         "Entering gnulib" output.
14339         "cd" into $(srcdir) before running git submodule.
14340
14341 2011-01-20  Bruno Haible  <bruno@clisp.org>
14342
14343         include_next: Fix bug introduced on 2011-01-18.
14344         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14345         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14346         ac_cv_header_... variable if the second argument is not 'check'.
14347         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14348         gl_NEXT_HEADERS_INTERNAL.
14349
14350 2011-01-20  Bruno Haible  <bruno@clisp.org>
14351
14352         Allow the user to avoid the GNULIB_TEST_* macros.
14353         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14354         Suggested by Paul Eggert.
14355
14356 2011-01-14  Jim Meyering  <meyering@redhat.com>
14357
14358         bootstrap: avoid failure when there is no .gitmodules file
14359         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14360         has been assigned to, even when its value is the empty string.
14361         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14362         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14363         Reported by John W. Eaton <jwe@gnu.org>.
14364
14365 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14366
14367         assume <ctype.h>, ..., <time.h> exist
14368         For years gnulib has been assuming the existence of the headers
14369         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14370         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14371         them, since they don't appear to be needed.
14372         * README (Portability guidelines): Document this.
14373         * lib/flock.c: Assume <fcntl.h> exists.
14374         * lib/regex_internal.h: Assume <locale.h> exists.
14375         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14376         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14377         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14378         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14379         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14380         * m4/regex.m4 (gl_REGEX): Likewise.
14381         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14382         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14383         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14384         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14385         * tests/test-argp.c: Likewise.
14386         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14387
14388         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14389         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14390         AA_APPLE_UNIVERSAL_BUILD.  See
14391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14392         * NEWS: Document this.
14393
14394 2011-01-19  Eric Blake  <eblake@redhat.com>
14395
14396         c-stack: assume stack overflow if SA_SIGINFO unsupported
14397         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14398         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14399         sigaction will work.
14400         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14401         behavior match Linux.
14402         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14403
14404         stdbool-tests: accomodate Haiku
14405         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14406
14407         binary-io: fix O_TEXT on Haiku
14408         * modules/binary-io (Depends-on): Add fcntl-h.
14409         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14410         than blindly undefining O_TEXT.
14411         Reported by Scott McCreary.
14412
14413 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14414
14415         include_next: do not check for standard headers like stddef.h
14416
14417         I found this problem when modifying Emacs to use gnulib.
14418         I noticed that it added HAVE_STDDEF_H to config.h, even though
14419         gnulib always assumes <stddef.h> exists as per README and this
14420         symbol is unnecessary.
14421         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14422         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14423         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14424         faster for headers like stddef.h that are known to exist.
14425         (gl_CHECK_NEXT_HEADERS): Use it.
14426         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14427         rather than gl_CHECK_NEXT_HEADERS.
14428         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14429         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14430
14431 2011-01-18  Eric Blake  <eblake@redhat.com>
14432
14433         ansi-c++-opt: skip C++ dependency style if C++ is unused
14434         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14435         tests when we know C++ compilation is not desired.
14436         Reported by Scott McCreary.
14437
14438 2011-01-18  Bruno Haible  <bruno@clisp.org>
14439
14440         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14441         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14442         (main): Perform test also when getrlimit and setrlimit don't exist or
14443         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14444         limiting the address space size using setrlimit, compare the address
14445         space size before and after the the test.
14446         * tests/test-dprintf-posix2.c: Likewise.
14447         * tests/test-fprintf-posix3.sh: Update skip messages.
14448         * tests/test-dprintf-posix2.sh: Likewise.
14449         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14450         * modules/dprintf-posix-tests (Depends-on): Likewise.
14451         Reported by Bruce Korb <bkorb@gnu.org> and
14452         Gary V. Vaughan <gary@gnu.org>.
14453
14454 2011-01-18  Bruno Haible  <bruno@clisp.org>
14455
14456         get-rusage-as: Improvement for Cygwin.
14457         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14458         areas that are merely reserved.
14459
14460 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14461
14462         strftime: remove dependencies on multibyte modules
14463
14464         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14465         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14466         only if __osf__ is defined, and I suspect OSF doesn't need these
14467         other modules.  If my guess is wrong, we'll need to come up with a
14468         variant of strftime that doesn't need the multibyte modules.
14469
14470         I discovered this problem when attempting modify Emacs to use the
14471         strftime module.  With the previous gnulib, this caused Emacs to
14472         need 31 new files, ranging from lib/config.charset to
14473         m4/wint_t.m4.  This was overkill and I expect would be offputting
14474         to the Emacs maintainers.  After this change, only 6 new files are
14475         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14476         stdbool.m4, and tm_gmtoff.m4.
14477
14478         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14479         Suggested by Bruno Haible in
14480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14481         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14482         and do not check for wchar.h.
14483         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14484         (Depends-on): Remove mbrlen, mbsinit, wchar.
14485
14486 2011-01-18  Bruno Haible  <bruno@clisp.org>
14487
14488         Tests for module 'get-rusage-as'.
14489         * modules/get-rusage-as-tests: New file.
14490         * tests/test-get-rusage-as.c: New file.
14491
14492         New module 'get-rusage-as'.
14493         * modules/get-rusage-as: New file.
14494         * lib/resource-ext.h: New file.
14495         * lib/get-rusage-as.c: New file.
14496
14497 2011-01-17  Eric Blake  <eblake@redhat.com>
14498
14499         sigaction: relax license from LGPLv3+ to LGPLv2+
14500         * modules/sigaction (License): Relax to LGPLv2+.
14501
14502 2011-01-14  Bruno Haible  <bruno@clisp.org>
14503
14504         filemode: Make function declarations usable in C++ mode.
14505         * lib/filemode.h: Enclose function declarations in extern "C" block.
14506         Reported by John W. Eaton <jwe@gnu.org>.
14507
14508 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14509
14510         save-cwd: no longer include "xgetcwd.h"
14511         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14512         This avoids a compilation failure in projects that use save-cwd
14513         without also using the xgetcwd module.
14514
14515 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14516
14517         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14518         This is so that a program like Emacs, which needs only dtoastr,
14519         does not have to bother with distributing and compiling ftoastr
14520         and ldtoastr.
14521         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14522         * modules/dtoastr, modules/ldtoastr: New files.
14523         * modules/ftoastr: Now works just for 'float'.
14524         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14525         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14526         dtoastr.c, ldtoastr.c.
14527
14528 2011-01-11  Jim Meyering  <meyering@redhat.com>
14529
14530         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14531         There is no need to work around the lack of the fchdir function,
14532         since gnulib can now provide a replacement when required.
14533         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14534         * modules/save-cwd (Depends-on): Add fchdir.
14535
14536 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14537
14538         openat, save-cwd: avoid xmalloc
14539
14540         This removes a direct (but undocumented) dependency of openat on
14541         xalloc, along with an indirect dependency via save-cwd.  It also
14542         removes a dependency of save-cwd on xgetcwd, and thereby
14543         indirectly on xalloc.  This change causes the openat substitute
14544         to fall back on save_cwd when memory is tight, and for save_cwd to
14545         fail instead of dying when memory is tight, but that's good enough.
14546         Problem and initial idea for fix reported by Bastien Roucaries in
14547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14548
14549         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14550         xalloc.h (for xmalloc).
14551         (openat_proc_name): Use malloc, not xmalloc.
14552         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14553         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14554
14555         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14556         This avoids heap allocation for file names whose lengths are in
14557         the range 512..1023, with the upper bound increasing to at most
14558         4031 depending on the platform's PATH_MAX.  (We do not want
14559         pathmax.h here as it might supply a non-constant PATH_MAX.)
14560         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14561         Perhaps they should be moved to malloca.h?
14562         (OPENAT_BUFFER_SIZE): Use them.
14563
14564 2011-01-10  Bruno Haible  <bruno@clisp.org>
14565
14566         doc: Update users.txt.
14567         * users.txt: Add recutils.
14568
14569 2011-01-09  Karl Berry  <karl@gnu.org>
14570
14571         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14572
14573         * doc/configmake.texi: New file.
14574         * doc/gnulib.texi: Include it.
14575         * modules/configmake: Move documentation from here.
14576
14577 2011-01-09  Bruno Haible  <bruno@clisp.org>
14578
14579         Update to Unicode 6.0.0.
14580         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14581         (get_lbp): Update for Unicode 6.0.0.
14582         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14583         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14584         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14585         U+11001, U+11038..U+11046. Remove U+06DE.
14586         (uc_width): Fix bounds of planes.
14587         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14588         lib/uniwidth/width.c.
14589         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14590         trailing whitespace removed.
14591         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14592         without comments, but with the original copyright notice.
14593         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14594         * lib/unicase/ignorable.h: Likewise.
14595         * lib/unicase/tocasefold.h: Likewise.
14596         * lib/unicase/tolower.h: Likewise.
14597         * lib/unicase/totitle.h: Likewise.
14598         * lib/unicase/toupper.h: Likewise.
14599         * lib/unictype/bidi_of.h: Likewise.
14600         * lib/unictype/blocks.h: Likewise.
14601         * lib/unictype/categ_C.h: Likewise.
14602         * lib/unictype/categ_Cn.h: Likewise.
14603         * lib/unictype/categ_L.h: Likewise.
14604         * lib/unictype/categ_Ll.h: Likewise.
14605         * lib/unictype/categ_Lm.h: Likewise.
14606         * lib/unictype/categ_Lo.h: Likewise.
14607         * lib/unictype/categ_Lu.h: Likewise.
14608         * lib/unictype/categ_M.h: Likewise.
14609         * lib/unictype/categ_Mc.h: Likewise.
14610         * lib/unictype/categ_Me.h: Likewise.
14611         * lib/unictype/categ_Mn.h: Likewise.
14612         * lib/unictype/categ_N.h: Likewise.
14613         * lib/unictype/categ_Nd.h: Likewise.
14614         * lib/unictype/categ_No.h: Likewise.
14615         * lib/unictype/categ_P.h: Likewise.
14616         * lib/unictype/categ_Po.h: Likewise.
14617         * lib/unictype/categ_S.h: Likewise.
14618         * lib/unictype/categ_Sc.h: Likewise.
14619         * lib/unictype/categ_Sk.h: Likewise.
14620         * lib/unictype/categ_Sm.h: Likewise.
14621         * lib/unictype/categ_So.h: Likewise.
14622         * lib/unictype/categ_of.h: Likewise.
14623         * lib/unictype/combining.h: Likewise.
14624         * lib/unictype/ctype_alnum.h: Likewise.
14625         * lib/unictype/ctype_alpha.h: Likewise.
14626         * lib/unictype/ctype_graph.h: Likewise.
14627         * lib/unictype/ctype_lower.h: Likewise.
14628         * lib/unictype/ctype_print.h: Likewise.
14629         * lib/unictype/ctype_punct.h: Likewise.
14630         * lib/unictype/ctype_upper.h: Likewise.
14631         * lib/unictype/decdigit.h: Likewise.
14632         * lib/unictype/digit.h: Likewise.
14633         * lib/unictype/numeric.h: Likewise.
14634         * lib/unictype/pr_alphabetic.h: Likewise.
14635         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14636         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14637         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14638         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14639         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14640         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14641         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14642         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14643         * lib/unictype/pr_case_ignorable.h: Likewise.
14644         * lib/unictype/pr_cased.h: Likewise.
14645         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14646         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14647         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14648         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14649         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14650         * lib/unictype/pr_combining.h: Likewise.
14651         * lib/unictype/pr_composite.h: Likewise.
14652         * lib/unictype/pr_currency_symbol.h: Likewise.
14653         * lib/unictype/pr_decimal_digit.h: Likewise.
14654         * lib/unictype/pr_deprecated.h: Likewise.
14655         * lib/unictype/pr_format_control.h: Likewise.
14656         * lib/unictype/pr_grapheme_base.h: Likewise.
14657         * lib/unictype/pr_grapheme_extend.h: Likewise.
14658         * lib/unictype/pr_grapheme_link.h: Likewise.
14659         * lib/unictype/pr_id_continue.h: Likewise.
14660         * lib/unictype/pr_id_start.h: Likewise.
14661         * lib/unictype/pr_ideographic.h: Likewise.
14662         * lib/unictype/pr_lowercase.h: Likewise.
14663         * lib/unictype/pr_math.h: Likewise.
14664         * lib/unictype/pr_numeric.h: Likewise.
14665         * lib/unictype/pr_other_alphabetic.h: Likewise.
14666         * lib/unictype/pr_other_id_continue.h: Likewise.
14667         * lib/unictype/pr_other_math.h: Likewise.
14668         * lib/unictype/pr_punctuation.h: Likewise.
14669         * lib/unictype/pr_sentence_terminal.h: Likewise.
14670         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14671         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14672         * lib/unictype/pr_unified_ideograph.h: Likewise.
14673         * lib/unictype/pr_uppercase.h: Likewise.
14674         * lib/unictype/pr_xid_continue.h: Likewise.
14675         * lib/unictype/pr_xid_start.h: Likewise.
14676         * lib/unictype/scripts.h: Likewise.
14677         * lib/unictype/scripts_byname.gperf: Likewise.
14678         * lib/unictype/sy_java_ident.h: Likewise.
14679         * lib/unigbrk/gbrkprop.h: Likewise.
14680         * lib/unilbrk/lbrkprop1.h: Likewise.
14681         * lib/unilbrk/lbrkprop2.h: Likewise.
14682         * lib/uninorm/decomposition-table2.h: Likewise.
14683         * lib/uniwbrk/wbrkprop.h: Likewise.
14684         * tests/unicase/test-cased.c: Likewise.
14685         * tests/unicase/test-ignorable.c: Likewise.
14686         * tests/unicase/test-uc_tolower.c: Likewise.
14687         * tests/unicase/test-uc_totitle.c: Likewise.
14688         * tests/unicase/test-uc_toupper.c: Likewise.
14689         * tests/unictype/test-categ_C.c: Likewise.
14690         * tests/unictype/test-categ_Cn.c: Likewise.
14691         * tests/unictype/test-categ_L.c: Likewise.
14692         * tests/unictype/test-categ_Ll.c: Likewise.
14693         * tests/unictype/test-categ_Lm.c: Likewise.
14694         * tests/unictype/test-categ_Lo.c: Likewise.
14695         * tests/unictype/test-categ_Lu.c: Likewise.
14696         * tests/unictype/test-categ_M.c: Likewise.
14697         * tests/unictype/test-categ_Mc.c: Likewise.
14698         * tests/unictype/test-categ_Me.c: Likewise.
14699         * tests/unictype/test-categ_Mn.c: Likewise.
14700         * tests/unictype/test-categ_N.c: Likewise.
14701         * tests/unictype/test-categ_Nd.c: Likewise.
14702         * tests/unictype/test-categ_No.c: Likewise.
14703         * tests/unictype/test-categ_P.c: Likewise.
14704         * tests/unictype/test-categ_Po.c: Likewise.
14705         * tests/unictype/test-categ_S.c: Likewise.
14706         * tests/unictype/test-categ_Sc.c: Likewise.
14707         * tests/unictype/test-categ_Sk.c: Likewise.
14708         * tests/unictype/test-categ_Sm.c: Likewise.
14709         * tests/unictype/test-categ_So.c: Likewise.
14710         * tests/unictype/test-ctype_alnum.c: Likewise.
14711         * tests/unictype/test-ctype_alpha.c: Likewise.
14712         * tests/unictype/test-ctype_graph.c: Likewise.
14713         * tests/unictype/test-ctype_lower.c: Likewise.
14714         * tests/unictype/test-ctype_print.c: Likewise.
14715         * tests/unictype/test-ctype_punct.c: Likewise.
14716         * tests/unictype/test-ctype_upper.c: Likewise.
14717         * tests/unictype/test-decdigit.h: Likewise.
14718         * tests/unictype/test-digit.h: Likewise.
14719         * tests/unictype/test-numeric.h: Likewise.
14720         * tests/unictype/test-pr_alphabetic.c: Likewise.
14721         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14722         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14723         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14724         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14725         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14726         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14727         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14728         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14729         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14730         * tests/unictype/test-pr_cased.c: Likewise.
14731         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14732         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14733         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14734         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14735         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14736         * tests/unictype/test-pr_combining.c: Likewise.
14737         * tests/unictype/test-pr_composite.c: Likewise.
14738         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14739         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14740         * tests/unictype/test-pr_deprecated.c: Likewise.
14741         * tests/unictype/test-pr_format_control.c: Likewise.
14742         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14743         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14744         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14745         * tests/unictype/test-pr_id_continue.c: Likewise.
14746         * tests/unictype/test-pr_id_start.c: Likewise.
14747         * tests/unictype/test-pr_ideographic.c: Likewise.
14748         * tests/unictype/test-pr_lowercase.c: Likewise.
14749         * tests/unictype/test-pr_math.c: Likewise.
14750         * tests/unictype/test-pr_numeric.c: Likewise.
14751         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14752         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14753         * tests/unictype/test-pr_other_math.c: Likewise.
14754         * tests/unictype/test-pr_punctuation.c: Likewise.
14755         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14756         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14757         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14758         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14759         * tests/unictype/test-pr_uppercase.c: Likewise.
14760         * tests/unictype/test-pr_xid_continue.c: Likewise.
14761         * tests/unictype/test-pr_xid_start.c: Likewise.
14762         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14763         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14764         changes.
14765         * lib/unictype/categ_Cc.h: Likewise.
14766         * lib/unictype/categ_Cf.h: Likewise.
14767         * lib/unictype/categ_Co.h: Likewise.
14768         * lib/unictype/categ_Cs.h: Likewise.
14769         * lib/unictype/categ_Lt.h: Likewise.
14770         * lib/unictype/categ_Nl.h: Likewise.
14771         * lib/unictype/categ_Pc.h: Likewise.
14772         * lib/unictype/categ_Pd.h: Likewise.
14773         * lib/unictype/categ_Pe.h: Likewise.
14774         * lib/unictype/categ_Pf.h: Likewise.
14775         * lib/unictype/categ_Pi.h: Likewise.
14776         * lib/unictype/categ_Ps.h: Likewise.
14777         * lib/unictype/categ_Z.h: Likewise.
14778         * lib/unictype/categ_Zl.h: Likewise.
14779         * lib/unictype/categ_Zp.h: Likewise.
14780         * lib/unictype/categ_Zs.h: Likewise.
14781         * lib/unictype/ctype_blank.h: Likewise.
14782         * lib/unictype/ctype_cntrl.h: Likewise.
14783         * lib/unictype/ctype_digit.h: Likewise.
14784         * lib/unictype/ctype_space.h: Likewise.
14785         * lib/unictype/ctype_xdigit.h: Likewise.
14786         * lib/unictype/mirror.h: Likewise.
14787         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14788         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14789         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14790         * lib/unictype/pr_bidi_control.h: Likewise.
14791         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14792         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14793         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14794         * lib/unictype/pr_bidi_pdf.h: Likewise.
14795         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14796         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14797         * lib/unictype/pr_dash.h: Likewise.
14798         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14799         * lib/unictype/pr_diacritic.h: Likewise.
14800         * lib/unictype/pr_extender.h: Likewise.
14801         * lib/unictype/pr_hex_digit.h: Likewise.
14802         * lib/unictype/pr_hyphen.h: Likewise.
14803         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14804         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14805         * lib/unictype/pr_ignorable_control.h: Likewise.
14806         * lib/unictype/pr_iso_control.h: Likewise.
14807         * lib/unictype/pr_join_control.h: Likewise.
14808         * lib/unictype/pr_left_of_pair.h: Likewise.
14809         * lib/unictype/pr_line_separator.h: Likewise.
14810         * lib/unictype/pr_logical_order_exception.h: Likewise.
14811         * lib/unictype/pr_non_break.h: Likewise.
14812         * lib/unictype/pr_not_a_character.h: Likewise.
14813         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14814         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14815         * lib/unictype/pr_other_id_start.h: Likewise.
14816         * lib/unictype/pr_other_lowercase.h: Likewise.
14817         * lib/unictype/pr_other_uppercase.h: Likewise.
14818         * lib/unictype/pr_paired_punctuation.h: Likewise.
14819         * lib/unictype/pr_paragraph_separator.h: Likewise.
14820         * lib/unictype/pr_pattern_syntax.h: Likewise.
14821         * lib/unictype/pr_pattern_white_space.h: Likewise.
14822         * lib/unictype/pr_private_use.h: Likewise.
14823         * lib/unictype/pr_quotation_mark.h: Likewise.
14824         * lib/unictype/pr_radical.h: Likewise.
14825         * lib/unictype/pr_soft_dotted.h: Likewise.
14826         * lib/unictype/pr_space.h: Likewise.
14827         * lib/unictype/pr_titlecase.h: Likewise.
14828         * lib/unictype/pr_variation_selector.h: Likewise.
14829         * lib/unictype/pr_white_space.h: Likewise.
14830         * lib/unictype/pr_zero_width.h: Likewise.
14831         * lib/unictype/sy_c_ident.h: Likewise.
14832         * lib/unictype/sy_c_whitespace.h: Likewise.
14833         * lib/unictype/sy_java_whitespace.h: Likewise.
14834         * lib/uninorm/composition-table.gperf: Likewise.
14835         * lib/uninorm/decomposition-table1.h: Likewise.
14836         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14837         LB8.
14838         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14839         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14840         * modules/unictype/*: Bump version number of expected libunistring
14841         version.
14842
14843 2011-01-09  Bruno Haible  <bruno@clisp.org>
14844
14845         Update to Unicode 5.2.0.
14846         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14847         trailing whitespace removed.
14848
14849 2011-01-09  Bruno Haible  <bruno@clisp.org>
14850
14851         New Unicode character properties, from Unicode 5.2.0.
14852         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14853         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14854         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14855         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14856         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14857         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14858         uc_is_property_cased, uc_is_property_case_ignorable,
14859         uc_is_property_changes_when_lowercased,
14860         uc_is_property_changes_when_uppercased,
14861         uc_is_property_changes_when_titlecased,
14862         uc_is_property_changes_when_casefolded,
14863         uc_is_property_changes_when_casemapped): New declarations.
14864         * lib/unictype/pr_byname.gperf: Add the new properties.
14865         * modules/unictype/property-byname (Depends-on): Depend on the new
14866         properties modules.
14867         * modules/unictype/property-all (Depends-on): Likewise.
14868         * MODULES.html.sh (Unicode string functions): Add
14869         unictype/property-case-ignorable, unictype/property-cased,
14870         unictype/property-changes-when-casefolded,
14871         unictype/property-changes-when-casemapped,
14872         unictype/property-changes-when-lowercased,
14873         unictype/property-changes-when-titlecased,
14874         unictype/property-changes-when-uppercased.
14875
14876         New module 'unictype/property-changes-when-casemapped'.
14877         * modules/unictype/property-changes-when-casemapped: New file.
14878         * lib/unictype/pr_changes_when_casemapped.c: New file.
14879         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14880         generated by gen-uni-tables.
14881         * modules/unictype/property-changes-when-casemapped-tests: New file.
14882         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14883         automatically generated by gen-uni-tables.
14884
14885         New module 'unictype/property-changes-when-casefolded'.
14886         * modules/unictype/property-changes-when-casefolded: New file.
14887         * lib/unictype/pr_changes_when_casefolded.c: New file.
14888         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14889         generated by gen-uni-tables.
14890         * modules/unictype/property-changes-when-casefolded-tests: New file.
14891         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14892         automatically generated by gen-uni-tables.
14893
14894         New module 'unictype/property-changes-when-titlecased'.
14895         * modules/unictype/property-changes-when-titlecased: New file.
14896         * lib/unictype/pr_changes_when_titlecased.c: New file.
14897         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14898         generated by gen-uni-tables.
14899         * modules/unictype/property-changes-when-titlecased-tests: New file.
14900         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14901         automatically generated by gen-uni-tables.
14902
14903         New module 'unictype/property-changes-when-uppercased'.
14904         * modules/unictype/property-changes-when-uppercased: New file.
14905         * lib/unictype/pr_changes_when_uppercased.c: New file.
14906         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14907         generated by gen-uni-tables.
14908         * modules/unictype/property-changes-when-uppercased-tests: New file.
14909         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14910         automatically generated by gen-uni-tables.
14911
14912         New module 'unictype/property-changes-when-lowercased'.
14913         * modules/unictype/property-changes-when-lowercased: New file.
14914         * lib/unictype/pr_changes_when_lowercased.c: New file.
14915         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14916         generated by gen-uni-tables.
14917         * modules/unictype/property-changes-when-lowercased-tests: New file.
14918         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14919         automatically generated by gen-uni-tables.
14920
14921         New module 'unictype/property-case-ignorable'.
14922         * modules/unictype/property-case-ignorable: New file.
14923         * lib/unictype/pr_case_ignorable.c: New file.
14924         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14925         by gen-uni-tables.
14926         * modules/unictype/property-case-ignorable-tests: New file.
14927         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14928         generated by gen-uni-tables.
14929
14930         New module 'unictype/property-cased'.
14931         * modules/unictype/property-cased: New file.
14932         * lib/unictype/pr_cased.c: New file.
14933         * lib/unictype/pr_cased.h: New file, automatically generated by
14934         gen-uni-tables.
14935         * modules/unictype/property-cased-tests: New file.
14936         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14937         gen-uni-tables.
14938
14939 2011-01-09  Bruno Haible  <bruno@clisp.org>
14940
14941         Update to Unicode 5.2.0.
14942         * lib/gen-uni-tables.c (output_predicate, output_category,
14943         output_combclass, output_bidi_category, output_decimal_digit_test,
14944         output_decimal_digit, output_digit_test, output_digit,
14945         output_numeric_test, output_numeric, output_mirror, output_scripts,
14946         output_scripts_byname, output_blocks, output_ident_category): Fix
14947         comment header.
14948         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14949         get_wbp.
14950         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14951         items.
14952         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14953         Changes_When_Lowercased, Changes_When_Uppercased,
14954         Changes_When_Titlecased, Changes_When_Casefolded,
14955         Changes_When_Casemapped.
14956         (is_property_alphabetic, is_property_default_ignorable_code_point):
14957         Update for Unicode 5.2.0.
14958         (is_property_cased, is_property_case_ignorable,
14959         is_property_changes_when_lowercased,
14960         is_property_changes_when_uppercased,
14961         is_property_changes_when_titlecased,
14962         is_property_changes_when_casefolded,
14963         is_property_changes_when_casemapped): New functions.
14964         (output_properties): Output also the properties cased, case_ignorable,
14965         changes_when_lowercased, changes_when_uppercased,
14966         changes_when_titlecased, changes_when_casefolded,
14967         changes_when_casemapped.
14968         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14969         Unicode TR#11 revision 17 -> 19.
14970         (LBP_CP): New enumeration value.
14971         (LBP_*): Adjust values accordingly.
14972         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14973         TR#14 revision 22 -> 24.
14974         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14975         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14976         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14977         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14978         is_WBP_MIDLETTER.
14979         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14980         the code1 and code2 of each composition rule.
14981         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14982         * lib/unicase/ignorable.h: Likewise.
14983         * lib/unicase/tocasefold.h: Likewise.
14984         * lib/unicase/tolower.h: Likewise.
14985         * lib/unicase/totitle.h: Likewise.
14986         * lib/unicase/toupper.h: Likewise.
14987         * lib/unictype/bidi_of.h: Likewise.
14988         * lib/unictype/blocks.h: Likewise.
14989         * lib/unictype/categ_C.h: Likewise.
14990         * lib/unictype/categ_Cf.h: Likewise.
14991         * lib/unictype/categ_Cn.h: Likewise.
14992         * lib/unictype/categ_L.h: Likewise.
14993         * lib/unictype/categ_Ll.h: Likewise.
14994         * lib/unictype/categ_Lm.h: Likewise.
14995         * lib/unictype/categ_Lo.h: Likewise.
14996         * lib/unictype/categ_Lu.h: Likewise.
14997         * lib/unictype/categ_M.h: Likewise.
14998         * lib/unictype/categ_Mc.h: Likewise.
14999         * lib/unictype/categ_Mn.h: Likewise.
15000         * lib/unictype/categ_N.h: Likewise.
15001         * lib/unictype/categ_Nd.h: Likewise.
15002         * lib/unictype/categ_Nl.h: Likewise.
15003         * lib/unictype/categ_No.h: Likewise.
15004         * lib/unictype/categ_P.h: Likewise.
15005         * lib/unictype/categ_Pd.h: Likewise.
15006         * lib/unictype/categ_Po.h: Likewise.
15007         * lib/unictype/categ_S.h: Likewise.
15008         * lib/unictype/categ_Sc.h: Likewise.
15009         * lib/unictype/categ_So.h: Likewise.
15010         * lib/unictype/categ_of.h: Likewise.
15011         * lib/unictype/combining.h: Likewise.
15012         * lib/unictype/ctype_alnum.h: Likewise.
15013         * lib/unictype/ctype_alpha.h: Likewise.
15014         * lib/unictype/ctype_graph.h: Likewise.
15015         * lib/unictype/ctype_lower.h: Likewise.
15016         * lib/unictype/ctype_print.h: Likewise.
15017         * lib/unictype/ctype_punct.h: Likewise.
15018         * lib/unictype/ctype_upper.h: Likewise.
15019         * lib/unictype/decdigit.h: Likewise.
15020         * lib/unictype/digit.h: Likewise.
15021         * lib/unictype/numeric.h: Likewise.
15022         * lib/unictype/pr_alphabetic.h: Likewise.
15023         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15024         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15025         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15026         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15027         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15028         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15029         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15030         * lib/unictype/pr_combining.h: Likewise.
15031         * lib/unictype/pr_composite.h: Likewise.
15032         * lib/unictype/pr_currency_symbol.h: Likewise.
15033         * lib/unictype/pr_dash.h: Likewise.
15034         * lib/unictype/pr_decimal_digit.h: Likewise.
15035         * lib/unictype/pr_deprecated.h: Likewise.
15036         * lib/unictype/pr_diacritic.h: Likewise.
15037         * lib/unictype/pr_extender.h: Likewise.
15038         * lib/unictype/pr_grapheme_base.h: Likewise.
15039         * lib/unictype/pr_grapheme_extend.h: Likewise.
15040         * lib/unictype/pr_grapheme_link.h: Likewise.
15041         * lib/unictype/pr_id_continue.h: Likewise.
15042         * lib/unictype/pr_id_start.h: Likewise.
15043         * lib/unictype/pr_ideographic.h: Likewise.
15044         * lib/unictype/pr_ignorable_control.h: Likewise.
15045         * lib/unictype/pr_logical_order_exception.h: Likewise.
15046         * lib/unictype/pr_lowercase.h: Likewise.
15047         * lib/unictype/pr_numeric.h: Likewise.
15048         * lib/unictype/pr_other_alphabetic.h: Likewise.
15049         * lib/unictype/pr_punctuation.h: Likewise.
15050         * lib/unictype/pr_sentence_terminal.h: Likewise.
15051         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15052         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15053         * lib/unictype/pr_unified_ideograph.h: Likewise.
15054         * lib/unictype/pr_uppercase.h: Likewise.
15055         * lib/unictype/pr_xid_continue.h: Likewise.
15056         * lib/unictype/pr_xid_start.h: Likewise.
15057         * lib/unictype/pr_zero_width.h: Likewise.
15058         * lib/unictype/scripts.h: Likewise.
15059         * lib/unictype/scripts_byname.gperf: Likewise.
15060         * lib/unictype/sy_java_ident.h: Likewise.
15061         * lib/unigbrk/gbrkprop.h: Likewise.
15062         * lib/unilbrk/lbrkprop1.h: Likewise.
15063         * lib/unilbrk/lbrkprop2.h: Likewise.
15064         * lib/unilbrk/lbrktables.h: Likewise.
15065         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15066         LBP_CP. Implement rule LB30.
15067         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15068         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15069         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15070         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15071         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15072         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15073         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15074         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15075         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15076         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15077         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15078         bits instead of 16 bits in the code1 and code2 of each composition
15079         rule.
15080         (uc_composition): Update for Unicode 5.2.0.
15081         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15082         * lib/uninorm/decomposition-table2.h: Likewise.
15083         * lib/uniwbrk/wbrkprop.h: Likewise.
15084         * tests/unicase/test-cased.c: Likewise.
15085         * tests/unicase/test-ignorable.c: Likewise.
15086         * tests/unicase/test-uc_tolower.c: Likewise.
15087         * tests/unicase/test-uc_totitle.c: Likewise.
15088         * tests/unicase/test-uc_toupper.c: Likewise.
15089         * tests/unictype/test-categ_C.c: Likewise.
15090         * tests/unictype/test-categ_Cf.c: Likewise.
15091         * tests/unictype/test-categ_Cn.c: Likewise.
15092         * tests/unictype/test-categ_L.c: Likewise.
15093         * tests/unictype/test-categ_Ll.c: Likewise.
15094         * tests/unictype/test-categ_Lm.c: Likewise.
15095         * tests/unictype/test-categ_Lo.c: Likewise.
15096         * tests/unictype/test-categ_Lu.c: Likewise.
15097         * tests/unictype/test-categ_M.c: Likewise.
15098         * tests/unictype/test-categ_Mc.c: Likewise.
15099         * tests/unictype/test-categ_Mn.c: Likewise.
15100         * tests/unictype/test-categ_N.c: Likewise.
15101         * tests/unictype/test-categ_Nd.c: Likewise.
15102         * tests/unictype/test-categ_Nl.c: Likewise.
15103         * tests/unictype/test-categ_No.c: Likewise.
15104         * tests/unictype/test-categ_P.c: Likewise.
15105         * tests/unictype/test-categ_Pd.c: Likewise.
15106         * tests/unictype/test-categ_Po.c: Likewise.
15107         * tests/unictype/test-categ_S.c: Likewise.
15108         * tests/unictype/test-categ_Sc.c: Likewise.
15109         * tests/unictype/test-categ_So.c: Likewise.
15110         * tests/unictype/test-ctype_alnum.c: Likewise.
15111         * tests/unictype/test-ctype_alpha.c: Likewise.
15112         * tests/unictype/test-ctype_graph.c: Likewise.
15113         * tests/unictype/test-ctype_lower.c: Likewise.
15114         * tests/unictype/test-ctype_print.c: Likewise.
15115         * tests/unictype/test-ctype_punct.c: Likewise.
15116         * tests/unictype/test-ctype_upper.c: Likewise.
15117         * tests/unictype/test-decdigit.h: Likewise.
15118         * tests/unictype/test-digit.h: Likewise.
15119         * tests/unictype/test-numeric.h: Likewise.
15120         * tests/unictype/test-pr_alphabetic.c: Likewise.
15121         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15122         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15123         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15124         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15125         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15126         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15127         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15128         * tests/unictype/test-pr_combining.c: Likewise.
15129         * tests/unictype/test-pr_composite.c: Likewise.
15130         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15131         * tests/unictype/test-pr_dash.c: Likewise.
15132         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15133         * tests/unictype/test-pr_deprecated.c: Likewise.
15134         * tests/unictype/test-pr_diacritic.c: Likewise.
15135         * tests/unictype/test-pr_extender.c: Likewise.
15136         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15137         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15138         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15139         * tests/unictype/test-pr_id_continue.c: Likewise.
15140         * tests/unictype/test-pr_id_start.c: Likewise.
15141         * tests/unictype/test-pr_ideographic.c: Likewise.
15142         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15143         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15144         * tests/unictype/test-pr_lowercase.c: Likewise.
15145         * tests/unictype/test-pr_numeric.c: Likewise.
15146         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15147         * tests/unictype/test-pr_punctuation.c: Likewise.
15148         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15149         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15150         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15151         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15152         * tests/unictype/test-pr_uppercase.c: Likewise.
15153         * tests/unictype/test-pr_xid_continue.c: Likewise.
15154         * tests/unictype/test-pr_xid_start.c: Likewise.
15155         * tests/unictype/test-pr_zero_width.c: Likewise.
15156         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15157         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15158         changed behaviour: line breaking is now disallowed between a letter
15159         or '=' and '('.
15160         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15161         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15162         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15163         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15164         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15165         lib/uniwidth/width.c.
15166         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15167         without comments, but with the original copyright notice.
15168         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15169         changes.
15170         * lib/unictype/categ_Cc.h: Likewise.
15171         * lib/unictype/categ_Co.h: Likewise.
15172         * lib/unictype/categ_Cs.h: Likewise.
15173         * lib/unictype/categ_Lt.h: Likewise.
15174         * lib/unictype/categ_Me.h: Likewise.
15175         * lib/unictype/categ_Pc.h: Likewise.
15176         * lib/unictype/categ_Pe.h: Likewise.
15177         * lib/unictype/categ_Pf.h: Likewise.
15178         * lib/unictype/categ_Pi.h: Likewise.
15179         * lib/unictype/categ_Ps.h: Likewise.
15180         * lib/unictype/categ_Sk.h: Likewise.
15181         * lib/unictype/categ_Sm.h: Likewise.
15182         * lib/unictype/categ_Z.h: Likewise.
15183         * lib/unictype/categ_Zl.h: Likewise.
15184         * lib/unictype/categ_Zp.h: Likewise.
15185         * lib/unictype/categ_Zs.h: Likewise.
15186         * lib/unictype/ctype_blank.h: Likewise.
15187         * lib/unictype/ctype_cntrl.h: Likewise.
15188         * lib/unictype/ctype_digit.h: Likewise.
15189         * lib/unictype/ctype_space.h: Likewise.
15190         * lib/unictype/ctype_xdigit.h: Likewise.
15191         * lib/unictype/mirror.h: Likewise.
15192         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15193         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15194         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15195         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15196         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15197         * lib/unictype/pr_bidi_control.h: Likewise.
15198         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15199         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15200         * lib/unictype/pr_bidi_pdf.h: Likewise.
15201         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15202         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15203         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15204         * lib/unictype/pr_format_control.h: Likewise.
15205         * lib/unictype/pr_hex_digit.h: Likewise.
15206         * lib/unictype/pr_hyphen.h: Likewise.
15207         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15208         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15209         * lib/unictype/pr_iso_control.h: Likewise.
15210         * lib/unictype/pr_join_control.h: Likewise.
15211         * lib/unictype/pr_left_of_pair.h: Likewise.
15212         * lib/unictype/pr_line_separator.h: Likewise.
15213         * lib/unictype/pr_math.h: Likewise.
15214         * lib/unictype/pr_non_break.h: Likewise.
15215         * lib/unictype/pr_not_a_character.h: Likewise.
15216         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15217         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15218         * lib/unictype/pr_other_id_continue.h: Likewise.
15219         * lib/unictype/pr_other_id_start.h: Likewise.
15220         * lib/unictype/pr_other_lowercase.h: Likewise.
15221         * lib/unictype/pr_other_math.h: Likewise.
15222         * lib/unictype/pr_other_uppercase.h: Likewise.
15223         * lib/unictype/pr_paired_punctuation.h: Likewise.
15224         * lib/unictype/pr_paragraph_separator.h: Likewise.
15225         * lib/unictype/pr_pattern_syntax.h: Likewise.
15226         * lib/unictype/pr_pattern_white_space.h: Likewise.
15227         * lib/unictype/pr_private_use.h: Likewise.
15228         * lib/unictype/pr_quotation_mark.h: Likewise.
15229         * lib/unictype/pr_radical.h: Likewise.
15230         * lib/unictype/pr_soft_dotted.h: Likewise.
15231         * lib/unictype/pr_space.h: Likewise.
15232         * lib/unictype/pr_titlecase.h: Likewise.
15233         * lib/unictype/pr_variation_selector.h: Likewise.
15234         * lib/unictype/pr_white_space.h: Likewise.
15235         * lib/unictype/sy_c_ident.h: Likewise.
15236         * lib/unictype/sy_c_whitespace.h: Likewise.
15237         * lib/unictype/sy_java_whitespace.h: Likewise.
15238         * modules/uni*/*: Bump version number of expected libunistring version.
15239         Reported by Simon Josefsson.
15240
15241 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15242
15243         useless-if-before-free: fix typo in --help and make the internal,
15244         automatic version date update process work once again.
15245         --help output contained a NUL character instead of the
15246         backslash-zero that was intended.  Also, the "must lie within
15247         the first 8 lines" line is on line 9, and hence not getting
15248         automatically updated.
15249         * build-aux/useless-if-before-free: Fix the former by adding a
15250         backslash, and the latter by condensing the three lines of what-it-does
15251         to a single line, leaving one line of slack for the future.
15252
15253 2011-01-09  Bruno Haible  <bruno@clisp.org>
15254
15255         uniwidth/width: Fix width of U+1D173..U+1D17A.
15256         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15257         symbolic_width, output_width_property_test): New functions.
15258         (main): Invoke output_nonspacing_property, output_width_property_test.
15259         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15260         U+1D173..U+1D17A.
15261         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15262         1.
15263         * modules/uniwidth/*: Bump version number of expected libunistring
15264         version.
15265         * modules/unilbrk/*: Likewise.
15266
15267 2011-01-08  Bruno Haible  <bruno@clisp.org>
15268
15269         uninorm tests: Preserve copyright of Unicode data file.
15270         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15271         Mention modifications.
15272
15273 2011-01-08  Bruno Haible  <bruno@clisp.org>
15274
15275         gen-uni-tables: Prepare for Unicode 5.2.0.
15276         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15277         (debug_output_lbp, output_lbp): Update.
15278
15279 2011-01-08  Bruno Haible  <bruno@clisp.org>
15280
15281         unilbrk: Clarify gen-uni-tables.c code.
15282         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15283         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15284         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15285
15286 2011-01-07  Bruno Haible  <bruno@clisp.org>
15287
15288         strtod: Restore errno when successfully parsing Infinity or NaN.
15289         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15290         restore the original errno.
15291
15292 2011-01-07  Bruno Haible  <bruno@clisp.org>
15293
15294         remove test: Avoid failure on HP-UX 11.
15295         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15296
15297 2011-01-07  Bruno Haible  <bruno@clisp.org>
15298
15299         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15300         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15301         error code.
15302
15303 2011-01-07  Pádraig Brady <P@draigBrady.com>
15304
15305         ignore-value: fixup comments, and add Eric Blake
15306         as an author since he rewrote the macros.
15307         * lib/ignore-value.h (ignore_value):  State that
15308         we now support aggregates.  Also specify exactly
15309         when the GCC warn_unused_result feature was added.
15310
15311 2011-01-06  Eric Blake  <eblake@redhat.com>
15312
15313         ignore-value: support aggregate types
15314         * lib/ignore-value.h (ignore_value): Provide separate gcc
15315         definition.
15316         * modules/ignore-value-tests: New test module.
15317         * tests/test-ignore-value.c: New test.
15318
15319         maint.mk: improve sc_prohibit_strcmp regex
15320         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15321         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15322         definition of STRNEQ.
15323
15324         signal: work around Haiku issue with SIGBUS
15325         * lib/siglist.h: Add comment.
15326         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15327         strsignal's favoring of SIGSEGV.
15328         * tests/test-signal.c (main): Avoid test failure.
15329         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15330         Reported by Scott McCreary.
15331
15332         maint.mk: add pre-release check to ensure submodule commits are public
15333         * top/maint.mk (public-submodule-commit): New rule.
15334         (submodule-checks): New variable.
15335         (alpha beta stable): Depend on the variable.
15336
15337 2011-01-05  Pádraig Brady <P@draigBrady.com>
15338         and Jim Meyering  <meyering@redhat.com>
15339
15340         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15341         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15342         (ATTRIBUTE_DEPRECATED): Define.
15343         (_ignore_case): New function.
15344         (ignore_value): New macro, to replace the old function.
15345         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15346         * modules/ignore-value (Depends-on): Add stdint.
15347
15348 2011-01-04  Eric Blake  <eblake@redhat.com>
15349
15350         doc: regenerate INSTALL
15351         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15352         @firstparagraphindent support, now that autoconf dropped it.
15353         (INSTALL_PRELUDE): Reinstate old macro.
15354         * doc/install.texi: Resync from autoconf.
15355         * doc/INSTALL: Reflect recent autoconf update.
15356         * doc/INSTALL.ISO: Likewise.
15357         * doc/INSTALL.UTF-8: Likewise.
15358         Reported by Karl Berry.
15359
15360 2011-01-04  Bruce Korb  <address@hidden>
15361
15362         git-version-gen: avoid a sub-shell
15363         * build-aux/git-version-gen: Redirect stderr in `...` via
15364         "exec 2>...", rather than via an added sub-shell.
15365
15366 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15367
15368         git-version-gen: use (...) rather than sh -c '...'
15369         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15370         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15371
15372 2011-01-03  Jim Meyering  <meyering@redhat.com>
15373
15374         git-version-gen: convert leading TABs to spaces
15375         * build-aux/git-version-gen: Expand leading TABs.
15376
15377         git-version-gen: handle failed "git rev-list"
15378         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15379         from git and proceeding as if it had succeeded but printed no SHA1
15380         checksums, suppress the diagnostic and handle the failure.
15381         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15382
15383         git-version-gen: include command name in one more diagnostic
15384         * build-aux/git-version-gen: When the required .tarball-version file
15385         was missing or unreadable, you might see the diagnostic from "cat",
15386         but no trace of the name of the invoking script.  Now, you still see
15387         the diagnostic from cat, but also get one from "git-version-gen: ".
15388         Inspired by a patch from Bruce Korb.
15389
15390         update-copyright: adjust test to match changed code
15391         * tests/test-update-copyright.sh: Change test's expected output
15392         to match new actual output.
15393
15394 2011-01-02  Bruno Haible  <bruno@clisp.org>
15395
15396         getlogin_r: Avoid test failure on HP-UX 11.
15397         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15398         ERANGE when the second argument is zero.
15399         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15400         portability problem.
15401
15402 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15403
15404         * build-aux/update-copyright: doc Simon's changes
15405
15406 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15407
15408         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15409         environment variable.
15410
15411 2011-01-02  Bruno Haible  <bruno@clisp.org>
15412
15413         unigbrk: Avoid gcc warnings.
15414         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15415         unused variable.
15416         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15417         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15418         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15419         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15420         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15421         Change type of first argument to 'const char *'.
15422         (main): Remove unused variable.
15423         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15424         type of first argument to 'const char *'.
15425         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15426         Likewise.
15427         (main): Change type of variable 's'.
15428         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15429         to 'int'.
15430
15431 2011-01-02  Bruno Haible  <bruno@clisp.org>
15432
15433         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15434         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15435         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15436         bug.
15437         * lib/pwrite.c: Undo 2010-12-31 patch.
15438         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15439
15440 2011-01-02  Bruno Haible  <bruno@clisp.org>
15441
15442         pread: Fix test whether it works.
15443         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15444
15445 2011-01-02  Bruno Haible  <bruno@clisp.org>
15446
15447         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15448         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15449         ends in "6". Don't require a specific month name. Try also the locale
15450         names found on HP-UX 11 and Solaris 7.
15451
15452 2011-01-02  Bruno Haible  <bruno@clisp.org>
15453
15454         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15455         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15456         C linkage.
15457         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15458
15459 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15460
15461         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15462         for consistency, since the "cluster" term is not used elsewhere.
15463         * lib/unigbrk.in.h: Update name.
15464         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15465         * lib/unigbrk/u16-grapheme-next.c: Update name.
15466         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15467         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15468         * lib/unigbrk/u32-grapheme-next.c: Update name.
15469         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15470         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15471         * lib/unigbrk/u8-grapheme-next.c: Update name.
15472         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15473         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15474         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15475         Suggested by Bruno Haible.
15476
15477 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15478
15479         Remove module 'u8-grapheme-len' as too redundant with
15480         'u8-grapheme-next'.
15481         * modules/unigbrk/u8-grapheme-len: Delete file.
15482         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15483         * lib/unigbrk.in.h: Remove prototype for deleted function.
15484         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15485         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15486
15487         Remove module 'u16-grapheme-len' as too redundant with
15488         'u16-grapheme-next'.
15489         * modules/unigbrk/u16-grapheme-len: Delete file.
15490         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15491         * lib/unigbrk.in.h: Remove prototype for deleted function.
15492         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15493         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15494
15495         Remove module 'u32-grapheme-len' as too redundant with
15496         'u32-grapheme-next'.
15497         * modules/unigbrk/u32-grapheme-len: Delete file.
15498         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15499         * lib/unigbrk.in.h: Remove prototype for deleted function.
15500         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15501         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15502
15503         Suggested by Bruno Haible.
15504
15505 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15506
15507         * unigbrk.in.h: Fix typo: "ben" => "been".
15508         Reported by Bruno Haible.
15509
15510 2011-01-01  Jim Meyering  <meyering@redhat.com>
15511
15512         maint: update almost all copyright ranges to include 2011
15513         Run the new "make update-copyright" rule.
15514
15515 2011-01-01  Jim Meyering  <meyering@redhat.com>
15516
15517         maint: update-copyright: exempt doc/INSTALL*
15518         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15519         since they are generated.  Suggested by Bruno Haible.
15520
15521 2011-01-01  Jim Meyering  <meyering@redhat.com>
15522
15523         maint: refine the update-copyright rule
15524         * Makefile (update-copyright): Also exclude any file that includes
15525         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15526         code that merely generates the comment.
15527
15528 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15529
15530         New module 'u8-grapheme-len'.
15531         * modules/unigbrk/u8-grapheme-len: New file.
15532         * modules/unigbrk/u8-grapheme-len-tests: New file.
15533         * lib/unigbrk.in.h: Add prototype for new function.
15534         * lib/unigbrk/u8-grapheme-len.c: New file.
15535         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15536
15537         New module 'u16-grapheme-len'.
15538         * modules/unigbrk/u16-grapheme-len: New file.
15539         * modules/unigbrk/u16-grapheme-len-tests: New file.
15540         * lib/unigbrk.in.h: Add prototype for new function.
15541         * lib/unigbrk/u16-grapheme-len.c: New file.
15542         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15543
15544         New module 'u32-grapheme-len'.
15545         * modules/unigbrk/u32-grapheme-len: New file.
15546         * modules/unigbrk/u32-grapheme-len-tests: New file.
15547         * lib/unigbrk.in.h: Add prototype for new function.
15548         * lib/unigbrk/u32-grapheme-len.c: New file.
15549         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15550
15551         New module 'u8-grapheme-next'.
15552         * modules/unigbrk/u8-grapheme-next: New file.
15553         * modules/unigbrk/u8-grapheme-next-tests: New file.
15554         * lib/unigbrk.in.h: Add prototype for new function.
15555         * lib/unigbrk/u8-grapheme-next.c: New file.
15556         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15557
15558         New module 'u16-grapheme-next'.
15559         * modules/unigbrk/u16-grapheme-next: New file.
15560         * modules/unigbrk/u16-grapheme-next-tests: New file.
15561         * lib/unigbrk.in.h: Add prototype for new function.
15562         * lib/unigbrk/u16-grapheme-next.c: New file.
15563         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15564
15565         New module 'u32-grapheme-next'.
15566         * modules/unigbrk/u32-grapheme-next: New file.
15567         * modules/unigbrk/u32-grapheme-next-tests: New file.
15568         * lib/unigbrk.in.h: Add prototype for new function.
15569         * lib/unigbrk/u32-grapheme-next.c: New file.
15570         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15571
15572         New module 'u8-grapheme-prev'.
15573         * modules/unigbrk/u8-grapheme-prev: New file.
15574         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15575         * lib/unigbrk.in.h: Add prototype for new function.
15576         * lib/unigbrk/u8-grapheme-prev.c: New file.
15577         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15578
15579         New module 'u16-grapheme-prev'.
15580         * modules/unigbrk/u16-grapheme-prev: New file.
15581         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15582         * lib/unigbrk.in.h: Add prototype for new function.
15583         * lib/unigbrk/u16-grapheme-prev.c: New file.
15584         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15585
15586         New module 'u32-grapheme-prev'.
15587         * modules/unigbrk/u32-grapheme-prev: New file.
15588         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15589         * lib/unigbrk.in.h: Add prototype for new function.
15590         * lib/unigbrk/u32-grapheme-prev.c: New file.
15591         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15592
15593         New module 'u8-grapheme-breaks'.
15594         * modules/unigbrk/u8-grapheme-breaks: New file.
15595         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15596         * lib/unigbrk.in.h: Add prototype for new function.
15597         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15598         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15599
15600         New module 'u16-grapheme-breaks'.
15601         * modules/unigbrk/u16-grapheme-breaks: New file.
15602         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15603         * lib/unigbrk.in.h: Add prototype for new function.
15604         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15605         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15606
15607         New module 'u32-grapheme-breaks'.
15608         * modules/unigbrk/u32-grapheme-breaks: New file.
15609         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15610         * lib/unigbrk.in.h: Add prototype for new function.
15611         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15612         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15613
15614         New module 'ulc-grapheme-breaks'.
15615         * modules/unigbrk/ulc-grapheme-breaks: New file.
15616         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15617         * m4/locale-ar.m4: New file.
15618         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15619         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15620         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15621
15622 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15623
15624         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15625         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15626         modified how this file was generated before I initially submitted
15627         the module, but failed to regenerate it.  This meant that several
15628         of the level2 entries were wrong.
15629         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15630         Remove the division-by-2 that is folded into the table now that
15631         gbrkprop.h has been regenerated properly.  Now -1 entries are
15632         handled correctly.
15633
15634         New module 'unigbrk/uc-gbrk-prop-tests'.
15635         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15636         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15637         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15638         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15639
15640 2011-01-01  Bruno Haible  <bruno@clisp.org>
15641
15642         Avoid use of hexadecimal escapes.
15643         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15644         instead of hexadecimal escapes.
15645
15646 2011-01-01  Jim Meyering  <meyering@redhat.com>
15647
15648         maint: new rule to update copyright year ranges
15649         * Makefile (update-copyright): New rule.
15650
15651         maint: indent with TABs in Makefile
15652         * Makefile: Expand leading sequences of spaces to TABs
15653
15654         version-etc: update the copyright year it reports
15655         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15656
15657 2010-12-31  Bruno Haible  <bruno@clisp.org>
15658
15659         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15660         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15661         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15662         zero.
15663
15664 2010-12-31  Bruno Haible  <bruno@clisp.org>
15665
15666         pwrite: Work around HP-UX 11.11 bug.
15667         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15668         works and set REPLACE_PWRITE if not.
15669         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15670         function.
15671         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15672
15673 2010-12-31  Bruno Haible  <bruno@clisp.org>
15674
15675         pread: Work around HP-UX 11 bugs.
15676         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15677         and set REPLACE_PREAD if not.
15678         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15679
15680 2010-12-31  Eric Blake  <eblake@redhat.com>
15681
15682         nl_langinfo: fix YESEXPR on Irix 6.5
15683         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15684         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15685         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15686         it.
15687
15688 2010-12-31  Bruno Haible  <bruno@clisp.org>
15689
15690         iconv: Document HP-UX 11 bug.
15691         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15692
15693 2010-12-31  Bruno Haible  <bruno@clisp.org>
15694
15695         ldexpl: Fix link error on HP-UX 11.
15696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15697         LDEXPL_LIBM, using $ISNANL_LIBM.
15698
15699 2010-12-31  Eric Blake  <eblake@redhat.com>
15700
15701         ftello: avoid compilation failure with SunStudio c89
15702         * lib/ftello.c (ftello): Use lseek, not llseek.
15703
15704         tests: avoid failing coreutils tests on cygwin
15705         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15706         (create_exe_shims_): Return 0 when skipping.
15707
15708 2010-12-31  Bruno Haible  <bruno@clisp.org>
15709
15710         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15711         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15712
15713 2010-12-31  Bruno Haible  <bruno@clisp.org>
15714
15715         waitpid: Fix link error in C++ mode.
15716         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15717
15718 2010-12-31  Bruno Haible  <bruno@clisp.org>
15719
15720         isnan: Use GCC built-ins when possible.
15721         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15722         __builtin_isnan.
15723         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15724         (isnan): Define using GCC built-ins for GCC >= 4.0.
15725
15726 2010-12-31  Bruno Haible  <bruno@clisp.org>
15727
15728         isnand: Fix mistake.
15729         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15730         __builtin_isnand.
15731
15732 2010-12-31  Bruno Haible  <bruno@clisp.org>
15733
15734         open: Avoid C++ error on HP-UX 11.
15735         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15736
15737 2010-12-31  Bruno Haible  <bruno@clisp.org>
15738
15739         time_r: Add missing declarations on HP-UX 11.
15740         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15741         instead of HAVE_LOCALTIME_R.
15742         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15743         HAVE_LOCALTIME_R always.
15744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15745         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15746         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15747         HAVE_LOCALTIME_R.
15748         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15749         * doc/posix-functions/localtime_r.texi: Likewise.
15750
15751 2010-12-29  Eric Blake  <eblake@redhat.com>
15752
15753         mountlist: tweak previous commit
15754         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15755         Reported by Paul Eggert.
15756
15757         mountlist: fix local drive detection on cygwin
15758         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15759         that works for cygwin.
15760
15761 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         ftoastr, snprintf: ftoastr + snprintf module
15764         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15765         since the snprintf module now should be good enough here.
15766         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15767         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15768         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15769         GNULIB_SNPRINTF only for the test directory, and the latter
15770         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15771         seems to suffice by itself.
15772
15773 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15774
15775         alloca: one step towards thread-safety
15776         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15777         need for a static variable.  All callers changed.  This does not
15778         make the alloca replacement thread-safe, but it's one step.
15779
15780         tests: minor indenting change
15781         * tests/init.sh: Sync from coreutils housekeeping patch
15782         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15783         to keep lines within 80 columns.
15784
15785 2010-12-28  Jim Meyering  <meyering@redhat.com>
15786
15787         regex: don't infloop on persistent failing calloc
15788         * lib/regexec.c (build_trtable): Return failure indication upon
15789         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15790         In glibc, this was fixed for version 2.13:
15791         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15792
15793 2010-12-28  Bruno Haible  <bruno@clisp.org>
15794             Paul Eggert <eggert@cs.ucla.edu>
15795
15796         linkat: Make implementation robust against system behaviour variations.
15797         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15798         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15799         way, and to -2 if it needs a generic runtime test.
15800         * lib/linkat.c (solaris_optimized_link_immediate,
15801         solaris_optimized_link_follow): New functions.
15802         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15803         (check_same_link): Use it.
15804
15805 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15806
15807         New module 'unigbrk/base'.
15808         * modules/unigbrk/base: New file.
15809         * lib/unigbrk.in.h: New file.
15810
15811         New module 'unigbrk/uc-gbrk-prop'.
15812         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15813         * modules/unigbrk/uc-gbrk-prop: New file.
15814         * lib/unigbrk/gbrkprop.h: New file.
15815         * lib/unigbrk/uc-gbrk-prop.c: New file.
15816
15817         New module 'unigbrk/uc-is-grapheme-break'.
15818         * modules/unigbrk/uc-is-grapheme-break: New file.
15819         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15820         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15821         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15822         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15823         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15824
15825         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15826
15827 2010-12-27  Bruno Haible  <bruno@clisp.org>
15828
15829         linkat test: Avoid failure on Solaris 11 2010-11.
15830         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15831
15832 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15833
15834         utimens: work around glibc rounding bug on more platforms
15835         * lib/utimens.c (fdutimens): Work around rounding bug even if
15836         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15838
15839 2010-12-27  Bruno Haible  <bruno@clisp.org>
15840
15841         select tests: Improve comments.
15842         * tests/test-select.c (do_select): Add comments.
15843
15844 2010-12-27  Bruno Haible  <bruno@clisp.org>
15845
15846         select tests: Safer way of handling timeout.
15847         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15848         at every invocation.
15849
15850 2010-12-27  Bruno Haible  <bruno@clisp.org>
15851
15852         select tests: Use 'bool' where appropriate.
15853         * tests/test-select.c (connect_to_socket): Change argument type to
15854         'bool'.
15855
15856 2010-12-27  Bruno Haible  <bruno@clisp.org>
15857
15858         select tests: Use existing modules.
15859         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15860         (configure.ac): Don't test for unistd.h.
15861         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15862         declared in <unistd.h>.
15863
15864 2010-12-27  Bruno Haible  <bruno@clisp.org>
15865
15866         mbrtowc: Work around a Solaris 7 bug.
15867         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15868         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15869         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15870         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15871         MBRTOWC_NULL_ARG1_BUG.
15872         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15873         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15874         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15875         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15876
15877 2010-12-27  Jim Meyering  <meyering@redhat.com>
15878
15879         read-file.c: tweak syntax
15880         * lib/read-file.c (fread_file): Remove space after "*" in function
15881         definitions.
15882
15883 2010-12-27  Bruno Haible  <bruno@clisp.org>
15884
15885         times test: Avoid gcc warnings on OSF/1.
15886         * tests/test-times.c (main): Cast printf arguments from clock_t to
15887         'long int'.
15888
15889 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15890
15891         utimens: work around glibc rounding bug on older Linux kernels
15892         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15893         on Linux with a glibc whose utimes might not work, then work
15894         around a longstanding glibc bug involving rounding rather than
15895         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15897
15898 2010-12-26  Bruno Haible  <bruno@clisp.org>
15899
15900         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15901         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15902         _GL_CXXALIAS_SYS.
15903         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15904
15905 2010-12-26  Bruno Haible  <bruno@clisp.org>
15906
15907         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15908         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15909         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15910         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15911         looking for the declaration.
15912         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15913         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15914         problem.
15915         * doc/posix-functions/inet_pton.texi: Likewise.
15916
15917 2010-12-26  Bruno Haible  <bruno@clisp.org>
15918
15919         arpa_inet: Use the common idioms with C++ support.
15920         * lib/arpa_inet.in.h: Include c++defs.h.
15921         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15922         support.
15923         * modules/arpa_inet (Depends-on): Add c++defs.
15924         (Makefile.am): Substitute the contents of c++defs.h.
15925         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15926         * modules/arpa_inet-c++-tests: New file.
15927         * tests/test-arpa_inet-c++.cc: New file.
15928
15929 2010-12-25  Bruno Haible  <bruno@clisp.org>
15930
15931         Fix more C++ link errors on Solaris 8.
15932         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15933         $(LIB_EACCESS).
15934         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15935         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15936         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15937         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15938         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15939
15940 2010-12-25  Bruno Haible  <bruno@clisp.org>
15941
15942         printf-posix: Fix link error when a non-GCC compiler is used.
15943         * lib/stdio.in.h (printf): When not using GCC, override printf
15944         correctly.
15945         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15946
15947 2010-12-25  Bruno Haible  <bruno@clisp.org>
15948
15949         strerror_r-posix: Update doc.
15950         * doc/posix-functions/strerror_r.texi: Update doc about the return
15951         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15952
15953 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15954
15955         utimens: simplify the logic of the previous change
15956         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15957         This should not affect whether the test succeeds or fails.
15958
15959         utimens: configure better on hosts with NFS clock skew
15960         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15961         uses the clock of the local host.  It might use the clock of the
15962         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15963         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15964
15965 2010-12-25  Bruno Haible  <bruno@clisp.org>
15966
15967         ptsname test: Avoid failure on Solaris.
15968         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15969         open a pseudo-terminal; don't use BSD-style ptys.
15970         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15971
15972 2010-12-25  Bruno Haible  <bruno@clisp.org>
15973
15974         ptsname: Avoid ERANGE failure on some systems.
15975         * lib/ptsname.c (buffer): Increase size.
15976
15977 2010-12-25  Bruno Haible  <bruno@clisp.org>
15978
15979         rename, renameat: Avoid test failures at NFS mounted locations.
15980         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15981         so that subsequent mkdir calls succeed.
15982
15983 2010-12-25  Bruno Haible  <bruno@clisp.org>
15984
15985         iswblank: Fix C++ link error on Solaris 8.
15986         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15987         _GL_FUNCDECL_SYS.
15988
15989 2010-12-25  Bruno Haible  <bruno@clisp.org>
15990
15991         unistd: Fix C++ link error on Solaris 8.
15992         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15993
15994 2010-12-25  Bruno Haible  <bruno@clisp.org>
15995
15996         readlink doc: Mention an old glibc bug.
15997         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15998
15999 2010-12-25  Bruno Haible  <bruno@clisp.org>
16000
16001         fcntl-h: Fix for use of C++ on glibc systems.
16002         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16003         also on glibc systems in C++ mode.
16004         Reported by Gary V. Vaughan <gary@gnu.org>.
16005
16006 2010-12-25  Bruno Haible  <bruno@clisp.org>
16007
16008         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16009         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16010
16011 2010-12-25  Bruno Haible  <bruno@clisp.org>
16012
16013         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16014         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16015         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16016         test whether truncl works according to ISO C 99 with IEC 60559.
16017         * m4/truncl-ieee.m4: New file.
16018         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16019         m4/signbit.m4.
16020         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16021
16022 2010-12-25  Bruno Haible  <bruno@clisp.org>
16023
16024         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16025         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16026         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16027         test whether ceill works according to ISO C 99 with IEC 60559.
16028         * m4/ceill-ieee.m4: New file.
16029         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16030         m4/signbit.m4.
16031         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16032
16033 2010-12-25  Bruno Haible  <bruno@clisp.org>
16034
16035         Ensure all prerequisites of <wchar.h> are included.
16036         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16037         before <wchar.h>.
16038         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16039         gl_MBRLEN_NUL_RETVAL): Likewise.
16040         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16041         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16042         AC_FUNC_MBRTOWC): Likewise.
16043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16044         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16045         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16046         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16047         Likewise.
16048         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16049         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16050         (gl_WCHAR_H): Improve comments.
16051         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16052
16053 2010-12-25  Bruno Haible  <bruno@clisp.org>
16054
16055         strtok_r: Fix C syntax error in autoconf macro.
16056         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16057         characters in test program.
16058
16059 2010-12-24  Bruno Haible  <bruno@clisp.org>
16060
16061         ceil, trunc, round: Fix gcc warnings.
16062         * lib/ceil.c (MIN): Undefine before redefining.
16063         * lib/trunc.c (MIN): Likewise.
16064         * lib/round.c (MIN): Likewise.
16065         Include <math.h> first.
16066
16067 2010-12-24  Bruno Haible  <bruno@clisp.org>
16068
16069         select tests: Avoid failures on OSF/1 5.1.
16070         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16071         failure of closing the last socket; it may fail with ECONNRESET.
16072
16073 2010-12-24  Eric Blake  <eblake@redhat.com>
16074
16075         stdint: avoid HP-UX 10.20 preprocessor bug
16076         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16077         than #if.
16078         * tests/test-floor2.c (main): Likewise.
16079         Reported by Peter O'Gorman.
16080
16081         pipe: make obsoletion transition easier
16082         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16083         * modules/pipe (Files): Include revived file.
16084         (Include): Drop reference, to mirror getdate's behavior.
16085
16086 2010-12-24  Bruno Haible  <bruno@clisp.org>
16087
16088         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16089         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16090         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16091         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16092
16093 2010-12-24  Bruno Haible  <bruno@clisp.org>
16094
16095         gethostname: Ensure declaration on NonStop Kernel.
16096         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16097         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16098
16099 2010-12-24  Bruno Haible  <bruno@clisp.org>
16100
16101         sys_select: Ensure all necessary types on NonStop Kernel.
16102         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16103         include <sys/time.h>.
16104         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16105         NonStop Kernel.
16106         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16107
16108 2010-12-24  Bruno Haible  <bruno@clisp.org>
16109
16110         sys_select: Remove unneeded include.
16111         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16112         have <sys/select.h>.
16113
16114 2010-12-24  Bruno Haible  <bruno@clisp.org>
16115
16116         gethostname: Provide a fallback for HOST_NAME_MAX.
16117         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16118         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16119         instead.
16120         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16121
16122 2010-12-24  Bruno Haible  <bruno@clisp.org>
16123
16124         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16125         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16126         (SA_RESTART): Likewise.
16127         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16128
16129 2010-12-24  Bruno Haible  <bruno@clisp.org>
16130
16131         signal: Define NSIG.
16132         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16133         * tests/test-signal.c (nsig): New variable.
16134         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16135
16136 2010-12-24  Bruno Haible  <bruno@clisp.org>
16137
16138         rename, renameat: Avoid test failures on OSF/1 5.1.
16139         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16140         alternative error codes.
16141         * tests/test-renameat.c (main): Likewise.
16142
16143 2010-12-24  Bruno Haible  <bruno@clisp.org>
16144
16145         *printf: Detect large precisions bug on Solaris 10/SPARC.
16146         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16147         by Paul Eggert.
16148         * tests/test-snprintf-posix.h (test_function): Add this test code here
16149         too.
16150         * tests/test-sprintf-posix.h (test_function): Likewise.
16151         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16152         * tests/test-vasprintf-posix.c (test_function): Likewise.
16153         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16154         around by gnulib.
16155         * doc/posix-functions/printf.texi: Likewise.
16156         * doc/posix-functions/snprintf.texi: Likewise.
16157         * doc/posix-functions/sprintf.texi: Likewise.
16158         * doc/posix-functions/vfprintf.texi: Likewise.
16159         * doc/posix-functions/vprintf.texi: Likewise.
16160         * doc/posix-functions/vsnprintf.texi: Likewise.
16161         * doc/posix-functions/vsprintf.texi: Likewise.
16162         * doc/posix-functions/dprintf.texi: Undo last commit.
16163         * doc/posix-functions/vdprintf.texi: Likewise.
16164
16165 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16166
16167         tests: port test-fdutimensat.c to Solaris 8
16168         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16169         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16170         On Solaris 8, it fails with errno == ENOSYS, because there is no
16171         futimens (so it can't use the fd), and there is no lutimens (so it
16172         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16173
16174         vsnprintf: make more consistent with snprintf; doc fixes
16175
16176         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16177         the byte count return problem was promoted from the snprintf-posix
16178         to the snprintf module.
16179         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16180         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16181         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16182         * tests/test-snprintf.c (main): Check the byte count returned.
16183         * tests/test-vsnprintf.c (main): Likewise.
16184
16185 2010-12-23  Eric Blake  <eblake@redhat.com>
16186
16187         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16188         * modules/sigpipe (License): Relax license.
16189
16190 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16191
16192         doc: document Solaris printf bug with large float precisions
16193         * doc/posix-functions/dprintf.texi (dprintf):
16194         * doc/posix-functions/fprintf.texi (fprintf):
16195         * doc/posix-functions/printf.texi (printf):
16196         * doc/posix-functions/snprintf.texi (snprintf):
16197         * doc/posix-functions/sprintf.texi (sprintf):
16198         * doc/posix-functions/vdprintf.texi (vdprintf):
16199         * doc/posix-functions/vfprintf.texi (vfprintf):
16200         * doc/posix-functions/vprintf.texi (vprintf):
16201         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16202         * doc/posix-functions/vsprintf.texi (vsprintf):
16203         Mention that these functions mishandle large floating point
16204         precisions on Solaris 10.  The same bug is also present in Solaris
16205         8, and I assume earlier.  This causes "cd gnulib-tests; make
16206         check" to fail on Solaris 8 (and I assume, later) when building
16207         the latest coreutils, in test-vasprintf-posix's call to
16208         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16209         the wide flavors (e.g., wprintf) so this patch just updates the
16210         documentation for the narrow ones.
16211
16212         test-posixtm.c: add two tests
16213         * tests/test-posixtm.c: Add two tests, to highlight the
16214         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16215         around this bug; this is merely to document it.
16216
16217 2010-12-22  Bruno Haible  <bruno@clisp.org>
16218
16219         getlogin_r: Work around portability problem on OSF/1.
16220         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16221         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16222         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16223         test for a truncated result.
16224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16225         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16226         * modules/getlogin_r (Depends-on): Add memchr.
16227         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16228
16229 2010-12-22  Bruno Haible  <bruno@clisp.org>
16230
16231         ptsname: Avoid test failure on OSF/1 5.1.
16232         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16233         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16234         (same_slave): New function.
16235         (main): Use it to compare ptsname's result with the expected file name.
16236
16237 2010-12-22  Bruno Haible  <bruno@clisp.org>
16238
16239         Port extended stdio modules to HP NonStop Kernel.
16240         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16241         macros.
16242         * lib/fbufmode.c: Update comments.
16243         * lib/fflush.c: Likewise.
16244         * lib/fpurge.c: Likewise.
16245         * lib/freadable.c: Likewise.
16246         * lib/freadahead.c: Likewise.
16247         * lib/freading.c: Likewise.
16248         * lib/freadptr.c: Likewise.
16249         * lib/freadseek.c: Likewise.
16250         * lib/fseeko.c: Likewise.
16251         * lib/fseterr.c: Likewise.
16252         * lib/fwritable.c: Likewise.
16253         * lib/fwriting.c: Likewise.
16254         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16255
16256 2010-12-22  Bruno Haible  <bruno@clisp.org>
16257
16258         ttyname_r: Work around bug on OSF/1 5.1.
16259         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16260         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16261         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16262         present.
16263         * lib/ttyname_r.c (ttyname_r): Update comments.
16264
16265 2010-12-22  Bruno Haible  <bruno@clisp.org>
16266
16267         round: Implement result sign according to IEEE 754.
16268         * lib/round.c (MIN, MINUS_ZERO): New macros.
16269         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16270         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16271         * tests/test-round-ieee.c (main): Likewise.
16272         * tests/test-roundl-ieee.c (main): Likewise.
16273
16274         trunc: Implement result sign according to IEEE 754.
16275         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16276         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16277         * tests/test-trunc2.c: Include minus-zero.h.
16278         (MINUS_ZERO): New macro.
16279         (trunc_reference): Keep in sync with lib/trunc.c.
16280         * tests/test-truncf2.c: Include minus-zero.h.
16281         (MINUS_ZERO): New macro.
16282         (truncf_reference): Keep in sync with lib/trunc.c.
16283         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16284         * tests/test-trunc-ieee.c (main): Likewise.
16285         * tests/test-truncl-ieee.c (main): Likewise.
16286
16287         ceil: Implement result sign according to IEEE 754.
16288         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16289         (FUNC): Return -0.0 for -1 < x < 0.
16290         * tests/test-ceil2.c: Include minus-zero.h.
16291         (MINUS_ZERO): New macro.
16292         (ceil_reference): Keep in sync with lib/ceil.c.
16293         * tests/test-ceilf2.c: Include minus-zero.h.
16294         (MINUS_ZERO): New macro.
16295         (ceilf_reference): Keep in sync with lib/ceil.c.
16296         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16297         * tests/test-ceil-ieee.c (main): Likewise.
16298         * tests/test-ceill-ieee.c (main): Likewise.
16299
16300         floor: Implement result sign according to IEEE 754.
16301         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16302         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16303         * tests/test-floorf2.c (floorf_reference): Likewise.
16304         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16305         * tests/test-floor-ieee.c (main): Likewise.
16306         * tests/test-floorl-ieee.c (main): Likewise.
16307
16308 2010-12-22  Bruno Haible  <bruno@clisp.org>
16309
16310         getaddrinfo: Update doc.
16311         * doc/posix-functions/gai_strerror.texi: Return type is also different
16312         on AIX and HP-UX.
16313
16314 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16315
16316         getaddrinfo, inet_ntop: Update doc for Solaris.
16317         * doc/posix-functions/gai_strerror.texi: Return type is also an
16318         issue on Solaris 9 and earlier.
16319         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16320         on Solaris 10 and earlier.
16321
16322 2010-12-21  Bruno Haible  <bruno@clisp.org>
16323
16324         New module 'roundl-ieee'.
16325         * modules/roundl-ieee: New file.
16326         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16327         test whether roundl works according to ISO C 99 with IEC 60559.
16328         * m4/roundl-ieee.m4: New file.
16329         * modules/roundl-ieee-tests: New file.
16330         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16331         * tests/test-roundl.c (main): Remove signbit tests.
16332         * modules/roundl-tests (Depends-on): Remove signbit.
16333         * doc/posix-functions/roundl.texi: Mention the new module.
16334
16335 2010-12-21  Bruno Haible  <bruno@clisp.org>
16336
16337         New module 'truncl-ieee'.
16338         * modules/truncl-ieee: New file.
16339         * modules/truncl-ieee-tests: New file.
16340         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16341         * tests/test-truncl.c (main): Remove signbit tests.
16342         * modules/truncl-tests (Depends-on): Remove signbit.
16343         * doc/posix-functions/truncl.texi: Mention the new module.
16344
16345 2010-12-21  Bruno Haible  <bruno@clisp.org>
16346
16347         New module 'ceill-ieee'.
16348         * modules/ceill-ieee: New file.
16349         * modules/ceill-ieee-tests: New file.
16350         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16351         * tests/test-ceill.c (main): Remove signbit tests.
16352         * modules/ceill-tests (Depends-on): Remove signbit.
16353         * doc/posix-functions/ceill.texi: Mention the new module.
16354
16355 2010-12-21  Bruno Haible  <bruno@clisp.org>
16356
16357         New module 'floorl-ieee'.
16358         * modules/floorl-ieee: New file.
16359         * modules/floorl-ieee-tests: New file.
16360         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16361         * tests/test-floorl.c (main): Remove signbit tests.
16362         * modules/floorl-tests (Depends-on): Remove signbit.
16363         * doc/posix-functions/floorl.texi: Mention the new module.
16364
16365 2010-12-21  Bruno Haible  <bruno@clisp.org>
16366
16367         New module 'round-ieee'.
16368         * modules/round-ieee: New file.
16369         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16370         whether round works according to ISO C 99 with IEC 60559.
16371         * m4/round-ieee.m4: New file.
16372         * modules/round-ieee-tests: New file.
16373         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16374         * tests/test-round1.c (main): Remove signbit tests.
16375         * modules/round-tests (Depends-on): Remove 'signbit'.
16376         * doc/posix-functions/round.texi: Mention the new module.
16377
16378 2010-12-21  Bruno Haible  <bruno@clisp.org>
16379
16380         New module 'trunc-ieee'.
16381         * modules/trunc-ieee: New file.
16382         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16383         whether trunc works according to ISO C 99 with IEC 60559.
16384         * m4/trunc-ieee.m4: New file.
16385         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16387         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16388         * modules/trunc-ieee-tests: New file.
16389         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16390         * tests/test-trunc1.c (main): Remove signbit tests.
16391         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16392         * doc/posix-functions/trunc.texi: Mention the new module.
16393
16394 2010-12-21  Bruno Haible  <bruno@clisp.org>
16395
16396         New module 'ceil-ieee'.
16397         * modules/ceil-ieee: New file.
16398         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16399         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16400         ISO C 99 with IEC 60559.
16401         * m4/ceil-ieee.m4: New file.
16402         * modules/ceil (Files): Add lib/ceil.c.
16403         (Depends-on): Add 'float'.
16404         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16405         * lib/math.in.h (ceil): New declaration.
16406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16407         REPLACE_CEIL.
16408         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16409         * modules/ceil-ieee-tests: New file.
16410         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16411         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16412         * doc/posix-functions/ceil.texi: Mention the new module.
16413
16414 2010-12-21  Bruno Haible  <bruno@clisp.org>
16415
16416         New module 'floor-ieee'.
16417         * modules/floor-ieee: New file.
16418         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16419         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16420         ISO C 99 with IEC 60559.
16421         * m4/floor-ieee.m4: New file.
16422         * modules/floor (Files): Add lib/floor.c.
16423         (Depends-on): Add 'float'.
16424         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16425         * lib/math.in.h (floor): New declaration.
16426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16427         REPLACE_FLOOR.
16428         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16429         * modules/floor-ieee-tests: New file.
16430         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16431         * tests/test-math-c++.cc: Check the signature of 'floor'.
16432         * doc/posix-functions/floor.texi: Mention the new module.
16433
16434 2010-12-21  Bruno Haible  <bruno@clisp.org>
16435
16436         New module 'roundf-ieee'.
16437         * modules/roundf-ieee: New file.
16438         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16439         test whether roundf works according to ISO C 99 with IEC 60559.
16440         * m4/roundf-ieee.m4: New file.
16441         * modules/roundf-ieee-tests: New file.
16442         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16443         * tests/test-roundf1.c (main): Remove signbit tests.
16444         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16445         * doc/posix-functions/roundf.texi: Mention the new module.
16446
16447 2010-12-21  Bruno Haible  <bruno@clisp.org>
16448
16449         New module 'truncf-ieee'.
16450         * modules/truncf-ieee: New file.
16451         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16452         test whether truncf works according to ISO C 99 with IEC 60559.
16453         * m4/truncf-ieee.m4: New file.
16454         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16456         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16457         * modules/truncf-ieee-tests: New file.
16458         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16459         * tests/test-truncf1.c (main): Remove signbit tests.
16460         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16461         * doc/posix-functions/truncf.texi: Mention the new module.
16462
16463 2010-12-21  Bruno Haible  <bruno@clisp.org>
16464
16465         New module 'ceilf-ieee'.
16466         * modules/ceilf-ieee: New file.
16467         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16468         test whether ceilf works according to ISO C 99 with IEC 60559.
16469         * m4/ceilf-ieee.m4: New file.
16470         * modules/ceilf-ieee-tests: New file.
16471         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16472         * tests/test-ceilf1.c (main): Remove signbit tests.
16473         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16474         * doc/posix-functions/ceilf.texi: Mention the new module.
16475
16476 2010-12-21  Bruno Haible  <bruno@clisp.org>
16477
16478         New module 'floorf-ieee'.
16479         * modules/floorf-ieee: New file.
16480         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16481         test whether floorf works according to ISO C 99 with IEC 60559.
16482         * m4/floorf-ieee.m4: New file.
16483         * modules/floorf-ieee-tests: New file.
16484         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16485         * tests/test-floorf1.c (main): Remove signbit tests.
16486         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16487         * doc/posix-functions/floorf.texi: Mention the new module.
16488
16489 2010-12-21  Bruno Haible  <bruno@clisp.org>
16490
16491         Support for minus zero in autoconf macros.
16492         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16493         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16494         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16495         * tests/minus-zero.h: Update comments.
16496
16497 2010-12-21  Bruno Haible  <bruno@clisp.org>
16498
16499         Tests for module 'ceil'.
16500         * modules/ceil-tests: New file.
16501         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16502         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16503
16504 2010-12-21  Bruno Haible  <bruno@clisp.org>
16505
16506         Tests for module 'floor'.
16507         * modules/floor-tests: New file.
16508         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16509         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16510
16511 2010-12-21  Bruno Haible  <bruno@clisp.org>
16512
16513         math: Fix indentation.
16514         * lib/math.in.h (floorf): Fix indentation.
16515
16516 2010-12-21  Bruno Haible  <bruno@clisp.org>
16517
16518         Fix cross-compilation guesses on Solaris.
16519         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16520         not match "solaris2.10".
16521         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16522         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16523         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16524
16525 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16526
16527         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16528         This fixes a problem observed with the latest coreutils snapshot
16529         that caused a test to fail on Solaris 8.  src/csplit.c's call
16530         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16531         earlier, instead of returning the number of bytes that would have
16532         been generated; this causes csplit to incorrectly report memory
16533         exhaustion.
16534         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16535         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16536         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16537         comments to match.
16538         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16539         Fix typo in matching older versions of Solaris: "solaris2.10"
16540         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16541         only for guessing while cross-compiling.
16542         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16543
16544 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16545
16546         ftoastr: fix comment again
16547         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16549         Also, simplify example a bit by using flags = 0.
16550
16551 2010-12-20  Bruno Haible  <bruno@clisp.org>
16552
16553         round*, trunc*: Update documentation regarding glibc.
16554         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16555         * doc/posix-functions/round.texi: Likewise.
16556         * doc/posix-functions/roundl.texi: Likewise.
16557         * doc/posix-functions/truncf.texi: Likewise.
16558         * doc/posix-functions/trunc.texi: Likewise.
16559         * doc/posix-functions/truncl.texi: Likewise.
16560
16561 2010-12-20  Bruno Haible  <bruno@clisp.org>
16562
16563         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16564         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16565         * doc/posix-functions/round.texi: Likewise.
16566         * doc/posix-functions/roundl.texi: Likewise.
16567
16568 2010-12-20  Bruno Haible  <bruno@clisp.org>
16569
16570         ttyname_r: Add missing declaration on HP-UX 11.
16571         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16572         HAVE_TTYNAME_R.
16573         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16574         declared. Set HAVE_TTYNAME_R always.
16575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16576         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16577         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16578         HAVE_TTYNAME_R.
16579         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16580
16581 2010-12-20  Bruno Haible  <bruno@clisp.org>
16582
16583         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16584         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16585         * doc/posix-functions/getlogin_r.texi: Likewise.
16586         * tests/test-getlogin.c: Include <errno.h>.
16587         (main): Avoid test failure on HP-UX 11.11.
16588         * tests/test-getlogin_r.c (main): Likewise.
16589
16590 2010-12-20  Bruno Haible  <bruno@clisp.org>
16591
16592         getlogin_r: Add missing declaration on HP-UX 11.
16593         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16594         declared also when it exists as a function.
16595         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16596
16597 2010-12-20  Bruno Haible  <bruno@clisp.org>
16598
16599         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16600         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16601         through wcrtomb.
16602
16603 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16604
16605         ftoastr: fix comment
16606         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16608
16609 2010-12-19  Bruno Haible  <bruno@clisp.org>
16610
16611         isnan: Ensure it is a macro.
16612         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16613         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16614         Solaris.
16615
16616 2010-12-19  Bruno Haible  <bruno@clisp.org>
16617
16618         ldexpl test: Fix link error on OSF/1 5.1.
16619         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16620
16621 2010-12-19  Bruno Haible  <bruno@clisp.org>
16622
16623         wctype: Make it work in C++ mode on OSF/1 5.1.
16624         * lib/wctype.in.h (iswblank): Declare but not define here.
16625         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16626         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16627         * modules/wctype (Files): Add lib/iswblank.c.
16628
16629 2010-12-19  Bruno Haible  <bruno@clisp.org>
16630
16631         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16632         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16633         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16634
16635 2010-12-19  Bruno Haible  <bruno@clisp.org>
16636
16637         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16638         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16639         _POSIX_PII_SOCKET.
16640         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16641         * doc/posix-functions/recvfrom.texi: Likewise.
16642         * doc/posix-functions/send.texi: Likewise.
16643         * doc/posix-functions/sendto.texi: Likewise.
16644
16645 2010-12-19  Bruno Haible  <bruno@clisp.org>
16646
16647         tcgetsid: Add missing declaration on OSF/1 5.1.
16648         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16649         HAVE_TCGETSID.
16650         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16651         Don't set HAVE_TCGETSID.
16652         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16653         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16654         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16655         HAVE_TCGETSID.
16656         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16657
16658 2010-12-19  Bruno Haible  <bruno@clisp.org>
16659
16660         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16661         * lib/stdio.in.h: During the include_next statement, let recursive
16662         includes of this file include only the system header file.
16663
16664 2010-12-19  Bruno Haible  <bruno@clisp.org>
16665
16666         iconv_open: Fix regression from 2010-12-04.
16667         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16668         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16669
16670 2010-12-19  Bruno Haible  <bruno@clisp.org>
16671
16672         stdbool test: Avoid a gcc warning.
16673         * tests/test-stdbool.c (main): Fail if e1 is false.
16674         Reported by Jim Meyering.
16675
16676 2010-12-19  Jim Meyering  <meyering@redhat.com>
16677
16678         setenv: restore to working order
16679         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16680         mistakenly removed.
16681         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16682         HAVE_SETENV.
16683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16684         HAVE_SETENV.
16685
16686 2010-12-19  Bruno Haible  <bruno@clisp.org>
16687
16688         Document some different function declarations on OSF/1 5.1.
16689         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16690         * doc/posix-functions/inet_ntop.texi: Likewise.
16691         * doc/posix-functions/gethostname.texi: Likewise.
16692         * lib/unistd.in.h (gethostname): Update comment.
16693
16694 2010-12-19  Bruno Haible  <bruno@clisp.org>
16695
16696         doc: Mention vasprintf-posix module.
16697         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16698         the 'vasprintf-posix' module.
16699         * doc/glibc-functions/vasprintf.texi: Likewise.
16700
16701 2010-12-19  Bruno Haible  <bruno@clisp.org>
16702
16703         unsetenv: Add missing declaration on OSF/1 5.1.
16704         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16706         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16708         not HAVE_UNSETENV.
16709         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16710         HAVE_UNSETENV.
16711         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16712
16713 2010-12-19  Bruno Haible  <bruno@clisp.org>
16714
16715         setenv: Add missing declaration on OSF/1 5.1.
16716         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16717         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16718         declared. Don't set HAVE_SETENV.
16719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16720         not HAVE_SETENV.
16721         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16722         HAVE_SETENV.
16723         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16724
16725 2010-12-19  Bruno Haible  <bruno@clisp.org>
16726
16727         nl_langinfo tests: Avoid gcc warning.
16728         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16729
16730 2010-12-19  Bruno Haible  <bruno@clisp.org>
16731
16732         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16733         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16734         _GL_CXXALIAS_SYS.
16735
16736 2010-12-19  Bruno Haible  <bruno@clisp.org>
16737
16738         stdbool: Relax test.
16739         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16740         address to 'bool' work in static initializer, for compilers other than
16741         GCC.
16742
16743 2010-12-19  Bruno Haible  <bruno@clisp.org>
16744
16745         ftello: Add missing declaration on OSF/1 5.1.
16746         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16747         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16749         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16750         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16751
16752 2010-12-19  Bruno Haible  <bruno@clisp.org>
16753
16754         fseeko: Add missing declaration on OSF/1 5.1.
16755         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16758         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16759         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16760
16761 2010-12-19  Bruno Haible  <bruno@clisp.org>
16762
16763         fchdir: Add missing declaration on OSF/1 5.1.
16764         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16767         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16768         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16769
16770 2010-12-19  Bruno Haible  <bruno@clisp.org>
16771
16772         relocatable-prog-wrapper: Separate from relocatable-prog.
16773         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16774         uninstall-relocwrapper rule here.
16775         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16776         Reported by Ian Beckwith <ianb@erislabs.net>.
16777
16778 2010-12-19  Bruno Haible  <bruno@clisp.org>
16779
16780         unistr/u8-mbsnlen: Add missing dependency.
16781         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16782         Reported by Ian Beckwith <ianb@erislabs.net>.
16783
16784 2010-12-19  Bruno Haible  <bruno@clisp.org>
16785
16786         iconv: Make it possible again to use this module without 'iconv-h'.
16787         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16788         if it is not defined.
16789         Reported by Ian Beckwith <ianb@erislabs.net>.
16790
16791 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16792
16793         acl: port to Solaris 8 when copying from tmpfs to ufs
16794         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16795         error number.  Problem observed on Solaris 8 with latest
16796         coreutils, with "mv A B", where A is on a tmpfs file system and B
16797         is on a ufs file system.  This caused coreutils' mv/part-symlink
16798         test to fail.
16799
16800         tests: set fail=0 at start
16801         * tests/init.sh (setup_): Move fail=0 initialization here ...
16802         (mktempd_): ... from here, so that tests can rely on fail being
16803         set to 0 initially.  This fixes a problem in coreutils; see:
16804         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16805
16806 2010-12-18  Bruno Haible  <bruno@clisp.org>
16807
16808         memmem-simple: Stylistic changes.
16809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16810         Fix preprocessor directive indentation.
16811
16812 2010-12-15  Pádraig Brady <P@draigBrady.com>
16813
16814         memmem, memmem-simple: reorganize and expand empty needle check
16815         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16816         functional checks to memmem-simple so that one has a fully functional
16817         memmem by using just this module.
16818         Restrict the performance only check to the memmem module.
16819         Also expand the empty needle check to ensure the correct
16820         pointer is returned, not just a non NULL pointer.
16821         * doc/glibc-functions/memmem.texi: Rearrange the portability
16822         documentation to correlate with the rearranged checks.
16823         Clarify exactly how the memmem and memmem-simple modules
16824         relate to each other.
16825
16826 2010-12-15  Pádraig Brady <P@draigBrady.com>
16827             Bruno Haible  <bruno@clisp.org>
16828
16829         Improve cross-compilation guesses for uClibc.
16830         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16831         that uClibc does not have the glibc bug.
16832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16833         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16834
16835 2010-12-14  Eric Blake  <eblake@redhat.com>
16836
16837         configmake: provide fallbacks for oldest supported autotools
16838         * m4/configmake.m4: New file.
16839         * modules/configmake (Files): Ship it.
16840         (configure.ac): Use it to guarantee fallbacks.
16841
16842 2010-12-13  Pádraig Brady <P@draigBrady.com>
16843
16844         read-file: Improve handling of large files
16845         * lib/read-file.c (fread_file): Minimize realloc()s
16846         for regular files, and better manage sizes around SIZE_MAX.
16847
16848 2010-12-13  Eric Blake  <eblake@redhat.com>
16849
16850         cloexec, fcntl: relax license
16851         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16852         consent from all contributors.
16853         * modules/fcntl (License): Likewise.
16854
16855 2010-12-10  Bruno Haible  <bruno@clisp.org>
16856
16857         Tests for module 'pipe-posix'.
16858         * modules/pipe-posix-tests: New file.
16859         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16860
16861 2010-12-10  Bruno Haible  <bruno@clisp.org>
16862
16863         pipe-posix: Make it work in C++ mode.
16864         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16865         (pipe): Use common idiom, not a macro definition.
16866         * lib/pipe.c: New file.
16867         * m4/pipe.m4: New file.
16868         * modules/pipe-posix (Description): Enhance.
16869         (Files): Add lib/pipe.c, m4/pipe.m4.
16870         (configure.ac): Invoke gl_FUNC_PIPE.
16871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16872         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16873         * tests/test-unistd-c++.cc: Check the signature of pipe.
16874
16875 2010-12-10  Bruno Haible  <bruno@clisp.org>
16876
16877         Rename module 'pipe' to 'spawn-pipe'.
16878         * modules/spawn-pipe: New file, renamed from modules/pipe.
16879         (Files, configure.ac, Makefile.am): Update.
16880         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16881         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16882         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16883         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16884         "spawn-pipe.h" instead of "pipe.h".
16885         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16886         to gl_SPAWN_PIPE.
16887         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16888         (Files, Makefile.am): Update.
16889         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16890         Update.
16891         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16892         Include "spawn-pipe.h" instead of "pipe.h".
16893         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16894         * lib/javacomp.c: Likewise.
16895         * lib/javaversion.c: Likewise.
16896         * lib/pipe-filter-gi.c: Likewise.
16897         * lib/pipe-filter-ii.c: Likewise.
16898         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16899         * modules/javacomp (Depends-on): Likewise.
16900         * modules/javaversion (Depends-on): Likewise.
16901         * modules/pipe-filter-gi (Depends-on): Likewise.
16902         * modules/pipe-filter-ii (Depends-on): Likewise.
16903         * MODULES.html.sh (Executing programs): Update.
16904         * NEWS: Mention the change.
16905
16906 2010-12-10  Eric Blake  <eblake@redhat.com>
16907
16908         pipe-posix: new module
16909         * modules/pipe-posix: New file.
16910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16911         (gl_UNISTD_H): Check for declaration.
16912         * modules/unistd (Makefile.am): Substitute it.
16913         * lib/unistd.in.h (pipe): Provide it for mingw.
16914         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16915         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16916
16917 2010-12-07  Bruno Haible  <bruno@clisp.org>
16918
16919         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16920         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16921         u8_strcmp_gnu.
16922         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16923
16924 2010-12-06  Bruno Haible  <bruno@clisp.org>
16925
16926         Update internal documentation.
16927         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16928
16929 2010-12-04  Bruno Haible  <bruno@clisp.org>
16930
16931         Put more information about failed tests into the test return codes.
16932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16933         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16934         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16935         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16938         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16939         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16940         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16941         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16942         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16943         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16944         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16945         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16946         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16947         returns a bit mask.
16948         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16949         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16950         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16951         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16952         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16953         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16956         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16957         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16959         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16960         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16961         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16962         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16963         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16964         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16965         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16966         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16967         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16969         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16971         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16972         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16973         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16974         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16975         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16976         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16977         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16978         gl_PRINTF_PRECISION): Likewise.
16979         * m4/regex.m4 (gl_REGEX): Likewise.
16980         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16981         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16983         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16984         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16986         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16987         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16988         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16989         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16990         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16991         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16992         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16993         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16994         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16995         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16996         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16999         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17000         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17001         enumerated value.
17002         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17003
17004 2010-12-04  Bruno Haible  <bruno@clisp.org>
17005
17006         Update for Solaris 11 2010-11.
17007         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17008         Express, released in November 2010.
17009
17010 2010-12-04  Bruno Haible  <bruno@clisp.org>
17011
17012         nproc: Relax license.
17013         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17014         and Paul Eggert.
17015         Requested by Ludovic Courtès <ludo@gnu.org>.
17016
17017 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17018
17019         utimecmp: fine-grained src to nearby coarse-grained dest
17020
17021         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17022         and the source is on a file system with higher-resolution time
17023         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17024         not work, and the time stamps are close together, the algorithm to
17025         determine the exact resolution from the read-back mtime was buggy:
17026         it had a "!=" where it should have had an "==".  This bug has been
17027         in the code ever since it was introduced to gnulib.
17028         Problem reported by Dan Jacobson in
17029         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17030
17031 2010-11-30  Bruno Haible  <bruno@clisp.org>
17032
17033         strerror_r-posix: Fix autoconf test.
17034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17035
17036 2010-11-28  Bruno Haible  <bruno@clisp.org>
17037             Paul Eggert  <eggert@cs.ucla.edu>
17038
17039         Tests for module 'getdomainname'.
17040         * modules/getdomainname-tests: New file.
17041         * tests/test-getdomainname.c: New file, based on
17042         tests/test-gethostname.c.
17043
17044 2010-11-28  Bruno Haible  <bruno@clisp.org>
17045             Paul Eggert  <eggert@cs.ucla.edu>
17046
17047         getdomainname: Use the system function when possible.
17048         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17049         (getdomainname): Replace if needed. Provide the declaration if it is
17050         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17051         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17052         (getdomainname): When the system has getdomainname, call the system
17053         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17054         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17055         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17056         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17057         the function if its second argument is of type 'int' or if it is found
17058         in libnsl.
17059         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17060         <sys/systeminfo.h> and sysinfo().
17061         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17063         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17064         HAVE_GETDOMAINNAME.
17065         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17066         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17067         * doc/glibc-functions/getdomainname.texi: Document the problems with
17068         the getdomainname declaration.
17069
17070 2010-11-28  Bruno Haible  <bruno@clisp.org>
17071
17072         sys_socket: Ensure ss_family field on AIX.
17073         * lib/sys_socket.in.h (ss_family): New macro definition.
17074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17075         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17076         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17077         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17078         * modules/sys_socket (Makefile.am): Substitute
17079         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17080         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17081
17082 2010-11-27  Bruno Haible  <bruno@clisp.org>
17083
17084         readline: Improve configure output.
17085         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17086         "checking for readline..." result understandable.
17087
17088 2010-11-27  Bruno Haible  <bruno@clisp.org>
17089
17090         *printf-posix: Detect a bug on Solaris 10/x86.
17091         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17092         for floating-point output.
17093         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17094         directive.
17095         * tests/test-snprintf-posix.h (test_function): Likewise.
17096         * tests/test-sprintf-posix.h (test_function): Likewise.
17097         * tests/test-vasprintf-posix.c (test_function): Likewise.
17098         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17099         * doc/posix-functions/printf.texi: Likewise.
17100         * doc/posix-functions/snprintf.texi: Likewise.
17101         * doc/posix-functions/sprintf.texi: Likewise.
17102         * doc/posix-functions/vfprintf.texi: Likewise.
17103         * doc/posix-functions/vprintf.texi: Likewise.
17104         * doc/posix-functions/vsnprintf.texi: Likewise.
17105         * doc/posix-functions/vsprintf.texi: Likewise.
17106         * doc/glibc-functions/obstack_printf.texi: Likewise.
17107         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17108
17109 2010-11-27  Bruno Haible  <bruno@clisp.org>
17110
17111         Fix link error when module libunistring-optional is in use.
17112         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17113         * modules/striconveha-tests (Makefile.am): Likewise.
17114
17115 2010-11-27  Bruno Haible  <bruno@clisp.org>
17116
17117         regex: Mention link dependencies.
17118         * modules/regex (Link): New section.
17119         * modules/rpmatch (Link): Likewise.
17120         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17121
17122 2010-11-27  Bruno Haible  <bruno@clisp.org>
17123
17124         ftoastr: Fix compilation error on Solaris.
17125         * lib/ftoastr.c: Include <config.h>.
17126
17127 2010-11-27  Bruno Haible  <bruno@clisp.org>
17128
17129         getloadavg: Update documentation.
17130         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17131
17132 2010-11-27  Bruno Haible  <bruno@clisp.org>
17133
17134         sys_socket: Fix test whether the functions are declared.
17135         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17136         not <sys/select.h>.
17137
17138 2010-11-27  Bruno Haible  <bruno@clisp.org>
17139
17140         getpass: Make sure to get system declaration on some platforms.
17141         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17142         gl_USE_SYSTEM_EXTENSIONS.
17143         * modules/getpass (Depends-on): Add extensions.
17144
17145 2010-11-26  Bruno Haible  <bruno@clisp.org>
17146
17147         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17148         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17149         'iconv' module is present.
17150         (ICONV_CONST): New macro.
17151         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17152         ICONV_CONST.
17153         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17154         set ICONV_CONST.
17155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17156         here.
17157         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17158         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17159         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17160         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17161         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17162         present.
17163
17164 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17165
17166         ftoastr: comment fix
17167         * lib/ftoastr.c: "little" -> "little or no" in comment
17168
17169 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17170
17171         stdint: port to GCC 4.3 + OSX + Octave
17172         On this platform, stdint.h is buggy and defines int64_t to long
17173         long int.  The replacement defined it to long int, causing
17174         problems with C++ style name mangling.  Instead, trust the system
17175         definition if INT64_MAX is defined, and likewise for the unsigned
17176         variant.   Problem reported by Jarno Rajahalme in
17177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17178         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17179         and don't mess with int64_t and INT64_MAX in this case.
17180         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17181
17182 2010-11-24  Bruno Haible  <bruno@clisp.org>
17183
17184         doc: Corrections regarding MacOS X 10.4 and 10.5.
17185         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17186         MacOS X.
17187         Reported by Simon Josefsson.
17188
17189 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17190
17191         Uninstall ".bin" files installed by relocwrapper.
17192         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17193         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17194         unless it is already there.
17195
17196 2010-11-21  Bruno Haible  <bruno@clisp.org>
17197
17198         Update for NetBSD 5.0.
17199         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17200         NetBSD; the test fails on NetBSD 5.0.
17201         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17202         about NetBSD.
17203
17204 2010-11-21  Bruno Haible  <bruno@clisp.org>
17205
17206         Update for HP-UX 11.23 and HP-UX 11.31.
17207         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17208         HP-UX.
17209
17210 2010-11-21  Bruno Haible  <bruno@clisp.org>
17211
17212         Update for MacOS X 10.5.
17213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17214         MacOS X; the test fails on MacOS X 10.5.8.
17215         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17216         about MacOS X.
17217
17218 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17219
17220         bootstrap: add bootstrap_sync option.
17221         See discussion at
17222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17224         * build-aux/bootstrap: Accept --bootstrap-sync to update
17225         bootstrap if it is not identical to the local gnulib's
17226         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17227         enable this by default.  Accept --no-bootstrap-sync to disable
17228         it.
17229
17230 2010-11-20  Bruno Haible  <bruno@clisp.org>
17231
17232         Ensure that <features.h> is included before __GLIBC__ is tested.
17233         * lib/printf-parse.h: Include <features.h>.
17234         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17235         Reported by Mike Frysinger <vapier@gentoo.org>.
17236
17237         Ensure that <features.h> is included before __GLIBC__ is tested.
17238         * lib/wchar.in.h: Include <features.h>.
17239         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17240         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17241         Reported by Mike Frysinger <vapier@gentoo.org>.
17242
17243         Ensure that <features.h> is included before __GLIBC__ is tested.
17244         * lib/arpa_inet.in.h: Include <features.h>.
17245         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17246         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17247         Reported by Mike Frysinger <vapier@gentoo.org>.
17248
17249         Ensure that <features.h> is included before __GLIBC__ is tested.
17250         * build-aux/link-warning.h: Include <features.h>.
17251         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17252         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17253         Reported by Mike Frysinger <vapier@gentoo.org>.
17254
17255         Ensure that <features.h> is included before __GLIBC__ is tested.
17256         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17257         Reported by Mike Frysinger <vapier@gentoo.org>.
17258
17259 2010-11-20  Bruno Haible  <bruno@clisp.org>
17260
17261         memmem: Fix autoconf test.
17262         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17263
17264 2010-11-20  Bruno Haible  <bruno@clisp.org>
17265
17266         Port to uClibc.
17267         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17268         * lib/fcntl.in.h: Likewise.
17269         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17270         * lib/mbrtowc.c (mbrtowc): Likewise.
17271         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17272         * lib/strerror_r.c: Likewise.
17273         * lib/unistr/u8-strnlen.c: Likewise.
17274         * lib/vasnprintf.c (decimal_point_char): Likewise.
17275         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17278         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17279         * tests/test-sigaction.c (handler, main): Likewise.
17280         * lib/freading.h: Treat uClibc like a non-glibc platform.
17281         * lib/freading.c: Likewise.
17282         * lib/gettext.h: Likewise.
17283         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17284         Likewise.
17285         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17286         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17287         * lib/propername.c (proper_name_utf8): Likewise.
17288         * lib/spawn.in.h: Likewise.
17289         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17290         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17291         mem_cd_iconveh_internal): Likewise.
17292         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17293         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17294         strstr, strcasestr): Likewise.
17295         * lib/unicodeio.c (unicode_to_mb): Likewise.
17296         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17297         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17298         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17299         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17300         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17301         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17302         * lib/unistr/u8-stpncpy.c: Likewise.
17303         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17304         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17305         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17306         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17307         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17308         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17309         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17312         Likewise.
17313         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17314         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17318         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17319         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17320         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17321         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17322         * tests/test-striconveha.c (main): Likewise.
17323         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17324         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17325         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17326         * doc/posix-functions/getline.texi: Likewise.
17327         Reported by Mike Frysinger <vapier@gentoo.org>.
17328
17329 2010-11-20  Bruno Haible  <bruno@clisp.org>
17330
17331         nproc: Fix condition.
17332         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17333         HAVE_PTHREAD_AFFINITY_NP.
17334
17335 2010-11-20  Bruno Haible  <bruno@clisp.org>
17336
17337         Fix a comment.
17338         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17339
17340 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17341
17342         ftoastr: don't assume snprintf
17343         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17344         Implement a subset of snprintf here, by using sprintf safely.
17345         * modules/ftoastr (Depends-on): Remove snprintf.
17346
17347 2010-11-19  Jim Meyering  <meyering@redhat.com>
17348
17349         test-rename.h: fix compilation failure
17350         * tests/test-rename.h (test_rename): Add omitted "}".
17351
17352 2010-11-17  Jim Meyering  <meyering@redhat.com>
17353
17354         maint.mk: add a URL discussing the no-@acronym policy
17355         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17356
17357 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17358
17359         ftoastr: depend on snprintf, improve comments
17360         * lib/ftoastr.c: Also mention Loitsch's draft.
17361         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17362         needed in the current implementation, but it might simplify
17363         speeding up the code later.
17364         * modules/ftoastr: Depend on snprintf; this improves portability.
17365         Suggested by Bruno Haible in the same email.
17366
17367         ftoastr: port to hosts lacking strtof and strtold
17368         Problem reported by Bruno Haible in
17369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17370         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17371         environment and strtold (and presumably strtof) are not available.
17372         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17373         (configure.ac): Require gl_C99_STRTOLD.
17374
17375 2010-11-18  Bruno Haible  <bruno@clisp.org>
17376
17377         c-strtold: Avoid link error on AIX 7.
17378         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17379         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17380         (gl_C_STRTOLD): Test whether strtold_l exists.
17381         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17382
17383 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17384
17385         intprops: new macro INT_BITS_STRLEN_BOUND
17386         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17387         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17388         not exposed.  Also, it uses a slightly tighter bound than before;
17389         though this makes no practical difference, we might as well be as
17390         tight as we easily can.
17391
17392         ftoastr: new module, for lossless conversion of floats to short strings
17393         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17394         * modules/ftoastr: New files.
17395
17396 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17397
17398         bootstrap: port to Solaris sed
17399         * build-aux/bootstrap (get_version): Port to Solaris sed.
17400         See Ralf Wildenhues's note in
17401         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17402
17403 2010-11-14  Jim Meyering  <meyering@redhat.com>
17404
17405         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17406         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17407         and move definition closer to sole use.
17408
17409 2010-11-13  Jim Meyering  <meyering@redhat.com>
17410
17411         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17412         Now we require at least autoconf-2.59, which means the work-around
17413         is no longer needed.
17414         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17415         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17416         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17417         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17418         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17419
17420 2010-11-13  Bruno Haible  <bruno@clisp.org>
17421
17422         rename, renameat: Avoid test failures at NFS mounted locations.
17423         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17424         functions.
17425         (test_rename): Use assert_nonexistent.
17426         * tests/test-rename.c: Include <dirent.h>.
17427         * tests/test-renameat.c: Likewise.
17428         Reported by Gary V. Vaughan <gary@gnu.org>.
17429
17430         rename, renameat: Document Linux bug with NFS
17431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17432         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17433         * doc/posix-functions/renameat.texi: Likewise.
17434         Suggested by Eric Blake.
17435
17436 2010-11-13  Bruno Haible  <bruno@clisp.org>
17437
17438         rename test: Add comments.
17439         * tests/test-rename.h (test_rename): Add structure and comments.
17440
17441 2010-11-13  Eric Blake  <eblake@redhat.com>
17442
17443         maintainer-makefile: cover a few more files
17444         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17445         scripts generated within C files, for libvirt.
17446
17447 2010-11-13  Bruno Haible  <bruno@clisp.org>
17448
17449         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17450         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17451         character, return the number of bytes that belong together, not always
17452         1.
17453         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17454         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17455         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17456         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17457         number of bytes of an invalid character.
17458         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17459         (main): Invoke it.
17460         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17461         results.
17462         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17463         malformed byte sequences.
17464         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17465         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17466         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17467         Reported by Ben Pfaff and Paolo Bonzini.
17468
17469 2010-11-13  Bruno Haible  <bruno@clisp.org>
17470
17471         openat: Work around glibc bug with fchownat() and empty file names.
17472         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17473         (gl_FUNC_FCHOWNAT): Invoke it.
17474         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17475         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17476         Reported by Gary V. Vaughan <gary@gnu.org>.
17477
17478 2010-11-13  Bruno Haible  <bruno@clisp.org>
17479
17480         openat: Ensure autoconf macro ordering.
17481         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17482         gl_USE_SYSTEM_EXTENSIONS.
17483         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17484
17485 2010-11-13  Bruno Haible  <bruno@clisp.org>
17486
17487         Update comments.
17488         * lib/unistr/u8-check.c: Update file name in comments.
17489         * lib/unistr/u8-mblen.c: Likewise.
17490         * lib/unistr/u8-prev.c: Likewise.
17491         * lib/unistr/u8-strmblen.c: Likewise.
17492         * lib/unistr/u8-strmbtouc.c: Likewise.
17493
17494 2010-11-13  Jim Meyering  <meyering@redhat.com>
17495
17496         tests: avoid test failure on Solaris 10 due to lack of PATH export
17497         * tests/test-update-copyright.sh: Don't forget to export PATH.
17498
17499         init.sh: ensure that IFS is defined, just in case...
17500         * tests/init.sh (setup_): Ensure that IFS is defined,
17501         so that saving and restoring it works as expected.  This
17502         appears to be useful at least for an old version of dash
17503         from a long time ago (RH 6).  See here for details:
17504         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17505
17506         maint.mk: tighten "test a == b" check
17507         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17508         test to files that contain something like #!/bin/sh.
17509         Without this, coreutils would get two false positives in
17510         the comments of C source files.
17511
17512 2010-11-12  Eric Blake  <eblake@redhat.com>
17513
17514         bootstrap: fix typo in previous attempt
17515         * build-aux/bootstrap (buildreq): Correct the grouping.
17516         Reported by Paul Eggert.
17517
17518         maintainer-makefile: prohibit test x == x
17519         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17520         Based on a report by Matthias Bolte.
17521
17522         bootstrap: allow FreeBSD gzip
17523         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17524         which has no '.' and goes to stderr.
17525         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17526         Reported by Matthias Bolte.
17527
17528         maintainer-makefile: check for i18n setup
17529         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17530         will likely work.
17531
17532 2010-11-12  Bruno Haible  <bruno@clisp.org>
17533
17534         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17535         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17536         * lib/nanosleep.c (nanosleep): Likewise.
17537
17538 2010-11-11  Bruno Haible  <bruno@clisp.org>
17539
17540         fcntl-h: Fix for use of C++ on glibc systems.
17541         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17542         also on glibc systems in C++ mode.
17543         Reported by Gary V. Vaughan <gary@gnu.org>.
17544
17545 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17546
17547         mknod: avoid false failure with dash
17548         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17549
17550 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         unlink: Fix "is it should" typo in diagnostic.
17553         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17555
17556 2010-11-11  Bruno Haible  <bruno@clisp.org>
17557
17558         Tests for module 'strerror_r-posix'.
17559         * modules/strerror_r-posix-tests: New file.
17560         * tests/test-strerror_r.c: New file.
17561         * tests/test-string-c++.cc: Check the signature of strerror_r.
17562
17563         New module 'strerror_r-posix'.
17564         * lib/string.in.h (strerror_r): New declaration.
17565         * lib/strerror_r.c: New file.
17566         * m4/strerror_r.m4: New file.
17567         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17568         of strerror_r.
17569         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17570         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17571         * modules/strerror_r-posix: New file.
17572         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17573         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17574         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17575         portability problems.
17576
17577 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17578
17579         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17580         line is also considered for output. Quoted function name in shell
17581         command, so temporary files for functions like MyClass::operator()
17582         are removed correctly without errors.
17583
17584 2010-11-09  Bruno Haible  <bruno@clisp.org>
17585
17586         * doc/posix-functions/strerror.texi: List more failing platforms.
17587
17588         * doc/posix-functions/strerror.texi: Add a comment.
17589
17590 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17591
17592         fdopendir: fix bug on MacOS X when low on file descriptors
17593
17594         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17595         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17596         All callers changed.
17597         (fdopendir): Invoke save_cwd at the top level, not after using
17598         multiple dup() calls to use up file descriptors.  Then retry
17599         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17600         less than the maximum number of open file descriptors, because
17601         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17602         on Mac OS X 10.6.4 for tar 1.24
17603         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17604         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17605         and for tar 1.25
17606         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17607
17608 2010-11-07  Bruno Haible  <bruno@clisp.org>
17609
17610         vasnprintf: Support I flag on glibc systems.
17611         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17612         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17613         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17614         snprintf function.
17615         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17616         glibc systems.
17617         * tests/test-vasnprintf-posix3.c: New file.
17618         * modules/vasnprintf-posix-tests (Files): Add it.
17619         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17620
17621 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17622
17623         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17624         * MODULES.html.sh: For compiler warnings, use name
17625         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17626
17627 2010-11-05  Eric Blake  <eblake@redhat.com>
17628
17629         ceil, floor: avoid spurious failure with icc
17630         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17631         [denormals-as-zero] when optimizing without -mieee-fp option.
17632         * tests/test-floorf2.c (floorf_reference): Likewise.
17633         * tests/test-ceilf1.c (dummy): New function.
17634         (main): Use it to outsmart icc's optimization.
17635         * tests/test-floorf1.c (dummy, main): Likewise.
17636
17637         tests: require working signbit
17638         * modules/ceilf-tests (Depends-on): Add signbit.
17639         * modules/ceill-tests (Depends-on): Likewise.
17640         * modules/floorf-tests (Depends-on): Likewise.
17641         * modules/floorl-tests (Depends-on): Likewise.
17642         * modules/round-tests (Depends-on): Likewise.
17643         * modules/roundf-tests (Depends-on): Likewise.
17644         * modules/roundl-tests (Depends-on): Likewise.
17645         * modules/trunc-tests (Depends-on): Likewise.
17646         * modules/truncf-tests (Depends-on): Likewise.
17647         * modules/truncl-tests (Depends-on): Likewise.
17648
17649         strtod: work around icc bug
17650         * lib/strtod.c (minus_zero): Define to working value.
17651         (strtod): Use it to avoid icc bug.
17652
17653         copysign: enhance tests
17654         * modules/copysign-tests (Files): Add minus-zero.h.
17655         * tests/test-copysign.c (main): Also test zeros.
17656
17657 2010-11-04  Eric Blake  <eblake@redhat.com>
17658
17659         ceil, floor, round, trunc: enhance tests of -0
17660         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17661         * tests/test-ceill.c (main): Likewise.
17662         * tests/test-floorf1.c (main): Likewise.
17663         * tests/test-floorl.c (main): Likewise.
17664         * tests/test-round1.c (main): Likewise.
17665         * tests/test-roundf1.c (main): Likewise.
17666         * tests/test-roundl.c (main): Likewise.
17667         * tests/test-trunc1.c (main): Likewise.
17668         * tests/test-truncf1.c (main): Likewise.
17669         * tests/test-truncl.c (main): Likewise.
17670
17671 2010-11-04  Eric Blake  <eblake@redhat.com>
17672
17673         frexp, tests: work around ICC bug with -zero
17674         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17675         works with more compilers.
17676         * tests/minus-zero.h: New file.
17677         * modules/ceilf-tests (Files): Include it.
17678         * modules/ceill-tests (Files): Likewise.
17679         * modules/floorf-tests (Files): Likewise.
17680         * modules/floorl-tests (Files): Likewise.
17681         * modules/frexp-nolibm-tests (Files): Likewise.
17682         * modules/frexp-tests (Files): Likewise.
17683         * modules/frexpl-nolibm-tests (Files): Likewise.
17684         * modules/frexpl-tests (Files): Likewise.
17685         * modules/isnan-tests (Files): Likewise.
17686         * modules/isnand-nolibm-tests (Files): Likewise.
17687         * modules/isnand-tests (Files): Likewise.
17688         * modules/isnanf-nolibm-tests (Files): Likewise.
17689         * modules/isnanf-tests (Files): Likewise.
17690         * modules/isnanl-nolibm-tests (Files): Likewise.
17691         * modules/isnanl-tests (Files): Likewise.
17692         * modules/round-tests (Files): Likewise.
17693         * modules/roundf-tests (Files): Likewise.
17694         * modules/roundl-tests (Files): Likewise.
17695         * modules/ldexpl-tests (Files): Likewise.
17696         * modules/signbit-tests (Files): Likewise.
17697         * modules/snprintf-posix-tests (Files): Likewise.
17698         * modules/sprintf-posix-tests (Files): Likewise.
17699         * modules/strtod-tests (Files): Likewise.
17700         * modules/trunc-tests (Files): Likewise.
17701         * modules/truncf-tests (Files): Likewise.
17702         * modules/truncl-tests (Files): Likewise.
17703         * modules/vsnprintf-posix-tests (Files): Likewise.
17704         * modules/vsprintf-posix-tests (Files): Likewise.
17705         * modules/vasnprintf-posix-tests (Files): Likewise.
17706         * modules/vasprintf-posix-tests (Files): Likewise.
17707         * tests/test-ceilf1.c (main): Use it.
17708         * tests/test-ceill.c (main): Likewise.
17709         * tests/test-floorf1.c (main): Likewise.
17710         * tests/test-floorl.c (main): Likewise.
17711         * tests/test-frexp.c (main): Likewise.
17712         * tests/test-frexpl.c (main): Likewise.
17713         * tests/test-isnan.c (main): Likewise.
17714         * tests/test-isnand.h (main): Likewise.
17715         * tests/test-isnanf.h (main): Likewise.
17716         * tests/test-isnanl.h (main): Likewise.
17717         * tests/test-ldexpl.c (main): Likewise.
17718         * tests/test-round.c (main): Likewise.
17719         * tests/test-roundf.c (main): Likewise.
17720         * tests/test-roundl.c (main): Likewise.
17721         * tests/test-signbit.c (test_signbitf, test_signbitd)
17722         (test_signbitl): Likewise.
17723         * tests/test-snprintf-posix.h (test_function): Likewise.
17724         * tests/test-sprintf-posix.h (test_function): Likewise.
17725         * tests/test-strtod.c (main): Likewise.
17726         * tests/test-trunc1.c (main): Likewise.
17727         * tests/test-truncf1.c (main): Likewise.
17728         * tests/test-truncl.c (main): Likewise.
17729
17730         isnanl: work around icc bug
17731         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17732
17733 2010-11-03  Eric Blake  <eblake@redhat.com>
17734
17735         tests: fix compiler warnings
17736         * tests/test-getopt.h (test_getopt): Fix condition.
17737         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17738         * tests/test-pipe2.c (main): Likewise.
17739         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17740
17741         utimens: fix broken m4 test
17742         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17743
17744 2010-10-28  Bruno Haible  <bruno@clisp.org>
17745
17746         posix_spawn*, getdtablesize: Relax license.
17747         * modules/posix_spawn (License): Change to LGPLv2+.
17748         * modules/posix_spawnp (License): Likewise.
17749         * modules/posix_spawn-internal (License): Likewise.
17750         * modules/posix_spawnattr_init (License): Likewise.
17751         * modules/posix_spawnattr_getflags (License): Likewise.
17752         * modules/posix_spawnattr_setflags (License): Likewise.
17753         * modules/posix_spawnattr_getpgroup (License): Likewise.
17754         * modules/posix_spawnattr_setpgroup (License): Likewise.
17755         * modules/posix_spawnattr_getschedparam (License): Likewise.
17756         * modules/posix_spawnattr_setschedparam (License): Likewise.
17757         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17758         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17759         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17760         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17761         * modules/posix_spawnattr_getsigmask (License): Likewise.
17762         * modules/posix_spawnattr_setsigmask (License): Likewise.
17763         * modules/posix_spawnattr_destroy (License): Likewise.
17764         * modules/posix_spawn_file_actions_init (License): Likewise.
17765         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17766         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17767         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17768         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17769         * modules/getdtablesize (License): Likewise.
17770         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17771
17772 2010-10-26  Bruno Haible  <bruno@clisp.org>
17773
17774         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17775         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17776         Cygwin and mingw.
17777         Suggested by Eric Blake.
17778
17779 2010-10-26  Bruno Haible  <bruno@clisp.org>
17780
17781         stdio: Work around compilation error due to renameat() on Solaris 10.
17782         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17783         * lib/renameat.c: Don't include <unistd.h> here.
17784         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17785         Reported by Paul Eggert and Eric Blake.
17786
17787 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17788
17789         renameat: port to Solaris 10, which declares renameat in unistd.h
17790
17791         * lib/renameat.c: Include unistd.h before stdio.h, because
17792         Solaris 10 declares renameat in unistd.h.  Problem encountered
17793         when building GNU tar 1.24 on Solaris 10.
17794
17795 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17796
17797         fdopendir: fix C89 compilation
17798         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17799         compilers.
17800
17801 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17802
17803         inttostr: simplify by removing unnecessary redundancy
17804         * lib/anytostr.c: Don't include verify.h.
17805         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17806         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17807         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17808         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17809         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17810         Likewise.
17811         * modules/inttostr (Depends-on): Remove 'verify'.
17812
17813 2010-10-23  Bruno Haible  <bruno@clisp.org>
17814
17815         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17816         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17817         Reported by Eric Blake.
17818
17819 2010-10-23  Bruno Haible  <bruno@clisp.org>
17820
17821         Tests: Fix LOCALE_JA on MirBSD 10.
17822         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17823         to an UTF-8 locale.
17824         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17826         Reported by Eric Blake.
17827
17828 2010-10-21  Bruno Haible  <bruno@clisp.org>
17829
17830         nl_langinfo test: Avoid test failure on NetBSD 5.
17831         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17832         Reported by Eric Blake.
17833
17834 2010-10-21  Eric Blake  <eblake@redhat.com>
17835
17836         c-stack: work around libsigsegv 2.8 bug
17837         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17838         overflow on at least PowerPC64.
17839
17840 2010-10-17  Bruno Haible  <bruno@clisp.org>
17841
17842         userspec: Drop redundant file.
17843         * modules/userspec (Files): Remove lib/inttostr.h.
17844
17845 2010-10-17  Bruno Haible  <bruno@clisp.org>
17846
17847         nl_langinfo tests: Silence some warnings.
17848         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17849         Reported by Jim Meyering.
17850
17851 2010-10-17  Bruno Haible  <bruno@clisp.org>
17852
17853         Make use of GCC's attribute __alloc_size__.
17854         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17855         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17856         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17857         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17858         __alloc_size__.
17859         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17860         Suggested by Jim Meyering.
17861
17862 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17863
17864         bootstrap: anchor .gitignore entries.
17865         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17866         with...
17867         (insert_vc_ignore): ... this new function, which prepends `/' to
17868         all .gitignore entries before passing them to
17869         insert_sorted_if_absent.
17870
17871 2010-10-16  Bruno Haible  <bruno@clisp.org>
17872
17873         nextafter: Fix configure check.
17874         * modules/nextafter (configure.ac): Correct expected prototype.
17875
17876 2010-10-16  Bruno Haible  <bruno@clisp.org>
17877
17878         termios: Update documentation.
17879         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17880
17881 2010-10-16  Bruno Haible  <bruno@clisp.org>
17882
17883         tests: Make them compile with TinyCC.
17884         * tests/test-strstr.c (main): Remove parentheses around array
17885         initializer.
17886
17887 2010-10-15  Eric Blake  <eblake@redhat.com>
17888
17889         ignore-value: make header idempotent
17890         * lib/ignore-value.h: Add double-inclusion guards.
17891         Reported by Stefan Berger.
17892
17893 2010-10-15  Jim Meyering  <meyering@redhat.com>
17894
17895         GNUmakefile: handle "stable" target, not "major"
17896         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17897         lists in maint.mk and announce-gen.  Without this, "make stable"
17898         would fail to ensure that $(VERSION) is up to date.
17899
17900 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17901
17902         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17903         & co.
17904
17905 2010-10-14  Bruno Haible  <bruno@clisp.org>
17906
17907         vasnprintf: Don't set errno to 0.
17908         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17909         block that sets it to 0.
17910         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17911
17912 2010-10-14  Bruno Haible  <bruno@clisp.org>
17913
17914         socketlib: Fix.
17915         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17916         gl_PREREQ_SYS_H_WINSOCK2.
17917         Reported by Ian Beckwith <ianb@erislabs.net>.
17918
17919 2010-10-13  Jim Meyering  <meyering@redhat.com>
17920
17921         test-select-stdin.c: avoid warn_unused_result warnings
17922         * tests/test-select-stdin.c: Include "macros.h".
17923         ASSERT that read and fflush succeed.
17924
17925 2010-10-13  Jim Meyering  <meyering@redhat.com>
17926
17927         git-version-gen: do require git-VC'd files in cwd
17928         * build-aux/git-version-gen: Reject a git version string
17929         if there are no commits associated with the current directory.
17930         This avoids an unlikely false-positive (unrelated dir whose parent
17931         repository also contains a tag matching v*), as pointed out
17932         by Giuseppe Scrivano in
17933         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17934
17935 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17936
17937         argv-iter: omit nonconforming declaration
17938         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17939         enum arg_iter_err declaration, which doesn't conform to C99.
17940         Solaris 10 cc warns about this.
17941
17942 2010-10-13  Eric Blake  <eblake@redhat.com>
17943
17944         termios: fix compilation on mingw
17945         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17946         (gl_TERMIOS_H): Adjust it on mingw.
17947         * modules/termios (Makefile.am): Substitute new key.
17948         * lib/termios.in.h (includes): Make include_next conditional.
17949         * doc/posix-headers/termios.texi (termios.h): Update
17950         documentation.
17951         Reported by Daniel P. Berrange.
17952
17953 2010-10-13  Jim Meyering  <meyering@redhat.com>
17954
17955         git-version-gen: don't require that .git/ be in the current dir
17956         * build-aux/git-version-gen: Adjust this script so that it works
17957         when run from any working directory beneath the top-level .git/-
17958         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17960
17961         test-select: avoid warn_unused_result warnings
17962         * tests/test-select.c: Include "macros.h".
17963         ASSERT that each call to read, write, and pipe succeeds.
17964         While not technically required, also check each "close".
17965         * modules/select-tests (Files): Add tests/macros.h.
17966
17967         test-symlinkat: remove declaration of unused local
17968         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17969
17970         test-inttostr: avoid shadowing warnings
17971         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17972         and use malloc rather than the stack for the same reason as
17973         mentioned in the comment justifying the other allocation.
17974
17975 2010-10-11  Bruno Haible  <bruno@clisp.org>
17976
17977         stdlib: Allow multiple gnulib generated replacements to coexist.
17978         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17979         Reported by Sam Steingold <sds@gnu.org>.
17980
17981 2010-10-11  Jim Meyering  <meyering@redhat.com>
17982
17983         fix a documentation typo
17984         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17985
17986 2010-10-11  Eric Blake  <eblake@redhat.com>
17987
17988         futimens: work around Solaris 11 bug
17989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17990         * tests/test-futimens.h (test_futimens): Enhance, rather than
17991         weaken test.
17992         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17993
17994 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17995
17996         Indentation.
17997         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17998         higher-level operators more to the left.
17999
18000 2010-10-11  Jim Meyering  <meyering@redhat.com>
18001
18002         test-futimens: avoid unwarranted test failure on Solaris 5.11
18003         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18004         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18005         because it tries to dereference the NULL name argument.
18006
18007 2010-10-11  Bruno Haible  <bruno@clisp.org>
18008
18009         Indentation.
18010         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18011         indentation.
18012
18013 2010-10-11  Jim Meyering  <meyering@redhat.com>
18014
18015         spawn.in.h: make indentation consistent with parentheses
18016         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18017         Make indentation consistent with parentheses.
18018
18019 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18020
18021         Fix mismatched parens in previous commit
18022         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18023         parens.
18024
18025 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18026
18027         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18028
18029         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18030         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18031         * lib/malloca.c: Include "verify.h".
18032         (verify1): Remove, replacing with a verify call.
18033         * lib/relocwrapper.c (verify1): Likewise.
18034         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18035         Likewise.
18036         * modules/malloca (Depends-on): Add 'verify'.
18037         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18038         * modules/vasnprintf (Depends-on): Add 'verify'.
18039         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18040         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18041         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18042         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18043         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18044         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18045         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18046
18047         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18048
18049         Formerly the style was sometimes 2*X - 1, because the C standard
18050         was wrongly thought to disallow ?: in integral constant expressions.
18051         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18052         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18053         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18054         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18055         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18056         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18057         verify that time_t cannot be floating.
18058
18059 2010-10-08  Eric Blake  <eblake@redhat.com>
18060
18061         time: enforce recent POSIX ruling that time_t is integral
18062         * lib/time.in.h (__time_t_must_be_integral): Detect any
18063         problematic systems, allowing the rest of gnulib to assume POSIX.
18064
18065 2010-10-08  Jim Meyering  <meyering@redhat.com>
18066
18067         fdopendir: fix a bug on systems lacking openat and /proc support
18068         OpenBSD 4.7 is one such system.  The most noticeable effect was
18069         failure of any application making nontrivial use of fts: rm, du,
18070         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18071           ./rm: traversal failed: `a': Bad file descriptor
18072         Debugging that, you see that even though FD 6 was closed just
18073         prior to the opendir call in fd_clone_opendir, its resulting
18074         dir->dd_fd was 8, rather than the expected value of 6:
18075
18076         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18077         93                close (fd);
18078         (gdb) n
18079         94                dir = fd_clone_opendir (dupfd);
18080         (gdb) n
18081         95                saved_errno = errno;
18082         (gdb) p dir->dd_fd
18083         $11 = 8
18084
18085         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18086         The problem is that on OpenBSD, fd_clone_opendir has to resort
18087         to using the old-style save/restore CWD mechanism, due to its
18088         lack of openat/proc support, and *that* would steal the FD (6)
18089         that opendir was supposed to use.
18090
18091         The fix is to squirrel away the desired FD so that save_cwd uses a
18092         different one, and then free the dest FD right before calling opendir.
18093         That guarantees opendir will use the required file descriptor.
18094
18095         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18096
18097 2010-10-08  Bruno Haible  <bruno@clisp.org>
18098
18099         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18100         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18101
18102 2010-10-08  Bruno Haible  <bruno@clisp.org>
18103
18104         nanosleep: Make replacement POSIX compliant.
18105         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18106         is out of range.
18107         Reported by Jim Meyering.
18108
18109 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18110
18111         bootstrap: add hook for altering gnulib.mk, for Bison
18112         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18113         the Bison bootstrapping process can rewrite file names and variables
18114         in this file before later parts of 'bootstrap' use the file.
18115         Bison wants to include lib/gnulib.mk from the top-level makefile,
18116         so it needs the file names in this file to be relative to the top
18117         level, not relative to lib; plus it needs variable names to be
18118         rewritten.
18119         (slurp): Use the new function.
18120
18121         bootstrap: reformat for readability
18122         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18123
18124 2010-10-08  Eric Blake  <eblake@redhat.com>
18125
18126         docs: update cygwin progress
18127         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18128         1.7.7.
18129         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18130         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18131         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18132         * doc/posix-functions/carg.texi (carg): Likewise.
18133         * doc/posix-functions/cargf.texi (cargf): Likewise.
18134         * doc/posix-functions/casin.texi (casin): Likewise.
18135         * doc/posix-functions/casinf.texi (casinf): Likewise.
18136         * doc/posix-functions/casinh.texi (casinh): Likewise.
18137         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18138         * doc/posix-functions/catan.texi (catan): Likewise.
18139         * doc/posix-functions/catanf.texi (catanf): Likewise.
18140         * doc/posix-functions/catanh.texi (catanh): Likewise.
18141         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18142         * doc/posix-functions/ccos.texi (ccos): Likewise.
18143         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18144         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18145         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18146         * doc/posix-functions/cexp.texi (cexp): Likewise.
18147         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18148         * doc/posix-functions/cimag.texi (cimag): Likewise.
18149         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18150         * doc/posix-functions/clog.texi (clog): Likewise.
18151         * doc/posix-functions/clogf.texi (clogf): Likewise.
18152         * doc/posix-functions/conj.texi (conj): Likewise.
18153         * doc/posix-functions/conjf.texi (conjf): Likewise.
18154         * doc/posix-functions/cpow.texi (cpow): Likewise.
18155         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18156         * doc/posix-functions/cproj.texi (cproj): Likewise.
18157         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18158         * doc/posix-functions/creal.texi (creal): Likewise.
18159         * doc/posix-functions/crealf.texi (crealf): Likewise.
18160         * doc/posix-functions/csin.texi (csin): Likewise.
18161         * doc/posix-functions/csinf.texi (csinf): Likewise.
18162         * doc/posix-functions/csinh.texi (csinh): Likewise.
18163         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18164         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18165         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18166         * doc/posix-functions/ctan.texi (ctan): Likewise.
18167         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18168         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18169         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18170         * doc/posix-headers/complex.texi (complex.h): Likewise.
18171
18172 2010-10-07  Jim Meyering  <meyering@redhat.com>
18173
18174         parse-datetime: avoid compilation failure on OpenBSD 4.7
18175         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18176         This works around a compilation failure on OpenBSD 4.7:
18177         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18178
18179 2010-10-07  Eric Blake  <eblake@redhat.com>
18180
18181         docs: update cygwin progress
18182         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18183         1.7.6.
18184         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18185         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18186         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18187         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18188         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18189         Likewise.
18190         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18191         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18192         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18193         Likewise.
18194         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18195         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18196         Likewise.
18197         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18198         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18199         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18200         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18201         Likewise.
18202         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18203         Likewise.
18204         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18205
18206         docs: update parse-datetime history
18207         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18208         documentation of this function's history and alternatives.
18209
18210         cygwin: use more robust version check
18211         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18212         exclude an eventual cygwin 1.9.1.
18213         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18215         (gl_FUNC_STRCASESTR): Likewise.
18216         Reported by Bruno Haible.
18217
18218 2010-10-06  Bruno Haible  <bruno@clisp.org>
18219
18220         string, sys_select: Avoid #including large headers unless necessary.
18221         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18222         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18223         OSF/1, BeOS, Haiku.
18224         Reported by Jim Meyering.
18225
18226 2010-10-05  Eric Blake  <eblake@redhat.com>
18227
18228         memmem, strstr, strcasestr: fix bug with long periodic needle
18229         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18230         periodic needle having false positive.
18231         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18232         and cygwin 1.7.7.
18233         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18235         (gl_FUNC_STRCASESTR): Likewise.
18236         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18237         * tests/test-memmem.c (main): Expose the bug.
18238         * tests/test-strcasestr.c (main): Likewise.
18239         * tests/test-strstr.c (main): Likewise.
18240         * tests/test-c-strcasestr.c (main): Likewise.
18241         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18242         * doc/posix-functions/strstr.texi (strstr): Likewise.
18243         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18244         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18245
18246 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18247
18248         parse-datetime: do some more renaming
18249         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18250         parse_datetime, not get_date.  Mention the renaming.
18251         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18252         in comments.
18253         * m4/bison.m4: Likewise.
18254
18255 2010-10-05  Eric Blake  <eblake@redhat.com>
18256
18257         parse-datetime: better name than get_date
18258         * NEWS: Reword the deprecation notice.
18259         * modules/get_date: Rename to modules/parse-datetime.
18260         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18261         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18262         * lib/get_date.y: Rename to lib/parse-datetime.y.
18263         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18264         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18265         * doc/getdate.texi: Provide fallback wrapper.
18266         * lib/getdate.h: Move guts, and wrap...
18267         * lib/parse-datetime.h: ...new file.
18268         * lib/parse-datetime.y (get_date): Rename...
18269         (parse_datetime): ...to this.
18270         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18271         (gl_PARSE_DATETIME): ...to this.
18272         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18273         documentation.
18274         * modules/getdate (Files): Provide fallback docs and header.
18275         (Notice, Depends-on): Update references.
18276         * tests/test-parse-datetime.c: Likewise.
18277         * DEPENDENCIES: Likewise.
18278         * MODULES.html.sh (Date and time <time.h>): Likewise.
18279         * doc/parse-datetime.texi (Date input formats)
18280         (Authors of parse_datetime): Likewise.
18281         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18282         (Include): Likewise.
18283         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18284         * gnulib-tool: Likewise.
18285         * m4/bison.m4 (gl_BISON): Likewise.
18286         Suggested by Bruno Haible.
18287
18288 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18289
18290         more ports to Solaris tr, which needs [] around ranges
18291         * gnulib-tool: Solaris tr needs [] around ranges.
18292         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18293         * tests/test-pipe-filter-gi1.c (main): Likewise.
18294         * tests/test-pipe-filter-ii1.c (main): Likewise.
18295
18296 2010-10-05  Eric Blake  <eblake@redhat.com>
18297
18298         bootstrap: fix Solaris regression
18299         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18300         around ranges.
18301         Reported by Pádraig Brady.
18302
18303         bootstrap: work with pkg-config
18304         * build-aux/bootstrap (check_versions): Also transliterate - in
18305         prerequisite name.
18306         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18307         prerequisites that were already found, to avoid confusion.
18308         Reported by Justin Clift.
18309
18310         faccessat: remove unused wrappers
18311         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18312         presence of these wrappers dragged in -lgen on Solaris.
18313         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18314
18315 2010-10-05  Jim Meyering  <meyering@redhat.com>
18316
18317         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18318         * Makefile (sc_pragma_columns): New syntax-check rule.
18319
18320 2010-10-04  Bruno Haible  <bruno@clisp.org>
18321
18322         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18323         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18324         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18325         Reported by Bruce Korb and Eric Blake.
18326
18327 2010-10-04  Bruno Haible  <bruno@clisp.org>
18328
18329         threadlib: Make option --with-libpth-prefix work.
18330         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18331         use $LIBPTH, not just -lpth.
18332
18333 2010-10-04  Bruno Haible  <bruno@clisp.org>
18334
18335         Avoid line length limitation from HP NonStop system header files.
18336         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18337         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18338         * lib/ctype.in.h: Likewise.
18339         * lib/dirent.in.h: Likewise.
18340         * lib/errno.in.h: Likewise.
18341         * lib/fcntl.in.h: Likewise.
18342         * lib/float.in.h: Likewise.
18343         * lib/getopt.in.h: Likewise.
18344         * lib/iconv.in.h: Likewise.
18345         * lib/inttypes.in.h: Likewise.
18346         * lib/langinfo.in.h: Likewise.
18347         * lib/locale.in.h: Likewise.
18348         * lib/math.in.h: Likewise.
18349         * lib/netdb.in.h: Likewise.
18350         * lib/netinet_in.in.h: Likewise.
18351         * lib/poll.in.h: Likewise.
18352         * lib/pthread.in.h: Likewise.
18353         * lib/pty.in.h: Likewise.
18354         * lib/sched.in.h: Likewise.
18355         * lib/se-selinux.in.h: Likewise.
18356         * lib/search.in.h: Likewise.
18357         * lib/signal.in.h: Likewise.
18358         * lib/spawn.in.h: Likewise.
18359         * lib/stdarg.in.h: Likewise.
18360         * lib/stddef.in.h: Likewise.
18361         * lib/stdint.in.h: Likewise.
18362         * lib/stdio.in.h: Likewise.
18363         * lib/stdlib.in.h: Likewise.
18364         * lib/string.in.h: Likewise.
18365         * lib/strings.in.h: Likewise.
18366         * lib/sys_file.in.h: Likewise.
18367         * lib/sys_ioctl.in.h: Likewise.
18368         * lib/sys_select.in.h: Likewise.
18369         * lib/sys_socket.in.h: Likewise.
18370         * lib/sys_stat.in.h: Likewise.
18371         * lib/sys_time.in.h: Likewise.
18372         * lib/sys_times.in.h: Likewise.
18373         * lib/sys_utsname.in.h: Likewise.
18374         * lib/sys_wait.in.h: Likewise.
18375         * lib/sysexits.in.h: Likewise.
18376         * lib/termios.in.h: Likewise.
18377         * lib/time.in.h: Likewise.
18378         * lib/unistd.in.h: Likewise.
18379         * lib/wchar.in.h: Likewise.
18380         * lib/wctype.in.h: Likewise.
18381         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18382         * modules/ctype (Makefile.am): Likewise.
18383         * modules/dirent (Makefile.am): Likewise.
18384         * modules/errno (Makefile.am): Likewise.
18385         * modules/fcntl-h (Makefile.am): Likewise.
18386         * modules/float (Makefile.am): Likewise.
18387         * modules/getopt-posix (Makefile.am): Likewise.
18388         * modules/iconv-h (Makefile.am): Likewise.
18389         * modules/inttypes (Makefile.am): Likewise.
18390         * modules/langinfo (Makefile.am): Likewise.
18391         * modules/locale (Makefile.am): Likewise.
18392         * modules/math (Makefile.am): Likewise.
18393         * modules/netdb (Makefile.am): Likewise.
18394         * modules/netinet_in (Makefile.am): Likewise.
18395         * modules/poll-h (Makefile.am): Likewise.
18396         * modules/pthread (Makefile.am): Likewise.
18397         * modules/pty (Makefile.am): Likewise.
18398         * modules/sched (Makefile.am): Likewise.
18399         * modules/search (Makefile.am): Likewise.
18400         * modules/selinux-h (Makefile.am): Likewise.
18401         * modules/signal (Makefile.am): Likewise.
18402         * modules/spawn (Makefile.am): Likewise.
18403         * modules/stdarg (Makefile.am): Likewise.
18404         * modules/stddef (Makefile.am): Likewise.
18405         * modules/stdint (Makefile.am): Likewise.
18406         * modules/stdio (Makefile.am): Likewise.
18407         * modules/stdlib (Makefile.am): Likewise.
18408         * modules/string (Makefile.am): Likewise.
18409         * modules/strings (Makefile.am): Likewise.
18410         * modules/sys_file (Makefile.am): Likewise.
18411         * modules/sys_ioctl (Makefile.am): Likewise.
18412         * modules/sys_select (Makefile.am): Likewise.
18413         * modules/sys_socket (Makefile.am): Likewise.
18414         * modules/sys_stat (Makefile.am): Likewise.
18415         * modules/sys_time (Makefile.am): Likewise.
18416         * modules/sys_times (Makefile.am): Likewise.
18417         * modules/sys_utsname (Makefile.am): Likewise.
18418         * modules/sys_wait (Makefile.am): Likewise.
18419         * modules/sysexits (Makefile.am): Likewise.
18420         * modules/termios (Makefile.am): Likewise.
18421         * modules/time (Makefile.am): Likewise.
18422         * modules/unistd (Makefile.am): Likewise.
18423         * modules/wchar (Makefile.am): Likewise.
18424         * modules/wctype (Makefile.am): Likewise.
18425
18426 2010-10-04  Bruno Haible  <bruno@clisp.org>
18427
18428         read-file tests: Avoid a test failure on NonStop Kernel.
18429         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18430         a regular file.
18431         Reported by Joachim Schmitz <schmitz@hp.com>.
18432
18433 2010-10-03  Bruno Haible  <bruno@clisp.org>
18434
18435         gnulib-tool: Fixes for --create-testdir with --libtool.
18436         * gnulib-tool (func_get_automake_snippet): Don't augment
18437         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18438         an executable.
18439         (func_create_testdir): Handle module 'alloca' like func_import.
18440         Reported by Bruce Korb <bruce.korb@gmail.com>.
18441
18442 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18443
18444         Avoid some lines longer than 80 characters.
18445         * lib/stdint.in.h: Break long comment lines.
18446         * lib/math.in.h: Likewise.
18447         (_GL_NUM_UINT_WORDS): New macro, for readability.
18448         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18449         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18450         * lib/stdlib.in.h: Likewise.
18451         * lib/spawn.in.h: Likewise.
18452         * lib/sys_socket.in.h: Update an URL.
18453         * lib/sys_stat.in.h: Break long line.
18454
18455 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18456
18457         Improve pmccabe2html.
18458         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18459         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18460         when the sources change. Remove the line in the HTML about "Used
18461         ranges" (which implied that there might be other unused ranges),
18462         rename "Resume" to "Summary" (easier to understand for more users).
18463         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18464         styles, and some unnecessary blank lines.
18465
18466 2010-10-03  Bruno Haible  <bruno@clisp.org>
18467             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18468
18469         acl: Add support for ACLs on NonStop Kernel.
18470         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18471         Check whether the function aclsort() exists.
18472         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18473         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18474         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18475         (acl_nontrivial [HAVE_ACLSORT]: New function.
18476         (file_has_acl): Implement for NonStop Kernel.
18477         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18478         (qset_acl): Implement for NonStop Kernel.
18479         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18480         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18481         (main): Implement for NonStop Kernel.
18482         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18483         Kernel. Handle this flavor.
18484         * tests/test-set-mode-acl.sh: Likewise.
18485         * tests/test-copy-acl.sh: Likewise.
18486         * tests/test-copy-file.sh: Likewise.
18487
18488 2010-10-03  Bruno Haible  <bruno@clisp.org>
18489
18490         Info about ACLs on NonStop Kernel.
18491         * doc/acl-resources.txt: Add info about NonStop Kernel.
18492         References by Joachim Schmitz <schmitz@hp.com>.
18493
18494 2010-10-02  Bruno Haible  <bruno@clisp.org>
18495
18496         Define missing EDQUOT on NonStop Kernel.
18497         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18498         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18500         missing.
18501         * doc/posix-headers/errno.texi: Mention the NSK bug.
18502         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18503         Reported by Joachim Schmitz <schmitz@hp.com>.
18504
18505 2010-10-02  Bruno Haible  <bruno@clisp.org>
18506
18507         Update doc for POSIX:2008.
18508         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18509         Update URL of POSIX specification.
18510
18511 2010-10-02  Bruno Haible  <bruno@clisp.org>
18512
18513         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18514         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18515         from gnulib, not from Automake.
18516
18517 2010-10-02  Bruno Haible  <bruno@clisp.org>
18518
18519         New module 'system-posix'.
18520         * modules/system-posix: New file.
18521         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18522         module is present.
18523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18524         GNULIB_SYSTEM_POSIX.
18525         * modules/stdlib (Depends-on): Remove sys_wait.
18526         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18527         * doc/posix-functions/system.texi: Mention the new module.
18528         * doc/posix-headers/stdlib.texi: Likewise.
18529         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18530         define test_sys_wait_macros to a no-op.
18531         Reported by Sam Steingold <sds@gnu.org>.
18532
18533 2010-09-30  Bruno Haible  <bruno@clisp.org>
18534
18535         More renaming from 'getdate' to 'get_date'.
18536         * doc/get_date.texi: Renamed from doc/getdate.texi.
18537         * modules/get_date (Files): Update.
18538         * MODULES.html.sh (Date and time <time.h>): Update.
18539         * DEPENDENCIES: Update.
18540         * gnulib-tool: Update comment.
18541         * m4/bison.m4 (gl_BISON): Likewise.
18542         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18543
18544 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18545
18546         bootstrap: support ACLOCAL_FLAGS during aclocal
18547         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18548         can add additional -I dir for third-party .m4 files.
18549
18550 2010-09-30  Eric Blake  <eblake@redhat.com>
18551
18552         bootstrap: use glibtoolize on MacOS
18553         * build-aux/bootstrap (check_versions): Convert libtool into
18554         libtoolize.
18555         (tool search): Move libtool check earlier, and look for
18556         glibtoolize for MacOS.
18557         (gnulib_tool_options): Auto-add --libtool when appropriate.
18558         Reported by Justin Clift.
18559
18560         poll: fix typo that broke test on MacOS
18561         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18562         Reported by Justin Clift.
18563
18564         getdate: rename to get_date
18565         Note: getdate.h is not renamed, to minimize client impact.
18566         * modules/getdate: Mark obsolete.  Move old contents...
18567         * modules/get_date: ...to new module name.
18568         * modules/getdate-tests: Move...
18569         * modules/get_date-tests: ...here.
18570         * m4/getdate.m4: Move...
18571         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18572         * lib/getdate.y: Move...
18573         * lib/get_date.y: ...here.
18574         * tests/test-getdate.c: Move...
18575         * tests/test-get_date.c: ...here.
18576         * doc/posix-functions/getdate.texi (getdate): Update name.
18577         * NEWS: Mention the change.
18578
18579 2010-09-29  Bruno Haible  <bruno@clisp.org>
18580
18581         Separate the module 'waitpid' from the module 'sys_wait'.
18582         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18583         present.
18584         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18585         gl_MODULE_INDICATOR_FOR_TESTS.
18586         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18587         * modules/sys_wait (Depends-on): Remove waitpid.
18588         (Makefile.am): Substitute GNULIB_WAITPID.
18589         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18590         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18591         signature only if the 'waitpid' module is present.
18592         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18593         * NEWS: Mention the change.
18594         * modules/grantpt (Depends-on): Add waitpid.
18595         * modules/wait-process (Depends-on): Likewise.
18596
18597 2010-09-29  Bruno Haible  <bruno@clisp.org>
18598
18599         More tests for module 'sys_wait'.
18600         * modules/sys_wait-c++-tests: New file.
18601         * tests/test-sys_wait-c++.cc: New file.
18602         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18603         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18604
18605 2010-09-29  Bruno Haible  <bruno@clisp.org>
18606
18607         New module 'waitpid'.
18608         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18609         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18610         Don't include <process.h>.
18611         (waitpid): Declare only, using modern idiom.
18612         * m4/waitpid.m4: New file.
18613         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18614         * modules/waitpid: New file.
18615         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18616         (Makefile.am): Update.
18617         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18618
18619 2010-09-28  Bruno Haible  <bruno@clisp.org>
18620
18621         poll: Assume ANSI C.
18622         * lib/poll.c (poll): Use an ANSI C declaration.
18623
18624 2010-09-28  Bruno Haible  <bruno@clisp.org>
18625
18626         poll-h: Create poll.h on all platforms.
18627         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18628         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18629         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18630         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18631         (gl_REPLACE_POLL_H): Don't set POLL_H.
18632         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18633         * modules/poll-h (Depends-on): Add include_next.
18634         (Makefile.am): Create poll.h unconditionally. Substitute also
18635         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18636
18637 2010-09-28  Bruno Haible  <bruno@clisp.org>
18638
18639         Tests for module 'poll-h'.
18640         * modules/poll-h-c++-tests: New file.
18641         * tests/test-poll-h-c++.cc: New file.
18642
18643         Tests for module 'poll-h'.
18644         * modules/poll-h-tests: New file.
18645         * tests/test-poll-h.c: New file.
18646
18647 2010-09-28  Bruno Haible  <bruno@clisp.org>
18648
18649         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18650         * modules/poll-h (Depends-on): Add 'extensions'.
18651
18652 2010-09-28  Bruno Haible  <bruno@clisp.org>
18653
18654         New module 'poll-h'.
18655         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18656         (poll): Use modern idiom.
18657         * modules/poll-h: New file.
18658         * modules/poll (Files): Remove lib/poll.in.h.
18659         (Depends-on): Add poll-h.
18660         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18661         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18662         * m4/poll_h.m4: New file.
18663         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18664         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18665         and invoke gl_REPLACE_POLL_H.
18666         * lib/poll.c: Use common idiom.
18667         * tests/test-poll.c: Likewise.
18668         * doc/posix-headers/poll.texi: Mention the poll-h module.
18669         Suggested by Eric Blake.
18670
18671 2010-09-26  Bruno Haible  <bruno@clisp.org>
18672
18673         sys_wait: Implement WSTOPSIG.
18674         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18675         Reported by Simon Josefsson.
18676
18677 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18678
18679         stdlib, sys_wait: Avoid compilation error on mingw.
18680         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18681
18682 2010-09-26  Bruno Haible  <bruno@clisp.org>
18683
18684         stdlib tests: Avoid code duplication.
18685         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18686         * modules/sys_wait-tests (Files): Likewise.
18687         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18688         * tests/test-stdlib.c: Include test-sys_wait.h.
18689         (main): Invoke test_sys_wait_macros.
18690         * tests/test-sys_wait.c: Include test-sys_wait.h.
18691         (main): Invoke test_sys_wait_macros.
18692
18693 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18694
18695         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18696         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18697         sure Windows sockets are working before calling getaddrinfo.
18698         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18699         * doc/gnulib.texi (Windows sockets): Fix typo.
18700
18701 2010-09-25  Bruno Haible  <bruno@clisp.org>
18702
18703         Tests for module 'regex-quote'.
18704         * modules/regex-quote-tests: New file.
18705         * tests/test-regex-quote.c: New file.
18706
18707         New module 'regex-quote'.
18708         * lib/regex-quote.h: New file.
18709         * lib/regex-quote.c: New file.
18710         * modules/regex-quote: New file.
18711         Suggested by Reuben Thomas <rrt@sc3d.org>.
18712
18713 2010-09-24  Bruno Haible  <bruno@clisp.org>
18714
18715         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18716         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18717
18718 2010-09-23  Bruno Haible  <bruno@clisp.org>
18719
18720         setenv: Relax license.
18721         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18722         Blake.
18723         Requested by Eric Blake.
18724
18725 2010-09-22  Bruno Haible  <bruno@clisp.org>
18726
18727         termios: Relax license.
18728         * modules/termios (License): Change to LGPLv2+.
18729         Requested by Eric Blake.
18730
18731 2010-09-22  Bruno Haible  <bruno@clisp.org>
18732
18733         threadlib: Allow the package to change the default to 'no'.
18734         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18735         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18736         Reported by Paul Eggert.
18737
18738 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18739             Bruno Haible  <bruno@clisp.org>
18740
18741         Fix endless loop in mbmemcasecoll.
18742         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18743         byte.
18744         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18745
18746 2010-09-22  Bruno Haible  <bruno@clisp.org>
18747
18748         Tests for module 'memcoll'.
18749         * modules/memcoll-tests: New file.
18750         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18751
18752         memcoll, xmemcoll: Clarify size vs. length.
18753         * modules/memcoll.c (memcoll0): Clarify specification.
18754         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18755         passed to collate_error.
18756
18757 2010-09-22  Bruno Haible  <bruno@clisp.org>
18758
18759         Tests for module 'memcasecmp'.
18760         * modules/memcasecmp-tests: New file.
18761         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18762
18763 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18764
18765         * lib/pthread.in.h: Add split double-inclusion guard, and include
18766         system <pthread.h> if there is one.  Use @@-style as in other
18767         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18768         pthread.h doesn't.
18769         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18770         (pthread_mutexattr_settype, pthread_mutex_trylock):
18771         New static inline functions, if there's no system <pthread.h>.
18772         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18773         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18774         Approximate with mutexes if the system lacks spinlocks, as in
18775         MacOS.
18776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18777         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18778         @@-style.  Check for spinlocks separately.
18779         (gl_PTHREAD_DEFAULTS): New macro.
18780         * modules/pthread: Redo to use a more typical style for in.h files.
18781
18782 2010-09-21  Eric Blake  <eblake@redhat.com>
18783
18784         net_if: enhance tests
18785         * tests/test-net_if.c (main): Move signature checks earlier.
18786         Print failures to stderr.
18787         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18788         Document the bug that we do not yet fix.
18789
18790 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18791
18792         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18793         about gnulib, not GSS.
18794
18795 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18796
18797         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18798         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18799         for Emacs.
18800         * build-aux/pmccabe2html: Make Makefile.am example code more
18801         cut-and-paste friendly.
18802
18803 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18804
18805         * tests/test-net_if.c: New file.
18806         * modules/net_if-tests: New file.
18807
18808 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18809
18810         pthread: add pthread_spin_destroy
18811         * lib/pthread.in.h (pthread_spin_destroy): New function.
18812
18813 2010-09-19  Bruno Haible  <bruno@clisp.org>
18814
18815         gnulib-tool: Fix --help output.
18816         * gnulib-tool (func_usage): Fix help message.
18817         Reported by Reuben Thomas <rrt@sc3d.org>.
18818
18819 2010-09-18  Jim Meyering  <meyering@redhat.com>
18820
18821         maint.mk: avoid unexpanded \n in two diagnostics
18822         * top/maint.mk (sc_prohibit_always_true_header_tests):
18823         Don't use a literal \n in a halt=... assignment.  It would not be
18824         expanded, and the two \n bytes would appear in the diagnostic output
18825         rather than the desired newline.  Use halt=$$(printf ... instead.
18826         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18827
18828 2010-09-18  Bruno Haible  <bruno@clisp.org>
18829
18830         netinet_in: Doc tweak.
18831         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18832         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18833
18834 2010-09-18  Jim Meyering  <meyering@redhat.com>
18835
18836         init.sh: correct an outdated comment
18837         * tests/init.sh (create_exe_shims_):  s/function/alias/
18838
18839         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18840         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18841         a file named "*.exe" is removed between the glob expansion and the
18842         processing of that oddly named file.
18843
18844 2010-09-17  Eric Blake  <eblake@redhat.com>
18845
18846         mirbsd: add some more support
18847         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18848         in BSD family.
18849         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18850         devices as OpenBSD.
18851         * m4/host-os.m4 (mirbsd): Add MirBSD.
18852
18853         tests: fix unportable assumption on sys/wait.h
18854         * tests/test-sys_wait.c (main): Relax test.
18855         * tests/test-stdlib.c (main): Likewise.
18856
18857         init.sh: accomodate directory with no .exes
18858         * tests/init.sh: Accomodate directory containing only scripts.
18859
18860         tests: avoid compiler warning
18861         * tests/test-stdlib.c (main): Use the variable.
18862
18863         fdutimens, fdutimensat: update signature, again
18864         * lib/utimens.h (gl_futimens): Delete, and move signature...
18865         (fdutimens): ...here.
18866         (fdutimensat): Rearrange signature.
18867         (lutimensat): Rename variable for clarity.
18868         * lib/fdutimensat.c (fdutimensat): Update signature.
18869         * lib/utimens.c (fdutimens): Likewise.
18870         (gl_futimens): Delete.
18871         (utimens, lutimens): Update callers.
18872         * lib/futimens.c (futimens): Likewise.
18873         * tests/test-fdutimensat.c: Likewise.
18874         * tests/test-utimens.c: Likewise.
18875         * tests/test-futimens.h: Update comment.
18876         * NEWS: Mention this.
18877         Suggested by Paul Eggert.
18878
18879 2010-09-17  Bruno Haible  <bruno@clisp.org>
18880
18881         Take over the maintenance of some older macros from Autoconf.
18882         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18883         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18884         GNU Autoconf.
18885         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18886         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18887
18888 2010-09-17  Eric Blake  <eblake@redhat.com>
18889
18890         fdutimensat: drop atflag validation
18891         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18892         with valid fd, to close a race scenario where futimens is
18893         unsupported and FILE was replaced by a symlink.
18894         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18895         accordingly.
18896         Suggested by Paul Eggert.
18897
18898 2010-09-16  Bruno Haible  <bruno@clisp.org>
18899
18900         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18901         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18902
18903 2010-09-16  Bruno Haible  <bruno@clisp.org>
18904
18905         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18906         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18907         login_tty exists.
18908         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18909
18910 2010-09-16  Bruno Haible  <bruno@clisp.org>
18911
18912         login_tty: Make the replacement code work on BSD systems.
18913         * lib/login_tty.c: Include <sys/ioctl.h>.
18914         (login_tty): Use ioctl TIOCSCTTY when available.
18915         * modules/login_tty (Depends-on): Add sys_ioctl.
18916         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18917
18918 2010-09-16  Bruno Haible  <bruno@clisp.org>
18919
18920         login_tty: Stricter unit test.
18921         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18922         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18923         and tcgetsid() after login_tty.
18924         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18925
18926 2010-09-16  Bruno Haible  <bruno@clisp.org>
18927
18928         New module 'tcgetsid'.
18929         * lib/tcgetsid.c: New file.
18930         * m4/tcgetsid.m4: New file.
18931         * modules/tcgetsid: New file.
18932         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18933         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18934         GNULIB_TCGETSID, HAVE_TCGETSID.
18935         * lib/termios.in.h: Include <sys/types.h>.
18936         (tcgetsid): New declaration.
18937         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18938         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18939         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18940         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18941
18942 2010-09-16  Bruno Haible  <bruno@clisp.org>
18943
18944         Tests for module 'termios'.
18945         * modules/termios-c++-tests: New file.
18946         * modules/termios-tests: New file.
18947         * tests/test-termios-c++.cc: New file.
18948         * tests/test-termios.c: New file.
18949
18950         New module 'termios'.
18951         * modules/termios: New file.
18952         * lib/termios.in.h: New file.
18953         * m4/termios_h.m4: New file.
18954         * doc/posix-headers/termios.texi: Mention the new module.
18955
18956 2010-09-16  Eric Blake  <eblake@redhat.com>
18957
18958         fdutimensat: add an atflag parameter
18959         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18960         * lib/utimens.h (fdutimensat): Update prototype.
18961         * tests/test-fdutimensat.c: Adjust test to match.
18962         * NEWS: Document the change.
18963         Suggested by Paul Eggert.
18964
18965 2010-09-16  Bruno Haible  <bruno@clisp.org>
18966
18967         Fix typos in comments.
18968         * lib/striconveh.h: Fix typo in comment.
18969         * lib/login_tty.c (login_tty): Likewise.
18970
18971 2010-09-15  Bruno Haible  <bruno@clisp.org>
18972
18973         stdlib: clarify MirBSD WEXITSTATUS bug
18974         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18975         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18976
18977 2010-09-15  Eric Blake  <eblake@redhat.com>
18978
18979         stdlib: work around MirBSD WEXITSTATUS bug
18980         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18981         * modules/stdlib (Depends-on): Add sys_wait.
18982         * tests/test-sys_wait.c (main): Enhance test.
18983         * tests/test-stdlib.c (main): Likewise.
18984         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18985
18986         docs: mention MacOS issue with WEXITSTATUS(constant)
18987         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18988         issue.
18989         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18990
18991         strnlen: add tests
18992         * modules/strnlen-tests: New file.
18993         * tests/test-strnlen.c: Likewise.
18994
18995 2010-09-14  Bruno Haible  <bruno@clisp.org>
18996
18997         unistr/base: Avoid link errors when module 'libunistring' is also used.
18998         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18999         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19000         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19001         Declare also when HAVE_LIBUNISTRING is set.
19002         Reported by Pádraig Brady <P@draigbrady.com>.
19003
19004 2010-09-14  Eric Blake  <eblake@redhat.com>
19005
19006         test-rawmemchr: make more robust
19007         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19008         (Depends-on, configure.ac): Add needed prerequisites to use it.
19009         * modules/memchr-tests (Files, Depends-on, configure.ac):
19010         Likewise, to avoid implicit reliance on memchr module prereqs.
19011         * tests/test-memchr.c (main): Ensure proper masking.
19012         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19013         reads.
19014
19015         memchr: detect glibc Alpha bug
19016         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19017         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19018         Alpha.
19019         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19020         * tests/test-memchr.c (main): Enhance test.
19021         Reported by Nelson H. F. Beebe.
19022
19023 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19024
19025         fts, getcwd, glob: audit for dirfd returning -1
19026         * lib/fts.c (opendir): Remove #define; no longer used.
19027         (opendirat): New arg PDIR_FD.  All callers changed.
19028         (fts_build, _opendir2): Use new opendirat to avoid the need for
19029         dirfd, or for checking whether dirfd returns a negative value.
19030         Don't use opendir; always use openat followed by fdopendir.
19031         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19032         it.
19033         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19034         returns -1 here.
19035         * modules/fts (Depends-on): Remove dirfd.
19036         * modules/getcwd (Depends-on): Likewise.
19037
19038 2010-09-13  Eric Blake  <eblake@redhat.com>
19039
19040         float: fix broken MirBSD header
19041         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19042         * doc/posix-headers/float.texi (float.h): Document it.
19043
19044 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19045
19046         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19047         * lib/fts.c (opendirat): New arg extra_flags.
19048         (__opendir2): Use it to avoid following symlinks when opening
19049         a directory, if symlinks are not supposed to be followed.  See
19050         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19051
19052         fdopendir: preserve argument fd before returning
19053         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19054         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19055         (fdopendir): Use them, arranging for FD to be open to the same
19056         directory that it was when it started.  (It might be temporarily
19057         closed while fdopendir is running, so this not thread- or
19058         signal-safe.)  Be careful to do the right thing even when file
19059         descriptors are scarce and dup fails with errno == EMFILE.  See
19060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19061
19062 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19063
19064         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19065         * NEWS: Document change.
19066         * m4/regex.m4: Disable test for regoff_t size.
19067
19068 2010-09-13  Jim Meyering  <meyering@redhat.com>
19069
19070         fts: don't operate on an invalid file descriptor after failed dup
19071         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19072         negative file descriptor.
19073
19074 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19075
19076         savedir: add streamsavedir, deprecate fdsavedir
19077         * NEWS: Mention deprecation of fdsavedir.
19078         * lib/savedir.c (streamsavedir): New extern function, whose name
19079         ends in "savedir" to be consistent with the others.  This differs
19080         from savedirstream in that it doesn't close its argument.  The
19081         next version of GNU tar will use this instead of fdsavedir, to
19082         avoid some race conditions and conserve file descriptors.
19083         (savedirstream): Reimplement as a wrapper around streamsavedir.
19084         (fdsavedir): Add a comment deprecating this function.  As far as
19085         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19086         * lib/savedir.h (streamsavedir): New decl.
19087         (fdsavedir): Add a comment deprecating this.
19088
19089 2010-09-10  Bruno Haible  <bruno@clisp.org>
19090
19091         langinfo: Fix last commit.
19092         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19093         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19095
19096 2010-09-10  Bruno Haible  <bruno@clisp.org>
19097
19098         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19099         * lib/progreloc.c (O_EXEC): Define fallback.
19100
19101 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19102
19103         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19104         * NEWS: Document recent changes to fcntl-h.
19105         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19106         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19107         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19108         Similarly for O_SEARCH; this last was already true, but not documented.
19109         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19110         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19111         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19112         Likewise.
19113         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19114         is zero, not whether it is defined.
19115         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19116         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19117         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19118
19119 2010-09-10  Bruno Haible  <bruno@clisp.org>
19120
19121         langinfo, nl_langinfo: Fix for IRIX 5.3.
19122         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19123         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19124         HAVE_LANGINFO_YESEXPR.
19125         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19126         HAVE_LANGINFO_YESEXPR.
19127         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19128         HAVE_LANGINFO_T_FMT_AMPM is 0.
19129         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19130         HAVE_LANGINFO_YESEXPR is 0.
19131         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19132         NOEXPR.
19133         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19134         * doc/posix-functions/nl_langinfo.texi: Likewise.
19135         Reported by Eric Blake.
19136
19137 2010-09-10  Bruno Haible  <bruno@clisp.org>
19138
19139         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19140         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19141         on FreeBSD 8.0 and OpenBSD 4.6.
19142         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19143         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19144         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19145         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19146         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19147         ac_includes_default.
19148         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19149
19150 2010-09-09  Eric Blake  <eblake@redhat.com>
19151
19152         strsignal: work around NetBSD bug
19153         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19154         * lib/string.in.h (includes): Likewise.
19155         * doc/posix-functions/strsignal.texi (strsignal): Document the
19156         bug.
19157         Reported by Nelson H. F. Beebe.
19158
19159         gnulib-tool: work with NetBSD /bin/sh
19160         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19161         (func_get_description, func_get_comment, func_get_status)
19162         (func_get_notice, func_get_applicability, func_get_filelist)
19163         (func_get_dependencies, func_get_autoconf_early_snippet)
19164         (func_get_autoconf_snippet, func_get_automake_snippet)
19165         (func_get_include_directive, func_get_link_directive)
19166         (func_get_license, func_get_maintainer, func_import): Avoid
19167         shell syntax errors from parsing syntax extensions.
19168
19169 2010-09-09  Bruno Haible  <bruno@clisp.org>
19170
19171         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19172         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19173         a reliable way to determine whether the 'alias' command works.
19174
19175 2010-09-08  Jim Meyering  <meyering@redhat.com>
19176
19177         init.sh: penalize a set-x-impaired shell; don't disqualify it
19178         * tests/init.sh: Too many shells corrupt application stderr when
19179         you set -x, so we can't afford to disqualify them, since at least
19180         on Irix-6.5, that would disqualify all bourne shells.
19181         Instead, use a two-pass approach.
19182         On the first pass, try to find a shell that meets the stricter
19183         condition that set -x does not corrupt stderr.
19184         If no shell meets the stricter condition, retest each candidate
19185         shell, but without that extra condition.  Finally, when
19186         VERBOSE=yes is requested and set -x might cause trouble, simply
19187         issue a warning and refrain from enabling debug output.
19188
19189 2010-09-08  Eric Blake  <eblake@redhat.com>
19190
19191         unsetenv: fix OpenBSD bug
19192         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19193         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19194         documentation.
19195         Reported by Jim Meyering.
19196
19197         strtod: work around IRIX 6.5 bug
19198         * lib/strtod.c (strtod): Reparse number on shorter string if
19199         exponent parse was invalid.
19200         * tests/test-strtod.c (main): Add check for "0x1p 2".
19201         Reported by Tom G. Christensen.
19202
19203         getopt: optimize previous patch
19204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19205         empty variable.  Speed up awk script.
19206         Reported by Paolo Bonzini.
19207
19208 2010-09-08  Jim Meyering  <meyering@redhat.com>
19209
19210         test.sh: disqualify shells for which set -x corrupts stderr
19211         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19212         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19213         appear in stderr output.  For example, this command:
19214             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19215         prints "P=1" on those two systems:
19216
19217 2010-09-08  Bruno Haible  <bruno@clisp.org>
19218
19219         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19220         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19221         commands, because some shells ignore redirections when there is an
19222         error in the command lookup.
19223         Reported by Eric Blake.
19224
19225 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19226
19227         * lib/regex.h: Fix a mention of `regex_compile' (should be
19228         `re_compile_pattern').
19229         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19230         (re_set_registers): Correct name of parameter in comment.
19231
19232         * doc/regex.texi: Add documentation for missing syntax flags.
19233         Remove commented-out documentation of defunct syntax option
19234         RE_NO_EMPTY_ALTS.
19235         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19236         Add documentation of re_set_registers.
19237         Document trick to re-use a pattern buffer by setting fastmap manually.
19238         Update documentation of struct re_pattern_buffer per public members.
19239         Uncomment documentation of equivalence class operators and
19240         collating symbol operators, since they are now implemented,
19241         Explain leftmost-longest matching in relation to alternatives.
19242         Tidy documentation of substring matching.
19243         Remove POSIX documentation, which is done better in
19244         glibc, and refer the reader there. Keep BSD API documentation, as
19245         that is not readily available elsewhere.
19246
19247 2010-09-07  Eric Blake  <eblake@redhat.com>
19248
19249         getopt: handle POSIXLY_CORRECT set but not exported
19250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19251         export state of POSIXLY_CORRECT, due to bash set -o posix.
19252         Reported by Dustin J. Mitchell.
19253
19254 2010-09-05  Bruno Haible  <bruno@clisp.org>
19255
19256         gnulib-tool: Highlight the changed options.
19257         * gnulib-tool (func_usage): Display the --import, --add-import,
19258         --remove-import explanations in bold font.
19259
19260 2010-09-06  Karl Berry  <karl@gnu.org>
19261
19262         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19263
19264 2010-09-05  Bruno Haible  <bruno@clisp.org>
19265
19266         uniwidth/width: Update comment.
19267         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19268         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19269
19270 2010-09-05  Bruno Haible  <bruno@clisp.org>
19271
19272         isinf, isnan: Relax license.
19273         * modules/isinf (License): Change from GPL to LGPL, with consent from
19274         Ben Pfaff.
19275         * modules/isnan (License): Likewise.
19276         Requested by Ludovic Courtès.
19277
19278 2010-09-04  Bruno Haible  <bruno@clisp.org>
19279
19280         gnulib-tool: Help migration from --import to --add-import or --update.
19281         * gnulib-tool: Emit a verbose error message when --import is used
19282         without any module name.
19283
19284 2010-09-04  Bruno Haible  <bruno@clisp.org>
19285
19286         Update doc about gnulib-tool.
19287         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19288         'gnulib-tool --update' in more detail.
19289         Reported by Eric Blake.
19290
19291 2010-09-04  Bruno Haible  <bruno@clisp.org>
19292
19293         gnulib-tool: Change --import. New options --add/remove-import.
19294         * gnulib-tool: New options --add-import, --remove-import.
19295         (func_usage): Document them.
19296         (have_associative): Define always.
19297         (func_import): In import mode, don't merge the specified settings with
19298         the cached settings. Implement remove-import mode.
19299         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19300         Explain when to use them versus --import.
19301         (Simple update): Use --add-import instead of --import.
19302         * NEWS: Mention the change.
19303
19304 2010-09-04  Bruno Haible  <bruno@clisp.org>
19305
19306         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19307         separate gnulib.mk.
19308
19309 2010-09-04  Bruno Haible  <bruno@clisp.org>
19310
19311         gnulib-tool: Don't talk about CVS any more.
19312         * gnulib-tool (func_usage, func_import): Write "version control"
19313         instead of CVS.
19314
19315 2010-09-04  Jim Meyering  <meyering@redhat.com>
19316
19317         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19318         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19319         false positives (whose names may be ill-chosen) when searching
19320         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19321         would cause a false-positive.
19322
19323         avoid coreutils "make distcheck" failure
19324         Coreutils tests with an absolute build directory name that contains
19325         a space.  Not quoting this directory name caused a failure.
19326         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19327         * tests/test-vc-list-files-cvs.sh: Likewise.
19328
19329 2010-09-04  Bruno Haible  <bruno@clisp.org>
19330
19331         gnulib-tool: Avoid error when run in a package without Makefile.am.
19332         * gnulib-tool: When collecting the m4dirs in a package that does not
19333         have a Makefile.am, eliminate those directories that contain no
19334         gnulib-cache.m4. Fix expression that counts these directories.
19335
19336 2010-09-04  Bruno Haible  <bruno@clisp.org>
19337
19338         update-copyright test: Improve output when perl is missing or too old.
19339         * tests/test-update-copyright.sh: Move test of Perl version down after
19340         the test whether Perl exists. Provide an explanation relating Perl's
19341         error message to Automake's SKIP: message.
19342
19343 2010-09-04  Bruno Haible  <bruno@clisp.org>
19344
19345         Don't augment PATH in TESTS_ENVIRONMENT.
19346         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19347         set abs_aux_dir instead of augmenting PATH.
19348         * modules/vc-list-files-tests (Makefile.am): Likewise.
19349         * tests/test-update-copyright.sh: Augment PATH here.
19350         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19351         path_prepend_.
19352         * tests/test-vc-list-files-git.sh: Likewise.
19353
19354 2010-09-04  Jim Meyering  <meyering@redhat.com>
19355
19356         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19357         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19358
19359 2010-09-04  Bruno Haible  <bruno@clisp.org>
19360
19361         strdup: Fix compilation error in C++ mode.
19362         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19363         the macro.
19364
19365 2010-09-04  Bruno Haible  <bruno@clisp.org>
19366
19367         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19368         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19369         macro into a function.
19370         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19371
19372 2010-09-04  Bruno Haible  <bruno@clisp.org>
19373
19374         Set PATH_SEPARATOR the same way autoconf does.
19375         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19376         the value of PATH_SEPARATOR the same way autoconf-generated configure
19377         scripts do.
19378         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19379         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19380
19381 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19382
19383         Set PATH_SEPARATOR the same way autoconf does.
19384         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19385         the same way autoconf-generated configure scripts do.
19386         * posix-modules: Likewise.
19387
19388 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19389
19390         hash: fix safe_hasher const typo
19391         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19392         const; otherwise, there is a type error later.
19393
19394 2010-09-02  Jim Meyering  <meyering@redhat.com>
19395
19396         test-update-copyright.sh: require perl 5.8.0
19397         * tests/test-update-copyright.sh: Require 5.8.0,
19398         which Tom G. Christensen has confirmed is adequate,
19399         while 5.6.1 is not.
19400
19401 2010-09-02  Eric Blake  <eblake@redhat.com>
19402
19403         tests: init.sh improvements for re-exec'ing with zsh
19404         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19405         -vx through shell re-exec.
19406         Reported by Tom G. Christensen.
19407
19408         wctype: fix typo in previous commit
19409         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19410         Reported by Ludovic Courtès.
19411
19412 2010-09-02  Jim Meyering  <meyering@redhat.com>
19413
19414         test-update-copyright.sh: skip test if Perl is too old
19415         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19416         Reported by Tom G. Christensen.
19417
19418 2010-09-02  Bruno Haible  <bruno@clisp.org>
19419
19420         wctype: Avoid compilation error on IRIX 6.5.30.
19421         * lib/wctype.in.h (iswblank): Declare with a replacement if
19422         REPLACE_ISWBLANK is set.
19423         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19424         declared. Set REPLACE_ISWBLANK.
19425         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19426         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19427         * doc/posix-headers/wctype.texi: Likewise.
19428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19429
19430 2010-09-01  Bruno Haible  <bruno@clisp.org>
19431
19432         New module 'socketlib'.
19433         * modules/socketlib: New file.
19434         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19435         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19436         * modules/sockets (Depends-on): Add socketlib.
19437         Suggested by Sam Steingold <sds@gnu.org>.
19438
19439 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19440
19441         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19442
19443         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19444         when one needs search access to a directory but not read access.
19445         On systems where it is available, it works in some cases where
19446         O_RDONLY does not, namely on directories that are searchable but
19447         not readable, and which need only to be searchable.  If O_SEARCH
19448         is not available, fall back to the traditional method of using
19449         O_RDONLY.
19450
19451         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19452         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19453         when opening a directory that needs only to be searchable.
19454         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19455         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19456         * lib/openat-proc.c (openat_proc_name): Likewise.
19457         * lib/openat.c (openat_needs_fchdir): Likewise.
19458         * lib/save-cwd.c (save_cwd): Likewise.
19459         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19460
19461 2010-08-28  Bruno Haible  <bruno@clisp.org>
19462
19463         New module 'host-cpu-c-abi'.
19464         * modules/host-cpu-c-abi: New file.
19465         * m4/host-cpu-c-abi.m4: New file, based on part of
19466         clisp/src/m4/general.m4.
19467         Requested by Sam Steingold <sds@gnu.org>.
19468
19469 2010-08-31  Eric Blake  <eblake@redhat.com>
19470         and Jim Meyering  <meyering@redhat.com>
19471
19472         hash: factor, and guard against misbehaving hasher function
19473         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19474         of table->hasher's return value.  Also protect against a hash value
19475         so large that adding it to table->bucket results in a NULL pointer.
19476         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19477         Use it in place of open-coded check-and-abort.
19478
19479 2010-08-30  Bruno Haible  <bruno@clisp.org>
19480
19481         hash: silence spurious clang warning
19482         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19483         Reported by Eric Blake.
19484
19485 2010-08-30  Eric Blake  <eblake@redhat.com>
19486
19487         strstr, memmem, strcasestr: avoid leaked shell message
19488         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19489         FreeBSD.
19490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19492
19493         tests: silence clang warning
19494         * tests/test-malloca.c (do_allocation): Avoid dead store.
19495
19496 2010-08-29  Bruno Haible  <bruno@clisp.org>
19497
19498         gettext: Fix recent mistake.
19499         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19500
19501 2010-08-29  Bruno Haible  <bruno@clisp.org>
19502
19503         selinux-h: Offer a --without-selinux option.
19504         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19505         --without-selinux was specified, skip all tests and define
19506         HAVE_SELINUX_SELINUX_H to 0.
19507         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19508         set LIB_SELINUX to empty.
19509         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19510         gl_LIBSELINUX. If --without-selinux was specified, replace
19511         selinux/context.h.
19512         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19513
19514 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19515             Bruno Haible  <bruno@clisp.org>
19516
19517         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19518         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19519         of HAVE_REALLOC.
19520         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19521         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19522         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19523         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19524
19525 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19526             Bruno Haible  <bruno@clisp.org>
19527
19528         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19529         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19530         HAVE_CALLOC.
19531         * lib/xmalloc.c: Update accordingly.
19532         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19533         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19534         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19535
19536 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19537             Bruno Haible  <bruno@clisp.org>
19538
19539         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19540         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19541         HAVE_MALLOC.
19542         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19543         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19544         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19545
19546 2010-08-29  Bruno Haible  <bruno@clisp.org>
19547
19548         Update modules list.
19549         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19550         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19551         (String handling <string.h>): Add astrxfrm.
19552         (File system functions): Add readlinkat.
19553
19554 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19555
19556         Tests for module 'realloc-gnu'.
19557         * modules/realloc-gnu-tests: New file.
19558         * tests/test-realloc-gnu.c: New file.
19559
19560         Tests for module 'calloc-gnu'.
19561         * modules/calloc-gnu-tests: New file.
19562         * tests/test-calloc-gnu.c: New file.
19563
19564         Tests for module 'malloc-gnu'.
19565         * modules/malloc-gnu-tests: New file.
19566         * tests/test-malloc-gnu.c: New file.
19567
19568 2010-08-28  Bruno Haible  <bruno@clisp.org>
19569
19570         Rename module 'realloc' -> 'realloc-gnu'.
19571         * modules/realloc-gnu: New file, copied from modules/realloc.
19572         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19573         obsolete.
19574         * modules/mgetgroups (Depends-on): Update.
19575         * doc/posix-functions/realloc.texi: Update.
19576         * NEWS: Mention the change.
19577
19578         Rename module 'calloc' -> 'calloc-gnu'.
19579         * modules/calloc-gnu: New file, copied from modules/calloc.
19580         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19581         obsolete.
19582         * doc/posix-functions/calloc.texi: Update.
19583         * NEWS: Mention the change.
19584
19585         Rename module 'malloc' -> 'malloc-gnu'.
19586         * modules/malloc-gnu: New file, copied from modules/malloc.
19587         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19588         obsolete.
19589         * modules/argp (Depends-on): Update.
19590         * modules/regex (Depends-on): Update.
19591         * doc/posix-functions/malloc.texi: Update.
19592         * NEWS: Mention the change.
19593
19594 2010-08-28  Eric Blake  <eblake@redhat.com>
19595
19596         pread, pwrite: add missing dependency
19597         * modules/pread (Depends-on): Add extensions.
19598         * modules/pwrite (Depends-on): Likewise.
19599
19600 2010-08-28  Bruno Haible  <bruno@clisp.org>
19601
19602         unistr/u*-strchr: Fix tests dependencies.
19603         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19604         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19605         Reported by Ian Beckwith <ianb@erislabs.net>.
19606
19607 2010-08-28  Bruno Haible  <bruno@clisp.org>
19608
19609         read-file: Don't occupy too much unused memory.
19610         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19611
19612 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19613             Eric Blake  <eblake@redhat.com>
19614             Bruno Haible  <bruno@clisp.org>
19615
19616         read-file: Avoid memory reallocations with regular files.
19617         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19618         (fread_file): With regular files, use the remaining length as the
19619         initial buffer size.  Check against overflow.
19620         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19621         sys_stat.
19622
19623 2010-08-28  Bruno Haible  <bruno@clisp.org>
19624
19625         ftello: Relax license.
19626         * modules/ftello (License): Relax to LGPLv2+.
19627         Reported by Eric Blake.
19628
19629 2010-08-28  Bruno Haible  <bruno@clisp.org>
19630
19631         Avoid relocwrapper link errors due to gnulib replacement functions.
19632         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19633         function.
19634         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19635
19636 2010-08-28  Bruno Haible  <bruno@clisp.org>
19637
19638         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19639         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19640         defined.
19641         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19642         Suggested by Eric Blake.
19643
19644 2010-08-28  Bruno Haible  <bruno@clisp.org>
19645
19646         sys_socket, netdb: Ensure socklen_t gets defined.
19647         * modules/sys_socket (Depends-on): Add socklen.
19648         * modules/netdb (Depends-on): Likewise.
19649         * modules/getaddrinfo (Depends-on): Remove socklen.
19650         * modules/getsockopt (Depends-on): Likewise.
19651         * modules/setsockopt (Depends-on): Likewise.
19652         * tests/test-sys_socket.c: Check that socklen_t is defined.
19653         * tests/test-netdb.c: Likewise.
19654         * m4/socklen.m4: Update comments.
19655         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19656
19657 2010-08-27  Eric Blake  <eblake@redhat.com>
19658
19659         login_tty: add missing dependency
19660         * modules/login_tty (Depends-on): Add pty.
19661
19662 2010-08-26  Eric Blake  <eblake@redhat.com>
19663
19664         lib-symbol-versions: fix m4 quoting
19665         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19666         format for AC_LINK_IFELSE.
19667
19668         glob: fix compile test
19669         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19670
19671         btowc: fix missing file
19672         * modules/btowc (Files): Also ship locale-fr.m4.
19673
19674         lseek: fix link test
19675         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19676         AC_LINK_IFELSE.
19677
19678         include_next: silence autoconf 2.68 warning
19679         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19680         AC_COMPILE_IFELSE as special.
19681         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19682         autoconf < 2.68.
19683
19684         acl: fix compilation test
19685         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19686         AC_COMPILE_IFELSE.
19687
19688 2010-08-26  Bruno Haible  <bruno@clisp.org>
19689
19690         Modernize AC_TRY_RUN invocations.
19691         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19692         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19693         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19694         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19695         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19696         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19697         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19698         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19699         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19700         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19701         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19702         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19703         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19705         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19706         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19707         gl_MBRLEN_NUL_RETVAL): Likewise.
19708         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19709         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19710         Likewise.
19711         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19712         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19713         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19714         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19715         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19716         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19717         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19718         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19719         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19720         Likewise.
19721         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19722         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19724         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19725         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19726         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19728         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19729         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19731
19732 2010-08-26  Bruno Haible  <bruno@clisp.org>
19733
19734         Modernize AC_TRY_LINK invocations.
19735         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19736         AC_TRY_LINK.
19737         * m4/argp.m4 (gl_ARGP): Likewise.
19738         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19739         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19740         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19741         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19742         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19743         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19744         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19745         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19746         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19747         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19748         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19749         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19750         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19751         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19752         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19753         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19754         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19755         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19756         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19757         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19758         Likewise.
19759         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19760         Likewise.
19761         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19762         Likewise.
19763         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19765         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19766         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19767         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19768         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19769         * m4/servent.m4 (gl_SERVENT): Likewise.
19770         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19771         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19772         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19773         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19774         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19775         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19776         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19777         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19778         * modules/tsearch-tests (configure.ac): Likewise.
19779
19780 2010-08-26  Bruno Haible  <bruno@clisp.org>
19781
19782         Modernize AC_TRY_COMPILE invocations.
19783         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19784         AC_TRY_COMPILE.
19785         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19786         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19787         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19788         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19789         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19790         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19791         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19792         * m4/lock.m4 (gl_LOCK): Likewise.
19793         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19794         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19795         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19796         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19797         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19798         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19799         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19800         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19801         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19802         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19803         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19804         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19805         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19806         extraneous semicolon.
19807
19808 2010-08-26  Jim Meyering  <meyering@redhat.com>
19809
19810         stat-time: relax license LGPL
19811         * modules/stat-time (License): Change from GPL to LGPL,
19812         with consent from all contributors, for use in libguile.
19813         Requested by Ludovic Courtès.
19814
19815 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19816
19817         poll: return immediately on POLLHUP.
19818         * lib/poll.c (poll): Always set timeout before wait_timeout is
19819         computed.
19820
19821 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19822
19823         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19824         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19825         rmdir ("dir/.//"), unlinkat.
19826
19827 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19828
19829         stdbool: avoid spurious failure with modern xlc
19830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19831
19832 2010-08-24  Bruno Haible  <bruno@clisp.org>
19833
19834         getloadavg: simplify code
19835         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19836         gl_have_func. Update comments.
19837
19838 2010-08-24  Eric Blake  <eblake@redhat.com>
19839
19840         getloadavg: don't define SVR4 on cygwin
19841         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19842         only define SVR4 when -lkvm is required.
19843         Reported by Yaakov Selkowitz.
19844
19845 2010-08-24  Bruno Haible  <bruno@clisp.org>
19846
19847         priv-set: fix comment
19848         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19849
19850 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19851
19852         priv-set: fix comments
19853         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19854         to match code, as suggested by David Bartley in:
19855         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19856
19857 2010-08-23  Eric Blake  <eblake@redhat.com>
19858
19859         stdbool: avoid rejecting clang
19860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19861         * tests/test-stdbool.c: Enable more tests if using the system
19862         <stdbool.h> instead of the gnulib replacement.
19863         (main): Move xlc bug test to a runtime test for all compilers.
19864         Reported by Anders Kaseorg.
19865
19866         argz: fix shell quoting issue
19867         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19868         Reported by Charles Wilson.
19869
19870 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19871             Erik Faye-Lund <kusmabite@gmail.com>
19872
19873         poll, select: handle ERROR_BROKEN_PIPE.
19874         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19875         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19876         * lib/select.c (win32_compute_revents): Do not mark a pipe
19877         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19878
19879 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19880
19881         fts: allow compilation with C++
19882         * lib/fts_.h: Specify extern "C" linkage with C++.
19883
19884 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19885
19886         Fix gnulib-tool sed script de-commentation for AIX sed.
19887         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19888         sed.
19889
19890 2010-08-17  Eric Blake  <eblake@redhat.com>
19891
19892         test-stddef: test for (some) offsetof bugs
19893         * tests/test-stddef.c: Enhance test to ensure correct type of
19894         offsetof.
19895         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19896         that we are not fixing at this time.
19897
19898 2010-08-15  Bruno Haible  <bruno@clisp.org>
19899
19900         stpncpy: Allow stpncpy to be defined as a macro.
19901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19902         if it's already correctly declared.
19903         * lib/string.in.h (stpncpy): Undefine before redefining.
19904         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19905
19906 2010-08-14  Bruno Haible  <bruno@clisp.org>
19907
19908         Rename module 'memxfrm' to 'amemxfrm'.
19909         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19910         (amemxfrm): Renamed from memxfrm.
19911         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19912         (amemxfrm): Renamed from memxfrm.
19913         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19914         * NEWS: Mention the change.
19915         * MODULES.html.sh (String handling <string.h>): Update.
19916         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19917         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19918         * lib/unicase/u16-casexfrm.c: Likewise.
19919         * lib/unicase/u32-casexfrm.c: Likewise.
19920         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19921         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19922         * lib/uninorm/u16-normxfrm.c: Likewise.
19923         * lib/uninorm/u32-normxfrm.c: Likewise.
19924         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19925         memxfrm.
19926         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19927         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19928         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19929         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19930         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19931         Suggested by Paul Eggert.
19932
19933 2010-08-14  Bruno Haible  <bruno@clisp.org>
19934
19935         Tests for module 'astrxfrm'.
19936         * modules/astrxfrm-tests: New file.
19937         * tests/test-astrxfrm.c: New file.
19938
19939         New module 'astrxfrm'.
19940         * lib/astrxfrm.h: New file.
19941         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19942         * modules/astrxfrm: New file.
19943
19944 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19945
19946         regex: Tweak doc.
19947         * doc/regex.texi (Overview): Don't mention regex.c.
19948         (GNU Regular Expression Compiling): Likewise.
19949         (Match-end-of-line Operator): Mention 'not_eol'.
19950
19951 2010-08-14  Brian Gough  <bjg@gnu.org>
19952             Bruno Haible  <bruno@clisp.org>
19953
19954         git-merge-changelog: add doc relating to use with bzr and hg.
19955         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19956
19957 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19958
19959         pthread: fix pthread.h creation for srcdir != builddir
19960         * modules/pthread (Makefile.am): Fix the rule to work also in a
19961         non-srcdir build.
19962
19963 2010-08-13  Karl Berry  <karl@gnu.org>
19964
19965         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19966         * doc/posix-*/*: force line break before @url of POSIX
19967         specifications.
19968         Suggested by Werner Lemberg.
19969
19970 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19971
19972         strtod: fix const diagnostic
19973         * lib/strtod.c (strtod): Don't assign const char * to char *,
19974         as this elicits a warning from GCC when warnings are enabled.
19975
19976 2010-08-10  Pádraig Brady <P@draigbrady.com>
19977         and Eric Blake  <eblake@redhat.com>
19978
19979         copy-acl: ignore ENOTSUP on HP-UX
19980         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19981         so that it is available for HP-UX.
19982         * lib/copy-acl.c (qcopy_acl): Use it.
19983         Reported by Patrick M. Callahan.
19984
19985 2010-08-10  Eric Blake  <eblake@redhat.com>
19986
19987         open, chown: relax license
19988         * modules/open (License): Change to LGPLv2+, with consent by all
19989         authors, for use in augeas.
19990         * modules/chown (License): Likewise.
19991         * modules/lchown (Likewise): Likewise.
19992         Requested by Adam Stokes.
19993
19994 2010-08-09  Karl Berry  <karl@gnu.org>
19995
19996         * build-aux/ar-lib: new file, import from Automake.
19997         * config/srclist.txt: autocheck for updates.
19998
19999 2010-08-09  Eric Blake  <eblake@redhat.com>
20000
20001         readlinkat: adjust client modules
20002         * modules/areadlinkat (Depends-on): Use readlinkat, not
20003         symlinkat.
20004         * modules/areadlinkat-with-size (Depends-on): Likewise.
20005
20006         mknod: be more vocal about danger of running tests as root
20007         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20008         root, since that is just asking for problems.
20009         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20010
20011         readlinkat: split into its own module
20012         * modules/symlinkat: Split readlinkat...
20013         * modules/readlinkat: ...into separate module.
20014         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20015         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20016         * lib/symlinkat.c (readlinkat): Move...
20017         * lib/readlinkat.c: ...into new file.
20018         * modules/symlinkat-tests: Split readlinkat test...
20019         * modules/readlinkat-tests: ...into separate module.
20020         * tests/test-symlinkat.c: Split...
20021         * tests/test-readlinkat.c: ...into new file.
20022         * NEWS: Document the split.
20023         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20024         * lib/unistd.in.h (readlinkat): Likewise.
20025         Suggested by Bruno Haible.
20026
20027 2010-08-08  Bruno Haible  <bruno@clisp.org>
20028
20029         memxfrm: Speed up.
20030         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20031         that usually only one call to strxfrm is necessary for each string
20032         part.
20033         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20034
20035 2010-08-07  Karl Berry  <karl@gnu.org>
20036
20037         * doc/posix-headers/limits.texi,
20038         * doc/posix-functions/malloc.texi,
20039         * doc/posix-functions/strsignal.texi: missing @item.
20040         * doc/ld-version-script.texi: spurious leading i.
20041         * doc/regex.texi (Interval Operators): no commas inside @var.
20042
20043 2010-08-01  Bruno Haible  <bruno@clisp.org>
20044
20045         Integrate the regex documentation.
20046         * doc/gnulib.texi: Define 'cn' index.
20047         (Regular expressions): New a chapter that includes regex.texi and
20048         regexprops-generic.texi.
20049         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20050         syntax.
20051
20052         Whitespace cleanup.
20053         * doc/regex.texi: Remove trailing spaces.
20054
20055         Add regex documentation.
20056         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20057         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20058         Written by Kathy A. Hargreaves and Karl Berry.
20059
20060 2010-08-01  Bruno Haible  <bruno@clisp.org>
20061
20062         link: Update documentation.
20063         * doc/posix-functions/link.texi: Update regarding Solaris.
20064
20065 2010-07-31  Bruno Haible  <bruno@clisp.org>
20066
20067         Update modules list.
20068         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20069         (String handling <string.h>): Add memcmp2, memxfrm.
20070         (Container data structures): Add xlist, xsublist, xoset.
20071         (Core language properties): Add alignof, unused-parameter.
20072         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20073         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20074         (Unibyte characters <ctype.h>): New section.
20075         (String handling <string.h>): New section.
20076         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20077         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20078         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20079         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20080         tan, tanh, tanl, y0, y1, yn.
20081         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20082         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20083         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20084         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20085         unlockpt, vdprintf, vdprintf-posix.
20086         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20087         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20088         xconcat-filename.
20089         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20090         getdtablesize, pipe2, pipe2-safer.
20091         (Security): New section.
20092         (Networking functions): Add accept4.
20093         (Signal handling): Add sigpipe.
20094         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20095         mbmemcasecoll.
20096         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20097         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20098         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20099         pipe-filter-ii.
20100         (Misc): Add argp-version-etc, login_tty, parse-duration.
20101
20102 2010-07-31  Bruno Haible  <bruno@clisp.org>
20103
20104         Improve doc in MODULES.html.
20105         * modules/linkat (Description): Add the word "function".
20106         * modules/mkfifo (Description): Likewise.
20107         * modules/mknod (Description): Likewise.
20108         * modules/remove (Description): Likewise.
20109         * modules/renameat (Description): Likewise.
20110         * modules/stat (Description): Likewise.
20111         * modules/symlink (Description): Likewise.
20112         * modules/unlink (Description): Likewise.
20113
20114 2010-07-31  Bruno Haible  <bruno@clisp.org>
20115
20116         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20117         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20118         option --enable/disable-c++ instead of --enable/disable-cxx.
20119         * NEWS: Mention the change.
20120
20121 2010-07-31  Bruno Haible  <bruno@clisp.org>
20122
20123         readlink, areadlink: Relax test a bit.
20124         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20125         alternative to ENOTDIR.
20126         * tests/test-areadlink.h (test_areadlink): Likewise.
20127         Reported by Rainer Tammer.
20128
20129 2010-07-31  Bruno Haible  <bruno@clisp.org>
20130
20131         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20132         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20133         character, perform the search using U_STRCHR.
20134         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20135         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20136         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20137         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20138         Suggested by Paolo Bonzini.
20139
20140 2010-07-31  Bruno Haible  <bruno@clisp.org>
20141
20142         unistr/u*-strstr: Fix dependencies.
20143         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20144         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20145         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20146
20147 2010-07-31  Bruno Haible  <bruno@clisp.org>
20148
20149         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20150         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20151         the beginning of the loop.
20152         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20153         cases in 'switch' statement.
20154
20155         unistr/u8-strchr: Fix several bugs.
20156         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20157         the string. When not found, return NULL, not a pointer near the end.
20158
20159         More tests for unistr/u8-strchr.
20160         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20161         that the function does not read past the first occurrence of the byte
20162         being searched.
20163         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20164         * tests/unistr/test-u16-strchr.c (main): New function.
20165         * tests/unistr/test-u32-strchr.c (main): New function.
20166
20167 2010-07-31  Bruno Haible  <bruno@clisp.org>
20168
20169         posix-modules: Ignore backup files of documentation files.
20170         * posix-modules: grep only through files named *.texi.
20171
20172 2010-07-31  Bruno Haible  <bruno@clisp.org>
20173
20174         symlinkat: Fix documentation.
20175         * doc/posix-functions/readlinkat.texi: Fix module name.
20176
20177 2010-07-31  Bruno Haible  <bruno@clisp.org>
20178
20179         fchownat: Replace also when chown has the trailing slash bug.
20180         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20181         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20182         introduced on 2010-04-10.
20183         Reported by Rainer Tammer.
20184
20185 2010-07-31  Bruno Haible  <bruno@clisp.org>
20186
20187         linkat: Work around AIX 7.1 bug.
20188         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20189         whether linkat handles trailing slash correctly. If not, replace linkat
20190         and define LINKAT_TRAILING_SLASH_BUG.
20191         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20192         check whether (fd1,file1) points to a directory if file1 or file2 ends
20193         in a slash. Code taken from lib/link.c.
20194         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20195         Reported by Rainer Tammer.
20196
20197 2010-07-31  Bruno Haible  <bruno@clisp.org>
20198
20199         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20200         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20201         This disables an xlc optimization that was causing wrong test results.
20202         Reported by Rainer Tammer.
20203
20204 2010-07-31  Bruno Haible  <bruno@clisp.org>
20205
20206         iconv: Work around AIX 6.1..7.1 bug.
20207         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20208         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20209         cross-compiling, guess no on all versions of AIX.
20210         Reported by Rainer Tammer.
20211
20212 2010-07-31  Bruno Haible  <bruno@clisp.org>
20213
20214         readlink: Relax test a bit.
20215         * tests/test-readlink.h (test_readlink): Allow different errno value
20216         when readlink is called with a file name that ends in / and refers to
20217         a file.
20218         Suggested by Eric Blake.
20219         Reported by Rainer Tammer.
20220
20221 2010-07-31  Bruno Haible  <bruno@clisp.org>
20222
20223         copysign: Does not require -lm on glibc systems.
20224         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20225         gl_COMMON_DOUBLE_MATHFUNC.
20226         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20227
20228 2010-07-31  Bruno Haible  <bruno@clisp.org>
20229
20230         duplocale: Work around AIX 7.1 bug.
20231         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20232         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20233         * lib/duplocale.c (rpl_duplocale): Update comment.
20234         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20235         Reported by Rainer Tammer.
20236
20237 2010-07-30  Bruno Haible  <bruno@clisp.org>
20238
20239         dirfd: Avoid link error on AIX 7.1.
20240         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20241         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20242         exist, set REPLACE_DIRFD.
20243         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20244         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20245         * doc/posix-functions/dirfd.texi: Update.
20246         Reported by Rainer Tammer.
20247
20248 2010-07-30  Eric Blake  <eblake@redhat.com>
20249
20250         strtod: next round of AIX fixes
20251         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20252         exponent.
20253         * tests/test-strtod.c (main): Enhance tests.
20254         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20255         Reported by Rainer Tammer.
20256
20257         futimens: fix configure check
20258         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20259         Reported by Bruno Haible.
20260
20261 2010-07-30  Bruno Haible  <bruno@clisp.org>
20262
20263         getline: Update regarding AIX.
20264         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20265         Reported by Rainer Tammer.
20266
20267 2010-07-30  Bruno Haible  <bruno@clisp.org>
20268
20269         wcwidth: Drop replacement on AIX 7.
20270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20271         AIX 7.
20272         Reported by Rainer Tammer.
20273
20274 2010-07-30  Bruno Haible  <bruno@clisp.org>
20275
20276         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20277         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20278         a 'char *'.
20279         Reported by Rainer Tammer.
20280
20281 2010-07-30  Bruno Haible  <bruno@clisp.org>
20282
20283         unlink: Update regarding AIX.
20284         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20285         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20286         Reported by Rainer Tammer.
20287
20288 2010-07-30  Bruno Haible  <bruno@clisp.org>
20289
20290         symlink: Update regarding AIX.
20291         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20292         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20293         Reported by Rainer Tammer.
20294
20295 2010-07-30  Bruno Haible  <bruno@clisp.org>
20296
20297         strndup: Update regarding AIX.
20298         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20299         AIX 7.
20300         Reported by Rainer Tammer.
20301
20302 2010-07-30  Bruno Haible  <bruno@clisp.org>
20303
20304         stat: Update regarding AIX.
20305         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20306         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20307         Reported by Rainer Tammer.
20308
20309 2010-07-30  Bruno Haible  <bruno@clisp.org>
20310
20311         truncl: Fix autoconf test.
20312         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20313         whether truncl works.
20314         Reported by Rainer Tammer.
20315
20316 2010-07-30  Bruno Haible  <bruno@clisp.org>
20317
20318         round: Update regarding AIX.
20319         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20320         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20321         Reported by Rainer Tammer.
20322
20323 2010-07-30  Bruno Haible  <bruno@clisp.org>
20324
20325         rename: Update regarding AIX.
20326         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20327         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20328         Reported by Rainer Tammer.
20329
20330 2010-07-30  Bruno Haible  <bruno@clisp.org>
20331
20332         printf.m4: Update regarding AIX.
20333         * m4/printf.m4: Update comments regarding AIX.
20334         Reported by Rainer Tammer.
20335
20336 2010-07-30  Bruno Haible  <bruno@clisp.org>
20337
20338         iconv: Update regarding AIX.
20339         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20340         AIX 7.
20341         Reported by Rainer Tammer.
20342
20343 2010-07-30  Bruno Haible  <bruno@clisp.org>
20344
20345         getopt: Update regarding AIX.
20346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20347         no on AIX.
20348         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20349         Reported by Rainer Tammer.
20350
20351 2010-07-30  Bruno Haible  <bruno@clisp.org>
20352
20353         ldexpl; Update regarding AIX.
20354         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20355         on AIX 7.
20356         Reported by Rainer Tammer.
20357
20358 2010-07-30  Bruno Haible  <bruno@clisp.org>
20359
20360         frexpl: Update regarding AIX.
20361         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20362         on AIX 7.
20363         Reported by Rainer Tammer.
20364
20365 2010-07-30  Bruno Haible  <bruno@clisp.org>
20366
20367         open, fopen: Update regarding AIX.
20368         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20369         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20370         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20371         * doc/posix-functions/fopen.texi: Likewise.
20372         Reported by Rainer Tammer.
20373
20374 2010-07-30  Bruno Haible  <bruno@clisp.org>
20375
20376         chown: Update doc regarding AIX.
20377         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20378         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20379         Reported by Rainer Tammer.
20380
20381 2010-07-30  Eric Blake  <eblake@redhat.com>
20382
20383         strtod: fix bug in replacement function on AIX
20384         * lib/strtod.c (strtod): Special case broken "0x" parse in
20385         underlying strtod.
20386         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20387         * doc/posix-functions/strtod.texi (strtod): Likewise.
20388         Reported by Rainer Tammer.
20389
20390 2010-07-30  Bruno Haible  <bruno@clisp.org>
20391
20392         mbrlen: Fix cross-compilation guess for AIX.
20393         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20394         guess. Leftover from 2008-12-22.
20395
20396 2010-07-30  Bruno Haible  <bruno@clisp.org>
20397
20398         mbrtowc: Fix cross-compilation guess for AIX.
20399         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20400         guess. Leftover from 2008-12-21.
20401
20402 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20403
20404         init.sh: work around trap limitation of some shells
20405         * tests/init.sh (setup_): Move exit trap outside of shell function.
20406
20407 2010-07-29  Eric Blake  <eblake@redhat.com>
20408
20409         strtod: aid debugging
20410         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20411         understanding why strtod is rejected.
20412
20413 2010-07-28  Bruno Haible  <bruno@clisp.org>
20414
20415         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20416         * lib/unistr/u8-chr.c: Include <string.h>.
20417         * tests/unistr/test-u8-chr.c: Likewise.
20418         * tests/unistr/test-u16-chr.c: Likewise.
20419         * tests/unistr/test-u32-chr.c: Likewise.
20420         * tests/unistr/test-u8-strchr.c: Likewise.
20421         * tests/unistr/test-u16-strchr.c: Likewise.
20422         * tests/unistr/test-u32-strchr.c: Likewise.
20423         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20424         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20425         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20426         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20427
20428 2010-07-28  Bruno Haible  <bruno@clisp.org>
20429
20430         Use spaces for indentation, not tabs.
20431         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20432
20433 2010-07-27  Bruno Haible  <bruno@clisp.org>
20434
20435         mbspcasecmp: Fix function specification.
20436         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20437         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20438         Reported by Eric Blake <eblake@redhat.com>.
20439
20440 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20441
20442         timespec: use cast and not conditional, as truncation isn't possible
20443         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20444         instead of a conditional.  Comment about the situation in more detail.
20445         This undoes most of the 2009-10-29 patch.
20446
20447 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20448
20449         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20450         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20451         * lib/unistr/u8-strchr.c: Likewise.
20452         * modules/unistr/u8-chr: Depend on memchr.
20453
20454         unistr/u*-strchr: add tests
20455         * modules/unistr/u8-strchr-tests: New file.
20456         * modules/unistr/u16-strchr-tests: New file.
20457         * modules/unistr/u32-strchr-tests: New file.
20458         * tests/unistr/test-strchr.h: New file.
20459         * tests/unistr/test-u8-strchr.c: New file.
20460         * tests/unistr/test-u16-strchr.c: New file.
20461         * tests/unistr/test-u32-strchr.c: New file.
20462
20463         unistr/u*-chr: test multibyte sequences more
20464         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20465         test vector.
20466         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20467         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20468         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20469
20470         unistr/u*-chr: test multibyte sequences
20471         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20472
20473         unistr/u*-chr: prepare for multibyte tests
20474         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20475         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20476         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20477         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20478         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20479         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20480
20481 2010-07-18  Bruno Haible  <bruno@clisp.org>
20482
20483         unistr/u8-strchr: Optimize non-ASCII argument case.
20484         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20485         because the first byte often matches anyway.
20486         Reported by Pádraig Brady <P@draigbrady.com>.
20487
20488 2010-07-15  Karl Berry  <karl@gnu.org>
20489
20490         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20491
20492 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20493
20494         getcwd: on Solaris, work better if ancestors are inaccessible
20495         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20496         buffer and size, try again with a large buffer.  This works better
20497         on Solaris, since its getcwd succeeds even if the path to the root
20498         is inaccessible, and this is helpful in common cases such as .zfs
20499         hidden directories.  Problem reported by J Chapman Flack in
20500         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20501         Use system getcwd if it's declared, not merely if it's partly
20502         working; use the partly-working test only to avoid needless effort
20503         if the system getcwd fails.
20504         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20505         comment that was already obsolete and is now even more obsolete.
20506         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20507         now might call strdup.
20508
20509 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20510
20511         pthread: Add enough so that coreutils/src/sort.c compiles.
20512         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20513         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20514         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20515         Include <sys/types.h>, in case it defines pthread_t.
20516         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20517         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20518         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20519         (pthread_rwlockattr_t, pthread_spinlock_t):
20520         New typedefs, if HAVE_PTHREAD_T is not defined.
20521         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20522         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20523         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20524         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20525         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20526         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20527         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20528         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20529         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20530         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20531         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20532         New macros.
20533         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20534         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20535         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20536         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20537         (pthread_spin_unlock): New dummy functions.
20538         (pthread_create): Return EAGAIN; don't set errno.
20539         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20540         require AC_C_INLINE.
20541         * modules/pthread (Depends-on): Add sched, time.
20542         (pthread.h): Use AM_V_GEN.
20543
20544 2010-07-13  Bruno Haible  <bruno@clisp.org>
20545
20546         striconveh: Don't malloc memory if the result buffer is sufficient.
20547         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20548         buffer if its size is sufficient.
20549         Reported by Ludovic Courtès <ludo@gnu.org>.
20550
20551 2010-07-13  Bruno Haible  <bruno@clisp.org>
20552
20553         strtod: Add safety check.
20554         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20555
20556 2010-07-12  Bruno Haible  <bruno@clisp.org>
20557
20558         Unify tests that set gl_cv_func_ldexpl_no_libm.
20559         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20560         gl_FUNC_LDEXPL.
20561         (gl_FUNC_LDEXPL): Invoke it.
20562         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20563
20564 2010-07-12  Bruno Haible  <bruno@clisp.org>
20565
20566         Unify tests that set gl_cv_func_ldexp_no_libm.
20567         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20568         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20569         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20570         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20571         * modules/strtod (Files): Add m4/ldexp.m4.
20572
20573 2010-07-12  Bruno Haible  <bruno@clisp.org>
20574
20575         Unify tests that set gl_cv_func_frexpl_no_libm.
20576         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20577         gl_FUNC_FREXPL_NO_LIBM.
20578         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20579         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20580
20581 2010-07-12  Bruno Haible  <bruno@clisp.org>
20582
20583         Unify tests that set gl_cv_func_frexp_no_libm.
20584         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20585         gl_FUNC_FREXP_NO_LIBM.
20586         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20587         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20588
20589 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20590
20591         memcoll: clarify sizes versus lengths, document better, and tweak perf
20592         * lib/memcoll.c (strcoll_loop, memcoll0):
20593         Improve quality of descriptive comments.  Name variables
20594         consistently as to whether they are lengths (which do not include
20595         terminating null) versus sizes (which do).
20596         * lib/xmemcoll.c (xmemcoll0): Likewise.
20597         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20598         returned when s1size == 0; this is easier to compile and saves
20599         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20600
20601 2010-07-12  Bruno Haible  <bruno@clisp.org>
20602
20603         Tests for module '_Exit'.
20604         * modules/_Exit-tests: New file.
20605         * tests/test-_Exit.sh: New file.
20606         * tests/test-_Exit.c: New file.
20607
20608         New module '_Exit'.
20609         * lib/stdlib.in.h (__attribute__): New macro.
20610         (_Exit): New declaration.
20611         * lib/_Exit.c: New file.
20612         * m4/_Exit.m4: New file.
20613         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20614         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20615         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20616         * modules/_Exit: New file.
20617         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20618         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20619
20620 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20621
20622         strtod: make it more-accurate typically, and don't require libm
20623         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20624         Include limits.h.  Don't include string.h.
20625         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20626         (locale_isspace): New function, so that no casts are needed to
20627         check whether *s is a space.
20628         (ldexp): Provide an unused dummy if not available.
20629         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20630         (strtod): Use them.  This implementation prefers to use the
20631         underlying strtod if available, falling back on our own code
20632         only to fix known bugs.  This is more likely to produce an
20633         accurate result.  Also, it avoids the use of libm functions.
20634         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20635         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20636         was absent, but it caused a test failure with coreutils.
20637         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20638         with libm.
20639         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20640         * modules/strtod-tests (Makefile.am): Likewise.
20641
20642 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20643             Bruno Haible  <bruno@clisp.org>
20644
20645         unistr/u8-strchr: Optimize ASCII argument case.
20646         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20647
20648 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20649
20650         (x)memcoll: minor tweaks
20651         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20652         is after the type that it qualifies.
20653         (memcoll0): Likewise.
20654         * lib/memcoll.h (memcoll0): Likewise.
20655         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20656         * lib/xmemcoll.h (xmemcoll0): Likewise.
20657         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20658         differs from memcoll in that the NUL byte is part of the argument.
20659         Omit the abort-checks, as performance is a real issue here.  Plus,
20660         the checks were wrong anyway (an off-by-one error).  Omit local
20661         variable 'diff', as it's a bit clearer that way.
20662         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20663         no longer needed.
20664
20665 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20666
20667         (x)memcoll: speedup when input is known to be NUL delimited
20668         * lib/memcoll.c: Include stdlib.
20669         (memcoll0): New function.
20670         (strcoll_loop): New function, refactored for use in both memcoll
20671         and memcoll0.
20672         * lib/memcoll.h (memcoll0): Add prototype.
20673         * lib/xmemcoll.c (xmemcoll0): New function.
20674         (collate_error): New function, refactored for use in both xmemcoll
20675         and xmemcoll0.
20676         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20677         * m4/memcoll.m4: add inline invocation.
20678
20679 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20680
20681         * build-aux/bootstrap: Remove any local translations
20682         from the translation project synchronization directory,
20683         so that local only translations are not distributed.
20684
20685 2010-07-04  Bruno Haible  <bruno@clisp.org>
20686
20687         fsusage: Clarify which code applies to which platforms.
20688         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20689         platform.
20690         * lib/fsusage.c (get_fs_usage): Likewise.
20691
20692 2010-07-04  Bruno Haible  <bruno@clisp.org>
20693
20694         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20695         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20696         Reported by Martin Lambers <marlam@marlam.de>.
20697
20698 2010-07-04  Jim Meyering  <meyering@redhat.com>
20699
20700         hash: once again explicitly disallow insertion of NULL
20701         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20702         inserting a NULL pointer cannot work with these functions.
20703         Add a comment with details.
20704         This reverts part of the 2010-07-01 commit, 5bef1a35
20705         "hash: extend module to deal with non-pointer keys".
20706
20707 2010-07-01  Bruno Haible  <bruno@clisp.org>
20708
20709         stdbool: Update doc.
20710         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20711         Info from Christian Weisgerber <naddy@mips.inka.de>.
20712
20713 2010-07-01  Jim Meyering  <meyering@redhat.com>
20714
20715         hash: extend module to deal with non-pointer keys
20716         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20717         but that allows insertion of non-pointer entries.
20718         Do not disallow an ENTRY value of NULL.
20719         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20720         * lib/hash.h (hash_insert0): Declare.
20721
20722 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20723
20724         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20725         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20726         not present (i.e. with autoconf 2.59 and when using gettextize, not
20727         gnulib), require AC_GNU_SOURCE instead.
20728
20729 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20730
20731         idpriv-drop: Fix tests.
20732         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20733         not to the test-idpriv-droptemp program.
20734
20735 2010-06-29  Bruno Haible  <bruno@clisp.org>
20736
20737         string: Fix syntax error with g++ 2.96.
20738         * lib/string.in.h (__pure__): Remove definition.
20739         (_GL_ATTRIBUTE_PURE): New macro.
20740         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20741         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20742         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20743
20744 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20745
20746         unitypes: Fix bug introduced on 2010-05-18.
20747         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20748
20749 2010-06-22  Eric Blake  <eblake@redhat.com>
20750
20751         memmem: slight optimization
20752         * lib/str-two-way.h (critical_factorization): Update comments.
20753         Reduce work during factorization phase.
20754         Reported by Carlos Bueno <carlos@bueno.org>.
20755
20756 2010-06-21  Bruno Haible  <bruno@clisp.org>
20757
20758         Fix HAVE_CALLOC_POSIX misnomer.
20759         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20760         !HAVE_CALLOC_POSIX.
20761         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20762         HAVE_CALLOC_POSIX.
20763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20764         instead of HAVE_CALLOC_POSIX.
20765         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20766         HAVE_CALLOC_POSIX.
20767
20768         Use modern idiom for calloc() replacement.
20769         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20770         AC_FUNC_CALLOC.
20771         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20772         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20773         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20774         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20775         (gl_REPLACE_CALLOC): New macro.
20776
20777 2010-06-21  Bruno Haible  <bruno@clisp.org>
20778
20779         Fix HAVE_REALLOC_POSIX misnomer.
20780         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20781         !HAVE_REALLOC_POSIX.
20782         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20783         HAVE_REALLOC_POSIX.
20784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20785         instead of HAVE_REALLOC_POSIX.
20786         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20787         HAVE_REALLOC_POSIX.
20788
20789         Use modern idiom for realloc() replacement.
20790         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20791         AC_FUNC_REALLOC.
20792         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20793         Autoconf's AC_FUNC_REALLOC.
20794         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20795         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20796         (gl_REPLACE_REALLOC): New macro.
20797         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20798
20799 2010-06-21  Bruno Haible  <bruno@clisp.org>
20800
20801         Fix HAVE_MALLOC_POSIX misnomer.
20802         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20803         !HAVE_MALLOC_POSIX.
20804         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20805         HAVE_MALLOC_POSIX.
20806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20807         instead of HAVE_MALLOC_POSIX.
20808         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20809         HAVE_MALLOC_POSIX.
20810
20811         Use modern idiom for malloc() replacement.
20812         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20813         AC_FUNC_MALLOC.
20814         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20815         Autoconf's AC_FUNC_MALLOC.
20816         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20817         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20818         (gl_REPLACE_MALLOC): New macro.
20819         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20820
20821 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20822
20823         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20824         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20825         This macro takes 3 arguments, not 4.
20826
20827 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20828
20829         ipv6: fix detection under mingw
20830         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20831         in6_addr.
20832
20833 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20834
20835         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20836         that strtod() works when cross-compiling to a glibc version known
20837         to work.
20838
20839 2010-06-15  Bruno Haible  <bruno@clisp.org>
20840
20841         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20842
20843 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20844
20845         select: Correct timeout.
20846         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20847
20848 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20849
20850         git-version-gen: init shell var to avoid env var influence
20851         * build-aux/git-version-gen (v): Init shell var to empty.
20852
20853 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20854
20855         priv-set: Don't assume that priv.h exists merely because getppriv does.
20856         See Jan Andersen's bug report about AIX 5L in
20857         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20858         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20859         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20860         * lib/priv-set.h: Likewise.
20861         * tests/test-priv-set.c: Likewise.
20862
20863 2010-06-13  Bruno Haible  <bruno@clisp.org>
20864
20865         relocatable: Make it easier to test whether to install wrappers.
20866         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20867         RELOCATABLE_VIA_WRAPPER.
20868
20869 2010-06-13  Bruno Haible  <bruno@clisp.org>
20870
20871         gnulib-tool: Display specified modules and dependencies differently.
20872         * gnulib-tool (func_show_module_list): New function.
20873         (func_import, func_create_testdir): Invoke it.
20874         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20875
20876 2010-06-13  Bruno Haible  <bruno@clisp.org>
20877
20878         gnulib-tool: Align code of func_import and func_create_testdir.
20879         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20880         specified_modules.
20881
20882 2010-06-12  Jim Meyering  <meyering@redhat.com>
20883
20884         test-inttostr: avoid spurious failure on Solaris 9
20885         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20886         to accept "%ju".  Reported by Bruno Haible.
20887
20888 2010-06-11  Jim Meyering  <meyering@redhat.com>
20889
20890         test-sys_socket: mark variables as used more readably
20891         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20892         as "used" explicitly via (void) statement casts.  This is more
20893         readable than using them in an artificial return expression.
20894         Suggestion from Bruno Haible.
20895
20896 2010-06-11  Bruno Haible  <bruno@clisp.org>
20897
20898         Avoid some more warnings from "gcc -Wwrite-strings".
20899         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20900         to 'const char *'.
20901         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20902         * tests/test-c-strcasestr.c (main): Likewise.
20903         * tests/test-mbscasestr1.c (main): Likewise.
20904         * tests/test-mbscasestr2.c (main): Likewise.
20905         * tests/test-memmem.c (main): Likewise.
20906         * tests/test-strstr.c (main): Likewise.
20907         * tests/test-strcasestr.c (main): Likewise.
20908
20909 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20910
20911         init.sh: change framework_failure_ to fail with status 99, not 1
20912         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20913         automake's parallel-tests rule that this is an unexpected failure,
20914         even if the test is listed in XFAIL_TESTS.
20915
20916 2010-06-11  Jim Meyering  <meyering@redhat.com>
20917
20918         test-inttostr: avoid warnings about 4-6KB literal strings
20919         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20920         Include "macros.h", for its definition of ASSERT.
20921         (CK): s/assert/ASSERT/
20922         * modules/inttostr-tests (Files): Add macros.h.
20923
20924         init.sh: don't use $ME_ or skip_ before they are defined
20925         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20926         their first uses.  Also hoist their companions: warn_, fail_,
20927         framework_failure_, $stderr_fileno.  Prompted by a patch from
20928         Stefano Lattarini.
20929
20930         test-sys_socket: avoid set-but-not-used warnings from gcc
20931         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20932         avoid warning about set-but-not-used variables.
20933
20934         test-xvasprintf: avoid 'const' discard warnings
20935         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20936         "const" when assigning from literal strings.
20937         (test_xasprintf): Add "void" in function argument list to placate
20938         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20939
20940         tests: avoid compilation warnings in argmatch and exclude tests...
20941         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20942         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20943         Since it always exits, declare with the "noreturn" attribute.
20944         * tests/test-argmatch.c: Likewise.
20945
20946         tests: avoid 'const' discard warnings in mbsstr tests
20947         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20948         * tests/test-mbsstr2.c (main): Likewise.
20949
20950         test-verify: avoid warning from gcc's -Wmissing-declarations
20951         * tests/test-verify.c (function): Declare to be static.
20952
20953         test-inttostr.c: include <string.h> for use of strcmp
20954         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20955
20956         test-linkat: avoid failed assertion on "other" architectures
20957         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20958         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20959         sparc: https://bugs.launchpad.net/bugs/591968
20960
20961 2010-06-11  Jim Meyering  <meyering@redhat.com>
20962
20963         printf.m4: avoid autoconf's "Expanded Before Required" warning
20964         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20965         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20966         autoconf warning.
20967
20968 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20969
20970         Replacement header templates are now named with ".in", not "_".
20971         * doc/gnulib-intro.texi: Correct.
20972
20973 2010-06-10  Jim Meyering  <meyering@redhat.com>
20974
20975         inttostr-tests: depend on snprintf, not snprintf-posix
20976         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20977         snprintf-posix, to avoid this aclocal failure:
20978           missing file gnulib-tests/vasnprintf.c
20979           configure.ac:45: error: expected source file, required through \
20980           AC_LIBSOURCES, not found
20981
20982 2010-06-10  Jim Meyering  <meyering@redhat.com>
20983
20984         inttostr: add a new function, inttostr, and tests
20985         The namesake function was not available.  The existence of the
20986         template file, inttostr.c makes its addition nontrivial.
20987         * lib/anytostr.c: Rename from inttostr.c.
20988         (anytostr): Rename from inttostr.
20989         * lib/inttostr.c: New file.
20990         * modules/inttostr (Files): Add anytostr.c.
20991         (Makefile.am): Set lib_SOURCES instead of ...
20992         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20993         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20994         * lib/offtostr.c: Likewise.
20995         * lib/uinttostr.c: Likewise.
20996         * lib/umaxtostr.c: Likewise.
20997         * modules/inttostr-tests: New file.
20998         * tests/test-inttostr.c: New file.  Test these functions.
20999
21000 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21001             Bruno Haible  <bruno@clisp.org>
21002
21003         Add "Extending Gnulib" chapter to manual.
21004         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21005         chapter.
21006         (Extending Gnulib): New chapter.
21007         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21008         chapter.
21009
21010 2010-06-09  Bruno Haible  <bruno@clisp.org>
21011
21012         Avoid relocwrapper link errors due to gnulib replacement functions.
21013         * lib/areadlink.c: Use the system's malloc, realloc functions.
21014         (areadlink): Set errno to ENOMEM explicitly.
21015         * modules/areadlink (Depends-on): Remove malloc-posix.
21016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21017
21018 2010-06-09  Bruno Haible  <bruno@clisp.org>
21019
21020         Avoid relocwrapper link errors due to gnulib replacement functions.
21021         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21022         * lib/malloca.c: Likewise.
21023         * lib/relocatable.c: Likewise.
21024         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21025         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21026         * lib/setenv.c: Use the system's malloc, realloc functions.
21027         * lib/strerror.c: Use the system's sprintf function.
21028         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21029
21030 2010-06-04  Bruno Haible  <bruno@clisp.org>
21031
21032         Prefer documented low-level autoconf macro names.
21033         * m4/lib-link.m4: Use m4_translit instead of translit.
21034         * m4/environ.m4: Likewise.
21035         * m4/mathfunc.m4: Likewise.
21036         * m4/onceonly.m4: Likewise.
21037         * m4/stdint.m4: Likewise.
21038         Suggested by Eric Blake.
21039
21040 2010-06-04  Martin Lambers  <marlam@marlam.de>
21041             Bruno Haible  <bruno@clisp.org>
21042
21043         havelib: Allow library names with '+' characters.
21044         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21045         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21046
21047 2010-06-09  Bruno Haible  <bruno@clisp.org>
21048
21049         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21050         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21051         realloc failed.
21052
21053 2010-06-08  Peter Simons  <simons@cryp.to>
21054
21055         maint.mk: make the news-check rule more configurable
21056         * top/maint.mk (news-check-lines-spec): New variable.
21057         (news-check): Use "sed -n 1,10p" in place of "head".
21058
21059 2010-06-07  Jim Meyering  <meyering@redhat.com>
21060
21061         do-release-commit-and-tag: fix typo in --help
21062         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21063
21064         regex: avoid new dead-code warning with gcc-4.6.0
21065         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21066         if-block containing a while-loop.  It's been unused for at least
21067         5 years.
21068
21069 2010-06-05  Bruno Haible  <bruno@clisp.org>
21070
21071         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21072         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21073
21074 2010-06-04  Bruno Haible  <bruno@clisp.org>
21075
21076         Update to GNU gettext 0.18.1.
21077         * modules/gettext (configure.ac): Require gettext infrastructure from
21078         version 0.18.1.
21079
21080 2010-06-03  Bruno Haible  <bruno@clisp.org>
21081
21082         Don't use AC_LIBOBJ with file names in subdirectories.
21083         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21084         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21085         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21086         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21087         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21088         gl_LIBUNISTRING_LIBSOURCE.
21089         (Makefile.am): Augment lib_SOURCES here, conditionally.
21090         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21091
21092 2010-06-03  Bruno Haible  <bruno@clisp.org>
21093
21094         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21095         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21096         expansion does not end with a newline.
21097         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21098         unnecessary newline.
21099
21100 2010-06-03  Bruno Haible  <bruno@clisp.org>
21101
21102         Reduce dependencies.
21103         * tests/test-quotearg.h: New file, extracted from
21104         tests/test-quotearg.c.
21105         * tests/test-quotearg-simple.c: New file, extracted from
21106         tests/test-quotearg.c.
21107         * tests/test-quotearg.c: Don't include <ctype.h>.
21108         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21109         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21110         use_quote_double_quotes, use_quotearg_colon): Moved to
21111         tests/test-quotearg.h.
21112         (results_g, flag_results, custom_quotes, custom_results): Moved
21113         to tests/test-quotearg-simple.c.
21114         (main): Moved the part that does not depend on gettext to
21115         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21116         performed.
21117         * modules/quotearg-simple: New file.
21118         * modules/quotearg-simple-tests: New file.
21119         * modules/quotearg (Depends-on): Add quotearg-simple.
21120         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21121         (Files): Add tests/test-quotearg.h.
21122         Reported by Paolo Bonzini.
21123
21124 2010-06-03  Bruno Haible  <bruno@clisp.org>
21125
21126         Reduce dependencies.
21127         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21128
21129 2010-06-03  Bruno Haible  <bruno@clisp.org>
21130
21131         time: Undefine more broken macros.
21132         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21133         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21134         Reported by Eric Blake.
21135
21136 2010-06-03  Bruno Haible  <bruno@clisp.org>
21137
21138         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21139         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21140         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21141         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21142         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21143         Reported by Ludovic Courtès <ludo@gnu.org>.
21144
21145 2010-06-02  Eric Blake  <eblake@redhat.com>
21146
21147         time: work with mingw + pthreads-win32 library
21148         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21149         if timespec is defined only in pthread.h.
21150         * modules/time (Makefile.am): Substitute it.
21151         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21152         <pthread.h>, when needed.
21153         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21154         from the library.
21155
21156 2010-05-31  Bruno Haible  <bruno@clisp.org>
21157
21158         Avoid expanding two macros in the wrong order.
21159         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21160         gl_LIBUNISTRING if it is defined.
21161         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21162         autoconf >= 2.64.
21163         Reported by Ludovic Courtès <ludo@gnu.org>.
21164
21165 2010-05-27  Jim Meyering  <meyering@redhat.com>
21166
21167         maint.mk: also prohibit "#undef" of always-defined symbols
21168         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21169         Allow more than one space before the symbol name.
21170         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21171         the regexp uses alternation.
21172
21173 2010-05-26  Eric Blake  <eblake@redhat.com>
21174
21175         maint.mk: avoid echo -e
21176         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21177         Convert all uses of echo -* to printf.
21178         Reported by Matthias Bolte.
21179
21180 2010-05-25  Bruno Haible  <bruno@clisp.org>
21181
21182         Update to GNU gettext 0.18, part 2.
21183         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21184         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21185
21186 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21187
21188         Add missing include in test-pwrite.c.
21189         * tests/test-pwrite.c: Include string.h, for strcmp.
21190
21191 2010-05-24  Bruno Haible  <bruno@clisp.org>
21192
21193         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21194
21195 2010-05-24  Bruno Haible  <bruno@clisp.org>
21196
21197         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21198         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21199         iconveh_error argument.
21200         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21201         U_STRCONV_TO_LOCALE.
21202         * lib/unistr/u16-strcoll.c: Likewise.
21203         * lib/unistr/u32-strcoll.c: Likewise.
21204         * modules/unistr/u8-strcoll (Depends-on): Add
21205         uniconv/u8-strconv-to-enc, localcharset. Remove
21206         uniconv/u8-strconv-to-locale.
21207         (configure.ac): Bump version number.
21208         * modules/unistr/u16-strcoll (Depends-on): Add
21209         uniconv/u16-strconv-to-enc, localcharset. Remove
21210         uniconv/u16-strconv-to-locale.
21211         (configure.ac): Bump version number.
21212         * modules/unistr/u32-strcoll (Depends-on): Add
21213         uniconv/u32-strconv-to-enc, localcharset. Remove
21214         uniconv/u32-strconv-to-locale.
21215         (configure.ac): Bump version number.
21216
21217 2010-05-24  Bruno Haible  <bruno@clisp.org>
21218
21219         Avoid a test failure on NetBSD 5.0.
21220         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21221         an iconv() bug.
21222
21223 2010-05-24  Bruno Haible  <bruno@clisp.org>
21224
21225         Adjust #include directive style.
21226         * modules/regex (Includes): Recommend to write <regex.h>.
21227
21228 2010-05-24  Bruno Haible  <bruno@clisp.org>
21229
21230         regex: Don't require alloca.
21231         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21232         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21233         only inside if (0).
21234
21235 2010-05-23  Jim Meyering  <meyering@redhat.com>
21236
21237         test-renameat.c: include <sys/stat.h>
21238         * tests/test-renameat.c: Include <sys/stat.h>; required for
21239         definition of S_IS* macros.
21240
21241 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21242
21243         Update maintainer documentation for 'relocatable-prog' module.
21244         * doc/relocatable-maint.texi: Update.
21245         Comments by Bruno Haible.
21246
21247 2010-05-23  Bruno Haible  <bruno@clisp.org>
21248
21249         git-merge-changelog: Enable --split-merged-entry by default.
21250         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21251         (usage): Don't mention this option any more.
21252         Reported by Ralf Wildenhues.
21253
21254 2010-05-23  Jim Meyering  <meyering@redhat.com>
21255
21256         test-pwrite: do not leave behind a test file named "out"
21257         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21258         The trivial-looking use of init.sh is really necessary.
21259         It ensures that the temporary file, "out", is created in
21260         a temporary directory, and removed upon termination.
21261         * tests/test-pwrite.sh: Re-add file.
21262         * modules/pwrite-tests: Reference it.
21263
21264 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21265
21266         Fix output redirection buglet in init.sh.
21267         * tests/init.sh: Fix redirection of stderr.
21268
21269 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21270
21271         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21272
21273 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21274
21275         * modules/valgrind-tests: New file.
21276         * m4/valgrind-tests.m4: New file.
21277         * doc/valgrind-tests.texi: New file.
21278         * doc/gnulib.texi (Running self-tests under valgrind): New
21279         section.
21280
21281 2010-05-19  Bruno Haible  <bruno@clisp.org>
21282
21283         Clean up dead code in recent commit.
21284         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21285         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21286         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21287         Suggested by Paolo Bonzini.
21288
21289 2010-05-19  Bruno Haible  <bruno@clisp.org>
21290
21291         Avoid valgrind error reports from libunistring.
21292         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21293         * modules/libunistring (Files): Add it.
21294         * modules/libunistring-optional (Files): Likewise.
21295
21296 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21297             Bruno Haible  <bruno@clisp.org>
21298
21299         New module 'libunistring-optional'.
21300         * modules/libunistring-optional: New file.
21301         * m4/libunistring-base.m4: New file.
21302         * m4/libunistring-optional.m4: New file.
21303         * lib/unicase.in.h: Renamed from lib/unicase.h.
21304         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21305         * lib/unictype.in.h: Renamed from lib/unictype.h.
21306         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21307         * lib/uniname.in.h: Renamed from lib/uniname.h.
21308         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21309         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21310         * lib/unistr.in.h: Renamed from lib/unistr.h.
21311         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21312         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21313         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21314         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21315         gl_LIBUNISTRING. If the library was found, determine the installed
21316         version and set LIBUNISTRING_VERSION.
21317         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21318         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21319         handle a configuration option --with-included-libunistring.
21320         * modules/libunistring (Files): Add m4/absolute-header.m4.
21321         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21322         Add m4/libunistring-base.m4.
21323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21324         (Makefile.am): Build unicase.h from unicase.in.h.
21325         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21326         Add m4/libunistring-base.m4.
21327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21328         (Makefile.am): Build uniconv.h from uniconv.in.h.
21329         * modules/unictype/base (Files): Use unictype.in.h instead of
21330         unictype.h. Add m4/libunistring-base.m4.
21331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21332         (Makefile.am): Build unictype.h from unictype.in.h.
21333         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21334         Add m4/libunistring-base.m4.
21335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21336         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21337         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21338         Add m4/libunistring-base.m4.
21339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21340         (Makefile.am): Build uniname.h from uniname.in.h.
21341         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21342         Add m4/libunistring-base.m4.
21343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21344         (Makefile.am): Build uninorm.h from uninorm.in.h.
21345         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21346         unistdio.h. Add m4/libunistring-base.m4.
21347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21348         (Makefile.am): Build unistdio.h from unistdio.in.h.
21349         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21350         Add m4/libunistring-base.m4.
21351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21352         (Makefile.am): Build unistr.h from unistr.in.h.
21353         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21354         Add m4/libunistring-base.m4.
21355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21356         (Makefile.am): Build unitypes.h from unitypes.in.h.
21357         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21358         Add m4/libunistring-base.m4.
21359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21360         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21361         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21362         uniwidth.h. Add m4/libunistring-base.m4.
21363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21364         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21365         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21366         instead of augmenting lib_SOURCES.
21367         * modules/unicase/empty-suffix-context: Likewise.
21368         * modules/unicase/locale-language: Likewise.
21369         * modules/unicase/tolower: Likewise.
21370         * modules/unicase/totitle: Likewise.
21371         * modules/unicase/toupper: Likewise.
21372         * modules/unicase/u8-casecmp: Likewise.
21373         * modules/unicase/u8-casecoll: Likewise.
21374         * modules/unicase/u8-casefold: Likewise.
21375         * modules/unicase/u8-casexfrm: Likewise.
21376         * modules/unicase/u8-ct-casefold: Likewise.
21377         * modules/unicase/u8-ct-tolower: Likewise.
21378         * modules/unicase/u8-ct-totitle: Likewise.
21379         * modules/unicase/u8-ct-toupper: Likewise.
21380         * modules/unicase/u8-is-cased: Likewise.
21381         * modules/unicase/u8-is-casefolded: Likewise.
21382         * modules/unicase/u8-is-lowercase: Likewise.
21383         * modules/unicase/u8-is-titlecase: Likewise.
21384         * modules/unicase/u8-is-uppercase: Likewise.
21385         * modules/unicase/u8-prefix-context: Likewise.
21386         * modules/unicase/u8-suffix-context: Likewise.
21387         * modules/unicase/u8-tolower: Likewise.
21388         * modules/unicase/u8-totitle: Likewise.
21389         * modules/unicase/u8-toupper: Likewise.
21390         * modules/unicase/u16-casecmp: Likewise.
21391         * modules/unicase/u16-casecoll: Likewise.
21392         * modules/unicase/u16-casefold: Likewise.
21393         * modules/unicase/u16-casexfrm: Likewise.
21394         * modules/unicase/u16-ct-casefold: Likewise.
21395         * modules/unicase/u16-ct-tolower: Likewise.
21396         * modules/unicase/u16-ct-totitle: Likewise.
21397         * modules/unicase/u16-ct-toupper: Likewise.
21398         * modules/unicase/u16-is-cased: Likewise.
21399         * modules/unicase/u16-is-casefolded: Likewise.
21400         * modules/unicase/u16-is-lowercase: Likewise.
21401         * modules/unicase/u16-is-titlecase: Likewise.
21402         * modules/unicase/u16-is-uppercase: Likewise.
21403         * modules/unicase/u16-prefix-context: Likewise.
21404         * modules/unicase/u16-suffix-context: Likewise.
21405         * modules/unicase/u16-tolower: Likewise.
21406         * modules/unicase/u16-totitle: Likewise.
21407         * modules/unicase/u16-toupper: Likewise.
21408         * modules/unicase/u32-casecmp: Likewise.
21409         * modules/unicase/u32-casecoll: Likewise.
21410         * modules/unicase/u32-casefold: Likewise.
21411         * modules/unicase/u32-casexfrm: Likewise.
21412         * modules/unicase/u32-ct-casefold: Likewise.
21413         * modules/unicase/u32-ct-tolower: Likewise.
21414         * modules/unicase/u32-ct-totitle: Likewise.
21415         * modules/unicase/u32-ct-toupper: Likewise.
21416         * modules/unicase/u32-is-cased: Likewise.
21417         * modules/unicase/u32-is-casefolded: Likewise.
21418         * modules/unicase/u32-is-lowercase: Likewise.
21419         * modules/unicase/u32-is-titlecase: Likewise.
21420         * modules/unicase/u32-is-uppercase: Likewise.
21421         * modules/unicase/u32-prefix-context: Likewise.
21422         * modules/unicase/u32-suffix-context: Likewise.
21423         * modules/unicase/u32-tolower: Likewise.
21424         * modules/unicase/u32-totitle: Likewise.
21425         * modules/unicase/u32-toupper: Likewise.
21426         * modules/unicase/ulc-casecmp: Likewise.
21427         * modules/unicase/ulc-casecoll: Likewise.
21428         * modules/unicase/ulc-casexfrm: Likewise.
21429         * modules/uniconv/u8-conv-from-enc: Likewise.
21430         * modules/uniconv/u8-conv-to-enc: Likewise.
21431         * modules/uniconv/u8-strconv-from-enc: Likewise.
21432         * modules/uniconv/u8-strconv-from-locale: Likewise.
21433         * modules/uniconv/u8-strconv-to-enc: Likewise.
21434         * modules/uniconv/u8-strconv-to-locale: Likewise.
21435         * modules/uniconv/u16-conv-from-enc: Likewise.
21436         * modules/uniconv/u16-conv-to-enc: Likewise.
21437         * modules/uniconv/u16-strconv-from-enc: Likewise.
21438         * modules/uniconv/u16-strconv-from-locale: Likewise.
21439         * modules/uniconv/u16-strconv-to-enc: Likewise.
21440         * modules/uniconv/u16-strconv-to-locale: Likewise.
21441         * modules/uniconv/u32-conv-from-enc: Likewise.
21442         * modules/uniconv/u32-conv-to-enc: Likewise.
21443         * modules/uniconv/u32-strconv-from-enc: Likewise.
21444         * modules/uniconv/u32-strconv-from-locale: Likewise.
21445         * modules/uniconv/u32-strconv-to-enc: Likewise.
21446         * modules/uniconv/u32-strconv-to-locale: Likewise.
21447         * modules/unictype/bidicategory-byname: Likewise.
21448         * modules/unictype/bidicategory-name: Likewise.
21449         * modules/unictype/bidicategory-of: Likewise.
21450         * modules/unictype/bidicategory-test: Likewise.
21451         * modules/unictype/block-list: Likewise.
21452         * modules/unictype/block-test: Likewise.
21453         * modules/unictype/category-C: Likewise.
21454         * modules/unictype/category-Cc: Likewise.
21455         * modules/unictype/category-Cf: Likewise.
21456         * modules/unictype/category-Cn: Likewise.
21457         * modules/unictype/category-Co: Likewise.
21458         * modules/unictype/category-Cs: Likewise.
21459         * modules/unictype/category-L: Likewise.
21460         * modules/unictype/category-Ll: Likewise.
21461         * modules/unictype/category-Lm: Likewise.
21462         * modules/unictype/category-Lo: Likewise.
21463         * modules/unictype/category-Lt: Likewise.
21464         * modules/unictype/category-Lu: Likewise.
21465         * modules/unictype/category-M: Likewise.
21466         * modules/unictype/category-Mc: Likewise.
21467         * modules/unictype/category-Me: Likewise.
21468         * modules/unictype/category-Mn: Likewise.
21469         * modules/unictype/category-N: Likewise.
21470         * modules/unictype/category-Nd: Likewise.
21471         * modules/unictype/category-Nl: Likewise.
21472         * modules/unictype/category-No: Likewise.
21473         * modules/unictype/category-P: Likewise.
21474         * modules/unictype/category-Pc: Likewise.
21475         * modules/unictype/category-Pd: Likewise.
21476         * modules/unictype/category-Pe: Likewise.
21477         * modules/unictype/category-Pf: Likewise.
21478         * modules/unictype/category-Pi: Likewise.
21479         * modules/unictype/category-Po: Likewise.
21480         * modules/unictype/category-Ps: Likewise.
21481         * modules/unictype/category-S: Likewise.
21482         * modules/unictype/category-Sc: Likewise.
21483         * modules/unictype/category-Sk: Likewise.
21484         * modules/unictype/category-Sm: Likewise.
21485         * modules/unictype/category-So: Likewise.
21486         * modules/unictype/category-Z: Likewise.
21487         * modules/unictype/category-Zl: Likewise.
21488         * modules/unictype/category-Zp: Likewise.
21489         * modules/unictype/category-Zs: Likewise.
21490         * modules/unictype/category-and: Likewise.
21491         * modules/unictype/category-and-not: Likewise.
21492         * modules/unictype/category-byname: Likewise.
21493         * modules/unictype/category-name: Likewise.
21494         * modules/unictype/category-none: Likewise.
21495         * modules/unictype/category-of: Likewise.
21496         * modules/unictype/category-or: Likewise.
21497         * modules/unictype/category-test: Likewise.
21498         * modules/unictype/combining-class: Likewise.
21499         * modules/unictype/ctype-alnum: Likewise.
21500         * modules/unictype/ctype-alpha: Likewise.
21501         * modules/unictype/ctype-blank: Likewise.
21502         * modules/unictype/ctype-cntrl: Likewise.
21503         * modules/unictype/ctype-digit: Likewise.
21504         * modules/unictype/ctype-graph: Likewise.
21505         * modules/unictype/ctype-lower: Likewise.
21506         * modules/unictype/ctype-print: Likewise.
21507         * modules/unictype/ctype-punct: Likewise.
21508         * modules/unictype/ctype-space: Likewise.
21509         * modules/unictype/ctype-upper: Likewise.
21510         * modules/unictype/ctype-xdigit: Likewise.
21511         * modules/unictype/decimal-digit: Likewise.
21512         * modules/unictype/digit: Likewise.
21513         * modules/unictype/mirror: Likewise.
21514         * modules/unictype/numeric: Likewise.
21515         * modules/unictype/property-alphabetic: Likewise.
21516         * modules/unictype/property-ascii-hex-digit: Likewise.
21517         * modules/unictype/property-bidi-arabic-digit: Likewise.
21518         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21519         * modules/unictype/property-bidi-block-separator: Likewise.
21520         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21521         * modules/unictype/property-bidi-common-separator: Likewise.
21522         * modules/unictype/property-bidi-control: Likewise.
21523         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21524         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21525         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21526         * modules/unictype/property-bidi-european-digit: Likewise.
21527         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21528         * modules/unictype/property-bidi-left-to-right: Likewise.
21529         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21530         * modules/unictype/property-bidi-other-neutral: Likewise.
21531         * modules/unictype/property-bidi-pdf: Likewise.
21532         * modules/unictype/property-bidi-segment-separator: Likewise.
21533         * modules/unictype/property-bidi-whitespace: Likewise.
21534         * modules/unictype/property-byname: Likewise.
21535         * modules/unictype/property-combining: Likewise.
21536         * modules/unictype/property-composite: Likewise.
21537         * modules/unictype/property-currency-symbol: Likewise.
21538         * modules/unictype/property-dash: Likewise.
21539         * modules/unictype/property-decimal-digit: Likewise.
21540         * modules/unictype/property-default-ignorable-code-point: Likewise.
21541         * modules/unictype/property-deprecated: Likewise.
21542         * modules/unictype/property-diacritic: Likewise.
21543         * modules/unictype/property-extender: Likewise.
21544         * modules/unictype/property-format-control: Likewise.
21545         * modules/unictype/property-grapheme-base: Likewise.
21546         * modules/unictype/property-grapheme-extend: Likewise.
21547         * modules/unictype/property-grapheme-link: Likewise.
21548         * modules/unictype/property-hex-digit: Likewise.
21549         * modules/unictype/property-hyphen: Likewise.
21550         * modules/unictype/property-id-continue: Likewise.
21551         * modules/unictype/property-id-start: Likewise.
21552         * modules/unictype/property-ideographic: Likewise.
21553         * modules/unictype/property-ids-binary-operator: Likewise.
21554         * modules/unictype/property-ids-trinary-operator: Likewise.
21555         * modules/unictype/property-ignorable-control: Likewise.
21556         * modules/unictype/property-iso-control: Likewise.
21557         * modules/unictype/property-join-control: Likewise.
21558         * modules/unictype/property-left-of-pair: Likewise.
21559         * modules/unictype/property-line-separator: Likewise.
21560         * modules/unictype/property-logical-order-exception: Likewise.
21561         * modules/unictype/property-lowercase: Likewise.
21562         * modules/unictype/property-math: Likewise.
21563         * modules/unictype/property-non-break: Likewise.
21564         * modules/unictype/property-not-a-character: Likewise.
21565         * modules/unictype/property-numeric: Likewise.
21566         * modules/unictype/property-other-alphabetic: Likewise.
21567         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21568         * modules/unictype/property-other-grapheme-extend: Likewise.
21569         * modules/unictype/property-other-id-continue: Likewise.
21570         * modules/unictype/property-other-id-start: Likewise.
21571         * modules/unictype/property-other-lowercase: Likewise.
21572         * modules/unictype/property-other-math: Likewise.
21573         * modules/unictype/property-other-uppercase: Likewise.
21574         * modules/unictype/property-paired-punctuation: Likewise.
21575         * modules/unictype/property-paragraph-separator: Likewise.
21576         * modules/unictype/property-pattern-syntax: Likewise.
21577         * modules/unictype/property-pattern-white-space: Likewise.
21578         * modules/unictype/property-private-use: Likewise.
21579         * modules/unictype/property-punctuation: Likewise.
21580         * modules/unictype/property-quotation-mark: Likewise.
21581         * modules/unictype/property-radical: Likewise.
21582         * modules/unictype/property-sentence-terminal: Likewise.
21583         * modules/unictype/property-soft-dotted: Likewise.
21584         * modules/unictype/property-space: Likewise.
21585         * modules/unictype/property-terminal-punctuation: Likewise.
21586         * modules/unictype/property-test: Likewise.
21587         * modules/unictype/property-titlecase: Likewise.
21588         * modules/unictype/property-unassigned-code-value: Likewise.
21589         * modules/unictype/property-unified-ideograph: Likewise.
21590         * modules/unictype/property-uppercase: Likewise.
21591         * modules/unictype/property-variation-selector: Likewise.
21592         * modules/unictype/property-white-space: Likewise.
21593         * modules/unictype/property-xid-continue: Likewise.
21594         * modules/unictype/property-xid-start: Likewise.
21595         * modules/unictype/property-zero-width: Likewise.
21596         * modules/unictype/scripts: Likewise.
21597         * modules/unictype/syntax-c-ident: Likewise.
21598         * modules/unictype/syntax-c-whitespace: Likewise.
21599         * modules/unictype/syntax-java-ident: Likewise.
21600         * modules/unictype/syntax-java-whitespace: Likewise.
21601         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21602         * modules/unilbrk/u8-width-linebreaks: Likewise.
21603         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21604         * modules/unilbrk/u16-width-linebreaks: Likewise.
21605         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21606         * modules/unilbrk/u32-width-linebreaks: Likewise.
21607         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21608         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21609         * modules/uniname/uniname: Likewise.
21610         * modules/uninorm/canonical-decomposition: Likewise.
21611         * modules/uninorm/composition: Likewise.
21612         * modules/uninorm/decomposing-form: Likewise.
21613         * modules/uninorm/decomposition: Likewise.
21614         * modules/uninorm/filter: Likewise.
21615         * modules/uninorm/nfc: Likewise.
21616         * modules/uninorm/nfd: Likewise.
21617         * modules/uninorm/nfkc: Likewise.
21618         * modules/uninorm/nfkd: Likewise.
21619         * modules/uninorm/u8-normalize: Likewise.
21620         * modules/uninorm/u8-normcmp: Likewise.
21621         * modules/uninorm/u8-normcoll: Likewise.
21622         * modules/uninorm/u8-normxfrm: Likewise.
21623         * modules/uninorm/u16-normalize: Likewise.
21624         * modules/uninorm/u16-normcmp: Likewise.
21625         * modules/uninorm/u16-normcoll: Likewise.
21626         * modules/uninorm/u16-normxfrm: Likewise.
21627         * modules/uninorm/u32-normalize: Likewise.
21628         * modules/uninorm/u32-normcmp: Likewise.
21629         * modules/uninorm/u32-normcoll: Likewise.
21630         * modules/uninorm/u32-normxfrm: Likewise.
21631         * modules/unistdio/u8-asnprintf: Likewise.
21632         * modules/unistdio/u8-asprintf: Likewise.
21633         * modules/unistdio/u8-snprintf: Likewise.
21634         * modules/unistdio/u8-sprintf: Likewise.
21635         * modules/unistdio/u8-u8-asnprintf: Likewise.
21636         * modules/unistdio/u8-u8-asprintf: Likewise.
21637         * modules/unistdio/u8-u8-snprintf: Likewise.
21638         * modules/unistdio/u8-u8-sprintf: Likewise.
21639         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21640         * modules/unistdio/u8-u8-vasprintf: Likewise.
21641         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21642         * modules/unistdio/u8-u8-vsprintf: Likewise.
21643         * modules/unistdio/u8-vasnprintf: Likewise.
21644         * modules/unistdio/u8-vasprintf: Likewise.
21645         * modules/unistdio/u8-vsnprintf: Likewise.
21646         * modules/unistdio/u8-vsprintf: Likewise.
21647         * modules/unistdio/u16-asnprintf: Likewise.
21648         * modules/unistdio/u16-asprintf: Likewise.
21649         * modules/unistdio/u16-snprintf: Likewise.
21650         * modules/unistdio/u16-sprintf: Likewise.
21651         * modules/unistdio/u16-u16-asnprintf: Likewise.
21652         * modules/unistdio/u16-u16-asprintf: Likewise.
21653         * modules/unistdio/u16-u16-snprintf: Likewise.
21654         * modules/unistdio/u16-u16-sprintf: Likewise.
21655         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21656         * modules/unistdio/u16-u16-vasprintf: Likewise.
21657         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21658         * modules/unistdio/u16-u16-vsprintf: Likewise.
21659         * modules/unistdio/u16-vasnprintf: Likewise.
21660         * modules/unistdio/u16-vasprintf: Likewise.
21661         * modules/unistdio/u16-vsnprintf: Likewise.
21662         * modules/unistdio/u16-vsprintf: Likewise.
21663         * modules/unistdio/u32-asnprintf: Likewise.
21664         * modules/unistdio/u32-asprintf: Likewise.
21665         * modules/unistdio/u32-snprintf: Likewise.
21666         * modules/unistdio/u32-sprintf: Likewise.
21667         * modules/unistdio/u32-u32-asnprintf: Likewise.
21668         * modules/unistdio/u32-u32-asprintf: Likewise.
21669         * modules/unistdio/u32-u32-snprintf: Likewise.
21670         * modules/unistdio/u32-u32-sprintf: Likewise.
21671         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21672         * modules/unistdio/u32-u32-vasprintf: Likewise.
21673         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21674         * modules/unistdio/u32-u32-vsprintf: Likewise.
21675         * modules/unistdio/u32-vasnprintf: Likewise.
21676         * modules/unistdio/u32-vasprintf: Likewise.
21677         * modules/unistdio/u32-vsnprintf: Likewise.
21678         * modules/unistdio/u32-vsprintf: Likewise.
21679         * modules/unistdio/ulc-asnprintf: Likewise.
21680         * modules/unistdio/ulc-asprintf: Likewise.
21681         * modules/unistdio/ulc-fprintf: Likewise.
21682         * modules/unistdio/ulc-snprintf: Likewise.
21683         * modules/unistdio/ulc-sprintf: Likewise.
21684         * modules/unistdio/ulc-vasnprintf: Likewise.
21685         * modules/unistdio/ulc-vasprintf: Likewise.
21686         * modules/unistdio/ulc-vfprintf: Likewise.
21687         * modules/unistdio/ulc-vsnprintf: Likewise.
21688         * modules/unistdio/ulc-vsprintf: Likewise.
21689         * modules/unistr/u8-check: Likewise.
21690         * modules/unistr/u8-chr: Likewise.
21691         * modules/unistr/u8-cmp: Likewise.
21692         * modules/unistr/u8-cmp2: Likewise.
21693         * modules/unistr/u8-cpy: Likewise.
21694         * modules/unistr/u8-cpy-alloc: Likewise.
21695         * modules/unistr/u8-endswith: Likewise.
21696         * modules/unistr/u8-mblen: Likewise.
21697         * modules/unistr/u8-mbsnlen: Likewise.
21698         * modules/unistr/u8-mbtouc: Likewise.
21699         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21700         * modules/unistr/u8-mbtoucr: Likewise.
21701         * modules/unistr/u8-move: Likewise.
21702         * modules/unistr/u8-next: Likewise.
21703         * modules/unistr/u8-prev: Likewise.
21704         * modules/unistr/u8-set: Likewise.
21705         * modules/unistr/u8-startswith: Likewise.
21706         * modules/unistr/u8-stpcpy: Likewise.
21707         * modules/unistr/u8-stpncpy: Likewise.
21708         * modules/unistr/u8-strcat: Likewise.
21709         * modules/unistr/u8-strchr: Likewise.
21710         * modules/unistr/u8-strcmp: Likewise.
21711         * modules/unistr/u8-strcoll: Likewise.
21712         * modules/unistr/u8-strcpy: Likewise.
21713         * modules/unistr/u8-strcspn: Likewise.
21714         * modules/unistr/u8-strdup: Likewise.
21715         * modules/unistr/u8-strlen: Likewise.
21716         * modules/unistr/u8-strmblen: Likewise.
21717         * modules/unistr/u8-strmbtouc: Likewise.
21718         * modules/unistr/u8-strncat: Likewise.
21719         * modules/unistr/u8-strncmp: Likewise.
21720         * modules/unistr/u8-strncpy: Likewise.
21721         * modules/unistr/u8-strnlen: Likewise.
21722         * modules/unistr/u8-strpbrk: Likewise.
21723         * modules/unistr/u8-strrchr: Likewise.
21724         * modules/unistr/u8-strspn: Likewise.
21725         * modules/unistr/u8-strstr: Likewise.
21726         * modules/unistr/u8-strtok: Likewise.
21727         * modules/unistr/u8-to-u16: Likewise.
21728         * modules/unistr/u8-to-u32: Likewise.
21729         * modules/unistr/u8-uctomb: Likewise.
21730         * modules/unistr/u16-check: Likewise.
21731         * modules/unistr/u16-chr: Likewise.
21732         * modules/unistr/u16-cmp: Likewise.
21733         * modules/unistr/u16-cmp2: Likewise.
21734         * modules/unistr/u16-cpy: Likewise.
21735         * modules/unistr/u16-cpy-alloc: Likewise.
21736         * modules/unistr/u16-endswith: Likewise.
21737         * modules/unistr/u16-mblen: Likewise.
21738         * modules/unistr/u16-mbsnlen: Likewise.
21739         * modules/unistr/u16-mbtouc: Likewise.
21740         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21741         * modules/unistr/u16-mbtoucr: Likewise.
21742         * modules/unistr/u16-move: Likewise.
21743         * modules/unistr/u16-next: Likewise.
21744         * modules/unistr/u16-prev: Likewise.
21745         * modules/unistr/u16-set: Likewise.
21746         * modules/unistr/u16-startswith: Likewise.
21747         * modules/unistr/u16-stpcpy: Likewise.
21748         * modules/unistr/u16-stpncpy: Likewise.
21749         * modules/unistr/u16-strcat: Likewise.
21750         * modules/unistr/u16-strchr: Likewise.
21751         * modules/unistr/u16-strcmp: Likewise.
21752         * modules/unistr/u16-strcoll: Likewise.
21753         * modules/unistr/u16-strcpy: Likewise.
21754         * modules/unistr/u16-strcspn: Likewise.
21755         * modules/unistr/u16-strdup: Likewise.
21756         * modules/unistr/u16-strlen: Likewise.
21757         * modules/unistr/u16-strmblen: Likewise.
21758         * modules/unistr/u16-strmbtouc: Likewise.
21759         * modules/unistr/u16-strncat: Likewise.
21760         * modules/unistr/u16-strncmp: Likewise.
21761         * modules/unistr/u16-strncpy: Likewise.
21762         * modules/unistr/u16-strnlen: Likewise.
21763         * modules/unistr/u16-strpbrk: Likewise.
21764         * modules/unistr/u16-strrchr: Likewise.
21765         * modules/unistr/u16-strspn: Likewise.
21766         * modules/unistr/u16-strstr: Likewise.
21767         * modules/unistr/u16-strtok: Likewise.
21768         * modules/unistr/u16-to-u32: Likewise.
21769         * modules/unistr/u16-to-u8: Likewise.
21770         * modules/unistr/u16-uctomb: Likewise.
21771         * modules/unistr/u32-check: Likewise.
21772         * modules/unistr/u32-chr: Likewise.
21773         * modules/unistr/u32-cmp: Likewise.
21774         * modules/unistr/u32-cmp2: Likewise.
21775         * modules/unistr/u32-cpy: Likewise.
21776         * modules/unistr/u32-cpy-alloc: Likewise.
21777         * modules/unistr/u32-endswith: Likewise.
21778         * modules/unistr/u32-mblen: Likewise.
21779         * modules/unistr/u32-mbsnlen: Likewise.
21780         * modules/unistr/u32-mbtouc: Likewise.
21781         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21782         * modules/unistr/u32-mbtoucr: Likewise.
21783         * modules/unistr/u32-move: Likewise.
21784         * modules/unistr/u32-next: Likewise.
21785         * modules/unistr/u32-prev: Likewise.
21786         * modules/unistr/u32-set: Likewise.
21787         * modules/unistr/u32-startswith: Likewise.
21788         * modules/unistr/u32-stpcpy: Likewise.
21789         * modules/unistr/u32-stpncpy: Likewise.
21790         * modules/unistr/u32-strcat: Likewise.
21791         * modules/unistr/u32-strchr: Likewise.
21792         * modules/unistr/u32-strcmp: Likewise.
21793         * modules/unistr/u32-strcoll: Likewise.
21794         * modules/unistr/u32-strcpy: Likewise.
21795         * modules/unistr/u32-strcspn: Likewise.
21796         * modules/unistr/u32-strdup: Likewise.
21797         * modules/unistr/u32-strlen: Likewise.
21798         * modules/unistr/u32-strmblen: Likewise.
21799         * modules/unistr/u32-strmbtouc: Likewise.
21800         * modules/unistr/u32-strncat: Likewise.
21801         * modules/unistr/u32-strncmp: Likewise.
21802         * modules/unistr/u32-strncpy: Likewise.
21803         * modules/unistr/u32-strnlen: Likewise.
21804         * modules/unistr/u32-strpbrk: Likewise.
21805         * modules/unistr/u32-strrchr: Likewise.
21806         * modules/unistr/u32-strspn: Likewise.
21807         * modules/unistr/u32-strstr: Likewise.
21808         * modules/unistr/u32-strtok: Likewise.
21809         * modules/unistr/u32-to-u16: Likewise.
21810         * modules/unistr/u32-to-u8: Likewise.
21811         * modules/unistr/u32-uctomb: Likewise.
21812         * modules/uniwbrk/u8-wordbreaks: Likewise.
21813         * modules/uniwbrk/u16-wordbreaks: Likewise.
21814         * modules/uniwbrk/u32-wordbreaks: Likewise.
21815         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21816         * modules/uniwbrk/wordbreak-property: Likewise.
21817         * modules/uniwidth/u8-strwidth: Likewise.
21818         * modules/uniwidth/u8-width: Likewise.
21819         * modules/uniwidth/u16-strwidth: Likewise.
21820         * modules/uniwidth/u16-width: Likewise.
21821         * modules/uniwidth/u32-strwidth: Likewise.
21822         * modules/uniwidth/u32-width: Likewise.
21823         * modules/uniwidth/width: Likewise.
21824         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21825         with $(LIBUNISTRING).
21826         * modules/unicase/ignorable-tests: Likewise.
21827         * modules/unicase/locale-language-tests: Likewise.
21828         * modules/unicase/tolower-tests: Likewise.
21829         * modules/unicase/totitle-tests: Likewise.
21830         * modules/unicase/toupper-tests: Likewise.
21831         * modules/unicase/u8-casecmp-tests: Likewise.
21832         * modules/unicase/u8-casecoll-tests: Likewise.
21833         * modules/unicase/u8-casefold-tests: Likewise.
21834         * modules/unicase/u8-is-cased-tests: Likewise.
21835         * modules/unicase/u8-is-casefolded-tests: Likewise.
21836         * modules/unicase/u8-is-lowercase-tests: Likewise.
21837         * modules/unicase/u8-is-titlecase-tests: Likewise.
21838         * modules/unicase/u8-is-uppercase-tests: Likewise.
21839         * modules/unicase/u8-tolower-tests: Likewise.
21840         * modules/unicase/u8-totitle-tests: Likewise.
21841         * modules/unicase/u8-toupper-tests: Likewise.
21842         * modules/unicase/u16-casecmp-tests: Likewise.
21843         * modules/unicase/u16-casecoll-tests: Likewise.
21844         * modules/unicase/u16-casefold-tests: Likewise.
21845         * modules/unicase/u16-is-cased-tests: Likewise.
21846         * modules/unicase/u16-is-casefolded-tests: Likewise.
21847         * modules/unicase/u16-is-lowercase-tests: Likewise.
21848         * modules/unicase/u16-is-titlecase-tests: Likewise.
21849         * modules/unicase/u16-is-uppercase-tests: Likewise.
21850         * modules/unicase/u16-tolower-tests: Likewise.
21851         * modules/unicase/u16-totitle-tests: Likewise.
21852         * modules/unicase/u16-toupper-tests: Likewise.
21853         * modules/unicase/u32-casecmp-tests: Likewise.
21854         * modules/unicase/u32-casecoll-tests: Likewise.
21855         * modules/unicase/u32-casefold-tests: Likewise.
21856         * modules/unicase/u32-is-cased-tests: Likewise.
21857         * modules/unicase/u32-is-casefolded-tests: Likewise.
21858         * modules/unicase/u32-is-lowercase-tests: Likewise.
21859         * modules/unicase/u32-is-titlecase-tests: Likewise.
21860         * modules/unicase/u32-is-uppercase-tests: Likewise.
21861         * modules/unicase/u32-tolower-tests: Likewise.
21862         * modules/unicase/u32-totitle-tests: Likewise.
21863         * modules/unicase/u32-toupper-tests: Likewise.
21864         * modules/unicase/ulc-casecmp-tests: Likewise.
21865         * modules/unicase/ulc-casecoll-tests: Likewise.
21866         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21867         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21868         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21869         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21870         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21871         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21872         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21873         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21874         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21875         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21876         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21877         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21878         * modules/unictype/bidicategory-byname-tests: Likewise.
21879         * modules/unictype/bidicategory-name-tests: Likewise.
21880         * modules/unictype/bidicategory-of-tests: Likewise.
21881         * modules/unictype/bidicategory-test-tests: Likewise.
21882         * modules/unictype/block-list-tests: Likewise.
21883         * modules/unictype/block-of-tests: Likewise.
21884         * modules/unictype/block-test-tests: Likewise.
21885         * modules/unictype/category-C-tests: Likewise.
21886         * modules/unictype/category-Cc-tests: Likewise.
21887         * modules/unictype/category-Cf-tests: Likewise.
21888         * modules/unictype/category-Cn-tests: Likewise.
21889         * modules/unictype/category-Co-tests: Likewise.
21890         * modules/unictype/category-Cs-tests: Likewise.
21891         * modules/unictype/category-L-tests: Likewise.
21892         * modules/unictype/category-Ll-tests: Likewise.
21893         * modules/unictype/category-Lm-tests: Likewise.
21894         * modules/unictype/category-Lo-tests: Likewise.
21895         * modules/unictype/category-Lt-tests: Likewise.
21896         * modules/unictype/category-Lu-tests: Likewise.
21897         * modules/unictype/category-M-tests: Likewise.
21898         * modules/unictype/category-Mc-tests: Likewise.
21899         * modules/unictype/category-Me-tests: Likewise.
21900         * modules/unictype/category-Mn-tests: Likewise.
21901         * modules/unictype/category-N-tests: Likewise.
21902         * modules/unictype/category-Nd-tests: Likewise.
21903         * modules/unictype/category-Nl-tests: Likewise.
21904         * modules/unictype/category-No-tests: Likewise.
21905         * modules/unictype/category-P-tests: Likewise.
21906         * modules/unictype/category-Pc-tests: Likewise.
21907         * modules/unictype/category-Pd-tests: Likewise.
21908         * modules/unictype/category-Pe-tests: Likewise.
21909         * modules/unictype/category-Pf-tests: Likewise.
21910         * modules/unictype/category-Pi-tests: Likewise.
21911         * modules/unictype/category-Po-tests: Likewise.
21912         * modules/unictype/category-Ps-tests: Likewise.
21913         * modules/unictype/category-S-tests: Likewise.
21914         * modules/unictype/category-Sc-tests: Likewise.
21915         * modules/unictype/category-Sk-tests: Likewise.
21916         * modules/unictype/category-Sm-tests: Likewise.
21917         * modules/unictype/category-So-tests: Likewise.
21918         * modules/unictype/category-Z-tests: Likewise.
21919         * modules/unictype/category-Zl-tests: Likewise.
21920         * modules/unictype/category-Zp-tests: Likewise.
21921         * modules/unictype/category-Zs-tests: Likewise.
21922         * modules/unictype/category-and-not-tests: Likewise.
21923         * modules/unictype/category-and-tests: Likewise.
21924         * modules/unictype/category-byname-tests: Likewise.
21925         * modules/unictype/category-name-tests: Likewise.
21926         * modules/unictype/category-none-tests: Likewise.
21927         * modules/unictype/category-of-tests: Likewise.
21928         * modules/unictype/category-or-tests: Likewise.
21929         * modules/unictype/category-test-withtable-tests: Likewise.
21930         * modules/unictype/combining-class-tests: Likewise.
21931         * modules/unictype/ctype-alnum-tests: Likewise.
21932         * modules/unictype/ctype-alpha-tests: Likewise.
21933         * modules/unictype/ctype-blank-tests: Likewise.
21934         * modules/unictype/ctype-cntrl-tests: Likewise.
21935         * modules/unictype/ctype-digit-tests: Likewise.
21936         * modules/unictype/ctype-graph-tests: Likewise.
21937         * modules/unictype/ctype-lower-tests: Likewise.
21938         * modules/unictype/ctype-print-tests: Likewise.
21939         * modules/unictype/ctype-punct-tests: Likewise.
21940         * modules/unictype/ctype-space-tests: Likewise.
21941         * modules/unictype/ctype-upper-tests: Likewise.
21942         * modules/unictype/ctype-xdigit-tests: Likewise.
21943         * modules/unictype/decimal-digit-tests: Likewise.
21944         * modules/unictype/digit-tests: Likewise.
21945         * modules/unictype/mirror-tests: Likewise.
21946         * modules/unictype/numeric-tests: Likewise.
21947         * modules/unictype/property-alphabetic-tests: Likewise.
21948         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21949         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21950         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21951         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21952         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21953         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21954         * modules/unictype/property-bidi-control-tests: Likewise.
21955         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21956         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21957         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21958         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21959         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21960         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21961         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21962         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21963         * modules/unictype/property-bidi-pdf-tests: Likewise.
21964         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21965         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21966         * modules/unictype/property-byname-tests: Likewise.
21967         * modules/unictype/property-combining-tests: Likewise.
21968         * modules/unictype/property-composite-tests: Likewise.
21969         * modules/unictype/property-currency-symbol-tests: Likewise.
21970         * modules/unictype/property-dash-tests: Likewise.
21971         * modules/unictype/property-decimal-digit-tests: Likewise.
21972         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21973         * modules/unictype/property-deprecated-tests: Likewise.
21974         * modules/unictype/property-diacritic-tests: Likewise.
21975         * modules/unictype/property-extender-tests: Likewise.
21976         * modules/unictype/property-format-control-tests: Likewise.
21977         * modules/unictype/property-grapheme-base-tests: Likewise.
21978         * modules/unictype/property-grapheme-extend-tests: Likewise.
21979         * modules/unictype/property-grapheme-link-tests: Likewise.
21980         * modules/unictype/property-hex-digit-tests: Likewise.
21981         * modules/unictype/property-hyphen-tests: Likewise.
21982         * modules/unictype/property-id-continue-tests: Likewise.
21983         * modules/unictype/property-id-start-tests: Likewise.
21984         * modules/unictype/property-ideographic-tests: Likewise.
21985         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21986         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21987         * modules/unictype/property-ignorable-control-tests: Likewise.
21988         * modules/unictype/property-iso-control-tests: Likewise.
21989         * modules/unictype/property-join-control-tests: Likewise.
21990         * modules/unictype/property-left-of-pair-tests: Likewise.
21991         * modules/unictype/property-line-separator-tests: Likewise.
21992         * modules/unictype/property-logical-order-exception-tests: Likewise.
21993         * modules/unictype/property-lowercase-tests: Likewise.
21994         * modules/unictype/property-math-tests: Likewise.
21995         * modules/unictype/property-non-break-tests: Likewise.
21996         * modules/unictype/property-not-a-character-tests: Likewise.
21997         * modules/unictype/property-numeric-tests: Likewise.
21998         * modules/unictype/property-other-alphabetic-tests: Likewise.
21999         * modules/unictype/property-other-default-ignorable-code-point-tests:
22000         Likewise.
22001         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22002         * modules/unictype/property-other-id-continue-tests: Likewise.
22003         * modules/unictype/property-other-id-start-tests: Likewise.
22004         * modules/unictype/property-other-lowercase-tests: Likewise.
22005         * modules/unictype/property-other-math-tests: Likewise.
22006         * modules/unictype/property-other-uppercase-tests: Likewise.
22007         * modules/unictype/property-paired-punctuation-tests: Likewise.
22008         * modules/unictype/property-paragraph-separator-tests: Likewise.
22009         * modules/unictype/property-pattern-syntax-tests: Likewise.
22010         * modules/unictype/property-pattern-white-space-tests: Likewise.
22011         * modules/unictype/property-private-use-tests: Likewise.
22012         * modules/unictype/property-punctuation-tests: Likewise.
22013         * modules/unictype/property-quotation-mark-tests: Likewise.
22014         * modules/unictype/property-radical-tests: Likewise.
22015         * modules/unictype/property-sentence-terminal-tests: Likewise.
22016         * modules/unictype/property-soft-dotted-tests: Likewise.
22017         * modules/unictype/property-space-tests: Likewise.
22018         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22019         * modules/unictype/property-test-tests: Likewise.
22020         * modules/unictype/property-titlecase-tests: Likewise.
22021         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22022         * modules/unictype/property-unified-ideograph-tests: Likewise.
22023         * modules/unictype/property-uppercase-tests: Likewise.
22024         * modules/unictype/property-variation-selector-tests: Likewise.
22025         * modules/unictype/property-white-space-tests: Likewise.
22026         * modules/unictype/property-xid-continue-tests: Likewise.
22027         * modules/unictype/property-xid-start-tests: Likewise.
22028         * modules/unictype/property-zero-width-tests: Likewise.
22029         * modules/unictype/scripts-tests: Likewise.
22030         * modules/unictype/syntax-c-ident-tests: Likewise.
22031         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22032         * modules/unictype/syntax-java-ident-tests: Likewise.
22033         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22034         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22035         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22036         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22037         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22038         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22039         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22040         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22041         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22042         * modules/uniname/uniname-tests: Likewise.
22043         * modules/uninorm/canonical-decomposition-tests: Likewise.
22044         * modules/uninorm/compat-decomposition-tests: Likewise.
22045         * modules/uninorm/composition-tests: Likewise.
22046         * modules/uninorm/decomposing-form-tests: Likewise.
22047         * modules/uninorm/decomposition-tests: Likewise.
22048         * modules/uninorm/filter-tests: Likewise.
22049         * modules/uninorm/nfc-tests: Likewise.
22050         * modules/uninorm/nfd-tests: Likewise.
22051         * modules/uninorm/nfkc-tests: Likewise.
22052         * modules/uninorm/nfkd-tests: Likewise.
22053         * modules/uninorm/u8-normcmp-tests: Likewise.
22054         * modules/uninorm/u8-normcoll-tests: Likewise.
22055         * modules/uninorm/u16-normcmp-tests: Likewise.
22056         * modules/uninorm/u16-normcoll-tests: Likewise.
22057         * modules/uninorm/u32-normcmp-tests: Likewise.
22058         * modules/uninorm/u32-normcoll-tests: Likewise.
22059         * modules/unistdio/u8-asnprintf-tests: Likewise.
22060         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22061         * modules/unistdio/u8-vasprintf-tests: Likewise.
22062         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22063         * modules/unistdio/u8-vsprintf-tests: Likewise.
22064         * modules/unistdio/u16-asnprintf-tests: Likewise.
22065         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22066         * modules/unistdio/u16-vasprintf-tests: Likewise.
22067         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22068         * modules/unistdio/u16-vsprintf-tests: Likewise.
22069         * modules/unistdio/u32-asnprintf-tests: Likewise.
22070         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22071         * modules/unistdio/u32-vasprintf-tests: Likewise.
22072         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22073         * modules/unistdio/u32-vsprintf-tests: Likewise.
22074         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22075         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22076         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22077         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22078         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22079         * modules/unistr/u8-check-tests: Likewise.
22080         * modules/unistr/u8-chr-tests: Likewise.
22081         * modules/unistr/u8-cmp-tests: Likewise.
22082         * modules/unistr/u8-cmp2-tests: Likewise.
22083         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22084         * modules/unistr/u8-cpy-tests: Likewise.
22085         * modules/unistr/u8-mblen-tests: Likewise.
22086         * modules/unistr/u8-mbsnlen-tests: Likewise.
22087         * modules/unistr/u8-mbtouc-tests: Likewise.
22088         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22089         * modules/unistr/u8-mbtoucr-tests: Likewise.
22090         * modules/unistr/u8-move-tests: Likewise.
22091         * modules/unistr/u8-next-tests: Likewise.
22092         * modules/unistr/u8-prev-tests: Likewise.
22093         * modules/unistr/u8-set-tests: Likewise.
22094         * modules/unistr/u8-stpcpy-tests: Likewise.
22095         * modules/unistr/u8-stpncpy-tests: Likewise.
22096         * modules/unistr/u8-strcat-tests: Likewise.
22097         * modules/unistr/u8-strcmp-tests: Likewise.
22098         * modules/unistr/u8-strcoll-tests: Likewise.
22099         * modules/unistr/u8-strcpy-tests: Likewise.
22100         * modules/unistr/u8-strdup-tests: Likewise.
22101         * modules/unistr/u8-strlen-tests: Likewise.
22102         * modules/unistr/u8-strmblen-tests: Likewise.
22103         * modules/unistr/u8-strmbtouc-tests: Likewise.
22104         * modules/unistr/u8-strncat-tests: Likewise.
22105         * modules/unistr/u8-strncmp-tests: Likewise.
22106         * modules/unistr/u8-strncpy-tests: Likewise.
22107         * modules/unistr/u8-strnlen-tests: Likewise.
22108         * modules/unistr/u8-to-u16-tests: Likewise.
22109         * modules/unistr/u8-to-u32-tests: Likewise.
22110         * modules/unistr/u8-uctomb-tests: Likewise.
22111         * modules/unistr/u16-check-tests: Likewise.
22112         * modules/unistr/u16-chr-tests: Likewise.
22113         * modules/unistr/u16-cmp-tests: Likewise.
22114         * modules/unistr/u16-cmp2-tests: Likewise.
22115         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22116         * modules/unistr/u16-cpy-tests: Likewise.
22117         * modules/unistr/u16-mblen-tests: Likewise.
22118         * modules/unistr/u16-mbsnlen-tests: Likewise.
22119         * modules/unistr/u16-mbtouc-tests: Likewise.
22120         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22121         * modules/unistr/u16-mbtoucr-tests: Likewise.
22122         * modules/unistr/u16-move-tests: Likewise.
22123         * modules/unistr/u16-next-tests: Likewise.
22124         * modules/unistr/u16-prev-tests: Likewise.
22125         * modules/unistr/u16-set-tests: Likewise.
22126         * modules/unistr/u16-stpcpy-tests: Likewise.
22127         * modules/unistr/u16-stpncpy-tests: Likewise.
22128         * modules/unistr/u16-strcat-tests: Likewise.
22129         * modules/unistr/u16-strcmp-tests: Likewise.
22130         * modules/unistr/u16-strcoll-tests: Likewise.
22131         * modules/unistr/u16-strcpy-tests: Likewise.
22132         * modules/unistr/u16-strdup-tests: Likewise.
22133         * modules/unistr/u16-strlen-tests: Likewise.
22134         * modules/unistr/u16-strmblen-tests: Likewise.
22135         * modules/unistr/u16-strmbtouc-tests: Likewise.
22136         * modules/unistr/u16-strncat-tests: Likewise.
22137         * modules/unistr/u16-strncmp-tests: Likewise.
22138         * modules/unistr/u16-strncpy-tests: Likewise.
22139         * modules/unistr/u16-strnlen-tests: Likewise.
22140         * modules/unistr/u16-to-u32-tests: Likewise.
22141         * modules/unistr/u16-to-u8-tests: Likewise.
22142         * modules/unistr/u16-uctomb-tests: Likewise.
22143         * modules/unistr/u32-check-tests: Likewise.
22144         * modules/unistr/u32-chr-tests: Likewise.
22145         * modules/unistr/u32-cmp-tests: Likewise.
22146         * modules/unistr/u32-cmp2-tests: Likewise.
22147         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22148         * modules/unistr/u32-cpy-tests: Likewise.
22149         * modules/unistr/u32-mblen-tests: Likewise.
22150         * modules/unistr/u32-mbsnlen-tests: Likewise.
22151         * modules/unistr/u32-mbtouc-tests: Likewise.
22152         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22153         * modules/unistr/u32-mbtoucr-tests: Likewise.
22154         * modules/unistr/u32-move-tests: Likewise.
22155         * modules/unistr/u32-next-tests: Likewise.
22156         * modules/unistr/u32-prev-tests: Likewise.
22157         * modules/unistr/u32-set-tests: Likewise.
22158         * modules/unistr/u32-stpcpy-tests: Likewise.
22159         * modules/unistr/u32-stpncpy-tests: Likewise.
22160         * modules/unistr/u32-strcat-tests: Likewise.
22161         * modules/unistr/u32-strcmp-tests: Likewise.
22162         * modules/unistr/u32-strcoll-tests: Likewise.
22163         * modules/unistr/u32-strcpy-tests: Likewise.
22164         * modules/unistr/u32-strdup-tests: Likewise.
22165         * modules/unistr/u32-strlen-tests: Likewise.
22166         * modules/unistr/u32-strmblen-tests: Likewise.
22167         * modules/unistr/u32-strmbtouc-tests: Likewise.
22168         * modules/unistr/u32-strncat-tests: Likewise.
22169         * modules/unistr/u32-strncmp-tests: Likewise.
22170         * modules/unistr/u32-strncpy-tests: Likewise.
22171         * modules/unistr/u32-strnlen-tests: Likewise.
22172         * modules/unistr/u32-to-u16-tests: Likewise.
22173         * modules/unistr/u32-to-u8-tests: Likewise.
22174         * modules/unistr/u32-uctomb-tests: Likewise.
22175         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22176         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22177         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22178         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22179         * modules/uniwidth/u8-strwidth-tests: Likewise.
22180         * modules/uniwidth/u8-width-tests: Likewise.
22181         * modules/uniwidth/u16-strwidth-tests: Likewise.
22182         * modules/uniwidth/u16-width-tests: Likewise.
22183         * modules/uniwidth/u32-strwidth-tests: Likewise.
22184         * modules/uniwidth/u32-width-tests: Likewise.
22185         * modules/uniwidth/width-tests: Likewise.
22186
22187 2010-05-18  Richard Jones  <rjones@redhat.com>
22188
22189         doc: users.txt: list hivex
22190         * users.txt: Add hivex.
22191
22192 2010-05-18  Richard Jones  <rjones@redhat.com>
22193
22194         doc: users.txt: list febootstrap
22195         * users.txt: Add febootstrap.
22196
22197 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22198
22199         bootstrap: fix an error when gnulib is not used as a git submodule
22200         * build-aux/bootstrap (gnulib_path): If its length is zero then
22201         assign "gnulib" to it.
22202         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22203
22204 2010-05-16  Bruno Haible  <bruno@clisp.org>
22205
22206         Avoid autoconf warnings about AM_ICONV.
22207         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22208         2.64.
22209
22210 2010-05-16  Bruno Haible  <bruno@clisp.org>
22211
22212         absolute-header: Make the macro usable in more situations.
22213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22214         from gl_ABSOLUTE_HEADER.
22215         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22216
22217 2010-05-16  James Youngman  <jay@gnu.org>
22218
22219         doc: update users.txt
22220         * users.txt: Add CSSC.
22221
22222 2010-05-16  Jim Meyering  <meyering@redhat.com>
22223
22224         init.sh: fix an error in the previous change; add more comments
22225         * tests/init.sh: Compare exit code in loop against 9, not 2.
22226         Patch by Bruno Haible.
22227         Make the two tests more similar by adding an empty "then" clause.
22228         Add comments.
22229
22230         init.sh: avoid unnecessary shell re-exec
22231         * tests/init.sh: Improve the re-exec-required check to first test the
22232         current shell.  If it passes the test, do not search for a shell that
22233         does pass, and do not re-exec.  This test is particularly contorted to
22234         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22235         of $(...) evokes a syntax error and causes immediate shell exit with
22236         status 2.  Bruno Haible reported that the re-exec made it impossible
22237         to single-step through any init.sh-using script.
22238
22239 2010-05-16  Bruno Haible  <bruno@clisp.org>
22240
22241         Fix collision between gnulib's and libintl's printf replacements.
22242         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22243         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22244         (printf): When using GNU C, map the __printf__ function to rpl_printf
22245         via __asm__. When not using GNU C, define rpl_printf instead of
22246         __printf__.
22247         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22248         commit.
22249         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22250         commit.
22251         * m4/asm-underscore.m4: New file.
22252         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22253         * modules/stdio (Files): Add m4/asm-underscore.m4.
22254         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22255         Reported by Ben Pfaff.
22256
22257 2010-05-16  Bruno Haible  <bruno@clisp.org>
22258
22259         verify: Avoid skipping the test on openSUSE 11.0.
22260         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22261
22262 2010-05-13  Bruno Haible  <bruno@clisp.org>
22263
22264         Avoid useless warnings from G++.
22265         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22266         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22267         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22268
22269 2010-05-11  Jim Meyering  <meyering@redhat.com>
22270
22271         maint.mk: tweak preceding change
22272         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22273         regexps tighter by anchoring at EOL, and make the new group "shy"
22274         for slightly decreased overhead.
22275
22276 2010-05-11  Eric Blake  <eblake@redhat.com>
22277
22278         maint.mk: gnulib doesn't guarantee NSIG
22279         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22280
22281 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22282
22283         test-pwrite.c: Remove unused variable declaration.
22284         * tests/test-pwrite.c (main): Remove read_buf declaration.
22285
22286         Remove useless test-pwrite.sh file.
22287         * tests/test-pwrite.sh: Delete file.
22288         * modules/pwrite-tests: Remove references.
22289         Reported by Bruno Haible.
22290
22291 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22292
22293         init.sh: fix a typo
22294         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22295
22296 2010-05-10  Jim Meyering  <meyering@redhat.com>
22297
22298         maint.mk: avoid using a temporary file in the always-defined-macros check
22299         * top/maint.mk (.re-defmac): Remove rule.
22300         (gl_trap_): Remove definition.
22301         (sc_prohibit_always-defined_macros): Rewrite not to create and
22302         depend on a temporary file.  Instead, depend on GNU grep's ability
22303         to read a list of regular expressions from stdin when given "-f -".
22304
22305 2010-05-09  Bruno Haible  <bruno@clisp.org>
22306
22307         Update to GNU gettext 0.18, part 1.
22308         * m4/gettext.m4: Update to GNU gettext 0.18.
22309         * m4/intl.m4: Likewise.
22310         * m4/po.m4: Likewise.
22311         * modules/gettext (Files): Add m4/fcntl-o.m4.
22312         (configure.ac): Require gettext infrastructure from version 0.18.
22313
22314 2010-05-09  Jim Meyering  <meyering@redhat.com>
22315
22316         init.sh: enable MALLOC_PERTURB_
22317         * tests/init.sh: Enable glibc's malloc-perturbing option.
22318
22319         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22320         With my recent change in init.sh from the two-line form:
22321             -#   : ${srcdir=.}
22322             -#   . "$srcdir/init.sh"; path_prepend_ .
22323             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22324         I noticed that using the one-line form would cause this test
22325         to fail with a false-positive, or to stop working altogether,
22326         depending on whether help-version changed or all the tests did.
22327         * top/maint.mk (_hv_regex): Remove this definition.
22328         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22329         (_hv_regex_strong): Use a stronger regex to check for conformance.
22330         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22331         Give a separate diagnostic for lack of conforming use.
22332
22333         maint.mk: prohibit definition of symbols defined by gnulib
22334         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22335         definition of symbols defined by gnulib.
22336
22337 2010-05-09  Bruno Haible  <bruno@clisp.org>
22338
22339         acl: Avoid test failure on Cygwin-hosted mingw.
22340         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22341
22342 2010-05-09  Bruno Haible  <bruno@clisp.org>
22343
22344         error: Use system's fcntl function.
22345         * lib/error.c (fcntl): Undefine.
22346
22347 2010-05-09  Jim Meyering  <meyering@redhat.com>
22348
22349         verify: adjust formatting to be more consistent
22350         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22351         argument-list '('s, and after one comma.
22352
22353 2010-05-09  Bruno Haible  <bruno@clisp.org>
22354
22355         error: More reliable output on mingw.
22356         * lib/error.c: Include <windows.h>.
22357         (is_open): New function.
22358         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22359         defined.
22360
22361 2010-05-09  Bruno Haible  <bruno@clisp.org>
22362
22363         vasnprintf: Fix syntax errors in libintl build on mingw.
22364         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22365         pad_ourselves and prec_ourselves after use.
22366
22367 2010-05-08  Bruno Haible  <bruno@clisp.org>
22368
22369         * lib/config.charset: Update comments for Cygwin 1.7.
22370         * lib/localcharset.c: Likewise.
22371
22372 2010-05-07  Jim Meyering  <meyering@redhat.com>
22373
22374         init.sh: improve comments
22375         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22376         . "${srcdir=.}/init.sh"; path_prepend_ .
22377         Add a note about path_prepend_ and the alternative of using
22378         TESTS_ENVIRONMENT.
22379
22380 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22381
22382         exclude: Unescape hashed patterns in wildcard mode.
22383         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22384         to the hash list.
22385         * tests/test-exclude8.sh: New test case.
22386         * modules/exclude-tests: Add new test.
22387
22388 2010-05-05  Eric Blake  <eblake@redhat.com>
22389
22390         verify: automate tests
22391         * modules/verify-tests: New module.
22392         * tests/test-verify.sh: New file.
22393         * tests/test-verify.c: Guard each negative test with a unique id.
22394         Also avoid warning about unused left hand of comma expressions.
22395
22396 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22397
22398         Further improvements to verify.h, suggested by Eric Blake.
22399         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22400         the GL_* versions, to avoid collision with OpenGL.
22401         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22402         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22403         than testing merely whether it's defined.
22404
22405         Modify verify.h to pacify gcc -Wredundant_decls.
22406         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22407         These use the prefix "GL_" since they're likely to be useful elsewhere.
22408         We may need to break them out into a different .h file.
22409         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22410         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22411         of verify_function__.
22412
22413 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22414
22415         Tests for module pwrite.
22416         * modules/pwrite-tests: New file.
22417         * tests/test-pwrite.sh: New file.
22418         * tests/test-pwrite.c: New file.
22419
22420         New module pwrite.
22421         * lib/unistd.in.h (pwrite): New declaration.
22422         * lib/pwrite.c: New file, from glibc with modifications.
22423         * m4/pwrite.m4: New file.
22424         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22425         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22426         REPLACE_PWRITE.
22427         * modules/pwrite: New file.
22428         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22429         REPLACE_PWRITE.
22430         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22431         * doc/posix-functions/pwrite.texi: Mention the new module.
22432
22433 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22434
22435         pread: Update documentation.
22436         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22437
22438 2010-05-04  Eric Blake  <eblake@redhat.com>
22439
22440         docs: update cygwin progress
22441         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22442         this bug.
22443         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22444         Added in cygwin 1.7.2.
22445         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22446         Likewise.
22447         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22448         Likewise.
22449         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22450         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22451         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22452         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22453         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22454         Mention nproc module.
22455         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22456         bug in cygwin 1.7.5 addition.
22457         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22458         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22459         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22460         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22461         1.7.5.
22462         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22463         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22464         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22465         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22466         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22467         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22468         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22469         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22470         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22471         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22472         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22473         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22474         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22475         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22476         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22477         Likewise.
22478         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22479         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22480         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22481         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22482         Likewise.
22483         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22484         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22485         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22486         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22487         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22488         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22489         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22490         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22491         Likewise.
22492         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22493         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22494         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22495         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22496         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22497         Likewise.
22498         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22499         Likewise.
22500         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22501         Likewise.
22502         * doc/glibc-functions/xdrrec_endofrecord.texi
22503         (xdrrec_endofrecord): Likewise.
22504         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22505         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22506         Likewise.
22507         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22508         Likewise.
22509
22510 2010-05-04  Jim Meyering  <meyering@redhat.com>
22511
22512         gendocs.sh: make its "-s FILE" option more useful
22513         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22514         $PACKAGE to reflect the probably-different basename of "FILE".
22515
22516 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22517
22518         bootstrap: don't ignore download_po_files failure
22519         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22520         failure.
22521
22522 2010-05-03  Jim Meyering  <meyering@redhat.com>
22523
22524         maint.mk: allow to pass options to gendocs.sh
22525         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22526         (gendocs_options_): New overridable variable.
22527
22528         gnu-web-doc-update: don't ignore configure or build failure
22529         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22530
22531         announce-gen: backslash-escape '@'s in --help output
22532         * build-aux/announce-gen: Fix syntax errors.
22533
22534         maint.mk, announce-gen: allow project-specific announcement mail headers
22535         * top/maint.mk (translation_project_): Define default.
22536         (announcement_Cc_, announcement_mail_headers_): Likewise.
22537         (announcement): Invoke announce-gen with new --mail-headers option.
22538         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22539
22540         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22541         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22542         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22543         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22544         line in the "err2" output file when running "make check" in verbose
22545         mode (i.e., with set -x enabled).
22546
22547 2010-05-03  Bruno Haible  <bruno@clisp.org>
22548
22549         wctob: Fix for weird platforms.
22550         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22551         argument value.
22552
22553 2010-05-03  Jim Meyering  <meyering@redhat.com>
22554
22555         maint.mk: prohibit unwarranted use of <strings.h>
22556         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22557         strings.h in a file that does not also use strcasecmp, strncasecmp,
22558         ffs or ffsll.
22559
22560         maint.mk: remove obsolete comments
22561         * top/maint.mk: Remove stale, commented-out rules.
22562
22563 2010-05-02  Bruno Haible  <bruno@clisp.org>
22564
22565         wcwidth: Declare also when it's aliased.
22566         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22567         macro.
22568
22569 2010-05-02  Bruno Haible  <bruno@clisp.org>
22570
22571         Fix regression from 2010-04-25.
22572         * gnulib-tool (func_modules_transitive_closure): Check the status of
22573         all modules, not only of the tests that are of the form foo-tests where
22574         foo is a module.
22575
22576 2010-05-02  Bruno Haible  <bruno@clisp.org>
22577
22578         wctob: Work around nasty Cygwin 1.7.2 bug.
22579         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22580         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22581
22582 2010-05-01  Bruno Haible  <bruno@clisp.org>
22583
22584         fpurge: Sharper test.
22585         * tests/test-fpurge.c (main): Add one more ftell check.
22586         * modules/fpurge-tests (Depends-on): Add ftell.
22587         Suggested by Eric Blake.
22588
22589 2010-05-01  Bruno Haible  <bruno@clisp.org>
22590
22591         ftello: Another test.
22592         * tests/test-ftello3.c: New file.
22593         * modules/ftello-tests (Files): Add it.
22594         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22595         MOSTLYCLEANFILES.
22596
22597         ftell: Another test.
22598         * tests/test-ftell3.c: New file.
22599         * modules/ftell-tests (Files): Add it.
22600         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22601         MOSTLYCLEANFILES.
22602
22603 2010-05-01  Bruno Haible  <bruno@clisp.org>
22604
22605         ftell, ftello: Work around Solaris bug.
22606         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22607         * lib/ftello.c: Include stdio-impl.h.
22608         (ftello): On Solaris, when _IOWRT is set, compute the result without
22609         looking at _IOREAD.
22610         * modules/ftello (Files): Add lib/stdio-impl.h.
22611         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22612         * doc/posix-functions/ftello.texi: Likewise.
22613         Reported by Eric Blake.
22614
22615 2010-05-01  Bruno Haible  <bruno@clisp.org>
22616
22617         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22618         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22619         the _IOWRT flag is also set.
22620
22621 2010-05-01  Bruno Haible  <bruno@clisp.org>
22622
22623         Fix doc about a HP-UX stdio bug.
22624         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22625         * doc/posix-functions/ftello.texi: Likewise.
22626
22627 2010-05-01  Bruno Haible  <bruno@clisp.org>
22628
22629         lseek test: Fix failure on Solaris.
22630         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22631         output.
22632
22633 2010-04-30  Jim Meyering  <meyering@redhat.com>
22634
22635         bootstrap: don't ignore failure to generate po*/Makevars
22636         * build-aux/bootstrap (with_gettext): Don't ignore failure
22637         to create po/Makevars or runtime-po/Makevars.
22638
22639 2010-04-29  Eric Blake  <eblake@redhat.com>
22640
22641         headers: relax license to LGPLv2+
22642         * modules/fcntl-h (License): Relax license.
22643         * modules/getopt-posix (License): Likewise.
22644         * modules/locale (License): Likewise.
22645         * modules/math (License): Likewise.
22646         * modules/pty (License): Likewise.
22647         * modules/sched (License): Likewise.
22648         * modules/search (License): Likewise.
22649         * modules/spawn (License): Likewise.
22650         * modules/stdarg (License): Likewise.
22651         * modules/sysexits (License): Likewise.
22652
22653 2010-04-29  Jim Meyering  <meyering@redhat.com>
22654
22655         inttypes: relax license to LGPLv2+
22656         * modules/inttypes (License): Relax license.
22657
22658 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22659
22660         * top/maint.mk (indent): Run twice to produce idempotent results.
22661
22662 2010-04-28  Bruno Haible  <bruno@clisp.org>
22663
22664         getdate: Generate getdate.c in the source directory.
22665         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22666         MOSTLYCLEANFILES.
22667         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22668
22669 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22670
22671         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22672         is not declared as a const *; avoid warnings in that case.
22673
22674 2010-04-28  Eric Blake  <eblake@redhat.com>
22675
22676         canonicalize-lgpl: avoid compiler warning
22677         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22678         declaration' / 'extraneous semicolon' warning with some compilers.
22679         Reported by Andreas Gruenbacher.
22680
22681 2010-04-28  Jim Meyering  <meyering@redhat.com>
22682
22683         init.sh: ensure a more reliable exit status when exiting via trap
22684         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22685         Inspired by patches from Dmitry V. Levin.
22686         Also trap on signal 3 (SIGQUIT).
22687
22688 2010-04-27  Bruno Haible  <bruno@clisp.org>
22689
22690         Update doc about utimes().
22691         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22692         'utimens' module.
22693         Reported by Andreas Gruenbacher <agruen@suse.de>.
22694
22695 2010-04-27  Eric Blake  <eblake@redhat.com>
22696
22697         full-read, full-write: relax license
22698         * modules/full-read (License): Drop to LGPLv2+.
22699         * modules/full-write (License): Likewise.
22700         * modules/safe-read (License): Likewise.
22701         * modules/safe-write (License): Likewise.
22702
22703         pthread: mention library for linking
22704         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22705
22706 2010-04-27  Jim Meyering  <meyering@redhat.com>
22707
22708         maint.mk: fix a bug introduced in last change
22709         * top/maint.mk (gl_assured_headers_): Now that all names are on
22710         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22711         is not anchored to end of word, it should be adequate.
22712
22713         maint.mk: avoid side-effect in latest syntax-check
22714         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22715         to run commands via $(shell...), and hence to incur cost only when
22716         the new rule is actually run.
22717
22718         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22719         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22720         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22721         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22722         (gl_assured_headers_, az_, AZ_): Define.
22723         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22724
22725 2010-04-26  Jim Meyering  <jim@meyering.net>
22726             Bruno Haible  <bruno@clisp.org>
22727
22728         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22730         Prompted by an exchange with Gilles Espinasse.
22731
22732 2010-04-26  Jim Meyering  <meyering@redhat.com>
22733
22734         git-version-gen: aesthetic tweak
22735         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22736         so that the command remains on a single line.
22737
22738 2010-04-26  Eric Blake  <eblake@redhat.com>
22739
22740         git-version-gen: allow use on EBCDIC hosts
22741         * build-aux/git-version-gen (dirty): Use literal rather than tying
22742         ourselves to ascii.
22743         Reported by Steve Goetze.
22744
22745 2010-04-25  Bruno Haible  <bruno@clisp.org>
22746
22747         netdb: Add support for GNULIB_POSIXCHECK.
22748         * lib/netdb.in.h: Include warn-on-use.h.
22749         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22750         functions are used when GNULIB_POSIXCHECK is defined and the
22751         getaddrinfo module is not in use.
22752         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22753         freeaddrinfo, gai_strerror, getnameinfo are declared.
22754         * modules/netdb (Depends-on): Add warn-on-use.
22755         (Makefile.am): Include warn-on-use.h in netdb.h.
22756
22757 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22758
22759         build: avoid "make check" failure without .git/ directory
22760         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22761         there is no .git/ directory.
22762
22763 2010-04-25  Bruno Haible  <bruno@clisp.org>
22764
22765         ptsname: Fix misuse of ttyname_r.
22766         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22767         of errno.
22768
22769 2010-04-25  Bruno Haible  <bruno@clisp.org>
22770
22771         ttyname_r: Make it work on Solaris 10.
22772         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22773         if the system function has the POSIX declaration. Test whether the
22774         function fails if the buffer is less than 128 bytes large.
22775         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22776         system's ttyname_r function. Provide a reasonably large buffer.
22777         * modules/ttyname_r (Depends-on): Add extensions.
22778         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22779
22780 2010-04-25  Bruno Haible  <bruno@clisp.org>
22781
22782         Use the 'extensions' module for some more functions on Solaris.
22783         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22784         module.
22785         * doc/posix-functions/ctime_r.texi: Likewise.
22786         * doc/posix-functions/getgrgid_r.texi: Likewise.
22787         * doc/posix-functions/getgrnam_r.texi: Likewise.
22788         * doc/posix-functions/getpwnam_r.texi: Likewise.
22789         * doc/posix-functions/getpwuid_r.texi: Likewise.
22790         * doc/posix-functions/readdir_r.texi: Likewise.
22791         * doc/posix-functions/sigwait.texi: Likewise.
22792         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22793         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22794
22795 2010-04-25  Bruno Haible  <bruno@clisp.org>
22796
22797         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22798         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22799         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22800         * lib/ttyname_r.c: Include <limits.h>.
22801         (ttyname_r): Define using the system's ttyname_r function, if it exists
22802         and not on Solaris.
22803         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22804         set.
22805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22806         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22807         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22808         Reported by Simon Josefsson.
22809
22810 2010-04-25  Bruno Haible  <bruno@clisp.org>
22811
22812         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22813         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22814         * doc/posix-functions/ctime_r.texi: Likewise.
22815         * doc/posix-functions/getgrgid_r.texi: Likewise.
22816         * doc/posix-functions/getgrnam_r.texi: Likewise.
22817         * doc/posix-functions/getlogin_r.texi: Likewise.
22818         * doc/posix-functions/getpwnam_r.texi: Likewise.
22819         * doc/posix-functions/getpwuid_r.texi: Likewise.
22820         * doc/posix-functions/readdir_r.texi: Likewise.
22821         * doc/posix-functions/sigwait.texi: Likewise.
22822         * doc/posix-functions/ttyname_r.texi: Likewise.
22823         Reported by Simon Josefsson.
22824
22825 2010-04-25  Bruno Haible  <bruno@clisp.org>
22826
22827         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22828         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22829         also to --create-testdir.
22830         (func_acceptable): Don't consider the status of *-tests modules here.
22831         (func_modules_transitive_closure): Consider it here, before including a
22832         test module.
22833         (func_import, func_create_testdir): Set inc_all_direct_tests,
22834         inc_all_indirect_tests.
22835         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22836         --create-testdir and --create-megatestdir.
22837
22838 2010-04-25  Bruno Haible  <bruno@clisp.org>
22839
22840         gnulib-tool: Add --without-*-tests options.
22841         * gnulib-tool (func_usage): Document the --without-*-tests options.
22842         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22843         excl_unportable_tests): New variables.
22844         Fail if they are specified with --import or --update.
22845         (func_acceptable): Respect the excl_*_tests variables.
22846         (func_import): Set the excl_*_tests variables to empty.
22847
22848 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22849             Bruno Haible  <bruno@clisp.org>
22850
22851         Work around a MacOS X 10.4 bug with openpty.
22852         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22853         * tests/test-openpty.c (main): Close the master side explicitly.
22854
22855 2010-04-25  Bruno Haible  <bruno@clisp.org>
22856
22857         strnlen: Fix a C++ test error on MacOS X and Solaris.
22858         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22859         the function is not declared.
22860         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22861         Simon Josefsson.
22862
22863 2010-04-24  Bruno Haible  <bruno@clisp.org>
22864
22865         Avoid a gcc warning.
22866         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22867         of correct type for %08lx directive.
22868         Reported by Eric Blake.
22869
22870 2010-04-24  Bruno Haible  <bruno@clisp.org>
22871
22872         vasnprintf: Correct errno value in case of out-of-memory.
22873         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22874         or sprintf. Use the errno value from SNPRINTF or sprintf.
22875         Reported by Ian Beckwith <ianb@erislabs.net>.
22876
22877 2010-04-24  Bruno Haible  <bruno@clisp.org>
22878
22879         ansi-c++-opt: Find correct compiler when cross-compiling.
22880         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22881         AC_CHECK_PROGS.
22882         Reported by Simon Josefsson.
22883
22884 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22885
22886         vc-list-files: Add support for subversion
22887         * build-aux/vc-list-files: Use "svn list" to generate the list of
22888         files controlled by subversion.
22889
22890 2010-04-23  Jim Meyering  <meyering@redhat.com>
22891
22892         vc-list-files tests: convert to use init.sh
22893         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22894         path_prepend_.
22895         Use Exit, not exit.
22896         Use skip_ rather than open coding it.
22897         Remove trap set-up and compare definitions.
22898         * tests/test-vc-list-files-git.sh: Likewise.
22899         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22900
22901 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22902
22903         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22904         backup files.
22905
22906 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22907
22908         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22909
22910 2010-04-20  Eric Blake  <eblake@redhat.com>
22911
22912         tests: be robust to ignored SIGPIPE
22913         * tests/test-select-in.sh: Consume all output.
22914         * tests/test-lseek.sh: Check correct exit status, while avoiding
22915         EPIPE.
22916
22917 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22918             Bruno Haible  <bruno@clisp.org>
22919
22920         visibility: Don't use -fvisibility if it leads to a warning.
22921         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22922         yes, don't pretend that visibility works if it leads to a warning.
22923         Reported by Mike Gran <spk121@yahoo.com>.
22924
22925 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22926
22927         * build-aux/bootstrap: Use "git -h" for testing for supported options
22928         instead of "git --help".  The short-form option only shows a summary,
22929         and doesn't layout the full man page.  Grep for the full option name
22930         in the summary, too.
22931
22932 2010-04-19  Bruno Haible  <bruno@clisp.org>
22933
22934         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22936         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22937         mention of RELOCATABLE_STRIP.
22938         Reported by Sylvain Beucler <beuc@beuc.net>.
22939
22940 2010-04-19  Bruno Haible  <bruno@clisp.org>
22941
22942         * lib/diffseq.h: Fix typo in comment.
22943         Reported by Eric Blake.
22944
22945 2010-04-19  Bruno Haible  <bruno@clisp.org>
22946
22947         ioctl: Move autoconf macro to a .m4 file.
22948         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22949         * modules/ioctl (Files): Add it.
22950         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22951         Reported by Ian Beckwith <ianb@erislabs.net>.
22952
22953 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22954             Bruno Haible  <bruno@clisp.org>
22955
22956         diffseq: Accommodate use-case with abstract arrays.
22957         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22958         is not defined.
22959         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22960         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22961
22962 2010-04-18  Bruno Haible  <bruno@clisp.org>
22963
22964         * doc/posix-headers/stdbool.texi: More precise wording.
22965
22966 2010-04-17  Jim Meyering  <meyering@redhat.com>
22967
22968         maint.mk: use gnu-style indentation in an embedded perl script
22969         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22970         Rename variable: s/two/last_two_bytes/
22971
22972 2010-04-16  Eric Blake  <eblake@redhat.com>
22973
22974         test-stdbool: skip test that fails with Solaris CC
22975         * tests/test-stdbool.c (f): Skip test that causes compilation
22976         error under buggy C++ compiler.
22977         * lib/stdbool.in.h: Document the limitation.
22978         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22979
22980         setenv: allow compilation with C++
22981         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22982         register keyword.
22983
22984         stdint: allow test to pass with C++
22985         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22986
22987         getopt: allow compilation with C++
22988         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22989         struct.
22990         * lib/getopt.c (_getopt_internal_r): Use correct type.
22991         Reported by Dagobert Michelson, via Joel E. Denny.
22992
22993 2010-04-16  Bruno Haible  <bruno@clisp.org>
22994
22995         Override netdb.h always.
22996         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22997         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22998         Reported by Ludovic Courtès <ludo@gnu.org>.
22999
23000 2010-04-15  Bruno Haible  <bruno@clisp.org>
23001
23002         openpty: Fix mistake from 2010-03-21.
23003         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23004         Reported by Simon Josefsson.
23005
23006 2010-04-15  Eric Blake  <eblake@redhat.com>
23007
23008         test-forkpty: fix expected signature
23009         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23010         Reported by Simon Josefsson.
23011
23012 2010-04-15  Jim Meyering  <meyering@redhat.com>
23013
23014         maint.mk: texinfo_suffix_re_: correct the default regexp
23015         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23016
23017         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23018         make it configurable via texinfo_suffix_re_.
23019
23020 2010-04-14  Eric Blake  <eblake@redhat.com>
23021
23022         strtok_r: relax license to LGPLv2+
23023         * modules/strtok_r (License): Relax license.
23024         Reported by Matthias Bolte.
23025
23026 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23027
23028         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23029         version 1.4.4 by default instead of requiring the libgcrypt
23030         version used during build.  This makes it possible to use the
23031         application with older but still binary compatible libgcrypt
23032         versions.
23033
23034 2010-04-13  Eric Blake  <eblake@redhat.com>
23035
23036         getopt-gnu: match recent glibc fixes and posix ruling
23037         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23038         '+' handling, when requesting extensions.
23039         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23040         'W;' handling.
23041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23042         * doc/posix-functions/getopt.texi (getopt): Document this.
23043         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23044         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23045         Likewise.
23046
23047         getopt: merge bug fixes from glibc
23048         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23049         diagnostics.  Honor '+:' correctly.  Reject ';'.
23050
23051         getopt-posix: detect MacOS bug
23052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23053         optind when missing a required argument.
23054         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23055         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23056         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23057         Likewise.
23058
23059         getopt-posix: avoid spurious failure on Solaris
23060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23061         an indicator that setting optind=1 is sufficient for reset.
23062
23063         getopt-posix: avoid spurious failure on FreeBSD
23064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23065         in POSIX mode, since the m4 test uses it.
23066
23067         gnulib-tool: silence warning on BSD sh
23068         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23069
23070 2010-04-13  Jim Meyering  <meyering@redhat.com>
23071
23072         doc: users.txt: GNU patch now uses gnulib
23073         * users.txt: Add patch.
23074
23075 2010-04-12  Jim Meyering  <meyering@redhat.com>
23076
23077         maint.mk: generate more concise timing data for syntax-check rules
23078         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23079         " done" from each line that reports a syntax-check test duration.
23080
23081 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23082
23083         git-version-gen: use "git update-index..." rather than "git status"
23084         * build-aux/git-version-gen: Use git update-index --refresh, not
23085         "git status".  With some versions of git, "git status" would fail
23086         to update the index and result in an unwarranted "-dirty" suffix.
23087
23088 2010-04-11  Jim Meyering  <meyering@redhat.com>
23089
23090         openat: correct formatting (no semantic change)
23091         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23092         Suggested by Bruno Haible.
23093
23094 2010-04-11  Bruno Haible  <bruno@clisp.org>
23095
23096         Stricter declaration checking in testdirs.
23097         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23098         If for_tests is true, augment AM_CPPFLAGS to define
23099         GNULIB_STRICT_CHECKING.
23100         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23101         GNULIB_STRICT_CHECKING is defined, verify that the function is
23102         declared.
23103
23104 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23105             Bruno Haible  <bruno@clisp.org>
23106
23107         libunistring: Improve configure output.
23108         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23109         Don't say "consider installing GNU libunistring" when checking again
23110         with libiconv.
23111
23112 2010-04-11  Bruno Haible  <bruno@clisp.org>
23113
23114         libunistring: Correct value of $LTLIBUNISTRING.
23115         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23116         correct the value of $LTLIBUNISTRING.
23117
23118 2010-04-11  Bruno Haible  <bruno@clisp.org>
23119
23120         havelib: Add static libraries to LIBS in the right order.
23121         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23122         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23123
23124 2010-04-11  Bruno Haible  <bruno@clisp.org>
23125
23126         libunistring: Detect libunistring also when it depends on libiconv.
23127         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23128         the second AC_LIB_HAVE_LINKFLAGS invocation.
23129
23130 2010-04-11  James Youngman  <jay@gnu.org>
23131
23132         close-stream: declare local scalars to be "const"
23133         * lib/close-stream.c (close_stream): Make boolean variables const
23134         to document the fact that we set but do not change them.
23135
23136 2010-04-11  Bruno Haible  <bruno@clisp.org>
23137
23138         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23139
23140 2010-04-11  Jim Meyering  <meyering@redhat.com>
23141
23142         maint.mk: don't include dist-check.mk
23143         * top/maint.mk: Remove bogus include directive.
23144
23145         maint.mk: improve empty-line-at-EOF check
23146         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23147         solution, rather than tail+Perl-based one.  The latter would read
23148         a few kilobytes from the end of each file, and did not handle empty
23149         files properly.
23150
23151         maint.mk: print the elapsed time for each syntax-check rule
23152         * top/maint.mk (sc_m_rules_): Save start time in a file.
23153         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23154         (local-check): Interpose the .z rules
23155
23156 2010-04-11  Jim Meyering  <meyering@redhat.com>
23157
23158         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23159         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23160         empty file with one that ends in an empty line.
23161
23162 2010-04-10  Bruno Haible  <bruno@clisp.org>
23163
23164         mkdir: Make it work on mingw64.
23165         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23166         * lib/mkdir.c: Update comment.
23167         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23168
23169 2010-04-10  Bruno Haible  <bruno@clisp.org>
23170
23171         Don't override improved macro from newer autoconf.
23172         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23173         autoconf >= 2.62.
23174         Reported by Joel E. Denny <jdenny@clemson.edu>.
23175
23176 2010-04-10  Jim Meyering  <meyering@redhat.com>
23177
23178         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23179         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23180
23181         maint.mk: correct a diagnostic
23182         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23183         in diagnostic; now use $prohibit.
23184
23185 2010-04-10  Bruno Haible  <address@hidden>
23186
23187         fchownat: Fix a C++ test error on Solaris 8.
23188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23189         the function does not exist.
23190
23191 2010-04-10  Bruno Haible  <bruno@clisp.org>
23192
23193         vasnprintf: Add more tests.
23194         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23195         (test_function): Test converting an invalid wide string.
23196
23197         vasnprintf: Correct handling of unconvertible wide string arguments.
23198         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23199         VASNPRINTF.
23200         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23201         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23202         smaller than the expected maximum need for the directive. Set errno to
23203         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23204         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23206         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23207         * modules/vasnprintf (Files): Add m4/printf.m4.
23208         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23209
23210 2010-04-10  Bruno Haible  <bruno@clisp.org>
23211
23212         vasnprintf: Fix crash in %ls directive.
23213         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23214         string is passed as argument to %ls, with no precision and no width.
23215         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23216
23217 2010-04-10  Bruno Haible  <bruno@clisp.org>
23218
23219         vasnprintf: Fix multiple test failures on mingw.
23220         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23221         _snprintf, or snwprintf, not _snwprintf.
23222
23223 2010-04-10  Bruno Haible  <bruno@clisp.org>
23224
23225         write: Fix a C++ test error on mingw.
23226         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23227
23228 2010-04-10  Bruno Haible  <bruno@clisp.org>
23229
23230         vasnprintf test: Reduce code duplication.
23231         * tests/test-vasnprintf.c (test_function): New function, extracted from
23232         test_vasnprintf.
23233         (test_vasnprintf, test_asnprintf): Invoke it.
23234
23235 2010-04-10  Bruno Haible  <bruno@clisp.org>
23236
23237         strnlen: Fix warning in C++ mode on MacOS X.
23238         * lib/string.in.h (strnlen): Use the modern idiom.
23239         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23240         defining strnlen as a macro already in <config.h>.
23241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23242         REPLACE_STRNLEN.
23243         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23245
23246 2010-04-08  James Youngman  <jay@gnu.org>
23247
23248         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23249         the example.
23250
23251 2010-04-09  Jim Meyering  <meyering@redhat.com>
23252
23253         maint.mk: print better diagnostic when there is no $(_hv_file)
23254         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23255         announce that when $(_hv_file) (aka help-version) does not exist.
23256
23257         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23258         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23259         not try to interpret its random input bytes.  Jarno Rajahalme reported
23260         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23261         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23262         (mktempd_): Likewise, just in case.
23263
23264         ftruncate: add two years to projected module removal date: 2012
23265         * m4/ftruncate.m4: Adjust comments.
23266
23267         ftruncate: mark module as obsolete; even MinGW provides it, now
23268         * modules/ftruncate (Status): Obsolete.
23269         (Notice): Say that.
23270         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23271         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23272
23273 2010-04-08  Bruno Haible  <bruno@clisp.org>
23274
23275         Fix side effects from tests-related modules.
23276         * modules/dprintf-posix (Comment): New section.
23277         * modules/fprintf-posix (Comment): Likewise.
23278         * modules/obstack-printf-posix (Comment): Likewise.
23279         * modules/printf-posix (Comment): Likewise.
23280         * modules/snprintf-posix (Comment): Likewise.
23281         * modules/sprintf-posix (Comment): Likewise.
23282         * modules/vasnprintf-posix (Comment): Likewise.
23283         * modules/vasprintf-posix (Comment): Likewise.
23284         * modules/vdprintf-posix (Comment): Likewise.
23285         * modules/vfprintf-posix (Comment): Likewise.
23286         * modules/vprintf-posix (Comment): Likewise.
23287         * modules/vsnprintf-posix (Comment): Likewise.
23288         * modules/vsprintf-posix (Comment): Likewise.
23289         * modules/xprintf-posix (Comment): Likewise.
23290         * modules/xvasprintf-posix (Comment): Likewise.
23291         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23292         * modules/floorf-tests (Depends-on): Likewise.
23293         * modules/round-tests (Depends-on): Likewise.
23294         * modules/roundf-tests (Depends-on): Likewise.
23295         * modules/trunc-tests (Depends-on): Likewise.
23296         * modules/truncf-tests (Depends-on): Likewise.
23297         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23298         'fprintf-posix' module is not present.
23299         * tests/test-floorf2.c (check): Likewise.
23300         * tests/test-trunc2.c (check): Likewise.
23301         * tests/test-truncf2.c (check): Likewise.
23302         * tests/test-round2.c (equal): Likewise.
23303         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23304
23305 2010-04-07  Karl Berry  <karl@gnu.org>
23306
23307         * config/srclist.txt,
23308         * config/srclistvars.sh,
23309         * config/srclist-update: doc fixes.
23310
23311 2010-04-07  Jim Meyering  <meyering@redhat.com>
23312
23313         maint.mk: add a PATH crosschecking syntax-check rule
23314         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23315         Useful if you use a test like the one in help-version (coreutils,
23316         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23317         printed by prog --version.
23318
23319 2010-04-06  Bruno Haible  <bruno@clisp.org>
23320
23321         Fix link error on mingw.
23322         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23323         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23324
23325 2010-04-06  Bruno Haible  <bruno@clisp.org>
23326
23327         Assume rmdir exists.
23328         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23329
23330 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23331
23332         doc: update users.txt
23333         * users.txt: Add gcal.
23334
23335 2010-04-06  Jim Meyering  <meyering@redhat.com>
23336
23337         init.sh: simply unset TMPDIR rather than risking env -i
23338         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23339         although it probably works fine on all Unix-based systems, some
23340         systems (Cygwin?) cannot tolerate a totally cleared environment.
23341         Suggestion from Eric Blake.
23342
23343 2010-04-06  Jim Meyering  <meyering@redhat.com>
23344
23345         init.sh: portability fix: use env's POSIX-specified -i option not -u
23346         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23347         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23348
23349 2010-04-05  Bruno Haible  <bruno@clisp.org>
23350
23351         btowc: Work around Cygwin 1.7.2 bug.
23352         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23353         does not map NUL to 0.
23354         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23355
23356 2010-04-05  Bruno Haible  <bruno@clisp.org>
23357
23358         Make the multithread modules work on Cygwin 1.7.2.
23359         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23360         imported symbols can be declared weak, so that it returns "no" on
23361         Cygwin 1.7.2.
23362
23363 2010-04-05  Bruno Haible  <bruno@clisp.org>
23364
23365         Use the module 'strncat'.
23366         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23367
23368         Tests for module 'strncat'.
23369         * modules/strncat-tests: New file.
23370         * tests/test-strncat.c: New file.
23371
23372         New module 'strncat'.
23373         * lib/string.in.h (strncat): New declaration.
23374         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23375         * m4/strncat.m4: New file, based on m4/memchr.m4.
23376         * modules/strncat: New file.
23377         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23378         is declared.
23379         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23380         REPLACE_STRNCAT.
23381         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23382         REPLACE_STRNCAT.
23383         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23384         module.
23385         * tests/test-string-c++.cc: Check signature of strncat.
23386
23387 2010-04-05  Jim Meyering  <meyering@redhat.com>
23388
23389         xstrtoumax-tests: convert to use init.sh
23390         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23391         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23392         Use Exit, not exit.
23393         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23394
23395         xstrtoimax-tests: convert to use init.sh
23396         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23397         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23398         Use Exit, not exit.
23399         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23400
23401 2010-04-05  Bruno Haible  <bruno@clisp.org>
23402
23403         sys_socket: Avoid #define replacements in C++ mode.
23404         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23405         warning to the function if possible, rather than #defining the symbol
23406         to a dysfunctional alias.
23407
23408 2010-04-05  Bruno Haible  <bruno@clisp.org>
23409
23410         fseeko: Fix C++ test error on mingw.
23411         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23412         gl_FUNC_FSEEKO.
23413         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23414         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23415         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23416         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23417
23418 2010-04-05  Bruno Haible  <bruno@clisp.org>
23419
23420         duplocale: Improve test output.
23421         * tests/test-duplocale.c (main): Print reason for skipped test.
23422
23423 2010-04-05  Bruno Haible  <bruno@clisp.org>
23424
23425         Assume rmdir exists.
23426         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23427         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23428
23429 2010-04-05  Bruno Haible  <bruno@clisp.org>
23430
23431         Fix link error on Solaris 8 with cc.
23432         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23433
23434 2010-04-05  Bruno Haible  <bruno@clisp.org>
23435
23436         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23437         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23438
23439 2010-04-05  Bruno Haible  <bruno@clisp.org>
23440
23441         vasprintf: Update documentation.
23442         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23443
23444 2010-04-05  Bruno Haible  <bruno@clisp.org>
23445
23446         ptsname: Improve test.
23447         * tests/test-ptsname.c (main): Also try the various master names of BSD
23448         systems.
23449
23450 2010-04-05  Bruno Haible  <bruno@clisp.org>
23451
23452         memchr: Avoid a possible C++ test error.
23453         * lib/string.in.h (memchr): Provide declaration if function is missing.
23454         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23455         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23457         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23458
23459 2010-04-05  Bruno Haible  <bruno@clisp.org>
23460
23461         strtok_r: Improve idiom.
23462         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23463         AC_LIBOBJ is used.
23464
23465 2010-04-05  Bruno Haible  <bruno@clisp.org>
23466
23467         strdup: Improve idiom.
23468         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23469         AC_LIBOBJ is used.
23470         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23471         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23472         when AC_LIBOBJ is used.
23473
23474 2010-04-05  Bruno Haible  <bruno@clisp.org>
23475
23476         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23477         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23478         don't set REPLACE_MBSINIT to 1.
23479         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23480         don't set REPLACE_MBRTOWC to 1.
23481         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23482         exist, don't set REPLACE_MBSRTOWCS to 1.
23483         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23484         exist, don't set REPLACE_MBSNRTOWCS to 1.
23485         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23486         don't set REPLACE_WCRTOMB to 1.
23487         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23488         exist, don't set REPLACE_WCSRTOMBS to 1.
23489         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23490         exist, don't set REPLACE_WCSNRTOMBS to 1.
23491
23492 2010-04-05  Bruno Haible  <bruno@clisp.org>
23493
23494         ldexpl: Improve idiom.
23495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23496         make sure to set HAVE_DECL_LDEXPL to 0.
23497
23498 2010-04-05  Jim Meyering  <meyering@redhat.com>
23499
23500         xstrtol-tests: convert to use init.sh
23501         * modules/xstrtol-tests (Files): Add tests/init.sh.
23502         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23503         Use Exit, not exit.
23504         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23505
23506         atexit-tests: convert to use init.sh
23507         * modules/atexit-tests (Files): Add tests/init.sh.
23508         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23509         Use Exit, not exit.
23510         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23511
23512         init.sh: fix typo
23513         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23514
23515         init.sh: make it easier for a test script to write to the tty, ...
23516         when using automake's parallel-tests mode.
23517         * tests/init.sh (stderr_fileno_): Define overridable variable.
23518         (warn_): New function, to use it.
23519         (fail_, skip_, framework_failure_): Use warn_.
23520
23521 2010-04-04  Bruno Haible  <bruno@clisp.org>
23522
23523         btowc: Avoid warning.
23524         * lib/btowc.c: Include <stdlib.h>.
23525         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23526
23527 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23528             Bruno Haible  <bruno@clisp.org>
23529
23530         wchar: Port to NetBSD 1.5.
23531         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23532         * lib/wctype.in.h (WEOF): Likewise.
23533
23534 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23535             Bruno Haible  <bruno@clisp.org>
23536
23537         Port extended stdio to NetBSD 1.5.
23538         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23539         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23540         older.
23541
23542 2010-04-04  Bruno Haible  <bruno@clisp.org>
23543
23544         string: Remove unused substitution.
23545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23546         HAVE_DECL_STRERROR.
23547         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23548
23549 2010-04-04  Bruno Haible  <bruno@clisp.org>
23550
23551         strtod: Avoid a possible C++ test error.
23552         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23553         set REPLACE_STRTOD.
23554
23555 2010-04-04  Bruno Haible  <bruno@clisp.org>
23556
23557         strerror: Update documentation.
23558         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23559
23560 2010-04-04  Bruno Haible  <bruno@clisp.org>
23561
23562         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23563         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23564         _GL_CXXALIAS_SYS_CAST.
23565
23566 2010-04-04  Bruno Haible  <bruno@clisp.org>
23567
23568         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23569         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23570         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23571         REPLACE_FREXPL to 1.
23572         * doc/posix-functions/frexpl.texi: Update documentation.
23573
23574 2010-04-04  Bruno Haible  <bruno@clisp.org>
23575
23576         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23577         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23578
23579 2010-04-04  Bruno Haible  <bruno@clisp.org>
23580
23581         Implement nanosleep for native Windows.
23582         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23583
23584 2010-04-04  Bruno Haible  <bruno@clisp.org>
23585
23586         math: Fix some C++ test errors on Solaris 8.
23587         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23588
23589 2010-04-04  Bruno Haible  <bruno@clisp.org>
23590
23591         math: Fix some C++ test errors on Cygwin.
23592         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23593         truncl): Provide declaration if the system does not have it.
23594         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23595         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23596         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23597         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23598         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23599         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23600         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23601         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23602         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23603         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23604         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23605         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23606         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23607         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23608         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23609         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23611         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23612         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23613         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23614         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23615         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23616
23617 2010-04-04  Bruno Haible  <bruno@clisp.org>
23618
23619         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23620         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23621         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23622         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23623         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23624         * m4/isinf.m4 (gl_ISINF): Likewise.
23625         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23626
23627 2010-04-04  Bruno Haible  <bruno@clisp.org>
23628
23629         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23630         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23631
23632 2010-04-04  Bruno Haible  <bruno@clisp.org>
23633
23634         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23635         * modules/tmpfile (configure.ac): Update.
23636
23637         tmpfile: Fix C++ test error on mingw.
23638         * lib/stdio.in.h (tmpfile): New declaration.
23639         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23640         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23641         * modules/tmpfile (Depends-on): Add stdio.
23642         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23643         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23644         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23645         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23646         REPLACE_TMPFILE.
23647         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23648
23649 2010-04-04  Bruno Haible  <bruno@clisp.org>
23650
23651         ioctl: Fix C++ test error on mingw.
23652         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23653         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23654         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23655
23656 2010-04-03  Bruno Haible  <bruno@clisp.org>
23657
23658         wcwidth: Fix C++ test error on mingw.
23659         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23661         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23662
23663 2010-04-03  Bruno Haible  <bruno@clisp.org>
23664
23665         nanosleep: Fix C++ test error on mingw.
23666         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23667         * lib/time.in.h (nanosleep): Use modern idiom.
23668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23669         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23670         REPLACE_NANOSLEEP to 1.
23671         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23672         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23673
23674 2010-04-03  Bruno Haible  <bruno@clisp.org>
23675
23676         strptime: Fix C++ test error on mingw.
23677         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23678         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23679         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23680         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23681         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23682         not REPLACE_STRPTIME.
23683         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23684         REPLACE_STRPTIME.
23685
23686 2010-04-03  Bruno Haible  <bruno@clisp.org>
23687
23688         timegm: Fix C++ test error on mingw.
23689         * lib/time.in.h (timegm): Use modern idiom.
23690         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23691         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23692         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23693         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23694
23695 2010-04-03  Bruno Haible  <bruno@clisp.org>
23696
23697         timegm: Assume declaration if function exists.
23698         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23699         if it exists. Don't clobber ac_cv_func_timegm.
23700
23701 2010-04-03  Bruno Haible  <bruno@clisp.org>
23702
23703         time_r: Fix C++ test error on mingw.
23704         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23705         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23706         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23707         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23708         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23709
23710 2010-04-03  Bruno Haible  <bruno@clisp.org>
23711
23712         time_r: Minor updates.
23713         * modules/time_r (Description): Mention the provided functions.
23714         * lib/time_r.c: Don't include <string.h>.
23715         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23716         * doc/posix-functions/localtime_r.texi: Likewise.
23717
23718 2010-04-03  Bruno Haible  <bruno@clisp.org>
23719
23720         time: Fix regression introduced on 2010-03-08.
23721         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23722         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23723
23724 2010-04-03  Jim Meyering  <meyering@redhat.com>
23725
23726         maint.mk: don't silently disable project-specific syntax-check rules
23727         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23728         that they need to convert their project-specific syntax-check rules
23729         to use the new _sc_search_regexp.
23730
23731 2010-04-03  Bruno Haible  <bruno@clisp.org>
23732
23733         fchdir: Fix regression introduced on 2010-03-08.
23734         * lib/unistd.in.h (fchdir): Fix declaration.
23735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23737         REPLACE_FCHDIR.
23738         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23739         REPLACE_FCHDIR.
23740
23741 2010-04-03  Bruno Haible  <bruno@clisp.org>
23742
23743         getpagesize: Fix C++ test error on mingw.
23744         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23745         system does not declare the function.
23746         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23747         declared.
23748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23749         HAVE_DECL_GETPAGESIZE.
23750         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23751
23752 2010-04-03  Bruno Haible  <bruno@clisp.org>
23753
23754         stdio: Make C++ tests work on mingw.
23755         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23756         does not declare the function.
23757
23758 2010-04-03  Bruno Haible  <bruno@clisp.org>
23759
23760         ftello: Fix C++ test error on mingw.
23761         * lib/stdio.in.h (ftello): Use modern idiom.
23762         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23763         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23764         is missing and that it needs to be replaced.
23765         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23767         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23768
23769 2010-04-03  Bruno Haible  <bruno@clisp.org>
23770
23771         fseeko: Fix C++ test error on mingw.
23772         * lib/stdio.in.h (fseeko): Use modern idiom.
23773         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23774         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23775         is missing and that it needs to be replaced.
23776         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23778         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23779
23780 2010-04-03  Bruno Haible  <bruno@clisp.org>
23781
23782         mkstemp: Fix C++ test error on mingw.
23783         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23785         function is missing and that it needs to be replaced.
23786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23787         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23788
23789 2010-04-03  Bruno Haible  <bruno@clisp.org>
23790
23791         stpncpy: Fix C++ test error on mingw.
23792         * lib/string.in.h (stpncpy): Use modern idiom.
23793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23794         function is missing and that it needs to be replaced.
23795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23796         REPLACE_STPNCPY.
23797         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23798
23799 2010-04-03  Bruno Haible  <bruno@clisp.org>
23800
23801         sys_stat: Fix C++ test error on mingw.
23802         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23803         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23804
23805 2010-04-03  Bruno Haible  <bruno@clisp.org>
23806
23807         pty: Update doc.
23808         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23809
23810 2010-04-03  Bruno Haible  <bruno@clisp.org>
23811
23812         unistd: Fix C++ test error on mingw.
23813         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23814
23815 2010-04-03  Bruno Haible  <bruno@clisp.org>
23816
23817         Update doc regarding mingw.
23818         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23819         * doc/glibc-functions/login_tty.texi: Likewise.
23820         * doc/glibc-functions/forkpty.texi: Likewise.
23821
23822 2010-04-03  Bruno Haible  <bruno@clisp.org>
23823
23824         stdlib: Avoid compilation failure of c-strtold on mingw.
23825         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23826
23827 2010-04-03  Bruno Haible  <bruno@clisp.org>
23828
23829         locale: Make C++ tests work on Cygwin and mingw.
23830         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23831         cannot provide the function.
23832         Reported by Simon Josefsson.
23833
23834 2010-04-03  Bruno Haible  <bruno@clisp.org>
23835
23836         localename: Port to MacOS X 10.6.
23837         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23838         memory layout of the locales in MacOS X 10.6 as well.
23839         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23840
23841 2010-04-02  Bruno Haible  <bruno@clisp.org>
23842
23843         gnulib-tool: Ensure that long-running tests are executed last.
23844         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23845         running tests after the one for the other tests.
23846
23847 2010-04-02  Bruno Haible  <bruno@clisp.org>
23848
23849         gnulib-tool: Ensure the tests in the main directory are executed first.
23850         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23851         start with the current directory.
23852
23853 2010-04-02  Bruno Haible  <bruno@clisp.org>
23854
23855         Tests for module 'havelib', moved here from GNU gettext.
23856         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23857         modifications.
23858         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23859         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23860         with modifications.
23861         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23862         modifications.
23863         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23864         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23865         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23866         with modifications.
23867         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23868         with modifications.
23869         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23870         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23871         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23872         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23873         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23874         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23875         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23876         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23877         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23878         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23879         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23880         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23881         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23882         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23883         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23884         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23885         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23886         with modifications.
23887         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23888         with modifications.
23889         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23890         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23891         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23892         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23893         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23894         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23895         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23896         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23897         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23898         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23899         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23900         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23901         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23902         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23903         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23904         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23905         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23906         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23907         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23908         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23909         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23910         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23911         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23912         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23913         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23914         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23915         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23916         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23917         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23918         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23919         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23920         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23921         * tests/havelib/rpathx/rpathx.c: New file, from
23922         gettext/autoconf-lib-link.
23923         * tests/havelib/rpathx/Makefile.am: New file, from
23924         gettext/autoconf-lib-link.
23925         * tests/havelib/rpathx/configure.ac: New file, from
23926         gettext/autoconf-lib-link with modifications.
23927         * tests/havelib/rpathy/rpathy.c: New file, from
23928         gettext/autoconf-lib-link.
23929         * tests/havelib/rpathy/Makefile.am: New file, from
23930         gettext/autoconf-lib-link.
23931         * tests/havelib/rpathy/configure.ac: New file, from
23932         gettext/autoconf-lib-link with modifications.
23933         * tests/havelib/rpathz/rpathz.c: New file, from
23934         gettext/autoconf-lib-link.
23935         * tests/havelib/rpathz/Makefile.am: New file, from
23936         gettext/autoconf-lib-link.
23937         * tests/havelib/rpathz/configure.ac: New file, from
23938         gettext/autoconf-lib-link with modifications.
23939         * tests/havelib/rpathlx/usex.c: New file, from
23940         gettext/autoconf-lib-link.
23941         * tests/havelib/rpathlx/Makefile.am: New file, from
23942         gettext/autoconf-lib-link.
23943         * tests/havelib/rpathlx/configure.ac: New file, from
23944         gettext/autoconf-lib-link with modifications.
23945         * tests/havelib/rpathly/usey.c: New file, from
23946         gettext/autoconf-lib-link.
23947         * tests/havelib/rpathly/Makefile.am: New file, from
23948         gettext/autoconf-lib-link.
23949         * tests/havelib/rpathly/configure.ac: New file, from
23950         gettext/autoconf-lib-link with modifications.
23951         * tests/havelib/rpathlz/usez.c: New file, from
23952         gettext/autoconf-lib-link.
23953         * tests/havelib/rpathlz/Makefile.am: New file, from
23954         gettext/autoconf-lib-link.
23955         * tests/havelib/rpathlz/configure.ac: New file, from
23956         gettext/autoconf-lib-link with modifications.
23957         * tests/havelib/rpathlyx/usey.c: New file, from
23958         gettext/autoconf-lib-link.
23959         * tests/havelib/rpathlyx/Makefile.am: New file, from
23960         gettext/autoconf-lib-link.
23961         * tests/havelib/rpathlyx/configure.ac: New file, from
23962         gettext/autoconf-lib-link with modifications.
23963         * tests/havelib/rpathlzyx/usez.c: New file, from
23964         gettext/autoconf-lib-link.
23965         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23966         gettext/autoconf-lib-link.
23967         * tests/havelib/rpathlzyx/configure.ac: New file, from
23968         gettext/autoconf-lib-link with modifications.
23969         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23970         with modifications.
23971
23972 2010-04-02  Bruno Haible  <bruno@clisp.org>
23973
23974         gnulib-tool: Create distributed built sources also for the tests.
23975         * gnulib-tool (func_create_testdir): Also generate distributed built
23976         sources in the tests directory.
23977
23978 2010-04-02  Bruno Haible  <bruno@clisp.org>
23979
23980         gnulib-tool: Obey user's environment variables.
23981         * gnulib-tool (func_create_testdir): When creating built sources,
23982         respect the environment variables for autoconf, automake, etc. given by
23983         the user.
23984
23985 2010-04-02  Bruno Haible  <bruno@clisp.org>
23986
23987         gnulib-tool: Provide the value of --m4-base to modules.
23988         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23989         of gl_m4_base.
23990
23991 2010-04-02  Eric Blake  <eblake@redhat.com>
23992
23993         maint.mk: fix some fallout
23994         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23995         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23996
23997 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23998
23999         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24000         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24001         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24002         (sc_cast_of_x_alloc_return_value): Likewise.
24003         (sc_cast_of_alloca_return_value): Likewise.
24004         (sc_space_tab): Likewise.
24005         (sc_prohibit_atoi_atof): Likewise.
24006         (sc_prohibit_magic_number_exit): Likewise.
24007         (sc_error_exit_success): Likewise.
24008         (sc_file_system): Likewise.
24009         (sc_prohibit_have_config_h): Likewise.
24010         (sc_require_config_h): Likewise.
24011         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24012         (sc_obsolete_symbols): Likewise.
24013         (sc_changelog): Likewise.
24014         (sc_program_name): Likewise.
24015         (sc_the_the): Likewise.
24016         (sc_trailing_blank): Likewise.
24017         (sc_two_space_separator_in_usage): Likewise.
24018         (sc_useless_cpp_parens): Likewise.
24019         (sc_GPL_version): Likewise.
24020         (sc_GFDL_version): Likewise.
24021         (sc_texinfo_acronym): Likewise.
24022         (sc_prohibit_cvs_keyword): Likewise.
24023         (sc_prohibit_stat_st_blocks): Likewise.
24024         (sc_prohibit_S_IS_definition): Likewise.
24025         (sc_redundant_const): Likewise.
24026         (sc_makefile_TAB_only_indentation): Likewise.
24027         (sc_m4_quote_check): Likewise.
24028         (sc_makefile_path_separator_check): Likewise.
24029         (sc_copyright_check): Likewise.
24030         (sc_Wundef_boolean): Likewise.
24031         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24032
24033         maint.mk: match 0 or more whitespace-before-function-call '('
24034         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24035         that have zero or two-and-more spaces between the function name
24036         and the open parenthesis.
24037         (sc_error_message_warn_fatal): Likewise.
24038         (sc_error_message_uppercase): Likewise.
24039         (sc_error_message_period): Likewise.
24040
24041 2010-03-31  Eric Blake  <eblake@redhat.com>
24042
24043         maint.mk: check for [ as well as test
24044         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24045         Based on a libvirt report by Matthias Bolte.
24046
24047         gnumakefile: don't squelch _version output
24048         * top/GNUmakefile (_version): Create one-shot dependency rather
24049         than using $(shell) when version must be regenerated.
24050         (_autoreconf): Run verbosely, by default.
24051
24052         sys_time: avoid compiler warnings
24053         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24054         unconditional, fixing regression from 2010-03-29.
24055         Reported by Simon Josefsson.
24056
24057 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24058
24059         maint.mk: s/_header_without_use/_sc_header_without_use/
24060         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24061         (sc_prohibit_assert_without_use): Use the new name.
24062         (sc_prohibit_close_stream_without_use): Likewise.
24063         (sc_prohibit_getopt_without_use): Likewise.
24064         (sc_prohibit_quotearg_without_use): Likewise.
24065         (sc_prohibit_quote_without_use): Likewise.
24066         (sc_prohibit_long_options_without_use): Likewise.
24067         (sc_prohibit_inttostr_without_use): Likewise.
24068         (sc_prohibit_ignore_value_without_use): Likewise.
24069         (sc_prohibit_error_without_use): Likewise.
24070         (sc_prohibit_xalloc_without_use): Likewise.
24071         (sc_prohibit_hash_without_use): Likewise.
24072         (sc_prohibit_hash_pjw_without_use): Likewise.
24073         (sc_prohibit_safe_read_without_use): Likewise.
24074         (sc_prohibit_argmatch_without_use): Likewise.
24075         (sc_prohibit_canonicalize_without_use): Likewise.
24076         (sc_prohibit_root_dev_ino_without_use): Likewise.
24077         (sc_prohibit_openat_without_use): Likewise.
24078         (sc_prohibit_c_ctype_without_use): Likewise.
24079         (sc_prohibit_signal_without_use): Likewise.
24080         (sc_prohibit_intprops_without_use): Likewise.
24081
24082 2010-03-30  Eric Blake  <eblake@redhat.com>
24083
24084         maint: improve module indicators
24085         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24086         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24087         columns, and avoid extra macro expansion.
24088
24089         fdopendir: work around FreeBSD bug
24090         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24091         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24092         * modules/dirent (Makefile.am): Substitute it.
24093         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24094         declaration.
24095         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24096         fix.
24097         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24098
24099 2010-03-29  Bruno Haible  <bruno@clisp.org>
24100
24101         Emit #pragma system_header after the inclusion guard, not before.
24102         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24103         guard that spans the entire file, not before. This enables an
24104         optimization in GCC's preprocessor.
24105         * lib/ctype.in.h: Likewise.
24106         * lib/dirent.in.h: Likewise.
24107         * lib/errno.in.h: Likewise.
24108         * lib/float.in.h: Likewise.
24109         * lib/getopt.in.h: Likewise.
24110         * lib/iconv.in.h: Likewise.
24111         * lib/langinfo.in.h: Likewise.
24112         * lib/locale.in.h: Likewise.
24113         * lib/math.in.h: Likewise.
24114         * lib/netdb.in.h: Likewise.
24115         * lib/netinet_in.in.h: Likewise.
24116         * lib/pty.in.h: Likewise.
24117         * lib/sched.in.h: Likewise.
24118         * lib/se-selinux.in.h: Likewise.
24119         * lib/search.in.h: Likewise.
24120         * lib/spawn.in.h: Likewise.
24121         * lib/stdarg.in.h: Likewise.
24122         * lib/stdint.in.h: Likewise.
24123         * lib/string.in.h: Likewise.
24124         * lib/strings.in.h: Likewise.
24125         * lib/sys_file.in.h: Likewise.
24126         * lib/sys_ioctl.in.h: Likewise.
24127         * lib/sys_time.in.h: Likewise.
24128         * lib/sys_times.in.h: Likewise.
24129         * lib/sys_utsname.in.h: Likewise.
24130         * lib/sys_wait.in.h: Likewise.
24131         * lib/sysexits.in.h: Likewise.
24132         * lib/wctype.in.h: Likewise.
24133
24134 2010-03-28  James Youngman  <jay@gnu.org>
24135
24136         save-cwd: don't leak a file descriptor when the caller execs.
24137         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24138         saved file descriptor.
24139         * modules/save-cwd (Depends-on): Depend on cloexec.
24140
24141 2010-03-29  Bruno Haible  <bruno@clisp.org>
24142
24143         Remove vestiges of fts-lgpl module.
24144         * lib/fts_.h: Assume GNULIB_FTS is 1.
24145         * lib/fts.c: Likewise.
24146         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24147
24148 2010-03-28  Bruno Haible  <bruno@clisp.org>
24149
24150         Fix definition of tests witness macro.
24151         * gnulib-tool (func_import): Fix definition of witness macro.
24152
24153 2010-03-28  Bruno Haible  <bruno@clisp.org>
24154
24155         Fix ioctl's protoype on glibc systems.
24156         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24157         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24158         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24159         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24160         signature. If not, arrange to replace the ioctl function.
24161         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24162         REPLACE_IOCTL.
24163         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24164         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24165         Reported by Ludovic Courtès <ludo@gnu.org>.
24166
24167 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24168
24169         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24170         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24171         made it so grep -r --include=GLOB* ... did not work.
24172
24173 2010-03-26  Jim Meyering  <meyering@redhat.com>
24174             Eric Blake  <eblake@redhat.com>
24175
24176         maint.mk: prohibit use of test's -o and -a operators
24177         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24178
24179 2010-03-28  Bruno Haible  <bruno@clisp.org>
24180
24181         Remove unused GNULIB_XYZ macro definitions.
24182         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24183         invocation.
24184
24185 2010-03-28  Bruno Haible  <bruno@clisp.org>
24186
24187         Mark privileged tests modules.
24188         * modules/idpriv-drop-tests (Status): New section.
24189         * modules/idpriv-droptemp-tests (Status): New section.
24190
24191 2010-03-28  Bruno Haible  <bruno@clisp.org>
24192
24193         Split C++ tests into separate tests modules.
24194         * modules/dirent-c++-tests: New file, extracted from
24195         modules/dirent-tests.
24196         * modules/dirent-tests: Depend on it.
24197         * modules/fcntl-h-c++-tests: New file, extracted from
24198         modules/fcntl-h-tests.
24199         * modules/fcntl-h-tests: Depend on it.
24200         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24201         * modules/glob-tests: Depend on it.
24202         * modules/iconv-h-c++-tests: New file, extracted from
24203         modules/iconv-h-tests.
24204         * modules/iconv-h-tests: Depend on it.
24205         * modules/langinfo-c++-tests: New file, extracted from
24206         modules/langinfo-tests.
24207         * modules/langinfo-tests: Depend on it.
24208         * modules/locale-c++-tests: New file, extracted from
24209         modules/locale-tests.
24210         * modules/locale-tests: Depend on it.
24211         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24212         * modules/math-tests: Depend on it.
24213         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24214         * modules/pty-tests: Depend on it.
24215         * modules/search-c++-tests: New file, extracted from
24216         modules/search-tests.
24217         * modules/search-tests: Depend on it.
24218         * modules/signal-c++-tests: New file, extracted from
24219         modules/signal-tests.
24220         * modules/signal-tests: Depend on it.
24221         * modules/spawn-c++-tests: New file, extracted from
24222         modules/spawn-tests.
24223         * modules/spawn-tests: Depend on it.
24224         * modules/stdio-c++-tests: New file, extracted from
24225         modules/stdio-tests.
24226         * modules/stdio-tests: Depend on it.
24227         * modules/stdlib-c++-tests: New file, extracted from
24228         modules/stdlib-tests.
24229         * modules/stdlib-tests: Depend on it.
24230         * modules/string-c++-tests: New file, extracted from
24231         modules/string-tests.
24232         * modules/string-tests: Depend on it.
24233         * modules/sys_ioctl-c++-tests: New file, extracted from
24234         modules/sys_ioctl-tests.
24235         * modules/sys_ioctl-tests: Depend on it.
24236         * modules/sys_select-c++-tests: New file, extracted from
24237         modules/sys_select-tests.
24238         * modules/sys_select-tests: Depend on it.
24239         * modules/sys_socket-c++-tests: New file, extracted from
24240         modules/sys_socket-tests.
24241         * modules/sys_socket-tests: Depend on it.
24242         * modules/sys_stat-c++-tests: New file, extracted from
24243         modules/sys_stat-tests.
24244         * modules/sys_stat-tests: Depend on it.
24245         * modules/sys_time-c++-tests: New file, extracted from
24246         modules/sys_time-tests.
24247         * modules/sys_time-tests: Depend on it.
24248         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24249         * modules/time-tests: Depend on it.
24250         * modules/unistd-c++-tests: New file, extracted from
24251         modules/unistd-tests.
24252         * modules/unistd-tests: Depend on it.
24253         * modules/wchar-c++-tests: New file, extracted from
24254         modules/wchar-tests.
24255         * modules/wchar-tests: Depend on it.
24256         * modules/wctype-c++-tests: New file, extracted from
24257         modules/wctype-tests.
24258         * modules/wctype-tests: Depend on it.
24259         Reported by Simon Josefsson.
24260
24261 2010-03-28  Bruno Haible  <bruno@clisp.org>
24262
24263         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24264         * gnulib-tool (func_exists_module): New function, extracted from
24265         func_verify_module.
24266         (func_verify_module): Use it.
24267         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24268         'foo' only if 'foo' exists.
24269         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24270         module.
24271
24272 2010-03-28  Bruno Haible  <bruno@clisp.org>
24273
24274         gnulib-tool: Add support for special categories of tests.
24275         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24276         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24277         (func_usage): Document them.
24278         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24279         inc_unportable_tests, inc_all_tests): New variables.
24280         (func_acceptable): Consider these variables.
24281         (func_modules_transitive_closure): Make it work when the 'Status' field
24282         consists of multiple words.
24283         (func_import): Store and restore the values of inc_cxx_tests,
24284         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24285         inc_all_tests in gnulib-comp.m4.
24286         (func_create_testdir): Set inc_all_tests to true.
24287         * doc/gnulib.texi (Extra tests modules): New section.
24288         Suggested by Jim Meyering.
24289
24290 2010-03-28  Bruno Haible  <bruno@clisp.org>
24291
24292         ansi-c++-opt: Allow turning off the C++ build by default.
24293         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24294         gl_CXX_CHOICE_DEFAULT_NO is defined.
24295         Requested by Eric Blake.
24296
24297 2010-03-28  Bruno Haible  <bruno@clisp.org>
24298
24299         unistd: Avoid #define replacements in C++ mode.
24300         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24301         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24302         setsockopt, shutdown, select): In C++, attach a warning to the function
24303         if possible, rather than #defining the symbol to a dysfunctional alias.
24304         Reported by John W. Eaton <jwe@gnu.org>.
24305
24306 2010-03-28  Bruno Haible  <bruno@clisp.org>
24307
24308         Fix link errors on mingw.
24309         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24310         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24311         $(LIBSOCKET).
24312         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24313         $(LIBSOCKET).
24314
24315 2010-03-28  Bruno Haible  <bruno@clisp.org>
24316             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24317
24318         lib-ignore: Determine different options for different compilers.
24319         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24320         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24321         Add comments.
24322         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24323         * NEWS: Mention the change.
24324
24325 2010-03-27  Bruno Haible  <bruno@clisp.org>
24326
24327         Remove unused GNULIB_XYZ macro definitions.
24328         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24329         * modules/fseek (configure.ac): Likewise.
24330         * modules/ioctl (configure.ac): Likewise.
24331         * modules/open (configure.ac): Likewise.
24332         * modules/stdlib-safer (configure.ac): Likewise.
24333
24334 2010-03-27  Bruno Haible  <bruno@clisp.org>
24335
24336         Add a remark about certain modules.
24337         * modules/malloc (Comment): New section.
24338         * modules/realloc (Comment): Likewise.
24339         * modules/sigpipe (Comment): Likewise.
24340
24341 2010-03-27  Bruno Haible  <bruno@clisp.org>
24342
24343         Resolve conflict between the two kinds of module indicators.
24344         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24345         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24346         * modules/canonicalize (configure.ac): Invoke
24347         gl_MODULE_INDICATOR_FOR_TESTS.
24348         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24349         GNULIB_XYZ.
24350         * tests/test-dirent-c++.cc: Likewise.
24351         * tests/test-dirent-safer.c: Likewise.
24352         * tests/test-dup2.c: Likewise.
24353         * tests/test-fchdir.c: Likewise.
24354         * tests/test-fcntl-h-c++.cc: Likewise.
24355         * tests/test-getopt.c: Likewise.
24356         * tests/test-getopt.h: Likewise.
24357         * tests/test-langinfo-c++.cc: Likewise.
24358         * tests/test-locale-c++.cc: Likewise.
24359         * tests/test-math-c++.cc: Likewise.
24360         * tests/test-pty-c++.cc: Likewise.
24361         * tests/test-search-c++.cc: Likewise.
24362         * tests/test-signal-c++.cc: Likewise.
24363         * tests/test-spawn-c++.cc: Likewise.
24364         * tests/test-stdio-c++.cc: Likewise.
24365         * tests/test-stdlib-c++.cc: Likewise.
24366         * tests/test-string-c++.cc: Likewise.
24367         * tests/test-sys_ioctl-c++.cc: Likewise.
24368         * tests/test-sys_select-c++.cc: Likewise.
24369         * tests/test-sys_socket-c++.cc: Likewise.
24370         * tests/test-sys_stat-c++.cc: Likewise.
24371         * tests/test-sys_time-c++.cc: Likewise.
24372         * tests/test-time-c++.cc: Likewise.
24373         * tests/test-unistd-c++.cc: Likewise.
24374         * tests/test-wchar-c++.cc: Likewise.
24375         * tests/uninorm/test-u8-nfc.c: Likewise.
24376         * tests/uninorm/test-u8-nfd.c: Likewise.
24377         * tests/uninorm/test-u8-nfkc.c: Likewise.
24378         * tests/uninorm/test-u8-nfkd.c: Likewise.
24379         * tests/uninorm/test-u16-nfc.c: Likewise.
24380         * tests/uninorm/test-u16-nfd.c: Likewise.
24381         * tests/uninorm/test-u16-nfkc.c: Likewise.
24382         * tests/uninorm/test-u16-nfkd.c: Likewise.
24383         * tests/uninorm/test-u32-nfc.c: Likewise.
24384         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24385         * tests/uninorm/test-u32-nfd.c: Likewise.
24386         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24387         * tests/uninorm/test-u32-nfkc.c: Likewise.
24388         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24389         * tests/uninorm/test-u32-nfkd.c: Likewise.
24390         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24391         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24392
24393 2010-03-27  Bruno Haible  <bruno@clisp.org>
24394
24395         Distinguish two kinds of module indicators.
24396         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24397         gl_MODULE_INDICATOR.
24398         (gl_MODULE_INDICATOR): New macro.
24399         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24400         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24401         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24402         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24403         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24404         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24405         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24406         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24407         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24408         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24409         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24410         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24412         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24413         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24415         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24416         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24417         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24418         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24419         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24420         * modules/cloexec (configure.ac): Likewise.
24421         * modules/getopt-gnu (configure.ac): Likewise.
24422         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24423         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24424         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24425         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24426
24427 2010-03-27  Bruno Haible  <bruno@clisp.org>
24428
24429         New module description field 'Comment'.
24430         * gnulib-tool: New option --extract-comment.
24431         (func_usage): Document it.
24432         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24433         (func_get_comment): New function.
24434         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24435
24436 2010-03-27  Bruno Haible  <bruno@clisp.org>
24437
24438         Addendum to 2010-02-07 commit.
24439         * gnulib-tool (func_usage): Document --extract-applicability option.
24440
24441 2010-03-27  Bruno Haible  <bruno@clisp.org>
24442
24443         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24444         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24445         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24446         rather than link errors.
24447
24448 2010-03-27  Bruno Haible  <bruno@clisp.org>
24449
24450         Avoid side effects from tests-related modules on the compilation of lib.
24451         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24452         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24453         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24454         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24455         macro.
24456         (func_import): Define a witness macro. Assign it a value that depends
24457         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24458         tests-related modules.
24459         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24460         Reported by Jim Meyering.
24461
24462 2010-03-27  Bruno Haible  <bruno@clisp.org>
24463
24464         Factorize common .m4 code.
24465         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24466         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24467         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24468         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24469         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24470         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24471         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24472         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24473         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24474         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24475         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24476         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24477         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24478         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24479         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24480         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24481         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24482         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24484         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24485         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24486         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24487         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24488         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24489         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24490         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24491         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24492         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24493         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24494         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24495         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24496         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24497
24498 2010-03-27  Bruno Haible  <bruno@clisp.org>
24499
24500         Fix a compilation error on Cygwin with g++ >= 4.3.
24501         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24502         if it is undefined or if we alias it to chmod.
24503         (lstat): Don't warn about the use of this function if it is undefined
24504         or if we alias it to stat.
24505         Reported by Simon Josefsson.
24506
24507 2010-03-27  Bruno Haible  <bruno@clisp.org>
24508
24509         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24510         * modules/getlogin (configure.ac): Update.
24511
24512         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24513         * modules/getlogin_r (configure.ac): Update.
24514
24515         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24516         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24517         * modules/inet_ntop (configure.ac): Update.
24518
24519         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24520         * modules/inet_pton (configure.ac): Update.
24521
24522         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24523         * modules/mbslen (configure.ac): Update.
24524
24525         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24526         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24527         * modules/forkpty (configure.ac): Update.
24528         * modules/openpty (configure.ac): Update.
24529
24530 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24531
24532         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24533         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24534
24535 2010-03-25  Eric Blake  <eblake@redhat.com>
24536
24537         maint: use pragma consistently across replacement headers
24538         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24539         * lib/dirent.in.h (system_header): Likewise.
24540         * lib/errno.in.h (system_header): Likewise.
24541         * lib/float.in.h (system_header): Likewise.
24542         * lib/getopt.in.h (system_header): Likewise.
24543         * lib/iconv.in.h (system_header): Likewise.
24544         * lib/inttypes.in.h (system_header): Likewise.
24545         * lib/langinfo.in.h (system_header): Likewise.
24546         * lib/locale.in.h (system_header): Likewise.
24547         * lib/math.in.h (system_header): Likewise.
24548         * lib/netdb.in.h (system_header): Likewise.
24549         * lib/netinet_in.in.h (system_header): Likewise.
24550         * lib/pty.in.h (system_header): Likewise.
24551         * lib/sched.in.h (system_header): Likewise.
24552         * lib/se-selinux.in.h (system_header): Likewise.
24553         * lib/search.in.h (system_header): Likewise.
24554         * lib/spawn.in.h (system_header): Likewise.
24555         * lib/stdarg.in.h (system_header): Likewise.
24556         * lib/stdint.in.h (system_header): Likewise.
24557         * lib/string.in.h (system_header): Likewise.
24558         * lib/strings.in.h (system_header): Likewise.
24559         * lib/sys_file.in.h (system_header): Likewise.
24560         * lib/sys_ioctl.in.h (system_header): Likewise.
24561         * lib/sys_socket.in.h (system_header): Likewise.
24562         * lib/sys_times.in.h (system_header): Likewise.
24563         * lib/sys_utsname.in.h (system_header): Likewise.
24564         * lib/sys_wait.in.h (system_header): Likewise.
24565         * lib/sysexits.in.h (system_header): Likewise.
24566         * lib/unistd.in.h (system_header): Likewise.
24567         * lib/wctype.in.h (system_header): Likewise.
24568
24569         arpa/inet: fix mingw compilation warning
24570         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24571         Reported by Matthew Bolte.
24572
24573 2010-03-25  Bruno Haible  <bruno@clisp.org>
24574
24575         Avoid collision between gnulib wrapper and libintl wrapper.
24576         * lib/printf.c (printf): Don't define if a printf wrapper is already
24577         defined in intl/printf.c.
24578         Reported by Michel Boaventura <michel@michelboaventura.com>.
24579
24580 2010-03-25  Bruno Haible  <bruno@clisp.org>
24581
24582         Use ANSI C.
24583         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24584
24585 2010-03-25  Bruno Haible  <bruno@clisp.org>
24586
24587         Minor formatting changes.
24588         * lib/acosl.c: Insert space before function argument list.
24589         * lib/argz.c: Likewise.
24590         * lib/asinl.c: Likewise.
24591         * lib/expl.c: Likewise.
24592         * lib/gen-uni-tables.c: Likewise.
24593         * lib/gettext.h: Likewise.
24594         * lib/glthread/lock.h: Likewise.
24595         * lib/tanl.c: Likewise.
24596         * lib/uniname/uniname.c: Likewise.
24597         * tests/test-idpriv-drop.c: Likewise.
24598         * tests/test-idpriv-droptemp.c: Likewise.
24599         * tests/test-lock.c: Likewise.
24600         * tests/test-tls.c: Likewise.
24601         * lib/argp-help.c: Insert space before function-like macro argument
24602         list.
24603         * lib/memcmp.c: Likewise.
24604         * tests/test-base64.c: Likewise.
24605         * lib/localename.c: Insert space before sizeof's argument list.
24606         * lib/safe-alloc.h: Likewise.
24607         * lib/file-set.h: Insert space before macro argument list.
24608         * tests/test-argp.c: Likewise.
24609         * lib/argp-namefrob.h: Insert space before function parameter list.
24610         * lib/getaddrinfo.c: Likewise.
24611         * lib/netdb.in.h: Likewise.
24612         * lib/parse-duration.h: Likewise.
24613         * lib/parse-duration.c: Likewise.
24614         * lib/poll.c: Likewise.
24615         * lib/select.c: Likewise.
24616         * lib/trim.h: Likewise.
24617         * tests/test-usleep.c: Likewise.
24618         * lib/ldexpl.c: Insert space before function parameter list and before
24619         function argument list.
24620         * lib/logl.c: Likewise.
24621         * lib/sqrtl.c: Likewise.
24622         * lib/trim.c: Likewise.
24623         * lib/cosl.c: Use GNU style indentation. Insert space before function
24624         argument list.
24625         * lib/sinl.c: Likewise.
24626         * lib/tsearch.c: Insert space after 'for'.
24627         Reported by Jim Meyering.
24628
24629 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24630
24631         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24632         config header before grepping, as it's not present before
24633         autoreconf/configure are run.  Reported by Simon Josefsson.
24634
24635 2010-03-23  Bruno Haible  <bruno@clisp.org>
24636
24637         pt_chown: Make it work with automake < 1.11.
24638         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24639         Reported by Simon Josefsson.
24640
24641 2010-03-23  Bruno Haible  <bruno@clisp.org>
24642
24643         pt_chown: Don't depend on GPLed modules.
24644         * lib/pt_chown.c: Don't include idpriv.h.
24645         (main): Don't drop privileges.
24646         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24647         Reported by Simon Josefsson.
24648
24649 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24650
24651         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24652         suggestions from karl@freefriends.org (Karl Berry).
24653
24654 2010-03-22  Eric Blake  <eblake@redhat.com>
24655
24656         gethostname: further tweaks
24657         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24658         are overriding gethostname.
24659         Suggested by Bruno Haible.
24660
24661 2010-03-21  Bruno Haible  <bruno@clisp.org>
24662
24663         Fix comments.
24664         * lib/forkpty.c (rpl_forkpty): Fix comment.
24665         * lib/openpty.c (rpl_openpty): Likewise.
24666         Reported by Eric Blake.
24667
24668 2010-03-22  Eric Blake  <eblake@redhat.com>
24669
24670         gethostname: fix build on mingw
24671         * lib/unistd.in.h (includes): Work around fact that mingw
24672         <winsock2.h> re-includes <unistd.h>, by avoiding any
24673         redeclarations if we are being included by <winsock2.h>.
24674         Reported by Matthias Bolte.
24675
24676 2010-03-21  Bruno Haible  <bruno@clisp.org>
24677
24678         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24679         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24680         modifications.
24681         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24682         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24683         provide the replacement.
24684         * modules/forkpty (Depends-on): Add openpty, login_tty.
24685         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24686         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24687         * doc/glibc-functions/forkpty.texi: More supported platforms.
24688         * config/srclist.txt: Add forkpty.c (commented).
24689
24690 2010-03-21  Bruno Haible  <bruno@clisp.org>
24691
24692         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24693         (Makefile.am): Verify that PTY_LIB is defined.
24694
24695         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24696
24697 2010-03-21  Bruno Haible  <bruno@clisp.org>
24698
24699         Tests for module 'login_tty'.
24700         * modules/login_tty-tests: New file.
24701         * tests/test-login_tty.c: New file.
24702
24703         New module 'login_tty'.
24704         * lib/login_tty.c: New file.
24705         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24706         * modules/login_tty: New file.
24707         * doc/glibc-functions/login_tty.texi: Mention the new module.
24708
24709 2010-03-21  Bruno Haible  <bruno@clisp.org>
24710
24711         login_tty: Documentation.
24712         * doc/glibc-functions/login_tty.texi: New file.
24713         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24714
24715 2010-03-21  Bruno Haible  <bruno@clisp.org>
24716
24717         pty: Consistent macro naming.
24718         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24719         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24720         * modules/pty (configure.ac): Update.
24721
24722 2010-03-21  Bruno Haible  <bruno@clisp.org>
24723
24724         Tests for openpty: Make stricter.
24725         * tests/test-openpty.c (main): Add test of canonical processing and
24726         erase.
24727         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24728
24729         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24730         * lib/openpty.c (openpty): New replacement function.
24731         * lib/pty.in.h: Include <termios.h>.
24732         (openpty): Update declaration. Add comments.
24733         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24734         is not declared, arrange to provide the replacement. Check for _getpty
24735         and posix_openpt.
24736         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24737         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24738         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24739         * modules/pty-tests (test_pty_c___LDADD): New variable.
24740         * doc/glibc-functions/openpty.texi: More supported platforms.
24741
24742 2010-03-21  Bruno Haible  <bruno@clisp.org>
24743
24744         setenv: Tweaks.
24745         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24746         the test program.
24747         * doc/posix-functions/setenv.texi: Update platforms list.
24748
24749 2010-03-21  Bruno Haible  <bruno@clisp.org>
24750
24751         New module 'unlockpt'.
24752         * lib/unlockpt.c: New file, from glibc with modifications.
24753         * m4/unlockpt.m4: New file.
24754         * modules/unlockpt: New file.
24755         * lib/stdlib.in.h (unlockpt): New declaration.
24756         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24757         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24758         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24759         HAVE_UNLOCKPT.
24760         * doc/posix-functions/unlockpt.texi: Mention the new module.
24761         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24762         * config/srclist.txt: Add unlockpt.c (commented).
24763
24764 2010-03-21  Jim Meyering  <meyering@redhat.com>
24765
24766         maint.mk: prohibit inclusion of "intprops.h" without use
24767         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24768
24769 2010-03-21  Bruno Haible  <bruno@clisp.org>
24770
24771         New module 'grantpt'.
24772         * lib/grantpt.c: New file, from glibc with modifications.
24773         * m4/grantpt.m4: New file.
24774         * modules/grantpt: New file.
24775         * lib/stdlib.in.h (grantpt): New declaration.
24776         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24777         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24778         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24779         HAVE_GRANTPT.
24780         * doc/posix-functions/grantpt.texi: Mention the new module.
24781         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24782         * config/srclist.txt: Add grantpt.c (commented).
24783
24784 2010-03-21  Bruno Haible  <bruno@clisp.org>
24785
24786         New module 'pt_chown'.
24787         * lib/pt_chown.c: New file, from glibc with modifications.
24788         * lib/pty-private.h: New file, from glibc with modifications.
24789         * modules/pt_chown: New file.
24790         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24791
24792 2010-03-21  Bruno Haible  <bruno@clisp.org>
24793
24794         Tests for module 'ptsname'.
24795         * modules/ptsname-tests: New file.
24796         * tests/test-ptsname.c: New file.
24797
24798         New module 'ptsname'.
24799         * lib/ptsname.c: New file, from glibc with modifications.
24800         * m4/ptsname.m4: New file.
24801         * modules/ptsname: New file.
24802         * lib/stdlib.in.h (ptsname): New declaration.
24803         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24804         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24805         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24806         HAVE_PTSNAME.
24807         * doc/posix-functions/ptsname.texi: Mention the new module.
24808         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24809         * config/srclist.txt: Add ptsname.c (commented).
24810
24811 2010-03-21  Bruno Haible  <bruno@clisp.org>
24812
24813         Tests for module 'ttyname_r'.
24814         * modules/ttyname_r-tests: New file.
24815         * tests/test-ttyname_r.c: New file.
24816
24817         New module 'ttyname_r'.
24818         * lib/ttyname_r.c: New file.
24819         * m4/ttyname_r.m4: New file.
24820         * modules/ttyname_r: New file.
24821         * lib/unistd.in.h (ttyname_r): New declaration.
24822         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24823         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24824         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24825         HAVE_TTYNAME_R.
24826         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24827         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24828
24829 2010-03-20  Bruno Haible  <bruno@clisp.org>
24830
24831         signal: Undefine macro definitions in C++ mode.
24832         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24833         sigfillset): Undefine macro definitions from the system header in C++
24834         mode.
24835         Reported by John W. Eaton <jwe@gnu.org>.
24836
24837 2010-03-20  Bruno Haible  <bruno@clisp.org>
24838
24839         Ensure no #include statements inside extern "C" { ... }.
24840         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24841         contain #include statements.
24842         * lib/time.in.h: Likewise.
24843
24844 2010-03-20  Bruno Haible  <bruno@clisp.org>
24845
24846         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24847         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24848         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24849         Reported by John W. Eaton <jwe@gnu.org>.
24850
24851 2010-03-20  Bruno Haible  <bruno@clisp.org>
24852
24853         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24854         Reported by Jim Meyering.
24855
24856 2010-03-20  Bruno Haible  <bruno@clisp.org>
24857
24858         pipe: Set errno upon failure.
24859         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24860         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24861         errno value in error message.
24862
24863 2010-03-20  Bruno Haible  <bruno@clisp.org>
24864             Jim Meyering  <meyering@redhat.com>
24865
24866         lchown: Avoid "unused variable" warning.
24867         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24868
24869 2010-03-20  Bruno Haible  <bruno@clisp.org>
24870
24871         Work around unlink() bug on MacOS X 10.5.6.
24872         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24873         attempting to unlink a parent directory.
24874         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24875         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24876         activate for the replacement function.
24877         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24878
24879 2010-03-20  Bruno Haible  <bruno@clisp.org>
24880
24881         Fix link errors on Solaris 8.
24882         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24883         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24884
24885 2010-03-19  Jim Meyering  <meyering@redhat.com>
24886
24887         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24888         The _LIBC implementation of build_range_exp correctly honors the
24889         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24890         However, the non-_LIBC implementation would ignore that syntax-bit
24891         flag and return REG_ERANGE unconditionally.
24892         This change makes it honor that flag.
24893         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24894         Make two pointer parameters "const".
24895         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24896         (parse_bracket_exp): Update caller.
24897
24898         regex.m4: correct the reversed range endpoint ([b-a]) test
24899         * m4/regex.m4: When requiring that [b-a] evoke failure,
24900         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24901         test pass once again for x86-based systems.
24902
24903 2010-03-19  Bruno Haible  <bruno@clisp.org>
24904
24905         scandir: Fix link error on Solaris 8.
24906         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24907         macros.
24908
24909 2010-03-19  Bruno Haible  <bruno@clisp.org>
24910
24911         getusershell: Fix documentation.
24912         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24913         module.
24914         * doc/glibc-functions/setusershell.texi: Likewise.
24915
24916         getusershell: Provide declaration, missing on Solaris 9.
24917         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24918         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24919         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24920         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24922         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24923         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24924         HAVE_GETUSERSHELL.
24925         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24926
24927 2010-03-19  Bruno Haible  <bruno@clisp.org>
24928
24929         wctype: Provide iswblank function.
24930         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24931         exists and is fine.
24932         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24933         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24934         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24935         * doc/posix-functions/iswblank.texi: Update.
24936
24937 2010-03-19  Bruno Haible  <bruno@clisp.org>
24938
24939         Tests of module 'pty' in C++ mode.
24940         * modules/pty-tests: New file.
24941         * tests/test-pty-c++.cc: New file.
24942         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24943
24944 2010-03-19  Eric Blake  <eblake@redhat.com>
24945
24946         logb: fix documentation
24947         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24948         1.5 declaration bug.
24949
24950         forkpty, openpty: prefer glibc's const-safe prototype
24951         * lib/forkpty.c (rpl_forkpty): New file.
24952         * lib/openpty.c (rpl_openpty): Likewise.
24953         * modules/forkpty (Files): Distribute it.
24954         * modules/openpty (Files): Likewise.
24955         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24956         check...
24957         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24958         replacement for for non-const BSD signature.
24959         * modules/pty (Makefile.am): Substitute witnesses.
24960         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24961         * tests/test-forkpty.c: Update signature check.
24962         * tests/test-openpty.c: Likewise.
24963         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24964         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24965
24966         forkpty, openpty: split functions into new modules
24967         * modules/pty (Makefile.am): Substitute new witnesses.
24968         (Libraries): Move library detection...
24969         * modules/forkpty: ...into new module.
24970         * modules/openpty: Another new module.
24971         * modules/pty-tests: Rename and split...
24972         * modules/forkpty-tests: ...to this...
24973         * modules/openpty-tests: ...and this.
24974         * tests/test-pty.c: Rename and split...
24975         * tests/test-forkpty.c: ...to this...
24976         * tests/test-openpty.c: ...and this.
24977         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24978         (gl_PTY): Split library searching...
24979         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24980         (gl_FORKPTY, gl_OPENPTY): New macros.
24981         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24982         * NEWS: Mention the split.
24983         * MODULES.html.sh (Misc): Document the modules.
24984         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24985         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24986
24987         pty: improve replacement header
24988         * lib/pty.in.h: New file.
24989         * modules/pty (Files): Ship it.
24990         (Makefile.am): Always build replacement.
24991         * m4/pty.m4: Rename...
24992         * m4/pty_h.m4: ...to this.
24993         (gl_PTY): Modernize setting of witness macros; update check of
24994         forkpty to take proper advantage of cache.
24995         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24996
24997         getopt: avoid compiler warning
24998         * lib/getopt.c (attribute_hidden): Remove unused macro.
24999
25000 2010-03-18  Bruno Haible  <bruno@clisp.org>
25001
25002         Fix link errors on Solaris 8.
25003         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25004         * modules/search-tests (test_search_c___LDADD): Likewise.
25005         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25006         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25007         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25008         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25009         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25010         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25011         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25012
25013 2010-03-18  Bruno Haible  <bruno@clisp.org>
25014
25015         Fix bug introduced on 2010-03-14.
25016         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25017         (gl_SPAWN_H): Require it.
25018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25019         Reported by Simon Josefsson.
25020
25021 2010-03-18  Bruno Haible  <bruno@clisp.org>
25022
25023         Fix typo introduced on 2009-12-31.
25024         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25025         posix_spawn_file_actions_adddup2.
25026
25027 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25028         and Eric Blake  <eblake@redhat.com>
25029
25030         test-vc-list-files-git: make more robust
25031         * tests/test-vc-list-files-git.sh: Unset problematic environment
25032         variables.  Chain commands together.
25033
25034 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25035
25036         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25037         `AC_CHECK_DECL' invocation.
25038
25039 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25040
25041         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25042         appears before executable statements. Suggested by Petr Sumbera
25043         <Petr.Sumbera@Sun.COM>.
25044
25045 2010-03-14  Bruno Haible  <bruno@clisp.org>
25046
25047         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25048         portability problems. Instead use a simpler test.
25049         (main): Check that invalid arguments are rejected only on Linux.
25050
25051 2010-03-14  Bruno Haible  <bruno@clisp.org>
25052
25053         Fix bug introduced on 2009-12-31.
25054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25055         gl_PREREQ_SYS_H_WINSOCK2 always.
25056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25057         SYS_SOCKET_H variable.
25058         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25059         Update comments.
25060         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25061         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25062         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25063         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25064         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25065
25066 2010-03-14  Bruno Haible  <bruno@clisp.org>
25067
25068         Fix values returned by sinl, cosl.
25069         * lib/trigl.h: Add specification comments.
25070         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25071         that combines the values from the precomputed table with the values of
25072         the Chebyshev polynomials.
25073
25074 2010-03-14  Bruno Haible  <bruno@clisp.org>
25075
25076         Fix compilation error when modules 'posix_spawn[p]' are not used.
25077         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25079
25080 2010-03-14  Bruno Haible  <bruno@clisp.org>
25081
25082         Fix compilation error on mingw when module 'time_r' is not used.
25083         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25084         is 1.
25085         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25086         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25087         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25088         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25089
25090 2010-03-14  Bruno Haible  <bruno@clisp.org>
25091
25092         Fix compilation error with Sun C.
25093         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25094         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25095         instead of GCC specific ULONG_LONG_MAX.
25096         * lib/xstrtoll.c: Likewise.
25097         * lib/xstrtoull.c: Likewise.
25098
25099 2010-03-13  Bruno Haible  <bruno@clisp.org>
25100
25101         Allow the user to disable C++ code and tests.
25102         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25103         (gl_PROG_ANSI_CXX): Require it.
25104
25105 2010-03-13  Bruno Haible  <bruno@clisp.org>
25106
25107         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25108         cases.
25109
25110 2010-03-13  Bruno Haible  <bruno@clisp.org>
25111
25112         Test that gnulib does not break the standard C++ headers.
25113         * tests/test-locale-c++2.cc: New file.
25114         * modules/locale-tests (Files): Add it.
25115         (Makefile.am): Compile it for test-locale-c++.
25116         * tests/test-math-c++2.cc: New file.
25117         * modules/math-tests (Files): Add it.
25118         (Makefile.am): Compile it for test-math-c++.
25119         * tests/test-signal-c++2.cc: New file.
25120         * modules/signal-tests (Files): Add it.
25121         (Makefile.am): Compile it for test-signal-c++.
25122         * tests/test-stdio-c++2.cc: New file.
25123         * modules/stdio-tests (Files): Add it.
25124         (Makefile.am): Compile it for test-stdio-c++.
25125         * tests/test-stdlib-c++2.cc: New file.
25126         * modules/stdlib-tests (Files): Add it.
25127         (Makefile.am): Compile it for test-stdlib-c++.
25128         * tests/test-string-c++2.cc: New file.
25129         * modules/string-tests (Files): Add it.
25130         (Makefile.am): Compile it for test-string-c++.
25131         * tests/test-time-c++2.cc: New file.
25132         * modules/time-tests (Files): Add it.
25133         (Makefile.am): Compile it for test-time-c++.
25134         Reported by John W. Eaton <jwe@gnu.org>.
25135
25136 2010-03-13  Bruno Haible  <bruno@clisp.org>
25137
25138         * gnulib-tool (func_usage): Clarify which options are available for
25139         --create-testdir and --create-megatestdir.
25140
25141 2010-03-13  Bruno Haible  <bruno@clisp.org>
25142
25143         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25144         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25145         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25146         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25147         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25148         when appropriate.
25149         Reported by Jim Meyering.
25150
25151 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25152
25153         * gnulib-tool (func_import): Explain origin of code.
25154
25155 2010-03-12  Bruno Haible  <bruno@clisp.org>
25156
25157         Fix problem with automake's definition of CXXLINK.
25158         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25159         Reported by Simon Josefsson and Ludovic Courtès.
25160
25161 2010-03-12  Bruno Haible  <bruno@clisp.org>
25162
25163         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25164         stable releases.
25165
25166 2010-03-11  Bruno Haible  <bruno@clisp.org>
25167
25168         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25169         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25170         whether the system provides one variant or multiple variants of the
25171         function.
25172         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25173         C++ compilers.
25174         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25175         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25176         Reported by Jim Meyering.
25177
25178 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25179
25180         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25181
25182 2010-03-08  Bruno Haible  <bruno@clisp.org>
25183
25184         gnulib-tool: Add support for --libtool in --create-testdir.
25185         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25186         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25187
25188 2010-03-08  Eric Blake  <eblake@redhat.com>
25189
25190         gnulib-tool.texi: mention possibility of git submodule
25191         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25192         submodules.
25193         * doc/.gitignore: Ignore another generated file.
25194
25195 2010-03-08  Karl Berry  <karl@gnu.org>
25196
25197         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25198         of committing gnulib files while skipping others.
25199
25200 2010-03-07  Bruno Haible  <bruno@clisp.org>
25201
25202         Tests of module 'wctype' in C++ mode.
25203         * tests/test-wctype-c++.cc: New file.
25204         * modules/wctype-tests (Files): Add it and tests/signature.h.
25205         (Depends-on): Add ansi-c++-opt.
25206         (Makefile.am): Arrange to compile and run test-wctype-c++.
25207
25208         Tests of module 'wchar' in C++ mode.
25209         * tests/test-wchar-c++.cc: New file.
25210         * modules/wchar-tests (Files): Add it and tests/signature.h.
25211         (Depends-on): Add ansi-c++-opt.
25212         (Makefile.am): Arrange to compile and run test-wchar-c++.
25213         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25214         gl_MODULE_INDICATOR.
25215
25216         Tests of module 'unistd' in C++ mode.
25217         * tests/test-unistd-c++.cc: New file.
25218         * modules/unistd-tests (Files): Add it and tests/signature.h.
25219         (Depends-on): Add ansi-c++-opt.
25220         (Makefile.am): Arrange to compile and run test-unistd-c++.
25221         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25222         gl_MODULE_INDICATOR.
25223
25224         Tests of module 'time' in C++ mode.
25225         * tests/test-time-c++.cc: New file.
25226         * modules/time-tests (Files): Add it and tests/signature.h.
25227         (Depends-on): Add ansi-c++-opt.
25228         (Makefile.am): Arrange to compile and run test-time-c++.
25229         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25230
25231         Tests of module 'sys_time' in C++ mode.
25232         * tests/test-sys_time-c++.cc: New file.
25233         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25234         (Depends-on): Add ansi-c++-opt.
25235         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25236         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25237         gl_MODULE_INDICATOR.
25238
25239         Tests of module 'sys_stat' in C++ mode.
25240         * tests/test-sys_stat-c++.cc: New file.
25241         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25242         (Depends-on): Add ansi-c++-opt.
25243         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25244         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25245         gl_MODULE_INDICATOR.
25246
25247         Tests of module 'sys_socket' in C++ mode.
25248         * tests/test-sys_socket-c++.cc: New file.
25249         * modules/sys_socket-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_socket-c++.
25252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25253         gl_MODULE_INDICATOR.
25254
25255         Tests of module 'sys_select' in C++ mode.
25256         * tests/test-sys_select-c++.cc: New file.
25257         * modules/sys_select-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_select-c++.
25260         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25261         gl_MODULE_INDICATOR.
25262
25263         Tests of module 'sys_ioctl' in C++ mode.
25264         * tests/test-sys_ioctl-c++.cc: New file.
25265         * modules/sys_ioctl-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_ioctl-c++.
25268         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25269         gl_MODULE_INDICATOR.
25270
25271         Tests of module 'string' in C++ mode.
25272         * tests/test-string-c++.cc: New file.
25273         * modules/string-tests (Files): Add it and tests/signature.h.
25274         (Depends-on): Add ansi-c++-opt.
25275         (Makefile.am): Arrange to compile and run test-string-c++.
25276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25277         gl_MODULE_INDICATOR.
25278
25279         Tests of module 'stdlib' in C++ mode.
25280         * tests/test-stdlib-c++.cc: New file.
25281         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25282         (Depends-on): Add ansi-c++-opt.
25283         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25284         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25285         gl_MODULE_INDICATOR.
25286
25287         Tests of module 'stdio' in C++ mode.
25288         * tests/test-stdio-c++.cc: New file.
25289         * modules/stdio-tests (Files): Add it and tests/signature.h.
25290         (Depends-on): Add ansi-c++-opt.
25291         (Makefile.am): Arrange to compile and run test-stdio-c++.
25292         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25293         gl_MODULE_INDICATOR.
25294
25295         Tests of module 'spawn' in C++ mode.
25296         * tests/test-spawn-c++.cc: New file.
25297         * modules/spawn-tests (Files): Add it and tests/signature.h.
25298         (Depends-on): Add ansi-c++-opt.
25299         (Makefile.am): Arrange to compile and run test-spawn-c++.
25300         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25301         gl_MODULE_INDICATOR.
25302
25303         Tests of module 'signal' in C++ mode.
25304         * tests/test-signal-c++.cc: New file.
25305         * modules/signal-tests (Files): Add it and tests/signature.h.
25306         (Depends-on): Add ansi-c++-opt.
25307         (Makefile.am): Arrange to compile and run test-signal-c++.
25308         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25309         gl_MODULE_INDICATOR.
25310
25311         Tests of module 'search' in C++ mode.
25312         * tests/test-search-c++.cc: New file.
25313         * modules/search-tests (Files): Add it and tests/signature.h.
25314         (Depends-on): Add ansi-c++-opt.
25315         (Makefile.am): Arrange to compile and run test-search-c++.
25316         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25317         gl_MODULE_INDICATOR.
25318
25319         Tests of module 'math' in C++ mode.
25320         * tests/test-math-c++.cc: New file.
25321         * modules/math-tests (Files): Add it and tests/signature.h.
25322         (Depends-on): Add ansi-c++-opt.
25323         (Makefile.am): Arrange to compile and run test-math-c++.
25324         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25325
25326         Tests of module 'locale' in C++ mode.
25327         * tests/test-locale-c++.cc: New file.
25328         * modules/locale-tests (Files): Add it and tests/signature.h.
25329         (Depends-on): Add ansi-c++-opt.
25330         (Makefile.am): Arrange to compile and run test-locale-c++.
25331         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25332         gl_MODULE_INDICATOR.
25333
25334         Tests of module 'langinfo' in C++ mode.
25335         * tests/test-langinfo-c++.cc: New file.
25336         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25337         (Depends-on): Add ansi-c++-opt.
25338         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25339         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25340         gl_MODULE_INDICATOR.
25341
25342         Tests of module 'iconv-h' in C++ mode.
25343         * tests/test-iconv-h-c++.cc: New file.
25344         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25345         (Depends-on): Add ansi-c++-opt.
25346         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25347
25348         Tests of module 'glob' in C++ mode.
25349         * tests/test-glob-c++.cc: New file.
25350         * modules/glob-tests (Files): Add it.
25351         (Depends-on): Add ansi-c++-opt.
25352         (Makefile.am): Arrange to compile and run test-glob-c++.
25353
25354         Tests of module 'fcntl-h' in C++ mode.
25355         * tests/test-fcntl-h-c++.cc: New file.
25356         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25357         (Depends-on): Add ansi-c++-opt.
25358         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25359         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25360         gl_MODULE_INDICATOR.
25361
25362         Tests of module 'dirent' in C++ mode.
25363         * tests/test-dirent-c++.cc: New file.
25364         * modules/dirent-tests (Files): Add it and tests/signature.h.
25365         (Depends-on): Add ansi-c++-opt.
25366         (Makefile.am): Arrange to compile and run test-dirent-c++.
25367         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25368         gl_MODULE_INDICATOR.
25369
25370         New module 'ansi-c++-opt'.
25371         * modules/ansi-c++-opt: New file.
25372         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25373
25374         Document C++ namespace mode.
25375         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25376
25377         wctype: Avoid #define replacements in C++ mode.
25378         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25379         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25380         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25381         In C++, define a namespaced alias symbol.
25382         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25383         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25384         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25385         rule.
25386
25387         wchar: Avoid #define replacements in C++ mode.
25388         * lib/wchar.in.h: Include c++defs.h.
25389         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25390         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25391         symbol.
25392         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25393         * modules/wchar (Depends-on): Add c++defs.
25394         (Makefile.am): Update wchar.h rule.
25395
25396         unistd: Avoid #define replacements in C++ mode.
25397         * lib/unistd.in.h: Include c++defs.h.
25398         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25399         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25400         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25401         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25402         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25403         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25404         symbol.
25405         (environ): Update.
25406         * modules/unistd (Depends-on): Add c++defs.
25407         (Makefile.am): Update unistd.h rule.
25408
25409         time: Avoid #define replacements in C++ mode.
25410         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25411         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25412         define a namespaced alias symbol.
25413         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25414         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25415         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25416         * modules/time (Depends-on): Add c++defs, warn-on-use.
25417         (Makefile.am): Update time.h rule.
25418         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25419         * modules/nanosleep (configure.ac): Likewise.
25420         * modules/strptime (configure.ac): Likewise.
25421         * modules/timegm (configure.ac): Likewise.
25422
25423         sys_time: Avoid #define replacements in C++ mode.
25424         * lib/sys_time.in.h: Include c++defs.h.
25425         (gettimeofday): In C++, define a namespaced alias symbol.
25426         * modules/sys_time (Depends-on): Add c++defs.
25427         (Makefile.am): Update sys/time.h rule.
25428
25429         sys_stat: Avoid #define replacements in C++ mode.
25430         * lib/sys_stat.in.h: Include c++defs.h.
25431         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25432         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25433         namespaced alias symbol.
25434         In C++, define a namespaced alias symbol.
25435         * modules/sys_stat (Depends-on): Add c++defs.
25436         (Makefile.am): Update sys/stat.h rule.
25437
25438         sys_socket: Avoid #define replacements in C++ mode.
25439         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25440         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25441         definitions also when the system has a <sys/socket.h>.
25442         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25443         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25444         In C++, define a namespaced alias symbol.
25445         * modules/sys_socket (Depends-on): Add c++defs.
25446         (Makefile.am): Update sys/socket.h rule.
25447
25448         sys_select: Avoid #define replacements in C++ mode.
25449         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25450         definitions also when the system has a <sys/select.h>.
25451         (select): In C++, define a namespaced alias symbol.
25452         * modules/sys_select (Depends-on): Add c++defs.
25453         (Makefile.am): Update sys/select.h rule.
25454
25455         sys_ioctl: Avoid #define replacements in C++ mode.
25456         * lib/sys_ioctl.in.h: Include c++defs.h.
25457         (ioctl): In C++, define a namespaced alias symbol.
25458         * modules/sys_ioctl (Depends-on): Add c++defs.
25459         (Makefile.am): Update sys/ioctl.h rule.
25460
25461         string: Avoid #define replacements in C++ mode.
25462         * lib/string.in.h: Include c++defs.h.
25463         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25464         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25465         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25466         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25467         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25468         * modules/string (Depends-on): Add c++defs.
25469         (Makefile.am): Update string.h rule.
25470
25471         stdlib: Avoid #define replacements in C++ mode.
25472         * lib/stdlib.in.h: Include c++defs.h.
25473         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25474         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25475         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25476         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25477         symbol.
25478         * modules/stdlib (Depends-on): Add c++defs.
25479         (Makefile.am): Update stdlib.h rule.
25480
25481         stdio: Avoid #define replacements in C++ mode.
25482         * lib/stdio.in.h: Include c++defs.h.
25483         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25484         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25485         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25486         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25487         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25488         namespaced alias symbol.
25489         * modules/stdio (Depends-on): Add c++defs.
25490         (Makefile.am): Update stdio.h rule.
25491
25492         spawn: Avoid #define replacements in C++ mode.
25493         * lib/spawn.in.h: Include c++defs.h.
25494         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25495         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25496         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25497         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25498         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25499         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25500         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25501         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25502         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25503         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25504         In C++, define a namespaced alias symbol.
25505         * modules/spawn (Depends-on): Add c++defs.
25506         (Makefile.am): Update spawn.h rule.
25507
25508         signal: Avoid #define replacements in C++ mode.
25509         * lib/signal.in.h: Include c++defs.h.
25510         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25511         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25512         namespaced alias symbol.
25513         * modules/signal (Depends-on): Add c++defs.
25514         (Makefile.am): Update signal.h rule.
25515
25516         search: Avoid #define replacements in C++ mode.
25517         * lib/search.in.h: Include c++defs.h.
25518         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25519         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25520         symbol.
25521         * modules/search (Depends-on): Add c++defs.
25522         (Makefile.am): Update search.h rule.
25523
25524         math: Avoid #define replacements in C++ mode.
25525         * lib/math.in.h: Include c++defs.h.
25526         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25527         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25528         trunc, truncl): In C++, define a namespaced alias symbol.
25529         * modules/math (Depends-on): Add c++defs.
25530         (Makefile.am): Update math.h rule.
25531
25532         locale: Avoid #define replacements in C++ mode.
25533         * lib/locale.in.h: Include c++defs.h.
25534         (duplocale): In C++, define a namespaced alias symbol.
25535         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25536         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25537         * modules/locale (Depends-on): Add c++defs.
25538         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25539
25540         langinfo: Avoid #define replacements in C++ mode.
25541         * lib/langinfo.in.h: Include c++defs.h.
25542         (nl_langinfo): In C++, define a namespaced alias symbol.
25543         * modules/langinfo (Depends-on): Add c++defs.
25544         (Makefile.am): Update langinfo.h rule.
25545
25546         iconv-h: Avoid #define replacements in C++ mode.
25547         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25548         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25549         symbol.
25550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25551         whenever iconv is present.
25552         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25553         (Makefile.am): Update iconv.h rule.
25554
25555         glob: Avoid #define replacements in C++ mode.
25556         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25557         (_gl_glob_errfunc_fn): New type.
25558         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25559         symbol.
25560         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25561         (Makefile.am): Update glob.h rule.
25562
25563         fcntl-h: Avoid #define replacements in C++ mode.
25564         * lib/fcntl.in.h: Include c++defs.h.
25565         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25566         * modules/fcntl-h (Depends-on): Add c++defs.
25567         (Makefile.am): Update fcntl.h rule.
25568
25569         dirent: Avoid #define replacements in C++ mode.
25570         * lib/dirent.in.h: Include c++defs.h.
25571         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25572         namespaced alias symbol.
25573         (dirfd): Update declaration.
25574         * modules/dirent (Depends-on): Add c++defs.
25575         (Makefile.am): Update dirent.h rule.
25576
25577         ctype: Make it usable in C++ code.
25578         * lib/ctype.in.h: Include c++defs.h.
25579         (isblank): Declare as extern "C".
25580         * modules/ctype (Depends-on): Add c++defs.
25581         (Makefile.am): Update ctype.h rule.
25582
25583         New module 'c++defs'.
25584         * modules/c++defs: New file.
25585         * build-aux/c++defs.h: New file.
25586         Reported by John W. Eaton <jwe@gnu.org>.
25587
25588 2010-03-07  Bruno Haible  <bruno@clisp.org>
25589
25590         logb: Provide missing declaration for Cygwin.
25591         * lib/math.in.h (logb): New declaration.
25592         * m4/logb.m4: New file.
25593         * modules/logb (Files): Add m4/logb.m4.
25594         (Depends-on): Add math.
25595         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25596         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25598         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25599         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25600
25601 2010-03-07  Bruno Haible  <bruno@clisp.org>
25602
25603         Fix test-cond link error.
25604         * tests/test-cond.c: Include <stdio.h>.
25605
25606 2010-03-07  Bruno Haible  <bruno@clisp.org>
25607
25608         Fix test-dirent-safer link error.
25609         * modules/dirent-safer-tests (Makefile.am): Define
25610         test_dirent_safer_LDADD.
25611
25612 2010-03-07  Bruno Haible  <bruno@clisp.org>
25613
25614         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25615         among default module list.
25616
25617 2010-03-07  Bruno Haible  <bruno@clisp.org>
25618
25619         Fix link error on platforms with GNU libiconv.
25620         * modules/unistr/u8-strcoll-tests (Makefile): Define
25621         test_u8_strcoll_LDADD.
25622         * modules/unistr/u16-strcoll-tests (Makefile): Define
25623         test_u16_strcoll_LDADD.
25624         * modules/unistr/u32-strcoll-tests (Makefile): Define
25625         test_u32_strcoll_LDADD.
25626
25627 2010-03-07  Bruno Haible  <bruno@clisp.org>
25628
25629         Use POSIX declarations for socket functions.
25630         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25631         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25632         rpl_sendto): Change declaration to match POSIX.
25633         * lib/connect.c (rpl_connect): Likewise.
25634         * lib/accept.c (rpl_accept): Likewise.
25635         * lib/bind.c (rpl_bind): Likewise.
25636         * lib/getpeername.c (rpl_getpeername): Likewise.
25637         * lib/getsockname.c (rpl_getsockname): Likewise.
25638         * lib/recv.c (rpl_recv): Likewise.
25639         * lib/send.c (rpl_send): Likewise.
25640         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25641         * lib/sendto.c (rpl_sendto): Likewise.
25642
25643 2010-03-06  Bruno Haible  <bruno@clisp.org>
25644
25645         Clarify access, euidaccess, faccessat.
25646         * doc/posix-functions/faccessat.texi: Mention security problem under
25647         "Other problems", not "Portability problems".
25648         * doc/posix-functions/access.texi: Likewise. Mention a related security
25649         problem.
25650         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25651         * lib/euidaccess.c: Add comments about platforms.
25652         * lib/unistd.in.h (access, euidaccess): Add warnings.
25653
25654 2010-03-07  Bruno Haible  <bruno@clisp.org>
25655
25656         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25657         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25658         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25659         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25660         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25661         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25662         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25663         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25664         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25665         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25666         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25667         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25668         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25669         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25670         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25671         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25672         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25673         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25674         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25675         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25676         Likewise.
25677         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25678         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25679         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25680         Likewise.
25681         * tests/test-spawn.c (main): Make it work when
25682         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25683
25684 2010-03-07  Bruno Haible  <bruno@clisp.org>
25685
25686         Fix incorrect Makefile.am generation in German locale.
25687         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25688         Execute sed command with character range in C locale.
25689
25690 2010-03-06  Bruno Haible  <bruno@clisp.org>
25691
25692         Tests for module 'iconv-h'.
25693         * modules/iconv-h-tests: New file.
25694         * tests/test-iconv-h.c: New file.
25695
25696         New module 'iconv-h'.
25697         * modules/iconv-h: New file.
25698         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25699         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25700         (configure.ac): Remove gl_ICONV_H.
25701         (Makefile.am): Remove rule for iconv.h.
25702
25703 2010-03-06  Bruno Haible  <bruno@clisp.org>
25704
25705         More consistent naming of *.m4 files.
25706         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25707         * modules/wctype (Files): Update.
25708
25709         More consistent naming of *.m4 files.
25710         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25711         * modules/wchar (Files): Update.
25712
25713 2010-03-06  Jim Meyering  <meyering@redhat.com>
25714
25715         euidaccess: relax license to LGPLv2+
25716         * modules/euidaccess (License): Relax to LGPLv2+.
25717
25718 2010-03-06  Bruno Haible  <bruno@clisp.org>
25719
25720         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25721         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25722         (Makefile.am): Augment lib_SOURCES instead.
25723
25724 2010-03-04  Jim Meyering  <meyering@redhat.com>
25725
25726         utime: remove obsolete module
25727         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25728         unnecessary for years, and has been marked as obsolete for 10 months.
25729         * modules/utime: Remove file.
25730         * lib/utime.c: Remove file.
25731         * m4/utime.m4: Remove file.
25732         * m4/utimes-null.m4: Remove file.
25733         * doc/posix-functions/utime.texi (utime): Remove reference to
25734         the module.  Move the sole "fixed by gnulib" item into the
25735         "problems not fixed by Gnulib" list.
25736         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25737
25738 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25739
25740         * modules/exit (License): Relax license to LGPLv2+.
25741         (Status): Mark as obsolete.
25742         * NEWS: Mention deprecated 'exit' module.
25743         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25744         of now obsolete 'exit'.
25745
25746 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25747
25748         fts-lgpl: remove unused module
25749         * modules/fts-lgpl: Remove.
25750         * MODULES.html.sh (func_all_modules): Adjust.
25751         * check-module (find_included_lib_files): Adjust.
25752         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25753
25754 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25755
25756         copy-acl: enhance Solaris ACL error handling
25757         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25758         * lib/set-mode-acl.c (qset_acl): Likewise.
25759
25760 2010-03-02  Bruno Haible  <bruno@clisp.org>
25761
25762         spawn: Don't override the system defined values on FreeBSD 8.
25763         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25764         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25765         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25766         if HAVE_POSIX_SPAWN is 1.
25767         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25768
25769 2010-03-01  Bruno Haible  <bruno@clisp.org>
25770
25771         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25772         regarding Automake.
25773
25774 2010-02-25  Bruno Haible  <bruno@clisp.org>
25775
25776         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25777         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25778         setting, not afterwards.
25779         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25780
25781 2010-02-24  Eric Blake  <eblake@redhat.com>
25782
25783         bootstrap, git-version-gen: use timestamp
25784         * build-aux/git-version-gen (scriptversion): Force UTC.
25785         * build-aux/bootstrap (scriptversion): New variable.
25786
25787         bootstrap: allow older git
25788         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25789         older than 1.6.4.  Requested by the libvirt project.
25790
25791 2010-02-23  Eric Blake  <eblake@redhat.com>
25792
25793         warn-on-use: work with old autoconf
25794         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25795         AS_VAR semantics of autoconf 2.60.
25796         Reported by Bruno Haible.
25797
25798         bootstrap: improve some comments
25799         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25800         clarification comments.
25801
25802         gettimeofday: provide correct function
25803         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25804         when replacement is declared, otherwise provide gettimeofday.
25805         Reported by Michael Goffioul.
25806
25807 2010-02-23  Jim Meyering  <meyering@redhat.com>
25808
25809         lib-ignore: relax license to "unlimited", not LGPLv2+
25810         * modules/lib-ignore (License): Relax to "unlimited".
25811
25812 2010-02-23  Jim Meyering  <meyering@redhat.com>
25813
25814         lib-ignore: relax license to LGPLv2+
25815         * modules/lib-ignore (License): Relax to LGPLv2+.
25816
25817 2010-02-22  Eric Blake  <eblake@redhat.com>
25818
25819         lseek: avoid bash 3.2 broken pipe bug
25820         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25821         warning from bash 3.2.
25822         Reported by Ben Pfaff, with analysis from Bruno Haible.
25823
25824         bootstrap: support non-FSF copyright holder
25825         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25826         bootstrap.conf override of COPYRIGHT_HOLDER.
25827         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25828
25829         bootstrap: interoperate with gettext 0.14.1
25830         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25831
25832         bootstrap: allow for alternate submodule location
25833         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25834         hardcoding submodule location.
25835         (gnulib_mk): Allow direct use of Makefile.am.
25836
25837         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25838         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25839         rather than reconfiguring where the submodule points.
25840
25841         gettimeofday: restore support for platforms that lack function
25842         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25843         replacement if function is missing.
25844         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25845         * modules/sys_time (Makefile.am): Substitute it.
25846         * lib/sys_time.in.h (gettimeofday): Check it.
25847         Reported by Michael Goffioul.
25848
25849 2010-02-21  Bruno Haible  <bruno@clisp.org>
25850
25851         * lib/stdio.in.h (obstack_printf): Fix typo.
25852
25853 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25854
25855         vc-list-files: use bzr ls's -R option
25856         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25857         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25858
25859 2010-02-21  Jim Meyering  <meyering@redhat.com>
25860
25861         init.sh: fix EXEEXT shims to work also for names like test-prog
25862         * tests/init.sh: Re-exec a better shell, when needed.
25863         If the current shell lacks support for posix $(...), an init.sh-using
25864         test will now try to find a shell that supports that.  If EXEEXT is
25865         nonempty, we also require support for hyphen-in-alias-name and shell
25866         substitutions like ${var#glob}.  Failure to find such a shell results
25867         in a skipped test.
25868
25869 2010-02-21  Bruno Haible  <bruno@clisp.org>
25870
25871         Really work around around "broken pipe" error message from bash 3.2.
25872         * gnulib-tool (func_reset_sigpipe): Remove function.
25873         (echo): In bash 3.2, define to a function that uses printf.
25874         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25875
25876 2010-02-20  Bruno Haible  <bruno@clisp.org>
25877
25878         Restore support for automake 1.9.6 with autoconf 2.61.
25879         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25880         Reported by James Youngman <jay@gnu.org>.
25881
25882 2010-02-20  Bruno Haible  <bruno@clisp.org>
25883
25884         Improve *printf warning condition.
25885         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25886         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25887         and the function is overridden due to SIGPIPE emulation.
25888
25889 2010-02-20  Bruno Haible  <bruno@clisp.org>
25890
25891         * lib/stdio.in.h: Tweak comments.
25892
25893 2010-02-19  Bruno Haible  <bruno@clisp.org>
25894
25895         Make it easier to find modules. New gnulib-tool option '--find'.
25896         * gnulib-tool: New option --find.
25897         (func_usage): Document it.
25898         (func_sanitize_modulelist): New function, extracted from
25899         func_all_modules.
25900         (func_all_modules): Invoke it.
25901         * doc/gnulib-tool.texi (Which modules?): New node.
25902
25903 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25904
25905         * lib/sys_select.in.h: Provide select replacement even if
25906         sys/select.h exists on a system, for Interix.
25907
25908 2010-02-18  Jim Meyering  <meyering@redhat.com>
25909
25910         init.sh: don't use $(...) just yet
25911         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25912         to accommodate e.g., Solaris' /bin/sh.
25913
25914 2010-02-17  Bruno Haible  <bruno@clisp.org>
25915
25916         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25917         Reported by Ludovic Courtès <ludo@gnu.org>.
25918
25919 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25920
25921         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25922         linking with -lintl.
25923
25924 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25925
25926         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25927         if not provided by the system's netdb.h.  Reported by
25928         ludo@gnu.org (Ludovic Courtès).
25929
25930 2010-02-15  Jim Meyering  <meyering@redhat.com>
25931
25932         init.sh: improve portability and efficiency
25933         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25934         "dummy" in a for loop.
25935         Use '!', not '^' to select the complement of a character set used
25936         in a "case" statement.
25937         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25938         Suggestions from Eric Blake.
25939
25940         init.sh: automatically accommodate programs with the .exe suffix
25941         Automatically arrange for an invocation of "prog" to execute the
25942         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25943         may use the simpler "prog", yet still work when built on a system
25944         that requires specifying the added suffix.
25945         Do this by constructing a function named "prog" that invokes
25946         "prog.exe" for each .exe file in selected directories.
25947         * tests/init.sh (find_exe_basenames_): New function.
25948         (create_exe_shim_functions_): New function.
25949         (path_prepend_): Use it.
25950
25951         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25952         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25953         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25954
25955 2010-02-14  Jim Meyering  <meyering@redhat.com>
25956
25957         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25958         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25959         (sc_prohibit_hash_pjw_without_use): New rule.
25960
25961         maint.mk: allow the default upload destination dir to be overridden
25962         * top/maint.mk (upload_dest_dir_): Define with a default that
25963         preserves the status quo.
25964         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25965         Reported by Peter Simons.
25966
25967         maint.mk: prohibit inclusion of "hash.h" without_use
25968         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25969
25970 2010-02-10  Jim Meyering  <meyering@redhat.com>
25971
25972         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25973         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25974
25975 2010-02-09  Eric Blake  <ebb9@byu.net>
25976         and Bruno Haible  <bruno@clisp.org>
25977
25978         obstack-printf-posix: ensure declaration
25979         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25980         extracted from gl_FUNC_OBSTACK_PRINTF.
25981         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25982         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25983         Likewise.
25984         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25985         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25986         0.
25987
25988 2010-02-08  Bruno Haible  <bruno@clisp.org>
25989
25990         gnulib-tool: Fix typo in 2010-02-07 commit.
25991         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25992         Reported by Eric Blake.
25993
25994 2010-02-07  Bruno Haible  <bruno@clisp.org>
25995
25996         gnulib-tool: Fix up caching patches.
25997         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25998         option --no-cache. Use associative arrays when supported by the shell.
25999         (sed_comments): New variable.
26000         (modcache): Renamed from do_cache.
26001         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26002         abbreviate unnecessarily.
26003         (have_associative): New variable.
26004         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26005         way also for ksh and zsh.
26006         (func_init_sed_convert_to_cache_statements): New function, extracted
26007         from func_cache_lookup_module. Add support for associative arrays.
26008         Don't set the c_MODULE_cached variable here. Ignore all lines before
26009         the first field header. Remove only the final newline, not all trailing
26010         newlines. Support empty fields correctly. Limit the use of 'eval' to
26011         assignments.
26012         (func_get_description, func_get_status, func_get_notice,
26013         func_get_applicability, func_get_filelist, func_get_dependencies,
26014         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26015         func_get_automake_snippet, func_get_include_directive,
26016         func_get_link_directive, func_get_license, func_get_maintainer):
26017         Update documentation. List the unoptimized code first. Add support for
26018         associative arrays. Limit the use of 'eval' to assignments.
26019         (func_get_applicability): Undo stylistic pessimisations.
26020         (func_get_automake_snippet, func_get_include_directive): Reduce code
26021         duplication.
26022         (func_modules_transitive_closure, func_modules_add_dummy,
26023         func_modules_notice, func_modules_to_filelist, func_add_file,
26024         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26025         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26026         func_create_testdir, func_create_megatestdir): Update documentation.
26027
26028 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26029
26030         * gnulib-tool (func_cache_lookup_module): Store the module name
26031         belonging to the cache variable; error out if two different
26032         module names map to the same cache variable name.
26033
26034 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26035
26036         gnulib-tool: Make caching optional.
26037         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26038         Update matching short versions of --no-changelog.
26039         (func_usage): Update.
26040         (sed_extract_cache_prog): Renamed from ...
26041         (sed_extract_prog): ... this; revert to old extraction script.
26042         (func_get_description, func_get_status)
26043         (func_get_notice, func_get_applicability, func_get_filelist)
26044         (func_get_dependencies, func_get_autoconf_early_snippet)
26045         (func_get_autoconf_snippet, func_get_automake_snippet)
26046         (func_get_include_directive, func_get_link_directive)
26047         (func_get_license, func_get_maintainer): If $do_cache is false,
26048         use old, non-caching extraction scripts.
26049         Suggestion by Bruno Haible.
26050
26051 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26052
26053         gnulib-tool: cache module metainformation.
26054         * gnulib-tool (sed_extract_prog): Match newline before each
26055         header, and rewrite header to a shell variable suffix.
26056         (func_cache_var, func_cache_lookup_module): New functions,
26057         to turn a module name into a cache variable prefix, and to
26058         look up and cache module metainformation.
26059         (func_get_description, func_get_status)
26060         (func_get_notice, func_get_applicability, func_get_filelist)
26061         (func_get_dependencies, func_get_autoconf_early_snippet)
26062         (func_get_autoconf_snippet, func_get_automake_snippet)
26063         (func_get_include_directive, func_get_link_directive)
26064         (func_get_license, func_get_maintainer): Use
26065         func_cache_lookup_module.
26066
26067 2010-02-07  Bruno Haible  <bruno@clisp.org>
26068
26069         fnctl: Fix missing dependency.
26070         * modules/fcntl (Depends-on): Add getdtablesize.
26071         Reported by John W. Eaton <jwe@gnu.org>.
26072
26073 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26074
26075         Argp: fix recognition of short alias options.
26076
26077         * lib/argp-parse.c (convert_options): Fix improper use of
26078         `|' between character values.
26079         * tests/test-argp.c (group1_option): New alias option
26080         --read (-r).
26081         (group1_parser): Special handling for 'r'.
26082         (test15): New test case.
26083         (test_fun): Add test15.
26084         * tests/test-argp-2.sh: Update expected --help and --usage
26085         outputs.
26086
26087 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26088
26089         * tests/test-argp.c: Fix indentation.
26090
26091 2010-02-04  Eric Blake  <ebb9@byu.net>
26092
26093         gettimeofday: expose type of second argument
26094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26095         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26096         * tests/test-gettimeofday.c: Use it to silence warning.
26097         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26098         the issue.
26099
26100 2010-02-03  Jim Meyering  <meyering@redhat.com>
26101
26102         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26103         * lib/regcomp.c (TYPE_SIGNED): Define.
26104         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26105
26106         regcomp.c: avoid a new -Wshadow warning
26107         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26108
26109 2010-02-01  Jim Meyering  <meyering@redhat.com>
26110
26111         removing useless parentheses in cpp #define directives
26112         For motivation, see commit c0221df4, "define STREQ(a,b)
26113         consistently, removing useless parentheses"
26114         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26115         * lib/mountlist.c (MNT_IGNORE): Likewise.
26116         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26117
26118 2010-02-01  Eric Blake  <ebb9@byu.net>
26119
26120         sys_time: use link-warning
26121         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26122         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26123         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26124         * modules/sys_time (Depends-on): Add warn-on-use.
26125         (Makefile.am): Always build replacement.
26126         (configure.ac): Update substitutions.
26127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26128         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26129         bother with SYS_TIME_H.
26130         * modules/gettimeofday (configure.ac): Declare indicator.
26131         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26132         in use.
26133
26134         closein-tests: silence compiler warning
26135         * tests/test-closein.c (main): Ignore fread result.
26136         * modules/closein-tests (Depends-on): Add ignore-value.
26137
26138         tests: silence warning about system return
26139         * tests/test-areadlink-with-size.c (main): Ignore system result.
26140         * tests/test-areadlink.c (main): Likewise.
26141         * tests/test-areadlinkat-with-size.c (main): Likewise.
26142         * tests/test-areadlinkat.c (main): Likewise.
26143         * tests/test-canonicalize-lgpl.c (main): Likewise.
26144         * tests/test-canonicalize.c (main): Likewise.
26145         * tests/test-chown.c (main): Likewise.
26146         * tests/test-fchownat.c (main): Likewise.
26147         * tests/test-fdutimensat.c (main): Likewise.
26148         * tests/test-fstatat.c (main): Likewise.
26149         * tests/test-futimens.c (main): Likewise.
26150         * tests/test-lchown.c (main): Likewise.
26151         * tests/test-link.c (main): Likewise.
26152         * tests/test-linkat.c (main): Likewise.
26153         * tests/test-lstat.c (main): Likewise.
26154         * tests/test-mkdir.c (main): Likewise.
26155         * tests/test-mkdirat.c (main): Likewise.
26156         * tests/test-mkfifo.c (main): Likewise.
26157         * tests/test-mkfifoat.c (main): Likewise.
26158         * tests/test-mknod.c (main): Likewise.
26159         * tests/test-readlink.c (main): Likewise.
26160         * tests/test-remove.c (main): Likewise.
26161         * tests/test-rename.c (main): Likewise.
26162         * tests/test-renameat.c (main): Likewise.
26163         * tests/test-rmdir.c (main): Likewise.
26164         * tests/test-symlink.c (main): Likewise.
26165         * tests/test-symlinkat.c (main): Likewise.
26166         * tests/test-unlink.c (main): Likewise.
26167         * tests/test-unlinkat.c (main): Likewise.
26168         * tests/test-utimens.c (main): Likewise.
26169         * tests/test-utimensat.c (main): Likewise.
26170         * modules/areadlink-tests (Depends-on): Add ignore-value.
26171         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26172         * modules/areadlinkat-tests (Depends-on): Likewise.
26173         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26174         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26175         * modules/canonicalize-tests (Depends-on): Likewise.
26176         * modules/chown-tests (Depends-on): Likewise.
26177         * modules/fdutimensat-tests (Depends-on): Likewise.
26178         * modules/futimens-tests (Depends-on): Likewise.
26179         * modules/lchown-tests (Depends-on): Likewise.
26180         * modules/link-tests (Depends-on): Likewise.
26181         * modules/linkat-tests (Depends-on): Likewise.
26182         * modules/lstat-tests (Depends-on): Likewise.
26183         * modules/mkdir-tests (Depends-on): Likewise.
26184         * modules/mkfifo-tests (Depends-on): Likewise.
26185         * modules/mkfifoat-tests (Depends-on): Likewise.
26186         * modules/mknod-tests (Depends-on): Likewise.
26187         * modules/openat-tests (Depends-on): Likewise.
26188         * modules/readlink-tests (Depends-on): Likewise.
26189         * modules/remove-tests (Depends-on): Likewise.
26190         * modules/rename-tests (Depends-on): Likewise.
26191         * modules/renameat-tests (Depends-on): Likewise.
26192         * modules/rmdir-tests (Depends-on): Likewise.
26193         * modules/symlink-tests (Depends-on): Likewise.
26194         * modules/symlinkat-tests (Depends-on): Likewise.
26195         * modules/unlink-tests (Depends-on): Likewise.
26196         * modules/utimens-tests (Depends-on): Likewise.
26197         * modules/utimensat-tests (Depends-on): Likewise.
26198
26199 2010-01-31  Bruno Haible  <bruno@clisp.org>
26200
26201         Perform the same test for many <math.h> functions.
26202         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26203         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26204         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26205         of gl_MATHFUNC.
26206         * modules/acos (configure.ac): Likewise.
26207         * modules/asin (configure.ac): Likewise.
26208         * modules/atan (configure.ac): Likewise.
26209         * modules/atan2 (configure.ac): Likewise.
26210         * modules/cbrt (configure.ac): Likewise.
26211         * modules/copysign (configure.ac): Likewise.
26212         * modules/cos (configure.ac): Likewise.
26213         * modules/cosh (configure.ac): Likewise.
26214         * modules/erf (configure.ac): Likewise.
26215         * modules/erfc (configure.ac): Likewise.
26216         * modules/exp (configure.ac): Likewise.
26217         * modules/fmod (configure.ac): Likewise.
26218         * modules/hypot (configure.ac): Likewise.
26219         * modules/j0 (configure.ac): Likewise.
26220         * modules/j1 (configure.ac): Likewise.
26221         * modules/jn (configure.ac): Likewise.
26222         * modules/lgamma (configure.ac): Likewise.
26223         * modules/log (configure.ac): Likewise.
26224         * modules/log10 (configure.ac): Likewise.
26225         * modules/log1p (configure.ac): Likewise.
26226         * modules/pow (configure.ac): Likewise.
26227         * modules/remainder (configure.ac): Likewise.
26228         * modules/sin (configure.ac): Likewise.
26229         * modules/sinh (configure.ac): Likewise.
26230         * modules/tan (configure.ac): Likewise.
26231         * modules/tanh (configure.ac): Likewise.
26232         * modules/y0 (configure.ac): Likewise.
26233         * modules/y1 (configure.ac): Likewise.
26234         * modules/yn (configure.ac): Likewise.
26235         Suggested by Paolo Bonzini.
26236
26237 2010-01-31  Bruno Haible  <bruno@clisp.org>
26238
26239         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26240
26241 2010-01-31  Bruno Haible  <bruno@clisp.org>
26242
26243         Work around getdelim() bug on FreeBSD 8.0.
26244         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26245         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26246         not work.
26247         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26248         is 1.
26249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26250         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26251         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26252         a non-zero size.
26253         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26254
26255 2010-01-31  Bruno Haible  <bruno@clisp.org>
26256
26257         Work around getline() bug on FreeBSD 8.0.
26258         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26259         and a non-zero size.
26260         * tests/test-getline.c (main): Likewise.
26261         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26262         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26263
26264 2010-01-28  Eric Blake  <ebb9@byu.net>
26265
26266         regex: fix build failure
26267         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26268         platforms.
26269
26270 2010-01-28  Jim Meyering  <meyering@redhat.com>
26271
26272         regex: do not ignore memory allocation failure
26273         * lib/regex_internal.c (create_cd_newstate): Detect
26274         re_node_set_init_copy failure.   Extracted from glibc commit
26275         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26276
26277         regex: sync more white-space changes from libc
26278         * lib/regex_internal.c: White-space only changes.
26279         * lib/regexec.c: Likewise.
26280
26281         regex: add many uses of __attribute_warn_unused_result__
26282         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26283         * lib/regexec.c: Likewise.
26284         Extracted from a messy glibc commit.
26285
26286         regcomp.c: spelling and merge-artifact from glibc
26287         * lib/regcomp.c: Merge remainder of glibc's
26288         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26289
26290         regcomp.c: sync white-space changes from glibc
26291         * lib/regcomp.c: Merge to accommodate white space
26292         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26293
26294         regcomp.c: do not ignore internal return values
26295         * lib/regcomp.c: Do not ignore internal return values.
26296         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26297         but without its white-space changes and spelling fixes.
26298
26299         regex_internal.h: define __attribute_warn_unused_result__
26300         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26301
26302         maint: add a syntax-check rule to check for vulnerable Makefile.in
26303         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26304
26305 2010-01-27  Jim Meyering  <meyering@redhat.com>
26306
26307         ncftpput-ftp: clean up spaces
26308         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26309         Remove trailing blanks.
26310
26311 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26312
26313         * build-aux/git-version-gen: Fix copyright statement.
26314         * build-aux/gnupload: Likewise.
26315         * tests/test-arcfour.c: Likewise.
26316         * tests/test-arctwo.c: Likewise.
26317         * tests/test-count-one-bits.c: Likewise.
26318         * tests/test-crc.c: Likewise.
26319         * tests/test-des.c: Likewise.
26320         * tests/test-gc-arcfour.c: Likewise.
26321         * tests/test-gc-arctwo.c: Likewise.
26322         * tests/test-gc-des.c: Likewise.
26323         * tests/test-gc-hmac-md5.c: Likewise.
26324         * tests/test-gc-hmac-sha1.c: Likewise.
26325         * tests/test-gc-md2.c: Likewise.
26326         * tests/test-gc-md4.c: Likewise.
26327         * tests/test-gc-md5.c: Likewise.
26328         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26329         * tests/test-gc-rijndael.c: Likewise.
26330         * tests/test-gc-sha1.c: Likewise.
26331         * tests/test-gc.c: Likewise.
26332         * tests/test-gethostname.c: Likewise.
26333         * tests/test-gettimeofday.c: Likewise.
26334         * tests/test-hash.c: Likewise.
26335         * tests/test-hmac-md5.c: Likewise.
26336         * tests/test-hmac-sha1.c: Likewise.
26337         * tests/test-md2.c: Likewise.
26338         * tests/test-md4.c: Likewise.
26339         * tests/test-md5.c: Likewise.
26340         * tests/test-memchr.c: Likewise.
26341         * tests/test-memchr2.c: Likewise.
26342         * tests/test-memcmp.c: Likewise.
26343         * tests/test-memmem.c: Likewise.
26344         * tests/test-memrchr.c: Likewise.
26345         * tests/test-rawmemchr.c: Likewise.
26346         * tests/test-read-file.c: Likewise.
26347         * tests/test-rijndael.c: Likewise.
26348         * tests/test-sockets.c: Likewise.
26349         * tests/test-strchrnul.c: Likewise.
26350         * tests/test-strstr.c: Likewise.
26351         * tests/test-strtod.c: Likewise.
26352         * build-aux/ncftpput-ftp: Likewise.
26353
26354 2010-01-26  Eric Blake  <ebb9@byu.net>
26355
26356         ignore-value: update recommended header name
26357         * modules/ignore-value (Include): Only use <> for headers that
26358         exist in glibc.
26359
26360 2010-01-26  Jim Meyering  <meyering@redhat.com>
26361
26362         test-userspec.c: avoid compiler warnings
26363         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26364         and "initialization discards qualifiers..." warnings.
26365         Put the first "uid" in its own scope, and make char* members "const".
26366
26367 2010-01-25  Bruno Haible  <bruno@clisp.org>
26368
26369         gnulib-tool: Make warning diagnostics consistent.
26370         * gnulib-tool (func_warning): New function.
26371         Use it everywhere where gnulib-tool produces output to stderr and it is
26372         not a fatal error.
26373
26374 2010-01-25  Bruno Haible  <bruno@clisp.org>
26375
26376         Fix test dependencies.
26377         * modules/xstrtol-tests (Depends-on): Add inttypes.
26378         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26379
26380 2010-01-25 Pádraig Brady <P@draigBrady.com>
26381
26382         syntax-check: detect incorrect boolean macro values in config.h
26383         * modules/maintainer-makefile (configure.ac): Parameterize the location
26384         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26385         The logic is from Eric Blake and the location indicated by Jim Meyering.
26386         Note the more natural CONFIG_HEADER name is prohibited by automake
26387         for backwards compatibility reasons.
26388         * top/maint.mk (sc_Wundef_boolean): New rule.
26389
26390 2010-01-25  Jim Meyering  <meyering@redhat.com>
26391
26392         bootstrap: detect MacOS 10.6's shasum, too
26393         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26394         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26395
26396 2010-01-23  Jim Meyering  <meyering@redhat.com>
26397
26398         xstrtoll: new module
26399         * modules/xstrtoll: New file.
26400         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26401         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26402         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26403         ./configure fails if you use this module and lack "long long".
26404         * modules/xstrtoll-tests: New module.
26405         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26406         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26407         new init.sh-based test framework.
26408
26409 2010-01-24  Bruno Haible  <bruno@clisp.org>
26410
26411         Tests for module 'yn'.
26412         * modules/yn-tests: New file.
26413         * tests/test-yn.c: New file.
26414
26415         Tests for module 'y1'.
26416         * modules/y1-tests: New file.
26417         * tests/test-y1.c: New file.
26418
26419         Tests for module 'y0'.
26420         * modules/y0-tests: New file.
26421         * tests/test-y0.c: New file.
26422
26423         Tests for module 'tanh'.
26424         * modules/tanh-tests: New file.
26425         * tests/test-tanh.c: New file.
26426
26427         Tests for module 'tan'.
26428         * modules/tan-tests: New file.
26429         * tests/test-tan.c: New file.
26430
26431         Tests for module 'sqrt'.
26432         * modules/sqrt-tests: New file.
26433         * tests/test-sqrt.c: New file.
26434
26435         Tests for module 'sinh'.
26436         * modules/sinh-tests: New file.
26437         * tests/test-sinh.c: New file.
26438
26439         Tests for module 'sin'.
26440         * modules/sin-tests: New file.
26441         * tests/test-sin.c: New file.
26442
26443         Tests for module 'rint'.
26444         * modules/rint-tests: New file.
26445         * tests/test-rint.c: New file.
26446
26447         Tests for module 'remainder'.
26448         * modules/remainder-tests: New file.
26449         * tests/test-remainder.c: New file.
26450
26451         Tests for module 'pow'.
26452         * modules/pow-tests: New file.
26453         * tests/test-pow.c: New file.
26454
26455         Tests for module 'nextafter'.
26456         * modules/nextafter-tests: New file.
26457         * tests/test-nextafter.c: New file.
26458
26459         Tests for module 'modf'.
26460         * modules/modf-tests: New file.
26461         * tests/test-modf.c: New file.
26462
26463         Tests for module 'logb'.
26464         * modules/logb-tests: New file.
26465         * tests/test-logb.c: New file.
26466
26467         Tests for module 'log1p'.
26468         * modules/log1p-tests: New file.
26469         * tests/test-log1p.c: New file.
26470
26471         Tests for module 'log10'.
26472         * modules/log10-tests: New file.
26473         * tests/test-log10.c: New file.
26474
26475         Tests for module 'log'.
26476         * modules/log-tests: New file.
26477         * tests/test-log.c: New file.
26478
26479         Tests for module 'lgamma'.
26480         * modules/lgamma-tests: New file.
26481         * tests/test-lgamma.c: New file.
26482
26483         Tests for module 'ldexp'.
26484         * modules/ldexp-tests: New file.
26485         * tests/test-ldexp.c: New file.
26486
26487         Tests for module 'jn'.
26488         * modules/jn-tests: New file.
26489         * tests/test-jn.c: New file.
26490
26491         Tests for module 'j1'.
26492         * modules/j1-tests: New file.
26493         * tests/test-j1.c: New file.
26494
26495         Tests for module 'j0'.
26496         * modules/j0-tests: New file.
26497         * tests/test-j0.c: New file.
26498
26499         Tests for module 'hypot'.
26500         * modules/hypot-tests: New file.
26501         * tests/test-hypot.c: New file.
26502
26503         Tests for module 'fmod'.
26504         * modules/fmod-tests: New file.
26505         * tests/test-fmod.c: New file.
26506
26507         Tests for module 'fabs'.
26508         * modules/fabs-tests: New file.
26509         * tests/test-fabs.c: New file.
26510
26511         Tests for module 'exp'.
26512         * modules/exp-tests: New file.
26513         * tests/test-exp.c: New file.
26514
26515         Tests for module 'erfc'.
26516         * modules/erfc-tests: New file.
26517         * tests/test-erfc.c: New file.
26518
26519         Tests for module 'erf'.
26520         * modules/erf-tests: New file.
26521         * tests/test-erf.c: New file.
26522
26523         Tests for module 'cosh'.
26524         * modules/cosh-tests: New file.
26525         * tests/test-cosh.c: New file.
26526
26527         Tests for module 'cos'.
26528         * modules/cos-tests: New file.
26529         * tests/test-cos.c: New file.
26530
26531         Tests for module 'copysign'.
26532         * modules/copysign-tests: New file.
26533         * tests/test-copysign.c: New file.
26534
26535         Tests for module 'cbrt'.
26536         * modules/cbrt-tests: New file.
26537         * tests/test-cbrt.c: New file.
26538
26539         Tests for module 'atan2'.
26540         * modules/atan2-tests: New file.
26541         * tests/test-atan2.c: New file.
26542
26543         Tests for module 'atan'.
26544         * modules/atan-tests: New file.
26545         * tests/test-atan.c: New file.
26546
26547         Tests for module 'asin'.
26548         * modules/asin-tests: New file.
26549         * tests/test-asin.c: New file.
26550
26551         Tests for module 'acos'.
26552         * modules/acos-tests: New file.
26553         * tests/test-acos.c: New file.
26554
26555 2010-01-24  Bruno Haible  <bruno@clisp.org>
26556
26557         Fix tests for common <math.h> functions.
26558         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26559         code snippet that references the function pointer, rather than merely
26560         calling the function. Substitute the FUNC_LIBM variable.
26561         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26562         * modules/acos (configure.ac): Likewise.
26563         * modules/asin (configure.ac): Likewise.
26564         * modules/atan (configure.ac): Likewise.
26565         * modules/atan2 (configure.ac): Likewise.
26566         * modules/cbrt (configure.ac): Likewise.
26567         * modules/copysign (configure.ac): Likewise.
26568         * modules/cos (configure.ac): Likewise.
26569         * modules/cosh (configure.ac): Likewise.
26570         * modules/erf (configure.ac): Likewise.
26571         * modules/erfc (configure.ac): Likewise.
26572         * modules/exp (configure.ac): Likewise.
26573         * modules/fabs (configure.ac): Likewise.
26574         * modules/fmod (configure.ac): Likewise.
26575         * modules/hypot (configure.ac): Likewise.
26576         * modules/j0 (configure.ac): Likewise.
26577         * modules/j1 (configure.ac): Likewise.
26578         * modules/jn (configure.ac): Likewise.
26579         * modules/ldexp (configure.ac): Likewise.
26580         * modules/lgamma (configure.ac): Likewise.
26581         * modules/log (configure.ac): Likewise.
26582         * modules/log10 (configure.ac): Likewise.
26583         * modules/log1p (configure.ac): Likewise.
26584         * modules/logb (configure.ac): Likewise.
26585         * modules/modf (configure.ac): Likewise.
26586         * modules/nextafter (configure.ac): Likewise.
26587         * modules/pow (configure.ac): Likewise.
26588         * modules/remainder (configure.ac): Likewise.
26589         * modules/rint (configure.ac): Likewise.
26590         * modules/sin (configure.ac): Likewise.
26591         * modules/sinh (configure.ac): Likewise.
26592         * modules/tan (configure.ac): Likewise.
26593         * modules/tanh (configure.ac): Likewise.
26594         * modules/y0 (configure.ac): Likewise.
26595         * modules/y1 (configure.ac): Likewise.
26596         * modules/yn (configure.ac): Likewise.
26597
26598 2010-01-24  Bruno Haible  <bruno@clisp.org>
26599
26600         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26601         * tests/test-acosl.c (x): New variable.
26602         (main): Store argument in x and fetch it from x.
26603         * tests/test-asinl.c (x): New variable.
26604         (main): Store argument in x and fetch it from x.
26605         * tests/test-atanl.c (x): New variable.
26606         (main): Store argument in x and fetch it from x.
26607         * tests/test-cosl.c (x): New variable.
26608         (main): Store argument in x and fetch it from x.
26609         * tests/test-expl.c (x): New variable.
26610         (main): Store argument in x and fetch it from x.
26611         * tests/test-logl.c (x): New variable.
26612         (main): Store argument in x and fetch it from x.
26613         * tests/test-sinl.c (x): New variable.
26614         (main): Store argument in x and fetch it from x.
26615         * tests/test-sqrtl.c (x): New variable.
26616         (main): Store argument in x and fetch it from x.
26617         * tests/test-tanl.c (x): New variable.
26618         (main): Store argument in x and fetch it from x.
26619
26620 2010-01-24  Bruno Haible  <bruno@clisp.org>
26621
26622         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26623         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26624         assignments to the initial TESTS_ENVIRONMENT.
26625         * doc/gnulib.texi (Unit test modules): Document it.
26626         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26627         TESTS_ENVIRONMENT.
26628         * modules/btowc-tests (Makefile.am): Likewise.
26629         * modules/c-stack-tests (Makefile.am): Likewise.
26630         * modules/c-strcase-tests (Makefile.am): Likewise.
26631         * modules/copy-file-tests (Makefile.am): Likewise.
26632         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26633         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26634         * modules/mbrtowc-tests (Makefile.am): Likewise.
26635         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26636         * modules/mbscasestr-tests (Makefile.am): Likewise.
26637         * modules/mbschr-tests (Makefile.am): Likewise.
26638         * modules/mbscspn-tests (Makefile.am): Likewise.
26639         * modules/mbsinit-tests (Makefile.am): Likewise.
26640         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26641         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26642         * modules/mbspbrk-tests (Makefile.am): Likewise.
26643         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26644         * modules/mbsrchr-tests (Makefile.am): Likewise.
26645         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26646         * modules/mbsspn-tests (Makefile.am): Likewise.
26647         * modules/mbsstr-tests (Makefile.am): Likewise.
26648         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26649         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26650         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26651         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26652         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26653         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26654         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26655         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26656         * modules/wcrtomb-tests (Makefile.am): Likewise.
26657         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26658         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26659         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26660         assignments from TESTS_ENVIRONMENT.
26661         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26662         augmentation.
26663         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26664         * modules/atexit-tests (Makefile.am): Likewise.
26665         * modules/binary-io-tests (Makefile.am): Likewise.
26666         * modules/closein-tests (Makefile.am): Likewise.
26667         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26668         * modules/exclude-tests (Makefile.am): Likewise.
26669         * modules/fflush-tests (Makefile.am): Likewise.
26670         * modules/fpending-tests (Makefile.am): Likewise.
26671         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26672         * modules/freadahead-tests (Makefile.am): Likewise.
26673         * modules/freadptr-tests (Makefile.am): Likewise.
26674         * modules/freadseek-tests (Makefile.am): Likewise.
26675         * modules/fseek-tests (Makefile.am): Likewise.
26676         * modules/fseeko-tests (Makefile.am): Likewise.
26677         * modules/ftell-tests (Makefile.am): Likewise.
26678         * modules/ftello-tests (Makefile.am): Likewise.
26679         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26680         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26681         * modules/lseek-tests (Makefile.am): Likewise.
26682         * modules/parse-duration-tests (Makefile.am): Likewise.
26683         * modules/perror-tests (Makefile.am): Likewise.
26684         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26685         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26686         * modules/pipe-tests (Makefile.am): Likewise.
26687         * modules/pread-tests (Makefile.am): Likewise.
26688         * modules/printf-posix-tests (Makefile.am): Likewise.
26689         * modules/select-tests (Makefile.am): Likewise.
26690         * modules/sigpipe-tests (Makefile.am): Likewise.
26691         * modules/tsearch-tests (Makefile.am): Likewise.
26692         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26693         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26694         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26695         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26696         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26697         * modules/version-etc-tests (Makefile.am): Likewise.
26698         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26699         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26700         * modules/xalloc-die-tests (Makefile.am): Likewise.
26701         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26702         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26703         * modules/xstrtol-tests (Makefile.am): Likewise.
26704         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26705         * modules/yesno-tests (Makefile.am): Likewise.
26706         Suggested by Jim Meyering.
26707
26708 2010-01-24  Bruno Haible  <bruno@clisp.org>
26709
26710         More documentation.
26711         * doc/gnulib.texi (Writing modules): New chapter.
26712         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26713         the new chapter.
26714
26715 2010-01-24  Jim Meyering  <meyering@redhat.com>
26716
26717         maint.mk: do not prepend "./" after filtering
26718         * top/maint.mk (_prepend_srcdir_prefix): New variable
26719         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26720         "./" when $(srcdir) is ".".
26721
26722         define STREQ(a,b) consistently, removing useless parentheses
26723         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26724         since the only risk is that "a" or "b" contains an unparenthesized
26725         comma, but if either did that, STREQ would have 3 or more arguments.
26726         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26727         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26728         * lib/hash-triple.c (STREQ): Likewise.
26729         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26730         * lib/getugroups.c (STREQ): Likewise.
26731
26732 2010-01-23  Jim Meyering  <meyering@redhat.com>
26733
26734         maint.mk: fix syntax-check in a non-srcdir build directory
26735         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26736         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26737
26738 2010-01-22  Jim Meyering  <meyering@redhat.com>
26739
26740         userspec: add unit tests
26741         * tests/test-userspec.c: New file.
26742         * modules/userspec-tests: Likewise.
26743
26744 2010-01-21  Jim Meyering  <meyering@redhat.com>
26745
26746         maint.mk: handle source file names containing "." robustly
26747         * top/maint.mk (_dot_escaped_srcdir): Define.
26748         (VC_LIST): Use it in LHS of sed substitution.
26749
26750 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26751
26752         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26753         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26754         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26755         from a non-srcdir build.
26756
26757 2010-01-20  Eric Blake  <ebb9@byu.net>
26758
26759         warn-on-use: use instead of link-warning
26760         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26761         * modules/unistd (Depends-on, Makefile.am): Likewise.
26762         * modules/arpa_inet (Depends-on): Replace link-warning with
26763         warn-on-use.
26764         (Makefile.am): Update rules accordingly.
26765         * modules/ctype (Depends-on, Makefile.am): Likewise.
26766         * modules/dirent (Depends-on, Makefile.am): Likewise.
26767         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26768         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26769         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26770         * modules/locale (Depends-on, Makefile.am): Likewise.
26771         * modules/math (Depends-on, Makefile.am): Likewise.
26772         * modules/search (Depends-on, Makefile.am): Likewise.
26773         * modules/signal (Depends-on, Makefile.am): Likewise.
26774         * modules/spawn (Depends-on, Makefile.am): Likewise.
26775         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26776         * modules/string (Depends-on, Makefile.am): Likewise.
26777         * modules/strings (Depends-on, Makefile.am): Likewise.
26778         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26779         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26780         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26781         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26782         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26783         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26784         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26785         * modules/wchar (Depends-on, Makefile.am): Likewise.
26786         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26787         should be poisoned.
26788         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26789         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26790         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26791         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26792         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26794         * m4/math_h.m4 (gl_MATH_H): Likewise.
26795         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26796         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26797         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26798         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26799         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26800         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26801         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26802         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26803         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26806         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26807         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26808         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26809         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26810         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26811         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26812         GL_LINK_WARNING.
26813         * lib/ctype.in.h: Likewise.
26814         * lib/dirent.in.h: Likewise.
26815         * lib/fcntl.in.h: Likewise.
26816         * lib/inttypes.in.h: Likewise.
26817         * lib/langinfo.in.h: Likewise.
26818         * lib/locale.in.h: Likewise.
26819         * lib/math.in.h: Likewise.
26820         * lib/search.in.h: Likewise.
26821         * lib/signal.in.h: Likewise.
26822         * lib/spawn.in.h: Likewise.
26823         * lib/stdio.in.h: Likewise.
26824         * lib/stdlib.in.h: Likewise.
26825         * lib/string.in.h: Likewise.
26826         * lib/strings.in.h: Likewise.
26827         * lib/sys_file.in.h: Likewise.
26828         * lib/sys_ioctl.in.h: Likewise.
26829         * lib/sys_select.in.h: Likewise.
26830         * lib/sys_socket.in.h: Likewise.
26831         * lib/sys_stat.in.h: Likewise.
26832         * lib/sys_times.in.h: Likewise.
26833         * lib/sys_utsname.in.h: Likewise.
26834         * lib/unistd.in.h: Likewise.
26835         * lib/wchar.in.h: Likewise.
26836
26837 2010-01-20  Bruno Haible  <bruno@clisp.org>
26838
26839         Avoid duplicate -lm.
26840         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26841         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26842         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26843         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26844         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26845         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26846         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26847         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26849         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26850         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26851         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26852         Reported by Paolo Bonzini.
26853
26854 2010-01-19  Bruno Haible  <bruno@clisp.org>
26855
26856         langinfo, nl_langinfo: Relicense under LGPLv2+.
26857         * modules/langinfo (License): Change to LGPLv2+.
26858         * modules/nl_langinfo (License): Likewise.
26859         Patch by David Lutterkort <lutter@redhat.com>.
26860
26861 2010-01-19  Bruno Haible  <bruno@clisp.org>
26862
26863         Avoid compilation error with cc on OSF/1 5.1.
26864         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26865         statement, not before.
26866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26867
26868 2010-01-18  Bruno Haible  <bruno@clisp.org>
26869
26870         Avoid a link error due to the __printf__ symbol.
26871         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26872         and 2.6.x.
26873         (__format__, __printf__): Remove definitions.
26874         * lib/argp-fmtstream.h: Likewise.
26875         * lib/argp.h: Likewise.
26876         * lib/error.h: Likewise.
26877         * lib/vasnprintf.h: Likewise.
26878         * lib/xprintf.h: Likewise.
26879         * lib/xvasprintf.h: Likewise.
26880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26881
26882 2010-01-18  Bruno Haible  <bruno@clisp.org>
26883
26884         Tests for module 'tanl'.
26885         * modules/tanl-tests: New file.
26886         * tests/test-tanl.c: New file.
26887
26888         Tests for module 'sqrtl'.
26889         * modules/sqrtl-tests: New file.
26890         * tests/test-sqrtl.c: New file.
26891
26892         Tests for module 'sinl'.
26893         * modules/sinl-tests: New file.
26894         * tests/test-sinl.c: New file.
26895
26896         Tests for module 'logl'.
26897         * modules/logl-tests: New file.
26898         * tests/test-logl.c: New file.
26899
26900         Tests for module 'expl'.
26901         * modules/expl-tests: New file.
26902         * tests/test-expl.c: New file.
26903
26904         Tests for module 'cosl'.
26905         * modules/cosl-tests: New file.
26906         * tests/test-cosl.c: New file.
26907
26908         Tests for module 'atanl'.
26909         * modules/atanl-tests: New file.
26910         * tests/test-atanl.c: New file.
26911
26912         Tests for module 'asinl'.
26913         * modules/asinl-tests: New file.
26914         * tests/test-asinl.c: New file.
26915
26916         Tests for module 'acosl'.
26917         * modules/acosl-tests: New file.
26918         * tests/test-acosl.c: New file.
26919
26920         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26921         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26922         tanl): Use the standard gnulib idiom.
26923         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26924         * lib/sinl.c: Likewise.
26925         * lib/tanl.c: Don't include trigl.c.
26926         (kernel_tanl): Make static.
26927         * lib/sincosl.c: Include trigl.h first.
26928         * lib/trigl.c: Likewise.
26929         * m4/acosl.m4: New file.
26930         * m4/asinl.m4: New file.
26931         * m4/atanl.m4: New file.
26932         * m4/cosl.m4: New file.
26933         * m4/expl.m4: New file.
26934         * m4/logl.m4: New file.
26935         * m4/sinl.m4: New file.
26936         * m4/sqrtl.m4: New file.
26937         * m4/tanl.m4: New file.
26938         * m4/mathl.m4: Remove file.
26939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26940         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26941         Don't initialize GNULIB_MATHL.
26942         * modules/acosl: New file.
26943         * modules/asinl: New file.
26944         * modules/atanl: New file.
26945         * modules/cosl: New file.
26946         * modules/expl: New file.
26947         * modules/logl: New file.
26948         * modules/sinl: New file.
26949         * modules/sqrtl: New file.
26950         * modules/tanl: New file.
26951         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26952         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26953         substitute GNULIB_MATHL.
26954         * modules/mathl: Rewritten.
26955         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26956         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26957         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26958         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26959         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26960         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26961         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26962         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26963         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26964
26965 2010-01-18  Bruno Haible  <bruno@clisp.org>
26966
26967         sqrt: Make gl_FUNC_SQRT requirable.
26968         * m4/sqrt.m4: New file.
26969         * modules/sqrt (Files): Add it.
26970         (configure.ac): Invoke gl_FUNC_SQRT.
26971
26972 2010-01-18  Bruno Haible  <bruno@clisp.org>
26973
26974         New modules for common <math.h> functions.
26975         * m4/mathfunc.m4: New file.
26976         * modules/acos: New file.
26977         * modules/asin: New file.
26978         * modules/atan: New file.
26979         * modules/atan2: New file.
26980         * modules/cbrt: New file.
26981         * modules/copysign: New file.
26982         * modules/cos: New file.
26983         * modules/cosh: New file.
26984         * modules/erf: New file.
26985         * modules/erfc: New file.
26986         * modules/exp: New file.
26987         * modules/fabs: New file.
26988         * modules/fmod: New file.
26989         * modules/hypot: New file.
26990         * modules/j0: New file.
26991         * modules/j1: New file.
26992         * modules/jn: New file.
26993         * modules/ldexp: New file.
26994         * modules/lgamma: New file.
26995         * modules/log: New file.
26996         * modules/log10: New file.
26997         * modules/log1p: New file.
26998         * modules/logb: New file.
26999         * modules/modf: New file.
27000         * modules/nextafter: New file.
27001         * modules/pow: New file.
27002         * modules/remainder: New file.
27003         * modules/rint: New file.
27004         * modules/sin: New file.
27005         * modules/sinh: New file.
27006         * modules/sqrt: New file.
27007         * modules/tan: New file.
27008         * modules/tanh: New file.
27009         * modules/y0: New file.
27010         * modules/y1: New file.
27011         * modules/yn: New file.
27012         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27013         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27014         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27015         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27016         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27017         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27018         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27019         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27020         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27021         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27022         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27023         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27024         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27025         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27026         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27027         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27028         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27029         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27030         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27031         * doc/posix-functions/log.texi: Mention the 'log' module.
27032         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27033         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27034         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27035         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27036         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27037         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27038         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27039         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27040         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27041         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27042         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27043         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27044         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27045         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27046         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27047         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27048
27049 2010-01-18  Jim Meyering  <meyering@redhat.com>
27050
27051         ignore-value: relax license to LGPLv2+
27052         * modules/ignore-value (License): Relax to LGPLv2+.
27053
27054         getdate: don't leak when TZ contains two or more '"'s
27055         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27056         double quote in TZ after the first one.
27057
27058         readtokens: do not leak internal token_lengths buffer
27059         * lib/readtokens.c (readtokens): Free the local, lengths,
27060         when the supplied "token_lengths" parameter is NULL.
27061
27062 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27063
27064         Fix a couple of missing LIBTHREAD link failures on AIX.
27065         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27066         $(LIBTHREAD).
27067         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27068
27069         Link test-poll against INET_PTON_LIB.
27070         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27071         for inet_pton on Solaris 10.
27072
27073 2010-01-17  Bruno Haible  <bruno@clisp.org>
27074
27075         unistdio/*-sprintf: Fix typo in module description.
27076         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27077         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27078         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27079         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27080         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27081         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27082         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27084
27085 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27086
27087         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27088         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27089         variables in shell case patterns, for AIX and HP-UX ksh.
27090
27091         Split large sed scripts, for HP-UX sed.
27092         * modules/stdio: Split sed scripts around 50 sed commands,
27093         to avoid HP-UX limit of 99 commands, in the near future.
27094         * modules/string: Likewise.
27095         * modules/unistd: Likewise.
27096
27097         gnulib-tool: avoid writing in the current directory.
27098         * gnulib-tool (func_emit_lib_Makefile_am)
27099         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27100         not in the current directory, so concurrent gnulib-tool
27101         instances do not interfere.
27102
27103 2010-01-16  Jim Meyering  <meyering@redhat.com>
27104
27105         doc: update users.txt
27106         * users.txt: Add grep.
27107         (diffutils, gzip): Update URLs.
27108
27109 2010-01-12  Bruno Haible  <bruno@clisp.org>
27110
27111         posix_spawn: Avoid test failure on Cygwin.
27112         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27113         characters.
27114         Reported by Simon Josefsson.
27115
27116 2010-01-12  Bruno Haible  <bruno@clisp.org>
27117
27118         * tests/test-cond.c (main): When skipping the test, show the reason.
27119
27120 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27121
27122         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27123
27124 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27125
27126         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27127         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27128
27129 2010-01-12  Eric Blake  <ebb9@byu.net>
27130
27131         build: guarantee AS_VAR_IF
27132         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27133         (gl_AS_VAR_IF): Move...
27134         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27135         Reported by Simon Josefsson.
27136
27137 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27138
27139         * lib/stdio.in.h: Fix typo.
27140
27141 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27142
27143         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27144         libgpg-error.
27145
27146 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27147
27148         * tests/test-xalloc-die.sh: Use $EXEEXT.
27149
27150 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27151             Bruno Haible  <bruno@clisp.org>
27152
27153         getlogin, getlogin_r: Avoid test failure.
27154         * tests/test-getlogin.c: Include <stdio.h>.
27155         (main): Skip the test when the function fails because stdin is not a
27156         tty.
27157         * tests/test-getlogin_r.c: Include <stdio.h>.
27158         (main): Skip the test when the function fails because stdin is not a
27159         tty.
27160
27161 2010-01-11  Eric Blake  <ebb9@byu.net>
27162
27163         tests: avoid more large file warnings
27164         * tests/test-fflush.c: Avoid warning about ftell use.
27165         * tests/test-fseek.c: Avoid warning about fseek use.
27166
27167 2010-01-10  Bruno Haible  <bruno@clisp.org>
27168
27169         nproc: Work better on Linux when /proc and /sys are not mounted.
27170         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27171         as lower bound when, on glibc/Linux systems,
27172         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27173         Suggested by Pádraig Brady <P@draigbrady.com>.
27174         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27175
27176         nproc: Refactor.
27177         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27178         extracted from num_processors.
27179         (num_processors): Call it.
27180
27181 2010-01-11  Jim Meyering  <meyering@redhat.com>
27182
27183         utimecmp: avoid new warning from upcoming gcc-4.5.0
27184         * lib/utimecmp.c (BILLION): Define using #define rather than an
27185         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27186
27187 2010-01-11  Eric Blake  <ebb9@byu.net>
27188
27189         math: add portability warnings for classification macros
27190         * modules/math (Depends-on): Add warn-on-use.
27191         (Makefile.am): Provide new substitutions.
27192         * m4/math_h.m4 (gl_MATH_H): Require inline.
27193         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27194         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27195         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27196         implement warnings.
27197
27198         unistd: warn on use of environ without module
27199         * modules/unistd (Depends-on): Add warn-on-use.
27200         (Makefile.am): Provide new substitutions.
27201         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27202         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27203
27204         stdio: warn on suspicious uses
27205         * modules/stdio (Depends-on): Add warn-on-use.
27206         (Makefile.am): Provide new substitutions.
27207         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27208         fseeko.
27209         * lib/stdio.in.h (gets): Always warn on use.
27210         (fseek, ftell): Adjust when warnings are issued, and honor
27211         _GL_NO_LARGE_FILES as a way to silence the warning.
27212         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27213         any warning about large file offsets.
27214         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27215         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27216         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27217         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27218         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27219         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27220         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27221         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27222
27223         warn-on-use: new module
27224         * modules/warn-on-use: New file.
27225         * build-aux/warn-on-use.h: Likewise.
27226         * m4/warn-on-use.m4: Likewise.
27227         * MODULES.html.sh (Support for building): Mention it.
27228
27229 2010-01-10  Bruno Haible  <bruno@clisp.org>
27230
27231         Tests for module 'unistr/u32-strdup'.
27232         * modules/unistr/u32-strdup-tests: New file.
27233         * tests/unistr/test-u32-strdup.c: New file.
27234
27235         Tests for module 'unistr/u16-strdup'.
27236         * modules/unistr/u16-strdup-tests: New file.
27237         * tests/unistr/test-u16-strdup.c: New file.
27238
27239         Tests for module 'unistr/u8-strdup'.
27240         * modules/unistr/u8-strdup-tests: New file.
27241         * tests/unistr/test-u8-strdup.c: New file.
27242         * tests/unistr/test-strdup.h: New file.
27243
27244         Tests for module 'unistr/u32-strncmp'.
27245         * modules/unistr/u32-strncmp-tests: New file.
27246         * tests/unistr/test-u32-strncmp.c: New file.
27247
27248         Tests for module 'unistr/u16-strncmp'.
27249         * modules/unistr/u16-strncmp-tests: New file.
27250         * tests/unistr/test-u16-strncmp.c: New file.
27251
27252         Tests for module 'unistr/u8-strncmp'.
27253         * modules/unistr/u8-strncmp-tests: New file.
27254         * tests/unistr/test-u8-strncmp.c: New file.
27255         * tests/unistr/test-strncmp.h: New file.
27256
27257         Tests for module 'unistr/u32-strcoll'.
27258         * modules/unistr/u32-strcoll-tests: New file.
27259         * tests/unistr/test-u32-strcoll.c: New file.
27260
27261         Tests for module 'unistr/u16-strcoll'.
27262         * modules/unistr/u16-strcoll-tests: New file.
27263         * tests/unistr/test-u16-strcoll.c: New file.
27264
27265         Tests for module 'unistr/u8-strcoll'.
27266         * modules/unistr/u8-strcoll-tests: New file.
27267         * tests/unistr/test-u8-strcoll.c: New file.
27268
27269         Tests for module 'unistr/u32-strcmp'.
27270         * modules/unistr/u32-strcmp-tests: New file.
27271         * tests/unistr/test-u32-strcmp.c: New file.
27272         * tests/unistr/test-u32-strcmp.h: New file.
27273
27274         Tests for module 'unistr/u16-strcmp'.
27275         * modules/unistr/u16-strcmp-tests: New file.
27276         * tests/unistr/test-u16-strcmp.c: New file.
27277         * tests/unistr/test-u16-strcmp.h: New file.
27278
27279         Tests for module 'unistr/u8-strcmp'.
27280         * modules/unistr/u8-strcmp-tests: New file.
27281         * tests/unistr/test-u8-strcmp.c: New file.
27282         * tests/unistr/test-u8-strcmp.h: New file.
27283         * tests/unistr/test-strcmp.h: New file.
27284
27285         Tests for module 'unistr/u32-strncat'.
27286         * modules/unistr/u32-strncat-tests: New file.
27287         * tests/unistr/test-u32-strncat.c: New file.
27288
27289         Tests for module 'unistr/u16-strncat'.
27290         * modules/unistr/u16-strncat-tests: New file.
27291         * tests/unistr/test-u16-strncat.c: New file.
27292
27293         Tests for module 'unistr/u8-strncat'.
27294         * modules/unistr/u8-strncat-tests: New file.
27295         * tests/unistr/test-u8-strncat.c: New file.
27296         * tests/unistr/test-strncat.h: New file.
27297
27298         Tests for module 'unistr/u32-strcat'.
27299         * modules/unistr/u32-strcat-tests: New file.
27300         * tests/unistr/test-u32-strcat.c: New file.
27301
27302         Tests for module 'unistr/u16-strcat'.
27303         * modules/unistr/u16-strcat-tests: New file.
27304         * tests/unistr/test-u16-strcat.c: New file.
27305
27306         Tests for module 'unistr/u8-strcat'.
27307         * modules/unistr/u8-strcat-tests: New file.
27308         * tests/unistr/test-u8-strcat.c: New file.
27309         * tests/unistr/test-strcat.h: New file.
27310
27311         Tests for module 'unistr/u32-stpncpy'.
27312         * modules/unistr/u32-stpncpy-tests: New file.
27313         * tests/unistr/test-u32-stpncpy.c: New file.
27314
27315         Tests for module 'unistr/u16-stpncpy'.
27316         * modules/unistr/u16-stpncpy-tests: New file.
27317         * tests/unistr/test-u16-stpncpy.c: New file.
27318
27319         Tests for module 'unistr/u8-stpncpy'.
27320         * modules/unistr/u8-stpncpy-tests: New file.
27321         * tests/unistr/test-u8-stpncpy.c: New file.
27322         * tests/unistr/test-stpncpy.h: New file.
27323
27324         Tests for module 'unistr/u32-strncpy'.
27325         * modules/unistr/u32-strncpy-tests: New file.
27326         * tests/unistr/test-u32-strncpy.c: New file.
27327
27328         Tests for module 'unistr/u16-strncpy'.
27329         * modules/unistr/u16-strncpy-tests: New file.
27330         * tests/unistr/test-u16-strncpy.c: New file.
27331
27332         Tests for module 'unistr/u8-strncpy'.
27333         * modules/unistr/u8-strncpy-tests: New file.
27334         * tests/unistr/test-u8-strncpy.c: New file.
27335         * tests/unistr/test-strncpy.h: New file.
27336
27337         Tests for module 'unistr/u32-stpcpy'.
27338         * modules/unistr/u32-stpcpy-tests: New file.
27339         * tests/unistr/test-u32-stpcpy.c: New file.
27340
27341         Tests for module 'unistr/u16-stpcpy'.
27342         * modules/unistr/u16-stpcpy-tests: New file.
27343         * tests/unistr/test-u16-stpcpy.c: New file.
27344
27345         Tests for module 'unistr/u8-stpcpy'.
27346         * modules/unistr/u8-stpcpy-tests: New file.
27347         * tests/unistr/test-u8-stpcpy.c: New file.
27348         * tests/unistr/test-stpcpy.h: New file.
27349
27350         Tests for module 'unistr/u32-strcpy'.
27351         * modules/unistr/u32-strcpy-tests: New file.
27352         * tests/unistr/test-u32-strcpy.c: New file.
27353
27354         Tests for module 'unistr/u16-strcpy'.
27355         * modules/unistr/u16-strcpy-tests: New file.
27356         * tests/unistr/test-u16-strcpy.c: New file.
27357
27358         Tests for module 'unistr/u8-strcpy'.
27359         * modules/unistr/u8-strcpy-tests: New file.
27360         * tests/unistr/test-u8-strcpy.c: New file.
27361         * tests/unistr/test-strcpy.h: New file.
27362
27363         Tests for module 'unistr/u32-strnlen'.
27364         * modules/unistr/u32-strnlen-tests: New file.
27365         * tests/unistr/test-u32-strnlen.c: New file.
27366
27367         Tests for module 'unistr/u16-strnlen'.
27368         * modules/unistr/u16-strnlen-tests: New file.
27369         * tests/unistr/test-u16-strnlen.c: New file.
27370
27371         Tests for module 'unistr/u8-strnlen'.
27372         * modules/unistr/u8-strnlen-tests: New file.
27373         * tests/unistr/test-u8-strnlen.c: New file.
27374         * tests/unistr/test-strnlen.h: New file.
27375
27376         Tests for module 'unistr/u32-strlen'.
27377         * modules/unistr/u32-strlen-tests: New file.
27378         * tests/unistr/test-u32-strlen.c: New file.
27379
27380         Tests for module 'unistr/u16-strlen'.
27381         * modules/unistr/u16-strlen-tests: New file.
27382         * tests/unistr/test-u16-strlen.c: New file.
27383
27384         Tests for module 'unistr/u8-strlen'.
27385         * modules/unistr/u8-strlen-tests: New file.
27386         * tests/unistr/test-u8-strlen.c: New file.
27387
27388         Tests for module 'unistr/u32-prev'.
27389         * modules/unistr/u32-prev-tests: New file.
27390         * tests/unistr/test-u32-prev.c: New file.
27391
27392         Tests for module 'unistr/u16-prev'.
27393         * modules/unistr/u16-prev-tests: New file.
27394         * tests/unistr/test-u16-prev.c: New file.
27395
27396         Tests for module 'unistr/u8-prev'.
27397         * modules/unistr/u8-prev-tests: New file.
27398         * tests/unistr/test-u8-prev.c: New file.
27399
27400         Tests for module 'unistr/u32-next'.
27401         * modules/unistr/u32-next-tests: New file.
27402         * tests/unistr/test-u32-next.c: New file.
27403
27404         Tests for module 'unistr/u16-next'.
27405         * modules/unistr/u16-next-tests: New file.
27406         * tests/unistr/test-u16-next.c: New file.
27407
27408         Tests for module 'unistr/u8-next'.
27409         * modules/unistr/u8-next-tests: New file.
27410         * tests/unistr/test-u8-next.c: New file.
27411
27412         Tests for module 'unistr/u32-strmbtouc'.
27413         * modules/unistr/u32-strmbtouc-tests: New file.
27414         * tests/unistr/test-u32-strmbtouc.c: New file.
27415
27416         Tests for module 'unistr/u16-strmbtouc'.
27417         * modules/unistr/u16-strmbtouc-tests: New file.
27418         * tests/unistr/test-u16-strmbtouc.c: New file.
27419
27420         Tests for module 'unistr/u8-strmbtouc'.
27421         * modules/unistr/u8-strmbtouc-tests: New file.
27422         * tests/unistr/test-u8-strmbtouc.c: New file.
27423
27424         Tests for module 'unistr/u32-strmblen'.
27425         * modules/unistr/u32-strmblen-tests: New file.
27426         * tests/unistr/test-u32-strmblen.c: New file.
27427
27428         Tests for module 'unistr/u16-strmblen'.
27429         * modules/unistr/u16-strmblen-tests: New file.
27430         * tests/unistr/test-u16-strmblen.c: New file.
27431
27432         Tests for module 'unistr/u8-strmblen'.
27433         * modules/unistr/u8-strmblen-tests: New file.
27434         * tests/unistr/test-u8-strmblen.c: New file.
27435
27436         Tests for module 'unistr/u32-cpy-alloc'.
27437         * modules/unistr/u32-cpy-alloc-tests: New file.
27438         * tests/unistr/test-u32-cpy-alloc.c: New file.
27439
27440         Tests for module 'unistr/u16-cpy-alloc'.
27441         * modules/unistr/u16-cpy-alloc-tests: New file.
27442         * tests/unistr/test-u16-cpy-alloc.c: New file.
27443
27444         Tests for module 'unistr/u8-cpy-alloc'.
27445         * modules/unistr/u8-cpy-alloc-tests: New file.
27446         * tests/unistr/test-u8-cpy-alloc.c: New file.
27447         * tests/unistr/test-cpy-alloc.h: New file.
27448
27449         Tests for module 'unistr/u32-mbsnlen'.
27450         * modules/unistr/u32-mbsnlen-tests: New file.
27451         * tests/unistr/test-u32-mbsnlen.c: New file.
27452
27453         Tests for module 'unistr/u16-mbsnlen'.
27454         * modules/unistr/u16-mbsnlen-tests: New file.
27455         * tests/unistr/test-u16-mbsnlen.c: New file.
27456
27457         Tests for module 'unistr/u8-mbsnlen'.
27458         * modules/unistr/u8-mbsnlen-tests: New file.
27459         * tests/unistr/test-u8-mbsnlen.c: New file.
27460
27461         Tests for module 'unistr/u32-chr'.
27462         * modules/unistr/u32-chr-tests: New file.
27463         * tests/unistr/test-u32-chr.c: New file.
27464
27465         Tests for module 'unistr/u16-chr'.
27466         * modules/unistr/u16-chr-tests: New file.
27467         * tests/unistr/test-u16-chr.c: New file.
27468
27469         Tests for module 'unistr/u8-chr'.
27470         * modules/unistr/u8-chr-tests: New file.
27471         * tests/unistr/test-u8-chr.c: New file.
27472         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27473
27474         Tests for module 'unistr/u32-cmp2'.
27475         * modules/unistr/u32-cmp2-tests: New file.
27476         * tests/unistr/test-u32-cmp2.c: New file.
27477
27478         Tests for module 'unistr/u16-cmp2'.
27479         * modules/unistr/u16-cmp2-tests: New file.
27480         * tests/unistr/test-u16-cmp2.c: New file.
27481
27482         Tests for module 'unistr/u8-cmp2'.
27483         * modules/unistr/u8-cmp2-tests: New file.
27484         * tests/unistr/test-u8-cmp2.c: New file.
27485         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27486
27487         Tests for module 'unistr/u32-cmp'.
27488         * modules/unistr/u32-cmp-tests: New file.
27489         * tests/unistr/test-u32-cmp.c: New file.
27490
27491         Tests for module 'unistr/u16-cmp'.
27492         * modules/unistr/u16-cmp-tests: New file.
27493         * tests/unistr/test-u16-cmp.c: New file.
27494
27495         Tests for module 'unistr/u8-cmp'.
27496         * modules/unistr/u8-cmp-tests: New file.
27497         * tests/unistr/test-u8-cmp.c: New file.
27498         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27499
27500         Tests for module 'unistr/u32-set'.
27501         * modules/unistr/u32-set-tests: New file.
27502         * tests/unistr/test-u32-set.c: New file.
27503
27504         Tests for module 'unistr/u16-set'.
27505         * modules/unistr/u16-set-tests: New file.
27506         * tests/unistr/test-u16-set.c: New file.
27507
27508         Tests for module 'unistr/u8-set'.
27509         * modules/unistr/u8-set-tests: New file.
27510         * tests/unistr/test-u8-set.c: New file.
27511         * tests/unistr/test-set.h: New file.
27512
27513         Tests for module 'unistr/u32-move'.
27514         * modules/unistr/u32-move-tests: New file.
27515         * tests/unistr/test-u32-move.c: New file.
27516
27517         Tests for module 'unistr/u16-move'.
27518         * modules/unistr/u16-move-tests: New file.
27519         * tests/unistr/test-u16-move.c: New file.
27520
27521         Tests for module 'unistr/u8-move'.
27522         * modules/unistr/u8-move-tests: New file.
27523         * tests/unistr/test-u8-move.c: New file.
27524         * tests/unistr/test-move.h: New file.
27525
27526         Tests for module 'unistr/u32-cpy'.
27527         * modules/unistr/u32-cpy-tests: New file.
27528         * tests/unistr/test-u32-cpy.c: New file.
27529
27530         Tests for module 'unistr/u16-cpy'.
27531         * modules/unistr/u16-cpy-tests: New file.
27532         * tests/unistr/test-u16-cpy.c: New file.
27533
27534         Tests for module 'unistr/u8-cpy'.
27535         * modules/unistr/u8-cpy-tests: New file.
27536         * tests/unistr/test-u8-cpy.c: New file.
27537         * tests/unistr/test-cpy.h: New file.
27538
27539 2010-01-09  Bruno Haible  <bruno@clisp.org>
27540
27541         Tests for module 'unistr/u32-uctomb'.
27542         * modules/unistr/u32-uctomb-tests: New file.
27543         * tests/unistr/test-u32-uctomb.c: New file.
27544
27545         Tests for module 'unistr/u16-uctomb'.
27546         * modules/unistr/u16-uctomb-tests: New file.
27547         * tests/unistr/test-u16-uctomb.c: New file.
27548
27549         Tests for module 'unistr/u8-uctomb'.
27550         * modules/unistr/u8-uctomb-tests: New file.
27551         * tests/unistr/test-u8-uctomb.c: New file.
27552
27553         Tests for module 'unistr/u32-mbtoucr'.
27554         * modules/unistr/u32-mbtoucr-tests: New file.
27555         * tests/unistr/test-u32-mbtoucr.c: New file.
27556
27557         Tests for module 'unistr/u16-mbtoucr'.
27558         * modules/unistr/u16-mbtoucr-tests: New file.
27559         * tests/unistr/test-u16-mbtoucr.c: New file.
27560
27561         Tests for module 'unistr/u8-mbtoucr'.
27562         * modules/unistr/u8-mbtoucr-tests: New file.
27563         * tests/unistr/test-u8-mbtoucr.c: New file.
27564
27565         Tests for module 'unistr/u32-mbtouc'.
27566         * modules/unistr/u32-mbtouc-tests: New file.
27567         * tests/unistr/test-u32-mbtouc.c: New file.
27568
27569         Tests for module 'unistr/u16-mbtouc'.
27570         * modules/unistr/u16-mbtouc-tests: New file.
27571         * tests/unistr/test-u16-mbtouc.c: New file.
27572
27573         Tests for module 'unistr/u8-mbtouc'.
27574         * modules/unistr/u8-mbtouc-tests: New file.
27575         * tests/unistr/test-u8-mbtouc.c: New file.
27576
27577         Tests for module 'unistr/u32-mbtouc-unsafe'.
27578         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27579         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27580         * tests/unistr/test-u32-mbtouc.h: New file.
27581
27582         Tests for module 'unistr/u16-mbtouc-unsafe'.
27583         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27584         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27585         * tests/unistr/test-u16-mbtouc.h: New file.
27586
27587         Tests for module 'unistr/u8-mbtouc-unsafe'.
27588         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27589         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27590         * tests/unistr/test-u8-mbtouc.h: New file.
27591
27592         Tests for module 'unistr/u32-mblen'.
27593         * modules/unistr/u32-mblen-tests: New file.
27594         * tests/unistr/test-u32-mblen.c: New file.
27595
27596         Tests for module 'unistr/u16-mblen'.
27597         * modules/unistr/u16-mblen-tests: New file.
27598         * tests/unistr/test-u16-mblen.c: New file.
27599
27600         Tests for module 'unistr/u8-mblen'.
27601         * modules/unistr/u8-mblen-tests: New file.
27602         * tests/unistr/test-u8-mblen.c: New file.
27603
27604         Tests for module 'unistr/u32-to-u16'.
27605         * modules/unistr/u32-to-u16-tests: New file.
27606         * tests/unistr/test-u32-to-u16.c: New file.
27607
27608         Tests for module 'unistr/u32-to-u8'.
27609         * modules/unistr/u32-to-u8-tests: New file.
27610         * tests/unistr/test-u32-to-u8.c: New file.
27611
27612         Tests for module 'unistr/u16-to-u32'.
27613         * modules/unistr/u16-to-u32-tests: New file.
27614         * tests/unistr/test-u16-to-u32.c: New file.
27615
27616         Tests for module 'unistr/u16-to-u8'.
27617         * modules/unistr/u16-to-u8-tests: New file.
27618         * tests/unistr/test-u16-to-u8.c: New file.
27619
27620         Tests for module 'unistr/u8-to-u32'.
27621         * modules/unistr/u8-to-u32-tests: New file.
27622         * tests/unistr/test-u8-to-u32.c: New file.
27623
27624         Tests for module 'unistr/u8-to-u16'.
27625         * modules/unistr/u8-to-u16-tests: New file.
27626         * tests/unistr/test-u8-to-u16.c: New file.
27627
27628         Tests for module 'unistr/u32-check'.
27629         * modules/unistr/u32-check-tests: New file.
27630         * tests/unistr/test-u32-check.c: New file.
27631
27632         Tests for module 'unistr/u16-check'.
27633         * modules/unistr/u16-check-tests: New file.
27634         * tests/unistr/test-u16-check.c: New file.
27635
27636         Tests for module 'unistr/u8-check'.
27637         * modules/unistr/u8-check-tests: New file.
27638         * tests/unistr/test-u8-check.c: New file.
27639
27640         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27641         (category_equals): New function.
27642         (main): Add more tests.
27643         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27644
27645         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27646
27647 2010-01-10  Bruno Haible  <bruno@clisp.org>
27648
27649         unistr/u*-strcoll: Try harder to distinguish different strings.
27650         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27651         compare s1 and s2 to see if they are different.
27652
27653 2010-01-10  Bruno Haible  <bruno@clisp.org>
27654
27655         unistr/u*-stpncpy: Fix the return value.
27656         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27657         description of the return value consistent with stpncpy in glibc.
27658         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27659         written non-NUL unit.
27660
27661 2010-01-10  Bruno Haible  <bruno@clisp.org>
27662
27663         unistr/u*-next: Add missing dependencies.
27664         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27665         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27666         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27667
27668 2010-01-10  Bruno Haible  <bruno@clisp.org>
27669
27670         unistr/u8-mbsnlen: Fix return value for incomplete character.
27671         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27672         u8_mblen.
27673         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27674         Remove unistr/u8-mblen.
27675         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27676         u16_mblen.
27677         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27678         Remove unistr/u16-mblen.
27679
27680 2010-01-10  Bruno Haible  <bruno@clisp.org>
27681
27682         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27683         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27684         Reported by Brian Gough <bjg@gnu.org> and
27685         Chris Clayton <chris2553@googlemail.com> via
27686         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27687
27688 2010-01-09  Bruno Haible  <bruno@clisp.org>
27689
27690         unistr/u16-to-u32: Reject invalid input.
27691         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27692         u16_mbtouc.
27693         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27694         Remove unistr/u16-mbtouc.
27695
27696         unistr/u16-to-u8: Reject invalid input.
27697         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27698         u16_mbtouc.
27699         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27700         Remove unistr/u16-mbtouc.
27701
27702         unistr/u8-to-u32: Reject invalid input.
27703         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27704         u8_mbtouc.
27705         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27706         Remove unistr/u8-mbtouc.
27707
27708         unistr/u8-to-u16: Reject invalid input.
27709         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27710         u8_mbtouc.
27711         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27712         Remove unistr/u8-mbtouc.
27713
27714 2010-01-09  Bruno Haible  <bruno@clisp.org>
27715
27716         Tests for module 'getlogin'.
27717         * modules/getlogin-tests: New file.
27718         * tests/test-getlogin.c: New file.
27719
27720         New module 'getlogin'.
27721         * lib/unistd.in.h (getlogin): New declaration.
27722         * lib/getlogin.c: New file.
27723         * m4/getlogin.m4: New file.
27724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27725         HAVE_GETLOGIN.
27726         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27727         HAVE_GETLOGIN.
27728         * modules/getlogin: New file.
27729         * doc/posix-functions/getlogin.texi: Mention the new module.
27730         Reported by John W. Eaton <jwe@gnu.org>.
27731
27732 2010-01-09  Bruno Haible  <bruno@clisp.org>
27733
27734         getlogin_r: Support for native Windows.
27735         * lib/getlogin_r.c: Include <windows.h>
27736         (getlogin_r): Implement for native Windows.
27737         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27738         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27739         via John W. Eaton <jwe@gnu.org>.
27740
27741 2010-01-09  Bruno Haible  <bruno@clisp.org>
27742
27743         getlogin_r: Small fixes.
27744         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27745         succeeds.
27746         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27747         before testing whether getlogin_r is declared. No need to set
27748         HAVE_DECL_GETLOGIN_R to 1.
27749         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27750
27751 2010-01-09  Bruno Haible  <bruno@clisp.org>
27752
27753         * lib/unistd.in.h (getlogin_r): Add comment.
27754
27755 2010-01-09  Bruno Haible  <bruno@clisp.org>
27756
27757         Tests for module 'getlogin_r'.
27758         * modules/getlogin_r-tests: New file.
27759         * tests/test-getlogin_r.c: New file.
27760
27761 2010-01-09  Jim Meyering  <meyering@redhat.com>
27762
27763         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27764         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27765         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27766
27767 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27768
27769         * lib/dup2.c (rpl_dup2): Improve comment.
27770
27771 2010-01-08  Eric Blake  <ebb9@byu.net>
27772
27773         maint.mk: allow packages to add makefile @@ exceptions
27774         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27775         (sc_makefile_check): Rename...
27776         (sc_makefile_at_at_check): ...to this, and use hook.
27777
27778         dup2: work around mingw bug
27779         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27780         Reported by Simon Josefsson.
27781
27782 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27783
27784         glob: Fix C++ compilation.
27785         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27786         C++.
27787
27788 2010-01-07  Bruno Haible  <bruno@clisp.org>
27789
27790         Fix indentation of wctype.in.h, broken since 2007-01-06.
27791         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27792
27793 2010-01-07  Bruno Haible  <bruno@clisp.org>
27794
27795         mbslen: Avoid collision with system function.
27796         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27797         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27798         * m4/mbslen.m4: New file.
27799         * modules/mbslen (Files): Add it.
27800         (configure.ac): Invoke gl_MBSLEN.
27801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27802         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27803         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27804         via Ian Beckwith <ianb@erislabs.net>.
27805
27806 2010-01-07  Bruno Haible  <bruno@clisp.org>
27807
27808         dirent: Document the last fix.
27809         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27810
27811 2010-01-07  Bruno Haible  <bruno@clisp.org>
27812
27813         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27814         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27815         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27816         va_list are defined.
27817         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27818         Reported by Eric Blake.
27819
27820 2010-01-07  Bruno Haible  <bruno@clisp.org>
27821
27822         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27823         * modules/xlist (Depends-on): Add 'list',
27824         * modules/xoset (Depends-on): Add 'oset'.
27825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27826
27827 2010-01-07  Bruno Haible  <bruno@clisp.org>
27828
27829         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27830         * doc/posix-functions/strncasecmp.texi: Likewise.
27831
27832 2010-01-07  Bruno Haible  <bruno@clisp.org>
27833
27834         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27835
27836 2010-01-07  John W. Eaton  <jwe@octave.org>
27837
27838         wctype: allow C++ use
27839         * lib/wctype.in.h: Add extern "C" block for C++.
27840
27841 2010-01-06  Eric Blake  <ebb9@byu.net>
27842
27843         maint.mk: detect incorrect GFDL usage
27844         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27845
27846 2010-01-06  Jim Meyering  <meyering@redhat.com>
27847         and Eric Blake  <ebb9@byu.net>
27848
27849         maint.mk: ignore multi-line copyright in NEWS
27850         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27851
27852 2010-01-06  Eric Blake  <ebb9@byu.net>
27853
27854         select: add missing dependency
27855         * modules/select-tests (Depends-on): Move sockets dependency...
27856         * modules/select (Depends-on): ...here.
27857         Reported by Ian Beckwith.
27858
27859         doc: regenerate INSTALL
27860         * doc/INSTALL: Reflect recent autoconf update.
27861         * doc/INSTALL.ISO: Likewise.
27862         * doc/INSTALL.UTF-8: Likewise.
27863
27864         pread: fix compilation on glibc
27865         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27866         Reported by Ralf Wildenhues.
27867
27868         dirent: fix test failure
27869         * lib/dirent.in.h (includes): Guarantee ino_t.
27870         Reported by Ralf Wildenhues.
27871
27872 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27873
27874         linkat, renameat: avoid bad free
27875         * lib/at-func2.c (at_func2): Fix typo.
27876         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27877
27878 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27879
27880         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27881         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27882         to avoid failure of symlink test later.
27883
27884 2010-01-06  Eric Blake  <ebb9@byu.net>
27885
27886         stdio, unistd: guarantee ssize_t
27887         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27888         2008 are exposed when needed.
27889         * lib/stdio.in.h (includes): Likewise.
27890         Reported by Ralf Wildenhues.
27891
27892 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27893
27894         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27895         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27896         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27897
27898 2010-01-06  Jim Meyering  <meyering@redhat.com>
27899
27900         readtokens: this module *does* require xalloc.h
27901         It uses only functions that were omitted by the old syntax-check rule.
27902         * lib/readtokens.c: Include "xalloc.h" once again.
27903         * modules/readtokens (Depends-on): Add xalloc.
27904         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27905
27906 2010-01-05  Eric Blake  <ebb9@byu.net>
27907
27908         maint: support 'make announcement' from a VPATH build
27909         * top/maint.mk (announcement): Look for correct NEWS file.
27910
27911 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27912
27913         utimens (fdutimens): ignore a negative FD, per contract
27914         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27915         when we have a valid file descriptor.  Otherwise, using a brand
27916         new glibc (with just-patched futimens that now fails with EBADF)
27917         would cause this function to fail with ENOSYS.
27918         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27919         See also http://bugzilla.redhat.com/552320.
27920
27921 2010-01-05  Eric Blake  <ebb9@byu.net>
27922
27923         strcase: document what it provides
27924         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27925         gnulib module.
27926         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27927         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27928
27929 2010-01-05  Jim Meyering  <meyering@redhat.com>
27930
27931         maint: remove useless inclusions of "xalloc.h"
27932         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27933         * lib/readtokens.c: Likewise.
27934         * lib/same.c: Likewise.
27935         * modules/getloadavg (Depends-on): Remove xalloc.
27936         * modules/readtokens: Likewise.
27937         * modules/same: Likewise.
27938
27939         maint.mk: include 4 more function names in alloca.h-checking regexp
27940         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27941         regexp.  Before, we would give a false-positive (saying alloca.h
27942         is included unnecessarily) when the only uses involved omitted symbols.
27943
27944         xalloc.h: use consistent formatting
27945         * lib/xalloc.h: Move declarations to start in the first column.
27946
27947 2010-01-05  Eric Blake  <ebb9@byu.net>
27948
27949         mkdir: avoid xalloc
27950         * lib/mkdir.c (includes): Drop unused header.
27951         Reported by John W. Eaton.
27952
27953 2010-01-04  Jim Meyering  <meyering@redhat.com>
27954
27955         nl_langinfo: avoid configure-time syntax error
27956         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27957         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27958         the empty string.  Don't let that provoke a shell syntax error.
27959
27960         regcomp, regexec, fnmatch: avoid array bounds read error
27961         * lib/regcomp.c (build_equiv_class): From glibc:
27962         Use only the low 24 bits of a findidx return value as an index
27963         into the weights array.  Patch by Ulrich Drepper:
27964         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27965         * lib/regexec.c (check_node_accept_bytes): Likewise.
27966         * lib/fnmatch_loop.c (FCT): Likewise.
27967
27968         regcomp: skip collseq lookup when there are no rules
27969         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27970         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27971
27972         regcomp: recognize ill-formed { } expressions
27973         * lib/regcomp.c (parse_dup_op): From glibc:
27974         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27975
27976         regcomp: fix typo in comment
27977         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27978         s/satisfy/satisfies/.
27979
27980         regcomp: sync from glibc: remove dead store
27981         * lib/regcomp.c (duplicate_node_closure): Remove useless
27982         search_duplicated_node call and dead store.
27983
27984         regcomp: sync from glibc; always use nl_langinfo
27985         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27986         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27987         * modules/regex (Depends-on): Add nl_langinfo.
27988
27989 2010-01-04  Eric Blake  <ebb9@byu.net>
27990
27991         fdopendir: fix configure test
27992         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27993
27994 2010-01-01  Bruno Haible  <bruno@clisp.org>
27995
27996         wchar: Remove unused configure check.
27997         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27998
27999 2010-01-01  Eric Blake  <ebb9@byu.net>
28000
28001         headers: make check of system header explicit
28002         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28003         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28004         ourselves.
28005         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28008         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28009         internals.
28010         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28011         missing.
28012         Suggested by Bruno Haible.
28013
28014 2010-01-01  Jim Meyering  <meyering@redhat.com>
28015
28016         ChangeLog: tweak to eliminate unnecessary copyright line
28017         * ChangeLog: Remove a copyright line that was mistakenly updated
28018         by today's update-copyright run.  Reported by Eric Blake.
28019
28020         test-update-copyright: don't let envvar setting cause test failure
28021         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28022
28023 2010-01-01  Bruno Haible  <bruno@clisp.org>
28024
28025         localename: Avoid gcc warning.
28026         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28027         function if it is not used.
28028
28029 2010-01-01  Jim Meyering  <meyering@redhat.com>
28030
28031         update nearly all FSF copyright year lists to include 2010
28032         Use the same procedure as for 2009, outlined in
28033         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28034
28035         version-etc: set COPYRIGHT_YEAR to 2010
28036         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28037
28038 2009-12-31  Eric Blake  <ebb9@byu.net>
28039
28040         doc: correct availability of cygwin 1.5.x getopt
28041         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28042         variables.
28043         * doc/posix-functions/opterr.texi (opterr): Likewise.
28044         * doc/posix-functions/optind.texi (optind): Likewise.
28045         * doc/posix-functions/optopt.texi (optopt): Likewise.
28046         * doc/posix-functions/tzname.texi (tzname): Likewise.
28047
28048         openat: update maintainer
28049         * modules/openat (Maintainer): Add myself.
28050
28051         utimens: avoid shadowing warning
28052         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28053         buffers into one, to avoid shadowing, as well as avoiding a
28054         redundant stat.
28055         Reported by Jim Meyering.
28056
28057         test-dup2: avoid compiler warning
28058         * tests/test-dup2.c (is_inheritable): Only define if used.
28059
28060 2010-01-01  Bruno Haible  <bruno@clisp.org>
28061
28062         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28063         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28064         defined, use wctomb instead of wcrtomb.
28065
28066 2010-01-01  Bruno Haible  <bruno@clisp.org>
28067
28068         iconv: Reject native Solaris iconv.
28069         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28070         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28071
28072 2009-12-31  Bruno Haible  <bruno@clisp.org>
28073
28074         * tests/test-signal.c (main): Remove test of 'SIG'.
28075
28076 2009-12-31  Bruno Haible  <bruno@clisp.org>
28077
28078         spawn: Fix incomplete fix.
28079         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28080         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28081         warnings for GNULIB_POSIXCHECK again.
28082         Reported by Eric Blake.
28083
28084 2009-12-31  Bruno Haible  <bruno@clisp.org>
28085
28086         Avoid namespace pollution on glibc systems.
28087         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28088         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28089         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28090         glibc systems.
28091
28092 2009-12-31  Bruno Haible  <bruno@clisp.org>
28093
28094         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28095         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28096         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28097         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28098         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28099         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28100         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28101
28102 2009-12-31  Bruno Haible  <bruno@clisp.org>
28103
28104         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28105         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28106         afterwards.
28107
28108 2009-12-31  Bruno Haible  <bruno@clisp.org>
28109
28110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28111         SYS_UTSNAME_H.
28112
28113 2009-12-31  Bruno Haible  <bruno@clisp.org>
28114
28115         spawn: Fix misapplied patch.
28116         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28117         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28118         warnings for GNULIB_POSIXCHECK.
28119
28120 2009-12-31  Bruno Haible  <bruno@clisp.org>
28121
28122         times: Update after sys_times changed.
28123         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28124         * modules/times (Files): Add it.
28125         (configure.ac): Invoke gl_FUNC_TIMES.
28126
28127 2009-12-31  Bruno Haible  <bruno@clisp.org>
28128
28129         Use AC_C_INLINE where necessary.
28130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28131         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28132         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28133         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28134         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28135         * m4/mbiter.m4 (gl_MBITER): Likewise.
28136         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28137         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28138         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28139         * modules/u64 (configure.ac): Likewise.
28140
28141 2009-12-31  Bruno Haible  <bruno@clisp.org>
28142
28143         Use AC_C_INLINE instead of module 'inline' where possible.
28144         * modules/inline (Description): Clarify purpose.
28145         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28146         * modules/count-one-bits (Depends-on): Remove inline.
28147         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28148         * modules/openat (Depends-on): Remove inline.
28149         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28150         instead of depending on module 'inline'.
28151         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28152         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28153         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28154         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28155         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28156         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28157         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28158         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28159         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28160         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28161         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28162         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28163         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28164         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28165         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28166         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28167         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28168         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28169         Likewise.
28170         * modules/unictype/property-ascii-hex-digit (Depends-on,
28171         configure.ac): Likewise.
28172         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28173         configure.ac): Likewise.
28174         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28175         configure.ac): Likewise.
28176         * modules/unictype/property-bidi-block-separator (Depends-on,
28177         configure.ac): Likewise.
28178         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28179         configure.ac): Likewise.
28180         * modules/unictype/property-bidi-common-separator (Depends-on,
28181         configure.ac): Likewise.
28182         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28183         Likewise.
28184         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28185         configure.ac): Likewise.
28186         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28187         configure.ac): Likewise.
28188         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28189         configure.ac): Likewise.
28190         * modules/unictype/property-bidi-european-digit (Depends-on,
28191         configure.ac): Likewise.
28192         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28193         configure.ac): Likewise.
28194         * modules/unictype/property-bidi-left-to-right (Depends-on,
28195         configure.ac): Likewise.
28196         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28197         configure.ac): Likewise.
28198         * modules/unictype/property-bidi-other-neutral (Depends-on,
28199         configure.ac): Likewise.
28200         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28201         Likewise.
28202         * modules/unictype/property-bidi-segment-separator (Depends-on,
28203         configure.ac): Likewise.
28204         * modules/unictype/property-bidi-whitespace (Depends-on,
28205         configure.ac): Likewise.
28206         * modules/unictype/property-combining (Depends-on, configure.ac):
28207         Likewise.
28208         * modules/unictype/property-composite (Depends-on, configure.ac):
28209         Likewise.
28210         * modules/unictype/property-currency-symbol (Depends-on,
28211         configure.ac): Likewise.
28212         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28213         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28214         Likewise.
28215         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28216         configure.ac): Likewise.
28217         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28218         Likewise.
28219         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28220         Likewise.
28221         * modules/unictype/property-extender (Depends-on, configure.ac):
28222         Likewise.
28223         * modules/unictype/property-format-control (Depends-on, configure.ac):
28224         Likewise.
28225         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28226         Likewise.
28227         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28228         Likewise.
28229         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28230         Likewise.
28231         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28232         Likewise.
28233         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28234         Likewise.
28235         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28236         Likewise.
28237         * modules/unictype/property-id-start (Depends-on, configure.ac):
28238         Likewise.
28239         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28240         Likewise.
28241         * modules/unictype/property-ids-binary-operator (Depends-on,
28242         configure.ac): Likewise.
28243         * modules/unictype/property-ids-trinary-operator (Depends-on,
28244         configure.ac): Likewise.
28245         * modules/unictype/property-ignorable-control (Depends-on,
28246         configure.ac): Likewise.
28247         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28248         Likewise.
28249         * modules/unictype/property-join-control (Depends-on, configure.ac):
28250         Likewise.
28251         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28252         Likewise.
28253         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28254         Likewise.
28255         * modules/unictype/property-logical-order-exception (Depends-on,
28256         configure.ac): Likewise.
28257         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28258         Likewise.
28259         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28260         * modules/unictype/property-non-break (Depends-on, configure.ac):
28261         Likewise.
28262         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28263         Likewise.
28264         * modules/unictype/property-numeric (Depends-on, configure.ac):
28265         Likewise.
28266         * modules/unictype/property-other-alphabetic (Depends-on,
28267         configure.ac): Likewise.
28268         * modules/unictype/property-other-default-ignorable-code-point
28269         (Depends-on, configure.ac): Likewise.
28270         * modules/unictype/property-other-grapheme-extend (Depends-on,
28271         configure.ac): Likewise.
28272         * modules/unictype/property-other-id-continue (Depends-on,
28273         configure.ac): Likewise.
28274         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28275         Likewise.
28276         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28277         Likewise.
28278         * modules/unictype/property-other-math (Depends-on, configure.ac):
28279         Likewise.
28280         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28281         Likewise.
28282         * modules/unictype/property-paired-punctuation (Depends-on,
28283         configure.ac): Likewise.
28284         * modules/unictype/property-paragraph-separator (Depends-on,
28285         configure.ac): Likewise.
28286         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28287         Likewise.
28288         * modules/unictype/property-pattern-white-space (Depends-on,
28289         configure.ac): Likewise.
28290         * modules/unictype/property-private-use (Depends-on, configure.ac):
28291         Likewise.
28292         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28293         Likewise.
28294         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28295         Likewise.
28296         * modules/unictype/property-radical (Depends-on, configure.ac):
28297         Likewise.
28298         * modules/unictype/property-sentence-terminal (Depends-on,
28299         configure.ac): Likewise.
28300         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28301         Likewise.
28302         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28303         * modules/unictype/property-terminal-punctuation (Depends-on,
28304         configure.ac): Likewise.
28305         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28306         Likewise.
28307         * modules/unictype/property-unassigned-code-value (Depends-on,
28308         configure.ac): Likewise.
28309         * modules/unictype/property-unified-ideograph (Depends-on,
28310         configure.ac): Likewise.
28311         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28312         Likewise.
28313         * modules/unictype/property-variation-selector (Depends-on,
28314         configure.ac): Likewise.
28315         * modules/unictype/property-white-space (Depends-on, configure.ac):
28316         Likewise.
28317         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28318         Likewise.
28319         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28320         Likewise.
28321         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28322         Likewise.
28323         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28324         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28325         Likewise.
28326
28327 2009-12-31  Bruno Haible  <bruno@clisp.org>
28328
28329         Remove unnecessary AC_C_INLINE invocation.
28330         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28331         since 2009-08-21.
28332
28333 2009-12-31  Jim Meyering  <meyering@redhat.com>
28334
28335         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28336         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28337         With this change, we can all remove the gpg_key_ID = ... definition
28338         from our respective cfg.mk files.
28339
28340         maint.mk: create announcement template in ~/, not in /tmp
28341         * top/maint.mk (emit_upload_commands): Adjust.
28342         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28343         Remove temporary file, .ci-msg.
28344
28345 2009-12-31  Eric Blake  <ebb9@byu.net>
28346
28347         link-warning: always build headers with link warnings
28348         * modules/arpa_inet (Makefile.am): Always build replacement
28349         header.
28350         * modules/ctype (Makefile.am): Likewise.
28351         * modules/dirent (Makefile.am): Likewise.
28352         * modules/inttypes (Makefile.am): Likewise.
28353         * modules/langinfo (Makefile.am): Likewise.
28354         * modules/locale (Makefile.am): Likewise.
28355         * modules/spawn (Makefile.am): Likewise.
28356         * modules/sys_file (Makefile.am): Likewise.
28357         * modules/sys_ioctl (Makefile.am): Likewise.
28358         * modules/sys_select (Makefile.am): Likewise.
28359         * modules/sys_socket (Makefile.am): Likewise.
28360         * modules/sys_times (Makefile.am): Likewise.
28361         * modules/sys_utsname (Makefile.am): Likewise.
28362         * modules/sys_wait (Makefile.am): Likewise.
28363         * modules/wchar (Makefile.am): Likewise.
28364         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28365         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28366         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28367         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28368         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28369         Likewise.
28370         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28371         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28372         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28373         Likewise.
28374         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28375         Likewise.
28376         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28378         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28379         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28380         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28381         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28382         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28383         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28384         (gl_WCHAR_H_DEFAULTS): Likewise.
28385
28386 2009-12-31  Eric Blake  <ebb9@byu.net>
28387
28388         signal, spawn: use link warnings
28389         * lib/signal.in.h (sigset_t): Make unconditional.
28390         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28391         (sigpending, sigprocmask, sigaction): Add link warnings.
28392         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28393         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28394         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28395         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28396         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28397         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28398         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28399         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28400         (posix_spawn_file_actions_destroy)
28401         (posix_spawn_file_actions_addopen)
28402         (posix_spawn_file_actions_addclose)
28403         (posix_spawn_file_actions_adddup2): Likewise.
28404         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28405         * tests/test-signal.c (main): Enhance test.
28406
28407         spawn: improve wrapper support
28408         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28409         (gl_SPAWN_H_DEFAULTS): New defaults.
28410         * modules/spawn (Makefile.am): Substitute them.
28411         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28412         Only declare if missing or broken.
28413
28414         sys_times, sys_utsname: use include_next
28415         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28416         header.
28417         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28419         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28420         * modules/sys_times (Depends-on): Add include_next.
28421         (Makefile.am): Substitute additional values.
28422         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28423         * lib/sys_times.in.h (includes): Include native header, if
28424         available.
28425         * lib/sys_utsname.in.h (includes): Likewise.
28426         * tests/test-sys_times.c (main): Enhance test.
28427
28428         fdutimensat: revert prior patch
28429         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28430         utimens.h.
28431         Reported by Bruno Haible.
28432
28433 2009-12-30  Eric Blake  <ebb9@byu.net>
28434
28435         sys_wait: drop link-warning dependency
28436         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28437         link-warning efforts.
28438         * lib/sys_wait.in.h: Likewise.
28439
28440         fdutimensat: remove bogus dependency
28441         * modules/fdutimensat (Depends-on): Drop inline.
28442
28443         unistd: fix typo
28444         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28445
28446 2009-12-30  Bruno Haible  <bruno@clisp.org>
28447
28448         Fix compilation error with Solaris cc.
28449         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28450         * lib/unicase/u16-is-invariant.c: Likewise.
28451         * lib/unicase/u32-is-invariant.c: Likewise.
28452         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28453
28454 2009-12-30  Bruno Haible  <bruno@clisp.org>
28455
28456         Fix test crash.
28457         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28458         locales.
28459         Reported by Simon Josefsson <simon@josefsson.org>.
28460
28461 2009-12-30  Bruno Haible  <bruno@clisp.org>
28462
28463         Fix compilation error on most platforms.
28464         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28465         Reported by Simon Josefsson <simon@josefsson.org>
28466         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28467
28468 2009-12-30  Eric Blake  <ebb9@byu.net>
28469
28470         futimens, utimensat: work around ntfs-3g bug
28471         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28472         a ctime bug is present, and expand workaround to cover ntfs-3g.
28473         * lib/utimens.c (fdutimens, lutimens): Likewise.
28474         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28475         (validate_timespec): Adjust return value.
28476         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28477         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28478         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28479
28480 2009-12-29  Eric Blake  <ebb9@byu.net>
28481
28482         link-warning: make usage consistent
28483         * modules/ctype (Depends-on): Add link-warning.
28484         (Makefile.am): Update rules accordingly.
28485         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28486         * modules/locale (Depends-on, Makefile.am): Likewise.
28487         * modules/sys_file (Makefile.am): Likewise.
28488         * modules/getopt-posix (Makefile.am): Delete unused link warning
28489         efforts.
28490         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28491         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28492         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28493         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28494
28495         stdio: remove unused variables
28496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28497         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28498         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28499
28500         tests: test more substitute headers
28501         * modules/ctype-tests: New file.
28502         * modules/dirent-tests: Likewise.
28503         * modules/spawn-tests: Likewise.
28504         * modules/sys_file-tests: Likewise.
28505         * modules/sys_ioctl-tests: Likewise.
28506         * modules/sys_wait-tests: Likewise.
28507         * tests/test-ctype.c: Likewise.
28508         * tests/test-dirent.c: Likewise.
28509         * tests/test-spawn.c: Likewise.
28510         * tests/test-sys_file.c: Likewise.
28511         * tests/test-sys_ioctl.c: Likewise.
28512         * tests/test-sys_wait.c: Likewise.
28513         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28514         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28515         whether or not flock is in use.
28516
28517         tests: remove License section from module
28518         * modules/arpa_inet-tests: Remove unneeded section.
28519         * modules/byteswap-tests: Likewise.
28520         * modules/ceilf-tests: Likewise.
28521         * modules/ceill-tests: Likewise.
28522         * modules/crypto/des-tests: Likewise.
28523         * modules/crypto/gc-arcfour-tests: Likewise.
28524         * modules/crypto/gc-arctwo-tests: Likewise.
28525         * modules/crypto/gc-des-tests: Likewise.
28526         * modules/crypto/gc-hmac-md5-tests: Likewise.
28527         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28528         * modules/crypto/gc-md2-tests: Likewise.
28529         * modules/crypto/gc-md4-tests: Likewise.
28530         * modules/crypto/gc-md5-tests: Likewise.
28531         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28532         * modules/crypto/gc-rijndael-tests: Likewise.
28533         * modules/crypto/gc-sha1-tests: Likewise.
28534         * modules/crypto/gc-tests: Likewise.
28535         * modules/crypto/md2-tests: Likewise.
28536         * modules/crypto/md4-tests: Likewise.
28537         * modules/fcntl-h-tests: Likewise.
28538         * modules/floorf-tests: Likewise.
28539         * modules/floorl-tests: Likewise.
28540         * modules/frexp-nolibm-tests: Likewise.
28541         * modules/frexp-tests: Likewise.
28542         * modules/frexpl-nolibm-tests: Likewise.
28543         * modules/frexpl-tests: Likewise.
28544         * modules/getaddrinfo-tests: Likewise.
28545         * modules/inttypes-tests: Likewise.
28546         * modules/isfinite-tests: Likewise.
28547         * modules/isinf-tests: Likewise.
28548         * modules/ldexpl-tests: Likewise.
28549         * modules/locale-tests: Likewise.
28550         * modules/math-tests: Likewise.
28551         * modules/netdb-tests: Likewise.
28552         * modules/netinet_in-tests: Likewise.
28553         * modules/printf-frexp-tests: Likewise.
28554         * modules/printf-frexpl-tests: Likewise.
28555         * modules/priv-set-tests: Likewise.
28556         * modules/random_r-tests: Likewise.
28557         * modules/round-tests: Likewise.
28558         * modules/roundf-tests: Likewise.
28559         * modules/roundl-tests: Likewise.
28560         * modules/search-tests: Likewise.
28561         * modules/select-tests: Likewise.
28562         * modules/signal-tests: Likewise.
28563         * modules/stdbool-tests: Likewise.
28564         * modules/stddef-tests: Likewise.
28565         * modules/stdint-tests: Likewise.
28566         * modules/stdio-tests: Likewise.
28567         * modules/stdlib-tests: Likewise.
28568         * modules/string-tests: Likewise.
28569         * modules/strings-tests: Likewise.
28570         * modules/sys_select-tests: Likewise.
28571         * modules/sys_socket-tests: Likewise.
28572         * modules/sys_stat-tests: Likewise.
28573         * modules/sys_time-tests: Likewise.
28574         * modules/sys_utsname-tests: Likewise.
28575         * modules/sysexits-tests: Likewise.
28576         * modules/time-tests: Likewise.
28577         * modules/trunc-tests: Likewise.
28578         * modules/truncf-tests: Likewise.
28579         * modules/truncl-tests: Likewise.
28580         * modules/tsearch-tests: Likewise.
28581         * modules/unistd-tests: Likewise.
28582         * modules/wchar-tests: Likewise.
28583         * modules/wctype-tests: Likewise.
28584
28585         tests: fix license on several tests
28586         * tests/test-des.c: Update to GPLv3+.
28587         * tests/test-flock.c: Likewise.
28588         * tests/test-fsync.c: Likewise.
28589         * tests/test-futimens.h: Likewise.
28590         * tests/test-gc-arcfour.c: Likewise.
28591         * tests/test-gc-arctwo.c: Likewise.
28592         * tests/test-gc-des.c: Likewise.
28593         * tests/test-gc-hmac-md5.c: Likewise.
28594         * tests/test-gc-hmac-sha1.c: Likewise.
28595         * tests/test-gc-md2.c: Likewise.
28596         * tests/test-gc-md4.c: Likewise.
28597         * tests/test-gc-md5.c: Likewise.
28598         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28599         * tests/test-gc-rijndael.c: Likewise.
28600         * tests/test-gc-sha1.c: Likewise.
28601         * tests/test-gc.c: Likewise.
28602         * tests/test-getcwd.c: Likewise.
28603         * tests/test-link.c: Likewise.
28604         * tests/test-link.h: Likewise.
28605         * tests/test-lutimens.h: Likewise.
28606         * tests/test-md2.c: Likewise.
28607         * tests/test-md4.c: Likewise.
28608         * tests/test-mkdir.h: Likewise.
28609         * tests/test-rename.c: Likewise.
28610         * tests/test-rename.h: Likewise.
28611         * tests/test-safe-alloc.c: Likewise.
28612         * tests/test-utimens-common.h: Likewise.
28613         * tests/test-utimens.h: Likewise.
28614
28615         maint: sync license texts
28616         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28617         * doc/gpl-3.0.texi: Revert copyright year update.
28618         * doc/lgpl-3.0.texi: Likewise.
28619
28620 2009-12-29  Jim Meyering  <meyering@redhat.com>
28621
28622         update nearly all FSF copyright year lists to include 2009
28623         The files named by the following are exempted:
28624             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28625               test -f "$dst" && { echo "$dst"; continue; }
28626               test -d "$dst" || continue
28627               echo "$dst"/$(basename "$src")
28628             done > exempt
28629             git ls-files tests/unictype >> exempt
28630         In the remaining files, convert to all-interval notation if
28631         - there is already at least one year interval like 2000-2003
28632         - the file is maintained by me
28633         - the file is in lib/uni*/, where that style already prevails
28634         Otherwise, use update-copyright's default.
28635
28636 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28637         and Eric Blake  <ebb9@byu.net>
28638
28639         tests: don't require debug system() to pass
28640         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28641         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28642         * tests/test-unlink.h (test_unlink_func): Likewise.
28643         * tests/test-fstatat.c (main): ...into callers.
28644         * tests/test-lstat.c (main): Likewise.
28645         * tests/test-rmdir.c (main): Likewise.
28646         * tests/test-unlink.c (main): Likewise.
28647         * tests/test-unlinkat.c (main): Likewise.
28648         * tests/test-areadlink-with-size.c (main): Don't require a
28649         debug-only system call to pass, aiding cross-testing to mingw.
28650         * tests/test-areadlink.c (main): Likewise.
28651         * tests/test-areadlinkat-with-size.c (main): Likewise.
28652         * tests/test-areadlinkat.c (main): Likewise.
28653         * tests/test-canonicalize-lgpl.c (main): Likewise.
28654         * tests/test-canonicalize.c (main): Likewise.
28655         * tests/test-chown.c (main): Likewise.
28656         * tests/test-fchownat.c (main): Likewise.
28657         * tests/test-lchown.c (main): Likewise.
28658         * tests/test-fdutimensat.c (main): Likewise.
28659         * tests/test-futimens.c (main): Likewise.
28660         * tests/test-link.c (main): Likewise.
28661         * tests/test-linkat.c (main): Likewise.
28662         * tests/test-mkdir.c (main): Likewise.
28663         * tests/test-mkdirat.c (main): Likewise.
28664         * tests/test-mkfifo.c (main): Likewise.
28665         * tests/test-mkfifoat.c (main): Likewise.
28666         * tests/test-mknod.c (main): Likewise.
28667         * tests/test-readlink.c (main): Likewise.
28668         * tests/test-remove.c (main): Likewise.
28669         * tests/test-rename.c (main): Likewise.
28670         * tests/test-renameat.c (main): Likewise.
28671         * tests/test-symlink.c (main): Likewise.
28672         * tests/test-symlinkat.c (main): Likewise.
28673         * tests/test-utimens.c (main): Likewise.
28674         * tests/test-utimensat.c (main): Likewise.
28675
28676 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28677
28678         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28679         on $(UNUSED_PARAMETER_H) to avoid build failure.
28680
28681 2009-12-28  Jim Meyering  <meyering@redhat.com>
28682
28683         update-copyright: you may specify a max. line length other than 72
28684         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28685
28686         maint: use consistent FSF copyright line syntax
28687         * lib/posixtm.c: Add missing comma in FSF copyright line.
28688         * lib/posixtm.h: Likewise.
28689         * lib/getugroups.c: Add missing ", Inc.".
28690
28691         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28692         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28693         FSF copyright line.  Remove trailing blanks.
28694
28695 2009-12-28  Eric Blake  <ebb9@byu.net>
28696
28697         test-dup2: reduce dependencies
28698         * modules/cloexec (Configure.ac): Set witness.
28699         * modules/dup2-tests (Depends-on): Drop cloexec.
28700         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28701         not present.
28702         Suggested by Bruno Haible.
28703
28704 2009-12-26  Bruno Haible  <bruno@clisp.org>
28705
28706         Remove an unneeded dependency.
28707         * modules/fseterr (Depends-on): Remove dup2.
28708
28709 2009-12-26  Eric Blake  <ebb9@byu.net>
28710
28711         tests: use macros.h in more places
28712         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28713         (ASSERT_STREAM): Provide default of stderr.
28714         * tests/test-dirent-safer.c: Include macros.h, using alternate
28715         stream for assertions.
28716         * tests/test-dup-safer.c: Likewise.
28717         * tests/test-freopen-safer.c: Likewise.
28718         * tests/test-getopt.c: Likewise.
28719         * tests/test-openat-safer.c: Likewise.
28720         * tests/test-pipe.c: Likewise.
28721         * tests/test-popen-safer.c: Likewise.
28722         * modules/dirent-safer-tests (Files): Include macros.h.
28723         * modules/unistd-safer-tests (Files): Likewise.
28724         * modules/freopen-safer-tests (Files): Likewise.
28725         * modules/getopt-posix-tests (Files): Likewise.
28726         * modules/openat-safer-tests (Files): Likewise.
28727         * modules/pipe-tests (Files): Likewise.
28728
28729 2009-12-26  Bruno Haible  <bruno@clisp.org>
28730
28731         javacomp: Portability fix.
28732         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28733         that it also works on Solaris.
28734
28735 2009-12-26  Bruno Haible  <bruno@clisp.org>
28736
28737         localename: Fix storage allocation of gl_locale_name_thread's result.
28738         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28739         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28740         all platforms that have 'uselocale'.
28741         (gl_locale_name_thread_unsafe): New function, extracted from
28742         gl_locale_name_thread.
28743         (gl_locale_name_thread): Call struniq on all platforms that have
28744         'uselocale'.
28745         * tests/test-localename.c (test_locale_name_thread): Check that the
28746         resulting strings are permanently allocated.
28747         * modules/localename-tests (Depends-on): Add strdup.
28748
28749 2009-12-26  Bruno Haible  <bruno@clisp.org>
28750
28751         * tests/test-localename.c (categories): Fill in the strings.
28752
28753 2009-12-26  Jim Meyering  <meyering@redhat.com>
28754
28755         isdir: complete the removal of m4/isdir.m4
28756         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28757
28758         isdir: clean up, since at least grep still uses it
28759         * lib/isdir.c: Include "isdir.h".
28760         (S_ISDIR): Remove now-unneeded definition.
28761         * modules/isdir (Files): Add lib/isdir.h.
28762         * lib/isdir.h: New file, with declaration.
28763         * m4/isdir.m4: Remove file -- unneeded.
28764
28765 2009-12-25  Bruno Haible  <bruno@clisp.org>
28766
28767         selinux-h: Make generated .h files standalone.
28768         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28769         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28770         * lib/se-selinux.in.h: Likewise.
28771         * modules/selinux-h (Depends-on): Add unused-parameter.
28772         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28773         selinux/selinux.h and selinux/context.h.
28774         Suggested by Eric Blake.
28775
28776 2009-12-25  Bruno Haible  <bruno@clisp.org>
28777
28778         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28779         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28780         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28781         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28782         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28783
28784 2009-12-24  Bruno Haible  <bruno@clisp.org>
28785
28786         openat: Fix warning.
28787         * lib/openat-proc.c: Include <unistd.h>.
28788
28789 2009-12-24  Bruno Haible  <bruno@clisp.org>
28790
28791         New module 'unused-parameter'.
28792         * build-aux/unused-parameter.h: New file, extracted from earlier
28793         gnulib-common.m4.
28794         * modules/unused-parameter: New file.
28795         * lib/unistr.h: Include unused-parameter.h.
28796         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28797         _GL_UNUSED.
28798         * modules/unistr/base (Depends-on): Add unused-parameter.
28799
28800 2009-12-24  Bruno Haible  <bruno@clisp.org>
28801
28802         Add missing dependencies to 'extensions' module.
28803         * m4/extensions.m4: Add comment.
28804         * modules/accept4 (Depends-on): Add extensions.
28805         * modules/dup3 (Depends-on): Likewise.
28806         * modules/fcntl (Depends-on): Likewise.
28807         * modules/futimens (Depends-on): Likewise.
28808         * modules/mknod (Depends-on): Likewise.
28809         * modules/pipe2 (Depends-on): Likewise.
28810         * modules/stat-time (Depends-on): Likewise.
28811         * modules/strcasestr-simple (Depends-on): Likewise.
28812         * modules/strsignal (Depends-on): Likewise.
28813         * modules/utimensat (Depends-on): Likewise.
28814         * modules/localcharset (Depends-on): Likewise. Needed because of
28815         gl_FCNTL_O_FLAGS.
28816         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28817         AC_TYPE_MBSTATE_T.
28818         * modules/wcsnrtombs (Depends-on): Likewise.
28819         * modules/wcsrtombs (Depends-on): Likewise.
28820
28821 2009-12-24  Bruno Haible  <bruno@clisp.org>
28822
28823         binary-io: Avoid gcc warning due to SET_BINARY.
28824         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28825         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28826
28827 2009-12-24  Bruno Haible  <bruno@clisp.org>
28828
28829         Avoid future namespace pollution on glibc systems.
28830         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28831         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28832         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28833         glibc systems.
28834
28835 2009-12-24  Bruno Haible  <bruno@clisp.org>
28836
28837         Refactor common macros used in tests.
28838         * tests/macros.h: New file.
28839         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28840         and/or <stdlib.h>, if appropriate.
28841         (ASSERT, SIZEOF): Remove macros.
28842         * tests/test-areadlink-with-size.c: Likewise.
28843         * tests/test-areadlinkat.c: Likewise.
28844         * tests/test-areadlinkat-with-size.c: Likewise.
28845         * tests/test-argmatch.c: Likewise.
28846         * tests/test-argv-iter.c: Likewise.
28847         * tests/test-array-mergesort.c: Likewise.
28848         * tests/test-array_list.c: Likewise.
28849         * tests/test-array_oset.c: Likewise.
28850         * tests/test-avltree_list.c: Likewise.
28851         * tests/test-avltree_oset.c: Likewise.
28852         * tests/test-avltreehash_list.c: Likewise.
28853         * tests/test-base64.c: Likewise.
28854         * tests/test-binary-io.c: Likewise.
28855         * tests/test-bitrotate.c: Likewise.
28856         * tests/test-btowc.c: Likewise.
28857         * tests/test-byteswap.c: Likewise.
28858         * tests/test-c-ctype.c: Likewise.
28859         * tests/test-c-stack.c: Likewise.
28860         * tests/test-c-strcasecmp.c: Likewise.
28861         * tests/test-c-strcasestr.c: Likewise.
28862         * tests/test-c-strncasecmp.c: Likewise.
28863         * tests/test-c-strstr.c: Likewise.
28864         * tests/test-canonicalize-lgpl.c: Likewise.
28865         * tests/test-canonicalize.c: Likewise.
28866         * tests/test-carray_list.c: Likewise.
28867         * tests/test-ceilf1.c: Likewise.
28868         * tests/test-ceilf2.c: Likewise.
28869         * tests/test-ceill.c: Likewise.
28870         * tests/test-chown.c: Likewise.
28871         * tests/test-cloexec.c: Likewise.
28872         * tests/test-copy-acl.c: Likewise.
28873         * tests/test-copy-file.c: Likewise.
28874         * tests/test-count-one-bits.c: Likewise.
28875         * tests/test-dprintf-posix.c: Likewise.
28876         * tests/test-dup2.c: Likewise.
28877         * tests/test-dup3.c: Likewise.
28878         * tests/test-duplocale.c: Likewise.
28879         * tests/test-fbufmode.c: Likewise.
28880         * tests/test-fchdir.c: Likewise.
28881         * tests/test-fchownat.c: Likewise.
28882         * tests/test-fcntl-safer.c: Likewise.
28883         * tests/test-fcntl.c: Likewise.
28884         * tests/test-fdopendir.c: Likewise.
28885         * tests/test-fdutimensat.c: Likewise.
28886         * tests/test-fflush2.c: Likewise.
28887         * tests/test-file-has-acl.c: Likewise.
28888         * tests/test-filevercmp.c: Likewise.
28889         * tests/test-flock.c: Likewise.
28890         * tests/test-floorf1.c: Likewise.
28891         * tests/test-floorf2.c: Likewise.
28892         * tests/test-floorl.c: Likewise.
28893         * tests/test-fnmatch.c: Likewise.
28894         * tests/test-fopen.h: Likewise.
28895         * tests/test-fpending.c: Likewise.
28896         * tests/test-fprintf-posix.c: Likewise.
28897         * tests/test-fpurge.c: Likewise.
28898         * tests/test-freadable.c: Likewise.
28899         * tests/test-freadahead.c: Likewise.
28900         * tests/test-freading.c: Likewise.
28901         * tests/test-freadptr.c: Likewise.
28902         * tests/test-freadptr2.c: Likewise.
28903         * tests/test-freadseek.c: Likewise.
28904         * tests/test-freopen.c: Likewise.
28905         * tests/test-frexp.c: Likewise.
28906         * tests/test-frexpl.c: Likewise.
28907         * tests/test-fseek.c: Likewise.
28908         * tests/test-fseeko.c: Likewise.
28909         * tests/test-fstatat.c: Likewise.
28910         * tests/test-fstrcmp.c: Likewise.
28911         * tests/test-fsync.c: Likewise.
28912         * tests/test-ftell.c: Likewise.
28913         * tests/test-ftello.c: Likewise.
28914         * tests/test-func.c: Likewise.
28915         * tests/test-futimens.c: Likewise.
28916         * tests/test-fwritable.c: Likewise.
28917         * tests/test-fwriting.c: Likewise.
28918         * tests/test-getcwd.c: Likewise.
28919         * tests/test-getdate.c: Likewise.
28920         * tests/test-getdelim.c: Likewise.
28921         * tests/test-getdtablesize.c: Likewise.
28922         * tests/test-getgroups.c: Likewise.
28923         * tests/test-getline.c: Likewise.
28924         * tests/test-getndelim2.c: Likewise.
28925         * tests/test-glob.c: Likewise.
28926         * tests/test-hash.c: Likewise.
28927         * tests/test-i-ring.c: Likewise.
28928         * tests/test-iconv-utf.c: Likewise.
28929         * tests/test-iconv.c: Likewise.
28930         * tests/test-idpriv-drop.c: Likewise.
28931         * tests/test-idpriv-droptemp.c: Likewise.
28932         * tests/test-inet_ntop.c: Likewise.
28933         * tests/test-inet_pton.c: Likewise.
28934         * tests/test-isblank.c: Likewise.
28935         * tests/test-isfinite.c: Likewise.
28936         * tests/test-isinf.c: Likewise.
28937         * tests/test-isnan.c: Likewise.
28938         * tests/test-isnand.h: Likewise.
28939         * tests/test-isnanf.h: Likewise.
28940         * tests/test-isnanl.h: Likewise.
28941         * tests/test-lchown.c: Likewise.
28942         * tests/test-ldexpl.c: Likewise.
28943         * tests/test-link.c: Likewise.
28944         * tests/test-linkat.c: Likewise.
28945         * tests/test-linked_list.c: Likewise.
28946         * tests/test-linkedhash_list.c: Likewise.
28947         * tests/test-localename.c: Likewise.
28948         * tests/test-lseek.c: Likewise.
28949         * tests/test-lstat.c: Likewise.
28950         * tests/test-mbmemcasecmp.c: Likewise.
28951         * tests/test-mbmemcasecoll.c: Likewise.
28952         * tests/test-mbrtowc.c: Likewise.
28953         * tests/test-mbscasecmp.c: Likewise.
28954         * tests/test-mbscasestr1.c: Likewise.
28955         * tests/test-mbscasestr2.c: Likewise.
28956         * tests/test-mbscasestr3.c: Likewise.
28957         * tests/test-mbscasestr4.c: Likewise.
28958         * tests/test-mbschr.c: Likewise.
28959         * tests/test-mbscspn.c: Likewise.
28960         * tests/test-mbsinit.c: Likewise.
28961         * tests/test-mbsncasecmp.c: Likewise.
28962         * tests/test-mbsnrtowcs.c: Likewise.
28963         * tests/test-mbspbrk.c: Likewise.
28964         * tests/test-mbspcasecmp.c: Likewise.
28965         * tests/test-mbsrchr.c: Likewise.
28966         * tests/test-mbsrtowcs.c: Likewise.
28967         * tests/test-mbsspn.c: Likewise.
28968         * tests/test-mbsstr1.c: Likewise.
28969         * tests/test-mbsstr2.c: Likewise.
28970         * tests/test-mbsstr3.c: Likewise.
28971         * tests/test-memchr.c: Likewise.
28972         * tests/test-memchr2.c: Likewise.
28973         * tests/test-memcmp.c: Likewise.
28974         * tests/test-memmem.c: Likewise.
28975         * tests/test-memrchr.c: Likewise.
28976         * tests/test-mkdir.c: Likewise.
28977         * tests/test-mkdirat.c: Likewise.
28978         * tests/test-mkfifo.c: Likewise.
28979         * tests/test-mkfifoat.c: Likewise.
28980         * tests/test-mknod.c: Likewise.
28981         * tests/test-nanosleep.c: Likewise.
28982         * tests/test-nl_langinfo.c: Likewise.
28983         * tests/test-obstack-printf.c: Likewise.
28984         * tests/test-open.c: Likewise.
28985         * tests/test-openat.c: Likewise.
28986         * tests/test-pipe-filter-gi1.c: Likewise.
28987         * tests/test-pipe-filter-gi2-main.c: Likewise.
28988         * tests/test-pipe-filter-ii1.c: Likewise.
28989         * tests/test-pipe-filter-ii2-main.c: Likewise.
28990         * tests/test-pipe2.c: Likewise.
28991         * tests/test-popen.h: Likewise.
28992         * tests/test-posixtm.c: Likewise.
28993         * tests/test-pread.c: Likewise.
28994         * tests/test-printf-frexp.c: Likewise.
28995         * tests/test-printf-frexpl.c: Likewise.
28996         * tests/test-printf-posix.c: Likewise.
28997         * tests/test-priv-set.c: Likewise.
28998         * tests/test-quotearg.c: Likewise.
28999         * tests/test-random_r.c: Likewise.
29000         * tests/test-rawmemchr.c: Likewise.
29001         * tests/test-rbtree_list.c: Likewise.
29002         * tests/test-rbtree_oset.c: Likewise.
29003         * tests/test-rbtreehash_list.c: Likewise.
29004         * tests/test-readlink.c: Likewise.
29005         * tests/test-remove.c: Likewise.
29006         * tests/test-rename.c: Likewise.
29007         * tests/test-renameat.c: Likewise.
29008         * tests/test-rmdir.c: Likewise.
29009         * tests/test-round1.c: Likewise.
29010         * tests/test-roundf1.c: Likewise.
29011         * tests/test-roundl.c: Likewise.
29012         * tests/test-safe-alloc.c: Likewise.
29013         * tests/test-sameacls.c: Likewise.
29014         * tests/test-set-mode-acl.c: Likewise.
29015         * tests/test-setenv.c: Likewise.
29016         * tests/test-sigaction.c: Likewise.
29017         * tests/test-signbit.c: Likewise.
29018         * tests/test-sleep.c: Likewise.
29019         * tests/test-snprintf-posix.c: Likewise.
29020         * tests/test-snprintf.c: Likewise.
29021         * tests/test-sprintf-posix.c: Likewise.
29022         * tests/test-stat-time.c: Likewise.
29023         * tests/test-stat.c: Likewise.
29024         * tests/test-strcasestr.c: Likewise.
29025         * tests/test-strchrnul.c: Likewise.
29026         * tests/test-strerror.c: Likewise.
29027         * tests/test-striconv.c: Likewise.
29028         * tests/test-striconveh.c: Likewise.
29029         * tests/test-striconveha.c: Likewise.
29030         * tests/test-strsignal.c: Likewise.
29031         * tests/test-strstr.c: Likewise.
29032         * tests/test-strtod.c: Likewise.
29033         * tests/test-strverscmp.c: Likewise.
29034         * tests/test-symlink.c: Likewise.
29035         * tests/test-symlinkat.c: Likewise.
29036         * tests/test-trunc1.c: Likewise.
29037         * tests/test-trunc2.c: Likewise.
29038         * tests/test-truncf1.c: Likewise.
29039         * tests/test-truncf2.c: Likewise.
29040         * tests/test-truncl.c: Likewise.
29041         * tests/test-uname.c: Likewise.
29042         * tests/test-unlink.c: Likewise.
29043         * tests/test-unlinkat.c: Likewise.
29044         * tests/test-unsetenv.c: Likewise.
29045         * tests/test-usleep.c: Likewise.
29046         * tests/test-utimens.c: Likewise.
29047         * tests/test-utimensat.c: Likewise.
29048         * tests/test-vasnprintf-posix.c: Likewise.
29049         * tests/test-vasnprintf-posix2.c: Likewise.
29050         * tests/test-vasnprintf.c: Likewise.
29051         * tests/test-vasprintf-posix.c: Likewise.
29052         * tests/test-vasprintf.c: Likewise.
29053         * tests/test-vdprintf-posix.c: Likewise.
29054         * tests/test-vfprintf-posix.c: Likewise.
29055         * tests/test-vprintf-posix.c: Likewise.
29056         * tests/test-vsnprintf-posix.c: Likewise.
29057         * tests/test-vsnprintf.c: Likewise.
29058         * tests/test-vsprintf-posix.c: Likewise.
29059         * tests/test-wcrtomb.c: Likewise.
29060         * tests/test-wcsnrtombs.c: Likewise.
29061         * tests/test-wcsrtombs.c: Likewise.
29062         * tests/test-wctype.c: Likewise.
29063         * tests/test-wcwidth.c: Likewise.
29064         * tests/test-xfprintf-posix.c: Likewise.
29065         * tests/test-xmemdup0.c: Likewise.
29066         * tests/test-xprintf-posix.c: Likewise.
29067         * tests/test-xvasprintf.c: Likewise.
29068         * tests/unicase/test-locale-language.c: Likewise.
29069         * tests/unicase/test-mapping-part1.h: Likewise.
29070         * tests/unicase/test-predicate-part1.h: Likewise.
29071         * tests/unicase/test-u8-casecmp.c: Likewise.
29072         * tests/unicase/test-u8-casecoll.c: Likewise.
29073         * tests/unicase/test-u8-casefold.c: Likewise.
29074         * tests/unicase/test-u8-is-cased.c: Likewise.
29075         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29076         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29077         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29078         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29079         * tests/unicase/test-u8-tolower.c: Likewise.
29080         * tests/unicase/test-u8-totitle.c: Likewise.
29081         * tests/unicase/test-u8-toupper.c: Likewise.
29082         * tests/unicase/test-u16-casecmp.c: Likewise.
29083         * tests/unicase/test-u16-casecoll.c: Likewise.
29084         * tests/unicase/test-u16-casefold.c: Likewise.
29085         * tests/unicase/test-u16-is-cased.c: Likewise.
29086         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29087         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29088         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29089         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29090         * tests/unicase/test-u16-tolower.c: Likewise.
29091         * tests/unicase/test-u16-totitle.c: Likewise.
29092         * tests/unicase/test-u16-toupper.c: Likewise.
29093         * tests/unicase/test-u32-casecmp.c: Likewise.
29094         * tests/unicase/test-u32-casecoll.c: Likewise.
29095         * tests/unicase/test-u32-casefold.c: Likewise.
29096         * tests/unicase/test-u32-is-cased.c: Likewise.
29097         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29098         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29099         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29100         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29101         * tests/unicase/test-u32-tolower.c: Likewise.
29102         * tests/unicase/test-u32-totitle.c: Likewise.
29103         * tests/unicase/test-u32-toupper.c: Likewise.
29104         * tests/unicase/test-ulc-casecmp.c: Likewise.
29105         * tests/unicase/test-ulc-casecoll.c: Likewise.
29106         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29107         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29108         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29109         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29110         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29111         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29112         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29113         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29114         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29115         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29116         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29117         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29118         * tests/unictype/test-bidi_byname.c: Likewise.
29119         * tests/unictype/test-bidi_name.c: Likewise.
29120         * tests/unictype/test-bidi_of.c: Likewise.
29121         * tests/unictype/test-bidi_test.c: Likewise.
29122         * tests/unictype/test-block_list.c: Likewise.
29123         * tests/unictype/test-block_of.c: Likewise.
29124         * tests/unictype/test-block_test.c: Likewise.
29125         * tests/unictype/test-categ_and.c: Likewise.
29126         * tests/unictype/test-categ_and_not.c: Likewise.
29127         * tests/unictype/test-categ_byname.c: Likewise.
29128         * tests/unictype/test-categ_name.c: Likewise.
29129         * tests/unictype/test-categ_none.c: Likewise.
29130         * tests/unictype/test-categ_of.c: Likewise.
29131         * tests/unictype/test-categ_or.c: Likewise.
29132         * tests/unictype/test-categ_test_withtable.c: Likewise.
29133         * tests/unictype/test-combining.c: Likewise.
29134         * tests/unictype/test-decdigit.c: Likewise.
29135         * tests/unictype/test-digit.c: Likewise.
29136         * tests/unictype/test-mirror.c: Likewise.
29137         * tests/unictype/test-numeric.c: Likewise.
29138         * tests/unictype/test-pr_byname.c: Likewise.
29139         * tests/unictype/test-pr_test.c: Likewise.
29140         * tests/unictype/test-predicate-part1.h: Likewise.
29141         * tests/unictype/test-scripts.c: Likewise.
29142         * tests/unictype/test-sy_c_ident.c: Likewise.
29143         * tests/unictype/test-sy_java_ident.c: Likewise.
29144         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29145         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29146         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29147         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29148         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29149         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29150         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29151         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29152         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29153         * tests/uninorm/test-compat-decomposition.c: Likewise.
29154         * tests/uninorm/test-composition.c: Likewise.
29155         * tests/uninorm/test-decomposing-form.c: Likewise.
29156         * tests/uninorm/test-decomposition.c: Likewise.
29157         * tests/uninorm/test-u8-nfc.c: Likewise.
29158         * tests/uninorm/test-u8-nfd.c: Likewise.
29159         * tests/uninorm/test-u8-nfkc.c: Likewise.
29160         * tests/uninorm/test-u8-nfkd.c: Likewise.
29161         * tests/uninorm/test-u8-normcmp.c: Likewise.
29162         * tests/uninorm/test-u8-normcoll.c: Likewise.
29163         * tests/uninorm/test-u16-nfc.c: Likewise.
29164         * tests/uninorm/test-u16-nfd.c: Likewise.
29165         * tests/uninorm/test-u16-nfkc.c: Likewise.
29166         * tests/uninorm/test-u16-nfkd.c: Likewise.
29167         * tests/uninorm/test-u16-normcmp.c: Likewise.
29168         * tests/uninorm/test-u16-normcoll.c: Likewise.
29169         * tests/uninorm/test-u32-nfc.c: Likewise.
29170         * tests/uninorm/test-u32-nfd.c: Likewise.
29171         * tests/uninorm/test-u32-nfkc.c: Likewise.
29172         * tests/uninorm/test-u32-nfkd.c: Likewise.
29173         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29174         * tests/uninorm/test-u32-normcmp.c: Likewise.
29175         * tests/uninorm/test-u32-normcoll.c: Likewise.
29176         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29177         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29178         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29179         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29180         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29181         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29182         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29183         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29184         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29185         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29186         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29187         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29188         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29189         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29190         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29191         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29192         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29193         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29194         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29195         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29196         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29197         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29198         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29199         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29200         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29201         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29202         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29203         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29204         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29205         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29206         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29207         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29208         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29209         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29210         * tests/uniwidth/test-u8-width.c: Likewise.
29211         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29212         * tests/uniwidth/test-u16-width.c: Likewise.
29213         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29214         * tests/uniwidth/test-u32-width.c: Likewise.
29215         * tests/uniwidth/test-uc_width.c: Likewise.
29216         * tests/uniwidth/test-uc_width2.c: Likewise.
29217         * modules/acl-tests (Files): Add tests/macros.h.
29218         * modules/areadlink-tests (Files): Likewise.
29219         * modules/areadlink-with-size-tests (Files): Likewise.
29220         * modules/areadlinkat-tests (Files): Likewise.
29221         * modules/areadlinkat-with-size-tests (Files): Likewise.
29222         * modules/argmatch-tests (Files): Likewise.
29223         * modules/argv-iter-tests (Files): Likewise.
29224         * modules/array-list-tests (Files): Likewise.
29225         * modules/array-mergesort-tests (Files): Likewise.
29226         * modules/array-oset-tests (Files): Likewise.
29227         * modules/avltree-list-tests (Files): Likewise.
29228         * modules/avltree-oset-tests (Files): Likewise.
29229         * modules/avltreehash-list-tests (Files): Likewise.
29230         * modules/base64-tests (Files): Likewise.
29231         * modules/binary-io-tests (Files): Likewise.
29232         * modules/bitrotate-tests (Files): Likewise.
29233         * modules/btowc-tests (Files): Likewise.
29234         * modules/byteswap-tests (Files): Likewise.
29235         * modules/c-ctype-tests (Files): Likewise.
29236         * modules/c-stack-tests (Files): Likewise.
29237         * modules/c-strcase-tests (Files): Likewise.
29238         * modules/c-strcasestr-tests (Files): Likewise.
29239         * modules/c-strstr-tests (Files): Likewise.
29240         * modules/canonicalize-lgpl-tests (Files): Likewise.
29241         * modules/canonicalize-tests (Files): Likewise.
29242         * modules/carray-list-tests (Files): Likewise.
29243         * modules/ceilf-tests (Files): Likewise.
29244         * modules/ceill-tests (Files): Likewise.
29245         * modules/chown-tests (Files): Likewise.
29246         * modules/cloexec-tests (Files): Likewise.
29247         * modules/copy-file-tests (Files): Likewise.
29248         * modules/count-one-bits-tests (Files): Likewise.
29249         * modules/dprintf-posix-tests (Files): Likewise.
29250         * modules/dup2-tests (Files): Likewise.
29251         * modules/dup3-tests (Files): Likewise.
29252         * modules/duplocale-tests (Files): Likewise.
29253         * modules/fbufmode-tests (Files): Likewise.
29254         * modules/fchdir-tests (Files): Likewise.
29255         * modules/fcntl-safer-tests (Files): Likewise.
29256         * modules/fcntl-tests (Files): Likewise.
29257         * modules/fdopendir-tests (Files): Likewise.
29258         * modules/fdutimensat-tests (Files): Likewise.
29259         * modules/fflush-tests (Files): Likewise.
29260         * modules/filevercmp-tests (Files): Likewise.
29261         * modules/flock-tests (Files): Likewise.
29262         * modules/floorf-tests (Files): Likewise.
29263         * modules/floorl-tests (Files): Likewise.
29264         * modules/fnmatch-tests (Files): Likewise.
29265         * modules/fopen-safer-tests (Files): Likewise.
29266         * modules/fopen-tests (Files): Likewise.
29267         * modules/fpending-tests (Files): Likewise.
29268         * modules/fprintf-posix-tests (Files): Likewise.
29269         * modules/fpurge-tests (Files): Likewise.
29270         * modules/freadable-tests (Files): Likewise.
29271         * modules/freadahead-tests (Files): Likewise.
29272         * modules/freading-tests (Files): Likewise.
29273         * modules/freadptr-tests (Files): Likewise.
29274         * modules/freadseek-tests (Files): Likewise.
29275         * modules/freopen-tests (Files): Likewise.
29276         * modules/frexp-nolibm-tests (Files): Likewise.
29277         * modules/frexp-tests (Files): Likewise.
29278         * modules/frexpl-nolibm-tests (Files): Likewise.
29279         * modules/frexpl-tests (Files): Likewise.
29280         * modules/fseek-tests (Files): Likewise.
29281         * modules/fseeko-tests (Files): Likewise.
29282         * modules/fstrcmp-tests (Files): Likewise.
29283         * modules/fsync-tests (Files): Likewise.
29284         * modules/ftell-tests (Files): Likewise.
29285         * modules/ftello-tests (Files): Likewise.
29286         * modules/func-tests (Files): Likewise.
29287         * modules/futimens-tests (Files): Likewise.
29288         * modules/fwritable-tests (Files): Likewise.
29289         * modules/fwriting-tests (Files): Likewise.
29290         * modules/getcwd-tests (Files): Likewise.
29291         * modules/getdate-tests (Files): Likewise.
29292         * modules/getdelim-tests (Files): Likewise.
29293         * modules/getdtablesize-tests (Files): Likewise.
29294         * modules/getgroups-tests (Files): Likewise.
29295         * modules/getline-tests (Files): Likewise.
29296         * modules/getndelim2-tests (Files): Likewise.
29297         * modules/glob-tests (Files): Likewise.
29298         * modules/hash-tests (Files): Likewise.
29299         * modules/i-ring-tests (Files): Likewise.
29300         * modules/iconv-tests (Files): Likewise.
29301         * modules/iconv_open-utf-tests (Files): Likewise.
29302         * modules/idpriv-drop-tests (Files): Likewise.
29303         * modules/idpriv-droptemp-tests (Files): Likewise.
29304         * modules/inet_ntop-tests (Files): Likewise.
29305         * modules/inet_pton-tests (Files): Likewise.
29306         * modules/isblank-tests (Files): Likewise.
29307         * modules/isfinite-tests (Files): Likewise.
29308         * modules/isinf-tests (Files): Likewise.
29309         * modules/isnan-tests (Files): Likewise.
29310         * modules/isnand-nolibm-tests (Files): Likewise.
29311         * modules/isnand-tests (Files): Likewise.
29312         * modules/isnanf-nolibm-tests (Files): Likewise.
29313         * modules/isnanf-tests (Files): Likewise.
29314         * modules/isnanl-nolibm-tests (Files): Likewise.
29315         * modules/isnanl-tests (Files): Likewise.
29316         * modules/lchown-tests (Files): Likewise.
29317         * modules/ldexpl-tests (Files): Likewise.
29318         * modules/link-tests (Files): Likewise.
29319         * modules/linkat-tests (Files): Likewise.
29320         * modules/linked-list-tests (Files): Likewise.
29321         * modules/linkedhash-list-tests (Files): Likewise.
29322         * modules/localename-tests (Files): Likewise.
29323         * modules/lseek-tests (Files): Likewise.
29324         * modules/lstat-tests (Files): Likewise.
29325         * modules/mbmemcasecmp-tests (Files): Likewise.
29326         * modules/mbmemcasecoll-tests (Files): Likewise.
29327         * modules/mbrtowc-tests (Files): Likewise.
29328         * modules/mbscasecmp-tests (Files): Likewise.
29329         * modules/mbscasestr-tests (Files): Likewise.
29330         * modules/mbschr-tests (Files): Likewise.
29331         * modules/mbscspn-tests (Files): Likewise.
29332         * modules/mbsinit-tests (Files): Likewise.
29333         * modules/mbsncasecmp-tests (Files): Likewise.
29334         * modules/mbsnrtowcs-tests (Files): Likewise.
29335         * modules/mbspbrk-tests (Files): Likewise.
29336         * modules/mbspcasecmp-tests (Files): Likewise.
29337         * modules/mbsrchr-tests (Files): Likewise.
29338         * modules/mbsrtowcs-tests (Files): Likewise.
29339         * modules/mbsspn-tests (Files): Likewise.
29340         * modules/mbsstr-tests (Files): Likewise.
29341         * modules/memchr-tests (Files): Likewise.
29342         * modules/memchr2-tests (Files): Likewise.
29343         * modules/memcmp-tests (Files): Likewise.
29344         * modules/memmem-tests (Files): Likewise.
29345         * modules/memrchr-tests (Files): Likewise.
29346         * modules/mkdir-tests (Files): Likewise.
29347         * modules/mkfifo-tests (Files): Likewise.
29348         * modules/mkfifoat-tests (Files): Likewise.
29349         * modules/mknod-tests (Files): Likewise.
29350         * modules/nanosleep-tests (Files): Likewise.
29351         * modules/nl_langinfo-tests (Files): Likewise.
29352         * modules/obstack-printf-tests (Files): Likewise.
29353         * modules/open-tests (Files): Likewise.
29354         * modules/openat-tests (Files): Likewise.
29355         * modules/pipe-filter-gi-tests (Files): Likewise.
29356         * modules/pipe-filter-ii-tests (Files): Likewise.
29357         * modules/pipe2-tests (Files): Likewise.
29358         * modules/popen-safer-tests (Files): Likewise.
29359         * modules/popen-tests (Files): Likewise.
29360         * modules/posixtm-tests (Files): Likewise.
29361         * modules/pread-tests (Files): Likewise.
29362         * modules/printf-frexp-tests (Files): Likewise.
29363         * modules/printf-frexpl-tests (Files): Likewise.
29364         * modules/printf-posix-tests (Files): Likewise.
29365         * modules/priv-set-tests (Files): Likewise.
29366         * modules/quotearg-tests (Files): Likewise.
29367         * modules/random_r-tests (Files): Likewise.
29368         * modules/rawmemchr-tests (Files): Likewise.
29369         * modules/rbtree-list-tests (Files): Likewise.
29370         * modules/rbtree-oset-tests (Files): Likewise.
29371         * modules/rbtreehash-list-tests (Files): Likewise.
29372         * modules/readlink-tests (Files): Likewise.
29373         * modules/remove-tests (Files): Likewise.
29374         * modules/rename-tests (Files): Likewise.
29375         * modules/renameat-tests (Files): Likewise.
29376         * modules/rmdir-tests (Files): Likewise.
29377         * modules/round-tests (Files): Likewise.
29378         * modules/roundf-tests (Files): Likewise.
29379         * modules/roundl-tests (Files): Likewise.
29380         * modules/safe-alloc-tests (Files): Likewise.
29381         * modules/setenv-tests (Files): Likewise.
29382         * modules/sigaction-tests (Files): Likewise.
29383         * modules/signbit-tests (Files): Likewise.
29384         * modules/sleep-tests (Files): Likewise.
29385         * modules/snprintf-posix-tests (Files): Likewise.
29386         * modules/snprintf-tests (Files): Likewise.
29387         * modules/sprintf-posix-tests (Files): Likewise.
29388         * modules/stat-tests (Files): Likewise.
29389         * modules/stat-time-tests (Files): Likewise.
29390         * modules/strcasestr-tests (Files): Likewise.
29391         * modules/strchrnul-tests (Files): Likewise.
29392         * modules/strerror-tests (Files): Likewise.
29393         * modules/striconv-tests (Files): Likewise.
29394         * modules/striconveh-tests (Files): Likewise.
29395         * modules/striconveha-tests (Files): Likewise.
29396         * modules/strsignal-tests (Files): Likewise.
29397         * modules/strstr-tests (Files): Likewise.
29398         * modules/strtod-tests (Files): Likewise.
29399         * modules/strverscmp-tests (Files): Likewise.
29400         * modules/symlink-tests (Files): Likewise.
29401         * modules/symlinkat-tests (Files): Likewise.
29402         * modules/trunc-tests (Files): Likewise.
29403         * modules/truncf-tests (Files): Likewise.
29404         * modules/truncl-tests (Files): Likewise.
29405         * modules/uname-tests (Files): Likewise.
29406         * modules/unicase/cased-tests (Files): Likewise.
29407         * modules/unicase/ignorable-tests (Files): Likewise.
29408         * modules/unicase/locale-language-tests (Files): Likewise.
29409         * modules/unicase/tolower-tests (Files): Likewise.
29410         * modules/unicase/totitle-tests (Files): Likewise.
29411         * modules/unicase/toupper-tests (Files): Likewise.
29412         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29413         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29414         * modules/unicase/u8-casefold-tests (Files): Likewise.
29415         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29416         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29417         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29418         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29419         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29420         * modules/unicase/u8-tolower-tests (Files): Likewise.
29421         * modules/unicase/u8-totitle-tests (Files): Likewise.
29422         * modules/unicase/u8-toupper-tests (Files): Likewise.
29423         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29424         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29425         * modules/unicase/u16-casefold-tests (Files): Likewise.
29426         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29427         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29428         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29429         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29430         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29431         * modules/unicase/u16-tolower-tests (Files): Likewise.
29432         * modules/unicase/u16-totitle-tests (Files): Likewise.
29433         * modules/unicase/u16-toupper-tests (Files): Likewise.
29434         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29435         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29436         * modules/unicase/u32-casefold-tests (Files): Likewise.
29437         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29438         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29439         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29440         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29441         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29442         * modules/unicase/u32-tolower-tests (Files): Likewise.
29443         * modules/unicase/u32-totitle-tests (Files): Likewise.
29444         * modules/unicase/u32-toupper-tests (Files): Likewise.
29445         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29446         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29447         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29448         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29449         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29450         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29451         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29452         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29453         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29454         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29455         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29456         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29457         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29458         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29459         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29460         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29461         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29462         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29463         * modules/unictype/block-list-tests (Files): Likewise.
29464         * modules/unictype/block-of-tests (Files): Likewise.
29465         * modules/unictype/block-test-tests (Files): Likewise.
29466         * modules/unictype/category-C-tests (Files): Likewise.
29467         * modules/unictype/category-Cc-tests (Files): Likewise.
29468         * modules/unictype/category-Cf-tests (Files): Likewise.
29469         * modules/unictype/category-Cn-tests (Files): Likewise.
29470         * modules/unictype/category-Co-tests (Files): Likewise.
29471         * modules/unictype/category-Cs-tests (Files): Likewise.
29472         * modules/unictype/category-L-tests (Files): Likewise.
29473         * modules/unictype/category-Ll-tests (Files): Likewise.
29474         * modules/unictype/category-Lm-tests (Files): Likewise.
29475         * modules/unictype/category-Lo-tests (Files): Likewise.
29476         * modules/unictype/category-Lt-tests (Files): Likewise.
29477         * modules/unictype/category-Lu-tests (Files): Likewise.
29478         * modules/unictype/category-M-tests (Files): Likewise.
29479         * modules/unictype/category-Mc-tests (Files): Likewise.
29480         * modules/unictype/category-Me-tests (Files): Likewise.
29481         * modules/unictype/category-Mn-tests (Files): Likewise.
29482         * modules/unictype/category-N-tests (Files): Likewise.
29483         * modules/unictype/category-Nd-tests (Files): Likewise.
29484         * modules/unictype/category-Nl-tests (Files): Likewise.
29485         * modules/unictype/category-No-tests (Files): Likewise.
29486         * modules/unictype/category-P-tests (Files): Likewise.
29487         * modules/unictype/category-Pc-tests (Files): Likewise.
29488         * modules/unictype/category-Pd-tests (Files): Likewise.
29489         * modules/unictype/category-Pe-tests (Files): Likewise.
29490         * modules/unictype/category-Pf-tests (Files): Likewise.
29491         * modules/unictype/category-Pi-tests (Files): Likewise.
29492         * modules/unictype/category-Po-tests (Files): Likewise.
29493         * modules/unictype/category-Ps-tests (Files): Likewise.
29494         * modules/unictype/category-S-tests (Files): Likewise.
29495         * modules/unictype/category-Sc-tests (Files): Likewise.
29496         * modules/unictype/category-Sk-tests (Files): Likewise.
29497         * modules/unictype/category-Sm-tests (Files): Likewise.
29498         * modules/unictype/category-So-tests (Files): Likewise.
29499         * modules/unictype/category-Z-tests (Files): Likewise.
29500         * modules/unictype/category-Zl-tests (Files): Likewise.
29501         * modules/unictype/category-Zp-tests (Files): Likewise.
29502         * modules/unictype/category-Zs-tests (Files): Likewise.
29503         * modules/unictype/category-and-not-tests (Files): Likewise.
29504         * modules/unictype/category-and-tests (Files): Likewise.
29505         * modules/unictype/category-byname-tests (Files): Likewise.
29506         * modules/unictype/category-name-tests (Files): Likewise.
29507         * modules/unictype/category-none-tests (Files): Likewise.
29508         * modules/unictype/category-of-tests (Files): Likewise.
29509         * modules/unictype/category-or-tests (Files): Likewise.
29510         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29511         * modules/unictype/combining-class-tests (Files): Likewise.
29512         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29513         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29514         * modules/unictype/ctype-blank-tests (Files): Likewise.
29515         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29516         * modules/unictype/ctype-digit-tests (Files): Likewise.
29517         * modules/unictype/ctype-graph-tests (Files): Likewise.
29518         * modules/unictype/ctype-lower-tests (Files): Likewise.
29519         * modules/unictype/ctype-print-tests (Files): Likewise.
29520         * modules/unictype/ctype-punct-tests (Files): Likewise.
29521         * modules/unictype/ctype-space-tests (Files): Likewise.
29522         * modules/unictype/ctype-upper-tests (Files): Likewise.
29523         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29524         * modules/unictype/decimal-digit-tests (Files): Likewise.
29525         * modules/unictype/digit-tests (Files): Likewise.
29526         * modules/unictype/mirror-tests (Files): Likewise.
29527         * modules/unictype/numeric-tests (Files): Likewise.
29528         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29529         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29530         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29531         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29532         Likewise.
29533         * modules/unictype/property-bidi-block-separator-tests (Files):
29534         Likewise.
29535         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29536         Likewise.
29537         * modules/unictype/property-bidi-common-separator-tests (Files):
29538         Likewise.
29539         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29540         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29541         Likewise.
29542         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29543         Likewise.
29544         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29545         Likewise.
29546         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29547         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29548         Likewise.
29549         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29550         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29551         Likewise.
29552         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29553         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29554         * modules/unictype/property-bidi-segment-separator-tests (Files):
29555         Likewise.
29556         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29557         * modules/unictype/property-byname-tests (Files): Likewise.
29558         * modules/unictype/property-combining-tests (Files): Likewise.
29559         * modules/unictype/property-composite-tests (Files): Likewise.
29560         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29561         * modules/unictype/property-dash-tests (Files): Likewise.
29562         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29563         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29564         Likewise.
29565         * modules/unictype/property-deprecated-tests (Files): Likewise.
29566         * modules/unictype/property-diacritic-tests (Files): Likewise.
29567         * modules/unictype/property-extender-tests (Files): Likewise.
29568         * modules/unictype/property-format-control-tests (Files): Likewise.
29569         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29570         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29571         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29572         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29573         * modules/unictype/property-hyphen-tests (Files): Likewise.
29574         * modules/unictype/property-id-continue-tests (Files): Likewise.
29575         * modules/unictype/property-id-start-tests (Files): Likewise.
29576         * modules/unictype/property-ideographic-tests (Files): Likewise.
29577         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29578         * modules/unictype/property-ids-trinary-operator-tests (Files):
29579         Likewise.
29580         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29581         * modules/unictype/property-iso-control-tests (Files): Likewise.
29582         * modules/unictype/property-join-control-tests (Files): Likewise.
29583         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29584         * modules/unictype/property-line-separator-tests (Files): Likewise.
29585         * modules/unictype/property-logical-order-exception-tests (Files):
29586         Likewise.
29587         * modules/unictype/property-lowercase-tests (Files): Likewise.
29588         * modules/unictype/property-math-tests (Files): Likewise.
29589         * modules/unictype/property-non-break-tests (Files): Likewise.
29590         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29591         * modules/unictype/property-numeric-tests (Files): Likewise.
29592         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29593         * modules/unictype/property-other-default-ignorable-code-point-tests
29594         (Files): Likewise.
29595         * modules/unictype/property-other-grapheme-extend-tests (Files):
29596         Likewise.
29597         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29598         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29599         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29600         * modules/unictype/property-other-math-tests (Files): Likewise.
29601         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29602         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29603         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29604         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29605         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29606         * modules/unictype/property-private-use-tests (Files): Likewise.
29607         * modules/unictype/property-punctuation-tests (Files): Likewise.
29608         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29609         * modules/unictype/property-radical-tests (Files): Likewise.
29610         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29611         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29612         * modules/unictype/property-space-tests (Files): Likewise.
29613         * modules/unictype/property-terminal-punctuation-tests (Files):
29614         Likewise.
29615         * modules/unictype/property-test-tests (Files): Likewise.
29616         * modules/unictype/property-titlecase-tests (Files): Likewise.
29617         * modules/unictype/property-unassigned-code-value-tests (Files):
29618         Likewise.
29619         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29620         * modules/unictype/property-uppercase-tests (Files): Likewise.
29621         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29622         * modules/unictype/property-white-space-tests (Files): Likewise.
29623         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29624         * modules/unictype/property-xid-start-tests (Files): Likewise.
29625         * modules/unictype/property-zero-width-tests (Files): Likewise.
29626         * modules/unictype/scripts-tests (Files): Likewise.
29627         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29628         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29629         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29630         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29631         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29632         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29633         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29634         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29635         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29636         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29637         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29638         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29639         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29640         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29641         * modules/uninorm/composition-tests (Files): Likewise.
29642         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29643         * modules/uninorm/decomposition-tests (Files): Likewise.
29644         * modules/uninorm/filter-tests (Files): Likewise.
29645         * modules/uninorm/nfc-tests (Files): Likewise.
29646         * modules/uninorm/nfd-tests (Files): Likewise.
29647         * modules/uninorm/nfkc-tests (Files): Likewise.
29648         * modules/uninorm/nfkd-tests (Files): Likewise.
29649         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29650         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29651         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29652         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29653         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29654         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29655         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29656         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29657         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29658         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29659         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29660         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29661         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29662         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29663         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29664         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29665         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29666         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29667         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29668         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29669         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29670         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29671         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29672         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29673         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29674         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29675         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29676         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29677         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29678         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29679         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29680         * modules/uniwidth/u8-width-tests (Files): Likewise.
29681         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29682         * modules/uniwidth/u16-width-tests (Files): Likewise.
29683         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29684         * modules/uniwidth/u32-width-tests (Files): Likewise.
29685         * modules/uniwidth/width-tests (Files): Likewise.
29686         * modules/unlink-tests (Files): Likewise.
29687         * modules/unsetenv-tests (Files): Likewise.
29688         * modules/usleep-tests (Files): Likewise.
29689         * modules/utimens-tests (Files): Likewise.
29690         * modules/utimensat-tests (Files): Likewise.
29691         * modules/vasnprintf-posix-tests (Files): Likewise.
29692         * modules/vasnprintf-tests (Files): Likewise.
29693         * modules/vasprintf-posix-tests (Files): Likewise.
29694         * modules/vasprintf-tests (Files): Likewise.
29695         * modules/vdprintf-posix-tests (Files): Likewise.
29696         * modules/vfprintf-posix-tests (Files): Likewise.
29697         * modules/vprintf-posix-tests (Files): Likewise.
29698         * modules/vsnprintf-posix-tests (Files): Likewise.
29699         * modules/vsnprintf-tests (Files): Likewise.
29700         * modules/vsprintf-posix-tests (Files): Likewise.
29701         * modules/wcrtomb-tests (Files): Likewise.
29702         * modules/wcsnrtombs-tests (Files): Likewise.
29703         * modules/wcsrtombs-tests (Files): Likewise.
29704         * modules/wctype-tests (Files): Likewise.
29705         * modules/wcwidth-tests (Files): Likewise.
29706         * modules/xmemdup0-tests (Files): Likewise.
29707         * modules/xprintf-posix-tests (Files): Likewise.
29708         * modules/xvasprintf-tests (Files): Likewise.
29709
29710 2009-12-24  Eric Blake  <ebb9@byu.net>
29711
29712         test-nanosleep: fix typo
29713         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29714         patch.
29715         Reported by Bruno Haible.
29716
29717 2009-12-24  Bruno Haible  <bruno@clisp.org>
29718
29719         Reduce namespace pollution on glibc systems.
29720         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29721         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29722         systems.
29723         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29724         <getopt.h> on glibc systems.
29725         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29726         systems.
29727         * lib/fcntl.c: Include <unistd.h> here instead.
29728
29729 2009-12-24  Bruno Haible  <bruno@clisp.org>
29730
29731         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29732
29733 2009-12-24  Eric Blake  <ebb9@byu.net>
29734
29735         tests: add signature checks
29736         * tests/signature.h (SIGNATURE_CHECK): New file.
29737         * modules/atexit-tests (Files): Use it.
29738         * modules/btowc-tests (Files): Likewise.
29739         * modules/canonicalize-lgpl-tests (Files): Likewise.
29740         * modules/ceilf-tests (Files): Likewise.
29741         * modules/ceill-tests (Files): Likewise.
29742         * modules/chown-tests (Files): Likewise.
29743         * modules/dprintf-posix-tests (Files): Likewise.
29744         * modules/dup2-tests (Files): Likewise.
29745         * modules/dup3-tests (Files): Likewise.
29746         * modules/duplocale-tests (Files): Likewise.
29747         * modules/fchdir-tests (Files): Likewise.
29748         * modules/fcntl-tests (Files): Likewise.
29749         * modules/fdopendir-tests (Files): Likewise.
29750         * modules/fflush-tests (Files): Likewise.
29751         * modules/flock-tests (Files): Likewise.
29752         * modules/floorf-tests (Files): Likewise.
29753         * modules/floorl-tests (Files): Likewise.
29754         * modules/fnmatch-tests (Files): Likewise.
29755         * modules/fopen-tests (Files): Likewise.
29756         * modules/fprintf-posix-tests (Files): Likewise.
29757         * modules/freopen-tests (Files): Likewise.
29758         * modules/frexp-nolibm-tests (Files): Likewise.
29759         * modules/frexp-tests (Files): Likewise.
29760         * modules/frexpl-nolibm-tests (Files): Likewise.
29761         * modules/frexpl-tests (Files): Likewise.
29762         * modules/fseek-tests (Files): Likewise.
29763         * modules/fseeko-tests (Files): Likewise.
29764         * modules/fsync-tests (Files): Likewise.
29765         * modules/ftell-tests (Files): Likewise.
29766         * modules/ftello-tests (Files): Likewise.
29767         * modules/futimens-tests (Files): Likewise.
29768         * modules/getaddrinfo-tests (Files): Likewise.
29769         * modules/getcwd-tests (Files): Likewise.
29770         * modules/getdelim-tests (Files): Likewise.
29771         * modules/getdtablesize-tests (Files): Likewise.
29772         * modules/getgroups-tests (Files): Likewise.
29773         * modules/gethostname-tests (Files): Likewise.
29774         * modules/getline-tests (Files): Likewise.
29775         * modules/getopt-posix-tests (Files): Likewise.
29776         * modules/gettimeofday-tests (Files): Likewise.
29777         * modules/glob-tests (Files): Likewise.
29778         * modules/iconv-tests (Files): Likewise.
29779         * modules/inet_ntop-tests (Files): Likewise.
29780         * modules/inet_pton-tests (Files): Likewise.
29781         * modules/isblank-tests (Files): Likewise.
29782         * modules/lchown-tests (Files): Likewise.
29783         * modules/ldexpl-tests (Files): Likewise.
29784         * modules/link-tests (Files): Likewise.
29785         * modules/linkat-tests (Files): Likewise.
29786         * modules/lseek-tests (Files): Likewise.
29787         * modules/lstat-tests (Files): Likewise.
29788         * modules/mbrtowc-tests (Files): Likewise.
29789         * modules/mbsinit-tests (Files): Likewise.
29790         * modules/mbsnrtowcs-tests (Files): Likewise.
29791         * modules/mbsrtowcs-tests (Files): Likewise.
29792         * modules/memchr-tests (Files): Likewise.
29793         * modules/memcmp-tests (Files): Likewise.
29794         * modules/memmem-tests (Files): Likewise.
29795         * modules/memrchr-tests (Files): Likewise.
29796         * modules/mkdir-tests (Files): Likewise.
29797         * modules/mkfifo-tests (Files): Likewise.
29798         * modules/mkfifoat-tests (Files): Likewise.
29799         * modules/mknod-tests (Files): Likewise.
29800         * modules/nanosleep-tests (Files): Likewise.
29801         * modules/nl_langinfo-tests (Files): Likewise.
29802         * modules/obstack-printf-tests (Files): Likewise.
29803         * modules/open-tests (Files): Likewise.
29804         * modules/openat-tests (Files): Likewise.
29805         * modules/perror-tests (Files): Likewise.
29806         * modules/pipe2-tests (Files): Likewise.
29807         * modules/poll-tests (Files): Likewise.
29808         * modules/popen-tests (Files): Likewise.
29809         * modules/posix_spawn-tests (Files): Likewise.
29810         * modules/posix_spawnp-tests (Files): Likewise.
29811         * modules/pread-tests (Files): Likewise.
29812         * modules/printf-posix-tests (Files): Likewise.
29813         * modules/pty-tests (Files): Likewise.
29814         * modules/random_r-tests (Files): Likewise.
29815         * modules/rawmemchr-tests (Files): Likewise.
29816         * modules/readlink-tests (Files): Likewise.
29817         * modules/remove-tests (Files): Likewise.
29818         * modules/rename-tests (Files): Likewise.
29819         * modules/renameat-tests (Files): Likewise.
29820         * modules/rmdir-tests (Files): Likewise.
29821         * modules/round-tests (Files): Likewise.
29822         * modules/roundf-tests (Files): Likewise.
29823         * modules/roundl-tests (Files): Likewise.
29824         * modules/select-tests (Files): Likewise.
29825         * modules/setenv-tests (Files): Likewise.
29826         * modules/sigaction-tests (Files): Likewise.
29827         * modules/sleep-tests (Files): Likewise.
29828         * modules/snprintf-posix-tests (Files): Likewise.
29829         * modules/snprintf-tests (Files): Likewise.
29830         * modules/sprintf-posix-tests (Files): Likewise.
29831         * modules/stat-tests (Files): Likewise.
29832         * modules/strcasestr-tests (Files): Likewise.
29833         * modules/strchrnul-tests (Files): Likewise.
29834         * modules/strerror-tests (Files): Likewise.
29835         * modules/strsignal-tests (Files): Likewise.
29836         * modules/strstr-tests (Files): Likewise.
29837         * modules/strtod-tests (Files): Likewise.
29838         * modules/strverscmp-tests (Files): Likewise.
29839         * modules/symlink-tests (Files): Likewise.
29840         * modules/symlinkat-tests (Files): Likewise.
29841         * modules/times-tests (Files): Likewise.
29842         * modules/trunc-tests (Files): Likewise.
29843         * modules/truncf-tests (Files): Likewise.
29844         * modules/truncl-tests (Files): Likewise.
29845         * modules/tsearch-tests (Files): Likewise.
29846         * modules/uname-tests (Files): Likewise.
29847         * modules/unlink-tests (Files): Likewise.
29848         * modules/unsetenv-tests (Files): Likewise.
29849         * modules/usleep-tests (Files): Likewise.
29850         * modules/utimensat-tests (Files): Likewise.
29851         * modules/vasprintf-tests (Files): Likewise.
29852         * modules/vdprintf-posix-tests (Files): Likewise.
29853         * modules/vfprintf-posix-tests (Files): Likewise.
29854         * modules/vprintf-posix-tests (Files): Likewise.
29855         * modules/vsnprintf-posix-tests (Files): Likewise.
29856         * modules/vsnprintf-tests (Files): Likewise.
29857         * modules/vsprintf-posix-tests (Files): Likewise.
29858         * modules/wcrtomb-tests (Files): Likewise.
29859         * modules/wcsnrtombs-tests (Files): Likewise.
29860         * modules/wcsrtombs-tests (Files): Likewise.
29861         * modules/wcwidth-tests (Files): Likewise.
29862         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29863         * tests/test-isinf.c (isinf): Likewise.
29864         * tests/test-isnan.c (isnan): Likewise.
29865         * tests/test-signbit.c (signbit): Likewise.
29866         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29867         declaration, either as macro or with correct signature.
29868         (select): Ensure function under test is declared with correct
29869         signature in correct header.
29870         * tests/test-atexit.c (atexit): Likewise.
29871         * tests/test-btowc.c (btowc): Likewise.
29872         * tests/test-canonicalize-lgpl.c (realpath)
29873         (canonicalize_file_name): Likewise.
29874         * tests/test-ceilf1.c (ceilf): Likewise.
29875         * tests/test-ceill.c (ceill): Likewise.
29876         * tests/test-chown.c (chown): Likewise.
29877         * tests/test-dprintf-posix.c (dprintf): Likewise.
29878         * tests/test-dup2.c (dup2): Likewise.
29879         * tests/test-dup3.c (dup3): Likewise.
29880         * tests/test-duplocale.c (duplocale): Likewise.
29881         * tests/test-fchdir.c (fchdir): Likewise.
29882         * tests/test-fchownat.c (fchownat): Likewise.
29883         * tests/test-fcntl.c (fcntl): Likewise.
29884         * tests/test-fdopendir.c (fdopendir): Likewise.
29885         * tests/test-fflush.c (fflush): Likewise.
29886         * tests/test-flock.c (flock): Likewise.
29887         * tests/test-floorf1.c (floorf): Likewise.
29888         * tests/test-floorl.c (floorl): Likewise.
29889         * tests/test-fnmatch.c (fnmatch): Likewise.
29890         * tests/test-fopen.c (fopen): Likewise.
29891         * tests/test-fprintf-posix.c (fprintf): Likewise.
29892         * tests/test-freopen.c (freopen): Likewise.
29893         * tests/test-frexp.c (frexp): Likewise.
29894         * tests/test-frexpl.c (frexpl): Likewise.
29895         * tests/test-fseek.c (fseek): Likewise.
29896         * tests/test-fseeko.c (fseeko): Likewise.
29897         * tests/test-fstatat.c (fstatat): Likewise.
29898         * tests/test-fsync.c (fsync): Likewise.
29899         * tests/test-ftell.c (ftell): Likewise.
29900         * tests/test-ftello.c (ftello): Likewise.
29901         * tests/test-futimens.c (futimens): Likewise.
29902         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29903         (gai_strerror): Likewise.
29904         * tests/test-getcwd.c (getcwd): Likewise.
29905         * tests/test-getdelim.c (getdelim): Likewise.
29906         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29907         * tests/test-getgroups.c (getgroups): Likewise.
29908         * tests/test-gethostname.c (gethostname): Likewise.
29909         * tests/test-getline.c (getline): Likewise.
29910         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29911         Likewise.
29912         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29913         * tests/test-glob.c (glob, globfree): Likewise.
29914         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29915         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29916         * tests/test-inet_pton.c (inet_pton): Likewise.
29917         * tests/test-isblank.c (isblank): Likewise.
29918         * tests/test-lchown.c (lchown): Likewise.
29919         * tests/test-ldexpl.c (ldexpl): Likewise.
29920         * tests/test-link.c (link): Likewise.
29921         * tests/test-linkat.c (linkat): Likewise.
29922         * tests/test-lseek.c (lseek): Likewise.
29923         * tests/test-lstat.c (lstat): Likewise.
29924         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29925         * tests/test-mbsinit.c (mbsinit): Likewise.
29926         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29927         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29928         * tests/test-memchr.c (memchr): Likewise.
29929         * tests/test-memcmp.c (memcmp): Likewise.
29930         * tests/test-memmem.c (memmem): Likewise.
29931         * tests/test-memrchr.c (memrchr): Likewise.
29932         * tests/test-mkdir.c (mkdir): Likewise.
29933         * tests/test-mkdirat.c (mkdirat): Likewise.
29934         * tests/test-mkfifo.c (mkfifo): Likewise.
29935         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29936         * tests/test-mknod.c (mknod): Likewise.
29937         * tests/test-nanosleep.c (nanosleep): Likewise.
29938         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29939         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29940         Likewise.
29941         * tests/test-open.c (open): Likewise.
29942         * tests/test-openat.c (openat): Likewise.
29943         * tests/test-perror.c (perror): Likewise.
29944         * tests/test-pipe2.c (pipe2): Likewise.
29945         * tests/test-poll.c (poll): Likewise.
29946         * tests/test-popen.c (popen, pclose): Likewise.
29947         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29948         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29949         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29950         (posix_spawn_file_actions_destroy)
29951         (posix_spawn_file_actions_addclose)
29952         (posix_spawn_file_actions_addopen)
29953         (posix_spawn_file_actions_adddup2): Likewise.
29954         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29955         * tests/test-pread.c (pread): Likewise.
29956         * tests/test-printf-posix.c (printf): Likewise.
29957         * tests/test-pty.c (openpty, forkpty): Likewise.
29958         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29959         (random_r): Likewise.
29960         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29961         * tests/test-readlink.c (readlink): Likewise.
29962         * tests/test-remove.c (remove): Likewise.
29963         * tests/test-rename.c (rename): Likewise.
29964         * tests/test-renameat.c (renameat): Likewise.
29965         * tests/test-rmdir.c (rmdir): Likewise.
29966         * tests/test-round1.c (round): Likewise.
29967         * tests/test-roundf1.c (roundf): Likewise.
29968         * tests/test-roundl.c (roundl): Likewise.
29969         * tests/test-setenv.c (setenv): Likewise.
29970         * tests/test-sigaction.c (sigaction): Likewise.
29971         * tests/test-sleep.c (sleep): Likewise.
29972         * tests/test-snprintf.c (snprintf): Likewise.
29973         * tests/test-sprintf-posix.c (sprintf): Likewise.
29974         * tests/test-stat.c (stat): Likewise.
29975         * tests/test-stpncpy.c (stpncpy): Likewise.
29976         * tests/test-strcasestr.c (strcasestr): Likewise.
29977         * tests/test-strchrnul.c (strchrnul): Likewise.
29978         * tests/test-strerror.c (strerror): Likewise.
29979         * tests/test-strsignal.c (strsignal): Likewise.
29980         * tests/test-strstr.c (strstr): Likewise.
29981         * tests/test-strtod.c (strtod): Likewise.
29982         * tests/test-strverscmp.c (strverscmp): Likewise.
29983         * tests/test-symlink.c (symlink): Likewise.
29984         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29985         * tests/test-times.c (times): Likewise.
29986         * tests/test-trunc1.c (trunc): Likewise.
29987         * tests/test-truncf1.c (truncf): Likewise.
29988         * tests/test-truncl.c (truncl): Likewise.
29989         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29990         Likewise.
29991         * tests/test-uname.c (uname): Likewise.
29992         * tests/test-unlink.c (unlink): Likewise.
29993         * tests/test-unlinkat.c (unlinkat): Likewise.
29994         * tests/test-unsetenv.c (unsetenv): Likewise.
29995         * tests/test-usleep.c (usleep): Likewise.
29996         * tests/test-utimensat.c (utimensat): Likewise.
29997         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29998         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29999         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30000         * tests/test-vprintf-posix.c (vprintf): Likewise.
30001         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30002         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30003         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30004         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30005         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30006         * tests/test-wcwidth.c (wcwidth): Likewise.
30007
30008         build: pull in conditional headers during GNULIB_POSIXCHECK
30009         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30010         definitions from any conditionally-included headers.
30011         * lib/stdlib.in.h (includes): Likewise.
30012         * lib/unistd.in.h (includes): Likewise.
30013
30014 2009-12-24  Bruno Haible  <bruno@clisp.org>
30015
30016         * tests/test-argv-iter.c: Include header file being tested immediately
30017         after config.h.
30018         * tests/test-base64.c: Likewise.
30019         * tests/test-flock.c: Likewise.
30020         * tests/test-fsync.c: Likewise.
30021         * tests/test-getdate.c: Likewise.
30022         * tests/test-getndelim2.c: Likewise.
30023         * tests/test-isfinite.c: Likewise.
30024         * tests/test-isinf.c: Likewise.
30025         * tests/test-strerror.c: Likewise.
30026         * tests/test-strsignal.c: Likewise.
30027
30028 2009-12-23  Eric Blake  <ebb9@byu.net>
30029
30030         unistd: work around cygwin bug
30031         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30032         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30033         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30034
30035 2009-12-23  Bruno Haible  <bruno@clisp.org>
30036
30037         localename: More tests.
30038         * tests/test-localename.c (SIZEOF): New macro.
30039         (categories): New variable.
30040         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30041         test_locale_name_default): Add test w.r.t. thread locale.
30042         (test_locale_name_thread): New function.
30043         (main): Invoke it.
30044
30045         localename: Make aware of thread locale.
30046         * lib/localename.h (gl_locale_name_thread): New declaration.
30047         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30048         behaviour with respect to thread locale.
30049         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30050         <langinfo.h>, glthread/lock.h.
30051         (SIZE_BITS): New macro.
30052         (string_hash): New function.
30053         (struct hash_node): New type.
30054         (HASH_TABLE_SIZE): New macro.
30055         (struniq_hash_table, struniq_lock): New variables.
30056         (struniq): New function.
30057         (gl_locale_name_thread): New function.
30058         (gl_locale_name): Invoke it.
30059         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30060         * modules/localename (Depends-on): Add lock.
30061         Reported by Mike Gran <spk121@yahoo.com>.
30062
30063 2009-12-23  Eric Blake  <ebb9@byu.net>
30064
30065         va-args: new module
30066         * modules/va-args: New file.
30067         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30068         * MODULES.html.sh (Core language properties): Mention it.
30069
30070         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30071         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30072         named alias for __attribute__((__unused__)).
30073         * lib/chown.c: Update client.
30074         * lib/fchmodat.c: Likewise.
30075         * lib/fts.c: Likewise.
30076         * lib/getdate.y: Likewise.
30077         * lib/getgroups.c: Likewise.
30078         * lib/getopt.c: Likewise.
30079         * lib/getugroups.c: Likewise.
30080         * lib/mkdir.c: Likewise.
30081         * lib/mkfifo.c: Likewise.
30082         * lib/mkfifoat.c: Likewise.
30083         * lib/mknod.c: Likewise.
30084         * lib/mknodat.c: Likewise.
30085         * lib/readlink.c: Likewise.
30086         * lib/se-context.in.h: Likewise.
30087         * lib/se-selinux.in.h: Likewise.
30088         * lib/sockets.c: Likewise.
30089         * lib/symlink.c: Likewise.
30090         * lib/symlinkat.c: Likewise.
30091         * lib/unicodeio.c: Likewise.
30092         * lib/unistr.h: Likewise.
30093         * tests/test-areadlink.c: Likewise.
30094         * tests/test-areadlinkat.c: Likewise.
30095         * tests/test-filenamecat.c: Likewise.
30096         * tests/test-fseeko.c: Likewise.
30097         * tests/test-ftello.c: Likewise.
30098         * tests/test-getdate.c: Likewise.
30099         * tests/test-getgroups.c: Likewise.
30100         * tests/test-gethostname.c: Likewise.
30101         * tests/test-quotearg.c: Likewise.
30102         * tests/test-version-etc.c: Likewise.
30103         * tests/test-xalloc-die.c: Likewise.
30104         * tests/test-xfprintf-posix.c: Likewise.
30105         * tests/test-xprintf-posix.c: Likewise.
30106         * tests/test-xvasprintf.c: Likewise.
30107
30108         tests: avoid compiler warnings
30109         * tests/test-fcntl.c (main): Delete unused parameters.
30110         * tests/test-freopen-safer.c (main): Likewise.
30111         * tests/test-xalloc-die.c (main): Mark unused parameters.
30112         * tests/test-fseeko.c (main): Likewise.
30113         * tests/test-ftello.c (main): Likewise.
30114         * tests/test-nanosleep.c (main): Avoid declaration warning.
30115         * tests/test-sleep.c (main): Likewise.
30116         * tests/test-unsetenv.c (main): Silence warning about string
30117         literal.
30118         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30119
30120 2009-12-23  Bruno Haible  <bruno@clisp.org>
30121
30122         * tests/test-localename.c (test_locale_name): New function, extracted
30123         from main. Also test mixed situations.
30124         (test_locale_name_posix, test_locale_name_environ,
30125         test_locale_name_default): New functions.
30126         (main): Invoke them all.
30127         * modules/localename-tests (configure.ac): Test for newlocale.
30128
30129 2009-12-23  Bruno Haible  <bruno@clisp.org>
30130
30131         unistd: Ensure getcwd gets declared before being overridden.
30132         * lib/unistd.in.h: Conditionally include <io.h>.
30133
30134 2009-12-22  Bruno Haible  <bruno@clisp.org>
30135
30136         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30137         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30138         (gl_WCHAR_H): Invoke it.
30139         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30140         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30141         Reported by Karl Berry <karl@freefriends.org>.
30142
30143 2009-12-22  Eric Blake  <ebb9@byu.net>
30144
30145         math, unistd: avoid redundant includes
30146         * lib/math.in.h (isnan): No need to re-include <math.h>.
30147         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30148
30149         getsubopt: work around cygwin bug
30150         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30151         avoid conflicting with system getsubopt.
30152         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30153         bug.
30154
30155         getopt: synchronize from glibc
30156         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30157         parameter order.  Adjust all callers.
30158         (_getopt_internal_r, main): Adjust quoting in error messages.
30159         Drop considerations for outdated POSIX 1003.2 error message.
30160         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30161         callers.
30162         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30163
30164         test-getopt: test stderr behavior
30165         * modules/getopt-posix-tests (Depends-on): Add dup2.
30166         * tests/test-getopt.c (ASSERT): Avoid stderr.
30167         (main): Move stderr to a temporary file.
30168         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30169         Instead, add parameter to inform caller if output occurred.
30170         (test_getopt): Adjust all existing tests to expect silence, and
30171         add new tests of leading ":".
30172         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30173         glibc shortcomings with leading "-:" or "+:" in optstring.
30174         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30175         Likewise.
30176         * doc/posix-functions/getopt.texi (getopt): Likewise.
30177
30178         test-getopt: enhance test
30179         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30180         supports optind=0.
30181         * tests/test-getopt.c (OPTIND_MIN): Move...
30182         * tests/test-getopt.h (OPTIND_MIN): ...here.
30183         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30184         Require that optind=0 works, since modern BSD supports it in
30185         addition to optreset, and since coreutils expects it.
30186         (test_getopt_long_only): New test.
30187         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30188         glibc shortcomings with 'W;', and enforcement of optind=0.
30189         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30190         Likewise.
30191
30192 2009-12-21  Bruno Haible  <bruno@clisp.org>
30193
30194         localename: Improvements for MacOS X and Cygwin.
30195         * lib/localename.h (gl_locale_name_environ): New declaration.
30196         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30197         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30198         (gl_locale_name_posix): Invoke it.
30199         (gl_locale_name_default): Add comments. Use Windows native API also on
30200         Cygwin.
30201
30202 2009-12-21  Bruno Haible  <bruno@clisp.org>
30203
30204         Update list of Win32 locale ids.
30205         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30206         (LANG_SAMI): Renamed from LANG_SAAMI.
30207         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30208         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30209         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30210         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30211         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30212         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30213         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30214         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30215         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30216         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30217         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30218         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30219         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30220         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30221         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30222         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30223         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30224         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30225         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30226         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30227         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30228         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30229         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30230         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30231         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30232         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30233         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30234         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30235         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30236         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30237         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30238         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30239         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30240         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30241         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30242         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30243         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30244         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30245         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30246         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30247         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30248         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30249         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30250         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30251         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30252         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30253         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30254         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30255         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30256         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30257         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30258         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30259         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30260         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30261         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30262         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30263         Add more languages and countries for Sami, Sorbian. Add more countries
30264         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30265         for Pashto. Change country for Syriac, Tswana.
30266
30267 2009-12-21  Eric Blake  <ebb9@byu.net>
30268
30269         test-utimens: avoid spurious failure
30270         * tests/test-chown.h (nap): Factor...
30271         * tests/nap.h: ...into new file.
30272         * tests/test-lchown.h (nap): Avoid duplication.
30273         * tests/test-utimens-common.h (nap): Use shared implementation,
30274         necessary on file systems with 1-second resolution.
30275         * modules/chown-tests (Files): Include new file.
30276         * modules/fdutimensat-tests (Files): Likewise.
30277         * modules/futimens-tests (Files): Likewise.
30278         * modules/lchown-tests (Files): Likewise.
30279         * modules/openat-tests (Files): Likewise.
30280         * modules/utimens-tests (Files): Likewise.
30281         * modules/utimensat-tests (Files): Likewise.
30282
30283 2009-12-19  Eric Blake  <ebb9@byu.net>
30284
30285         futimens, utimensat: work around Linux bug
30286         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30287         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30288         * lib/utimensat.c (rpl_utimensat): Work around it.
30289         * lib/futimens.c (rpl_futimens): Adjust comment.
30290
30291         utimens: work around Linux ctime bug
30292         * lib/utimens.c (detect_ctime_bug): New helper function.
30293         (update_timespec): Differentiate between workaround needed for
30294         this bug vs. what is needed for systems that lack utimensat.
30295         (fdutimens, lutimens): Work around bug.
30296
30297         utimens: check for ctime update
30298         * tests/test-utimens-common.h (check_ctime): Define.
30299         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30300         * tests/test-futimens.h (test_futimens): Likewise.
30301         * tests/test-lutimens.h (test_lutimens): Likewise.
30302         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30303         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30304
30305 2009-12-19  Bruno Haible  <bruno@clisp.org>
30306
30307         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30308         * tests/test-dprintf-posix2.sh: New file.
30309         * tests/test-dprintf-posix2.c: New file.
30310         * modules/dprintf-posix-tests (Files): Add them.
30311         (configure.ac): Check for getrlimit and setrlimit.
30312         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30313
30314 2009-12-19  Bruno Haible  <bruno@clisp.org>
30315
30316         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30317         * tests/test-fprintf-posix3.sh: New file.
30318         * tests/test-fprintf-posix3.c: New file.
30319         * modules/fprintf-posix-tests (Files): Add them.
30320         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30321
30322 2009-12-19  Eric Blake  <ebb9@byu.net>
30323
30324         dirfd: fix prototype
30325         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30326         * lib/dirfd.c (dirfd): Likewise.
30327
30328         canonicalize: reduce memory usage
30329         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30330         allocation to size.
30331         Reported by Solar Designer <solar@openwall.com>.
30332
30333 2009-12-19  Bruno Haible  <bruno@clisp.org>
30334
30335         New module attribute 'Applicability'.
30336         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30337         * gnulib-tool: New option --extract-applicability.
30338         (func_usage): Document it.
30339         (sed_extract_prog): Recognize it.
30340         (func_get_applicability): New function.
30341         (func_import): Generalize handling of 'link-warning' module.
30342         * modules/link-warning (Applicability): New section.
30343         * modules/arg-nonnull (Applicability): New section.
30344         Repoted by Simon Josefsson <simon@josefsson.org>.
30345
30346 2009-12-19  Bruno Haible  <bruno@clisp.org>
30347
30348         fflush: tweak
30349         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30350         * lib/fseeko.c (rpl_fseeko): Likewise.
30351
30352 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30353
30354         * lib/gl_list.h: Fix typo in comment.
30355
30356 2009-12-16  Eric Blake  <ebb9@byu.net>
30357
30358         fcntl: use to simplify other modules
30359         * modules/cloexec (Depends-on): Add fcntl.
30360         * modules/fchdir (Depends-on): Likewise.
30361         * modules/fd-safer-flag (Depends-on): Likewise.
30362         * modules/unistd-safer (Depends-on): Likewise.
30363         * modules/dup3 (configure.ac): Set module indicator.
30364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30365         missing.
30366         * lib/fchdir.c (_gl_register_dup): Fix comment.
30367         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30368         * lib/dup-safer.c (dup_safer): Likewise.
30369         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30370         * lib/dup3.c (dup3): Likewise.
30371         * tests/test-fchdir.c (main): Enhance test.
30372         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30373
30374         fcntl: port portions of fcntl to mingw
30375         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30376         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30377         replacement for mingw.
30378         * modules/fcntl (Description): Update.
30379         (Depends-on): Add dup2.
30380         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30381         * modules/fcntl-h (Makefile.am): Substitute it.
30382         * lib/fcntl.in.h (fcntl): Update declaration.
30383         (F_DUPFD, F_GETFD): New macros, when needed.
30384         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30385         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30386         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30387         we now guarantee.
30388
30389         fcntl: work around cygwin bug in F_DUPFD
30390         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30391         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30392         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30393         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30394         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30395
30396         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30397         * modules/fcntl (Files): List new files.
30398         (configure.ac): Run a test.
30399         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30400         * lib/fcntl.c (rpl_fcntl): Likewise.
30401         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30402         (gl_FCNTL_H): Always replace fcntl.h.
30403         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30404         * lib/fcntl.in.h (fcntl): Declare replacement.
30405         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30406         needed, plus a witness.
30407         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30408         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30409         * tests/test-fcntl.c: New file.
30410         * modules/fcntl-tests: Likewise.
30411
30412         binary-io: avoid potential compilation warning
30413         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30414         directives.
30415
30416         fflush: avoid compilation error on NetBSD
30417         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30418         between off_t and fpos_t, since the latter is sometimes a struct.
30419         * lib/fseeko.c (rpl_fseeko): Likewise.
30420         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30421
30422 2009-12-15  Eric Blake  <ebb9@byu.net>
30423
30424         fcntl-h, stdio, sys_ioctl: fix declarations
30425         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30426         function must not take arguments.
30427         * lib/sys_ioctl.in.h (ioctl): Likewise.
30428         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30429         (open): Add a link warning.
30430
30431 2009-12-15  Jim Meyering  <meyering@redhat.com>
30432
30433         areadlink, areadlink-with-size: relax license to LGPLv2+
30434         * modules/areadlink (License): Relax to LGPLv2+.
30435         * modules/areadlink-with-size (License): Likewise.
30436
30437 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30438             Bruno Haible  <bruno@clisp.org>
30439
30440         *printf: Fix memory leak.
30441         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30442         * lib/vfprintf.c (vfprintf): Likewise.
30443         * lib/dprintf.c (dprintf): Likewise.
30444         * lib/vdprintf.c (vdprintf): Likewise.
30445
30446 2009-12-14  Eric Blake  <ebb9@byu.net>
30447
30448         accept4: adjust module dependencies
30449         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30450
30451         utimens: one more try at avoiding compiler warning
30452         * lib/utimens.c (lutimens): Lower scope of result.
30453
30454 2009-12-13  Bruno Haible  <bruno@clisp.org>
30455
30456         Move the malloc checking from module 'list' to new module 'xlist'.
30457         * modules/xlist: New file.
30458         * lib/gl_xlist.h: New file.
30459         * lib/gl_xlist.c: New file.
30460         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30461         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30462         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30463         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30464         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30465         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30466         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30467         gl_sortedlist_nx_add): New declarations.
30468         (struct gl_list_implementation): Rename and change methods accordingly.
30469         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30470         (gl_list_nx_create): Renamed from gl_list_create.
30471         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30472         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30473         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30474         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30475         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30476         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30477         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30478         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30479         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30480         gl_list_create_empty.
30481         (gl_list_nx_create): Renamed from gl_list_create.
30482         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30483         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30484         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30485         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30486         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30487         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30488         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30489         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30490         * lib/gl_array_list.c: Don't include xalloc.h.
30491         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30492         NULL upon out-of-memory.
30493         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30494         out-of-memory.
30495         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30496         Change return type to 'int'.
30497         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30498         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30499         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30500         upon out-of-memory.
30501         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30502         upon out-of-memory.
30503         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30504         upon out-of-memory.
30505         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30506         upon out-of-memory.
30507         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30508         out-of-memory.
30509         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30510         Update.
30511         (gl_array_list_implementation): Update.
30512         * lib/gl_carray_list.c: Don't include xalloc.h.
30513         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30514         Return NULL upon out-of-memory.
30515         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30516         out-of-memory.
30517         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30518         Change return type to 'int'.
30519         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30520         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30521         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30522         upon out-of-memory.
30523         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30524         upon out-of-memory.
30525         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30526         out-of-memory.
30527         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30528         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30529         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30530         Update.
30531         (gl_carray_list_implementation): Update.
30532         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30533         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30534         gl_linked_create_empty. Return NULL upon out-of-memory.
30535         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30536         out-of-memory.
30537         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30538         Change return type to 'int'. Return -1 upon out-of-memory.
30539         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30540         out-of-memory.
30541         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30542         upon out-of-memory.
30543         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30544         upon out-of-memory.
30545         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30546         NULL upon out-of-memory.
30547         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30548         upon out-of-memory.
30549         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30550         out-of-memory.
30551         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30552         Update.
30553         * lib/gl_linked_list.c: Don't include xalloc.h.
30554         (gl_linked_list_implementation): Update.
30555         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30556         (add_to_bucket): Change return type to 'int'.
30557         (gl_linkedhash_list_implementation): Update.
30558         * lib/gl_anytree_list1.h (free_subtree): New function.
30559         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30560         gl_tree_create_empty. Return NULL upon out-of-memory.
30561         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30562         Change return type to 'int'. Return -1 upon out-of-memory.
30563         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30564         out-of-memory.
30565         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30566         (gl_tree_remove_node): New function, moved here from
30567         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30568         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30569         Update.
30570         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30571         malloc, not xmalloc. Return NULL upon out-of-memory.
30572         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30573         out-of-memory.
30574         (gl_tree_remove_node_from_tree): New function, extracted from
30575         gl_tree_remove_node.
30576         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30577         upon out-of-memory.
30578         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30579         out-of-memory.
30580         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30581         upon out-of-memory.
30582         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30583         upon out-of-memory.
30584         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30585         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30586         not xmalloc. Return NULL upon out-of-memory.
30587         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30588         out-of-memory.
30589         (gl_tree_remove_node_from_tree): New function, extracted from
30590         gl_tree_remove_node.
30591         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30592         upon out-of-memory.
30593         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30594         out-of-memory.
30595         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30596         upon out-of-memory.
30597         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30598         upon out-of-memory.
30599         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30600         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30601         gl_anytree_list1.h before gl_anyavltree_list2.h.
30602         (gl_avltree_list_implementation): Update.
30603         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30604         gl_anytree_list1.h before gl_anyavltree_list2.h.
30605         (gl_rbtree_list_implementation): Update.
30606         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30607         Change return type to 'int'. Return -1 upon out-of-memory. Use
30608         __builtin_expect.
30609         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30610         (gl_avltreehash_list_implementation): Update.
30611         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30612         (gl_rbtreehash_list_implementation): Update.
30613         * modules/array-list (Depends-on): Remove xalloc.
30614         * modules/carray-list (Depends-on): Likewise.
30615         * modules/linked-list (Depends-on): Likewise.
30616         * modules/linkedhash-list (Depends-on): Likewise.
30617         * modules/avltree-list (Depends-on): Likewise.
30618         * modules/rbtree-list (Depends-on): Likewise.
30619         * modules/avltreehash-list (Depends-on): Likewise.
30620         * modules/rbtreehash-list (Depends-on): Likewise.
30621
30622         * modules/xsublist: New file.
30623         * lib/gl_xsublist.h: New file.
30624         * lib/gl_xsublist.c: New file.
30625         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30626         (gl_sublist_nx_create): New declaration.
30627         * lib/gl_sublist.c: Don't include xalloc.h.
30628         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30629         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30630         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30631         Change return type to 'int'. Return -1 upon out-of-memory.
30632         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30633         upon out-of-memory.
30634         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30635         NULL upon out-of-memory.
30636         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30637         upon out-of-memory.
30638         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30639         NULL upon out-of-memory.
30640         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30641         NULL upon out-of-memory.
30642         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30643         upon out-of-memory.
30644         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30645         (gl_sublist_list_implementation): Update.
30646         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30647         upon out-of-memory.
30648         * modules/sublist (Depends-on): Remove xalloc.
30649
30650         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30651         * tests/test-carray_list.c: Likewise.
30652         * tests/test-linked_list.c: Likewise.
30653         * tests/test-linkedhash_list.c: Likewise.
30654         * tests/test-avltree_list.c: Likewise.
30655         * tests/test-rbtree_list.c: Likewise.
30656         * tests/test-avltreehash_list.c: Likewise.
30657         * tests/test-rbtreehash_list.c: Likewise.
30658         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30659         * modules/carray-list-tests (Makefile.am): Likewise.
30660         * modules/linked-list-tests (Makefile.am): Likewise.
30661         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30662         * modules/avltree-list-tests (Makefile.am): Likewise.
30663         * modules/rbtree-list-tests (Makefile.am): Likewise.
30664         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30665         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30666
30667         * NEWS: Mention the changes.
30668
30669         * lib/clean-temp.c: Include gl_xlist.h.
30670         * modules/clean-temp (Depends-on): Add xlist.
30671
30672         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30673         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30674
30675         * tests/test-array_oset.c: Include gl_xlist.h.
30676         * modules/array-oset-tests (Depends-on): Add xlist.
30677
30678         Reported by José E. Marchesi <jemarch@gnu.org>.
30679
30680 2009-12-13  Bruno Haible  <bruno@clisp.org>
30681
30682         Move the malloc checking from module 'oset' to new module 'xoset'.
30683         * modules/xoset: New file.
30684         * lib/gl_xoset.h: New file.
30685         * lib/gl_xoset.c: New file.
30686         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30687         declarations.
30688         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30689         (struct gl_oset_implementation): Rename and change methods accordingly.
30690         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30691         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30692         'int'. Mark as __warn_unused_result__.
30693         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30694         gl_oset_create_empty.
30695         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30696         'int'.
30697         * lib/gl_array_oset.c: Don't include xalloc.h.
30698         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30699         malloc, not xmalloc.
30700         (grow): Change return type to 'int'. Don't call xalloc_die.
30701         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30702         to 'int'.
30703         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30704         'int'.
30705         (gl_array_oset_implementation): Update.
30706         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30707         gl_tree_create_empty.
30708         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30709         'int'.
30710         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30711         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30712         xmalloc.
30713         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30714         not xmalloc.
30715         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30716         xmalloc.
30717         (gl_avltree_oset_implementation): Update.
30718         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30719         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30720         xmalloc.
30721         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30722         not xmalloc.
30723         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30724         xmalloc.
30725         (gl_rbtree_oset_implementation): Update.
30726         * modules/array-oset (Depends-on): Remove xalloc.
30727         * modules/avltree-oset (Depends-on): Likewise.
30728         * modules/rbtree-oset (Depends-on): Likewise.
30729         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30730         * tests/test-avltree_oset.c: Likewise.
30731         * tests/test-rbtree_oset.c: Likewise.
30732         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30733         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30734         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30735         * NEWS: Mention the change.
30736
30737 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30738
30739         maint.mk: allow a project to override release-prep commands
30740         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30741         commands into a new rule.
30742         (release-prep): New rule.
30743         (release-prep-hook): New overridable variable.
30744
30745 2009-12-13  Bruno Haible  <bruno@clisp.org>
30746
30747         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30748
30749 2009-12-13  Jim Meyering  <meyering@redhat.com>
30750
30751         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30752         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30753
30754 2009-12-12  Bruno Haible  <bruno@clisp.org>
30755
30756         duplocale: Tweak.
30757         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30758
30759 2009-12-12  Karl Berry  <karl@gnu.org>
30760
30761         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30762
30763 2009-12-12  Bruno Haible  <bruno@clisp.org>
30764
30765         * m4/po.m4: Undo incorrect untabification.
30766
30767 2009-12-12  Bruno Haible  <bruno@clisp.org>
30768
30769         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30770         * modules/c-strtod (Depends-on): Add locale.
30771         * modules/c-strtold (Depends-on): Likewise.
30772
30773 2009-12-12  Bruno Haible  <bruno@clisp.org>
30774
30775         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30776
30777 2009-12-11  Eric Blake  <ebb9@byu.net>
30778
30779         setenv: relax requirement in light of POSIX ruling
30780         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30781         not NULL.
30782         * tests/test-setenv.c (main): Relax test.
30783         * tests/test-unsetenv.c (main): Likewise.
30784         * doc/posix-functions/setenv.texi (setenv): Document this.
30785         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30786
30787 2009-12-11  Bruno Haible  <bruno@clisp.org>
30788
30789         New module 'fd-safer-flag'.
30790         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30791         * lib/dup-safer.c (dup_safer_flag): Remove function.
30792         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30793         * lib/fd-safer.c (fd_safer_flag): Remove function.
30794         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30795         * modules/cloexec (configure.ac): Drop indicator macro.
30796         * modules/fd-safer-flag: New file.
30797         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30798         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30799         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30800
30801 2009-12-11  Bruno Haible  <bruno@clisp.org>
30802
30803         Tests for module 'nl_langinfo'.
30804         * modules/nl_langinfo-tests: New file.
30805         * tests/test-nl_langinfo.sh: New file.
30806         * tests/test-nl_langinfo.c: New file.
30807
30808         New module 'nl_langinfo'.
30809         * lib/nl_langinfo.c: New file.
30810         * m4/nl_langinfo.m4: New file.
30811         * modules/nl_langinfo: New file.
30812         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30813
30814 2009-12-11  Bruno Haible  <bruno@clisp.org>
30815
30816         Tests for module 'langinfo'.
30817         * modules/langinfo-tests: New file.
30818         * tests/test-langinfo.c: New file.
30819
30820         New module 'langinfo'.
30821         * lib/langinfo.in.h: New file.
30822         * m4/langinfo_h.m4: New file.
30823         * modules/langinfo: New file.
30824         * doc/posix-headers/langinfo.texi: Mention the new module.
30825
30826 2009-12-11  Bruno Haible  <bruno@clisp.org>
30827
30828         * lib/config.charset: Untabify.
30829
30830 2009-12-11  Bruno Haible  <bruno@clisp.org>
30831
30832         * modules/unistd-safer (configure.ac): Drop indicator macro.
30833
30834 2009-12-11  Bruno Haible  <bruno@clisp.org>
30835
30836         Move pipe2-safer code to its own file.
30837         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30838         * lib/pipe-safer.c (pipe2_safer): Remove function.
30839         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30840         (Makefile.am): Add it to lib_SOURCES.
30841
30842 2009-12-10  Bruno Haible  <bruno@clisp.org>
30843
30844         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30845
30846 2009-12-10  Bruno Haible  <bruno@clisp.org>
30847
30848         Declare which arguments expect non-NULL values, for GCC and clang.
30849         * build-aux/arg-nonnull.h: New file.
30850         * modules/arg-nonnull: New file.
30851         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30852         (inet_ntop, inet_pton): Use it.
30853         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30854         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30855         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30856         (open, openat): Use it.
30857         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30858         (fnmatch): Use it.
30859         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30860         (getopt, getopt_long, getopt_long_only): Use it.
30861         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30862         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30863         Use it.
30864         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30865         (iconv_open): Use it.
30866         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30867         (strtoimax, strtoumax): Use it.
30868         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30869         (duplocale): Use it.
30870         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30871         (frexp, frexpl): Use it.
30872         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30873         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30874         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30875         (tsearch, tfind, tdelete, twalk): Use it.
30876         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30877         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30878         sigpending): Use it.
30879         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30880         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30881         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30882         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30883         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30884         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30885         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30886         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30887         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30888         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30889         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30890         Use it.
30891         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30892         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30893         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30894         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30895         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30896         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30897         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30898         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30899         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30900         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30901         strtoull, unsetenv): Use it.
30902         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30903         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30904         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30905         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30906         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30907         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30908         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30909         (strcasecmp, strncasecmp): Use it.
30910         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30911         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30912         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30913         rpl_setsockopt): Use it.
30914         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30915         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30916         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30917         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30918         (gettimeofday): Use it.
30919         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30920         (times): Use it.
30921         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30922         (uname): Use it.
30923         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30924         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30925         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30926         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30927         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30928         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30929         unlinkat, write): Use it.
30930         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30931         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30932         * lib/argv-iter.h: Include arg-nonnull.h.
30933         (_ATTRIBUTE_NONNULL_): Remove macro.
30934         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30935         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30936         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30937         optimization.
30938         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30939         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30940         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30941         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30942         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30943         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30944         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30945         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30946         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30947         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30948         * modules/dirent (Depends-on): Add arg-nonnull.
30949         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30950         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30951         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30952         * modules/fnmatch (Depends-on): Add arg-nonnull.
30953         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30954         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30955         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30956         * modules/glob (Depends-on): Add arg-nonnull.
30957         (Makefile.am): Insert arg-nonnull.h into glob.h.
30958         * modules/iconv_open (Depends-on): Add arg-nonnull.
30959         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30960         * modules/inttypes (Depends-on): Add arg-nonnull.
30961         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30962         * modules/locale (Depends-on): Add arg-nonnull.
30963         (Makefile.am): Insert arg-nonnull.h into locale.h.
30964         * modules/math (Depends-on): Add arg-nonnull.
30965         (Makefile.am): Insert arg-nonnull.h into math.h.
30966         * modules/netdb (Depends-on): Add arg-nonnull.
30967         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30968         * modules/search (Depends-on): Add arg-nonnull.
30969         (Makefile.am): Insert arg-nonnull.h into search.h.
30970         * modules/signal (Depends-on): Add arg-nonnull.
30971         (Makefile.am): Insert arg-nonnull.h into signal.h.
30972         * modules/spawn (Depends-on): Add arg-nonnull.
30973         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30974         * modules/stdio (Depends-on): Add arg-nonnull.
30975         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30976         * modules/stdlib (Depends-on): Add arg-nonnull.
30977         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30978         * modules/string (Depends-on): Add arg-nonnull.
30979         (Makefile.am): Insert arg-nonnull.h into string.h.
30980         * modules/strings (Depends-on): Add arg-nonnull.
30981         (Makefile.am): Insert arg-nonnull.h into strings.h.
30982         * modules/sys_socket (Depends-on): Add arg-nonnull.
30983         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30984         * modules/sys_stat (Depends-on): Add arg-nonnull.
30985         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30986         * modules/sys_time (Depends-on): Add arg-nonnull.
30987         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30988         * modules/sys_times (Depends-on): Add arg-nonnull.
30989         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30990         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30991         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30992         * modules/time (Depends-on): Add arg-nonnull.
30993         (Makefile.am): Insert arg-nonnull.h into time.h.
30994         * modules/unistd (Depends-on): Add arg-nonnull.
30995         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30996         * modules/wchar (Depends-on): Add arg-nonnull.
30997         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30998         * modules/argv-iter (Depends-on): Add arg-nonnull.
30999         * tests/test-canonicalize.c (null_ptr): New function.
31000         (main): Use it.
31001         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31002         (main): Use it.
31003         * tests/test-memmem.c (null_ptr): New function.
31004         (main): Use it.
31005         Reported by Jim Meyering.
31006
31007 2009-12-10  Bruno Haible  <bruno@clisp.org>
31008
31009         Use spaces for indentation, not tabs.
31010         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31011         * m4/*.m4: Untabify.
31012         * build-aux/*.h: Untabify.
31013         * tests/**/*.[hc]: Untabify.
31014         * README: New section "Indent with spaces, not TABs", based on
31015         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31016         * NEWS: Mention the change.
31017
31018 2009-12-10  Bruno Haible  <bruno@clisp.org>
31019
31020         pty test: Fix link error.
31021         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31022         test_pty_LDADD.
31023
31024 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31025
31026         * modules/pty: New file.
31027         * modules/pty-tests: New file.
31028         * m4/pty.m4: New file.
31029         * tests/test-pty.c: New file.
31030         * doc/glibc-headers/pty.texi: Modified.
31031         * doc/glibc-functions/forkpty.texi: Modified.
31032         * doc/glibc-functions/openpty.texi: Modified.
31033
31034 2009-12-10  Bruno Haible  <bruno@clisp.org>
31035
31036         Avoid syntax error in C++ mode.
31037         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31038
31039 2009-12-10  Bruno Haible  <bruno@clisp.org>
31040
31041         Use sed with option -e.
31042         * gnulib-tool (func_version, func_emit_copyright_notice,
31043         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31044         option -e to sed.
31045         * modules/link-warning (Makefile.am): Likewise.
31046
31047 2009-12-10  Jim Meyering  <meyering@redhat.com>
31048
31049         mgetgroups: do not write bytes beyond end of malloc'd buffer
31050         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31051         username, we call getgroups with a one-element-shorter buffer,
31052         but still told it the length was original, max_n_groups.
31053
31054 2009-12-09  Eric Blake  <ebb9@byu.net>
31055
31056         cloexec: relax license
31057         * modules/cloexec (Maintainer): Add myself.
31058         (License): Use LGPL, not GPL.
31059
31060         link-warning: optimize generation
31061         * modules/link-warning (Makefile.am): Reduce process usage.
31062
31063 2009-12-09  Bruno Haible  <bruno@clisp.org>
31064
31065         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31066         workaround was added on 2009-11-17.
31067
31068 2009-12-09  Jim Meyering  <meyering@redhat.com>
31069             Bruno Haible  <bruno@clisp.org>
31070
31071         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31072         * modules/link-warning (Makefile.am): Make the comment-removing sed
31073         command more robust in the face of bootstrap-prepended comment lines.
31074
31075 2009-12-09  Bruno Haible  <bruno@clisp.org>
31076
31077         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31078         most one group.
31079
31080 2009-12-09  Simon Josefsson <simon@josefsson.org>
31081             Bruno Haible  <bruno@clisp.org>
31082
31083         * build-aux/link-warning.h: Add copyright notice.
31084         * modules/link-warning (Makefile.am): Generate link-warning.h from
31085         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31086         * NEWS: Mention change in link-warning module.
31087         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31088         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31089         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31090         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31091         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31092         * modules/math (Makefile.am): Add dependency to math.h.
31093         * modules/search (Makefile.am): Add dependency to search.h.
31094         * modules/signal (Makefile.am): Add dependency to signal.h.
31095         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31096         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31097         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31098         * modules/string (Makefile.am): Add dependency to string.h.
31099         * modules/strings (Makefile.am): Add dependency to strings.h.
31100         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31101         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31102         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31103         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31104         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31105         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31106         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31107         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31108         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31109
31110 2009-12-09  Bruno Haible  <bruno@clisp.org>
31111
31112         fchdir: Optimize away rpl_fstat when possible.
31113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31114         REPLACE_OPEN_DIRECTORY.
31115         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31116
31117 2009-12-09  Bruno Haible  <bruno@clisp.org>
31118
31119         * lib/fchdir.c: Update comment.
31120
31121 2009-12-09  Bruno Haible  <bruno@clisp.org>
31122
31123         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31124
31125 2009-12-08  Eric Blake  <ebb9@byu.net>
31126
31127         fchdir: avoid memory leak on re-registration.
31128         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31129
31130 2009-12-08  Jim Meyering  <meyering@redhat.com>
31131
31132         init.sh: avoid Solaris 10 /bin/sh portability problem
31133         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31134         sourced script:
31135           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31136           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31137           bar
31138         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31139         and two tests used that idiom.
31140         * tests/init.sh: Update suggested usage comments.
31141         (path_prepend_): New function, to be used in place
31142         of the --src-path=DIR option.
31143         (setup_): Move PATH-prepending code into path_prepend_.
31144         * tests/test-pread.sh: Adapt to new usage.
31145         * tests/test-xalloc-die.sh: Likewise.
31146
31147 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31148
31149         * doc/gnulib.texi (Glibc pty.h): Add.
31150         * doc/glibc-functions/forkpty.texi: Add.
31151         * doc/glibc-functions/openpty.texi: Add.
31152         Suggested by Bruno Haible.
31153
31154 2009-12-08  Eric Blake  <ebb9@byu.net>
31155
31156         fchdir: fix logic bugs
31157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31158         * tests/test-fchdir.c (main): Enhance test.
31159         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31160         is in use.
31161
31162         dup2: fix logic bugs
31163         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31164         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31165         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31166         exists.
31167         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31168
31169 2009-12-07  Eric Blake  <ebb9@byu.net>
31170
31171         unlink: fix m4 detection
31172         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31173
31174         unistd-safer: add unit test
31175         * modules/unistd-safer-tests: New file.
31176         * tests/test-dup-safer.c: Likewise.
31177         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31178         * tests/test-dup2.c (setmode): Likewise.
31179         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31180
31181         cloexec: preserve text vs. binary across dup_cloexec
31182         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31183         mode.
31184         * modules/dup2-tests (Depends-on): Add binary-io.
31185         * modules/cloexec-tests (Depends-on): Likewise.
31186         * tests/test-dup2.c (setmode, is_mode): New helpers.
31187         (main): Add tests that translation mode is preserved.
31188         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31189         Reported by Bruno Haible.
31190
31191         mgetgroups: reduce duplicate listings
31192         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31193         resulting array.
31194         * tests/test-chown.h (test_chown): Simplify client.
31195         * tests/test-lchown.h (test_lchown): Likewise.
31196
31197 2009-12-06  Bruno Haible  <bruno@clisp.org>
31198
31199         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31200         value.
31201
31202 2009-12-06  Bruno Haible  <bruno@clisp.org>
31203
31204         * lib/progname.c: Include stdio.h, stdlib.h.
31205         (set_program_name): Reject a NULL argument.
31206
31207 2009-12-05  Eric Blake  <ebb9@byu.net>
31208
31209         pipe2-safer: new module
31210         * modules/pipe2-safer: New file.
31211         * lib/unistd-safer.h (pipe2_safer): New prototype.
31212         * lib/unistd--.h (pipe2): New wrapper.
31213         * lib/pipe-safer.c (pipe2_safer): New function.
31214         * modules/pipe (Depends-on): Add pipe2-safer.
31215         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31216
31217         stdlib-safer: preserve cloexec flag for mkostemp[s]
31218         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31219         fd_safer_flag.
31220
31221         unistd-safer: allow preservation of cloexec status via flag
31222         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31223         prototypes.
31224         * lib/dup-safer.c (dup_safer_flag): New function.
31225         * lib/fd-safer.c (fd_safer_flag): Likewise.
31226         * modules/cloexec (configure.ac): Set witness.
31227
31228         test-dup2: enhance test
31229         * modules/dup2-tests (Depends-on): Add cloexec.
31230         * tests/test-dup2.c (main): Enhance test.
31231
31232         cloexec: add dup_cloexec
31233         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31234         header and comments.
31235         * lib/cloexec.c (set_cloexec_flag): Add comments.
31236         (dup_cloexec): New function, with mingw implementation borrowed
31237         from...
31238         * lib/w32spawn.h (dup_noinherit): ...here.
31239         * modules/execute (Depends-on): Add cloexec.
31240         * modules/pipe (Depends-on): Likewise.
31241         * modules/cloexec (Depends-on): Add dup2.
31242         * modules/cloexec-tests (Files): New file.
31243         * tests/test-cloexec.c: Likewise.
31244
31245         test-xalloc-die: fix test for mingw
31246         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31247         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31248         directory and .exe suffix off argv[0] output.
31249
31250         test-fseeko: fix test for mingw
31251         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31252         than undefining fseek, so test will pass on mingw.
31253
31254 2009-12-05  Bruno Haible  <bruno@clisp.org>
31255
31256         * lib/progname.h (set_program_name): Clarify specification.
31257         * lib/progname.c (set_program_name): Likewise.
31258         Reported by Jim Meyering.
31259
31260 2009-12-05  Jim Meyering  <meyering@redhat.com>
31261
31262         maint.mk: backslash-escape parens in default regexp
31263         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31264         backslash-escape the literal parentheses.
31265
31266         maint.mk: news-date-check: use grep -E
31267         * top/maint.mk (today): Define a Make variable, not a...
31268         (news-date-check): ...shell variable.
31269         (news-date-regexp): Use the Make variable.
31270         Use grep's -E option.  Change the failing diagnostic to mention
31271         the variable, $(news-date-regexp).
31272
31273 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31274
31275         maintainer-makefile: allow customization of NEWS entry format
31276         * top/maint.mk (news-date-regexp): New overridable variable.
31277         (news-date-check): Use it.
31278
31279 2009-12-04  Eric Blake  <ebb9@byu.net>
31280
31281         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31282         * lib/mgetgroups.h (xgetgroups): New prototype.
31283         * lib/mgetgroups.c (xgetgroups): New wrapper.
31284         (mgetgroups): Handle ENOSYS.
31285         * modules/mgetgroups (Depends-on): Add realloc.
31286         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31287
31288         mgetgroups: avoid argument promotion issues with -1
31289         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31290         for invalid gid_t.
31291         * tests/test-chown.h (getegid, test_chown): Likewise.
31292         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31293
31294 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31295
31296         exclude: Fix header file problems.
31297         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31298
31299 2009-12-01  Jim Meyering  <meyering@redhat.com>
31300
31301         fts: fts_open: do not let an empty string cause immediate failure
31302         This is required in support of GNU rm, for which the command
31303         "rm A '' B" must process and remove both A and B, in spite of
31304         the empty string argument.
31305         * lib/fts.c (fts_open): Do not let the presence of an empty string
31306         cause fts_open to fail immediately.  Most fts-using tools must be
31307         able to process all arguments, in order, and can be expected to
31308         diagnose such arguments themselves.
31309
31310 2009-11-30  Eric Blake  <ebb9@byu.net>
31311
31312         utimens: fix compilation error
31313         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31314         Declare variable at right scope.
31315
31316 2009-11-29  Jim Meyering  <meyering@redhat.com>
31317
31318         bootstrap: handle perl-5.11's changed --version output
31319         * build-aux/bootstrap (get_version): Handle perl separately,
31320         since perl-5.11's --version output is different.
31321
31322 2009-11-28  Jim Meyering  <meyering@redhat.com>
31323
31324         userspec: depend on the inttostr module, too
31325         * modules/userspec (Depends-on): Add inttostr.
31326
31327         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31328         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31329         number of MAXUID when it evaluates to (uid_t) -1.
31330         Likewise for group ID.  Reported by Matt McCutchen in
31331         <http://savannah.gnu.org/bugs/?28113>
31332
31333         userspec: reformat to use spaces, not TABs
31334         * lib/userspec.c: Expand TABs to spaces.
31335         Add Emacs' "indent-tabs-mode: nil" hint.
31336
31337 2009-11-27  Eric Blake  <ebb9@byu.net>
31338
31339         getopt-gnu: flush out another BSD bug
31340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31341         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31342         flush out BSD bug.
31343         * tests/test-getopt.h (test_getopt): End lists with NULL.
31344         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31345         (test_getopt_long_posix): Enhance test.
31346         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31347         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31348         getopt-gnu.
31349         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31350         Likewise.
31351
31352 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31353
31354         * modules/idpriv-droptemp-tests (Notice): Fix text.
31355
31356 2009-11-27  Jim Meyering  <meyering@redhat.com>
31357
31358         test-xalloc-die: avoid spurious failure due to libtool argv difference
31359         In a libtool-enabled project, this test would fail due to a difference
31360         in the emitted program name, e.g.,
31361         -test-xalloc-die: memory exhausted
31362         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31363         Use program to avoid that.
31364         * modules/xalloc-die-tests (Depends-on): Add progname.
31365         * tests/test-xalloc-die.c: Include progname.h".
31366         (program_name): Remove decl.
31367         (main): Call set_program_name.
31368         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31369
31370 2009-11-26  Richard Jones  <rjones@redhat.com>
31371
31372         w32sock: leave win32 error in place.
31373         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31374
31375 2009-11-26  Eric Blake  <ebb9@byu.net>
31376
31377         init.sh: suggest to use skip_ and fail_ functions in comments
31378         * tests/init.sh: Add a sentence.
31379
31380 2009-11-25  Bruno Haible  <bruno@clisp.org>
31381
31382         init.sh: add documentation in comments
31383         * tests/init.sh: Add some developer and user documentation.
31384
31385 2009-11-26  Jim Meyering  <meyering@redhat.com>
31386
31387         init.sh: accommodate even those who specify bogus srcdir manually
31388         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31389         configure-time tests to be sanitized, so that there is no need to
31390         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31391         (with no double quotes) suffices.  However, since tests may be
31392         invoked manually, and since you may explicitly set srcdir to the
31393         name of a directory containing spaces, do quote its uses here.
31394         * tests/test-pread.sh: Likewise.
31395         Suggested by Bruno Haible.
31396
31397         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31398         * tests/test-pread.sh: Write no data into the pipe, because
31399         test-pread actually reads none.  This avoids a diagnostic,
31400         "bash: echo: write error: Broken pipe", that arises in the unusual
31401         event something is ignoring SIGPIPE, and might be interpreted
31402         as some sort of failure.  Reported by Bruno Haible.
31403
31404 2009-11-25  Jim Meyering  <meyering@redhat.com>
31405
31406         test-pread: cover failure with ESPIPE and EINVAL
31407         * tests/test-pread.c (main): Test for failure, too.
31408         * tests/test-pread.sh: Invoke with stdin on a pipe.
31409         Suggested by Eric Blake.
31410
31411         pread: improvement and fix
31412         * modules/pread (Depends-on): Depend on lseek, for portability to
31413         e.g., mingw.  Suggested by Eric Blake.
31414         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31415
31416         unistd.in.h: correct declaration of pread
31417         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31418         Reported by Richard W.M. Jones.
31419
31420         test-pread.sh: distribute the test script
31421         * modules/pread-tests (Files): Include test-pread.sh.
31422
31423         test-pread.sh: clean up
31424         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31425         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31426         That is unnecessary, since it's always ".".
31427         Suggestion from Eric Blake.
31428
31429         test-pread.sh: make executable
31430         * tests/test-pread.sh: Set executable bit.
31431         Reported by Eric Blake.
31432
31433         correct typo in test-pread.sh
31434         * tests/test-pread.sh: Add #! line.
31435
31436         test pread
31437         * tests/test-pread.c: New file.
31438         * tests/test-pread.sh: Likewise.
31439         * modules/pread-tests: Likewise.
31440
31441         pread: new module
31442         * modules/pread: New file.
31443         * lib/unistd.in.h (pread): Define/declare.
31444         * lib/pread.c (pread): New file.
31445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31446         * modules/unistd (Makefile.am): Substitute witnesses.
31447         * doc/posix-functions/pread.texi (pread): Update.
31448         * MODULES.html.sh: Add pread.
31449
31450 2009-11-25  Jim Meyering  <meyering@redhat.com>
31451
31452         tests/init.sh: new file to be used via most *.sh tests
31453         * tests/init.sh: New file.
31454
31455 2009-11-25  Eric Blake  <ebb9@byu.net>
31456
31457         utimens: work around older Linux failure with symlinks
31458         * lib/utimens.c (lutimensat_works_really): New variable.
31459         (fdutimens, lutimens): Use it to manage kernels that support
31460         nanosecond times on files, but not on symlinks.
31461         Reported by OndÅ™ej Vašík.
31462
31463         utimes: fix configure grammar
31464         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31465
31466 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31467
31468         regex: Fix fastmap for multibyte character ranges.
31469         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31470         characters when a multibyte character range is included.
31471
31472 2009-11-22  Andy Wingo  <wingo@pobox.com>
31473
31474         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31475         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31476
31477 2009-11-24  Bruno Haible  <bruno@clisp.org>
31478
31479         doc: Most *_l functions exist in MacOS X 10.5.
31480         * doc/posix-functions/duplocale.texi: Update platforms list.
31481         * doc/posix-functions/freelocale.texi: Likewise.
31482         * doc/posix-functions/newlocale.texi: Likewise.
31483         * doc/posix-functions/uselocale.texi: Likewise.
31484         * doc/posix-functions/isalnum_l.texi: Likewise.
31485         * doc/posix-functions/isalpha_l.texi: Likewise.
31486         * doc/posix-functions/isblank_l.texi: Likewise.
31487         * doc/posix-functions/iscntrl_l.texi: Likewise.
31488         * doc/posix-functions/isdigit_l.texi: Likewise.
31489         * doc/posix-functions/isgraph_l.texi: Likewise.
31490         * doc/posix-functions/islower_l.texi: Likewise.
31491         * doc/posix-functions/isprint_l.texi: Likewise.
31492         * doc/posix-functions/ispunct_l.texi: Likewise.
31493         * doc/posix-functions/isspace_l.texi: Likewise.
31494         * doc/posix-functions/isupper_l.texi: Likewise.
31495         * doc/posix-functions/iswalnum_l.texi: Likewise.
31496         * doc/posix-functions/iswalpha_l.texi: Likewise.
31497         * doc/posix-functions/iswblank_l.texi: Likewise.
31498         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31499         * doc/posix-functions/iswctype_l.texi: Likewise.
31500         * doc/posix-functions/iswdigit_l.texi: Likewise.
31501         * doc/posix-functions/iswgraph_l.texi: Likewise.
31502         * doc/posix-functions/iswlower_l.texi: Likewise.
31503         * doc/posix-functions/iswprint_l.texi: Likewise.
31504         * doc/posix-functions/iswpunct_l.texi: Likewise.
31505         * doc/posix-functions/iswspace_l.texi: Likewise.
31506         * doc/posix-functions/iswupper_l.texi: Likewise.
31507         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31508         * doc/posix-functions/isxdigit_l.texi: Likewise.
31509         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31510         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31511         * doc/posix-functions/strcoll_l.texi: Likewise.
31512         * doc/posix-functions/strfmon_l.texi: Likewise.
31513         * doc/posix-functions/strftime_l.texi: Likewise.
31514         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31515         * doc/posix-functions/strxfrm_l.texi: Likewise.
31516         * doc/posix-functions/tolower_l.texi: Likewise.
31517         * doc/posix-functions/toupper_l.texi: Likewise.
31518         * doc/posix-functions/towctrans_l.texi: Likewise.
31519         * doc/posix-functions/towlower_l.texi: Likewise.
31520         * doc/posix-functions/towupper_l.texi: Likewise.
31521         * doc/posix-functions/wcscoll_l.texi: Likewise.
31522         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31523         * doc/posix-functions/wctrans_l.texi: Likewise.
31524         * doc/posix-functions/wctype_l.texi: Likewise.
31525         * doc/glibc-functions/strptime_l.texi: Likewise.
31526         * doc/glibc-functions/strtod_l.texi: Likewise.
31527         * doc/glibc-functions/strtof_l.texi: Likewise.
31528         * doc/glibc-functions/strtol_l.texi: Likewise.
31529         * doc/glibc-functions/strtold_l.texi: Likewise.
31530         * doc/glibc-functions/strtoll_l.texi: Likewise.
31531         * doc/glibc-functions/strtoul_l.texi: Likewise.
31532         * doc/glibc-functions/strtoull_l.texi: Likewise.
31533         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31534         * doc/glibc-functions/wcstod_l.texi: Likewise.
31535         * doc/glibc-functions/wcstof_l.texi: Likewise.
31536         * doc/glibc-functions/wcstol_l.texi: Likewise.
31537         * doc/glibc-functions/wcstold_l.texi: Likewise.
31538         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31539         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31540         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31541
31542 2009-11-24  Bruno Haible  <bruno@clisp.org>
31543
31544         duplocale: Fix logic bug.
31545         * lib/duplocale.c: Don't include <langinfo.h>.
31546         (_NL_LOCALE_NAME): Remove macro.
31547         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31548         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31549
31550 2009-11-23  Jim Meyering  <meyering@redhat.com>
31551
31552         test-update-copyright: don't hard-code /usr/bin/perl
31553         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31554         perl to print the current year.  Gilles Espinasse reported that
31555         the replaced use of perl was hard-coded as /usr/bin/perl.
31556
31557 2009-11-23  Bruno Haible  <bruno@clisp.org>
31558
31559         duplocale: Add support for glibc 2.3.x.
31560         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31561
31562 2009-11-22  Bruno Haible  <bruno@clisp.org>
31563
31564         vasnprintf: Tiny optimization.
31565         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31566         MacOS X.
31567
31568 2009-11-22  Bruno Haible  <bruno@clisp.org>
31569
31570         Tests for module 'duplocale'.
31571         * modules/duplocale-tests: New file.
31572         * tests/test-duplocale.c: New file.
31573
31574         New module 'duplocale'.
31575         * m4/duplocale.m4: New file.
31576         * lib/locale.in.h (duplocale): New declaration.
31577         * lib/duplocale.c: New file.
31578         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31579         gl_LOCALE_H_DEFAULTS): New macros.
31580         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31581         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31582         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31583         REPLACE_DUPLOCALE.
31584         * modules/duplocale: New file.
31585         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31586
31587 2009-11-22  Bruno Haible  <bruno@clisp.org>
31588
31589         * modules/locale-tests (configure.ac): Test for newlocale function.
31590         * tests/test-locale.c: When the system has extended locale functions,
31591         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31592
31593         locale: Make locale_t available when possible.
31594         * lib/locale.in.h: Include <xlocale.h> when it exists.
31595         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31596         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31597         * modules/locale (Depends-on): Add extensions.
31598         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31599         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31600
31601 2009-11-22  Bruno Haible  <bruno@clisp.org>
31602
31603         Add comments.
31604         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31605         invocation.
31606         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31607         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31608         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31609
31610 2009-11-22  Bruno Haible  <bruno@clisp.org>
31611
31612         error: account for the possibility of freopen (stdout).
31613         * lib/error.c: Include <unistd.h>.
31614         (flush_stdout): New function, extracted from error and error_at_line.
31615         Determine stdout's fd dynamically.
31616         (error, error_at_line): Invoke flush_stdout.
31617         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31618         * modules/error (Depends-on): Add unistd.
31619
31620 2009-11-22  Bruno Haible  <bruno@clisp.org>
31621
31622         diffseq: Add comment.
31623         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31624
31625 2009-11-22  Jim Meyering  <meyering@redhat.com>
31626
31627         c-stack: avoid defining an unused static function
31628         * lib/c-stack.c (find_stack_direction): Do not define this function
31629         when it will not be used.
31630
31631         diffseq: avoid spurious gcc warnings
31632         * lib/diffseq.h (IF_LINT2): Define.
31633         (compareseq): Use it to initialize two members of "part".
31634         This avoids two used-uninitialized warnings.
31635
31636 2009-11-21  Jim Meyering  <meyering@redhat.com>
31637
31638         c-stack: avoid "ignoring return value of `write'" warning
31639         * lib/c-stack.c: Include "ignore-value.h".
31640         (die): Explicitly ignore each write return value.
31641         * modules/c-stack (Depends-on): Add ignore-value.
31642
31643 2009-11-21  Bruno Haible  <bruno@clisp.org>
31644
31645         diffseq: reduce scope of variable 'best'.
31646         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31647         variable, earlier used for two different purposes.
31648
31649 2009-11-21  Jim Meyering  <meyering@redhat.com>
31650
31651         diffseq: remove useless assignment to "best"
31652         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31653         assignment.  At that point "best" is already guaranteed to be zero.
31654
31655 2009-11-20  Eric Blake  <ebb9@byu.net>
31656
31657         build: mention ftp redirector in release announcements
31658         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31659         values that used to come from cfg.mk; mention FTP redirect URL.
31660         * build-aux/announce-gen: Mention the mirror list.
31661         Suggested by Karl Berry.
31662
31663         nanosleep: improve port to mingw
31664         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31666         LIB_NANOSLEEP, but only when needed.
31667         * modules/select (Link): Document LIBSOCKET.
31668         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31669         enough.
31670
31671         nanosleep: work around cygwin bug
31672         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31673         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31674         bug.
31675         (getnow): Delete, not needed.
31676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31677         LIB_CLOCK_GETTIME.
31678         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31679         clock-time, gettime.
31680         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31681         bug.
31682         * modules/nanosleep-tests: New test.
31683         * tests/test-nanosleep.c: New file.
31684
31685         sleep: work around cygwin bug
31686         * lib/sleep.c (rpl_sleep): Work around the bug.
31687         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31688         (gl_PREREQ_SLEEP): Delete unused macro.
31689         * modules/sleep (Depends-on): Add verify.
31690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31691         * modules/unistd (Makefile.am): Substitute witness.
31692         * lib/unistd.in.h (sleep): Update prototype.
31693         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31694         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31695         * modules/sleep-tests (Depends-on): Check for alarm.
31696
31697 2009-11-20  Jim Meyering  <meyering@redhat.com>
31698
31699         maint.mk: improve sc_prohibit_magic_number_exit
31700         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31701         so it does not match uses like System.exit(1).
31702         Add comments showing how to correct all offenders.
31703
31704 2009-11-19  Eric Blake  <ebb9@byu.net>
31705
31706         xalloc-die-tests: add missing library
31707         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31708
31709         test-xvasprintf: silence compiler warnings
31710         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31711         empty string from gcc.
31712
31713 2009-11-19  Jim Meyering  <meyering@redhat.com>
31714
31715         xfreopen: new module, from coreutils
31716         * modules/xfreopen: New module.
31717         * lib/xfreopen.c: New file.
31718         * lib/xfreopen.h: New file.
31719         * MODULES.html.sh (File stream based Input/Output"): Add it.
31720
31721 2009-11-19  Eric Blake  <ebb9@byu.net>
31722
31723         manywarnings: depend on warnings
31724         * modules/manywarnings (Depends-on): Add warnings.
31725
31726         build: avoid compiler warnings
31727         * lib/select.c (rpl_select): Delete unused variable.
31728         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31729
31730 2009-11-18  Eric Blake  <ebb9@byu.net>
31731
31732         tests: avoid false negative with --with-packager
31733         * tests/test-version-etc.sh: Discard packager information.
31734         * tests/test-argp-version-etc-1.sh: Likewise.
31735         Reported by Mike Frysinger.
31736
31737         utimens: fix regression on Solaris
31738         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31739         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31740         can only change fd timestamps via futimesat.  Instead, use an
31741         additional witness macro to avoid BSD bug.
31742         Reported by Jim Meyering.
31743
31744 2009-11-17  Eric Blake  <ebb9@byu.net>
31745
31746         usleep: use it to simplify tests
31747         * modules/stat-time-tests (Depends-on): Add usleep.
31748         (configure.ac): Drop usleep check.
31749         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31750         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31751         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31752         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31753         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31754         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31755         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31756         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31757         Likewise.
31758         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31759         * tests/test-lchown.h (nap): Likewise.
31760         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31761         * tests/test-stat-time.c (nap): Likewise.
31762         * tests/test-utimens-common.h (nap): Update comments.
31763
31764         usleep: new module
31765         * modules/usleep: New file.
31766         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31767         * lib/usleep.c (usleep): Likewise.
31768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31769         * modules/unistd (Makefile.am): Substitute witnesses.
31770         * lib/unistd.in.h (usleep): Add declaration.
31771         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31772         * MODULES.html.sh (Date and time): Likewise.
31773         * modules/usleep-tests (Depends-on): New test.
31774         * tests/test-usleep.c: New file.
31775
31776         chown: work around OpenBSD bug
31777         * lib/chown.c (rpl_chown): Work around the bug.
31778         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31779         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31780         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31781         * modules/chown (Depends-on): Add stdbool.
31782         * modules/lchown (Depends-on): Likewise.
31783         * doc/posix-functions/chown.texi (chown): Document the bug.
31784         * doc/posix-functions/lchown.texi (lchown): Likewise.
31785         * tests/test-lchown.h (test_chown): Relax test.
31786
31787         mkstemp: avoid conflict with C++ keyword template
31788         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31789         * lib/mkostemp.c (mkostemp): Likewise.
31790         * lib/mkostemps.c (mkostemps): Likewise.
31791         * lib/mkstemp.c (mkstemp): Likewise.
31792         * lib/mkstemps.c (mkstemps): Likewise.
31793
31794         xalloc-die-tests: optimize
31795         * tests/test-xalloc-die.sh: Reduce number of processes.
31796
31797 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31798
31799         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31800         patch from ludo@gnu.org (Ludovic Courtès).
31801
31802 2009-11-17  Jim Meyering  <meyering@redhat.com>
31803
31804         version-etc: use proper license string
31805         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31806         * modules/version-etc-fsf: Likewise.
31807
31808 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31809
31810         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31811         printed to stdout.  Deal with EOL differences.
31812
31813 2009-11-17  Eric Blake  <ebb9@byu.net>
31814
31815         unsetenv: work around Solaris bug
31816         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31817         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31818         Reported by Jim Meyering.
31819
31820         vasnprintf: avoid compiler warnings
31821         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31822         variables.
31823         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31824
31825 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31826
31827         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31828         settings since xalloc-die is no longer the self test,
31829         xalloc-die.sh is.
31830
31831 2009-11-17  Jim Meyering  <meyering@redhat.com>
31832
31833         test-xalloc-die.sh: make the code agree with the commit log
31834         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31835         at the end, just in case you happen to have a test-xalloc-die
31836         program in some other PATH directory.
31837
31838         test-xalloc-die.sh: fix a portability bug
31839         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31840         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31841         Otherwise, argv[0] (as often seen in diagnostics) would be too
31842         system-dependent, sometimes with, and sometimes without the leading "./".
31843
31844         version-etc-fsf: relax license to LGPLv3+
31845         * modules/version-etc-fsf (License): Relax license.
31846
31847 2009-11-16  Eric Blake  <ebb9@byu.net>
31848
31849         xalloc-die-tests: avoid printing null pointer
31850         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31851         shell script.
31852         * tests/test-xalloc-die.c (program_name): Declare.
31853         * tests/test-xalloc-die.sh (tmpfiles): New file.
31854
31855         setenv, unsetenv: work around various bugs
31856         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31857         (setenv) [HAVE_SETENV]: Work around bugs.
31858         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31859         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31860         for bugs.
31861         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31862         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31864         * modules/stdlib (Makefile.am): Update substitutions.
31865         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31866         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31867         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31868         * modules/setenv-tests: New test.
31869         * modules/unsetenv-tests: Likewise.
31870         * tests/test-setenv.c: New file.
31871         * tests/test-unsetenv.c: Likewise.
31872
31873 2009-11-16  Jim Meyering  <meyering@redhat.com>
31874
31875         version-etc: relax license to LGPLv3+
31876         * modules/version-etc (License): Relax license.
31877
31878         better AC_REQUIRE expanded-before-required-warning avoidance
31879         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31880         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31881         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31882         which is no longer needed.
31883
31884 2009-11-16  Eric Blake  <ebb9@byu.net>
31885
31886         test-freading: clean up temporary file
31887         * tests/test-freading.c (main): Remove file on success, and use
31888         ASSERT more liberally.
31889         Reported by Jim Meyering.
31890
31891 2009-11-16  Jim Meyering  <meyering@redhat.com>
31892
31893         avoid new AC_REQUIRE expanded-before-required warnings
31894         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31895         merely using it.
31896         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31897         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31898
31899 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31900
31901         * tests/test-xalloc-die.c: New file.
31902         * modules/xalloc-die-tests: New file.
31903         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31904         XFAIL_TESTS so it can be appended by modules.
31905
31906 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31907
31908         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31909         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31910
31911 2009-11-14  Eric Blake  <ebb9@byu.net>
31912
31913         fnmatch: avoid compiler warning
31914         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31915         to silence compiler warning about mismatch signedness in ?:.
31916         Reported by Robert Millan.
31917
31918         intprops: add double-inclusion guard
31919         * lib/intprops.h: Allow idempotent includes.
31920         Suggested by Bruce Korb.
31921
31922         openat: detect Solaris fchownat bug
31923         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31924         penalizing glibc chownat when only lchownat is broken.
31925         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31926         trailing slash bugs.
31927         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31928         * modules/openat-tests (Files): Include more files.
31929         (Depends-on): Add mgetgroups, sleep, stat-time.
31930         (configure.ac): Add additional checks.
31931         (Makefile.am): Build new test.
31932         * tests/test-fchownat.c: New file.
31933
31934         lchown: detect Solaris and FreeBSD bug
31935         * lib/lchown.c (rpl_lchown): Work around bug.
31936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31938         * modules/unistd (Makefile.am): Populate it.
31939         * lib/unistd.in.h (lchown): Update declaration.
31940         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31941         * modules/lchown-tests: New file.
31942         * tests/test-lchown.h (test_lchown): Likewise.
31943         * tests/test-lchown.c (main): Likewise.
31944
31945         chown: detect Solaris and FreeBSD bug
31946         * lib/chown.c (rpl_chown): Work around bug.
31947         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31948         (gl_PREREQ_CHOWN): Delete.
31949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31950         * modules/unistd (Makefile.am): Populate it.
31951         * lib/unistd.in.h (chown): Update declaration.
31952         * lib/lchown.c (chown): Update client.
31953         * modules/lchown (Depends-on): Add lstat.
31954         * doc/posix-functions/chown.texi (chown): Document the bug.
31955         * doc/posix-functions/getgroups.texi (getgroups): Document
31956         getgroups pitfall.
31957         * modules/chown-tests: New file.
31958         * tests/test-chown.h (test_chown): Likewise.
31959         * tests/test-chown.c (main): Likewise.
31960
31961 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31962
31963         gnulib-tool: correctly detect absence of m4 directories
31964         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31965
31966 2009-11-14  Jim Meyering  <meyering@redhat.com>
31967
31968         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31969         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31970
31971 2009-11-14  John W. Eaton  <jwe@gnu.org>
31972
31973         strftime.h: wrap funtion declaration in extern "C" block
31974         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31975
31976 2009-11-13  Eric Blake  <ebb9@byu.net>
31977
31978         getgroups: avoid compiler warning
31979         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31980
31981         getgroups: work around FreeBSD bug
31982         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31983         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31984         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31985         * tests/test-getgroups.c (main): Fix buffer overrun.
31986
31987         getgroups: avoid compilation failure
31988         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31989         * modules/getgroups (Depends-on): Add stdint.
31990
31991 2009-11-13  Jim Meyering  <meyering@redhat.com>
31992
31993         test-getgroups: avoid compilation failure
31994         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31995
31996 2009-11-13  Eric Blake  <ebb9@byu.net>
31997
31998         mgetgroups: new module, taken from coreutils
31999         * modules/mgetgroups: New file.
32000         * lib/mgetgroups.h: Likewise.
32001         * lib/mgetgroups.c (mgetgroups): Likewise.
32002         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32003         * MODULES.html.sh (Users and groups): Mention it.
32004
32005         getgroups: don't expose GETGROUPS_T to user
32006         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32007         an element at a time if GETGROUPS_T is wrong size.
32008         * lib/getugroups.h (getugroups): Change signature.
32009         * lib/unistd.in.h (getgroups): Likewise.
32010         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32011         signature needs fixing.
32012         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32013         AC_TYPE_GETGROUPS.
32014         * modules/group-member (Depends-on): Add getgroups.
32015         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32016         (group_member): Rely on getgroups replacement.
32017         * lib/getugroups.c (getugroups): Use gid_t.
32018         * tests/test-getgroups.c (main): Likewise.
32019         * NEWS: Mention the signature change.
32020         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32021         problem with signature.
32022         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32023         GETGROUPS_T is still useful for setgroups.
32024
32025         getgroups, getugroups: provide stubs for mingw
32026         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32027         * lib/getugroups.c (getugroups): Likewise.
32028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32029         function.  Modernize replacement scheme.
32030         (gl_PREREQ_GETGROUPS): Delete.
32031         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32032         * modules/getgroups (configure.ac): Declare witness.
32033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32034         * modules/unistd (Depends-on): Substitute witness.
32035         * lib/unistd.in.h (getgroups): Declare replacement.
32036
32037         getgroups: avoid calling exit
32038         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32039         drop xalloc.
32040         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32041         dependencies.
32042         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32043         exiting, in the rare case of malloc failure.
32044
32045         getgroups: fix logic error
32046         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32047         has more than 20 groups.
32048         * modules/getgroups-tests: New test.
32049         * tests/test-getgroups.c: New file.
32050
32051 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32052
32053         * tests/test-base64.c: Improve.
32054
32055 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32056
32057         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32058         Blake <ebb9@byu.net>.
32059
32060 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32061
32062         * tests/test-xvasprintf.c: Add %s%s related checks.
32063
32064 2009-11-12  Eric Blake  <ebb9@byu.net>
32065
32066         version-etc: match standards.texi style
32067         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32068         and use <> only for URLs.
32069
32070 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32071
32072         fts: do not fail on a submount during traversal
32073         * lib/fts.c (fts_build): Read the stat info again after opening
32074         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32075         Original report at http://bugzilla.redhat.com/501848.
32076
32077 2009-11-12  Jim Meyering  <meyering@redhat.com>
32078
32079         bootstrap: sync from coreutils
32080         * build-aux/bootstrap (bootstrap_epilogue): New function.
32081         Use git_modules_config in one more place.  This make bootstrap's
32082         --gnulib-srcdir option more useful for testing.
32083
32084         bootstrap: generalize autoheader check
32085         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32086         AC_CONFIG_HEADERS.
32087
32088 2009-11-11  Eric Blake  <ebb9@byu.net>
32089
32090         mkfifoat: use new modules for Solaris and BSD bugs
32091         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32092         * lib/mkfifoat.c (mknodat): Split...
32093         * lib/mknodat.c (mknodat): ...into new file.
32094         * modules/mkfifoat (Files): Ship new file.
32095         (Depends-on): Add mkfifo, mknod.
32096         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32097         (Depends-on): Add symlink.
32098         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32099         redundant with test_mkfifo.h.
32100         (do_mkfifoat, do_mknodat): New helpers.
32101
32102         mknod: new module
32103         * modules/mknod: New file.
32104         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32105         * lib/mknod.c (mknod): Likewise.
32106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32107         defaults.
32108         * modules/sys_stat (Makefile.am): Substitute them.
32109         * lib/sys_stat.in.h (mknod): Declare replacement.
32110         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32111         Document it.
32112         * doc/posix-functions/mknod.texi (mknod): Likewise.
32113         * modules/mknod-tests: New test.
32114         * tests/test-mknod.c: Likewise.
32115
32116         mkfifo: new module
32117         * modules/mkfifo: New file.
32118         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32119         * lib/mkfifo.c (mkfifo): Likewise.
32120         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32121         defaults.
32122         * modules/sys_stat (Makefile.am): Substitute them.
32123         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32124         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32125         Document it.
32126         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32127         * modules/mkfifo-tests: New test.
32128         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32129         from test-mkfifoat.c.
32130         * tests/test-mkfifo.c: New file.
32131
32132         readlink: detect FreeBSD bug
32133         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32134         slash on symlink.
32135         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32136         * tests/test-readlink.h (test_readlink): Enhance test.
32137
32138         symlink: detect FreeBSD bug
32139         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32140         slash on symlink.
32141         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32142         * tests/test-symlink.h (test_symlink): Enhance test.
32143
32144 2009-11-10  Eric Blake  <ebb9@byu.net>
32145
32146         link: detect FreeBSD bug
32147         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32148         symlink.
32149         * doc/posix-functions/link.texi (link): Document the bug.
32150         * tests/test-link.h (test_link): Enhance test.
32151         * tests/test-linkat.c (main): Update caller.
32152
32153         unlink, remove: detect FreeBSD bug
32154         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32155         slash on symlink.
32156         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32157         * doc/posix-functions/remove.texi (remove): Likewise.
32158         * tests/test-unlink.h (test_unlink): Enhance test.
32159         * tests/test-remove.c (main): Likewise.
32160
32161 2009-11-09  Eric Blake  <ebb9@byu.net>
32162
32163         rename: detect FreeBSD bug
32164         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32165         slash on symlink.
32166         * modules/renameat-tests (Depends-on): Add filenamecat.
32167         * tests/test-rename.h (test_rename): Allow one more errno.
32168         * tests/test-renameat.c (main): Likewise.
32169         * doc/posix-functions/rename.texi (rename): Document the bug.
32170
32171         open: detect FreeBSD bug
32172         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32173         symlink.
32174         * doc/posix-functions/open.texi (open): Document the bug.
32175         * doc/posix-functions/utimes.texi (utimes): Likewise.
32176         * tests/test-open.h (test_open): Add parameters, and test symlink
32177         handling.
32178         * tests/test-open.c (main): Adjust caller.
32179         * tests/test-fcntl-safer.c (main): Likewise.
32180         * modules/open-tests (Depends-on): Add stdbool, symlink.
32181         * modules/fcntl-safer-tests (Depends-on): Likewise.
32182         * tests/test-openat.c (main): Add test-open tests.
32183
32184         stat: detect FreeBSD bug
32185         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32186         symlink.
32187         * doc/posix-functions/stat.texi (stat): Document the bug.
32188         * tests/test-stat.h (test_stat_func): Add argument.
32189         * tests/test-stat.c (main): Adjust caller.
32190         * tests/test-fstatat.c (main): Likewise.
32191         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32192         Reported by Jim Meyering.
32193
32194 2009-11-09  James Youngman  <jay@gnu.org>
32195
32196         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32197         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32198
32199 2009-11-08  Jim Meyering  <meyering@redhat.com>
32200
32201         utimens: remove invalid futimesat call
32202         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32203         It used the file descriptor of the target file as the DIR_FD
32204         parameter and NULL as the file name.  That caused failure with
32205         errno == EFAULT on FreeBSD-8.0-rc2
32206
32207 2009-11-07  Eric Blake  <ebb9@byu.net>
32208
32209         fflush, freadseek: use fseeko, not fseek
32210         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32211         (clear_ungetc_buffer): Avoid potential problems on large files.
32212         * lib/freadseek.c (freadseek): Likewise.
32213         * modules/freadseek (Depends-on): Add fseeko.
32214         * modules/fseek (configure.ac): Set a witness.
32215         * tests/test-fflush.c (main): Use fseeko.
32216         * tests/test-fpurge.c (fseek): Disable link warning.
32217         * tests/test-freadable.c (fseek): Likewise.
32218         * tests/test-freading.c (fseek): Likewise.
32219         * tests/test-fseeko.c (fseek): Likewise.
32220         * tests/test-ftell.c (fseek): Likewise.
32221         * tests/test-ftello.c (fseek): Likewise.
32222         * tests/test-fwritable.c (fseek): Likewise.
32223         * tests/test-fwriting.c (fseek): Likewise.
32224
32225 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32226
32227         * modules/memchr (Depends-on): Drop getpagesize dependency.
32228
32229 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32230
32231         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32232         Reported by Ludovic Courtès.
32233         * build-aux/pmccabe2html: Improve example usage.
32234         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32235
32236 2009-11-06  Jim Meyering  <meyering@redhat.com>
32237
32238         do-release-commit-and-tag: New module.
32239         Automate the release-commit and tag process.
32240         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32241         * modules/do-release-commit-and-tag: New file.
32242         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32243
32244 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32245
32246         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32247         because test-select.c uses inet_pton.
32248
32249 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32250
32251         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32252         GETADDRINFO_LIB.  Bump serial number.
32253         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32254         Suggested by Eric Blake <ebb9@byu.net>.
32255
32256 2009-11-05  Eric Blake  <ebb9@byu.net>
32257
32258         strtod: detect darwin bug
32259         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32260         Reported by Leo Davis.
32261
32262         freopen-safer: new module
32263         * modules/freopen-safer: New module.
32264         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32265         * lib/freopen-safer.c (freopen_safer): New file.
32266         * lib/stdio-safer.h (freopen_safer): New declaration.
32267         * lib/stdio--.h (freopen): New override.
32268         * MODULES.html.sh (File stream based Input/Output): Mention it.
32269         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32270         freopen-safer module.
32271         * doc/posix-functions/stderr.texi (stderr): Likewise.
32272         * doc/posix-functions/stdin.texi (stdin): Likewise.
32273         * doc/posix-functions/stdout.texi (stdout): Likewise.
32274         * modules/freopen-safer-tests: New test.
32275         * tests/test-reopen-safer.c: New file.
32276
32277 2009-11-05  Jim Meyering  <meyering@redhat.com>
32278
32279         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32280         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32281
32282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32283
32284         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32285
32286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32287
32288         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32289
32290 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32291
32292         Fix link error.
32293         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32294         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32295
32296 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32297
32298         * tests/test-func.c: Also test value of __func__.
32299
32300 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32301
32302         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32303         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32304
32305 2009-11-05  Bruno Haible  <bruno@clisp.org>
32306
32307         Fix link error.
32308         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32309         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32310         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32311
32312 2009-11-05  Bruno Haible  <bruno@clisp.org>
32313
32314         Tests for module 'inet_pton'.
32315         * modules/inet_pton-tests: New file.
32316         * tests/test-inet_pton.c: New file.
32317
32318 2009-11-05  Bruno Haible  <bruno@clisp.org>
32319
32320         Tests for module 'inet_ntop'.
32321         * modules/inet_ntop-tests: New file.
32322         * tests/test-inet_ntop.c: New file.
32323
32324 2009-11-04  Eric Blake  <ebb9@byu.net>
32325
32326         stdlib-safer: wrap all mkstemp variants
32327         * modules/mkostemp (configure.ac): Set witness.
32328         * modules/mkostemps (configure.ac): Likewise.
32329         * modules/mkstemps (configure.ac): Likewise.
32330         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32331         (mkstemps_safer): Wrap more functions.
32332         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32333         wrapping.
32334         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32335         (mkstemps_safer): Implement the wrappers.
32336
32337         mkstemps, mkostemps: new modules
32338         * modules/mkostemps: New module.
32339         * modules/mkstemps: Likewise.
32340         * lib/mkostemps.c (mkostemps): New file.
32341         * lib/mkstemps.c (mkstemps): Likewise.
32342         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32343         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32345         * modules/stdlib (Makefile.am): Substitute them.
32346         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32347         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32348         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32349         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32350         * MODULES.html.sh (File system functions): Mention them.
32351
32352         tempname: resync from glibc
32353         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32354         same values for __GT_FILE as glibc.  Abort even when assertions
32355         are disabled.
32356         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32357         match its value otherwise.  Allow idempotent inclusion.
32358         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32359         * lib/mkostemp.c (mkostemp): Likewise.
32360         * lib/mkstemp.c (mkstemp): Likewise.
32361         * lib/tmpfile.c (tmpfile): Likewise.
32362         * NEWS: Document this.
32363
32364         utimens: fix use of futimens on older Linux
32365         * lib/utimens.c (fdutimens): Use updated, rather than original,
32366         timespec to avoid bug in older Linux kernel.
32367         Reported by Simon Josefsson.
32368
32369 2009-11-04  Bruno Haible  <bruno@clisp.org>
32370
32371         Make num_processors more flexible and consistent.
32372         * lib/nproc.h (enum nproc_query): New type.
32373         (num_processors): Add a 'query' argument.
32374         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32375         (num_processors): Add a 'query' argument. Test the value of the
32376         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32377         mingw, count the number of CPUs available for the current process.
32378         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32379         Check for sched_getaffinity and sched_getaffinity_np.
32380         * modules/nproc (Depends-on): Add c-ctype, extensions.
32381         * NEWS: Mention the change.
32382
32383 2009-11-03  Bruno Haible  <bruno@clisp.org>
32384
32385         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32386
32387 2009-11-03  Jim Meyering  <meyering@redhat.com>
32388
32389         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32390         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32391         if it is defined.
32392
32393 2009-11-02  Eric Blake  <ebb9@byu.net>
32394
32395         mktime, timegm: share common declaration
32396         * lib/mktime-internal.h: New file.
32397         * lib/mktime.c: Use it rather than open-coding a declaration.
32398         * lib/timegm.c: Likewise.
32399         * modules/mktime (Files): Ship it.
32400         * modules/timegm (Files): Likewise.
32401         Suggested by Bruno Haible.
32402
32403         test-update-copyright: update test to match script changes
32404         * tests/test-update-copyright.sh: Avoid hard-coding perl
32405         location.  Don't update *.bak created by earlier runs.
32406
32407 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32408             Simon Josefsson  <simon@josefsson.org>
32409             Bruno Haible  <bruno@clisp.org>
32410
32411         Fix link error on Solaris 8.
32412         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32413         also in libnsl. Define also INET_PTON_LIB.
32414         * modules/inet_pton (Link): New section.
32415
32416 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32417             Bruno Haible  <bruno@clisp.org>
32418
32419         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32420         * modules/inet_ntop (Link): New section.
32421         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32422
32423 2009-11-02  Eric Blake  <ebb9@byu.net>
32424
32425         maint: avoid compiler warnings in m4 macros
32426         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32427         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32428
32429 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32430
32431         * m4/pmccabe2html.m4: Remove file.
32432         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32433         function.  Change maintainer.
32434         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32435         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32436         Courtès).
32437
32438 2009-10-31  Eric Blake  <ebb9@byu.net>
32439
32440         fseeko: fix m4 regression
32441         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32442         regression from 2009-10-27.
32443         Reported by Ralf Wildenhues.
32444
32445 2009-10-31  Jim Meyering  <meyering@redhat.com>
32446
32447         inttostr: aesthetics and improved (compile-time) safety
32448         Define inttype_is_signed rather than inttype_is_unsigned,
32449         since the sole use is via "#if inttype_is_signed".
32450         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32451         inttype_is_unsigned.
32452         * lib/offtostr.c (inttype_is_signed): Likewise.
32453         * lib/uinttostr.c (inttype_is_signed): Likewise.
32454         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32455         * lib/inttostr.c (inttostr): Use verify to cross-check the
32456         inttype_is_signed value and the signedness of the actual type.
32457         * modules/inttostr (Depends-on): Add verify.
32458
32459 2009-10-30  Eric Blake  <ebb9@byu.net>
32460
32461         build: avoid compiler warnings
32462         * lib/fchmodat.c (lchmod): Mark unused variables.
32463         * lib/getopt.c (_getopt_initialize): Likewise.
32464         * lib/mktime.c (__mktime_internal): Provide prototype.
32465         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32466         older gcc that do not understand #pragma GCC diagnostic.
32467         * lib/uinttostr.c (inttype_is_unsigned): Define.
32468         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32469
32470 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32471
32472         stat: fix compilation on AIX
32473         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32474         only see struct stat64.
32475
32476 2009-10-30  Eric Blake  <ebb9@byu.net>
32477
32478         exclude: make more robust
32479         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32480         rather than masking a coding bug.
32481         Suggested by Bruno Haible.
32482
32483 2009-10-30  Jim Meyering  <meyering@redhat.com>
32484
32485         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32486         Rather than putting #!/usr/bin/perl on the first line,
32487         start with a variant of what's recommended by "man perlrun" that
32488         invokes the first "perl" program from your shell's search path.
32489         * build-aux/gitlog-to-changelog: Replace #!... as above.
32490         Add a "Local Variables" perl mode setting.
32491         Prompted by a patch from Ludovic Courtès.
32492         Improved by Eric Blake.
32493         * build-aux/useless-if-before-free: Likewise.
32494         * build-aux/announce-gen: Likewise.
32495         * build-aux/update-copyright: Likewise.
32496
32497 2009-10-29  Eric Blake  <ebb9@byu.net>
32498
32499         filenamecat-lgpl: adjust clients
32500         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32501         filenamecat.
32502         * modules/renameat (Depends-on): Likewise.
32503
32504         filenamecat: split into filenamecat-lgpl
32505         * modules/filenamecat-lgpl: New module.
32506         * modules/filenamecat (Files): Move library-safe files into
32507         filenamecat-lgpl.
32508         (Depends-on): Add filenamecat-lgpl.
32509         (configure.ac): Declare witness.
32510         * lib/filenamecat.h (file_name_concat): Only declare when using
32511         GPL module.
32512         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32513         Move...
32514         * lib/filenamecat-lgpl.c: ...into new file.
32515         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32516         (gl_FILE_NAME_CONCAT): Use it.
32517         * MODULES.html.sh (File system functions): Mention new module.
32518
32519         argp: avoid memory leak
32520         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32521         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32522         base_name, since the latter malloc()s and can call exit().
32523         Leak introduced 2006-07-03.
32524
32525         dirname-lgpl: adjust clients that don't need full dirname
32526         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32527         * modules/filenamecat (Depends-on): Likewise.
32528         * modules/linkat (Depends-on): Likewise.
32529         * modules/mkancesdirs (Depends-on): Likewise.
32530         * modules/mkdir (Depends-on): Likewise.
32531         * modules/openat (Depends-on): Likewise.
32532         * modules/savewd (Depends-on): Likewise.
32533         * modules/rename (Depends-on): Likewise.
32534         (License): Relax license.
32535         * modules/mkdir-tests (Depends-on): Drop progname.
32536         (Makefile.am): Delete unneeded LDADD.
32537         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32538
32539         dirname: split into dirname-lgpl
32540         * modules/dirname-lgpl: New module.
32541         * modules/dirname (Files): Move library-safe files into
32542         dirname-lgpl.
32543         (Depends-on): Add dirname-lgpl.
32544         (configure.ac): Declare witness.
32545         * modules/double-slash-root (License): Relax license.
32546         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32547         module.
32548         * lib/dirname.c (dir_len, mdir_name): Move...
32549         * lib/dirname-lgpl.c: ...into new file.
32550         * lib/basename.c (last_component, base_len): Move...
32551         * lib/basename-lgpl.c: ...into new file.
32552         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32553         (gl_DIRNAME): Use it.
32554         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32555         Mention new module.
32556         * modules/dirname-tests (Depends-on): Add progname.
32557         * tests/test-dirname.c (program_name): Delete.
32558
32559         mkdir: make safe for libraries
32560         * modules/mkdir (Depends-on): Drop xalloc.
32561         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32562         exit.
32563
32564         tests: avoid some compiler warnings
32565         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32566         literals.
32567         * tests/test-memchr.c (main): Avoid type mismatch.
32568         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32569         * tests/test-base64.c (main): Likewise.
32570         * tests/test-getdelim.c (main): Likewise.
32571         * tests/test-gethostname.c (main): Likewise.
32572         * tests/test-getline.c (main): Likewise.
32573         * tests/test-netinet_in.c (main): Likewise.
32574         * tests/test-select.c (open_server_socket, main): Likewise.
32575         * tests/test-select-stdin.c (main): Likewise.
32576         * tests/test-sockets.c (main): Likewise.
32577         * tests/test-strsignal.c (main): Likewise.
32578         * tests/test-sys_select.c (main): Likewise.
32579         * tests/test-sys_socket.c (main): Likewise.
32580         * tests/test-u64.c (main): Likewise.
32581         * tests/test-xfprintf-posix.c (main): Likewise.
32582         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32583
32584         sockets: avoid compiler warning
32585         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32586
32587         maint: detect usage(1) and other suspicious exits
32588         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32589
32590 2009-10-29  Jim Meyering  <meyering@redhat.com>
32591
32592         timespec: long-to-int truncation could make timespec_cmp malfunction
32593         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32594         a multiple of 2^32 nanoseconds as no difference.
32595
32596 2009-10-28  Jim Meyering  <meyering@redhat.com>
32597
32598         fprintftime: wrap macro code argument in "do {...} while(0)"
32599         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32600         cpy macro must be a statement that can be followed by a semicolon.
32601         Now that the else clause contains a comment and is hence longer
32602         than one line, I require curly braces.  That in turn requires
32603         that we wrap this code block in the standard do...while(0).
32604
32605         fprintftime: remove stray semicolon from previous change
32606         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32607
32608         fprintftime: avoid a warning about ignored fwrite return value
32609         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32610         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32611         that is unsafe.
32612         * modules/fprintftime (Depends-on): Add ignore-value.
32613
32614         exclude: avoid an unwarranted warning
32615         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32616
32617 2009-10-27  Eric Blake  <ebb9@byu.net>
32618
32619         fseek: avoid compilation failure when fflush is replaced
32620         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32621         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32622         module is in use.
32623         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32624         module is not in use; since REPLACE_FSEEK worked otherwise.
32625         (GNULIB_FTELLO): Likewise for ftell.
32626         Reported by Ian Beckwith and others.
32627
32628 2009-10-27  Bruno Haible  <bruno@clisp.org>
32629
32630         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32631         Reported by Jim Meyering.
32632
32633 2009-10-27  Jim Meyering  <jim@meyering.net>
32634             Bruno Haible  <bruno@clisp.org>
32635
32636         Avoid warning despite dropping the return value of fwrite.
32637         * lib/unicodeio.c: Include ignore-value.h.
32638         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32639         * modules/unicodeio (Depends-on): Add ignore-value.
32640
32641 2009-10-26  Eric Blake  <ebb9@byu.net>
32642
32643         areadlinkat: fix fallback path
32644         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32645         pointer and zero.
32646
32647 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32648
32649         Use a better IO block size for modern systems
32650         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32651         * lib/md2.c: Likewise.
32652         * lib/md4.c: Likewise.
32653         * lib/md5.c: Likewise.
32654         * lib/sha1.c: Likewise.
32655         * lib/sha256.c: Likewise.
32656         * lib/sha512.c: Likewise.
32657
32658 2009-10-22  Eric Blake  <ebb9@byu.net>
32659
32660         tests: avoid several compiler warnings
32661         * tests/test-getcwd.c (main): Avoid buffer underflow.
32662         * tests/test-getdate.c (main): String literals are not safe with
32663         putenv, so use setenv.  Declare unused argument.
32664         * modules/getdate-tests (Depends-on): Add setenv.
32665         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32666         problems with string literals in char *.
32667         * tests/test-hash.c (main): Avoid shadowing declaration.
32668         (insert_new): Treat string literals as char const *.
32669         * tests/test-getopt.h (test_getopt): Likewise.
32670         (getopt_loop): Alter types to minimize casting elsewhere.
32671         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32672         (test_getopt_long_posix): Likewise.
32673         (do_getopt_long): Add wrapper to minimize casting.
32674         * tests/test-atexit.c (clear_temp_file): Use void.
32675         * tests/test-areadlink-with-size.c (main): Declare unused
32676         arguments.
32677         * tests/test-areadlink.c (main): Likewise.
32678         * tests/test-areadlinkat-with-size.c (main): Likewise.
32679         * tests/test-areadlinkat.c (main): Likewise.
32680         * tests/test-canonicalize-lgpl.c (main): Likewise.
32681         * tests/test-canonicalize.c (main): Likewise.
32682         * tests/test-dirent-safer.c (main): Likewise.
32683         * tests/test-dirname.c (main): Likewise.
32684         * tests/test-dup2.c (main): Likewise.
32685         * tests/test-fchdir.c (main): Likewise.
32686         * tests/test-fcntl-h.c (main): Likewise.
32687         * tests/test-fcntl-safer.c (main): Likewise.
32688         * tests/test-fdopendir.c (main): Likewise.
32689         * tests/test-fdutimensat.c (main): Likewise.
32690         * tests/test-fflush.c (main): Likewise.
32691         * tests/test-filenamecat.c (main): Likewise.
32692         * tests/test-filevercmp.c (main): Likewise.
32693         * tests/test-fopen-safer.c (main): Likewise.
32694         * tests/test-fopen.c (main): Likewise.
32695         * tests/test-fpending.c (main): Likewise.
32696         * tests/test-fpurge.c (main): Likewise.
32697         * tests/test-freading.c (main): Likewise.
32698         * tests/test-fstatat.c (main): Likewise.
32699         * tests/test-fsync.c (main): Likewise.
32700         * tests/test-futimens.c (main): Likewise.
32701         * tests/test-getndelim2.c (main): Likewise.
32702         * tests/test-gettimeofday.c (main): Likewise.
32703         * tests/test-getopt.c (main): Likewise.
32704         * tests/test-i-ring.c (main): Likewise.
32705         * tests/test-inttypes.c (main): Likewise.
32706         * tests/test-link.c (main): Likewise.
32707         * tests/test-lstat.c (main): Likewise.
32708         * tests/test-math.c (main): Likewise.
32709         * tests/test-md5.c (main): Likewise.
32710         * tests/test-memchr2.c (main): Likewise.
32711         * tests/test-memrchr.c (main): Likewise.
32712         * tests/test-mkdir.c (main): Likewise.
32713         * tests/test-mkdirat.c (main): Likewise.
32714         * tests/test-mkfifoat.c (main): Likewise.
32715         * tests/test-open.c (main): Likewise.
32716         * tests/test-openat-safer.c (main): Likewise.
32717         * tests/test-openat.c (main): Likewise.
32718         * tests/test-quotearg.c (main): Likewise.
32719         * tests/test-rawmemchr.c (main): Likewise.
32720         * tests/test-readlink.c (main): Likewise.
32721         * tests/test-remove.c (main): Likewise.
32722         * tests/test-rename.c (main): Likewise.
32723         * tests/test-renameat.c (main): Likewise.
32724         * tests/test-rmdir.c (main): Likewise.
32725         * tests/test-sha1.c (main): Likewise.
32726         * tests/test-signal.c (main): Likewise.
32727         * tests/test-sigaction.c (main): Likewise.
32728         * tests/test-stat.c (main): Likewise.
32729         * tests/test-stat-time.c (main): Likewise.
32730         * tests/test-stddef.c (main): Likewise.
32731         * tests/test-stdint.c (main): Likewise.
32732         * tests/test-stdio.c (main): Likewise.
32733         * tests/test-stdlib.c (main): Likewise.
32734         * tests/test-strchrnul.c (main): Likewise.
32735         * tests/test-strerror.c (main): Likewise.
32736         * tests/test-string.c (main): Likewise.
32737         * tests/test-strtod.c (main): Likewise.
32738         * tests/test-strverscmp.c (main): Likewise.
32739         * tests/test-symlink.c (main): Likewise.
32740         * tests/test-symlinkat.c (main): Likewise.
32741         * tests/test-sys_stat.c (main): Likewise.
32742         * tests/test-sys_time.c (main): Likewise.
32743         * tests/test-time.c (main): Likewise.
32744         * tests/test-unistd.c (main): Likewise.
32745         * tests/test-unlink.c (main): Likewise.
32746         * tests/test-unlinkat.c (main): Likewise.
32747         * tests/test-utimens.c (main): Likewise.
32748         * tests/test-utimensat.c (main): Likewise.
32749         * tests/test-version-etc.c (main): Likewise.
32750         * tests/test-wchar.c (main): Likewise.
32751         * tests/test-wctype.c (main): Likewise.
32752         * tests/test-xprintf-posix.c (main): Likewise.
32753         * tests/test-posixtm.c (main): Likewise.
32754         (STREQ): Delete unused macro.
32755         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32756         shadowed variables.
32757         * tests/test-memchr.c (main): Likewise.
32758
32759 2009-10-21  Eric Blake  <ebb9@byu.net>
32760
32761         areadlinkat: avoid failure on older glibc
32762         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32763         rather than mis-comparing 0 against FUNC_RESULT of char*.
32764
32765 2009-10-21  Bruno Haible  <bruno@clisp.org>
32766
32767         * modules/stpncpy (License): Relicense under LGPLv2+.
32768         Reported by David Lutterkort <lutter@redhat.com>.
32769
32770 2009-10-20  Eric Blake  <ebb9@byu.net>
32771
32772         utimensat: work around Solaris 9 bug
32773         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32774         has trailing slash bugs.
32775         * tests/test-lutimens.h (test_lutimens): Enhance test.
32776         * tests/test-utimens.h (test_utimens): Likewise.
32777         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32778         * doc/posix-functions/utimes.texi (utimes): Likewise.
32779         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32780         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32781         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32782         * doc/posix-functions/futimens.texi (futimens): Likewise.
32783
32784         fdutimensat: new module
32785         * modules/fdutimensat: New file.
32786         * lib/fdutimensat.c (fdutimensat): Likewise.
32787         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32788         * MODULES.html.sh (File system functions): Mention module.
32789         * modules/fdutimensat-tests: New test.
32790         * tests/test-fdutimensat.c: Likewise.
32791
32792         doc: regenerate INSTALL
32793         * doc/INSTALL: Reflect recent autoconf update.
32794         * doc/INSTALL.ISO: Likewise.
32795         * doc/INSTALL.UTF-8: Likewise.
32796
32797 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32798
32799         acl: warn if ACL support is not detected
32800         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32801
32802 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32803
32804         * lib/nproc.h: Add extern "C" block for C++.
32805
32806 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32807             Bruno Haible  <bruno@clisp.org>
32808
32809         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32810         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32811         * doc/posix-functions/isalpha.texi: Likewise.
32812         * doc/posix-functions/isblank.texi: Likewise.
32813         * doc/posix-functions/iscntrl.texi: Likewise.
32814         * doc/posix-functions/isdigit.texi: Likewise.
32815         * doc/posix-functions/isgraph.texi: Likewise.
32816         * doc/posix-functions/islower.texi: Likewise.
32817         * doc/posix-functions/isprint.texi: Likewise.
32818         * doc/posix-functions/ispunct.texi: Likewise.
32819         * doc/posix-functions/isspace.texi: Likewise.
32820         * doc/posix-functions/isupper.texi: Likewise.
32821         * doc/posix-functions/isxdigit.texi: Likewise.
32822
32823 2009-10-18  Bruno Haible  <bruno@clisp.org>
32824
32825         Tests for module 'isblank'.
32826         * modules/isblank-tests: New file.
32827         * tests/test-isblank.c: New file.
32828
32829         New module 'isblank'.
32830         * lib/isblank.c: New file.
32831         * m4/isblank.m4: New file.
32832         * modules/isblank: New file.
32833         * doc/posix-functions/isblank.texi: Mention the new module.
32834
32835 2009-10-18  Bruno Haible  <bruno@clisp.org>
32836
32837         New module 'ctype'.
32838         * lib/ctype.in.h: New file.
32839         * m4/ctype.m4: New file.
32840         * modules/ctype: New file.
32841         * doc/posix-headers/ctype.texi: Mention the new module.
32842
32843 2009-10-18  Jim Meyering  <meyering@redhat.com>
32844
32845         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32846         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32847         right after its initialization, rather than farther down.
32848         Keeping these in close proximity makes it easier to ensure
32849         that each such variable is initialized.  E.g.,
32850
32851             LIB_CLOCK_GETTIME=
32852             AC_SUBST([LIB_CLOCK_GETTIME])
32853
32854         This change also increments these serial numbers.
32855         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32856         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32858
32859 2009-10-18  Bruno Haible  <bruno@clisp.org>
32860
32861         Don't let environment variables perturb build.
32862         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32863         (gl_PREREQ_GETHRXTIME): ... not here.
32864
32865 2009-10-18  Bruno Haible  <bruno@clisp.org>
32866
32867         Avoid symlink attack in localcharset module.
32868         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32869         (O_NOFOLLOW): Define fallback.
32870         (get_charset_aliases): Don't open the file if it is a symbolic link.
32871         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32872         gl_FCNTL_H.
32873         (gl_FCNTL_H): Require it.
32874         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32875         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32876         Reported by Fergal Glynn <fglynn@veracode.com>.
32877
32878 2009-10-18  Bruno Haible  <bruno@clisp.org>
32879
32880         Implement nproc for mingw.
32881         * lib/nproc.c: Include <windows.h>
32882         (num_processors): On native Windows platforms, try GetSystemInfo.
32883
32884 2009-10-18  Bruno Haible  <bruno@clisp.org>
32885
32886         Implement nproc for IRIX.
32887         * lib/nproc.c: Include <sys/sysmp.h>.
32888         (num_processors): On IRIX systems, try sysmp.
32889         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32890
32891 2009-10-18  Bruno Haible  <bruno@clisp.org>
32892
32893         Implement nproc for HP-UX.
32894         * lib/nproc.c: Include <sys/pstat.h>
32895         (num_processors): On HP-UX systems, try pstat_getdynamic.
32896         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32897         pstat_getdynamic.
32898
32899 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32900             Bruno Haible  <bruno@clisp.org>
32901
32902         Implement nproc for NetBSD, OpenBSD.
32903         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32904         (ARRAY_SIZE): New macro.
32905         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32906         * m4/nproc.m4: New file.
32907         * modules/nproc (Files): Add m4/nproc.m4.
32908         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32909         (Makefile.am): Instead, augment lib_SOURCES.
32910
32911 2009-10-18  Bruno Haible  <bruno@clisp.org>
32912
32913         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32914         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32915         sys/param.h.
32916
32917 2009-10-16  Eric Blake  <ebb9@byu.net>
32918
32919         utimensat: new module
32920         * modules/utimensat: New file.
32921         * lib/utimensat.c (utimensat): Likewise.
32922         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32923         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32924         so we can work around Linux bugs.
32925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32926         * modules/sys_stat (Makefile.am): Substitute them.
32927         * lib/sys_stat.in.h (utimensat): Declare it.
32928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32929         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32930         * modules/utimensat-tests: New test.
32931         * tests/test-utimensat.c: Likewise.
32932
32933         utimens: let lutimens work on non-symlinks
32934         * lib/utimens.c (lutimens): Fall back to utimens rather than
32935         failing with ENOSYS, when file is not a symlink.
32936         (utimens): Reduce redirection.
32937         * tests/test-lutimens.h (test_lutimens): Update test to cover
32938         non-symlinks.
32939         * tests/test-utimens.h (test_utimens): Update test to cover
32940         symlinks.
32941         * tests/test-utimens.c (main): Update caller.
32942
32943         utimens: cache whether utimensat syscall works
32944         * lib/utimens.c (utimensat_works_really): New cache variable.
32945         (fdutimens, lutimens): Use it to avoid failing syscall.
32946
32947         test-stat-time, test-utimens: improve portability
32948         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32949         ext4 on alpha, and for cygwin.
32950         * tests/test-utimens-common.h: New file.
32951         (nap): Factor delays into single function.
32952         * tests/test-lutimens.h (test_lutimens): Use new header.
32953         * tests/test-futimens.h (test_futimens): Likewise.
32954         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32955         timestamps to occur from same machine, as was done previously for
32956         test_utimens.
32957         * modules/utimens-tests (Files): Ship new file.
32958         * modules/futimens-tests (Files): Likewise.
32959         Reported in part by Jim Meyering.
32960
32961         sys_stat: sort replacement declarations
32962         * lib/sys_stat.in.h: Sort declarations.
32963         * lib/futimens.c (futimens): Fix typo.
32964
32965 2009-10-15  Jim Meyering  <meyering@redhat.com>
32966
32967         don't let environment settings perturb build
32968         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32969         could cause a configure-time and/or build-time malfunction.
32970         Typically, a configure-time function-in-library test is performed
32971         via code like this:
32972
32973           LIB_VAR=
32974           AC_SUBST([LIB_VAR])
32975           prefix_saved_LIBS=$LIBS
32976             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32977                        [test "$ac_cv_search_FUNC" = "none required" ||
32978                         LIB_VAR=$ac_cv_search_FUNC])
32979           LIBS=$prefix_saved_LIBS
32980
32981         However, in each of the files affected by this change, the LIB_VAR=
32982         initialization was omitted.  Thus, when set in the environment, its
32983         value would propagate into generated Makefiles when FUNC is not found
32984         in LIB_NAME.
32985         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32986         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32988
32989 2009-10-14  Eric Blake  <ebb9@byu.net>
32990
32991         fchdir: avoid infinite recursion in mingw
32992         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32993         recursing.
32994
32995         test-stat-time: port to mingw
32996         * tests/test-stat-time.c (force_unlink): Return a value.
32997         (test_ctime) [W32]: Fix compilation error.
32998         (nap): Don't call usleep with too large an argument.  Use
32999         force_unlink.
33000         * doc/pastposix-functions/usleep.texi (usleep): Document the
33001         portability issue.
33002
33003 2009-10-13  Jim Meyering  <meyering@redhat.com>
33004
33005         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33006         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33007         * modules/pipe-filter-ii: Likewise.
33008         * modules/sys_socket-tests: Likewise.
33009         * modules/tsearch-tests: Likewise.
33010         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33011         (check): Depend on it.
33012
33013 2009-10-12  Eric Blake  <ebb9@byu.net>
33014
33015         utimens-tests: port to NFS file systems
33016         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33017         comparisons to avoid spurious failures from timestamp drift
33018         between NFS machines.
33019
33020 2009-10-12  Eric Blake  <ebb9@byu.net>
33021
33022         stat-time-tests: minor cleanups
33023         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33024         * tests/test-stat-time.c (nap): Separate assignment from call.
33025         Suggested by Paolo Bonzini and Bruno Haible.
33026
33027         sys_stat: guarantee struct timespec
33028         * lib/sys_stat.in.h (includes): Always include <time.h>
33029         * modules/sys_stat (Depends-on): Add time.
33030         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33031         mode_t permission values.
33032         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33033         get at subsecond timestamps.
33034
33035 2009-10-10  Eric Blake  <ebb9@byu.net>
33036
33037         futimens: new module
33038         * modules/futimens: New file.
33039         * lib/futimens.c (futimens): Likewise.
33040         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33041         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33042         we can work around Linux bugs.
33043         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33044         * modules/sys_stat (Makefile.am): Substitute them.
33045         * lib/sys_stat.in.h (futimens): Declare it.
33046         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33047         * doc/posix-functions/futimens.texi (futimens): Likewise.
33048         * modules/futimens-tests: New test.
33049         * tests/test-futimens.c: Likewise.
33050
33051         utimens: introduce fdutimens
33052         * lib/utimens.h (fdutimens): New prototype.
33053         * lib/utimens.c (gl_futimens): Move guts...
33054         (fdutimens): ...to new interface.
33055         * tests/test-utimens.c (do_fdutimens): Use it.
33056
33057         utimens: add UTIME_NOW and UTIME_OMIT support
33058         * lib/utimens.c (validate_timespec, update_timespec): New helper
33059         functions.
33060         (gl_futimens, lutimens): Use them.
33061         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33062         stdbool, sys_stat.
33063         (Link): Mention resulting library dependency.
33064         * modules/utimecmp (Link): Likewise.
33065         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33066         (Makefile.am): Pick up library dependency.
33067         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33068         definition.
33069         * tests/test-sys_stat.c: Test the definitions.
33070         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33071         * NEWS: Document library dependency.
33072
33073         utimecmp: support symlink timestamps
33074         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33075         hashing when possible.  Use pathconf when available.
33076         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33077         * modules/utimecmp (Depends-on): Add lstat.
33078
33079         utimens: add lutimens interface
33080         * lib/utimens.c (lutimens): New function.
33081         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33082         * lib/utimens.h (lutimens): Declare new interface.
33083         * tests/test-utimens.c (main): Enhance test.
33084         * tests/test-lutimens.h (test_lutimens): New file.
33085         * modules/utimens-tests (Files): Distribute it.
33086         (Depends-on): Add symlink.
33087         (configure.ac): Check for usleep.
33088
33089         utimens: validate futimens usage
33090         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33091         fewer syscalls on failure later on.  Avoid compiler warning on
33092         mingw.
33093         * modules/utimens (Depends-on): Add dup2.
33094
33095         utimens: add test
33096         * modules/utimens-tests: New test.
33097         * tests/test-utimens.h: New file.
33098         * tests/test-futimens.h: Likewise.
33099         * tests/test-utimens.c: Likewise.
33100
33101         doc: mention timestamp portability issues
33102         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33103         instead.
33104         * doc/posix-functions/utime.texi (utime): Likewise.
33105         * doc/posix-functions/utimes.texi (utimes): Likewise.
33106         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33107         instead.
33108         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33109         module.
33110         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33111         Mention weakness with symlink timestamps.
33112         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33113         to utimensat/futimens instead.
33114         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33115
33116         test-dup2: enhance test
33117         * tests/test-dup2.c (main): Also check AT_FDCWD.
33118
33119         test-stat-time: avoid more spurious failures
33120         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33121         xfs; and avoid race if the two timestamps cross quantization edge.
33122
33123         relocatable: prefer 'file system' over 'filesystem'
33124         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33125         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33126         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33127         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33128         * lib/relocatable.c (compute_curr_prefix): Likewise.
33129
33130 2009-10-10  Jim Meyering  <meyering@redhat.com>
33131
33132         stat-time-tests: check for the usleep function
33133         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33134
33135 2009-10-10  Bruno Haible  <bruno@clisp.org>
33136
33137         * modules/xnanosleep: Put the Link section after the Include section.
33138
33139 2009-10-09  Eric Blake  <ebb9@byu.net>
33140
33141         dup2: work around FreeBSD 6.1 bug
33142         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33143         * doc/posix-functions/dup2.texi (dup2): Document it.
33144         Reported by Nelson H. F. Beebe and Jim Meyering.
33145
33146         test-stat-time: port to buggy NFS clients
33147         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33148         (test_ctime): Also skip test if mtime and ctime are skewed.
33149
33150         maint: prefer 'file system' over 'filesystem'
33151         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33152         * doc/posix-functions/lstat.texi (lstat): Likewise.
33153         * lib/file-has-acl.c (file_has_acl): Likewise.
33154         * lib/fwriteerror.c [TEST]: Likewise.
33155         * tests/test-areadlink.h (test_areadlink): Likewise.
33156         * tests/test-areadlinkat-with-size.c (main): Likewise.
33157         * tests/test-areadlinkat.c (main): Likewise.
33158         * tests/test-canonicalize-lgpl.c (main): Likewise.
33159         * tests/test-canonicalize.c (main): Likewise.
33160         * tests/test-fstatat.c (main): Likewise.
33161         * tests/test-linkat.c (main): Likewise.
33162         * tests/test-lstat.h (test_lstat_func): Likewise.
33163         * tests/test-mkdir.h (test_mkdir): Likewise.
33164         * tests/test-readlink.h (test_readlink): Likewise.
33165         * tests/test-remove.c (main): Likewise.
33166         * tests/test-rename.h (test_rename): Likewise.
33167         * tests/test-renameat.c (main): Likewise.
33168         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33169         * tests/test-symlink.h (test_symlink): Likewise.
33170         * tests/test-symlinkat.c (main): Likewise.
33171         * tests/test-unlink.h (test_unlink_func): Likewise.
33172         * tests/test-unlinkat.c (main): Likewise.
33173
33174         maint: make realtime library usage explicit
33175         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33176         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33177         * modules/settime (Link): Likewise.
33178         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33179
33180         test-stat-time: speed up execution
33181         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33182         warning on mingw.
33183         (nap): New helper function.
33184         (prepare_test): Use it to reduce sleep time.
33185         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33186         execution.
33187         * modules/stat-time-tests (configure.ac): Check for usleep.
33188
33189 2009-10-09  Jim Meyering  <meyering@redhat.com>
33190
33191         selinux-h: always use getfilecon wrappers
33192         * lib/getfilecon.c: New file.
33193         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33194         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33195         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33196         (fgetfilecon): Provide a stub.
33197         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33198         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33199         file unconditionally.
33200         When <selinux/selinux.h> is found, arrange to use wrappers.
33201         * modules/selinux-h (Files): Add getfilecon.c.
33202         (Makefile.am): Substitute include-next-related bits
33203         into the now-always-generated selinux/selinux.h file.
33204         * doc/glibc-functions/lgetfilecon.texi: New file.
33205         * doc/glibc-functions/fgetfilecon.texi: New file.
33206         * doc/glibc-functions/getfilecon.texi: New file.
33207         * doc/glibc-functions/getfilecon-desc.texi: New file.
33208         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33209         which to pull in the new files.
33210         * MODULES.html.sh (Misc): Add selinux-h.
33211
33212 2009-10-08  Jim Meyering  <meyering@redhat.com>
33213
33214         unistd: fix comment typo
33215         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33216
33217 2009-10-08  Eric Blake  <ebb9@byu.net>
33218
33219         areadlink: use SIZE_MAX consistently
33220         * modules/areadlink (Depends-on): Add stdint.
33221         * modules/areadlink-with-size (Depends-on): Likewise.
33222         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33223         gives NULL; drop sys/types, since unistd gives size_t; and add
33224         stdint for SIZE_MAX.
33225         (SIZE_MAX): Rely on headers.
33226         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33227         and add stdint.
33228         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33229         (SIZE_MAX): Likewise.
33230         (INITIAL_BUF_SIZE): Turn into enum.
33231         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33232
33233 2009-10-08  Jim Meyering  <meyering@redhat.com>
33234
33235         areadlinkat: avoid compilation failure
33236         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33237         Fix typo in comment.
33238
33239 2009-10-07  Eric Blake  <ebb9@byu.net>
33240
33241         areadlinkat-with-size: new module
33242         * modules/areadlinkat-with-size: New module.
33243         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33244         * lib/areadlink.h (areadlinkat): Declare it.
33245         * MODULES.html.sh (File system functions): Mention it.
33246         * modules/areadlinkat-with-size-tests: New test.
33247         * tests/test-areadlinkat-with-size.c: New file.
33248
33249         xreadlinkat: new module
33250         * modules/xreadlinkat: New module.
33251         * lib/xreadlinkat.c (xreadlinkat): New file.
33252         * lib/xreadlink.h (xreadlinkat): Declare it.
33253         * MODULES.html.sh (File system functions): Mention it.
33254
33255         areadlinkat: new module
33256         * lib/at-func.c (FUNC_FAIL): New define.
33257         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33258         * modules/areadlinkat: New module.
33259         * lib/linkat.c (areadlinkat): Move...
33260         * lib/areadlinkat.c (areadlinkat): ...to new file.
33261         * lib/areadlink.h (areadlinkat): Declare it.
33262         * modules/linkat (Depends-on): Add areadlinkat.
33263         * MODULES.html.sh (File system functions): Mention it.
33264         * modules/areadlinkat-tests: New test.
33265         * tests/test-areadlinkat.c: New file.
33266
33267         areadlink, areadlink-with-size: add tests
33268         * modules/areadlink-tests: New test.
33269         * modules/areadlink-with-size-tests: Likewise.
33270         * tests/test-areadlink.h: New file.
33271         * tests/test-areadlink.c: Likewise.
33272         * tests/test-areadlink-with-size.c: Likewise.
33273
33274         maint: minor cleanups
33275         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33276         _UNUSED_PARAMETER_ instead.
33277         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33278         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33279         * modules/linkat-tests (Files): Distribute test-link.h.
33280
33281         openat, utimens: whitespace cleanup
33282         * lib/openat.c: Prefer space throughout, rather than mix of 8
33283         spaces vs. tabs.
33284         * lib/at-func.c: Likewise.
33285         * lib/utimens.c: Likewise.
33286
33287         openat: avoid using wrong fd
33288         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33289         working directory chooses same fd.
33290         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33291
33292         mkdir, mkdirat: fix cygwin 1.5.x bug
33293         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33295         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33296         bug.
33297         (gl_PREREQ_MKDIR): Delete unused macro.
33298         * modules/mkdir (Files): Track file rename.
33299         (configure.ac): Update macro name.
33300         * modules/openat (Depends-on): Add mkdir.
33301         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33302
33303         mkdir, mkdirat: add tests
33304         * modules/mkdir-tests: New test.
33305         * tests/test-mkdir.h: New file.
33306         * tests/test-mkdir.c: Likewise.
33307         * tests/test-mkdirat.c: Likewise.
33308         * modules/openat-tests (Files): Add new files.
33309         (Makefile.am): Run new test.
33310
33311 2009-10-06  Eric Blake  <ebb9@byu.net>
33312
33313         doc: tweak *at function documentation
33314         * doc/posix-functions/faccessat.texi (faccessat): Mention
33315         known issue with replacement.
33316         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33317         * doc/posix-functions/linkat.texi (linkat): Likewise.
33318         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33319         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33320         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33321         * doc/posix-functions/renameat.texi (renameat): Likewise.
33322         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33323
33324         openat: fix GNU/Hurd bug in unlinkat
33325         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33326         broken.
33327         * doc/posix-functions/unlink.texi (unlink): Document this.
33328         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33329
33330         fdopendir: fix GNU/Hurd bug
33331         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33332         allowing non-directory fds.
33333         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33335         * modules/dirent (Makefile.am): Substitute it.
33336         * lib/dirent.in.h (fdopendir): Declare replacement.
33337         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33338         * tests/test-fdopendir.c (main): Test something other than
33339         /dev/null, since on Hurd that behaves like a directory.
33340
33341         test-symlink: port to GNU/Hurd
33342         * tests/test-symlink.h (test_symlink): Relax expected errno.
33343
33344         doc: tweak more cygwin information
33345         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33346         now compatible with glibc.
33347         * doc/posix-functions/getopt.texi (getopt): Likewise.
33348
33349         getopt-gnu: add another test
33350         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33351         guarantee behavior relied on by m4.
33352         * tests/test-getopt.c (main): Use it.
33353         * modules/getopt-posix-tests (Depends-on): Add setenv.
33354         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33355
33356         getopt: fix compilation on darwin
33357         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33358         include.
33359         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33360         Reported by Ludovic Courtès.
33361
33362 2009-10-06  Bruno Haible  <bruno@clisp.org>
33363
33364         * modules/size_max (Description): Discourage its use.
33365         Reported by Simon Josefsson.
33366
33367 2009-10-06  Jim Meyering  <meyering@redhat.com>
33368
33369         linkat: avoid compilation failure
33370         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33371
33372 2009-10-05  Eric Blake  <ebb9@byu.net>
33373
33374         linkat: support Linux 2.6.17
33375         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33376         linkat on Linux, but allow cache variable override.
33377         * lib/linkat.c (rpl_linkat): Define override.
33378         * modules/linkat (Depends-on): Add symlinkat.
33379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33380         * modules/unistd (Makefile.am): Substitute it.
33381         * lib/unistd.in.h (linkat): Declare replacement.
33382         Reported by Pádraig Brady.
33383
33384         quotearg: port test to systems with C.UTF-8 locale
33385         * tests/test-quotearg.c (struct result_strings): Add another
33386         member, differentiating between C.ASCII and C.UTF-8 handling.
33387         (compare_strings): Add parameter.
33388         (main): Adjust all callers.
33389
33390         getopt: avoid clash with FreeBSD _getopt_internal
33391         * lib/getopt.in.h (_getopt_internal): Override the name.
33392         * lib/getopt_int.h (includes): Pick up any overrides.
33393         Reported by Reuben Thomas.
33394
33395         hash: allow C89 compilation
33396         * lib/hash.c (check_tuning): Move declaration before statement.
33397         Reported by Reuben Thomas.
33398
33399 2009-10-05  Karl Berry  <karl@gnu.org>
33400
33401         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33402
33403 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33404             Bruno Haible  <bruno@clisp.org>
33405
33406         * lib/uname.c (uname): Use a table-driven algorithm to compute
33407         Windows NT versions.
33408
33409 2009-10-04  Bruno Haible  <bruno@clisp.org>
33410
33411         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33412         program_invocation_short_name.
33413         * modules/progname (configure.ac): Test for presence of
33414         program_invocation_short_name.
33415         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33416
33417 2009-10-04  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/progname.c (set_program_name): Fix comment.
33420         Reported by Jim Meyering.
33421
33422 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33423             Bruno Haible  <bruno@clisp.org>
33424
33425         * lib/uname.c: Include <string.h>.
33426         (uname): Do only one call to GetVersionEx in the common case.
33427
33428 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33429             Bruno Haible  <bruno@clisp.org>
33430
33431         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33432         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33433         (uname): Add support for Windows CE and various non-x86 CPU types.
33434
33435 2009-10-03  Bruno Haible  <bruno@clisp.org>
33436
33437         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33438         invocation to tests/configure.ac.
33439         Reported by Ian Beckwith <ianb@erislabs.net>.
33440
33441 2009-10-02  Eric Blake  <ebb9@byu.net>
33442
33443         fchdir: avoid compiler warning
33444         * lib/fchdir.c (canonicalize_file_name)
33445         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33446
33447         test-open: support mingw errno values
33448         * tests/test-open.h (test_open): Relax test.
33449         * tests/test-fopen.h (test_fopen): Likewise.
33450         * tests/test-openat-safer.c (main): Likewise.
33451
33452         open: fix opening directory on mingw
33453         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33454
33455         test-open: on GNU/Hurd, /dev/null is a directory
33456         * tests/test-fopen.h (main): Rename...
33457         (test_fopen): ...to this.  Use a guaranteed non-directory when
33458         confirming open behavior on trailing slash.
33459         * tests/test-openat-safer.c (main): Likewise.
33460         * tests/test-open.h (main): Likewise....
33461         (test_open): ...to this.
33462         * tests/test-fopen.c (main): Adjust caller.
33463         * tests/test-fopen-safer.c (main): Likewise.
33464         * tests/test-open.c (main): Likewise.
33465         * tests/test-fcntl-safer.c (main): Likewise.
33466         Reported by Samuel Thibault.
33467
33468         rename, fchdir: don't ignore chdir failure
33469         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33470         * lib/rename.c (rpl_rename) [W32]: Likewise.
33471         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33472         an empty destination directory if source cannot be renamed,
33473         although there is still possibility for failure.
33474         * doc/posix-functions/rename.texi (rename): Document the race.
33475         Reported by Jim Meyering.
33476
33477         maint: cleanup whitespace in recent commits
33478         * lib/rename.c (rpl_rename): Remove tabs.
33479         * tests/test-link.h (test_link): Likewise.
33480         * lib/fchdir.c (get_name): Likewise.
33481         Reported by Jim Meyering.
33482
33483 2009-10-02  Ben Pfaff  <blp@gnu.org>
33484
33485         relocatable-prog-wrapper: Add missing dependency on
33486         double-slash-root.
33487         * modules/relocatable-prog-wrapper: Add dependency.
33488         Reported by Ian Beckwith <ianb@erislabs.net>.
33489
33490 2009-10-02  Eric Blake  <ebb9@byu.net>
33491
33492         renameat: fix Solaris bugs
33493         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33494         needed fixing.
33495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33496         * modules/stdio (Makefile.am): Substitute it.
33497         * lib/stdio.in.h (renameat): Declare replacement.
33498         * lib/renameat.c (rpl_renameat): Implement fix.
33499
33500         renameat: new module
33501         * modules/renameat: New file.
33502         * lib/renameat.c (renameat): Likewise.
33503         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33505         * modules/stdio (Makefile.am): Substitute them.
33506         * lib/stdio.in.h (renameat): Declare it.
33507         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33508         * doc/posix-functions/renameat.texi (renameat): Likewise.
33509         * modules/renameat-tests: New test.
33510         * tests/test-renameat.c: Likewise.
33511
33512         rename: fix mingw bugs
33513         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33514         directory overwrite bugs.
33515
33516         rename: fix another cygwin 1.5 bug
33517         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33518         checks.
33519         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33520         unnecessary cygwin workarounds.  Also work around bug with moving
33521         full directory onto an empty one.
33522         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33523
33524         rename-dest-slash: merge into rename module
33525         * modules/rename-dest-slash (Status): Mark obsolete.
33526         (Depends-on): Add rename.
33527         (Files): Let rename do it all.
33528         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33529         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33530         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33531         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33532         * lib/rename.c (rpl_rename): Update comments.
33533
33534         rename: fix cygwin 1.5.x bugs
33535         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33536         * lib/rename.c (rpl_rename): Work around them.
33537         * modules/rename (Depends-on): Add same-inode.
33538
33539         rename: fix Solaris 10 bug
33540         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33541         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33542         was the only bug.
33543
33544         rename: fix Solaris 9 bug
33545         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33546         on non-directory.  Avoid calling exit.
33547         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33548         strdup.
33549         * modules/rename-tests (Depends-on): Drop lstat.
33550         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33551         (gl_PREREQ_RENAME): Delete unused macro.
33552
33553         rename-dest-slash: fix NetBSD bug
33554         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33555         links.
33556         * modules/rename-dest-slash (Depends-on): Add same-inode.
33557
33558         rename-tests: new test, exposes several platform bugs
33559         * modules/rename-tests: New file.
33560         * tests/test-rename.h: Likewise.
33561         * tests/test-rename.c: Likewise.
33562         * doc/posix-functions/rename.texi (rename): Improve documentation,
33563         including bugs that will eventually be fixed in gnulib.
33564
33565 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33566
33567         * lib/uname.c: Include <stdlib.h>
33568         (uname): Assume version info is available.
33569
33570 2009-10-02  Jim Meyering  <meyering@redhat.com>
33571
33572         gnu-web-doc-update: correct --help output
33573         * build-aux/gnu-web-doc-update: Make --help output relevant.
33574
33575         gnu-web-doc-update: add standard options
33576         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33577
33578         gnu-web-doc-update: New module.
33579         Use this script to automatically update the on-line web documentation
33580         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33581         * modules/gnu-web-doc-update: New file, from coreutils.
33582         * build-aux/gnu-web-doc-update: New script.
33583
33584 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33585
33586         link: LoadLibrary is not needed.
33587         * lib/link.c: Use GetModuleHandle.
33588
33589 2009-10-01  Eric Blake  <ebb9@byu.net>
33590
33591         getopt: bump serial number
33592         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33593         change.
33594
33595         tests: tighten link, rmdir, and remove tests
33596         * tests/test-link.h (includes): No need to use <config.h> here.
33597         Clean up if directory hard link was created, otherwise test for
33598         trailing '.'.
33599         * tests/test-linkat.c (main): Simplify.
33600         * tests/test-remove.c (main): Enhance test for trailing '.'.
33601         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33602
33603 2009-10-01  Jim Meyering  <meyering@redhat.com>
33604
33605         maint.mk: requiring "make major" was annoying, for a "minor" release.
33606         What is intended is "stable", to contrast with alpha and beta,
33607         so require "make stable", not "make major".
33608         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33609         (get_tool_versions): Likewise.
33610         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33611
33612 2009-09-30  Ben Pfaff  <blp@gnu.org>
33613
33614         Fix broken build of replacement for Windows tmpfile().
33615         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33616         flags argument added along with the 'mkostemp' module.
33617
33618 2009-09-28  Bruno Haible  <bruno@clisp.org>
33619
33620         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33621         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33622         to 'remove_elt'.
33623         (gl_list_remove): Update.
33624         * lib/gl_list.c (gl_list_remove): Update.
33625         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33626         to 'remove_elt'.
33627         (gl_oset_remove): Update.
33628         * lib/gl_list.c (gl_oset_remove): Update.
33629         Reported by Eric Blake.
33630
33631 2009-09-28  Eric Blake  <ebb9@byu.net>
33632
33633         doc: mention yet more cygwin 1.7 status
33634         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33635         cygwin.
33636         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33637         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33638
33639         argp: fix test failure
33640         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33641         that are not upper-case.  Pass correct range to tolower.
33642
33643 2009-09-27  Jim Meyering  <meyering@redhat.com>
33644
33645         test-yesno: work around sparc-dash here-document infelicity
33646         Without this change, the literal \177 byte in a here document
33647         would make dash 0.5.5.1-3 access uninitialized memory.
33648         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33649         Instead, use a marker, "@", and filter through tr to create the desired
33650         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33651
33652 2009-09-27  Bruno Haible  <bruno@clisp.org>
33653
33654         Disable untested support for new flavours of ACLs on AIX.
33655         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33656         progress.
33657         * lib/set-mode-acl.c (qset_acl): Likewise.
33658
33659 2008-12-07  Bruno Haible  <bruno@clisp.org>
33660
33661         Add support for new flavours of ACLs on AIX. (Untested.)
33662         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33663         (file_has_acl): Add support for newer AIX.
33664         * lib/set-mode-acl.c (qset_acl): Likewise.
33665         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33666         Rainer Tammer <tammer@tammer.net>.
33667
33668 2009-09-26  Eric Blake  <ebb9@byu.net>
33669
33670         argp: fix compilation of getopt
33671         * lib/getopt.in.h (includes): Use different guard than glibc.
33672         Reported by Sergey Poznyakoff.
33673
33674         doc: mention more cygwin 1.7 status
33675         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33676         bug.
33677         * doc/posix-functions/execl.texi (execl): Likewise.
33678         * doc/posix-functions/execle.texi (execle): Likewise.
33679         * doc/posix-functions/execlp.texi (execlp): Likewise.
33680         * doc/posix-functions/execv.texi (execv): Likewise.
33681         * doc/posix-functions/execve.texi (execve): Likewise.
33682         * doc/posix-functions/execvp.texi (execvp): Likewise.
33683         * doc/glibc-functions/canonicalize_file_name.texi
33684         (canonicalize_file_name): Cygwin 1.7 now provides this.
33685         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33686         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33687         on AT_SYMLINK_NOFOLLOW.
33688
33689 2009-09-24  Eric Blake  <ebb9@byu.net>
33690
33691         test-linkat: make test more robust
33692         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33693
33694         getopt: fix inclusion guards for cygwin
33695         * modules/getopt-posix (Depends-on): Add include-next.
33696         (Makefile.am): Substitute more items in replacement header.
33697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33698         <getopt.h>.
33699         * lib/getopt.in.h (includes): Use split inclusion guard, and
33700         prefer <getopt.h> over include <unistd.h> when one is present.
33701         (option): Also override name of 'struct option'.
33702
33703         same-inode: revert prior change; it is not yet ready
33704         * NEWS: Undo mention of this change.
33705         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33706         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33707         * lib/cycle-check.c (cycle_check): Likewise.
33708         * lib/same.c (same_name): Likewise.
33709         * lib/at-func2.c (at_func2): Likewise.
33710
33711 2009-09-23  Eric Blake  <ebb9@byu.net>
33712
33713         linkat: new module
33714         * modules/linkat: New file.
33715         * lib/at-func2.c (at_func2): Likewise.
33716         * lib/linkat.c (linkat): Likewise.
33717         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33718         * lib/openat-priv.h (at_func2): Add declaration.
33719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33720         * modules/unistd (Makefile.am): Substitute them.
33721         * lib/unistd.in.h (linkat): Declare it.
33722         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33723         * doc/posix-functions/linkat.texi (linkat): Likewise.
33724         * doc/posix-functions/link.texi (link): Tweak wording.
33725         * tests/test-link.c (main): Move guts...
33726         * tests/test-link.h (test_link): ...into new file.
33727         * modules/linkat-tests: New test.
33728         * tests/test-linkat.c: Likewise.
33729         * modules/link-tests (Files): Ship new file.
33730         (Depends-on): Add stdbool.
33731
33732         dirname: add library-safe mdir_name
33733         * lib/dirname.h (mdir_name): New prototype.
33734         * lib/dirname.c (dir_name): Move guts...
33735         (mdir_name): ...to new function that avoids xalloc_die.
33736
33737         fchdir: another mingw fix
33738         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33739         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33740         on mingw (where it has not yet been ported), and make it optional
33741         elsewhere.
33742         (_gl_register_fd): Use it.
33743
33744         same-inode: make SAME_INODE tri-state, to port to mingw
33745         * NEWS: Mention this change.
33746         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33747         st_ino always being 0.
33748         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33749         * lib/cycle-check.c (cycle_check): Likewise.
33750         * lib/same.c (same_name): Likewise.
33751
33752         lstat: avoid mingw compilation error
33753         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33755         lstat ourselves.
33756         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33757         was adequate.
33758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33759         the checks for lstat.
33760         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33761
33762         link: fix test failure on Solaris 9
33763         * lib/link.c (rpl_link): Don't assume link will catch bogus
33764         trailing slash on source.
33765
33766         test-symlinkat: enhance test
33767         * tests/test-readlink.c (main): Move guts...
33768         * tests/test-readlink.h (test_readlink): ...into new file.
33769         * tests/test-symlink.c (main): Move guts...
33770         * tests/test-symlink.h (test_symlink): ...into new file.
33771         * tests/test-symlinkat.c (main): Use new files for further
33772         coverage.
33773         (do_symlink, do_readlink): New helper functions.
33774         * modules/symlink-tests (Files): Ship new file.
33775         (Depends-on): Add stdbool.
33776         * modules/readlink-tests (Files): Ship new file.
33777         (Depends-on): Add stdbool.
33778         * modules/symlinkat-tests (Files): Use new files.
33779
33780 2009-09-23  Eric Blake  <ebb9@byu.net>
33781
33782         readlink: document portability issue with symlink length
33783         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33784         systems have bogus st_size on symlinks, and mention the
33785         areadlink-with-size module.
33786         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33787         * doc/posix-functions/readlink.texi (readlink): Mention the
33788         areadlink module, and ERANGE failure.
33789         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33790         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33791
33792         readlink: fix Solaris 9 bug with trailing slash
33793         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33794         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33795         * doc/posix-functions/readlink.texi (readlink): Document this.
33796         * modules/readlink-tests: New test.
33797         * tests/test-readlink.c: Likewise.
33798
33799         readlink: fix cygwin 1.5.x bug with return type
33800         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33801         * lib/unistd.in.h (readlink): Use ssize_t.
33802         * lib/readlink.c (readlink): Likewise.
33803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33804         * modules/unistd (Makefile.am): Substitute it.
33805         * lib/unistd.in.h (readlink): Declare replacement.
33806         * doc/posix-functions/readlink.texi (readlink): Document this.
33807
33808         symlink: use throughout gnulib
33809         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33810         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33811         symlink is not used.
33812         * modules/symlinkat (Depends-on): Add symlink.
33813         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33814         * modules/canonicalize-tests (Depends-on): Likewise.
33815         * modules/lstat-tests (Depends-on): Likewise.
33816         * modules/openat-tests (Depends-on): Likewise.
33817         * modules/remove-tests (Depends-on): Likewise.
33818         * modules/rmdir-tests (Depends-on): Likewise.
33819         * modules/unlink-tests (Depends-on): Likewise.
33820         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33821         * tests/test-canonicalize.c (symlink): Likewise.
33822         * tests/test-fstatat.c (symlink): Likewise.
33823         * tests/test-lstat.c (symlink): Likewise.
33824         * tests/test-remove.c (symlink): Likewise.
33825         * tests/test-rmdir.c (symlink): Likewise.
33826         * tests/test-unlink.c (symlink): Likewise.
33827         * tests/test-unlinkat.c (symlink): Likewise.
33828
33829         symlink: new module, for Solaris 9 bug
33830         * modules/symlink: New file.
33831         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33832         * lib/symlink.c: Likewise.
33833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33834         * modules/unistd (Makefile.am): Substitute them.
33835         * lib/unistd.in.h (symlink): Declare replacement.
33836         * MODULES.html.sh (File system functions): Mention it.
33837         * doc/posix-functions/symlink.texi (symlink): Likewise.
33838         * modules/symlink-tests: New test.
33839         * tests/test-symlink.c: Likewise.
33840
33841 2009-09-23  Bruno Haible  <bruno@clisp.org>
33842
33843         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33844         when needed.
33845         Test case: gnulib-tool --import --with-tests atexit inttypes.
33846         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33847
33848 2009-09-23  Bruno Haible  <bruno@clisp.org>
33849
33850         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33851         subcommand, not in a subshell.
33852
33853 2009-09-22  Eric Blake  <ebb9@byu.net>
33854
33855         unistd: sort replacement declarations
33856         * lib/unistd.in.h: Sort declarations.
33857
33858         open, openat: minor optimization
33859         * lib/open.c (open): If open succeeded, len is non-zero.
33860         * lib/openat.c (rpl_openat): Likewise.
33861
33862         link-follow: ensure correct result
33863         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33864         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33865         distinguish between possible failures.
33866
33867 2009-09-21  Eric Blake  <ebb9@byu.net>
33868
33869         fts: avoid compiler warning
33870         * lib/fts.c (dirent_inode_sort_may_be_useful)
33871         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33872
33873 2009-09-19  Bruno Haible  <bruno@clisp.org>
33874
33875         * lib/progreloc.c (canonicalize_file_name): New declaration.
33876
33877 2009-09-19  Eric Blake  <ebb9@byu.net>
33878
33879         link: fix quoting
33880         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33881
33882         openat: fix openat bugs on Solaris 9
33883         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33884         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33885         * modules/openat (Depends-on): Add open.
33886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33887         * modules/fcntl-h (Makefile.am): Substitute it.
33888         * lib/fcntl.in.h (openat): Declare replacement.
33889         * doc/posix-functions/openat.texi (openat): Document this.
33890
33891         openat: move fstatat and unlinkat into correct files
33892         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33893         compiled.
33894         * lib/openat.c (fstatat, unlinkat): Move...
33895         * lib/fstatat.c (fstatat): ...into correct files.
33896         * lib/unlinkat.c (unlinkat): Likewise.
33897
33898         openat: fix unlinkat bugs on Solaris 9
33899         * lib/unlinkat.c (unlinkat): New file.
33900         * modules/openat (Depends-on): Add unlink.
33901         (Files): Distribute it.
33902         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33903         trailing slash behavior is broken.
33904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33905         * modules/unistd (Makefile.am): Substitute it.
33906         * lib/unistd.in.h (unlinkat): Declare replacement.
33907         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33908
33909         openat: fix fstatat bugs on Solaris 9
33910         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33911         stat.
33912         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33913
33914         test-unlinkat: enhance test, to expose Solaris 9 bug
33915         * tests/test-unlink.c (main): Factor guts...
33916         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33917         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33918         * tests/test-rmdir.c (main): Adjust caller.
33919         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33920         (unlinker): New helper function.
33921         (rmdirat): Enhance check.
33922         * modules/rmdir-tests (Depends-on): Add stdbool.
33923         * modules/unlink-tests (Depends-on): Likewise.
33924         (Files): Add test-unlink.h.
33925         * modules/openat-tests (Files): Likewise.
33926         (Depends-on): Add unlinkdir.
33927
33928         test-fstatat: new test, to expose Solaris 9 bugs
33929         * tests/test-stat.c (main): Factor guts...
33930         * tests/test-stat.h (test_stat_func): ...into new file.
33931         * tests/test-lstat.c (main): Factor guts...
33932         * tests/test-lstat.h (test_lstat_func): ...into new file.
33933         * tests/test-fstatat.c: New file.
33934         * modules/stat-tests (Files): Add test-stat.h.
33935         * modules/lstat-tests (Files): Add test-lstat.h.
33936         (Depends-on): Add stdbool.
33937         * modules/openat-tests (Depends-on): Add pathmax.
33938         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33939         (Makefile.am): Run new test.
33940
33941         remove: new module, for mingw and Solaris 9 bugs
33942         * modules/remove: New file.
33943         * lib/remove.c: Likewise.
33944         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33946         * modules/stdio (Makefile.am): Use them.
33947         * lib/stdio.in.h (remove): Declare replacement.
33948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33949         * doc/posix-functions/remove.texi (remove): Likewise.
33950         * modules/remove-tests: New test.
33951         * tests/test-remove.c: Likewise.
33952
33953         unlink: new module, for Solaris 9 bug
33954         * modules/unlink: New file.
33955         * lib/unlink.c: Likewise.
33956         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33958         * modules/unistd (Makefile.am): Use them.
33959         * lib/unistd.in.h (stat): Declare replacement.
33960         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33961         * doc/posix-functions/unlink.texi (unlink): Likewise.
33962         * modules/unlink-tests: New test.
33963         * tests/test-unlink.c: Likewise.
33964
33965         lstat: fix Solaris 9 bug
33966         * lib/lstat.c (lstat): Also check for trailing slash on
33967         non-symlink, non-directories.  Use stat module to simplify logic.
33968         * doc/posix-functions/lstat.texi (lstat): Document it.
33969         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33970         (configure.ac): Check for symlink.
33971         * tests/test-lstat.c (main): Add more tests.
33972
33973         stat: add as dependency to other modules
33974         * modules/chown (Depends-on): Add stat.
33975         * modules/euidaccess (Depends-on): Likewise.
33976         * modules/fchdir (Depends-on): Likewise.
33977         * modules/isdir (Depends-on): Likewise.
33978         * modules/link (Depends-on): Likewise.
33979         * modules/lstat (Depends-on): Likewise.
33980         * modules/mkdir-p (Depends-on): Likewise.
33981         * modules/modechange (Depends-on): Likewise.
33982         * modules/open (Depends-on): Likewise.
33983         * modules/readlink (Depends-on): Likewise.
33984         * modules/same (Depends-on): Likewise.
33985
33986         stat: fix Solaris 9 bug
33987         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33988         slash.
33989         * lib/stat.c (rpl_stat): Work around it.
33990         * doc/posix-functions/stat.texi (stat): Update documentation.
33991
33992         stat: new module, for mingw bug
33993         * modules/stat: New file.
33994         * lib/stat.c: Likewise.
33995         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33996         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33997         * modules/sys_stat (Makefile.am): Use them.
33998         * lib/sys_stat.in.h (stat): Declare replacement.
33999         * lib/openat.c (fstatat): Deal with lstat and stat being function
34000         macros.
34001         * modules/openat (Depends-on): Add inline.
34002         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34003         * doc/posix-functions/stat.texi (stat): Likewise.
34004         * modules/stat-tests: New test.
34005         * tests/test-stat.c: Likewise.
34006
34007 2009-09-19  Jim Meyering  <meyering@redhat.com>
34008
34009         syntax-check: detect unnecessary inclusion of canonicalize.h
34010         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34011
34012 2009-09-19  Eric Blake  <ebb9@byu.net>
34013
34014         canonicalize-lgpl: adjust clients to use correct header
34015         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34016         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34017         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34018         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34019         * lib/progreloc.c (includes): Likewise.
34020
34021 2009-09-19  Jim Meyering  <meyering@redhat.com>
34022
34023         test-posixtm.c: correct a comment
34024         * tests/test-posixtm.c: Correct first-line comment.
34025         Spotted by Eric Blake.
34026
34027 2009-09-16  Jim Meyering  <meyering@redhat.com>
34028
34029         posixtm-tests: make T const-correct; add a test case
34030         * tests/test-posixtm.c (T): Declare const.
34031         Add a test for -(2^31+1).
34032         Remove useless can-succeed-only-in-2002 test.
34033
34034         posixtm-tests: adjust the sole failing test
34035         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34036         expected output matches what mktime now produces.  Cross-checked via
34037         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34038
34039         posixtm: move #ifdef'd tests into a new module
34040         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34041         * tests/test-posixtm.c: ... this new file.
34042         * modules/posixtm-tests: New module.
34043
34044 2009-09-19  Eric Blake  <ebb9@byu.net>
34045
34046         openat: simplify use of at-func.c
34047         * lib/at-func.c (includes): Include prerequisites here, to
34048         simplify requirements on client files.
34049         * lib/openat-priv.h: Add double-inclusion guard.
34050         * lib/faccessat.c (includes): Simplify.
34051         * lib/fchmodat.c (includes): Likewise.
34052         * lib/fchownat.c (includes): Likewise.
34053         * lib/mkdirat.c (includes): Likewise.
34054         * lib/mkfifoat.c (includes): Likewise.
34055         * lib/symlinkat.c (includes): Likewise.
34056
34057         openat: allow return of fd 0
34058         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34059         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34060         unistd-safer.
34061         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34062         <fcntl.h>; this module does not leak fds.
34063         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34064         must be allowed to return 0, leaving openat_safer to add the
34065         safety.
34066         (openat_permissive): Avoid writing to just-opened fd 2 if
34067         restoring the current directory fails.
34068         * lib/openat-die.c (openat_restore_fail): Add comment.
34069         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34070         (save_cwd): Guarantee safe fd, but without use of open_safer.
34071         * tests/test-openat.c: New test.
34072         * modules/openat-tests (Files, Makefile.am): Distribute and build
34073         new file.
34074
34075         relocatable-prog-wrapper: fix build
34076         * modules/relocatable-prog-wrapper (Files): Update name of
34077         canonicalize m4 file, broken on 2009-09-17.
34078         Reported by emad hajjar <aleppos@hotmail.com>.
34079
34080 2009-09-19  Bruno Haible  <bruno@clisp.org>
34081
34082         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34083         * lib/safe-alloc.c: Likewise.
34084         Reported by Ian Beckwith <ianb@erislabs.net>.
34085
34086 2009-09-18  Bruno Haible  <bruno@clisp.org>
34087
34088         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34089         Reported by <erobles@sensacd.com.mx>.
34090
34091 2009-09-17  Eric Blake  <ebb9@byu.net>
34092
34093         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34094         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34095         slashes when checking if last component is missing.
34096         * tests/test-canonicalize.c (main): Test this.
34097
34098         canonicalize, canonicalize-lgpl: honor // if distinct from /
34099         * modules/canonicalize (Files): Add double-slash-root.m4.
34100         * modules/canonicalize-lgpl (Files): Likewise.
34101         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34102         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34103         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34104         fallback definition.
34105         (canonicalize_filename_mode): Use it to protect //.
34106         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34107         (__realpath): Likewise.
34108         * tests/test-canonicalize.c (main): Test this.
34109         * tests/test-canonicalize-lgpl.c (main): Likewise.
34110         * modules/canonicalize-tests (Depends-on): Add same-inode.
34111         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34112
34113         canonicalize-lgpl: fix glibc bug with trailing slash
34114         * m4/canonicalize-lgpl.m4: Move contents...
34115         * m4/canonicalize.m4: ...here.
34116         (gl_CANONICALIZE_LGPL): Factor realpath check...
34117         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34118         glibc 2.3.5 bug, fixed 2005-04-27.
34119         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34120         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34121         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34122         * modules/canonicalize-lgpl (Files): Manage file rename.
34123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34124         * modules/stdlib (Makefile.am): Substitute witness.
34125         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34126         is needed.
34127         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34128         replacement is required.
34129         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34130         * doc/glibc-functions/canonicalize_file_name.texi
34131         (canonicalize_file_name): Document this.
34132         * doc/posix-functions/realpath.texi (realpath): Likewise.
34133
34134         canonicalize-lgpl: reject non-directory with trailing slash
34135         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34136         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34137         catches failures in glibc 2.3.5.
34138         * tests/test-canonicalize.c (main): Likewise.
34139
34140         canonicalize-lgpl: use native realpath if it works
34141         * lib/canonicalize-lgpl.c (realpath): Guard with
34142         FUNC_REALPATH_WORKS.
34143         * lib/stdlib.in.h (realpath): Make declaration optional based on
34144         HAVE_REALPATH.
34145         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34146         native realpath works.
34147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34148         * modules/stdlib (Makefile.am): Substitute witness.
34149
34150         canonicalize, canonicalize-lgpl: use <stdlib.h>
34151         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34152         (Include): Mention <stdlib.h>.
34153         (configure.ac): Mention functions we provide.
34154         * modules/canonicalize (configure.ac): Likewise.
34155         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34156         realpath if canonicalize_file_name is missing.
34157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34158         * modules/stdlib (Makefile.am): Substitute witnesses.
34159         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34160         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34161         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34162         * NEWS: Document this.
34163         * doc/glibc-functions/canonicalize_file_name.texi
34164         (canonicalize_file_name): Likewise.
34165         * doc/posix-functions/realpath.texi (realpath): Likewise.
34166         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34167
34168         test-canonicalize: consolidate into single C program
34169         * tests/test-canonicalize.sh: Delete; move setup into...
34170         * tests/test-canonicalize.c (main): ...the program, making it
34171         easier to run in debugger.  Add some tests.
34172         * modules/canonicalize-tests (Files): Remove unused file.
34173         (Depends-on): Add progname.
34174         (configure.ac, Makefile.am): Simplify.
34175
34176         test-canonicalize-lgpl: consolidate into single C program
34177         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34178         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34179         easier to run in debugger.  Add some tests.
34180         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34181         (configure.ac, Makefile.am): Simplify.
34182
34183         canonicalize: avoid resolvepath
34184         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34185         unnecessary checks.
34186         * lib/canonicalize.c (includes): Simplify.
34187         (canonicalize_file_name): Drop resolvepath implementation.
34188         * modules/canonicalize (Depends-on): Drop filenamecat.
34189
34190         canonicalize: don't lose errno
34191         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34192         over calls to free.
34193
34194         canonicalize: simplify errno handling
34195         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34196         assignment.
34197
34198         canonicalize, canonicalize-lgpl: update module dependencies
34199         * modules/canonicalize (Depends-on): Add extensions, lstat,
34200         pathmax, stdlib.
34201         (Files): Drop pathmax.h.
34202         (configure.ac): Adjust macro name.
34203         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34204         lstat, stdlib, sys_stat.
34205         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34206         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34207         extensions.
34208         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34209         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34210         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34211         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34212         declaration, if available.
34213         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34214         we can rely on the readlink module.
34215         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34216         (includes): Use <unistd.h> unconditionally.
34217
34218 2009-09-17  Eric Blake  <ebb9@byu.net>
34219
34220         maint: make Include sections of modules consistent
34221         * modules/alloca: Use only header name; no need to list #include.
34222         * modules/alloca-opt: Likewise.
34223         * modules/arpa_inet: Likewise.
34224         * modules/canon-host: Likewise.
34225         * modules/configmake: Likewise.
34226         * modules/dirent: Likewise.
34227         * modules/eealloc: Likewise.
34228         * modules/environ: Likewise.
34229         * modules/fchdir: Likewise.
34230         * modules/fcntl: Likewise.
34231         * modules/fcntl-h: Likewise.
34232         * modules/gethrxtime: Likewise.
34233         * modules/gettime: Likewise.
34234         * modules/ignore-value: Likewise.
34235         * modules/inet_ntop: Likewise.
34236         * modules/inet_pton: Likewise.
34237         * modules/inttypes: Likewise.
34238         * modules/isnand-nolibm: Likewise.
34239         * modules/isnanf-nolibm: Likewise.
34240         * modules/mbchar: Likewise.
34241         * modules/mbfile: Likewise.
34242         * modules/mbiter: Likewise.
34243         * modules/mbuiter: Likewise.
34244         * modules/netdb: Likewise.
34245         * modules/netinet_in: Likewise.
34246         * modules/nproc: Likewise.
34247         * modules/pagealign_alloc: Likewise.
34248         * modules/poll: Likewise.
34249         * modules/printf-frexp: Likewise.
34250         * modules/pthread: Likewise.
34251         * modules/putenv: Likewise.
34252         * modules/random_r: Likewise.
34253         * modules/relocatable-prog: Likewise.
34254         * modules/search: Likewise.
34255         * modules/select: Likewise.
34256         * modules/selinux-h: Likewise.
34257         * modules/settime: Likewise.
34258         * modules/signal: Likewise.
34259         * modules/size_max: Likewise.
34260         * modules/socklen: Likewise.
34261         * modules/ssize_t: Likewise.
34262         * modules/stdarg: Likewise.
34263         * modules/stdbool: Likewise.
34264         * modules/stddef: Likewise.
34265         * modules/stdint: Likewise.
34266         * modules/stdio: Likewise.
34267         * modules/stdlib: Likewise.
34268         * modules/string: Likewise.
34269         * modules/strings: Likewise.
34270         * modules/sys_file: Likewise.
34271         * modules/sys_ioctl: Likewise.
34272         * modules/sys_select: Likewise.
34273         * modules/sys_socket: Likewise.
34274         * modules/sys_stat: Likewise.
34275         * modules/sys_time: Likewise.
34276         * modules/sys_times: Likewise.
34277         * modules/sys_utsname: Likewise.
34278         * modules/sys_wait: Likewise.
34279         * modules/sysexits: Likewise.
34280         * modules/time: Likewise.
34281         * modules/times: Likewise.
34282         * modules/tmpfile: Likewise.
34283         * modules/trim: Likewise.
34284         * modules/unistd: Likewise.
34285         * modules/wchar: Likewise.
34286         * modules/wctype: Likewise.
34287
34288 2009-09-17  Bruno Haible  <bruno@clisp.org>
34289
34290         Make getdate.y compile on QNX and NetBSD 5 / i386.
34291         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34292         TIME_T_FITS_IN_LONG_INT.
34293         * lib/getdate.y (long_time_t): New type.
34294         (relative_time): Change type of 'seconds' field to long_time_t.
34295         (get_date): Update types of local variables. Check against overflow
34296         during conversion from long_time_t to time_t.
34297         Reported by Matt Kraai <kraai@ftbfs.org>
34298         and Hasso Tepper <hasso@netbsd.org>.
34299
34300 2009-09-17  Bruno Haible  <bruno@clisp.org>
34301
34302         * modules/COPYING: Update copyright years.
34303         * modules/README: Likeiwse.
34304         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34305         Reported by Ian Beckwith <ianb@erislabs.net>.
34306
34307 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34308
34309         * users.txt: Update references for gnuit package.
34310
34311 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34312
34313         * m4/getdelim.m4: Fix typo in copyright line.
34314
34315 2009-09-17  Bruno Haible  <bruno@clisp.org>
34316
34317         * lib/atoll.c: Use the standard header with GPL copyright.
34318         * lib/argz.in.h: Likewise.
34319         * lib/glob.c: Likewise.
34320         * lib/glob-libc.h: Likewise.
34321         * lib/random_r.c: Likewise.
34322         * lib/siglist.h: Likewise.
34323         * lib/strsignal.c: Likewise.
34324         Reported by Ian Beckwith <ianb@erislabs.net>.
34325
34326 2009-09-17  Eric Blake  <ebb9@byu.net>
34327
34328         rmdir: ensure correct dependency order
34329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34330
34331 2009-09-17  Bruno Haible  <bruno@clisp.org>
34332
34333         Disable assertion that fails on NetBSD 5 / i386.
34334         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34335         Reported by Sam Steingold <sds@gnu.org>
34336         and Hasso Tepper <hasso@netbsd.org>.
34337
34338 2009-09-16  Eric Blake  <ebb9@byu.net>
34339
34340         unlinkdir: port to mingw
34341         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34342         on which no one can unlink a directory.
34343
34344         stdlib: sort witness names
34345         * modules/stdlib (Makefile.am): Sort replacements.
34346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34347         * lib/stdlib.in.h: Likewise.
34348
34349         parse-duration-tests: avoid link failure
34350         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34351         LIBINTL.
34352         Reported by Tom G. Christensen.
34353
34354         openat-tests: ensure unlinkat behaves like rmdir
34355         * tests/test-rmdir.c (main): Factor guts...
34356         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34357         * modules/rmdir-tests (Files): Ship new file.
34358         * modules/openat-tests: New test.
34359         * tests/test-unlinkat.c: Likewise.
34360
34361         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34362         * modules/rmdir-errno (Status, Notice): Now obsolete.
34363
34364         rmdir: work around cygwin 1.5.x and mingw bugs
34365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34366         * lib/rmdir.c (rmdir): Work around it.
34367         * modules/rmdir (Status, Notice): No longer obsolete.
34368         (Files): Add dos.m4.
34369         (Depends-on): Add unistd.
34370         (configure.ac): Set witnesses.
34371         (License): Relax to LGPLv2+.
34372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34373         * modules/unistd (Makefile.am): Substitute witnesses.
34374         * lib/unistd.in.h (rmdir): Declare replacement.
34375         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34376         * modules/rmdir-tests: New tests.
34377         * tests/test-rmdir.c: Likewise.
34378
34379 2009-09-15  Eric Blake  <ebb9@byu.net>
34380
34381         fchdir: improve use of replacement functions
34382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34384         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34385         REPLACE_CLOSEDIR.
34386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34387         * modules/sys_stat (Makefile.am): Substitute correct witness.
34388         * modules/dirent (Makefile.am): Likewise.
34389         * modules/unistd (Makefile.am): Likewise.
34390         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34391         * lib/unistd.in.h (dup): Likewise.
34392         * lib/sys_stat.in.h (fstat): Likewise.
34393
34394         maint: ignore gnulib-tool temp files
34395         * .gitignore: Ignore files created during gnulib-tool --test.
34396
34397 2009-09-13  Jim Meyering  <meyering@redhat.com>
34398
34399         posixtm: don't reject a time that specify "60" as the number of seconds
34400         * lib/posixtm.c (posixtime): The code to reject invalid dates
34401         would also reject a time specified with the .60 suffix.
34402         But POSIX allows that, in order to accommodate leap seconds.
34403         So don't reject it.
34404         (main): Adjust tests accordingly.
34405         * modules/posixtm (Depends-on): Add stpcpy.
34406
34407 2009-09-11  Jim Meyering  <meyering@redhat.com>
34408
34409         announce-gen: include [$release_type] in emitted Subject:
34410         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34411         e.g., [stable] in the emitted Subject: line.
34412
34413 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34414
34415         Remove obsolete macros from several modules.
34416         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34417         obsolete Autoconf macros with their modern counterparts.
34418         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34419         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34420         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34421         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34423         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34425         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34426         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34427         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34428         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34430         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34431         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34432         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34433         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34434         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34435         * m4/time_r.m4 (gl_TIME_R): Likewise.
34436         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34437         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34438         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34439
34440         Fix copyright header in build-aux scripts.
34441         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34442         recommendation.
34443         * build-aux/ncftpput-ftp: Likewise.
34444         * build-aux/update-copyright: Likewise.
34445
34446 2009-09-09  Eric Blake  <ebb9@byu.net>
34447
34448         test-link: allow Linux choice of errno
34449         * tests/test-link.c (main): Relax test for alternate error.
34450
34451         strndup: fix improper m4 caching
34452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34453         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34454         (gl_PREREQ_STRNDUP): Delete.
34455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34456         * modules/string (Makefile.am): Substitute it.
34457         * lib/string.in.h (strndup): Modernize prototype.
34458
34459         getcwd: port to mingw
34460         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34461         different from the POSIX assumptions made throughout the getcwd
34462         module; fortunately, the mingw getcwd does not need replacement.
34463         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34464         * modules/getcwd-tests: New test.
34465         * tests/test-getcwd.c: Likewise.
34466
34467         link: fix platform bugs
34468         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34469         * lib/link.c (link): Work around them.  Fix related mingw bug.
34470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34471         * modules/unistd (Makefile.am): Substitute it.
34472         * lib/unistd.in.h (link): Declare replacement.
34473         * doc/posix-functions/link.texi (link): Document this.
34474         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34475
34476         test-link: consolidate into single C program, test more cases
34477         * tests/test-link.sh: Delete.
34478         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34479         at least Cygwin and Solaris.
34480         * modules/link-tests (Files): Remove unused file.
34481         (Depends-on): Add errno, sys_stat.
34482         (Makefile.am): Simplify.
34483
34484 2009-09-08  Bruno Haible  <bruno@clisp.org>
34485
34486         Work around towlower, towupper bug on mingw.
34487         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34488         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34489         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34490         * doc/posix-functions/towupper.texi: Likewise.
34491         Reported by Eric Blake.
34492
34493 2009-09-08  Jim Meyering  <meyering@redhat.com>
34494
34495         build: don't try to run autoheader if we don't use it
34496         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34497         is not used in configure.ac.
34498
34499 2009-09-08  Eric Blake  <ebb9@byu.net>
34500
34501         euidaccess: fix compilation error
34502         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34503
34504         rawmemchr: relax license
34505         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34506         okay.
34507         Reported by Jim Meyering.
34508
34509         mkfifoat: new module
34510         * modules/mkfifoat: New file.
34511         * lib/mkfifoat.c: Likewise.
34512         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34514         * modules/sys_stat (Makefile.am): Use them.
34515         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34516         * MODULES.html.sh (File system functions): Mention module.
34517         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34518         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34519         * modules/mkfifoat-tests: New test.
34520         * tests/test-mkfifoat.c: Likewise.
34521
34522         strchrnul: relax license
34523         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34524         okay.
34525         Reported by Jim Meyering.
34526
34527 2009-09-08  Eric Blake  <ebb9@byu.net>
34528
34529         fstatat: fix compilation on Solaris
34530         * lib/fstatat.c (includes): Add fcntl.h.
34531         Reported by Pádraig Brady.
34532
34533 2009-09-07  Eric Blake  <ebb9@byu.net>
34534
34535         rename: modernize replacement
34536         * modules/rename (Depends-on): Add stdio.
34537         (configure.ac): Declare witness.
34538         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34539         stdio take care of replacement.
34540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34541         * modules/stdio (Makefile.am): Substitute them.
34542         * lib/stdio.in.h (rename): Declare replacement.
34543         * lib/rename.c (includes): Allow cross-compilation to non-windows
34544         machines.
34545         * doc/posix-functions/rename.texi (rename): Improve
34546         documentation.
34547
34548         stdio: sort witness names
34549         * modules/stdio (Makefile.am): Sort replacements.
34550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34551         * lib/stdio.in.h: Likewise.
34552
34553         getcwd: minor cleanups
34554         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34555         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34556
34557         openat: provide more convenience names
34558         * modules/faccessat (configure.ac): Add C witness.
34559         * lib/unistd.in.h (readlinkat): Fix typo.
34560         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34561         convenience wrappers.
34562         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34563         wrappers in syntax checks.
34564
34565 2009-09-06  Eric Blake  <ebb9@byu.net>
34566
34567         doc: fix comments in recent patches
34568         * lib/faccessat.c: Mention correct function.
34569         * lib/fchmodat.c: Likewise.
34570         * lib/fchownat.c: Likewise.
34571         * lib/symlinkat.c: Likewise.
34572         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34573         constants.
34574
34575         faccessat, symlinkat: continue cleanup of previous patch
34576         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34577         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34578         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34580         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34581         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34582         set.
34583
34584 2009-09-06  Bruno Haible  <bruno@clisp.org>
34585
34586         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34587         (fstatat): Declare if GNULIB_FSTATAT is set.
34588         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34589         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34590         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34591         * modules/fcntl-h (Files): Remove m4/openat.m4.
34592         * modules/sys_stat (Files): Remove m4/openat.m4.
34593         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34594         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34595         * modules/unistd (Files): Remove m4/openat.m4.
34596         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34597         GNULIB_OPENAT.
34598         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34599         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34600         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34601         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34602         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34603         gl_OPENAT_DEFAULTS.
34604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34605         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34606         Don't require gl_OPENAT_DEFAULTS.
34607         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34608         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34609         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34610         (gl_OPENAT_DEFAULTS): Remove macro.
34611
34612 2009-09-06  Bruno Haible  <bruno@clisp.org>
34613
34614         * modules/openat (configure.ac): Remove unneeded witness.
34615
34616 2009-09-06  Bruno Haible  <bruno@clisp.org>
34617
34618         Set errno to ENOSYS when a function is entirely unsupported.
34619         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34620         EOPNOTSUPP.
34621         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34622         * modules/chown (Depends-on): Remove errno.
34623
34624 2009-09-06  Bruno Haible  <bruno@clisp.org>
34625
34626         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34627
34628 2009-09-06  Bruno Haible  <bruno@clisp.org>
34629
34630         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34631
34632 2009-09-06  Ben Pfaff  <blp@gnu.org>
34633             Bruno Haible  <bruno@clisp.org>
34634
34635         Work around a glibc bug in strtok_r.
34636         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34637         Undefine if UNDEFINE_STRTOK_R is set.
34638         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34640         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34642         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34643         UNDEFINE_STRTOK_R.
34644         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34645
34646 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34647
34648         exclude: minor fix
34649         * lib/exclude.c: Include wctype.h
34650
34651 2009-09-06  Akim Demaille  <demaille@gostai.com>
34652
34653         bootstrap: improve error message
34654         * build-aux/bootstrap (find_tool): Upon failure, report the list
34655         of candidates.
34656         Honor the initial value of the envvar.
34657
34658 2009-09-05  Eric Blake  <ebb9@byu.net>
34659
34660         symlinkat: new module
34661         * modules/symlinkat: New file.
34662         * lib/symlinkat.c: Likewise.
34663         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34665         * modules/unistd (Makefile.am): Use them.
34666         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34667         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34668         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34669         * MODULES.html.sh (File system functions): Mention module.
34670         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34671         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34672         * modules/symlinkat-tests: New test.
34673         * tests/test-symlinkat.c: Likewise.
34674
34675         test-openat-safer: add more checks
34676         * tests/test-openat-safer.c (main): Check more code paths.
34677
34678 2009-09-05  Jim Meyering  <meyering@redhat.com>
34679
34680         syntax-check: detect unnecessary inclusion of openat.h
34681         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34682
34683 2009-09-05  Bruno Haible  <bruno@clisp.org>
34684
34685         Support towlower, towupper.
34686         * doc/posix-functions/towlower.texi: Mention module wctype.
34687         * doc/posix-functions/towupper.texi: Likewise.
34688         * lib/wctype.in.h (towlower, towupper): New functions.
34689         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34690         (ASSERT): New macro.
34691         (e): New variable.
34692         (main): Test also towlower, towupper. Test WEOF argument.
34693         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34694
34695 2009-09-05  Bruno Haible  <bruno@clisp.org>
34696
34697         Fix conversion behaviour when the input is invalid.
34698         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34699         mark occurring in first pass of indirect conversion.
34700         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34701         input.
34702         Found by clang's static analyzer.
34703
34704 2009-09-05  Bruno Haible  <bruno@clisp.org>
34705
34706         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34707         where direct conversion is possible.
34708
34709 2009-09-04  Eric Blake  <ebb9@byu.net>
34710
34711         openat: fail with ENOENT on empty name
34712         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34713         buffer.
34714
34715         link-follow: fix logic bug in prior patch
34716         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34717         reversed sense of yes and no in prior patch.  Avoid confusing
34718         compilation failure with desired semantics.
34719
34720         link-follow: accomodate mingw and cross-compilation
34721         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34722         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34723         cross-compilation results to -1, to make linkat easier to
34724         implement when cross-compiling.  Trivially support mingw.
34725         * modules/link-follow (configure.ac): Call new name.
34726         * NEWS: Mention this.
34727
34728 2009-09-03  Eric Blake  <ebb9@byu.net>
34729
34730         faccessat: compile replacement
34731         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34732         needed.
34733
34734         fts: fix compilation error
34735         * lib/fts.c (includes): Re-add "openat.h", for
34736         openat_needs_fchdir.
34737
34738         faccessat: new module
34739         * modules/faccessat: New file.
34740         * lib/faccessat.c: Likewise.
34741         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34743         * modules/unistd (Makefile.am): Use it.
34744         * lib/unistd.in.h (faccessat): Declare it.
34745         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34746         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34747         * MODULES.html.sh (File system functions): Mention it.
34748         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34749         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34750
34751         euidaccess: prefer POSIX over non-standard implementation
34752         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34753         * lib/euidaccess.c (euidaccess): Use it if available.
34754
34755         openat: make template easier to use
34756         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34757         AT_FUNC_F2 to be undefined.
34758         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34759         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34760         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34761         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34762         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34763         Likewise.
34764         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34765         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34766         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34767         Likewise.
34768
34769         openat: declare in POSIX headers
34770         * NEWS: Mention this.
34771         * modules/openat (configure.ac): Declare witnesses.
34772         (Depends-on): Add fcntl-h, sys_stat, unistd.
34773         (Include): Mention correct headers.
34774         * modules/fcntl-h (Depends-on): Add link-warning.
34775         (Files): Add openat.m4.
34776         (Makefile.am): Substitute witnesses.
34777         * modules/sys_stat (Files, Makefile.am): Likewise.
34778         * modules/unistd (Files, Makefile.am): Likewise.
34779         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34780         (gl_OPENAT_DEFAULTS): New macro.
34781         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34783         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34784         (SYS_STAT_H): Remove unused variable.
34785         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34786         * lib/fcntl--.h (includes): Remove unneeded header.
34787         * lib/openat-safer.c (includes): Likewise.
34788         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34789         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34790         appropriate headers.
34791         (__OPENAT_PREFIX): Delete.
34792         * lib/fcntl.in.h (openat): Provide declaration.
34793         (AT_FDCWD): Fix Solaris bug.
34794         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34795         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34796         * lib/fchmodat.c (includes):  Adjust to find declaration.
34797         * lib/fchownat.c (includes): Likewise.
34798         * lib/mkdirat.c (includes): Likewise.
34799         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34800         still visible.
34801
34802 2009-09-02  Eric Blake  <ebb9@byu.net>
34803
34804         errno: use consistently
34805         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34806         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34807         * lib/canonicalize.c (ELOOP): Likewise.
34808         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34809         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34810         * lib/lchown.c (EOPNOTSUPP): Likewise.
34811         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34812         * lib/savewd.c (ESTALE): Likewise.
34813         * lib/settime.c (ENOSYS): Likewise.
34814         * lib/utimens.c (ENOSYS): Likewise.
34815         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34816         * lib/chdir-safer.c (ELOOP): Likewise.
34817         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34818         * modules/c-stack (Depends-on): Add errno.
34819         * modules/canonicalize (Depends-on): Likewise.
34820         * modules/chdir-safer (Depends-on): Likewise.
34821         * modules/fdopendir (Depends-on): Likewise.
34822         * modules/inet_ntop (Depends-on): Likewise.
34823         * modules/inet_pton (Depends-on): Likewise.
34824         * modules/lchown (Depends-on): Likewise.
34825         * modules/openat (Depends-on): Likewise.
34826         * modules/savewd (Depends-on): Likewise.
34827         * modules/settime (Depends-on): Likewise.
34828         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34829
34830         fts: avoid leaking fds
34831         * modules/fts (Depends-on): Add cloexec.
34832         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34833         flag.
34834
34835         fts: make directory fds more robust
34836         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34837         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34838
34839         backupfile, chdir-long, fts, savedir: make safer
34840         * lib/backupfile.c (includes): Use "dirent--.h", since
34841         numbered_backup can write to stderr during readdir.
34842         * lib/savedir.c (includes): Likewise.
34843         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34844         emulation can write to stderr on failure.
34845         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34846         * lib/getcwd.c: Document why opendir_safer is unused.
34847         * lib/glob.c: Likewise.
34848         * lib/scandir.c: Likewise.
34849         * lib/openat-proc.c: Likewise, for open_safer.
34850         * modules/backupfile (Depends-on): Add dirent-safer.
34851         * modules/savedir (Depends-on): Likewise.
34852         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34853         * modules/chdir-long (Depends-on): Add openat-safer.
34854
34855         openat-safer: new module
34856         * modules/openat-safer: New file.
34857         * lib/openat-safer.c: Likewise.
34858         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34859         * lib/fcntl-safer.h (openat_safer): Declare.
34860         * lib/fcntl--.h (openat): Override.
34861         * MODULES.html.sh (File descriptor based I/O): Mention it.
34862         * lib/openat.h: Add double-inclusion guards.
34863         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34864         "fcntl--.h", so we can implement openat.
34865         * modules/openat-safer-tests: New test.
34866         * tests/test-openat-safer.c: New file.
34867
34868         dirent-safer: new module
34869         * modules/dirent-safer: New file.
34870         * lib/dirent--.h: Likewise.
34871         * lib/dirent-safer.h: Likewise.
34872         * lib/opendir-safer.c: Likewise.
34873         * m4/dirent-safer.m4: Likewise.
34874         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34875         * modules/dirent-safer-tests: New test.
34876         * tests/test-dirent-safer.c: New file.
34877         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34878
34879         fdopendir: optimize on mingw
34880         * lib/unistd.in.h (_gl_directory_name): New prototype.
34881         * lib/fchdir.c (_gl_directory_name): Implement it.
34882         (fchdir): Use it to simplify implementation.
34883         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34884         fchdir, when available, to avoid calling [f]chdir().
34885
34886         fdopendir: split into its own module
34887         * lib/openat.c (fdopendir): Move...
34888         * lib/fdopendir.c: ...into new file.
34889         * modules/fdopendir: New module.
34890         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34891         * modules/openat (Depends-on): Add fdopendir.
34892         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34893         fdopendir here.
34894         * modules/savedir (Depends-on): Only need fdopendir, not full
34895         openat.
34896         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34897         * lib/openat.h (fdopendir): Drop prototype.
34898         * lib/dirent.in.h (fdopendir): Provide prototype.
34899         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34900         * modules/dirent (Makefile.am): Substitute them.
34901         * MODULES.html.sh (File system functions): Mention it.
34902         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34903         * modules/fdopendir-tests: New file.
34904         * tests/test-fdopendir.c: Likewise.
34905
34906         fchdir: use more consistent macro convention
34907         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34908         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34909         REPLACE_FCHDIR, rather than relying on config.h macros.
34910         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34911         inside a single make-time REPLACE_FCHDIR block, rather than using
34912         the config.h FCHDIR_REPLACEMENT.
34913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34914         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34915         Manage fstat replacement.
34916         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34917         REPLACE_FCHDIR.
34918         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34919         (Makefile.am): Substitute REPLACE_FCHDIR.
34920         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34921         FCHDIR_REPLACEMENT.
34922         * lib/dup-safer.c (dup_safer): Likewise.
34923         * lib/dup2.c (rpl_dup2): Likewise.
34924         * lib/dup3.c (rpl_dup3): Likewise.
34925         * lib/open.c (rpl_open): Likewise.
34926
34927         fchdir: simplify error handling, and support dup3
34928         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34929         stdbool, malloc-posix, realloc-posix.
34930         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34931         (ensure_dirs_slot): Return false on allocation failure.
34932         (rpl_dup2): Delete.
34933         (_gl_register_dup): New function.
34934         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34935         (_gl_register_fd): Close fd on allocation failure.
34936         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34937         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34938         prototype.
34939         (rpl_dup2_fchdir): Delete prototype.
34940         * lib/open.c (open): Update caller.
34941         * lib/dup2.c (dup2): Track fchdir metadata.
34942         * lib/dup3.c (dup3): Likewise.
34943         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34945
34946 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34947
34948         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34949         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34950         don't pass arguments to AC_OUTPUT.
34951
34952 2009-09-02  Bruno Haible  <bruno@clisp.org>
34953
34954         * modules/mkdtemp (License): Relicense under LGPLv2+.
34955         Reported by Paolo Bonzini.
34956
34957 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34958
34959         Replace uses of obsolete autoconf macros in Jim's modules.
34960         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34961         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34962         can evoke a warning from autoconf when run with -Wobsolete
34963         enabled.  They were declared obsolete for good reasons (see
34964         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34965         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34966         should not continue using the deprecated macros.
34967         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34968         obsolete Autoconf macros with modern counterparts.
34969         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34970         * m4/dos.m4 (gl_AC_DOS): Likewise.
34971         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34973         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34974         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34975         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34976         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34977         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34978         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34979         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34980         Likewise.
34981         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34982         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34983         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34984         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34985         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34986         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34987
34988 2009-09-01  Eric Blake  <ebb9@byu.net>
34989
34990         fchdir: fix off-by-one bug in previous patch
34991         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34992         (_gl_unregister_fd): Delete useless if.
34993
34994 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34995
34996         maint.mk: sort the list of syntax-check rules
34997         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34998         easier to get a sense of progress when the rules are run sequentially
34999         and take a long time.
35000
35001 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35002
35003         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35004         * modules/netinet_in: Likewise.
35005         * modules/sys_file: Likewise.
35006         * modules/sys_ioctl: Likewise.
35007         * modules/sys_select: Likewise.
35008         * modules/sys_socket: Likewise.
35009         * modules/sys_stat: Likewise.
35010         * modules/sys_time: Likewise.
35011         * modules/sys_times: Likewise.
35012         * modules/sys_utsname: Likewise.
35013         * modules/sys_wait: Likewise.
35014
35015 2009-09-01  Jim Meyering  <meyering@redhat.com>
35016
35017         fts: help ensure that return values are not ignored
35018         * lib/fts_.h (__GNUC_PREREQ): Define.
35019         (__attribute_warn_unused_result__): Define.
35020         (fts_children, fts_close, fts_open, fts_read): Declare with
35021         __attribute_warn_unused_result__.
35022
35023         fts: fts_close now fails also when closing a dir file descriptor fails
35024         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35025         and propagate to caller, along with errno.
35026
35027         announce-gen: correct formatting in --help output
35028         * build-aux/announce-gen (usage): Move the one-line description in
35029         --help output "up", to where it belongs, just after Usage:.
35030
35031 2009-08-31  Eric Blake  <ebb9@byu.net>
35032
35033         fchdir: port to mingw
35034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35035         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35036         opened, then use a substitute.
35037         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35038         replacement.
35039         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35040         (_gl_register_fd): No need to check stat if open already filters
35041         all directories.
35042         (fchdir): Fix error condition to match POSIX.
35043         * modules/fchdir (Depends-on): Add sys_stat.
35044         * doc/posix-functions/open.texi (open): Document the limitation.
35045         * modules/fchdir-tests: New file.
35046         * tests/test-fchdir.c: Likewise.
35047
35048         canonicalize: allow cross-testing from cygwin to mingw
35049         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35050         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35051         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35052         Likewise.
35053         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35054         target does not support symlinks.
35055         * tests/test-canonicalize-lgpl.sh: Likewise.
35056
35057         chown: avoid compilation warning on mingw
35058         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35059         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35060         mingw.
35061         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35062         * modules/chown (Depends-on): Add errno.
35063
35064 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35065
35066         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35067         command.
35068
35069 2009-08-31  Jim Meyering  <meyering@redhat.com>
35070
35071         canonicalize: remove useless initialization
35072         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35073         initialization of local, "end".
35074
35075 2009-08-30  Bruno Haible  <bruno@clisp.org>
35076
35077         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35078         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35079         ENOSYS.
35080
35081 2009-08-30  Bruno Haible  <bruno@clisp.org>
35082
35083         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35084         /usr/xpg4/bin/tr when it exists.
35085         * tests/test-pipe-filter-gi1.sh: Likewise.
35086
35087 2009-08-30  Bruno Haible  <bruno@clisp.org>
35088
35089         Work around deficient /usr/bin/id program on Solaris.
35090         * tests/test-file-has-acl.sh (ID): New variable.
35091         * tests/test-set-mode-acl.sh (ID): Likewise.
35092         * tests/test-copy-acl.sh (ID): Likewise.
35093         * tests/test-copy-file.sh (ID): Likewise.
35094
35095 2009-08-30  Bruno Haible  <bruno@clisp.org>
35096
35097         New module 'xstriconveh'.
35098         * lib/xstriconveh.h: New file.
35099         * lib/xstriconveh.c: New file.
35100         * modules/xstriconveh: New file.
35101
35102 2009-08-30  Bruno Haible  <bruno@clisp.org>
35103
35104         Make it easier to use mem_cd_iconveh.
35105         * lib/striconveh.h (iconveh_t): New type.
35106         (iconveh_open, iconveh_close): New declarations.
35107         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35108         with a single 'const iconveh_t *' argument.
35109         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35110         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35111         with a single 'const iconveh_t *' argument.
35112         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35113         * tests/test-striconveh.c (main): Update.
35114         * NEWS: Mention the change.
35115
35116 2009-08-30  Bruno Haible  <bruno@clisp.org>
35117
35118         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35119         problem.
35120
35121 2009-08-30  Bruno Haible  <bruno@clisp.org>
35122
35123         Work around iconv_open problem on Solaris.
35124         * lib/iconv_open-solaris.gperf: New file.
35125         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35126         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35127         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35128         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35129         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35130         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35131
35132 2009-08-29  Jim Meyering  <meyering@redhat.com>
35133
35134         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35135         * top/maint.mk (cvs-check): Remove target; it was just an alias
35136         to the better-named vc-diff-check.
35137         (maintainer-distcheck): Remove rule.  It was used only from
35138         the (alpha/beta/major) target, and all of its commands but one
35139         were coreutils-specific.
35140         (vc-dist): Remove rule.
35141         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35142         Run vc-diff-check, not vc-dist.
35143         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35144
35145 2009-08-27  Bruno Haible  <bruno@clisp.org>
35146
35147         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35148         of 0.
35149
35150 2009-08-27  Bruno Haible  <bruno@clisp.org>
35151
35152         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35153         compilers.
35154         * doc/func.texi: Document the SunPRO C bug.
35155
35156 2009-08-27  Bruno Haible  <bruno@clisp.org>
35157
35158         Fix link error on Solaris.
35159         * tests/test-parse-duration.c (xstrdup): Remove function.
35160
35161 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35162
35163         ignore-value: handle pointer types, too
35164         * lib/ignore-value.h (__attribute__): Remove definition.
35165         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35166         of a more concise and more-often effective "(void) i" statement.
35167         (ignore_ptr): New function to suppress warnings from functions that
35168         return pointers, and to make it explicit that one function doesn't
35169         handle all cases.
35170
35171 2009-08-25  Bruno Haible  <bruno@clisp.org>
35172
35173         dup2: work around a Linux bug.
35174         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35175         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35176         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35177         Reported by Simon Josefsson.
35178
35179 2009-08-25  Jim Meyering  <meyering@redhat.com>
35180
35181         libguestfs uses gnulib
35182         * users.txt: Add libguestfs.
35183
35184 2009-08-24  Eric Blake  <ebb9@byu.net>
35185
35186         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35187         * lib/pipe2.c (includes): Add binary-io.h.
35188         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35189
35190 2009-08-24  Bruno Haible  <bruno@clisp.org>
35191
35192         Tolerate declared but missing accept4 syscall.
35193         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35194         available.
35195         * lib/sys_socket.in.h (accept4): If the function is already present,
35196         override it.
35197         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35198         * modules/accept4 (Makefile.am): Compile accept4.c always.
35199         Reported by Paolo Bonzini and Eric Blake.
35200
35201 2009-08-23  Bruno Haible  <bruno@clisp.org>
35202
35203         New module 'accept4'.
35204         * lib/sys_socket.in.h (accept4): New declaration.
35205         * lib/accept4.c: New file.
35206         * m4/accept4.m4: New file.
35207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35208         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35209         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35210         HAVE_ACCEPT4.
35211         * modules/accept4: New file.
35212         * doc/glibc-functions/accept4.texi: Mention the new module.
35213
35214 2009-08-24  Jim Meyering  <meyering@redhat.com>
35215
35216         progname: also set global program_invocation_name, when possible
35217         Before this change, a libtool-enabled program that calls glibc's
35218         error function would report the program name as
35219         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35220         * modules/progname (configure.ac): Check for a declaration of
35221         program_invocation_name.
35222         * lib/progname.c:  Include <errno.h>.
35223         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35224         Set program_invocation_name.
35225
35226 2009-08-23  Bruno Haible  <bruno@clisp.org>
35227
35228         * lib/dup3.c: Include <string.h>.
35229
35230 2009-08-23  Bruno Haible  <bruno@clisp.org>
35231
35232         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35233         * lib/pipe2.c (pipe2): Likewise.
35234         Suggested by Eric Blake.
35235
35236 2009-08-23  Bruno Haible  <bruno@clisp.org>
35237
35238         Tolerate declared but missing dup3 syscall.
35239         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35240         * lib/unistd.in.h (dup3): If the function is already present,
35241         override it.
35242         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35243         * modules/dup3 (Makefile.am): Compile dup3.c always.
35244         Reported by Paolo Bonzini.
35245
35246 2009-08-23  Bruno Haible  <bruno@clisp.org>
35247
35248         Tolerate declared but missing pipe2 syscall.
35249         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35250         available.
35251         * lib/unistd.in.h (pipe2): If the function is already present,
35252         override it.
35253         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35254         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35255         Reported by Paolo Bonzini.
35256
35257 2009-08-23  Bruno Haible  <bruno@clisp.org>
35258
35259         * lib/pipe2.c (pipe2): Move #ifs inside function.
35260
35261 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35262
35263         quotearg: document limitations of quote_these_too
35264         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35265         those limitations are created.
35266         * lib/quotearg.h (set_char_quoting): Document that digits and
35267         letters that are special after backslash are not permitted.
35268         (quotearg_char): Cross-reference set_char_quoting documentation.
35269
35270 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35271
35272         quotearg: implement custom_quoting_style
35273         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35274         right_quote fields.
35275         (set_custom_quoting): New public function.
35276         (quotearg_buffer_restyled): Add left_quote and right_quote
35277         arguments, handle them very much like locale quoting, and update
35278         all uses.
35279         (quotearg_n_custom): New public function.
35280         (quotearg_n_custom_mem): New public function.
35281         (quotearg_custom): New public function.
35282         (quotearg_custom_mem): New public function.
35283         * lib/quotearg.h: Prototype and document new public functions.
35284         (enum quoting_style): For escape_quoting_style and
35285         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35286         ignored even though they're otherwise like c_quoting_style.
35287         Add custom_quoting_style member and document with comparison to
35288         clocale_quoting_style.
35289         * tests/test-quotearg.c (custom_quotes): New array.
35290         (custom_results): New array.
35291         (main): Extend to test custom quoting.
35292
35293 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35294
35295         quotearg: fix right quote escaping when it's in quote_these_too
35296         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35297         quote, be sure to prepend only one backslash.
35298         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35299         (main): Test it.
35300
35301 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35302
35303         quotearg-tests: test escaping of embedded locale quotes
35304         * tests/test-quotearg.c (struct result_strings): Add member for
35305         new input.
35306         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35307         (inputs): Add new input.
35308         (results_g): Add expected results.
35309         (flag_results): Likewise.
35310         (locale_results): Likewise.
35311         (compare_strings): Check those.
35312
35313 2009-08-23  Bruno Haible  <bruno@clisp.org>
35314
35315         Tests for module 'dup3'.
35316         * modules/dup3-tests: New file.
35317         * tests/test-dup3.c: New file.
35318
35319         New module 'dup3'.
35320         * lib/unistd.in.h (dup3): New declaration.
35321         * lib/dup3.c: New file.
35322         * m4/dup3.m4: New file.
35323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35324         HAVE_DUP3.
35325         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35326         * modules/dup3: New file.
35327         * doc/glibc-functions/dup3.texi: Mention the new module.
35328
35329 2009-08-23  Bruno Haible  <bruno@clisp.org>
35330
35331         Tweak the dup2 test.
35332         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35333         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35334         the test file is still empty. Fix argument order of lseek.
35335
35336 2009-08-23  Bruno Haible  <bruno@clisp.org>
35337
35338         Avoid test link errors when the modules getopt-gnu, gettext are used.
35339         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35341
35342 2009-08-23  Bruno Haible  <bruno@clisp.org>
35343
35344         Fix getdtablesize() on mingw.
35345         * lib/getdtablesize.c (getdtablesize): Implement differently.
35346         * lib/unistd.in.h (getdtablesize): Improve comment.
35347
35348 2009-08-23  Bruno Haible  <bruno@clisp.org>
35349
35350         New module 'mkostemp'.
35351         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35352         * lib/stdlib.in.h (mksotemp): New declaration.
35353         * lib/mkostemp.c: New file, from glibc with modifications.
35354         * lib/tempname.h (GT_FILE): Remove outdated comment.
35355         (gen_tempname): Add flags argument.
35356         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35357         (__GT_FILE): Map to 1.
35358         (small_open, large_open): Remove macros.
35359         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35360         * lib/mkstemp.c (mkstemp): Update.
35361         * lib/mkdtemp.c (mkdtemp): Likewise.
35362         * m4/mkostemp.m4: New file.
35363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35364         HAVE_MKOSTEMP.
35365         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35366         HAVE_MKOSTEMP.
35367         * modules/mkostemp: New file, based on modules/mkstemp.
35368         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35369         * NEWS: Mention the change.
35370
35371 2009-08-23  Bruno Haible  <bruno@clisp.org>
35372
35373         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35374         Reported by Eric Blake.
35375
35376 2009-08-23  Bruno Haible  <bruno@clisp.org>
35377
35378         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35379         Reported by Eric Blake.
35380
35381 2009-08-23  Bruno Haible  <bruno@clisp.org>
35382
35383         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35384         * modules/pipe2 (Depends-on): Likewise.
35385
35386 2009-08-23  Eric Blake  <ebb9@byu.net>
35387
35388         fcntl-h: add O_TTY_INIT support
35389         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35390         * tests/test-fcntl-h.c (o): Test it.
35391         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35392
35393         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35394         * modules/fcntl: Move <fcntl.h> header replacement...
35395         * modules/fcntl-h: ...to new name, so as not to collide with
35396         like-named function.
35397         * tests/test-fcntl.c: Rename...
35398         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35399         * modules/fcntl-tests: Rename...
35400         * modules/fcntl-h-tests: ...to this.  Update test file name.
35401         * modules/chdir-long (Depends-on): Update clients.
35402         * modules/chdir-safer (Depends-on): Likewise.
35403         * modules/fcntl-safer (Depends-on): Likewise.
35404         * modules/fts (Depends-on): Likewise.
35405         * modules/mkancesdirs (Depends-on): Likewise.
35406         * modules/mkdir-p (Depends-on): Likewise.
35407         * modules/open (Depends-on): Likewise.
35408         * modules/savewd (Depends-on): Likewise.
35409         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35410         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35411
35412 2009-08-22  Bruno Haible  <bruno@clisp.org>
35413
35414         * modules/binary-io (License): Relicense under LGPL.
35415         * modules/pipe2 (License): Likewise.
35416
35417 2009-08-22  Bruno Haible  <bruno@clisp.org>
35418
35419         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35420         return value.
35421         * lib/pipe-filter-gi.c (filter_init): Likewise.
35422         Reported by Eric Blake.
35423
35424 2009-08-22  Bruno Haible  <bruno@clisp.org>
35425
35426         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35427         * modules/pipe (Depends-on): Add pipe2.
35428
35429 2009-08-22  Bruno Haible  <bruno@clisp.org>
35430
35431         Tests for module 'pipe2'.
35432         * modules/pipe2-tests: New file.
35433         * tests/test-pipe2.c: New file.
35434
35435         New module 'pipe2'.
35436         * lib/unistd.in.h (pipe2): New declaration.
35437         * lib/pipe2.c: New file.
35438         * m4/pipe2.m4: New file.
35439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35440         HAVE_PIPE2.
35441         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35442         * modules/pipe2: New file.
35443         * doc/glibc-functions/pipe2.texi: Mention the new module.
35444
35445 2009-08-22  Bruno Haible  <bruno@clisp.org>
35446
35447         Reference some new glibc functions.
35448         * doc/glibc-functions/accept4.texi: New file.
35449         * doc/glibc-functions/dup3.texi: New file.
35450         * doc/glibc-functions/mkostemp.texi: New file.
35451         * doc/glibc-functions/pipe2.texi: New file.
35452         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35453         (Glibc sys/socket.h): Refer to accept4.
35454         (Glibc unistd.h): Refer to dup3, pipe2.
35455         Reported by Eric Blake.
35456
35457 2009-08-22  Jim Meyering  <meyering@redhat.com>
35458             Bruno Haible  <bruno@clisp.org>
35459
35460         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35461         This makes it so packages using automake-1.11's silent-rules option
35462         can print e.g., a single "GEN    configmake.h" line, rather than
35463         the 30+ statements that perform the job.  If you want to see the
35464         actual commands, you can still run "make V=1".
35465         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35466         so that make output is abbreviated when those variables are defined
35467         appropriately.
35468         * modules/argz: Likewise.
35469         * modules/arpa_inet: Likewise.
35470         * modules/byteswap: Likewise.
35471         * modules/configmake: Likewise.
35472         * modules/dirent: Likewise.
35473         * modules/errno: Likewise.
35474         * modules/fcntl: Likewise.
35475         * modules/float: Likewise.
35476         * modules/fnmatch: Likewise.
35477         * modules/getopt-posix: Likewise.
35478         * modules/glob: Likewise.
35479         * modules/iconv_open: Likewise.
35480         * modules/inttypes: Likewise.
35481         * modules/localcharset: Likewise.
35482         * modules/locale: Likewise.
35483         * modules/math: Likewise.
35484         * modules/netdb: Likewise.
35485         * modules/netinet_in: Likewise.
35486         * modules/poll: Likewise.
35487         * modules/posix_spawnp-tests: Likewise.
35488         * modules/sched: Likewise.
35489         * modules/search: Likewise.
35490         * modules/selinux-h: Likewise.
35491         * modules/signal: Likewise.
35492         * modules/spawn: Likewise.
35493         * modules/stdarg: Likewise.
35494         * modules/stdbool: Likewise.
35495         * modules/stddef: Likewise.
35496         * modules/stdint: Likewise.
35497         * modules/stdio: Likewise.
35498         * modules/stdlib: Likewise.
35499         * modules/string: Likewise.
35500         * modules/strings: Likewise.
35501         * modules/sys_file: Likewise.
35502         * modules/sys_ioctl: Likewise.
35503         * modules/sys_select: Likewise.
35504         * modules/sys_socket: Likewise.
35505         * modules/sys_stat: Likewise.
35506         * modules/sys_time: Likewise.
35507         * modules/sys_times: Likewise.
35508         * modules/sys_utsname: Likewise.
35509         * modules/sys_wait: Likewise.
35510         * modules/sysexits: Likewise.
35511         * modules/time: Likewise.
35512         * modules/unistd: Likewise.
35513         * modules/wchar: Likewise.
35514         * modules/wctype: Likewise.
35515
35516 2009-08-22  Jim Meyering  <meyering@redhat.com>
35517
35518         announce-gen: detect write failure
35519         * build-aux/announce-gen: Add Coda at end.
35520         Remove equivalent-but-more-verbose block at top.
35521
35522 2009-08-19  Akim Demaille  <demaille@gostai.com>
35523
35524         bootstrap: --help to stdout.
35525         * bootstrap (usage): Don't send --help to stderr.
35526         Use a here doc instead of a long string.
35527
35528 2009-08-21  Eric Blake  <ebb9@byu.net>
35529
35530         test-popen-safer: split from test-popen
35531         * tests/test-popen.c (main): Move...
35532         * tests/test-popen.h: ...into new file.
35533         * tests/test-popen-safer2.c: New file.
35534         * modules/popen-tests (Files): Add test-popen.h.
35535         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35536         Suggested by Bruno Haible.
35537
35538         test-fcntl-safer: split from test-open
35539         * tests/test-open.c (main): Move...
35540         * tests/test-open.h: ...into new file.
35541         * tests/test-fcntl-safer.c: New file.
35542         * modules/open-tests (Files): Add test-open.h.
35543         * modules/fcntl-safer-tests: New file.
35544         Suggested by Bruno Haible.
35545
35546         test-fopen-safer: split from test-fopen
35547         * tests/test-fopen.c (main): Move...
35548         * tests/test-fopen.h: ...into new file.
35549         * tests/test-fopen-safer.c: New file.
35550         * modules/fopen-tests (Files): Add test-fopen.h.
35551         * modules/fopen-safer-tests: New file.
35552         Suggested by Bruno Haible.
35553
35554 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35555
35556         popen-safer: test O_CLOEXEC at run-time.
35557         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35558
35559 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35560
35561         fcntl: move more flags to the header
35562         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35563         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35564         * lib/fcntl.in.h: Do both things here.
35565
35566 2009-08-21  Jim Meyering  <meyering@redhat.com>
35567
35568         consistently remove $@-t before redirecting to it
35569         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35570         * modules/alloca-opt: Likewise.
35571         * modules/byteswap: Likewise.
35572         * modules/fnmatch: Likewise.
35573         * modules/getopt-posix: Likewise.
35574         * modules/glob: Likewise.
35575         * modules/poll: Likewise.
35576         * modules/posix_spawnp-tests: Likewise.
35577         * modules/sys_socket: Likewise.
35578         * modules/sysexits: Likewise.
35579
35580 2009-08-21  Eric Blake  <ebb9@byu.net>
35581
35582         popen: simplify access to original popen
35583         * lib/popen.c (rpl_popen): No need to worry about popen being a
35584         macro.
35585         Reported by Bruno Haible.
35586
35587 2009-08-20  Eric Blake  <ebb9@byu.net>
35588
35589         build: avoid some compiler warnings
35590         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35591         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35592         type.
35593         (new_exclude_segment, excluded_file_pattern_p)
35594         (excluded_file_name_p): Reduce scope.
35595         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35596         old-style declaration.
35597
35598 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35599
35600         * tests/test-exclude1.sh: Handle Windows EOL.
35601         * tests/test-exclude2.sh: Likewise.
35602         * tests/test-exclude3.sh: Likewise.
35603         * tests/test-exclude4.sh: Likewise.
35604         * tests/test-exclude5.sh: Likewise.
35605         * tests/test-exclude6.sh: Likewise.
35606         * tests/test-exclude7.sh: Likewise.
35607
35608 2009-08-19  Akim Demaille  <demaille@gostai.com>
35609
35610         bootstrap: find sha1sum when named gsha1sum.
35611         * bootstrap (find_tool): New.
35612         ($SHA1SUM): New.
35613         Use it.
35614
35615 2009-08-20  Jim Meyering  <meyering@redhat.com>
35616
35617         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35618         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35619         expression that converts "." in a file name to "\." in the resulting
35620         regexp.  Start with a dummy statement, so that prior shell variable
35621         definitions are expanded portably.  Reported by Simon Josefsson.
35622
35623 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35624
35625         Fix polling for writeability of a screen buffer.
35626         * lib/poll.c: Distinguish input and screen buffers for the
35627         Win32 implementation.
35628         * lib/select.c: Likewise.
35629
35630 2009-08-19  Eric Blake  <ebb9@byu.net>
35631
35632         popen-safer: prevent popen from clobbering std descriptors
35633         * modules/popen-safer: New file.
35634         * lib/popen-safer.c: Likewise.
35635         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35636         * lib/stdio--.h (popen): Provide override.
35637         * lib/stdio-safer.h (popen_safer): Provide declaration.
35638         * tests/test-popen.c (includes): Partially test this.
35639         * modules/popen-safer-tests: New file, for more tests.
35640         * tests/test-popen-safer.c: Likewise.
35641         * MODULES.html.sh (file stream based Input/Output): Mention it.
35642
35643         tests: test some of the *-safer modules
35644         * modules/fopen-safer (Depends-on): Add fopen.
35645         * modules/fcntl-safer (Depends-on): Add fcntl.
35646         * modules/stdlib-safer (Depends-on): Add stdlib.
35647         (configure.ac): Set indicator.
35648         * modules/unistd-safer (configure.ac): Likewise.
35649         * modules/tmpfile-safer (configure.ac): Likewise.
35650         (Depends-on): Add tmpfile.
35651         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35652         active.
35653         * tests/test-fopen.c (includes): Test safer versions when they are
35654         in use.
35655         * tests/test-open.c (includes): Likewise.
35656
35657         popen: fix cygwin 1.5 bug when stdin closed
35658         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35659         * modules/popen: New file.
35660         * modules/popen-tests: Likewise.
35661         * tests/test-popen.c: Likewise.
35662         * m4/popen.m4: Likewise.
35663         * lib/popen.c: Likewise.
35664         * lib/stdio.in.h (popen): New declaration.
35665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35666         * modules/stdio (Makefile.am): Likewise.
35667         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35668
35669 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35670
35671         maint.mk: give full control over update-copyright exclusions
35672         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35673         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35674         (update-copyright): Don't force inclusion of top-level
35675         ChangeLog.  Don't force exclusion of all COPYING files, but make
35676         them the default exclusion instead.
35677
35678 2009-08-16  Bruno Haible  <bruno@clisp.org>
35679
35680         Fix test failures on Solaris 10.
35681         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35682         tests when Solaris iconv() is used.
35683         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35684         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35685         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35686         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35687         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35688
35689 2009-08-16  Bruno Haible  <bruno@clisp.org>
35690
35691         Fix test failures on Solaris 10.
35692         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35693         'tr' program and pass it as first argument.
35694         * tests/test-pipe-filter-gi1.sh: Likewise.
35695         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35696         program as first argument.
35697         * tests/test-pipe-filter-gi1.c (main): Likewise.
35698
35699 2009-08-16  Eric Blake  <ebb9@byu.net>
35700
35701         fpurge: fix previous commits
35702         * modules/fpurge (Makefile.am): Make replacement conditional,
35703         partially reverting 2007-04-29 change; missed in previous
35704         attempt.
35705         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35706         is missing.
35707
35708 2009-08-16  Bruno Haible  <bruno@clisp.org>
35709
35710         Clarify fpurge's effect on the file position.
35711         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35712         * tests/test-fpurge.c (main): Make a second pass for checking the file
35713         position.
35714
35715 2009-08-16  Bruno Haible  <bruno@clisp.org>
35716
35717         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35718         declaration of fpurge is missing.
35719         * tests/test-fpurge.c (main): Check that the file has not more contents
35720         than expected. Close the file before removing it.
35721
35722 2009-08-15  Eric Blake  <ebb9@byu.net>
35723
35724         fpurge: don't wrap working cygwin implementation
35725         * lib/fpurge.c (fpurge): Fix comment typo.
35726         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35727         1.7 to avoid replacement.
35728         * tests/test-fpurge.c (main): Enhance test.
35729
35730 2009-08-15  Eric Blake  <ebb9@byu.net>
35731         and Jim Meyering  <meyering@redhat.com>
35732
35733         test-update-copyright: skip if perl is insufficient
35734         * tests/test-update-copyright.sh: Failure to run maintainer tool
35735         should not cause testsuite failure on cygwin 1.5.
35736
35737 2009-08-14  Eric Blake  <ebb9@byu.net>
35738
35739         doc: mention more functions added in cygwin 1.7.0
35740         * doc/posix-headers/limits.texi (limits.h): Update for recent
35741         cygwin additions.
35742         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35743         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35744         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35745         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35746         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35747
35748 2009-08-14  Eric Blake  <ebb9@byu.net>
35749
35750         maint.mk: simplify update-copyright rule
35751         * top/maint.mk (update-copyright-local): Delete, and document how
35752         to do it in cfg.mk instead.
35753         (update-copyright-exclude-regexp): Delete, and document how to do
35754         it in .x-update-copyright instead.
35755         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35756         exclude ChangeLog.
35757
35758 2009-08-14  Bruno Haible  <bruno@clisp.org>
35759
35760         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35761
35762 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35763
35764         maint.mk: support update-copyright-env
35765         * top/maint.mk (update-copyright-env): Define place-holder.
35766         (update-copyright): Expand $(update-copyright-env) before
35767         invoking update-copyright.
35768
35769 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35770
35771         update-copyright: implement forced reformatting
35772         * build-aux/update-copyright: Implement and document
35773         UPDATE_COPYRIGHT_FORCE.
35774         * tests/test-update-copyright.sh: Test it.
35775
35776 2009-08-14  Eric Blake  <ebb9@byu.net>
35777         and Bruno Haible  <bruno@clisp.org>
35778
35779         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35780         * tests/test-locale.c: Revert previous patch related to NULL.
35781         * tests/test-stdio.c: Likewise.
35782         * tests/test-stdlib.c: Likewise.
35783         * tests/test-string.c: Likewise.
35784         * tests/test-unistd.c: Likewise.
35785         * modules/time-tests (Depends-on): Add verify.
35786         * modules/wchar-tests (Depends-on): Likewise.
35787         * tests/test-time.c: Test for NULL compliance.
35788         * tests/test-wchar.c: Likewise.
35789         * modules/locale (Depends-on): Add stddef.
35790         * modules/stdio (Depends-on): Likewise.
35791         * modules/stdlib (Depends-on): Likewise.
35792         * modules/string (Depends-on): Likewise.
35793         * modules/time (Depends-on): Likewise.
35794         * modules/unistd (Depends-on): Likewise.
35795         * modules/wchar (Depends-on): Likewise.
35796         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35797         * lib/stdlib.in.h (includes): Likewise.
35798         * lib/string.in.h (includes): Likewise.
35799         * lib/time.in.h (includes): Likewise.
35800         * lib/unistd.in.h (includes): Likewise.
35801         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35802         replaced.
35803         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35804         * m4/stddef_h.m4: New file.
35805         * modules/stddef: Likewise.
35806         * lib/stddef.in.h: Likewise.
35807         * modules/stddef-tests: Likewise.
35808         * tests/test-stddef.c: Likewise.
35809         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35810         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35811         * doc/posix-headers/locale.texi (locale.h): Likewise.
35812         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35813         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35814         * doc/posix-headers/string.texi (string.h): Likewise.
35815         * doc/posix-headers/time.texi (time.h): Likewise.
35816         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35817         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35818
35819 2009-08-14  Eric Blake  <ebb9@byu.net>
35820
35821         doc: improve git diff of texinfo files
35822         * .gitattributes: Add rule for *.texi files, with hint on how to
35823         use it.
35824         Copied from m4, and based on a report by Bruno Haible.
35825
35826 2009-08-14  Bruno Haible  <bruno@clisp.org>
35827
35828         Disable multithread support by default on Cygwin 1.5.x for real.
35829         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35830
35831 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35832
35833         update-copyright: much ado about intervals
35834         * build-aux/update-copyright: Implement and document
35835         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35836         of copyright year intervals.
35837         Also, document UPDATE_COPYRIGHT_YEAR.
35838         * tests/test-update-copyright.sh: Test it.
35839
35840         update-copyright: convert 2-digit to 4-digit years
35841         * build-aux/update-copyright: Implement and document.
35842         * tests/test-update-copyright.sh: Update.
35843
35844 2009-08-14  Jim Meyering  <meyering@redhat.com>
35845
35846         test-exclude: avoid coreutils "make check" failure
35847         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35848         just as in test-argmatch.c.
35849
35850 2009-08-13  Eric Blake  <ebb9@byu.net>
35851
35852         test-dup2: fix bad assumption
35853         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35854         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35855
35856         test-version-etc: fix CRLF portability issue
35857         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35858         recognize \r.
35859         * tests/test-argp-version-etc-1.sh: Likewise.
35860
35861         getopt: update client modules
35862         * modules/argp (Depends-on): Use getopt-gnu.
35863         * modules/git-merge-changelog (Depends-on): Likewise.
35864         * modules/long-options (Depends-on): Likewise.
35865         * modules/xstrtol (Depends-on): Likewise.
35866
35867 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35868
35869         * tests/test-version-etc.sh: Don't fail on different
35870         project/version.  Don't fail on CRLF differences.  Rewrite to use
35871         multiple -e instead of multiple sed forks, suggested by Eric Blake
35872         <ebb9@byu.net>.
35873         * tests/test-argp-version-etc-1.sh: Likewise.
35874
35875 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35876
35877         * tests/test-version-etc.sh: Don't fail on different
35878         project/version.
35879
35880 2009-08-12  Bruno Haible  <bruno@clisp.org>
35881
35882         Tests for modules 'getopt-posix', 'getopt-gnu'.
35883         * modules/getopt-posix-tests: New file.
35884         * tests/test-getopt.c: New file.
35885         * tests/test-getopt.h: New file.
35886         * tests/test-getopt_long.h: New file.
35887
35888         New modules 'getopt-posix', 'getopt-gnu'.
35889         * modules/getopt-gnu: New file, renamed from modules/getopt.
35890         * modules/getopt-posix: New file.
35891         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35892         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35893         (gl_GETOPT): Remove macro.
35894         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35895         Disable the test against BSD systems that declare optreset. Test
35896         against mingw bug. Test against lack of support of optional arguments
35897         on many platforms.
35898         * doc/glibc-headers/getopt.texi: Update module name and list of
35899         relevant platforms.
35900         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35901         'getopt-gnu' and more portability problems.
35902         * NEWS: Mention the changes.
35903
35904 2009-08-12  Bruno Haible  <bruno@clisp.org>
35905
35906         Ensure that optarg etc. get declared by <unistd.h>.
35907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35908         AC_USE_SYSTEM_EXTENSIONS.
35909         * modules/getopt (Depends-on): Add 'extensions'.
35910
35911 2009-08-12  Bruno Haible  <bruno@clisp.org>
35912
35913         Avoid test link errors.
35914         * modules/pipe-filter-ii-tests (Makefile.am): Define
35915         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35916         * modules/pipe-filter-gi-tests (Makefile.am): Define
35917         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35919
35920 2009-08-12  Bruno Haible  <bruno@clisp.org>
35921
35922         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35923         gl_GETOPT_SUBSTITUTE before.
35924         (gl_GETOPT): Use it.
35925         * m4/argp.m4 (gl_ARGP): Update.
35926         Reported by Sergey Poznyakoff.
35927
35928         * m4/getopt.m4: Reorder macros.
35929         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35930         (gl_GETOPT_SUBSTITUTE): Remove macro.
35931
35932 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35933
35934         Minor improvement in gitlog-to-changelog
35935
35936         * build-aux/gitlog-to-changelog: New option `--format' makes
35937         output format string configurable.
35938
35939 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35940
35941         Optimize exclude: use hash tables for non-wildcard patterns.
35942
35943         * lib/exclude.c: Include hash.h and mbuiter.h
35944         (struct exclude_pattern, exclude_segment): New data types.
35945         (struct exclude): Rewrite.
35946         (fnmatch_pattern_has_wildcards): New function.
35947         (new_exclude_segment, free_exclude_segment): New functions.
35948         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35949         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35950         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35951         * modules/exclude: Depend on hash and mbuiter.
35952
35953         * modules/exclude-tests: New file.
35954         * tests/test-exclude.c: New file.
35955         * tests/test-exclude1.sh: New file.
35956         * tests/test-exclude2.sh: New file.
35957         * tests/test-exclude3.sh: New file.
35958         * tests/test-exclude4.sh: New file.
35959         * tests/test-exclude5.sh: New file.
35960         * tests/test-exclude6.sh: New file.
35961         * tests/test-exclude7.sh: New file.
35962
35963 2009-08-12  Bruno Haible  <bruno@clisp.org>
35964
35965         Ensure that getopt() gets declared by <unistd.h>.
35966         * lib/unistd.in.h: Conditionally include getopt.h.
35967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35968         Set GNULIB_UNISTD_H_GETOPT.
35969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35970         GNULIB_UNISTD_H_GETOPT.
35971         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35972
35973 2009-08-12  Bruno Haible  <bruno@clisp.org>
35974
35975         Clarify logic.
35976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35977         gl_replace_getopt instead of GETOPT_H.
35978
35979 2009-08-12  Bruno Haible  <bruno@clisp.org>
35980
35981         * m4/getopt.m4: Add comments.
35982
35983 2009-08-12  Bruno Haible  <bruno@clisp.org>
35984
35985         Disable multithread support by default on Cygwin 1.5.x.
35986         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35987         set gl_use_threads=no if not specified otherwise.
35988
35989 2009-08-11  Bruno Haible  <bruno@clisp.org>
35990
35991         Avoid compilation error on NetBSD 5.0.
35992         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35993         * tests/test-stdio.c: Likewise.
35994         * tests/test-stdlib.c: Likewise.
35995         * tests/test-string.c: Likewise.
35996         * tests/test-unistd.c: Likewise.
35997         Reported by Greg Troxel <gdt@ir.bbn.com>
35998         at <https://savannah.gnu.org/support/?106973>.
35999
36000 2009-08-11  Bruno Haible  <bruno@clisp.org>
36001
36002         * modules/dup2-tests (Depends-on): Remove close.
36003
36004         Undo 2009-07-19 commit.
36005         * modules/acl-tests (Depends-on): Remove close.
36006         * modules/binary-io-tests (Depends-on): Likewise.
36007         * modules/closein-tests (Depends-on): Likewise.
36008         * modules/flock-tests (Depends-on): Likewise.
36009         * modules/fsync-tests (Depends-on): Likewise.
36010         * modules/lseek-tests (Depends-on): Likewise.
36011         * modules/pipe-tests (Depends-on): Likewise.
36012         * modules/posix_spawn-tests (Depends-on): Likewise.
36013         * modules/posix_spawnp-tests (Depends-on): Likewise.
36014         * modules/stat-time-tests (Depends-on): Likewise.
36015         * modules/yesno-tests (Depends-on): Likewise.
36016
36017 2009-08-10  Bruno Haible  <bruno@clisp.org>
36018
36019         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36020
36021 2009-08-10  Bruno Haible  <bruno@clisp.org>
36022
36023         Fix a gcc warning.
36024         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36025
36026 2009-08-10  Bruno Haible  <bruno@clisp.org>
36027
36028         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36029         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36030         not only the first time.
36031         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36032         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36033         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36034         is 1, not only the the first time.
36035
36036 2009-08-10  Bruno Haible  <bruno@clisp.org>
36037
36038         Make it possible to use module 'gethostname' without module 'close'.
36039         * lib/unistd.in.h (close): Evoke a link error only if
36040         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36042         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36043         * modules/unistd (Makefile.am): Substitute
36044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36045         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36046         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36048         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36049         * modules/sys_ioctl (Makefile.am): Substitute
36050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36051         * modules/socket (configure.ac): On native Windows, set
36052         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36053         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36054         Reported by Sam Steingold <sds@gnu.org>.
36055
36056 2009-08-10  Bruno Haible  <bruno@clisp.org>
36057
36058         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36059         * modules/ioctl (configure.ac): Likewise.
36060
36061 2009-08-10  Bruno Haible  <bruno@clisp.org>
36062
36063         Avoid collision between gnulib wrapper and libintl wrapper.
36064         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36065         already defined in intl/printf.c.
36066         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36067         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36068
36069 2009-08-09  Bruno Haible  <bruno@clisp.org>
36070
36071         Make <sys/select.h> really self-contained, also on Solaris 10.
36072         * lib/sys_select.in.h: Include <string.h>.
36073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36074         Solaris 10 problem.
36075         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36076         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36077         Reported by Jim Meyering.
36078
36079 2009-08-09  Bruno Haible  <bruno@clisp.org>
36080
36081         Avoid warnings from 'aclocal' that are due to a use of macro name
36082         AM_XGETTEXT_OPTION that is not defined in automake.
36083         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36084         automake.
36085         * modules/error (configure.ac): Likewise.
36086         * modules/propername (configure.ac): Likewise.
36087         * modules/vasprintf (configure.ac): Likewise.
36088         * modules/verror (configure.ac): Likewise.
36089         * modules/xprintf (configure.ac): Likewise.
36090         * modules/xvasprintf (configure.ac): Likewise.
36091
36092 2009-08-08  Bruno Haible  <bruno@clisp.org>
36093
36094         Avoid compilation error in C++ mode.
36095         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36096         Reported by Sam Steingold <sds@gnu.org>.
36097
36098 2009-08-08  Bruno Haible  <bruno@clisp.org>
36099
36100         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36101         for the various Unix platforms.
36102         * doc/posix-headers/limits.texi: Update platforms list regarding
36103         HOST_NAME_MAX.
36104         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36105
36106 2009-08-07  Jim Meyering  <meyering@redhat.com>
36107
36108         selinux-at: fix typo in a comment
36109         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36110         Spotted by Paolo Bonzini.
36111
36112         selinux-at: remove redundant m4 code, add documentation
36113         * modules/selinux-at (configure.ac): Remove redundant code.
36114         LIB_SELINUX is already set via the dependent module, selinux-h.
36115         (Include): Add quotes around selinux-at.h.
36116         * lib/selinux-at.h: Add documentation.
36117         Reported by Bruno Haible in
36118         http://marc.info/?l=gnulib-bug&m=124958988300749
36119
36120 2009-08-07  Bruno Haible  <bruno@clisp.org>
36121
36122         Avoid link error on MacOS X 10.3 and 10.4.
36123         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36124         on non-ELF systems.
36125         * lib/argp-pv.c (argp_program_version): Likewise.
36126         Reported by Simon Josefsson.
36127
36128 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36129
36130         * tests/test-version-etc.sh: Use $EXEEXT.
36131
36132 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36133
36134         update-copyright: update documentation to point to maint.mk
36135         * build-aux/update-copyright: Here.
36136
36137 2009-08-06  Jim Meyering  <meyering@redhat.com>
36138
36139         maint.mk: support update-copyright-local
36140         * top/maint.mk (update-copyright-local): Define place-holder.
36141         (update-copyright): Depend on $(update-copyright-local).
36142
36143 2009-08-06  Jim Meyering  <meyering@redhat.com>
36144
36145         selinux-at: new module
36146         Initially written for coreutils, this module will soon be
36147         used by findutils, too.
36148         * MODULES.html.sh [Misc]: Add selinux-at.
36149         * lib/selinux-at.h: New file, from coreutils.
36150         * lib/selinux-at.c: Likewise.
36151         * modules/selinux-at: Likewise.
36152         (License): Change from LGPL to GPL, since it depends
36153         on the GPL'd openat module.
36154
36155         doc: update README
36156         * README: Remove references to cogito.
36157         Remove cvs-repo-updating instructions from 2007.
36158         Don't imply that CVS is better if you have limited disk space.
36159
36160 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36161
36162         update-copyright: support C-style comments
36163         * build-aux/update-copyright: Implement and document.
36164         * tests/test-update-copyright.sh: Test.
36165
36166 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36167
36168         update-copyright: support omitted "(C)"
36169         * build-aux/update-copyright: Implement and document.  Also,
36170         allow variable whitespace before "(C)".
36171         * tests/test-update-copyright.sh: Test.
36172
36173 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36174
36175         update-copyright: don't trip on non-FSF copyright statements
36176         * build-aux/update-copyright: Fix so that the first correctly
36177         formatted FSF copyright statement is recognized no matter what
36178         appears before it.  Update documentation.
36179         * tests/test-update-copyright.sh: Test that.
36180
36181 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36182
36183         update-copyright: clean up code a little
36184         * build-aux/update-copyright: Append "_re" to the name of any
36185         variable holding a regular expression.
36186         Replace "old" and "new" with "stmt" in variable names.
36187         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36188         handled correctly.
36189         Format code more consistently.
36190
36191 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36192
36193         update-copyright-tests: improve portability
36194         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36195         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36196
36197 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36198
36199         update-copyright: support @copyright{} and &copy;
36200         * build-aux/update-copyright: Implement and document.
36201         * tests/test-update-copyright.sh: Test.
36202
36203 2009-08-04  Jim Meyering  <meyering@redhat.com>
36204
36205         update-copyright-tests: correctly test EOL=\r\n handling
36206         * tests/test-update-copyright.sh: Put \r at the end of some lines
36207         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36208
36209         maint.mk: make update-copyright exclusion list more configurable
36210         * top/maint.mk (update-copyright): Default to excluding COPYING,
36211         but allow an override, in case someone does want to update that file.
36212
36213         maint.mk: don't update copyright date in COPYING
36214         * top/maint.mk (update-copyright): Exclude COPYING.
36215
36216         maint.mk: add a copyright-updating rule
36217         * top/maint.mk (update-copyright): New rule.
36218         Derived from coreutils/Makefile.am.
36219
36220         update-copyright: rename some variables
36221         * build-aux/update-copyright: Rename a few variables for clarity.
36222         Tweak syntax.  List Joel E. Denny as coauthor.
36223
36224 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36225
36226         update-copyright: fix bug for 2-digit last year and add tests
36227         * build-aux/update-copyright: Fix bug.
36228         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36229         specified.
36230         * modules/update-copyright-tests: New
36231         * tests/test-update-copyright.sh: New.
36232
36233 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36234
36235         update-copyright: handle leading tabs in line prefix
36236         * build-aux/update-copyright: Count leading tabs as 8 spaces
36237         when computing margin.  This helps with the formatting of
36238         ChangeLogs, for example.
36239         Fix documentation a little.
36240
36241 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36242
36243         update-copyright: support EOL=\r\n
36244         * build-aux/update-copyright: Implement that.
36245
36246 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36247
36248         update-copyright: automatically format copyright statements
36249         * build-aux/update-copyright: Implement that.
36250         Also, be a little more predictable and safer by always failing
36251         when the full copyright format is not perfectly recognized as an
36252         unbroken whole.  Discussed at
36253         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36254         Rewrite documentation.
36255
36256 2009-08-03  Bruno Haible  <bruno@clisp.org>
36257
36258         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36259
36260 2009-08-02  Bruno Haible  <bruno@clisp.org>
36261
36262         Tests for module 'uname'.
36263         * modules/uname-tests: New file.
36264         * tests/test-uname.c: New file.
36265
36266         New module 'uname'.
36267         * lib/uname.c: New file.
36268         * m4/uname.m4: New file.
36269         * modules/uname: New file.
36270         * doc/posix-functions/uname.texi: Mention the new module.
36271
36272 2009-08-02  Bruno Haible  <bruno@clisp.org>
36273
36274         Tests for module 'sys_utsname'.
36275         * modules/sys_utsname-tests: New file.
36276         * tests/test-sys_utsname.c: New file.
36277
36278         New module 'sys_utsname'.
36279         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36280         * m4/sys_utsname_h.m4: New file.
36281         * modules/sys_utsname: New file.
36282         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36283
36284 2009-08-02  Bruno Haible  <bruno@clisp.org>
36285
36286         Implicitly initialize the sockets library.
36287         * lib/gethostname.c: Include sockets.h.
36288         (rpl_gethostname): Invoke gl_sockets_startup.
36289         * lib/socket.c: Include sockets.h.
36290         (rpl_socket): Invoke gl_sockets_startup.
36291         * modules/gethostname (Depends-on): Add sockets.
36292         * modules/socket (Depends-on): Likewise.
36293         * tests/test-poll.c: Don't include sockets.h.
36294         (main): Don't invoke gl_sockets_startup.
36295         * tests/test-select.c: Don't include sockets.h.
36296         (main): Don't invoke gl_sockets_startup.
36297
36298 2009-08-02  Bruno Haible  <bruno@clisp.org>
36299
36300         Allow multiple calls to gl_sockets_startup.
36301         * lib/sockets.c (initialized_sockets_version): New variable.
36302         (gl_sockets_startup): Do nothing if already called for this or a higher
36303         version.
36304         (gl_sockets_cleanup): Reset initialized_sockets_version.
36305
36306 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36307
36308         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36309         different project/version.
36310
36311 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36312             Bruno Haible  <bruno@clisp.org>
36313
36314         Tests for module 'pipe-filter-gi'.
36315         * modules/pipe-filter-gi-tests: New file.
36316         * tests/test-pipe-filter-gi1.sh: New file.
36317         * tests/test-pipe-filter-gi1.c: New file.
36318         * tests/test-pipe-filter-gi2.sh: New file.
36319         * tests/test-pipe-filter-gi2-main.c: New file.
36320         * tests/test-pipe-filter-gi2-child.c: New file.
36321
36322         New module 'pipe-filter-gi'.
36323         * lib/pipe-filter-gi.c: New file.
36324         * modules/pipe-filter-gi: New file.
36325
36326 2009-08-02  Bruno Haible  <bruno@clisp.org>
36327             Paolo Bonzini  <bonzini@gnu.org>
36328
36329         Tests for module 'pipe-filter-ii'.
36330         * modules/pipe-filter-ii-tests: New file.
36331         * tests/test-pipe-filter-ii1.sh: New file.
36332         * tests/test-pipe-filter-ii1.c: New file.
36333         * tests/test-pipe-filter-ii2.sh: New file.
36334         * tests/test-pipe-filter-ii2-main.c: New file.
36335         * tests/test-pipe-filter-ii2-child.c: New file.
36336
36337         New module 'pipe-filter-ii'.
36338         * lib/pipe-filter.h: New file.
36339         * lib/pipe-filter-ii.c: New file.
36340         * lib/pipe-filter-aux.h: New file.
36341         * modules/pipe-filter-ii: New file.
36342
36343 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36344
36345         * lib/gc-libgcrypt.c: Change copyright to FSF.
36346         * lib/gc-gnulib.c: Likewise.
36347
36348 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36349
36350         * lib/gethostname.c: Include limits.h.
36351
36352 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36353             Bruno Haible  <bruno@clisp.org>
36354
36355         Ensure HOST_NAME_MAX as part of the gethostname module.
36356         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36357         define also HOST_NAME_MAX.
36358         * tests/test-gethostname.c: Include <limits.h>.
36359         (main): Check also HOST_NAME_MAX.
36360         * doc/posix-headers/limits.texi: Document the mingw problem.
36361
36362 2009-08-02  Bruno Haible  <bruno@clisp.org>
36363
36364         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36365         Add comments.
36366
36367 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36368
36369         * lib/gethostname.c: Add Windows wrapper.
36370         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36371         * modules/gethostname: Depend on sys_socket & errno, for also
36372         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36373         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36374
36375 2009-07-31  Jim Meyering  <meyering@redhat.com>
36376
36377         getloadavg: fix symbol name in comment
36378         * lib/getloadavg.c: Correct a typo I introduced when adding
36379         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36380         Matt Kraai spotted the problem.
36381
36382 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36383
36384         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36385         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36386         code also if ! defined N_NAME_POINTER.
36387         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36388         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36389         but the n_name member is a 12-byte array.
36390
36391 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36392
36393         update-copyright: generalize comment handling
36394         * build-aux/update-copyright: Handle copyright statements
36395         within more comment styles.
36396         Document usage.
36397         Report any file with an external copyright holder or parse failure.
36398
36399 2009-07-29  Jim Meyering  <meyering@redhat.com>
36400
36401         mktime: correct setting of REPLACE_MKTIME
36402         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36403
36404         update-copyright: new module
36405         * modules/update-copyright: New file.
36406         * build-aux/update-copyright: New file.
36407         * MODULES.html.sh (maint+release support): Add update-copyright.
36408
36409 2009-07-27  Bruno Haible  <bruno@clisp.org>
36410
36411         Fix compilation error when <ctime> is used and mktime is replaced.
36412         * lib/time.in.h (mktime): New declaration.
36413         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36414         REPLACE_MKTIME instead of defining mktime in config.h.
36415         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36416         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36417         Reported by Ross McFarland <rwmcfa1@neces.com>.
36418
36419 2009-07-27  Bruno Haible  <bruno@clisp.org>
36420
36421         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36422         Reported by Matt Kraai <mkraai@beckman.com>.
36423
36424 2009-07-25  Jim Meyering  <meyering@redhat.com>
36425
36426         maint.mk: avoid warnings about missing files
36427         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36428         diagnostic when .prev-version does not exist.
36429         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36430         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36431         nonexistent cfg.mk.
36432         Suggestions from Simon Josefsson.
36433
36434 2009-07-25  Bruno Haible  <bruno@clisp.org>
36435
36436         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36437         defined as macros. Needed on QNX 6.4.1.
36438         Reported by Matt Kraai <mkraai@beckman.com>.
36439
36440 2009-07-23  Jim Meyering  <meyering@redhat.com>
36441
36442         maint.mk: invoke "make dist" with a working value of XZ_OPT
36443         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36444
36445 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36446
36447         Make fseeko.c compile on QNX.
36448         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36449
36450 2009-07-22  Peter Simons  <simons@cryp.to>
36451
36452         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36453         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36454         * lib/md4.h: Likewise.
36455         * lib/md5.h: Likewise.
36456         * lib/sha1.h: Likewise.
36457         * lib/sha256.h: Likewise.
36458         * lib/sha512.h: Likewise.
36459
36460         tests-sha1: don't assign literal string to 'char *' variable
36461         * tests/test-sha1.c (main): Declare locals with "const" to match
36462         attributes of the right hand side.
36463
36464 2009-07-21  Eric Blake  <ebb9@byu.net>
36465
36466         dup2: fix more mingw problems
36467         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36468         fd to itself.
36469         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36470         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36471         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36472         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36473         care of mingw bugs.
36474
36475 2009-07-21  Jim Meyering  <meyering@redhat.com>
36476
36477         vc-list-files: avoid failure when /bin/sh is dash
36478         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36479         On some Debian based systems, /bin/sh is a symlink to dash, and running
36480         this command would omit the "/" following each 'tests' prefix:
36481           dash -x build-aux/vc-list-files -C . tests
36482         That is because bash and dash work differently:
36483           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36484           bash ok
36485           dash odd
36486
36487 2009-07-21  Eric Blake  <ebb9@byu.net>
36488
36489         dup2-tests: test previous patch
36490         * modules/dup2-tests: New file.
36491         * tests/test-dup2.c: Likewise.
36492         * tests/test-open.c (main): Avoid unspecified behavior.
36493         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36494         test.
36495
36496         dup2: work around mingw and cygwin 1.5 bug
36497         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36499         * modules/unistd (Makefile.am): Substitute it.
36500         * lib/unistd.in.h (dup2): Declare the replacement.
36501         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36502         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36503         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36504         * modules/execute (Depends-on): Add dup2.
36505         * modules/fseterr (Depends-on): Likewise.
36506         * modules/pipe (Depends-on): Likewise.
36507         * modules/posix_spawn-internal (Depends-on): Likewise.
36508
36509 2009-07-21  Bruno Haible  <bruno@clisp.org>
36510
36511         * modules/.gitattributes: New file.
36512
36513 2009-07-20  Bruno Haible  <bruno@clisp.org>
36514
36515         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36516         (main): Use it.
36517
36518 2009-07-20  Eric Blake  <ebb9@byu.net>
36519
36520         test-pipe: make a bit more robust.
36521         * tests/test-pipe.c (myerr): Allow error messages regardless of
36522         what we do to stderr.
36523         (test_pipe): Rearrange to avoid deadlock.
36524         (child_main): Try a larger read, to ensure we avoided deadlock.
36525         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36526         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36527         if misused.
36528
36529 2009-07-19  Jim Meyering  <meyering@redhat.com>
36530
36531         fts: avoid false-positive cycle-detection
36532         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36533         for each new command line argument.
36534
36535 2009-07-19  Bruno Haible  <bruno@clisp.org>
36536
36537         Fix build error on mingw with the modules sys_select and unistd.
36538         * modules/acl-tests (Depends-on): Add close.
36539         * modules/binary-io-tests (Depends-on): Likewise.
36540         * modules/closein-tests (Depends-on): Likewise.
36541         * modules/flock-tests (Depends-on): Likewise.
36542         * modules/fsync-tests (Depends-on): Likewise.
36543         * modules/lseek-tests (Depends-on): Likewise.
36544         * modules/pipe-tests (Depends-on): Likewise.
36545         * modules/posix_spawn-tests (Depends-on): Likewise.
36546         * modules/posix_spawnp-tests (Depends-on): Likewise.
36547         * modules/stat-time-tests (Depends-on): Likewise.
36548         * modules/yesno-tests (Depends-on): Likewise.
36549
36550 2009-07-19  Bruno Haible  <bruno@clisp.org>
36551
36552         Unify conditionals.
36553         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36554         macros, not at the compiler macros.
36555         * lib/pipe.c: Likewise.
36556         * lib/execute.c: Likewise.
36557         * lib/spawni.c: Likewise.
36558
36559 2009-07-19  Bruno Haible  <bruno@clisp.org>
36560
36561         Fix handling of closed stdin/stdout/stderr on mingw.
36562         * lib/w32spawn.h: Include unistd.h.
36563         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36564         file descriptor with O_NOINHERIT flag.
36565         (fd_safer_noinherit): New function, based on fd-safer.c.
36566         (dup_safer_noinherit): New function, based on dup-safer.c.
36567         (undup_safer_noinherit): New function.
36568         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36569         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36570         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36571         instead of fd_safer.
36572         * tests/test-pipe.c: Include <windows.h>.
36573         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36574         result.
36575
36576         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36577         from main.
36578         (test_pipe): Pass an extra argument for disambiguation.
36579         (main): Invoke parent_main or child_main.
36580
36581         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36582         consistently.
36583
36584 2009-07-18  Eric Blake  <ebb9@byu.net>
36585
36586         test-pipe: fix mingw build
36587         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36588
36589 2009-07-18  Bruno Haible  <bruno@clisp.org>
36590
36591         * modules/pipe-tests (Makefile.am): Fix typo.
36592
36593 2009-07-18  Eric Blake  <ebb9@byu.net>
36594
36595         error: fix mingw build
36596         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36597         Reported by Bruno Haible.
36598
36599         error: avoid undefined use of stdout
36600         * lib/error.c (error, error_at_line): Check that fd 1 is open
36601         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36602         is handling faults and the close_stdout module wants to report the
36603         detection of closed stdout as an error.
36604
36605 2009-07-17  Eric Blake  <ebb9@byu.net>
36606
36607         pipe: be robust in face of closed fds
36608         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36609         should cause child to misbehave.
36610         * modules/pipe-tests: New module.
36611         * tests/test-pipe.c: New file.
36612         * tests/test-pipe.sh: New file.
36613         Reported by Akim Demaille.
36614
36615 2009-07-14  Bruno Haible  <bruno@clisp.org>
36616
36617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36618         Reported by anonymous kc.
36619
36620 2009-07-07  Jim Meyering  <meyering@redhat.com>
36621
36622         maint.mk: don't look for translatable strings in *.m4 or *.mk
36623         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36624         when searching for translatable strings.
36625
36626 2009-07-05  Jim Meyering  <meyering@redhat.com>
36627
36628         remove superfluous parentheses in STREQ definition
36629         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36630         * lib/getugroups.c (STREQ): Likewise.
36631         * lib/fnmatch.c (STREQ): Likewise.
36632         Spotted by Bruno Haible.
36633
36634 2009-07-04  Jim Meyering  <meyering@redhat.com>
36635
36636         argv-iter: new module
36637         * MODULES.html.sh: Add argv-iter.
36638         * lib/argv-iter.c, lib/argv-iter.h: New files.
36639         * modules/argv-iter: New file.
36640         * modules/argv-iter-tests: New file.
36641         * tests/test-argv-iter.c: Test it.
36642
36643 2009-07-04  Bruno Haible  <bruno@clisp.org>
36644
36645         Fix assertion.
36646         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36647         contains more exact copies of a given entry than file2, leave the extra
36648         copies unpaired rather than aborting.
36649         Reported by Eric Blake.
36650
36651 2009-07-02  Bruno Haible  <bruno@clisp.org>
36652
36653         Speedup git-merge-changelog for git cherry-pick.
36654         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36655         (entries_mapping_get): New function, extracted from compute_mapping.
36656         (entries_mapping_reverse_get): New function.
36657         (compute_mapping): Add a 'full' argument. Return the result in a
36658         'struct entries_mapping'.
36659         (main): Update. Access the mappings through entries_mapping_get.
36660         Reported by Eric Blake.
36661
36662 2009-07-02  Bruno Haible  <bruno@clisp.org>
36663
36664         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36665         best_i.
36666
36667 2009-07-02  Bruno Haible  <bruno@clisp.org>
36668
36669         Speed up approximate search for matching ChangeLog entries.
36670         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36671         argument. Call fstrcmp_bounded instead of fstrcmp.
36672         (compute_mapping, try_split_merged_entry, main): Update callers.
36673
36674 2009-07-02  Bruno Haible  <bruno@clisp.org>
36675
36676         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36677
36678 2009-06-30  Bruno Haible  <bruno@clisp.org>
36679
36680         Reduce the number of uc_is_cased calls.
36681         * lib/unicase.h (casing_suffix_context_t): Add
36682         'first_char_except_ignorable' field.
36683         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36684         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36685         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36686         Update initializer.
36687         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36688         case-ignorable characters.
36689         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36690         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36691         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36692         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36693         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36694
36695 2009-06-30  Bruno Haible  <bruno@clisp.org>
36696
36697         Tests for module 'unicase/ignorable'.
36698         * modules/unicase/ignorable-tests: New file.
36699         * tests/unicase/test-ignorable.c: New file, generated by
36700         gen-uni-tables.
36701
36702         Tests for module 'unicase/cased'.
36703         * modules/unicase/cased-tests: New file.
36704         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36705         * tests/unicase/test-predicate-part1.h: New file, derived from
36706         tests/unictype/test-predicate-part1.h.
36707         * tests/unicase/test-predicate-part2.h: New file, same as
36708         tests/unictype/test-predicate-part2.h.
36709
36710         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36711         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36712         (output_casing_properties): New function.
36713         (main): Call it.
36714         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36715         * lib/unicase/cased.c: Include unictype/bitmap.h.
36716         (uc_is_cased): Define through a bitmap lookup.
36717         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36718         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36719         (uc_is_case_ignorable): Define through a bitmap lookup.
36720         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36721         lib/unictype/bitmap.h.
36722         (Depends-on): Add inline. Clean up.
36723         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36724         lib/unictype/bitmap.h.
36725         (Depends-on): Add inline. Clean up.
36726         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36727         recognition.
36728         * tests/unicase/test-u16-tolower.c (main): Likewise.
36729         * tests/unicase/test-u32-tolower.c (main): Likewise.
36730
36731 2009-06-30  Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36734         * lib/unicase/u16-casemap.c: Likewise.
36735         * lib/unicase/u32-casemap.c: Likewise.
36736
36737 2009-06-29  Bruno Haible  <bruno@clisp.org>
36738
36739         Define u32_casefold as a wrapper around u32_ct_casefold.
36740         * lib/unicase/u32-casefold.c: Update.
36741         * modules/unicase/u32-casefold (Depends-on): Add
36742         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36743         unicase/empty-suffix-context. Clean up.
36744
36745         Define u16_casefold as a wrapper around u16_ct_casefold.
36746         * lib/unicase/u16-casefold.c: Update.
36747         * modules/unicase/u16-casefold (Depends-on): Add
36748         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36749         unicase/empty-suffix-context. Clean up.
36750
36751         Define u8_casefold as a wrapper around u8_ct_casefold.
36752         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36753         * lib/unicase/u8-casefold.c: Update.
36754         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36756
36757         Define u32_totitle as a wrapper around u32_ct_totitle.
36758         * lib/unicase/u32-totitle.c: Update.
36759         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36760         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36761
36762         Define u16_totitle as a wrapper around u16_ct_totitle.
36763         * lib/unicase/u16-totitle.c: Update.
36764         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36765         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36766
36767         Define u8_totitle as a wrapper around u8_ct_totitle.
36768         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36769         functions.
36770         (FUNC): Delegate to U_CT_TOTITLE.
36771         * lib/unicase/u8-totitle.c: Update.
36772         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36773         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36774
36775         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36776         invocation.
36777         * modules/unicase/u32-tolower (Depends-on): Add
36778         unicase/empty-prefix-context, unicase/empty-suffix-context.
36779
36780         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36781         invocation.
36782         * modules/unicase/u16-tolower (Depends-on): Add
36783         unicase/empty-prefix-context, unicase/empty-suffix-context.
36784
36785         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36786         * modules/unicase/u8-tolower (Depends-on): Add
36787         unicase/empty-prefix-context, unicase/empty-suffix-context.
36788
36789         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36790         invocation.
36791         * modules/unicase/u32-toupper (Depends-on): Add
36792         unicase/empty-prefix-context, unicase/empty-suffix-context.
36793
36794         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36795         invocation.
36796         * modules/unicase/u16-toupper (Depends-on): Add
36797         unicase/empty-prefix-context, unicase/empty-suffix-context.
36798
36799         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36800         * modules/unicase/u8-toupper (Depends-on): Add
36801         unicase/empty-prefix-context, unicase/empty-suffix-context.
36802
36803         New module 'unicase/u32-ct-casefold'.
36804         * lib/unicase/u32-ct-casefold.c: New file.
36805         * modules/unicase/u32-ct-casefold: New file.
36806
36807         New module 'unicase/u16-ct-casefold'.
36808         * lib/unicase/u16-ct-casefold.c: New file.
36809         * modules/unicase/u16-ct-casefold: New file.
36810
36811         New module 'unicase/u8-ct-casefold'.
36812         * lib/unicase/u8-ct-casefold.c: New file.
36813         * lib/unicase/u-ct-casefold.h: New file, derived from
36814         lib/unicase/u-casefold.h.
36815         * modules/unicase/u8-ct-casefold: New file.
36816
36817         New module 'unicase/u32-ct-totitle'.
36818         * lib/unicase/u32-ct-totitle.c: New file.
36819         * modules/unicase/u32-ct-totitle: New file.
36820
36821         New module 'unicase/u16-ct-totitle'.
36822         * lib/unicase/u16-ct-totitle.c: New file.
36823         * modules/unicase/u16-ct-totitle: New file.
36824
36825         New module 'unicase/u8-ct-totitle'.
36826         * lib/unicase/u8-ct-totitle.c: New file.
36827         * lib/unicase/u-ct-totitle.h: New file, derived from
36828         lib/unicase/u-totitle.h.
36829         * modules/unicase/u8-ct-totitle: New file.
36830
36831         New module 'unicase/u32-ct-tolower'.
36832         * lib/unicase/u32-ct-tolower.c: New file.
36833         * modules/unicase/u32-ct-tolower: New file.
36834
36835         New module 'unicase/u16-ct-tolower'.
36836         * lib/unicase/u16-ct-tolower.c: New file.
36837         * modules/unicase/u16-ct-tolower: New file.
36838
36839         New module 'unicase/u8-ct-tolower'.
36840         * lib/unicase/u8-ct-tolower.c: New file.
36841         * modules/unicase/u8-ct-tolower: New file.
36842
36843         New module 'unicase/u32-ct-toupper'.
36844         * lib/unicase/u32-ct-toupper.c: New file.
36845         * modules/unicase/u32-ct-toupper: New file.
36846
36847         New module 'unicase/u16-ct-toupper'.
36848         * lib/unicase/u16-ct-toupper.c: New file.
36849         * modules/unicase/u16-ct-toupper: New file.
36850
36851         New module 'unicase/u8-ct-toupper'.
36852         * lib/unicase/u8-ct-toupper.c: New file.
36853         * modules/unicase/u8-ct-toupper: New file.
36854
36855         Add context arguments to u*_casemap functions.
36856         * lib/unicase/unicasemap.h: Include unicase.h.
36857         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36858         suffix_context arguments.
36859         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36860         functions.
36861         (FUNC): Add prefix_context and suffix_context arguments. Use
36862         uc_is_cased and uc_is_case_ignorable.
36863         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36864         * lib/unicase/u16-casemap.c: Likewise.
36865         * lib/unicase/u32-casemap.c: Likewise.
36866         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36867         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36868         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36869         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36870         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36871         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36872
36873         New module 'unicase/u32-suffix-context'.
36874         * lib/unicase/u32-suffix-context.c: New file.
36875         * modules/unicase/u32-suffix-context: New file.
36876
36877         New module 'unicase/u16-suffix-context'.
36878         * lib/unicase/u16-suffix-context.c: New file.
36879         * modules/unicase/u16-suffix-context: New file.
36880
36881         New module 'unicase/u8-suffix-context'.
36882         * lib/unicase/u8-suffix-context.c: New file.
36883         * lib/unicase/u-suffix-context.h: New file.
36884         * modules/unicase/u8-suffix-context: New file.
36885
36886         New module 'unicase/empty-suffix-context'.
36887         * lib/unicase/empty-suffix-context.c: New file.
36888         * modules/unicase/empty-suffix-context: New file.
36889
36890         New module 'unicase/u32-prefix-context'.
36891         * lib/unicase/u32-prefix-context.c: New file.
36892         * modules/unicase/u32-prefix-context: New file.
36893
36894         New module 'unicase/u16-prefix-context'.
36895         * lib/unicase/u16-prefix-context.c: New file.
36896         * modules/unicase/u16-prefix-context: New file.
36897
36898         New module 'unicase/u8-prefix-context'.
36899         * lib/unicase/u8-prefix-context.c: New file.
36900         * lib/unicase/u-prefix-context.h: New file.
36901         * lib/unicase/context.h: New file.
36902         * modules/unicase/u8-prefix-context: New file.
36903
36904         New module 'unicase/empty-prefix-context'.
36905         * lib/unicase/empty-prefix-context.c: New file.
36906         * modules/unicase/empty-prefix-context: New file.
36907
36908         New module 'unicase/ignorable'.
36909         * lib/unicase/ignorable.c: New file.
36910         * modules/unicase/ignorable: New file.
36911
36912         New module 'unicase/cased'.
36913         * lib/unicase/caseprop.h: New file.
36914         * lib/unicase/cased.c: New file.
36915         * modules/unicase/cased: New file.
36916
36917         New functions for case mapping of substrings.
36918         * lib/unicase.h (casing_prefix_context_t): New type.
36919         (unicase_empty_prefix_context): New variable.
36920         (u8_casing_prefix_context, u16_casing_prefix_context,
36921         u32_casing_prefix_context, u8_casing_prefixes_context,
36922         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36923         declarations.
36924         (casing_suffix_context_t): New type.
36925         (unicase_empty_suffix_context): New variable.
36926         (u8_casing_suffix_context, u16_casing_suffix_context,
36927         u32_casing_suffix_context, u8_casing_suffixes_context,
36928         u16_casing_suffixes_context, u32_casing_suffixes_context,
36929         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36930         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36931         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36932         declarations.
36933
36934 2009-06-28  Jim Meyering  <meyering@redhat.com>
36935
36936         boostrap: indent only with spaces
36937         * build-aux/bootstrap: Indent only with spaces, never TABs.
36938
36939         bootstrap: split long lines
36940         * build-aux/bootstrap: Keep line length < 80.
36941
36942         bootstrap: sync from coreutils
36943         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36944         just as autoreconf does.  Verify a list of prerequisite
36945         package-name,version-number pairs if defined in bootstrap.conf.
36946         Refer to README-prereq, if prerequisites are not satisfied.
36947
36948 2009-06-27  Eric Blake  <ebb9@byu.net>
36949
36950         tests: add test for bogus NULL definition
36951         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36952         * tests/test-stdlib.c: Likewise.
36953         * tests/test-string.c: Likewise.
36954         * tests/test-locale.c: Likewise.
36955         * tests/test-unistd.c: Likewise.
36956         * modules/stdio-tests (Depends-on): Add verify.
36957         * modules/stdlib-tests (Depends-on): Likewise.
36958         * modules/string-tests (Depends-on): Likewise.
36959         * modules/locale-tests (Depends-on): Likewise.
36960         * modules/unistd-tests (Depends-on): Likewise.
36961
36962 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36963
36964         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36965         self-explaining comment.
36966         * m4/selinux-selinux-h: Update serial.
36967         (gl_LIBSELINUX): New macro, adding a warning for missing development
36968         packages to code extracted from...
36969         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36970         Add warning for missing development packages here, too.
36971
36972 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36973
36974         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36975
36976 2009-06-25  Eric Blake  <ebb9@byu.net>
36977
36978         version-etc: fix regression
36979         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36980         gcc.
36981         (version_etc): Use it, to catch bugs with trailing NULL.
36982         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36983         (version_etc_va): Fix logic bug.
36984         * modules/version-etc-tests: Add test.
36985         * tests/test-version-etc.c: New file.
36986         * tests/test-version-etc.sh: Likewise.
36987
36988 2009-06-25  Sam Steingold  <sds@gnu.org>
36989
36990         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36991         mbtowc declaration.
36992
36993 2009-06-25  Eric Blake  <ebb9@byu.net>
36994
36995         fpurge: migrate into <stdio.h>
36996         * lib/fpurge.h: Delete...
36997         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36998         * lib/fpurge.c (fpurge): Change declaring header.
36999         * modules/fpurge (Files): Drop deleted file.
37000         (Depends-on): Add stdio.
37001         (configure.ac): Set witness.
37002         * modules/stdio (Makefile.am): Support fpurge macros.
37003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37004         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37005         * lib/fflush.c: Update client.
37006         * tests/test-fpurge.c: Likewise.
37007         * NEWS: Mention the change.
37008
37009 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37010
37011         * lib/argp-version-etc.c (program_authors): Add const
37012         qualifier.
37013         * lib/version-etc.c: Fix typos in the comments.
37014         * modules/argp-version-etc: Depends on version-etc.
37015
37016 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37017
37018         argp-version-etc: new module.
37019
37020         * lib/argp-version-etc.c: New file.
37021         * lib/argp-version-etc.h: New file.
37022         * modules/argp-version-etc: New file.
37023         * modules/argp-version-etc-tests: New file.
37024         * tests/test-argp-version-etc.c: New test.
37025         * tests/test-argp-version-etc-1.sh: New test.
37026
37027 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37028
37029         Provide additional interfaces and documentation for version-etc
37030         module.
37031
37032         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37033         interfaces.
37034         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37035         prototypes.
37036
37037 2009-06-24  Bruno Haible  <bruno@clisp.org>
37038
37039         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37040         HAVE_LIB${NAME} macro.
37041         Reported by Sam Steingold <sds@gnu.org>.
37042
37043 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37044
37045         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37046         needed.
37047
37048 2009-06-21  Bruno Haible  <bruno@clisp.org>
37049
37050         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37051         work.
37052         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37053         together with LIB${NAME}, LTLIB${NAME}.
37054         Reported by Sam Steingold <sds@gnu.org>.
37055
37056 2009-06-20  Jim Meyering  <meyering@redhat.com>
37057
37058         tests: make sc_require_test_exit_idiom more generic
37059         * top/maint.mk (Exit_witness_file): New overridable variable.
37060         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37061         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37062
37063 2009-06-19  Jim Meyering  <meyering@redhat.com>
37064
37065         hash: reverse order of src/dst parameters in an internal interface
37066         * lib/hash.c (transfer_entries): Reverse order of parameters to
37067         put DST before SRC.  Adjust callers.
37068
37069         tests: test-hash: avoid wholesale duplication
37070         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37071         Instead, use a loop and add a single conditional.
37072
37073         tests: test-hash: allow seed selection via a command line argument
37074         * tests/test-hash.c (get_seed): New function.
37075         (main): Use it.
37076
37077 2009-06-19  Eric Blake  <ebb9@byu.net>
37078
37079         hash: avoid memory leak on allocation failure
37080         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37081         failure.  Factor repeated algorithm...
37082         (transfer_entries): ...into new helper routine.
37083         (hash_delete): React to hash_rehash return value.
37084
37085         hash: reduce memory pressure in hash_rehash no-op case
37086         * lib/hash.c (next_prime): Avoid overflow.
37087         (hash_initialize): Factor bucket size computation...
37088         (compute_bucket_size): ...into new helper function.
37089         (hash_rehash): Use new function and open coding to reduce memory
37090         pressure, and avoid a memory leak in USE_OBSTACK code.
37091         Reported by Jim Meyering.
37092
37093 2009-06-18  Eric Blake  <ebb9@byu.net>
37094
37095         hash: make rotation more obvious
37096         * modules/hash (Depends-on): Add bitrotate and stdint.
37097         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37098         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37099         (SIZE_MAX): Rely on headers for definition.
37100         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37101         (raw_hasher): Use rotr_sz.
37102         Suggested by Jim Meyering.
37103
37104         hash: fix memory leak in last patch
37105         * lib/hash.c (hash_rehash): Avoid memory leak.
37106
37107         hash: avoid no-op rehashing
37108         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37109
37110         hash: provide default callback functions
37111         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37112         (hash_initialize): Use them as defaults.
37113         * tests/test-hash.c (main): Test this.
37114
37115         hash: minor optimization
37116         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37117         when possible.
37118         (hash_initialize): Document this promise.
37119         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37120         * tests/test-hash.c (hash_compare_strings): Test this.
37121
37122 2009-06-18  Bruno Haible  <bruno@clisp.org>
37123
37124         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37125         going to be replaced anyway.
37126
37127 2009-06-18  Bruno Haible  <bruno@clisp.org>
37128
37129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37130         in one place.
37131         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37132         be replaced anyway.
37133
37134 2009-06-18  Eric Blake  <ebb9@byu.net>
37135
37136         hash: check for resize before insertion
37137         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37138         threshold before insertion, so that a pathological hash_rehash
37139         that fills every bucket can still trigger another rehash.
37140
37141 2009-06-18  Jim Meyering  <meyering@redhat.com>
37142
37143         hash-tests: add a loop around the small tests
37144         * tests/test-hash.c (main): Repeat small tests with selected
37145         small initial table sizes.
37146
37147 2009-06-17  Eric Blake  <ebb9@byu.net>
37148
37149         hash: minor cleanups
37150         * lib/hash.h (hash_entry): Make opaque, by moving...
37151         * lib/hash.c (hash_entry): ...here.
37152         (hash_insert): Clarify restrictions on what can be inserted.
37153         (hash_get_next): Clarify when it is safe to remove an element
37154         during traversal.
37155         (check_tuning): Skip verification when tuning is known safe.
37156         (hash_initialize): Clarify restrictions on tuning.
37157
37158 2009-06-17  Jim Meyering  <jim@meyering.net>
37159         and Eric Blake  <ebb9@byu.net>
37160
37161         hash-tests: new module
37162         * modules/hash-tests: New file.
37163         * tests/test-hash.c: New file.
37164
37165 2009-06-17  Eric Blake  <ebb9@byu.net>
37166
37167         strstr-simple: document new module
37168         * MODULES.html.sh: Document new module.
37169
37170         strstr, strcasestr: replace on platforms with broken memchr
37171         * modules/strstr: Split into...
37172         * modules/strstr-simple: ...new module that does not care about
37173         performance, but does care about glibc bug.
37174         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37175         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37176         if platform memchr is broken, per Debian bug 521737.
37177         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37178         memchr.
37179         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37180         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37181         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37182         * modules/mountlist (Depends-on): Add strstr-simple.
37183         * modules/gen-uni-tables (Depends-on): Likewise.
37184         * modules/argz (Depends-on): Add strstr.
37185
37186 2009-06-17  Bruno Haible  <bruno@clisp.org>
37187
37188         * modules/posix_spawn-internal (Depends-on): Add errno.
37189
37190 2009-06-17  Bruno Haible  <bruno@clisp.org>
37191
37192         Define missing ESTALE on Interix 3.5.
37193         * lib/errno.in.h (ESTALE): Assign a value if missing.
37194         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37196         missing.
37197         * doc/posix-headers/errno.texi: Mention the Interix bug.
37198         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37199
37200 2009-06-15  Eric Blake  <ebb9@byu.net>
37201
37202         memchr, memchr2: add valgrind exception
37203         * lib/memchr.valgrind: New file.
37204         * lib/memchr2.valgrind: New file.
37205         * modules/memchr (Files): Distribute valgrind file.
37206         * modules/memchr2 (Files): Likewise.
37207
37208         docs: memchr is no longer obsolete
37209         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37210         * lib/string.in.h (memchr): Simplify logic.
37211
37212 2009-06-14  Jim Meyering  <meyering@redhat.com>
37213
37214         link-follow: fix the "checking..." message to not mention trailing slash
37215         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37216         never considered trailing slashes.
37217
37218 2009-06-14  Bruno Haible  <bruno@clisp.org>
37219
37220         * m4/memchr.m4: Mention also the bug on IA-64.
37221         * doc/posix-functions/memchr.texi: Likewise.
37222
37223 2009-06-12  Eric Blake  <ebb9@byu.net>
37224
37225         memchr: detect broken x86_64 and alpha implementations
37226         * modules/memchr-tests (Depends-on): Move mmap detection...
37227         * modules/memchr (Depends-on): ...here.
37228         (configure.ac): Set indicator.
37229         * lib/string.in.h (memchr): Declare replacement.
37230         * modules/string (Makefile.am): Trigger replacement.
37231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37232         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37233         bugs.
37234         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37235         * modules/getpagesize (License): Relax license.
37236
37237 2009-06-11  Bruno Haible  <bruno@clisp.org>
37238
37239         * lib/idpriv.h: Add more references.
37240
37241 2009-06-08  Bruno Haible  <bruno@clisp.org>
37242
37243         Tests for module 'idpriv-droptemp'.
37244         * modules/idpriv-droptemp-tests: New file.
37245         * tests/test-idpriv-droptemp.sh: New file.
37246         * tests/test-idpriv-droptemp.su.sh: New file.
37247         * tests/test-idpriv-droptemp.c: New file.
37248
37249         New module 'idpriv-droptemp'.
37250         * lib/idpriv-droptemp.c: New file.
37251         * modules/idpriv-droptemp: New file.
37252
37253 2009-06-08  Bruno Haible  <bruno@clisp.org>
37254
37255         Tests for module 'idpriv-drop'.
37256         * modules/idpriv-drop-tests: New file.
37257         * tests/test-idpriv-drop.sh: New file.
37258         * tests/test-idpriv-drop.su.sh: New file.
37259         * tests/test-idpriv-drop.c: New file.
37260
37261         New module 'idpriv-drop'.
37262         * lib/idpriv.h: New file.
37263         * lib-idpriv-drop.c: New file.
37264         * m4/idpriv.m4: New file.
37265         * modules/idpriv-drop: New file.
37266
37267 2009-06-08  Bruno Haible  <bruno@clisp.org>
37268
37269         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37270         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37271         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37272         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37273         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37274         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37275         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37276
37277 2009-06-08  Eric Blake  <ebb9@byu.net>
37278
37279         test-strstr: use memory fence, when possible
37280         * tests/test-strstr.c (main): Use memory fence, in order to be
37281         more likely to trigger Debian bug 521737.
37282         * modules/strstr-tests (Files): Pull in additional files.
37283
37284         memchr: no longer obsolete, for wider field testing
37285         * modules/memchr (Status, Notice): Delete, this module is no
37286         longer obsolete.
37287         * modules/vasnprintf (Depends-on): Add memchr.
37288
37289 2009-06-07  Jim Meyering  <meyering@redhat.com>
37290
37291         hash: declare some functions with the warn_unused_result attribute
37292         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37293
37294 2009-06-07  Bruno Haible  <bruno@clisp.org>
37295
37296         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37297         Reported by Eric Blake.
37298
37299 2009-06-06  Eric Blake  <ebb9@byu.net>
37300
37301         test-alignof: fix typo with long double
37302         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37303         compiler error.
37304
37305 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37306
37307         Escape non-texinfo { and }s.
37308         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37309         markup error.
37310
37311 2009-06-04  Jim Meyering  <meyering@redhat.com>
37312
37313         gitlog-to-changelog: don't infloop on an empty commit log
37314         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37315         Reported by Boris Petersen <transacid@centerim.org>.
37316
37317 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37318
37319         version-etc: extend for packagers
37320         Add three new configure options, intended for packagers:
37321           --with-packager="packager name"
37322           --with-packager-version="packager-specific version"
37323           --with-packager-bug-reports="packager bug reporting"
37324         An example with coreutils:
37325           $ ./configure \
37326             --with-packager=Gentoo \
37327             --with-packager-bug-report=http://bugs.gentoo.org/ \
37328             --with-packager-version="patchset 1.6"
37329           $ ./src/ls --version | head -n2
37330           ls (GNU coreutils) 7.1-dirty
37331           Packaged by Gentoo (patchset 1.6)
37332         Note that the bug reporting info via --help doesn't show up because
37333         coreutils uses its own custom emit_bug_reporting_address() implementation
37334         in src/system.h.  If it didn't, it'd look like:
37335           $ ./src/ls --help | tail -n4
37336           Report bugs to <bug-coreutils@gnu.org>.
37337           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37338           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37339           General help using GNU software: <http://www.gnu.org/gethelp/>.
37340         * lib/version-etc.c: Print new information, if provided.
37341         * m4/version-etc.m4: New file.
37342         * modules/version-etc (Files): Add m4/version-etc.m4.
37343         (configure.ac): Add gl_VERSION_ETC.
37344
37345 2009-05-31  Bruno Haible  <bruno@clisp.org>
37346
37347         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37348         and 'int64_t'.
37349         * modules/alignof-tests (Dependencies): Add stdint.
37350         Reported by Eric Blake.
37351
37352 2009-05-31  Bruno Haible  <bruno@clisp.org>
37353
37354         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37355         restriction due to compiler bugs.
37356         Reported by Eric Blake.
37357
37358 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37359             Bruno Haible  <bruno@clisp.org>
37360
37361         Fix test-alignof failure.
37362         * lib/alignof.h (alignof_slot): New macro.
37363         (alignof_type): New macro, with the same semantics as the previous
37364         'alignof'.
37365         (alignof): Alias to alignof_slot.
37366         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37367         check that the results are usable as constant expressions.
37368
37369 2009-05-31  Bruno Haible  <bruno@clisp.org>
37370
37371         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37372         * tests/test-memchr.c (main): Check that memchr does not read past the
37373         first occurrence of the byte.
37374         * tests/test-strstr.c (main): Update comment.
37375         Suggested by Eric Blake.
37376
37377 2009-05-30  Bruno Haible  <bruno@clisp.org>
37378
37379         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37380         detail how to use dumpbin.
37381         Reported by David Byron <dbyron@dbyron.com>.
37382
37383 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37384
37385         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37386
37387 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37388
37389         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37390
37391 2009-05-28  Bruno Haible  <bruno@clisp.org>
37392
37393         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37394         build-aux/ files.
37395
37396 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37397
37398         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37399
37400 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37401
37402         * gnulib-tool (sed_transform_main_lib_file)
37403         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37404         regexps.
37405
37406 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37407
37408         * tests/test-strstr.c: Add another self-test.
37409         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37410         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37411
37412 2009-05-23  Bruno Haible  <bruno@clisp.org>
37413
37414         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37415         change.
37416
37417 2009-05-21  Bruno Haible  <bruno@clisp.org>
37418
37419         Simplify use of mode_t varargs.
37420         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37421         uses 'mode_t' or 'int'.
37422         * lib/openat.c (openat): Likewise.
37423         * lib/open-safer.c (open_safer): Likewise.
37424         * m4/mode_t.m4: New file.
37425         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37426         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37428         * modules/open (Files): Add m4/mode_t.m4.
37429         * modules/openat (Files): Likewise.
37430         * modules/fcntl-safer (Files): Likewise.
37431         Suggested by Eric Blake.
37432
37433 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37434
37435         * doc/glibc-functions/fallocate.texi: New file.
37436         * doc/gnulib.texi: Include it.
37437
37438 2009-05-21  Eric Blake  <ebb9@byu.net>
37439             Bruno Haible  <bruno@clisp.org>
37440
37441         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37442         invocations.
37443         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37444
37445 2009-05-21  Eric Blake  <ebb9@byu.net>
37446             Bruno Haible  <bruno@clisp.org>
37447
37448         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37449         include_next. Fix of 2008-11-20 commit.
37450         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37451         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37452         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37453         NEXT_MATH_H.
37454         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37455         instead of NEXT_MATH_H.
37456
37457 2009-05-21  Bruno Haible  <bruno@clisp.org>
37458
37459         Avoid redefinition warnings for SIZE_MAX.
37460         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37461         Reported by Simon Josefsson.
37462
37463 2009-05-21  Bruno Haible  <bruno@clisp.org>
37464
37465         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37466         AC_CACHE_VAL.
37467
37468 2009-05-20  Bruno Haible  <bruno@clisp.org>
37469
37470         Make zeroptr.h work on mingw.
37471         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37472         mprotect.
37473         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37474         * modules/memchr2-tests (configure.ac): Likewise.
37475         * modules/memcmp-tests (configure.ac): Likewise.
37476         * modules/memmem-tests (configure.ac): Likewise.
37477         * modules/memrchr-tests (configure.ac): Likewise.
37478         Reported by Simon Josefsson.
37479
37480 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37481
37482         * tests/test-glob.c: Include string.h for strcmp prototype.
37483
37484 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37485
37486         * modules/getdelim (Depends-on): Add explicit stdint, although it
37487         was implicitly already pulled in via realloc-posix.
37488         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37489
37490 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37491
37492         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37493         G. Christensen" <tgc@jupiterrise.com>.
37494         * m4/sys_socket_h.m4: Check for sa_family_t.
37495         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37496         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37497         * tests/test-sys_socket.c: Check that sa_family_t works.
37498
37499 2009-05-18  Eric Blake  <ebb9@byu.net>
37500
37501         maint.mk: allow gnulib_dir in VPATH build
37502         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37503
37504 2009-05-15  Jim Meyering  <meyering@redhat.com>
37505
37506         maint.mk: Give gnulib_dir a default definition.
37507         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37508         Thus, most packages no longer need to specify this variable in cfg.mk
37509
37510 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37511
37512         rename.m4: fix typos that would make non-mingw cross-configure fail
37513         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37514
37515 2009-05-13  Eric Blake  <ebb9@byu.net>
37516
37517         mmap-anon: avoid out-of-order autoconf expansion
37518         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37519         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37520         * modules/memchr-tests (Depends-on): Add extensions.
37521         * modules/memchr2-tests (Depends-on): Add extensions.
37522         * modules/memcmp-tests (Depends-on): Add extensions.
37523         * modules/memmem-tests (Depends-on): Add extensions.
37524         * modules/memrchr-tests (Depends-on): Add extensions.
37525
37526 2009-05-13  Bruno Haible  <bruno@clisp.org>
37527
37528         Make some tests ISO C 99 compliant.
37529         * tests/zerosize-ptr.h: New file.
37530         * tests/test-memchr.c: Include zerosize-ptr.h.
37531         (main): Use a zero-size object pointer instead of NULL.
37532         * tests/test-memchr2.c: Include zerosize-ptr.h.
37533         (main): Use a zero-size object pointer instead of NULL.
37534         * tests/test-memcmp.c: Include zerosize-ptr.h.
37535         (main): Use a zero-size object pointer instead of NULL.
37536         * tests/test-memmem.c: Include zerosize-ptr.h.
37537         (main): Use a zero-size object pointer instead of NULL.
37538         * tests/test-memrchr.c: Include zerosize-ptr.h.
37539         (main): Use a zero-size object pointer instead of NULL.
37540         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37541         m4/mmap-anon.m4.
37542         (Depends-on): Add getpagesize.
37543         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37544         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37545         m4/mmap-anon.m4.
37546         (Depends-on): Add getpagesize.
37547         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37548         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37549         m4/mmap-anon.m4.
37550         (Depends-on): Add getpagesize.
37551         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37552         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37553         m4/mmap-anon.m4.
37554         (Depends-on): Add getpagesize.
37555         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37556         * modules/memrchr-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
37561 2009-05-12  Bruno Haible  <bruno@clisp.org>
37562
37563         Tests for module 'alignof'.
37564         * modules/alignof-tests: New file.
37565         * tests/test-alignof.c: New file.
37566
37567 2009-05-12  Bruno Haible  <bruno@clisp.org>
37568
37569         Fix alignof macro.
37570         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37571         vendor compilers that are always correct.
37572
37573 2009-05-12  Bruno Haible  <bruno@clisp.org>
37574
37575         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37576         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37577         not whether its fully works.
37578
37579 2009-05-12  Bruno Haible  <bruno@clisp.org>
37580
37581         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37582
37583 2009-05-12  Jim Meyering  <meyering@redhat.com>
37584
37585         * top/maint.mk: Adjust backslash alignment.
37586
37587 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37588
37589         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37590
37591 2009-05-11  Eric Blake  <ebb9@byu.net>
37592
37593         argp: avoid undefined behavior
37594         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37595         macros.
37596
37597 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37598
37599         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37600         user.name to prevent git commit from complaining.
37601
37602 2009-05-10  Bruno Haible  <bruno@clisp.org>
37603
37604         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37605         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37606         it rewrites every file name only once.
37607         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37608
37609 2009-05-08  Bruno Haible  <bruno@clisp.org>
37610
37611         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37612         instead of 'max'.
37613
37614 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37615
37616         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37617         sockaddr_storage test.
37618
37619 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37620
37621         * modules/sys_socket (Makefile.am): Substitute
37622         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37623         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37624         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37625         * tests/test-sys_socket.c: Check sockaddr_storage.
37626
37627 2009-05-08  Bruno Haible  <bruno@clisp.org>
37628
37629         New module 'alignof'.
37630         * lib/alignof.h: New file.
37631         * modules/alignof: New file.
37632
37633 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37634             Bruno Haible  <bruno@clisp.org>
37635
37636         Fix test-file-has-acl on FreeBSD.
37637         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37638         mask is implicitly added.
37639         * tests/test-file-has-acl.c: Include <signal.h>.
37640         (main): Terminate the test after 5 seconds.
37641         * modules/acl-tests (configure.ac): Check for alarm function.
37642
37643 2009-05-04  Bruno Haible  <bruno@clisp.org>
37644
37645         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37646         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37647         * modules/errno (configure.ac): Drop AC_REQUIRE.
37648         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37649         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37650
37651 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37652
37653         * modules/glob-tests: New module.
37654         * tests/test-glob.c: Add.
37655
37656 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37657
37658         * modules/fnmatch-tests: New module.
37659         * tests/test-fnmatch.c: Add.
37660
37661 2009-05-04  Eric Blake  <ebb9@byu.net>
37662
37663         maint: make the new no-submodule-changes rule VPATH-safe
37664         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37665
37666 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37667             Bruno Haible  <bruno@clisp.org>
37668
37669         acl: Fix infinite loop on FreeBSD.
37670         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37671         of return value from acl_get_entry.
37672         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37673         Likewise.
37674
37675 2009-05-03  Bruno Haible  <bruno@clisp.org>
37676
37677         * lib/acl-internal.h (acl_entries): Clarify return value.
37678         * lib/acl_entries.c (acl_entries): Likewise.
37679
37680 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37681
37682         Bug fix in acl module.
37683         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37684
37685 2009-05-03  Bruno Haible  <bruno@clisp.org>
37686
37687         Create gperf-generated file in the source dir, not in the build dir.
37688         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37689         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37690         * modules/unicase/locale-language (unicase/locale-languages.h):
37691         Likewise.
37692         * modules/unicase/special-casing (unicase/special-casing-table.h):
37693         Likewise.
37694         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37695         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37696         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37697         Reported by Ralf Wildenhues.
37698
37699 2009-05-03  Bruno Haible  <bruno@clisp.org>
37700
37701         * modules/fnmatch (Description, configure.ac): Taken from
37702         fnmatch-posix.
37703         * modules/fnmatch-posix: Turn into a symbolic reference to the
37704         'fnmatch' module, and deprecate.
37705         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37706
37707 2009-05-03  Bruno Haible  <bruno@clisp.org>
37708
37709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37710         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37711         Reported by Ralf Wildenhues.
37712
37713 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37714
37715         * m4/fnmatch.m4: Fix fnmatch re-define.
37716
37717 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37718
37719         priv-set: new module and tests; adapt write-any-file
37720         * lib/priv-set.c: New file.
37721         * lib/priv-set.h: New file.
37722         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37723         * lib/write-any-file.c: Simplify by using priv-set module.
37724         * m4/priv-set.m4: New file.
37725         * modules/priv-set: New file.
37726         * modules/unlinkdir: Add dependency on priv-set module.
37727         * modules/write-any-file: Likewise.
37728
37729         Tests for module 'priv-set'.
37730         * modules/priv-set-tests: New file.
37731         * tests/test-priv-set.c: New file.
37732
37733 2009-05-03  Jim Meyering  <meyering@redhat.com>
37734             Bruno Haible  <bruno@clisp.org>
37735
37736         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37737         use the converted UTF-8 variant of the name instead.
37738
37739 2009-05-03  Jim Meyering  <meyering@redhat.com>
37740
37741         tests: tighten some getdate tests
37742         * tests/test-getdate.c (main): Tighten tests: require equality,
37743         not just greater than.  Set TZ envvar to UTC0.
37744
37745 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37746
37747         getdate: correctly interpret "next monday" when run on a Monday
37748         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37749         that e.g., "next tues" (when run on a tuesday) results in a date
37750         that is one week in the future, and not today's date.
37751         I.e., add a week when the wday is the same as the current one.
37752         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37753         and earlier by Martin Bernreuther and Jan Minář.
37754         * tests/test-getdate.c (main): Check that "next DAY" is always in
37755         the future and that "last DAY" is always in the past.
37756
37757 2009-05-02  Jim Meyering  <meyering@redhat.com>
37758
37759         build: ensure that a release build fails when a submodule is unclean
37760         * top/maint.mk (no-submodule-changes): New rule.
37761         (alpha beta major): Depend on it.
37762
37763 2009-05-02  Bruno Haible  <bruno@clisp.org>
37764
37765         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37766         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37767         shell variable gl_fnmatch_required to detect which variant is
37768         requested.
37769         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37770         gl_FUNC_FNMATCH_POSIX.
37771         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37772         exclude fnmatch-posix.
37773
37774 2009-05-02  Bruno Haible  <bruno@clisp.org>
37775
37776         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37777         * modules/mbsrtowcs (License): Change to LGPLv2+.
37778         * modules/strnlen1 (License): Likewise.
37779         Reported by Simon Josefsson.
37780
37781 2009-05-02  Bruno Haible  <bruno@clisp.org>
37782
37783         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37784         "cross".
37785         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37786         gnulib-tool was called with option --source-base=lib.
37787
37788 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37789
37790         Use automake *-local hooks without commands, for extensibility.
37791         * modules/localcharset (Makefile.am): Rename install-exec-local
37792         rule to install-exec-localcharset, and make it a prerequisite of
37793         install-exec-local.  Likewise, rename the uninstall-local rule to
37794         uninstall-localcharset, and make it a prerequisite of the former.
37795
37796 2009-05-01  Bruno Haible  <bruno@clisp.org>
37797
37798         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37799         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37800         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37802         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37803         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37804         m4/locale-zh.m4, m4/codeset.m4.
37805
37806         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37807         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37808         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37809         m4/locale-zh.m4.
37810
37811         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37812         REPLACE_WCRTOMB if mbstate_t must be replaced.
37813         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37814         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37815
37816 2009-05-01  Bruno Haible  <bruno@clisp.org>
37817
37818         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37819         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37820         dngettext, dcngettext, textdomain, bindtextdomain,
37821         bind_textdomain_codeset): Undefine before redefining.
37822
37823 2009-04-30  Bruno Haible  <bruno@clisp.org>
37824
37825         Fix bug introduced on 2009-04-25.
37826         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37827         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37828         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37829         is defined.
37830         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37831         is defined.
37832         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37833         is defined.
37834         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37835
37836 2009-04-28  Bruno Haible  <bruno@clisp.org>
37837
37838         Comment tweaks.
37839         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37840         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37841         * lib/unicase.h (u*_casexfrm): Likewise.
37842         Reported by Paolo Bonzini.
37843
37844 2009-04-28  Bruno Haible  <bruno@clisp.org>
37845
37846         Fix a compilation error.
37847         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37848         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37849         Reported by Jim Meyering.
37850
37851 2009-04-27  Bruno Haible  <bruno@clisp.org>
37852
37853         New module 'libunistring'.
37854         * modules/libunistring: New file.
37855         * m4/libunistring.m4: New file.
37856         * MODULES.html.sh (Unicode string functions): Add it.
37857
37858 2009-04-27  Eric Blake  <ebb9@byu.net>
37859
37860         maint.mk: allow package-specific header to provide <config.h>
37861         * top/maint.mk (sc_require_config_h): New variable.
37862         (sc_require_config_h, sc_require_config_h_first): Use it.
37863
37864 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37865
37866         * top/maint.mk (sc_avoid_if_before_free): Except
37867         useless-if-before-free script.
37868
37869 2009-04-27  Eric Blake  <ebb9@byu.net>
37870
37871         maintainer-makefile: depend on all required helper scripts
37872         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37873         useless-if-before-free.
37874         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37875         version, rather than assuming gnulib checkout is available.
37876         Reported by Simen Josefsson.
37877
37878 2009-04-26  Bruno Haible  <bruno@clisp.org>
37879
37880         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37881         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37882         "../" or "..".
37883
37884 2009-04-26  Bruno Haible  <bruno@clisp.org>
37885
37886         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37887         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37888         AC_LIB_HAVE_LINKFLAGS.
37889
37890 2009-04-26  Bruno Haible  <bruno@clisp.org>
37891
37892         Simplify calling convention of u*_conv_from_encoding.
37893         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37894         u32_conv_from_encoding): Expect a resultbuf argument and return the
37895         result directly as a pointer.
37896         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37897         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37898         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37899         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37900         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37901         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37902         Update.
37903         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37904         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37905         * lib/vasnprintf.c (VASNPRINTF): Update.
37906         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37907         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37908         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37909         * NEWS: Mention the change.
37910
37911 2009-04-26  Bruno Haible  <bruno@clisp.org>
37912
37913         Simplify calling convention of u*_conv_to_encoding.
37914         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37915         u32_conv_to_encoding): Expect a resultbuf argument and return the
37916         result directly as a pointer.
37917         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37918         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37919         freeing scaled_offsets if mem_iconveha failed.
37920         * lib/unicase/u-casexfrm.h (FUNC): Update.
37921         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37922         * lib/vasnprintf.c (VASNPRINTF): Update.
37923         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37924         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37925         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37926         * NEWS: Mention the change.
37927
37928 2009-04-26  Bruno Haible  <bruno@clisp.org>
37929
37930         Avoid test failures on AIX and OSF/1.
37931         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37932         malloc(0).
37933         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37934         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37935         Likewise.
37936         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37937         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37938         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37939         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37940         * doc/posix-functions/malloc.texi: Document the portability problem
37941         related to malloc(0).
37942
37943 2009-04-26  Bruno Haible  <bruno@clisp.org>
37944
37945         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37946         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37947         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37948
37949 2009-04-25  Bruno Haible  <bruno@clisp.org>
37950
37951         Avoid link error when creating a namespace clean library.
37952         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37953         as macro with arguments if already defined as an alias.
37954         * lib/signbitf.c (gl_signbitf): Don't undefine.
37955         * lib/signbitd.c (gl_signbitd): Don't undefine.
37956         * lib/signbitl.c (gl_signbitl): Don't undefine.
37957
37958 2009-04-25  Jim Meyering  <meyering@redhat.com>
37959
37960         vc-list-files: fix another quoting bug
37961         * build-aux/vc-list-files: Avoid sed backslash expansion
37962         of pathological directory names.
37963
37964 2009-04-25  Eric Blake  <ebb9@byu.net>
37965
37966         vc-list-files: fix shell quoting error
37967         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37968         timestamp.
37969
37970 2009-04-25  Jim Meyering  <meyering@redhat.com>
37971
37972         vc-list-files: restore lost functionality with subdir argument
37973         * build-aux/vc-list-files: When given a non-"." sub-directory
37974         argument, substitute the $dir/ prefix back onto each resulting name.
37975         Otherwise, coreutils' root_tests check would fail.
37976
37977 2009-04-24  Eric Blake  <ebb9@byu.net>
37978
37979         vc-list-files: ignore git symlinks
37980         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37981         than ls-files, to ignore git symlinks.
37982
37983         maint.mk: import improvements from m4
37984         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37985         (move_if_change): Delete unused macro.
37986         (news-date-check, vc-diff-check): Support VPATH builds.
37987         (announcement): Likewise.  Split --bootstrap-tools list...
37988         (boostrap-tools): ...into separate list, which can be overridden
37989         in cfg.mk.
37990         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37991         requiring dependency on useless-if-before-free module.
37992         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37993         Support VPATH builds.
37994
37995 2009-04-24  Jim Meyering  <meyering@redhat.com>
37996
37997         maint.mk: remove coreutils-specific rules and variables
37998         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37999         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38000         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38001
38002         maint.mk: remove obsolete rule
38003         * top/maint.mk (rel-check): Remove rule.
38004         (WGET, WGETFLAGS): Remove now-unused variables.
38005
38006 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38007
38008         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38009         consistency.
38010
38011         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38012         '$(PATH_SEPARATOR)' instead of ':'.
38013
38014 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38015
38016         * lib/getopt1.c (main): Use 'const' for static array.
38017
38018 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38019
38020         * top/maint.mk: Sync with coreutils.
38021         * NEWS: Explain incompatibilities.
38022
38023 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38024             Bruno Haible  <bruno@clisp.org>
38025
38026         Fix cross-compilation results.
38027         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38028         statement, as third argument of AC_TRY_RUN.
38029         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38030         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38031         Likewise.
38032         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38033         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38034         Likewise.
38035         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38036         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38037         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38038
38039 2009-04-20  Bruno Haible  <bruno@clisp.org>
38040
38041         Avoid test failure on mingw.
38042         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38043
38044 2009-04-20  Bruno Haible  <bruno@clisp.org>
38045
38046         Avoid compilation error on mingw.
38047         * modules/localename-tests (Depends-on): Add locale.
38048
38049 2009-04-19  Bruno Haible  <bruno@clisp.org>
38050
38051         Support for building a shared library on Windows platforms.
38052         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38053         (main): Test the presence of UNINORM_NFC here.
38054         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38055         (main): Test the presence of UNINORM_NFD here.
38056         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38057         (main): Test the presence of UNINORM_NFKC here.
38058         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38059         (main): Test the presence of UNINORM_NFKD here.
38060
38061 2009-04-19  Bruno Haible  <bruno@clisp.org>
38062
38063         Avoid a compiler warning.
38064         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38065         Change type of variable 'sequence'.
38066
38067 2009-04-19  Bruno Haible  <bruno@clisp.org>
38068
38069         * modules/configmake (Makefile.am): When the contents of configmake.h
38070         does not change, arrange to preserve its modification time.
38071
38072 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38073
38074         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38075         gettext domain.
38076
38077 2009-04-16  Jim Meyering  <meyering@redhat.com>
38078
38079         useless-if-before-free: improve conversion code
38080         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38081         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38082
38083 2009-04-14  Bruno Haible  <bruno@clisp.org>
38084
38085         * modules/fcntl (Depends-on): Add extensions.
38086         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38087
38088 2009-04-12  Ben Pfaff  <blp@gnu.org>
38089
38090         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38091         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38092
38093 2009-03-20  Ben Pfaff  <blp@gnu.org>
38094
38095         Make rename replace existing destinations on Windows.
38096         * m4/rename.m4: Add test for Mingw.
38097         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38098         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38099         * doc/posix-functions/rename.texi: Document.
38100
38101 2009-04-10  Bruno Haible  <bruno@clisp.org>
38102
38103         New include file "iconveh.h".
38104         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38105         * lib/striconveh.h: Include it.
38106         (enum iconv_ilseq_handler): Remove definition.
38107         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38108         striconveh.h.
38109         * lib/striconveha.c: Include striconveh.h.
38110         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38111         * modules/striconveh (Files): Add lib/iconveh.h.
38112         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38113         lib/striconveh.h.
38114
38115 2009-04-10  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/uniconv.h: Update comment.
38118
38119 2009-04-10  Bruno Haible  <bruno@clisp.org>
38120
38121         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38122         always.
38123         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38124         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38125         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38126         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38127         "unistring-notinline.h", so that the function gets defined always.
38128         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38129         * lib/unistr/u8-uctomb.c: Likewise.
38130         * lib/unistr/u16-mbtouc.c: Likewise.
38131         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38132         * lib/unistr/u16-uctomb.c: Likewise.
38133         * lib/unistr/u32-mbtouc.c: Likewise.
38134         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38135         * lib/unistr/u32-uctomb.c: Likewise.
38136
38137 2009-04-10  Bruno Haible  <bruno@clisp.org>
38138
38139         Mark 'utime' obsolete.
38140         * modules/utime (Status, Notice): New sections.
38141         Suggested by Jim Meyering.
38142
38143         Fix cross-compile guess for utime test.
38144         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38145         autoconf.
38146         * doc/posix-functions/utime.texi: Give more precisions.
38147         Reported by Jan <ipif@ymail.com>.
38148
38149 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38150
38151         filevercmp: correct today's change
38152         * lib/filevercmp.c: Also handle coreutils' test inputs.
38153         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38154
38155         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38156         for reporting it.
38157         * lib/filevercmp.c: Special handle for "", "." and "..".
38158         * tests/test-filevercmp.c: Enlarge the set suite.
38159
38160 2009-04-07  Jim Meyering  <meyering@redhat.com>
38161
38162         useless-if-before-free: show how to remove braced useless free, too
38163         * build-aux/useless-if-before-free: still only in a comment, though.
38164
38165 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38166
38167         maint.mk: import changes to syntax-check macros from coreutils
38168         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38169         Use them in the relevant macros.
38170
38171 2009-04-06  Bruno Haible  <bruno@clisp.org>
38172
38173         Fix unportable use of bit-fields.
38174         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38175         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38176         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38177
38178 2009-04-06  Bruno Haible  <bruno@clisp.org>
38179
38180         Avoid test failures on AIX and OSF/1.
38181         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38182         that malloc(0) = NULL.
38183         * tests/unicase/test-u8-tolower.c (check): Likewise.
38184         * tests/unicase/test-u8-totitle.c (check): Likewise.
38185         * tests/unicase/test-u8-toupper.c (check): Likewise.
38186         * tests/unicase/test-u16-casefold.c (check): Likewise.
38187         * tests/unicase/test-u16-tolower.c (check): Likewise.
38188         * tests/unicase/test-u16-totitle.c (check): Likewise.
38189         * tests/unicase/test-u16-toupper.c (check): Likewise.
38190         * tests/unicase/test-u32-casefold.c (check): Likewise.
38191         * tests/unicase/test-u32-tolower.c (check): Likewise.
38192         * tests/unicase/test-u32-totitle.c (check): Likewise.
38193         * tests/unicase/test-u32-toupper.c (check): Likewise.
38194         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38195         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38196         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38197         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38198         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38199         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38200         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38201         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38202         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38203         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38204         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38205         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38206
38207 2009-04-05  Bruno Haible  <bruno@clisp.org>
38208
38209         Work around an autoconf limitation.
38210         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38211         comment line if it would be longer than 3 KB.
38212
38213 2009-04-05  Bruno Haible  <bruno@clisp.org>
38214
38215         Avoid test failure with libiconv-1.13.
38216         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38217         of the expected test results.
38218
38219 2009-04-05  Bruno Haible  <bruno@clisp.org>
38220
38221         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38222         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38223         that it should be installed.
38224
38225 2009-04-05  Bruno Haible  <bruno@clisp.org>
38226
38227         * gnulib-tool: New option --copy-file.
38228         (func_usage): Document it.
38229         (func_dest_tmpfilename): Moved out of func_import.
38230         (func_add_file, func_update_file): New functions, extracted from
38231         func_import.
38232         (func_import): Update.
38233
38234 2009-04-05  Karl Berry  <karl@gnu.org>
38235
38236         * README: prominently mention gnulib-tool.
38237         Rearrange sections so getting the code is near the top.
38238
38239 2009-04-05  Bruno Haible  <bruno@clisp.org>
38240
38241         * lib/unicase.h: Mention u*_cmp2.
38242         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38243         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38244         * lib/unicase/ulc-casecmp.c: Likewise.
38245         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38246         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38247         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38248         unistr/u8-cmp.
38249         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38250         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38251         unistr/u16-cmp.
38252         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38253         unistr/u32-cmp.
38254
38255         * lib/uninorm.h: Mention u*_cmp2.
38256         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38257         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38258         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38259         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38260         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38261         unistr/u8-cmp.
38262         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38263         unistr/u16-cmp.
38264         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38265         unistr/u32-cmp.
38266
38267         New module 'unistr/u32-cmp2'.
38268         * lib/unistr/u32-cmp2.c: New file.
38269         * modules/unistr/u32-cmp2: New file.
38270
38271         New module 'unistr/u16-cmp2'.
38272         * lib/unistr/u16-cmp2.c: New file.
38273         * modules/unistr/u16-cmp2: New file.
38274
38275         New module 'unistr/u8-cmp2'.
38276         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38277         * lib/unistr/u8-cmp2.c: New file.
38278         * lib/unistr/u-cmp2.h: New file.
38279         * modules/unistr/u8-cmp2: New file.
38280
38281 2009-04-05  Bruno Haible  <bruno@clisp.org>
38282
38283         * lib/unictype.h (uc_property_is_valid): New macro.
38284         * tests/unictype/test-pr_byname.c (main): Use it.
38285
38286         * lib/unistr.h: Doc fixes.
38287         * lib/uniconv.h: Doc fixes.
38288         * lib/unictype.h: Doc fixes.
38289
38290 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38291
38292         Port coreutils 7.2 to Solaris 8.
38293
38294         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38295         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38296         for Solaris 8.  This is a bit of a hack, as it means it's the
38297         caller's responsibility to add -lnsl if needed, but most likely it
38298         won't be needed since only getaddrinfo uses this and getaddrinfo
38299         isn't needed on Solaris 8.
38300
38301         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38302         problem to Solaris 8 encountered with coreutils 7.2, which
38303         resulted in a message "fnmatch.c:292: warning: passing argument 4
38304         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38305         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38306
38307 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38308
38309         * m4/ld-version-script.m4: Add FIXME comment.
38310
38311 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38312
38313         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38314         SOVERSION variable.
38315
38316 2009-04-02  Bruno Haible  <bruno@clisp.org>
38317
38318         * Makefile (info, html, dvi, pdf): Combine the rules.
38319         Suggested by Jim Meyering.
38320
38321 2009-04-01  Bruno Haible  <bruno@clisp.org>
38322
38323         * Makefile (info, html, dvi, pdf): New targets.
38324         Reported by Reuben Thomas <rrt@sc3d.org>.
38325
38326 2009-04-01  Bruno Haible  <bruno@clisp.org>
38327
38328         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38329         can be put into PATH.
38330         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38331
38332 2009-04-01  Bruno Haible  <bruno@clisp.org>
38333
38334         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38335
38336 2009-04-01  Bruno Haible  <bruno@clisp.org>
38337
38338         Rename module 'visibility'.
38339         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38340         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38341         * doc/gnulib.texi: Update.
38342         * MODULES.html.sh (Misc): Update.
38343         * NEWS: Mention the change.
38344
38345 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38346
38347         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38348         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38349         Eric Blake <ebb9@byu.net> for review.
38350         * MODULES.html.sh: Add lib-msvc-compat.
38351         * doc/gnulib.texi: Link to new section.
38352         * m4/ld-output-def.m4: New file.
38353         * doc/ld-output-def.texi: New file.
38354
38355 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38356
38357         Rename ld-version-script to lib-symbol-versions.  Suggested by
38358         Bruno Haible <bruno@clisp.org>.
38359         * modules/ld-version-script: Renamed to lib-symbol-versions.
38360         * doc/ld-version-script.texi: Fix module name.
38361         * MODULES.html.sh: Add lib-symbol-versions.
38362
38363 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38364
38365         * modules/u64-tests: New file.
38366         * tests/test-u64.c: New file.
38367
38368 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38369
38370         * MODULES.html.sh: Mention u64.
38371         * modules/u64: New module.
38372         * modules/crypto/sha512: Depend on u64 module instead of providing
38373         u64.h.
38374
38375 2009-03-27  Eric Blake  <ebb9@byu.net>
38376
38377         test-strerror: make debugging EAI_SYSTEM easier
38378         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38379         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38380         failure was EAI_SYSTEM.
38381
38382 2009-03-25  Bruno Haible  <bruno@clisp.org>
38383
38384         Fix a problem with --enable-relocatable on Solaris 7.
38385         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38386         since 2008-02-24.
38387
38388 2009-03-25  Eric Blake  <ebb9@byu.net>
38389
38390         test-sockets: avoid gcc warning
38391         * tests/test-sockets.c (main): Silence compiler warning.
38392
38393 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38394
38395         New modules nproc, pthread, contributed by Glen Lenker.
38396
38397         * MODULES.html.sh: Add pthread, nproc.
38398         * lib/nproc.c: New file.
38399         * lib/nproc.h: New file.
38400         * lib/pthread.in.h: New file.
38401         * m4/pthread.m4: New file.
38402         * modules/nproc: New file.
38403         * modules/pthread: New file.
38404
38405 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38406
38407         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38408         New variable.
38409
38410 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38411
38412         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38413         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38414         * tests/test-filevercmp.c: Add tests for backup suffixes.
38415
38416 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38417
38418         * modules/stdlib (Depends-on): Add stdint, needed when defining
38419         struct random_data on, for example, HP-UX 10.20.  Reported by
38420         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38421
38422 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38423
38424         * lib/readline.c (readline): Call fflush on stdout after printing
38425         prompt.
38426
38427 2009-03-20  Bruno Haible  <bruno@clisp.org>
38428
38429         Remove dependency from 'close' module to -lws2_32 on native Windows.
38430         * lib/close-hook.h: New file.
38431         * lib/close-hook.c: New file.
38432         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38433         w32sock.h.
38434         (_gl_close_fd_maybe_socket): Remove function.
38435         (rpl_close): Invoke execute_all_close_hooks instead of
38436         _gl_close_fd_maybe_socket.
38437         * lib/sockets.c: Include close-hook.h, w32sock.h.
38438         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38439         (close_sockets_hook): New variable.
38440         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38441         (gl_sockets_cleanup): Unregister it.
38442         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38443         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38444         * modules/close-hook: New file.
38445         * modules/close (Files): Remove lib/w32sock.h.
38446         (Depends-on): Add close-hook.
38447         (Link): Remove section.
38448         * modules/sockets (Files): Add lib/w32sock.h.
38449         (Depends-on): Add close-hook.
38450         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38451         invocation.
38452         * NEWS: Mention that LIB_CLOSE is gone.
38453
38454 2009-03-23  Eric Blake  <ebb9@byu.net>
38455
38456         signal-tests: test previous patch
38457         * tests/test-signal.c: New file.
38458         * modules/signal-tests: Likewise.
38459
38460         signal.h: always support 'volatile sig_atomic_t'
38461         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38462         (gl_SIGNAL_H_DEFAULTS): Add a default.
38463         * modules/signal (Makefile.am): Substitute if needed.
38464         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38465         users can blindly add volatile.
38466         * doc/posix-headers/signal.texi (signal.h): Document it.
38467         Reported by Matthew Woehlke.
38468
38469 2009-03-23  Jim Meyering  <meyering@redhat.com>
38470
38471         pathmax: PATH_MAX: use pathconf only when available
38472         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38473         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38474         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38475         This avoids a link failure in a PSP cross-compilation environment
38476         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38477
38478         * lib/vasnprintf.c (divide): Fix typo in comment.
38479
38480 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38481
38482         * gnulib-tool (func_filter_filelist): Fix comment.
38483
38484 2009-03-20  Bruno Haible  <bruno@clisp.org>
38485
38486         Make sockets.h self-contained.
38487         * lib/sockets.c: Include sockets.h first.
38488         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38489
38490 2009-03-19  Eric Blake  <ebb9@byu.net>
38491
38492         doc: mention more functions added in cygwin 1.7.0
38493         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38494         addition.
38495         * doc/posix-functions/log2f.texi: Likewise.
38496
38497 2009-03-19  Jim Meyering  <meyering@redhat.com>
38498
38499         fsusage: avoid syntax error due to statement-before-declaration
38500         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38501         after all declarations.  Reported by Matthew Woehlke in
38502         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38503
38504 2009-03-18  Eric Blake  <ebb9@byu.net>
38505
38506         build-aux/compile: sync from automake
38507         * build-aux/compile: New file, from automake.
38508         * config/srclist.txt: Mention build-aux/compile.
38509
38510 2009-03-17  Bruno Haible  <bruno@clisp.org>
38511
38512         * lib/git-merge-changelog.c: Fix typo in comment.
38513         Reported by Reuben Thomas <rrt@sc3d.org>.
38514
38515 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38516
38517         * m4/regex.m4: update and improve help for
38518         --without-included-regex.
38519
38520 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38521
38522         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38523         failure on missing include files.
38524
38525 2009-03-17  Eric Blake  <ebb9@byu.net>
38526
38527         doc: mention more functions added in cygwin 1.7.0
38528         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38529         addition.
38530         * doc/posix-functions/fwscanf.texi: Likewise.
38531         * doc/posix-functions/swprintf.texi: Likewise.
38532         * doc/posix-functions/swscanf.texi: Likewise.
38533         * doc/posix-functions/vfwprintf.texi: Likewise.
38534         * doc/posix-functions/vfwscanf.texi: Likewise.
38535         * doc/posix-functions/vswprintf.texi: Likewise.
38536         * doc/posix-functions/vswscanf.texi: Likewise.
38537         * doc/posix-functions/vwprintf.texi: Likewise.
38538         * doc/posix-functions/vwscanf.texi: Likewise.
38539         * doc/posix-functions/wcscasecmp.texi: Likewise.
38540         * doc/posix-functions/wcsdup.texi: Likewise.
38541         * doc/posix-functions/wcsftime.texi: Likewise.
38542         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38543         * doc/posix-functions/wprintf.texi: Likewise.
38544         * doc/posix-functions/wscanf.texi: Likewise.
38545         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38546
38547 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38548
38549         maint.mk: really add $(AM_MAKEFLAGS)
38550         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38551         was inadvertently omitted in the last commit.
38552         Spotted by Bruno Haible.
38553
38554         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38555         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38556         $(AM_MAKEFLAGS)' rather than plain `make'.
38557
38558         gnulib-tool: execute $MAKE not make
38559         * gnulib-tool: Default $MAKE to 'make'.
38560         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38561         than make.  Initialize $MAKE in the do-autobuild script.
38562
38563         gnulib-tool: use $MAKE not make in generated files
38564         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38565         make, in generated files.  Initialize $MAKE in the do-autobuild
38566         script.
38567
38568         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38569
38570         GNUmakefile: disable parallelism only for multiple, recursive targets
38571         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38572         additions in the Makefile.
38573         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38574         by Automake.
38575         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38576         are listed on the command line and at least one of them is
38577         listed in $(ALL_RECURSIVE_TARGETS).
38578
38579 2009-03-14  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38582         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38583         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38584         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38585         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38586         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38587         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38588         unistr/u8-uctomb.
38589         * modules/unistr/u8-strchr (Depends-on): Likewise.
38590         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38591         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38592         unistr/u16-uctomb.
38593         * modules/unistr/u16-strchr (Depends-on): Likewise.
38594         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38595
38596 2009-03-12  Bruno Haible  <bruno@clisp.org>
38597
38598         Work around select() bug on Interix 3.5.
38599         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38600         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38601         * m4/select.m4: New file.
38602         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38603         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38604         * modules/select (Files): Add m4/select.m4.
38605         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38606         * modules/nanosleep (Depends-on): Add select.
38607         * modules/poll (Depends-on): Likewise.
38608         * doc/posix-functions/select.texi: Mention the Interix bug.
38609         Reported by Markus Duft <mduft@gentoo.org>.
38610
38611         * lib/select.c: Renamed from lib/winsock-select.c.
38612         * modules/select (Files): Add lib/select.c, remove
38613         lib/winsock-select.c.
38614         (configure.ac): Update.
38615
38616 2009-03-12  Jim Meyering  <meyering@redhat.com>
38617
38618         avoid gcc warnings about unused macro definitions
38619         * lib/readtokens.c (STREQ): Remove unused definition.
38620         * lib/xmalloc.c (SIZE_MAX): Likewise.
38621         * lib/openat-die.c (N_): Likewise.
38622         * lib/mountlist.c (SIZE_MAX): Remove definition.
38623         Instead, include <stdint.h>.
38624         * lib/readutmp.c: Likewise.
38625         * modules/readutmp (Depends-on): Add stdint.
38626         * modules/mountlist (Depends-on): Add stdint.
38627         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38628
38629 2009-03-10  Bruno Haible  <bruno@clisp.org>
38630
38631         Tests for module 'mbmemcasecoll'.
38632         * modules/mbmemcasecoll-tests: New file.
38633         * tests/test-mbmemcasecoll1.sh: New file.
38634         * tests/test-mbmemcasecoll2.sh: New file.
38635         * tests/test-mbmemcasecoll3.sh: New file.
38636         * tests/test-mbmemcasecoll.c: New file.
38637
38638         New module 'mbmemcasecoll'.
38639         * lib/mbmemcasecoll.h: New file.
38640         * lib/mbmemcasecoll.c: New file.
38641         * modules/mbmemcasecoll: New file.
38642
38643         * tests/test-mbmemcasecmp.h: New file, extracted from
38644         tests/test-mbmemcasecmp.c.
38645         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38646         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38647         (main): Update.
38648         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38649
38650 2009-03-09  Bruno Haible  <bruno@clisp.org>
38651
38652         Tests for module 'mbmemcasecmp'.
38653         * modules/mbmemcasecmp-tests: New file.
38654         * tests/test-mbmemcasecmp1.sh: New file.
38655         * tests/test-mbmemcasecmp2.sh: New file.
38656         * tests/test-mbmemcasecmp3.sh: New file.
38657         * tests/test-mbmemcasecmp.c: New file.
38658
38659         New module 'mbmemcasecmp'.
38660         * lib/mbmemcasecmp.h: New file.
38661         * lib/mbmemcasecmp.c: New file.
38662         * modules/mbmemcasecmp: New file.
38663
38664 2009-03-09  Bruno Haible  <bruno@clisp.org>
38665
38666         Tests for module 'unicase/ulc-casecoll'.
38667         * modules/unicase/ulc-casecoll-tests: New file.
38668         * tests/unicase/test-ulc-casecoll1.sh: New file.
38669         * tests/unicase/test-ulc-casecoll2.sh: New file.
38670         * tests/unicase/test-ulc-casecoll.c: New file.
38671
38672         New module 'unicase/ulc-casecoll'.
38673         * lib/unicase.h (ulc_casecoll): New declaration.
38674         * lib/unicase/ulc-casecoll.c: New file.
38675         * modules/unicase/ulc-casecoll: New file.
38676
38677         New module 'unicase/ulc-casexfrm'.
38678         * lib/unicase.h (ulc_casexfrm): New declaration.
38679         * lib/unicase/ulc-casexfrm.c: New file.
38680         * modules/unicase/ulc-casexfrm: New file.
38681
38682 2009-03-09  Bruno Haible  <bruno@clisp.org>
38683
38684         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38685         invocations.
38686
38687         * m4/mbscasecmp.m4: Remove file.
38688         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38689         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38690
38691         * m4/mbscasestr.m4: Remove file.
38692         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38693         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38694
38695         * m4/mbschr.m4: Remove file.
38696         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38697         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38698
38699         * m4/mbscspn.m4: Remove file.
38700         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38701         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38702
38703         * m4/mbslen.m4: Remove file.
38704         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38705         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38706
38707         * m4/mbsncasecmp.m4: Remove file.
38708         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38709         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38710
38711         * m4/mbsnlen.m4: Remove file.
38712         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38713         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38714
38715         * m4/mbspbrk.m4: Remove file.
38716         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38717         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38718
38719         * m4/mbspcasecmp.m4: Remove file.
38720         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38721         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38722
38723         * m4/mbsrchr.m4: Remove file.
38724         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38725         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38726
38727         * m4/mbssep.m4: Remove file.
38728         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38729         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38730
38731         * m4/mbsspn.m4: Remove file.
38732         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38733         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38734
38735         * m4/mbsstr.m4: Remove file.
38736         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38737         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38738
38739         * m4/mbstok_r.m4: Remove file.
38740         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38741         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38742
38743         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38744
38745         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38746         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38747
38748         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38749
38750 2009-03-08  Bruno Haible  <bruno@clisp.org>
38751
38752         Tests for module 'unicase/ulc-casecmp'.
38753         * modules/unicase/ulc-casecmp-tests: New file.
38754         * tests/unicase/test-ulc-casecmp1.sh: New file.
38755         * tests/unicase/test-ulc-casecmp2.sh: New file.
38756         * tests/unicase/test-ulc-casecmp.c: New file.
38757
38758         New module 'unicase/ulc-casecmp'.
38759         * lib/unicase.h (ulc_casecmp): New declaration.
38760         * lib/unicase/ulc-casecmp.c: New file.
38761         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38762         'const SRC_UNIT *'.
38763         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38764         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38765         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38766         * modules/unicase/ulc-casecmp: New file.
38767
38768         Tests for module 'unicase/u32-is-cased'.
38769         * modules/unicase/u32-is-cased-tests: New file.
38770         * tests/unicase/test-u32-is-cased.c: New file.
38771
38772         Tests for module 'unicase/u16-is-cased'.
38773         * modules/unicase/u16-is-cased-tests: New file.
38774         * tests/unicase/test-u16-is-cased.c: New file.
38775
38776         Tests for module 'unicase/u8-is-cased'.
38777         * modules/unicase/u8-is-cased-tests: New file.
38778         * tests/unicase/test-u8-is-cased.c: New file.
38779         * tests/unicase/test-is-cased.h: New file.
38780
38781         New module 'unicase/u32-is-cased'.
38782         * lib/unicase/u32-is-cased.c: New file.
38783         * modules/unicase/u32-is-cased: New file.
38784
38785         New module 'unicase/u16-is-cased'.
38786         * lib/unicase/u16-is-cased.c: New file.
38787         * modules/unicase/u16-is-cased: New file.
38788
38789         New module 'unicase/u8-is-cased'.
38790         * lib/unicase/u8-is-cased.c: New file.
38791         * lib/unicase/u-is-cased.h: New file.
38792         * modules/unicase/u8-is-cased: New file.
38793
38794         Tests for module 'unicase/u32-is-casefolded'.
38795         * modules/unicase/u32-is-casefolded-tests: New file.
38796         * tests/unicase/test-u32-is-casefolded.c: New file.
38797
38798         Tests for module 'unicase/u16-is-casefolded'.
38799         * modules/unicase/u16-is-casefolded-tests: New file.
38800         * tests/unicase/test-u16-is-casefolded.c: New file.
38801
38802         Tests for module 'unicase/u8-is-casefolded'.
38803         * modules/unicase/u8-is-casefolded-tests: New file.
38804         * tests/unicase/test-u8-is-casefolded.c: New file.
38805         * tests/unicase/test-is-casefolded.h: New file.
38806
38807         New module 'unicase/u32-is-casefolded'.
38808         * lib/unicase/u32-is-casefolded.c: New file.
38809         * modules/unicase/u32-is-casefolded: New file.
38810
38811         New module 'unicase/u16-is-casefolded'.
38812         * lib/unicase/u16-is-casefolded.c: New file.
38813         * modules/unicase/u16-is-casefolded: New file.
38814
38815         New module 'unicase/u8-is-casefolded'.
38816         * lib/unicase/u8-is-casefolded.c: New file.
38817         * modules/unicase/u8-is-casefolded: New file.
38818
38819         Tests for module 'unicase/u32-is-titlecase'.
38820         * modules/unicase/u32-is-titlecase-tests: New file.
38821         * tests/unicase/test-u32-is-titlecase.c: New file.
38822
38823         Tests for module 'unicase/u16-is-titlecase'.
38824         * modules/unicase/u16-is-titlecase-tests: New file.
38825         * tests/unicase/test-u16-is-titlecase.c: New file.
38826
38827         Tests for module 'unicase/u8-is-titlecase'.
38828         * modules/unicase/u8-is-titlecase-tests: New file.
38829         * tests/unicase/test-u8-is-titlecase.c: New file.
38830         * tests/unicase/test-is-titlecase.h: New file.
38831
38832         New module 'unicase/u32-is-titlecase'.
38833         * lib/unicase/u32-is-titlecase.c: New file.
38834         * modules/unicase/u32-is-titlecase: New file.
38835
38836         New module 'unicase/u16-is-titlecase'.
38837         * lib/unicase/u16-is-titlecase.c: New file.
38838         * modules/unicase/u16-is-titlecase: New file.
38839
38840         New module 'unicase/u8-is-titlecase'.
38841         * lib/unicase/u8-is-titlecase.c: New file.
38842         * modules/unicase/u8-is-titlecase: New file.
38843
38844         Tests for module 'unicase/u32-is-lowercase'.
38845         * modules/unicase/u32-is-lowercase-tests: New file.
38846         * tests/unicase/test-u32-is-lowercase.c: New file.
38847
38848         Tests for module 'unicase/u16-is-lowercase'.
38849         * modules/unicase/u16-is-lowercase-tests: New file.
38850         * tests/unicase/test-u16-is-lowercase.c: New file.
38851
38852         Tests for module 'unicase/u8-is-lowercase'.
38853         * modules/unicase/u8-is-lowercase-tests: New file.
38854         * tests/unicase/test-u8-is-lowercase.c: New file.
38855         * tests/unicase/test-is-lowercase.h: New file.
38856
38857         New module 'unicase/u32-is-lowercase'.
38858         * lib/unicase/u32-is-lowercase.c: New file.
38859         * modules/unicase/u32-is-lowercase: New file.
38860
38861         New module 'unicase/u16-is-lowercase'.
38862         * lib/unicase/u16-is-lowercase.c: New file.
38863         * modules/unicase/u16-is-lowercase: New file.
38864
38865         New module 'unicase/u8-is-lowercase'.
38866         * lib/unicase/u8-is-lowercase.c: New file.
38867         * modules/unicase/u8-is-lowercase: New file.
38868
38869         Tests for module 'unicase/u32-is-uppercase'.
38870         * modules/unicase/u32-is-uppercase-tests: New file.
38871         * tests/unicase/test-u32-is-uppercase.c: New file.
38872
38873         Tests for module 'unicase/u16-is-uppercase'.
38874         * modules/unicase/u16-is-uppercase-tests: New file.
38875         * tests/unicase/test-u16-is-uppercase.c: New file.
38876
38877         Tests for module 'unicase/u8-is-uppercase'.
38878         * modules/unicase/u8-is-uppercase-tests: New file.
38879         * tests/unicase/test-u8-is-uppercase.c: New file.
38880         * tests/unicase/test-is-uppercase.h: New file.
38881
38882         New module 'unicase/u32-is-uppercase'.
38883         * lib/unicase/u32-is-uppercase.c: New file.
38884         * modules/unicase/u32-is-uppercase: New file.
38885
38886         New module 'unicase/u16-is-uppercase'.
38887         * lib/unicase/u16-is-uppercase.c: New file.
38888         * modules/unicase/u16-is-uppercase: New file.
38889
38890         New module 'unicase/u8-is-uppercase'.
38891         * lib/unicase/u8-is-uppercase.c: New file.
38892         * modules/unicase/u8-is-uppercase: New file.
38893
38894         New module 'unicase/u32-is-invariant'.
38895         * lib/unicase/u32-is-invariant.c: New file.
38896         * modules/unicase/u32-is-invariant: New file.
38897
38898         New module 'unicase/u16-is-invariant'.
38899         * lib/unicase/u16-is-invariant.c: New file.
38900         * modules/unicase/u16-is-invariant: New file.
38901
38902         New module 'unicase/u8-is-invariant'.
38903         * lib/unicase/u8-is-invariant.c: New file.
38904         * lib/unicase/invariant.h: New file.
38905         * lib/unicase/u-is-invariant.h: New file.
38906         * modules/unicase/u8-is-invariant: New file.
38907
38908         Tests for module 'unicase/u32-casecoll'.
38909         * modules/unicase/u32-casecoll-tests: New file.
38910         * tests/unicase/test-u32-casecoll.c: New file.
38911
38912         Tests for module 'unicase/u16-casecoll'.
38913         * modules/unicase/u16-casecoll-tests: New file.
38914         * tests/unicase/test-u16-casecoll.c: New file.
38915
38916         Tests for module 'unicase/u8-casecoll'.
38917         * modules/unicase/u8-casecoll-tests: New file.
38918         * tests/unicase/test-u8-casecoll.c: New file.
38919
38920         New module 'unicase/u32-casecoll'.
38921         * lib/unicase/u32-casecoll.c: New file.
38922         * modules/unicase/u32-casecoll: New file.
38923
38924         New module 'unicase/u16-casecoll'.
38925         * lib/unicase/u16-casecoll.c: New file.
38926         * modules/unicase/u16-casecoll: New file.
38927
38928         New module 'unicase/u8-casecoll'.
38929         * lib/unicase/u8-casecoll.c: New file.
38930         * lib/unicase/u-casecoll.h: New file.
38931         * modules/unicase/u8-casecoll: New file.
38932
38933         New module 'unicase/u32-casexfrm'.
38934         * lib/unicase/u32-casexfrm.c: New file.
38935         * modules/unicase/u32-casexfrm: New file.
38936
38937         New module 'unicase/u16-casexfrm'.
38938         * lib/unicase/u16-casexfrm.c: New file.
38939         * modules/unicase/u16-casexfrm: New file.
38940
38941         New module 'unicase/u8-casexfrm'.
38942         * lib/unicase/u8-casexfrm.c: New file.
38943         * lib/unicase/u-casexfrm.h: New file.
38944         * modules/unicase/u8-casexfrm: New file.
38945
38946         Tests for module 'unicase/u32-casecmp'.
38947         * modules/unicase/u32-casecmp-tests: New file.
38948         * tests/unicase/test-u32-casecmp.c: New file.
38949
38950         Tests for module 'unicase/u16-casecmp'.
38951         * modules/unicase/u16-casecmp-tests: New file.
38952         * tests/unicase/test-u16-casecmp.c: New file.
38953
38954         Tests for module 'unicase/u8-casecmp'.
38955         * modules/unicase/u8-casecmp-tests: New file.
38956         * tests/unicase/test-u8-casecmp.c: New file.
38957         * tests/unicase/test-casecmp.h: New file.
38958
38959         New module 'unicase/u32-casecmp'.
38960         * lib/unicase/u32-casecmp.c: New file.
38961         * modules/unicase/u32-casecmp: New file.
38962
38963         New module 'unicase/u16-casecmp'.
38964         * lib/unicase/u16-casecmp.c: New file.
38965         * modules/unicase/u16-casecmp: New file.
38966
38967         New module 'unicase/u8-casecmp'.
38968         * lib/unicase/u8-casecmp.c: New file.
38969         * lib/unicase/u-casecmp.h: New file.
38970         * modules/unicase/u8-casecmp: New file.
38971
38972         Tests for module 'unicase/u32-casefold'.
38973         * modules/unicase/u32-casefold-tests: New file.
38974         * tests/unicase/test-u32-casefold.c: New file.
38975
38976         Tests for module 'unicase/u16-casefold'.
38977         * modules/unicase/u16-casefold-tests: New file.
38978         * tests/unicase/test-u16-casefold.c: New file.
38979
38980         Tests for module 'unicase/u8-casefold'.
38981         * modules/unicase/u8-casefold-tests: New file.
38982         * tests/unicase/test-u8-casefold.c: New file.
38983
38984         New module 'unicase/u32-casefold'.
38985         * lib/unicase/u32-casefold.c: New file.
38986         * modules/unicase/u32-casefold: New file.
38987
38988         New module 'unicase/u16-casefold'.
38989         * lib/unicase/u16-casefold.c: New file.
38990         * modules/unicase/u16-casefold: New file.
38991
38992         New module 'unicase/u8-casefold'.
38993         * lib/unicase/u8-casefold.c: New file.
38994         * lib/unicase/u-casefold.h: New file.
38995         * modules/unicase/u8-casefold: New file.
38996
38997         New module 'unicase/tocasefold'.
38998         * lib/unicase/casefold.h: New file.
38999         * lib/unicase/tocasefold.c: New file.
39000         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39001         * modules/unicase/tocasefold: New file.
39002
39003         Tests for module 'unicase/u32-totitle'.
39004         * modules/unicase/u32-totitle-tests: New file.
39005         * tests/unicase/test-u32-totitle.c: New file.
39006
39007         Tests for module 'unicase/u16-totitle'.
39008         * modules/unicase/u16-totitle-tests: New file.
39009         * tests/unicase/test-u16-totitle.c: New file.
39010
39011         Tests for module 'unicase/u8-totitle'.
39012         * modules/unicase/u8-totitle-tests: New file.
39013         * tests/unicase/test-u8-totitle.c: New file.
39014
39015         New module 'unicase/u32-totitle'.
39016         * lib/unicase/u32-totitle.c: New file.
39017         * modules/unicase/u32-totitle: New file.
39018
39019         New module 'unicase/u16-totitle'.
39020         * lib/unicase/u16-totitle.c: New file.
39021         * modules/unicase/u16-totitle: New file.
39022
39023         New module 'unicase/u8-totitle'.
39024         * lib/unicase/u8-totitle.c: New file.
39025         * lib/unicase/u-totitle.h: New file.
39026         * modules/unicase/u8-totitle: New file.
39027
39028         Tests for module 'unicase/u32-tolower'.
39029         * modules/unicase/u32-tolower-tests: New file.
39030         * tests/unicase/test-u32-tolower.c: New file.
39031
39032         Tests for module 'unicase/u16-tolower'.
39033         * modules/unicase/u16-tolower-tests: New file.
39034         * tests/unicase/test-u16-tolower.c: New file.
39035
39036         Tests for module 'unicase/u8-tolower'.
39037         * modules/unicase/u8-tolower-tests: New file.
39038         * tests/unicase/test-u8-tolower.c: New file.
39039
39040         New module 'unicase/u32-tolower'.
39041         * lib/unicase/u32-tolower.c: New file.
39042         * modules/unicase/u32-tolower: New file.
39043
39044         New module 'unicase/u16-tolower'.
39045         * lib/unicase/u16-tolower.c: New file.
39046         * modules/unicase/u16-tolower: New file.
39047
39048         New module 'unicase/u8-tolower'.
39049         * lib/unicase/u8-tolower.c: New file.
39050         * modules/unicase/u8-tolower: New file.
39051
39052         Tests for module 'unicase/u32-toupper'.
39053         * modules/unicase/u32-toupper-tests: New file.
39054         * tests/unicase/test-u32-toupper.c: New file.
39055
39056         Tests for module 'unicase/u16-toupper'.
39057         * modules/unicase/u16-toupper-tests: New file.
39058         * tests/unicase/test-u16-toupper.c: New file.
39059
39060         Tests for module 'unicase/u8-toupper'.
39061         * modules/unicase/u8-toupper-tests: New file.
39062         * tests/unicase/test-u8-toupper.c: New file.
39063
39064         New module 'unicase/u32-toupper'.
39065         * lib/unicase/u32-toupper.c: New file.
39066         * modules/unicase/u32-toupper: New file.
39067
39068         New module 'unicase/u16-toupper'.
39069         * lib/unicase/u16-toupper.c: New file.
39070         * modules/unicase/u16-toupper: New file.
39071
39072         New module 'unicase/u8-toupper'.
39073         * lib/unicase/u8-toupper.c: New file.
39074         * modules/unicase/u8-toupper: New file.
39075
39076         New module 'unicase/u32-casemap'.
39077         * lib/unicase/u32-casemap.c: New file.
39078         * modules/unicase/u32-casemap: New file.
39079
39080         New module 'unicase/u16-casemap'.
39081         * lib/unicase/u16-casemap.c: New file.
39082         * modules/unicase/u16-casemap: New file.
39083
39084         New module 'unicase/u8-casemap'.
39085         * lib/unicase/unicasemap.h: New file.
39086         * lib/unicase/u8-casemap.c: New file.
39087         * lib/unicase/u-casemap.h: New file.
39088         * modules/unicase/u8-casemap: New file.
39089
39090         New module 'unicase/special-casing'.
39091         * lib/unicase/special-casing.h: New file.
39092         * lib/unicase/special-casing.c: New file.
39093         * lib/unicase/special-casing-table.gperf: New file, generated by
39094         gen-uni-tables.c.
39095         * modules/unicase/special-casing: New file.
39096
39097         Tests for module 'unicase/locale-language'.
39098         * modules/unicase/locale-language-tests: New file.
39099         * tests/unicase/test-locale-language.sh: New file.
39100         * tests/unicase/test-locale-language.c: New file.
39101
39102         New module 'unicase/locale-language'.
39103         * lib/unicase/locale-language.c: New file.
39104         * lib/unicase/locale-languages.gperf: New file.
39105         * modules/unicase/locale-language: New file.
39106
39107         Generate more tables for case conversion and case folding.
39108         * lib/gen-uni-tables.c (SCC_*): New enum items.
39109         (struct special_casing_rule): New type.
39110         (casing_rules, num_casing_rules, allocated_casing_rules): New
39111         variables.
39112         (add_casing_rule, fill_casing_rules): New functions.
39113         (struct casefold_rule): New type.
39114         (casefolding_rules, num_casefolding_rules,
39115         allocated_casefolding_rules): New variables.
39116         (fill_casefolding_rules): New function.
39117         (unicode_casefold): New variable.
39118         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39119         sort_casing_rules, output_casing_rules): New functions.
39120         (main): Accept to more arguments: SpecialCasing.txt and
39121         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39122         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39123         Output mapping for casefolding.
39124
39125         * lib/unicase.h: Include stdbool.h, uninorm.h.
39126         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39127         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39128         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39129         arguments.
39130         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39131         resultp arguments.
39132         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39133         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39134         resultp arguments.
39135         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39136         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39137         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39138         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39139         declarations.
39140         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39141
39142 2009-03-08  Bruno Haible  <bruno@clisp.org>
39143
39144         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39145         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39146         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39147         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39148
39149 2009-03-07  Bruno Haible  <bruno@clisp.org>
39150
39151         Adjust u*_normcmp, u*_normcoll API.
39152         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39153         u16_normcoll, u32_normcoll): Change failure conventions.
39154         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39155         errno and return -1.
39156         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39157
39158 2009-03-07  Bruno Haible  <bruno@clisp.org>
39159
39160         Tests for module 'uninorm/u32-normcoll'.
39161         * modules/uninorm/u32-normcoll-tests: New file.
39162         * tests/uninorm/test-u32-normcoll.c: New file.
39163
39164         Tests for module 'uninorm/u16-normcoll'.
39165         * modules/uninorm/u16-normcoll-tests: New file.
39166         * tests/uninorm/test-u16-normcoll.c: New file.
39167
39168         Tests for module 'uninorm/u8-normcoll'.
39169         * modules/uninorm/u8-normcoll-tests: New file.
39170         * tests/uninorm/test-u8-normcoll.c: New file.
39171
39172 2009-03-07  Bruno Haible  <bruno@clisp.org>
39173
39174         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39175         tests/uninorm/test-u32-normcmp.c.
39176         * tests/uninorm/test-u32-normcmp.c: Include it.
39177         (test_nonascii): New function, extracted from main. Add some more
39178         tests.
39179         (main): Invoke test_ascii and test_nonascii.
39180         * modules/uninorm/u32-normcmp-tests (Files): Add
39181         tests/uninorm/test-u32-normcmp.h.
39182         (Depends-on): Remove uninorm/u32-normcmp.
39183
39184         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39185         tests/uninorm/test-u16-normcmp.c.
39186         * tests/uninorm/test-u16-normcmp.c: Include it.
39187         (test_nonascii): New function, extracted from main. Add some more
39188         tests.
39189         (main): Invoke test_ascii and test_nonascii.
39190         * modules/uninorm/u16-normcmp-tests (Files): Add
39191         tests/uninorm/test-u16-normcmp.h.
39192         (Depends-on): Remove uninorm/u16-normcmp.
39193
39194         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39195         tests/uninorm/test-u8-normcmp.c.
39196         * tests/uninorm/test-u8-normcmp.c: Include it.
39197         (test_nonascii): New function, extracted from main. Add some more
39198         tests.
39199         (main): Invoke test_ascii and test_nonascii.
39200         * modules/uninorm/u8-normcmp-tests (Files): Add
39201         tests/uninorm/test-u8-normcmp.h.
39202         (Depends-on): Remove uninorm/u8-normcmp.
39203
39204 2009-03-07  Bruno Haible  <bruno@clisp.org>
39205
39206         New module 'uninorm/u32-normcoll'.
39207         * lib/uninorm/u32-normcoll.c: New file.
39208         * modules/uninorm/u32-normcoll: New file.
39209
39210         New module 'uninorm/u16-normcoll'.
39211         * lib/uninorm/u16-normcoll.c: New file.
39212         * modules/uninorm/u16-normcoll: New file.
39213
39214         New module 'uninorm/u8-normcoll'.
39215         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39216         declarations.
39217         * lib/uninorm/u8-normcoll.c: New file.
39218         * lib/uninorm/u-normcoll.h: New file.
39219         * modules/uninorm/u8-normcoll: New file.
39220
39221         New module 'uninorm/u32-normxfrm'.
39222         * lib/uninorm/u32-normxfrm.c: New file.
39223         * modules/uninorm/u32-normxfrm: New file.
39224
39225         New module 'uninorm/u16-normxfrm'.
39226         * lib/uninorm/u16-normxfrm.c: New file.
39227         * modules/uninorm/u16-normxfrm: New file.
39228
39229         New module 'uninorm/u8-normxfrm'.
39230         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39231         declarations.
39232         * lib/uninorm/u8-normxfrm.c: New file.
39233         * lib/uninorm/u-normxfrm.h: New file.
39234         * modules/uninorm/u8-normxfrm: New file.
39235
39236 2009-03-07  Bruno Haible  <bruno@clisp.org>
39237
39238         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39239         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39240         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39241
39242 2009-03-07  Bruno Haible  <bruno@clisp.org>
39243
39244         New module 'memxfrm'.
39245         * lib/memxfrm.h: New file.
39246         * lib/memxfrm.c: New file.
39247         * modules/memxfrm: New file.
39248
39249 2009-03-07  Bruno Haible  <bruno@clisp.org>
39250
39251         New module 'memcmp2'.
39252         * lib/memcmp2.h: New file.
39253         * lib/memcmp2.c: New file.
39254         * modules/memcmp2: New file.
39255
39256 2009-03-07  Bruno Haible  <bruno@clisp.org>
39257
39258         Tests for module 'uninorm/decomposing-form'.
39259         * modules/uninorm/decomposing-form-tests: New file.
39260         * tests/uninorm/test-decomposing-form.c: New file.
39261
39262         New module 'uninorm/decomposing-form'.
39263         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39264         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39265         Add 'decomposing_variant' field.
39266         * lib/uninorm/decomposing-form.c: New file.
39267         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39268         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39269         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39270         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39271         * modules/uninorm/decomposing-form: New file.
39272         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39273         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39274
39275 2009-03-07  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39278         strings.
39279
39280 2009-03-06  Bruno Haible  <bruno@clisp.org>
39281
39282         Tests for module 'uninorm/u32-normcmp'.
39283         * tests/uninorm/test-u32-normcmp.c: New file.
39284         * modules/uninorm/u32-normcmp-tests: New file.
39285
39286         Tests for module 'uninorm/u16-normcmp'.
39287         * tests/uninorm/test-u16-normcmp.c: New file.
39288         * modules/uninorm/u16-normcmp-tests: New file.
39289
39290         Tests for module 'uninorm/u8-normcmp'.
39291         * tests/uninorm/test-u8-normcmp.c: New file.
39292         * modules/uninorm/u8-normcmp-tests: New file.
39293
39294         New module 'uninorm/u32-normcmp'.
39295         * lib/uninorm/u32-normcmp.c: New file.
39296         * modules/uninorm/u32-normcmp: New file.
39297
39298         New module 'uninorm/u16-normcmp'.
39299         * lib/uninorm/u16-normcmp.c: New file.
39300         * modules/uninorm/u16-normcmp: New file.
39301
39302         New module 'uninorm/u8-normcmp'.
39303         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39304         declarations.
39305         * lib/uninorm/u8-normcmp.c: New file.
39306         * lib/uninorm/u-normcmp.h: New file.
39307         * modules/uninorm/u8-normcmp: New file.
39308
39309 2009-03-06  Bruno Haible  <bruno@clisp.org>
39310
39311         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39312         Reported by Eric Blake.
39313
39314 2009-03-06  Eric Blake  <ebb9@byu.net>
39315             Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39318         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39319         condition.
39320         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39321         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39322         condition.
39323         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39324
39325 2009-03-06  Eric Blake  <ebb9@byu.net>
39326
39327         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39328         to avoid compiler warnings.
39329         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39330
39331 2009-03-05  Bruno Haible  <bruno@clisp.org>
39332
39333         * tests/test-ftell.c (main): Disable test beyond end of file on
39334         FreeMiNT.
39335         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39336
39337 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39338
39339         * lib/filevercmp.c: Move hidden files up in ordering.
39340         * tests/test-filevercmp.c: Add tests for hidden files.
39341
39342 2009-03-04  Bruno Haible  <bruno@clisp.org>
39343
39344         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39345         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39346         AM_CFLAGS.
39347         Reported by Simon Josefsson.
39348
39349 2009-03-03  Bruno Haible  <bruno@clisp.org>
39350
39351         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39352         Reported by Simon Josefsson.
39353
39354         * doc/ld-version-script.texi: Update node reference.
39355
39356 2009-03-03  Bruno Haible  <bruno@clisp.org>
39357
39358         * modules/visibility (License): Change to 'unlimited'.
39359         Suggested by Simon Josefsson.
39360
39361 2009-03-03  Jim Meyering  <meyering@redhat.com>
39362
39363         unlinkdir: cannot_unlink_dir may modify process state
39364         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39365         it's neither thread-safe nor appropriate for use in a library.
39366
39367 2009-03-03  Eric Blake  <ebb9@byu.net>
39368
39369         test-closein: silence test under Darwin
39370         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39371         care if it dies from EPIPE or EBADF.
39372
39373 2009-03-03  Bruno Haible  <bruno@clisp.org>
39374
39375         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39376         earlier.
39377         * doc/visibility.texi: Fix @node and @section.
39378
39379 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39380
39381         * doc/gnulib.texi: Link to sections for ld version script and
39382         visibility.
39383         * doc/visibility.texi: Add @node and @section.
39384         * modules/ld-version-script: New module.
39385         * m4/ld-version-script.m4: New file.
39386         * doc/ld-version-script.texi: New file.
39387
39388 2009-03-02  David Lutterkort  <lutter@redhat.com>
39389
39390         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39391         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39392
39393 2009-03-02  Bruno Haible  <bruno@clisp.org>
39394
39395         * doc/visibility.texi: Mention libtool's -export-symbols option.
39396
39397 2009-03-02  Jim Meyering  <meyering@redhat.com>
39398
39399         announce-gen: new option: --no-print-checksums
39400         * build-aux/announce-gen (usage): Describe it.
39401         (print_checksums): Print a newline here, not in the [*] footnote.
39402         (main): Honor it.
39403
39404 2009-03-01  Bruno Haible  <bruno@clisp.org>
39405
39406         Use socklen_t in the native Windows replacements prototypes.
39407         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39408         instead of 'int'.
39409         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39410         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39411         * modules/getsockopt (Depends-on): Add socklen.
39412         * modules/setsockopt (Depends-on): Add socklen.
39413
39414 2009-03-01  Bruno Haible  <bruno@clisp.org>
39415
39416         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39417         least 4.2.
39418
39419 2009-03-01  Eric Blake  <ebb9@byu.net>
39420             Bruno Haible  <bruno@clisp.org>
39421
39422         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39423         error messages.
39424         * lib/wait-process.c (wait_subprocess): Omit error message about
39425         deadly signal sent to the child of termsigp != NULL.
39426
39427 2009-03-01  Eric Blake  <ebb9@byu.net>
39428
39429         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39430
39431 2009-03-01  Bruno Haible  <bruno@clisp.org>
39432
39433         Avoid a gcc warning.
39434         * tests/test-sched.c (b): Make global.
39435         Reported by Eric Blake.
39436
39437 2009-01-19  Martin Lambers  <marlam@marlam.de>
39438
39439         Provide POSIX semantics for socket timeout options on W32.
39440         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39441         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39442         * modules/setsockopt: Depend on sys_time module for struct timeval.
39443         * modules/getsockopt: Depend on sys_time module for struct timeval.
39444
39445 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39446
39447         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39448         __USE_GNU, for consistency with netdb.in.h.
39449         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39450
39451 2009-03-01  Bruno Haible  <bruno@clisp.org>
39452
39453         More support for FreeMiNT.
39454         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39455         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39456
39457 2009-03-01  Bruno Haible  <bruno@clisp.org>
39458
39459         More support for FreeMiNT.
39460         * lib/fpurge.c (fpurge): Correct last commit.
39461         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39462
39463 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39464
39465         Fix unportable awk script in vc-list-files.
39466         * build-aux/vc-list-files: In the replacement awk script, use
39467         substr with a second argument of 1, not zero.
39468         Report by Simon Josefsson.
39469
39470 2009-02-28  Bruno Haible  <bruno@clisp.org>
39471
39472         More support for FreeMiNT.
39473         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39474         to FreeMiNT today.
39475         * lib/fwriting.c (fwriting): Likewise.
39476         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39477
39478 2009-02-28  Bruno Haible  <bruno@clisp.org>
39479
39480         * tests/test-freadseek.c (main): Disable test beyond end of file on
39481         FreeMiNT.
39482         * tests/test-ftello.c (main): Likewise.
39483         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39484
39485 2009-02-28  Bruno Haible  <bruno@clisp.org>
39486
39487         Add tentative support for FreeMiNT.
39488         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39489         * lib/fpurge.c (fpurge): Likewise.
39490         * lib/freadable.c (freadable): Likewise.
39491         * lib/freading.c (freading): Likewise.
39492         * lib/freadptr.c (freadptr): Likewise.
39493         * lib/freadseek.c (freadptrinc): Likewise.
39494         * lib/fseeko.c (rpl_fseeko): Likewise.
39495         * lib/fseterr.c (fseterr): Likewise.
39496         * lib/fwritable.c (fwritable): Likewise.
39497         * lib/fwriting.c (fwriting): Likewise.
39498         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39499         Hourihane.
39500         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39501
39502 2009-02-28  Bruno Haible  <bruno@clisp.org>
39503
39504         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39505         SIGCHLD.
39506         Reported by Jim Meyering.
39507
39508 2009-02-28  Bruno Haible  <bruno@clisp.org>
39509
39510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39511         Mention the results of these tests on various platforms.
39512         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39513         order.
39514         * doc/posix-functions/printf.texi: Likewise.
39515         * doc/posix-functions/snprintf.texi: Likewise.
39516         * doc/posix-functions/sprintf.texi: Likewise.
39517         * doc/posix-functions/vfprintf.texi: Likewise.
39518         * doc/posix-functions/vprintf.texi: Likewise.
39519         * doc/posix-functions/vsnprintf.texi: Likewise.
39520         * doc/posix-functions/vsprintf.texi: Likewise.
39521         * doc/glibc-functions/obstack_printf.texi: Likewise.
39522         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39523
39524 2009-02-28  Bruno Haible  <bruno@clisp.org>
39525
39526         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39527         Reported by Loïc Minier <lool@dooz.org>.
39528
39529 2009-02-27  Bruno Haible  <bruno@clisp.org>
39530
39531         * gnulib-tool (func_import): Make the sed expression used to create the
39532         sed script for updating the .gitignore file POSIX compliant.
39533         Reported by Eric Blake.
39534
39535 2009-02-27  Bruno Haible  <bruno@clisp.org>
39536
39537         * gnulib-tool (sed): Don't alias as "sed --posix".
39538         Reported by Eric Blake.
39539
39540 2009-02-27  Bruno Haible  <bruno@clisp.org>
39541
39542         Avoid test link errors.
39543         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39544         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39545         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39546         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39548
39549 2009-02-27  Bruno Haible  <bruno@clisp.org>
39550
39551         Avoid spurious "(cached)" in configure output.
39552         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39553         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39554         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39555         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39556         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39557         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39558         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39559         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39560         Reported by Eric Blake.
39561
39562 2009-02-27  Eric Blake  <ebb9@byu.net>
39563
39564         printf: fix regression in previous patch
39565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39566
39567 2009-02-27  Bruno Haible  <bruno@clisp.org>
39568
39569         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39570         value.
39571         * lib/stdint.in.h: Likewise.
39572         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39573
39574 2009-02-27  Eric Blake  <ebb9@byu.net>
39575
39576         doc: mention more functions added in cygwin 1.7.0
39577         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39578         addition.
39579         * doc/posix-functions/open_wmemstream.texi: Likewise.
39580         * doc/posix-functions/wcsnlen.texi: Likewise.
39581         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39582         * doc/posix-functions/wcstod.texi: Likewise.
39583         * doc/posix-functions/wcstof.texi: Likewise.
39584         * doc/posix-functions/wcstoimax.texi: Likewise.
39585         * doc/posix-functions/wcstok.texi: Likewise.
39586         * doc/posix-functions/wcstoumax.texi: Likewise.
39587
39588         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39589         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39590         * doc/posix-functions/fprintf.texi: Update.
39591         * doc/posix-functions/printf.texi: Update.
39592         * doc/posix-functions/snprintf.texi: Update.
39593         * doc/posix-functions/sprintf.texi: Update.
39594         * doc/posix-functions/vfprintf.texi: Update.
39595         * doc/posix-functions/vprintf.texi: Update.
39596         * doc/posix-functions/vsnprintf.texi: Update.
39597         * doc/posix-functions/vsprintf.texi: Update.
39598         * doc/glibc-functions/obstack_printf.texi: Update.
39599         * doc/glibc-functions/obstack_vprintf.texi: Update.
39600
39601 2009-02-26  Eric Blake  <ebb9@byu.net>
39602
39603         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39604         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39605         compilation bug by using runtime conversion.
39606         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39607         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39608         * modules/ceill-tests (Files): Use nan.h.
39609         * modules/floorl-tests (Files): Likewise.
39610         * modules/frexpl-tests (Files): Likewise.
39611         * modules/isnanl-tests (Files): Likewise.
39612         * modules/ldexpl-tests (Files): Likewise.
39613         * modules/roundl-tests (Files): Likewise.
39614         * modules/truncl-tests (Files): Likewise.
39615         * tests/test-ceill.c (main): Use a working NaN.
39616         * tests/test-floorl.c (main): Likewise.
39617         * tests/test-frexpl.c (main): Likewise.
39618         * tests/test-isnan.c (test_long_double): Likewise.
39619         * tests/test-isnanl.h (main): Likewise.
39620         * tests/test-ldexpl.h (main): Likewise.
39621         * tests/test-roundl.h (main): Likewise.
39622         * tests/test-truncl.h (main): Likewise.
39623         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39624
39625 2009-02-26  Eric Blake  <ebb9@byu.net>
39626             Bruno Haible  <bruno@clisp.org>
39627
39628         Work around a *printf bug with %ls on Solaris.
39629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39630         precision is specified, sprintf stops converting the wide string
39631         argument when the number of bytes that have been produced by this
39632         conversion equals or exceeds the precision.
39633         * doc/posix-functions/fprintf.texi: Update.
39634         * doc/posix-functions/printf.texi: Update.
39635         * doc/posix-functions/snprintf.texi: Update.
39636         * doc/posix-functions/sprintf.texi: Update.
39637         * doc/posix-functions/vfprintf.texi: Update.
39638         * doc/posix-functions/vprintf.texi: Update.
39639         * doc/posix-functions/vsnprintf.texi: Update.
39640         * doc/posix-functions/vsprintf.texi: Update.
39641         * doc/glibc-functions/obstack_printf.texi: Update.
39642         * doc/glibc-functions/obstack_vprintf.texi: Update.
39643
39644 2009-02-26  Eric Blake  <ebb9@byu.net>
39645
39646         stdlib: favor compiler check of random.h
39647         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39648         to avoid an ObjC random.h installed by Swarm.
39649
39650 2009-02-26  Bruno Haible  <bruno@clisp.org>
39651
39652         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39653         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39654         Reported by Gary V. Vaughan <gary@gnu.org>.
39655
39656 2009-02-26  Bruno Haible  <bruno@clisp.org>
39657
39658         Fix *printf behaviour regarding the %ls directive.
39659         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39660         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39661         NEED_PRINTF_DIRECTIVE_LS.
39662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39663         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39665         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39666         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39667         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39668         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39673         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39677         * doc/posix-functions/fprintf.texi: Update.
39678         * doc/posix-functions/printf.texi: Update.
39679         * doc/posix-functions/snprintf.texi: Update.
39680         * doc/posix-functions/sprintf.texi: Update.
39681         * doc/posix-functions/vfprintf.texi: Update.
39682         * doc/posix-functions/vprintf.texi: Update.
39683         * doc/posix-functions/vsnprintf.texi: Update.
39684         * doc/posix-functions/vsprintf.texi: Update.
39685         * doc/glibc-functions/obstack_printf.texi: Update.
39686         * doc/glibc-functions/obstack_vprintf.texi: Update.
39687         Reported by Eric Blake.
39688
39689 2009-02-25  Bruno Haible  <bruno@clisp.org>
39690
39691         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39692         with known value.
39693         Reported by Gary V. Vaughan <gary@gnu.org>.
39694
39695 2009-02-25  Bruno Haible  <bruno@clisp.org>
39696
39697         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39698         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39699         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39700         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39701         Reported by Gary V. Vaughan <gary@gnu.org>.
39702
39703 2009-02-25  Bruno Haible  <bruno@clisp.org>
39704
39705         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39706         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39707         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39708         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39709         Reported by Gary V. Vaughan <gary@gnu.org>.
39710
39711 2009-02-25  Eric Blake  <ebb9@byu.net>
39712
39713         tests: skip fseek/ftell tests if ungetc is broken
39714         * m4/ungetc.m4: New file.
39715         * modules/fseek-tests: Split test, so ungetc dependency is
39716         separate from rest of test.
39717         * modules/fseeko-tests: Likewise.
39718         * modules/ftell-tests: Likewise.
39719         * modules/ftello-tests: Likewise.
39720         * tests/test-fseek.c (main): Isolate ungetc dependency.
39721         * tests/test-fseeko.c (main): Likewise.
39722         * tests/test-ftell.c (main): Likewise.
39723         * tests/test-ftello.c (main): Likewise.
39724         * tests/test-fseek2.sh: New file.
39725         * tests/test-fseeko2.sh: Likewise.
39726         * tests/test-ftell2.sh: Likewise.
39727         * tests/test-ftello2.sh: Likewise.
39728
39729 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39730
39731         test-getaddrinfo: fix usage of skip return code 77
39732         * tests/test-gettaddrinfo.c: Return skip code 77 only
39733         for first occurance of skip (4x77 is not 77)
39734
39735 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39736
39737         strtod: avoid C99 decl-after-statement
39738         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39739
39740 2009-02-24  Eric Blake  <ebb9@byu.net>
39741
39742         strtod: detect HP-UX 11.31 bug
39743         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39744         Reported by Gary V. Vaughan.
39745
39746 2009-02-23  Bruno Haible  <bruno@clisp.org>
39747
39748         Fix invalid read past end of memory block.
39749         * lib/vasnprintf.c (DCHAR_SET): Define.
39750         (local_wcslen): Define only when needed.
39751         (local_strnlen, local_wcsnlen): New functions.
39752         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39753         directives that involve a conversion ourselves.
39754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39755         wcsnlen, mbrtowc, wcrtomb.
39756         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39757         * tests/test-vasprintf-posix.c (test_function): Likewise.
39758         * tests/test-snprintf-posix.h (test_function): Likewise.
39759         * tests/test-sprintf-posix.h (test_function): Likewise.
39760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39761
39762 2009-02-22  Bruno Haible  <bruno@clisp.org>
39763
39764         Implement new clarified decomposition of Hangul syllables.
39765         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39766         of type LTV, return only a pairwise decomposition.
39767         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39768         Likewise.
39769         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39770         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39771         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39772
39773 2009-02-22  Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39776         zero-length results and shrink excess allocated memory.
39777         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39778         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39779         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39780         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39781         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39782         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39783         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39784         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39785         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39786         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39787         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39788         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39789
39790 2009-02-21  Bruno Haible  <bruno@clisp.org>
39791
39792         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39793         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39794         spaces after a period. Put a space between a macro name and its
39795         argument list. Trivial rewordings.
39796         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39797         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39798         (main): Return 0 explicitly.
39799
39800 2009-02-21  Bruno Haible  <bruno@clisp.org>
39801
39802         Tests for module 'uninorm/filter'.
39803         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39804         * modules/uninorm/filter-tests: New file.
39805
39806         New module 'uninorm/filter'.
39807         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39808         uninorm_filter_flush, uninorm_filter_free): New declarations.
39809         * lib/uninorm/uninorm-filter.c: New file.
39810         * modules/uninorm/filter: New file.
39811
39812 2009-02-21  Bruno Haible  <bruno@clisp.org>
39813
39814         Tests for module 'uninorm/nfkc'.
39815         * tests/uninorm/test-nfkc.c: New file.
39816         * tests/uninorm/test-u8-nfkc.c: New file.
39817         * tests/uninorm/test-u16-nfkc.c: New file.
39818         * tests/uninorm/test-u32-nfkc.c: New file.
39819         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39820         * tests/uninorm/test-u32-nfkc-big.c: New file.
39821         * modules/uninorm/nfkc-tests: New file.
39822
39823         New module 'uninorm/nfkc'.
39824         * lib/uninorm/nfkc.c: New file.
39825         * modules/uninorm/nfkc: New file.
39826
39827         Tests for module 'uninorm/nfkd'.
39828         * tests/uninorm/test-nfkd.c: New file.
39829         * tests/uninorm/test-u8-nfkd.c: New file.
39830         * tests/uninorm/test-u16-nfkd.c: New file.
39831         * tests/uninorm/test-u32-nfkd.c: New file.
39832         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39833         * tests/uninorm/test-u32-nfkd-big.c: New file.
39834         * modules/uninorm/nfkd-tests: New file.
39835
39836         New module 'uninorm/nfkd'.
39837         * lib/uninorm/nfkd.c: New file.
39838         * modules/uninorm/nfkd: New file.
39839
39840         Tests for module 'uninorm/nfc'.
39841         * tests/uninorm/test-nfc.c: New file.
39842         * tests/uninorm/test-u8-nfc.c: New file.
39843         * tests/uninorm/test-u16-nfc.c: New file.
39844         * tests/uninorm/test-u32-nfc.c: New file.
39845         * tests/uninorm/test-u32-nfc-big.sh: New file.
39846         * tests/uninorm/test-u32-nfc-big.c: New file.
39847         * modules/uninorm/nfc-tests: New file.
39848
39849         New module 'uninorm/nfc'.
39850         * lib/uninorm/nfc.c: New file.
39851         * modules/uninorm/nfc: New file.
39852
39853         Tests for module 'uninorm/nfd'.
39854         * tests/uninorm/test-nfd.c: New file.
39855         * tests/uninorm/test-u8-nfd.c: New file.
39856         * tests/uninorm/test-u16-nfd.c: New file.
39857         * tests/uninorm/test-u32-nfd.c: New file.
39858         * tests/uninorm/test-u32-nfd-big.sh: New file.
39859         * tests/uninorm/test-u32-nfd-big.c: New file.
39860         * tests/uninorm/test-u32-normalize-big.h: New file.
39861         * tests/uninorm/test-u32-normalize-big.c: New file.
39862         * tests/uninorm/NormalizationTest.txt: New file, created from
39863         Unicode 5.1.0 NormalizationTest.txt.
39864         * modules/uninorm/nfd-tests: New file.
39865
39866         New module 'uninorm/nfd'.
39867         * lib/uninorm/nfd.c: New file.
39868         * modules/uninorm/nfd: New file.
39869
39870         New module 'uninorm/u32-normalize'.
39871         * lib/uninorm/u32-normalize.c: New file.
39872         * modules/uninorm/u32-normalize: New file.
39873
39874         New module 'uninorm/u16-normalize'.
39875         * lib/uninorm/u16-normalize.c: New file.
39876         * modules/uninorm/u16-normalize: New file.
39877
39878         New module 'uninorm/u8-normalize'.
39879         * lib/uninorm/u8-normalize.c: New file.
39880         * lib/uninorm/normalize-internal.h: New file.
39881         * lib/uninorm/u-normalize-internal.h: New file.
39882         * modules/uninorm/u8-normalize: New file.
39883
39884         New module 'uninorm/decompose-internal'.
39885         * lib/uninorm/decompose-internal.c: New file.
39886         * modules/uninorm/decompose-internal: New file.
39887
39888         Tests for module 'uninorm/composition'.
39889         * tests/uninorm/test-composition.c: New file.
39890         * modules/uninorm/composition-tests: New file.
39891
39892         New module 'uninorm/composition'.
39893         * lib/uninorm/composition.c: New file.
39894         * lib/uninorm/composition-table.gperf: New file, generated by
39895         gen-uni-tables.
39896         * modules/uninorm/composition: New file.
39897
39898         Tests for module 'uninorm/compat-decomposition'.
39899         * tests/uninorm/test-compat-decomposition.c: New file.
39900         * modules/uninorm/compat-decomposition-tests: New file.
39901
39902         New module 'uninorm/compat-decomposition'.
39903         * lib/uninorm/decompose-internal.h: New file.
39904         * lib/uninorm/compat-decomposition.c: New file.
39905         * modules/uninorm/compat-decomposition: New file.
39906
39907         Tests for module 'uninorm/canonical-decomposition'.
39908         * tests/uninorm/test-canonical-decomposition.c: New file.
39909         * modules/uninorm/canonical-decomposition-tests: New file.
39910
39911         New module 'uninorm/canonical-decomposition'.
39912         * lib/uninorm/canonical-decomposition.c: New file.
39913         * modules/uninorm/canonical-decomposition: New file.
39914
39915         Tests for module 'uninorm/decomposition'.
39916         * tests/uninorm/test-decomposition.c: New file.
39917         * modules/uninorm/decomposition-tests: New file.
39918
39919         New module 'uninorm/decomposition'.
39920         * lib/uninorm/decomposition.c: New file.
39921         * modules/uninorm/decomposition: New file.
39922
39923         New module 'uninorm/decomposition-table'.
39924         * lib/uninorm/decomposition-table.h: New file.
39925         * lib/uninorm/decomposition-table.c: New file.
39926         * lib/uninorm/decomposition-table1.h: New file, generated by
39927         gen-uni-tables.
39928         * lib/uninorm/decomposition-table2.h: New file, generated by
39929         gen-uni-tables.
39930         * modules/uninorm/decomposition-table: New file.
39931
39932         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39933         (UC_DECOMP_*): New enumeration items.
39934         (get_decomposition): New function.
39935         (struct decomp_table): New type.
39936         (output_decomposition, output_decomposition_tables): New functions.
39937         (unicode_composition_exclusions): New variable.
39938         (fill_composition_exclusions, debug_output_composition_tables): New
39939         functions.
39940         (main): Accept one more argument. Invoke fill_composition_exclusions.
39941         Output decomposition and composition tables.
39942
39943         New module 'uninorm/base'.
39944         * lib/uninorm.h: New file.
39945         * lib/unictype.h: Update comment.
39946         * modules/uninorm/base: New file.
39947
39948 2009-02-21  David Lutterkort  <lutter@redhat.com>
39949
39950         Tests for module 'safe-alloc'.
39951         * tests/test-safe-alloc.c: New file.
39952         * modules/safe-alloc-tests: New file.
39953
39954         New module 'safe-alloc'.
39955         * lib/safe-alloc.h: New file.
39956         * lib/safe-alloc.c: New file.
39957         * m4/safe-alloc.m4: New file.
39958         * modules/safe-alloc: New file.
39959         * doc/safe-alloc.texi: New file.
39960         * doc/gnulib.texi: Include it.
39961         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39962         safe-alloc.
39963
39964 2009-02-18  Bruno Haible  <bruno@clisp.org>
39965
39966         Fix link error on non-glibc systems.
39967         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39968         variable.
39969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39970
39971 2009-02-18  Jim Meyering  <meyering@redhat.com>
39972
39973         fts: avoid used-uninitialized error due to recent change
39974         * lib/fts.c (fts_read): Guard uses of the new member,
39975         parent->fts_n_dirs_remaining, since it's not relevant for
39976         the parent of a directory specified on the command-line.
39977
39978 2009-02-17  James Youngman  <jay@gnu.org>
39979             Bruno Haible  <bruno@clisp.org>
39980
39981         * m4/include_next.m4: Reformulate comment.
39982
39983 2009-02-16  Jim Meyering  <meyering@redhat.com>
39984
39985         fts: add #if guards so that the fts_lgpl module still builds
39986         * lib/fts.c: Guard just-added hash-table-using parts with
39987         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39988         Reported by Simon Josefsson.
39989
39990 2009-02-15  Bruno Haible  <bruno@clisp.org>
39991
39992         * modules/array-mergesort-tests: New file.
39993         * tests/test-array-mergesort.c: New file.
39994
39995         New module 'array-mergesort'.
39996         * modules/array-mergesort: New file.
39997         * lib/array-mergesort.h: New file.
39998
39999 2009-02-15  Bruno Haible  <bruno@clisp.org>
40000
40001         Fix 2009-02-07 commit.
40002         * lib/gen-uni-tables.c (output_predicate, output_category,
40003         output_combclass, output_bidi_category, output_decimal_digit,
40004         output_digit, output_numeric, output_mirror, output_scripts,
40005         output_ident_category, output_simple_mapping): Fix format directives.
40006         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40007
40008 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40009
40010         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40011         fixes are available from IBM.
40012
40013 2009-02-13  Jim Meyering  <meyering@redhat.com>
40014
40015         fts: arrange not to stat non-directories in more cases
40016         This makes GNU find (when it doesn't need to stat each file)
40017         *much* more efficient at traversing reiserfs file systems.
40018         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40019         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40020         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40021         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40022         (leaf_optimization_applies): New function.
40023         (LCO_hash, LCO_compare): New helper functions.
40024         (link_count_optimize_ok): New function.
40025         (fts_stat): Initialize new member (if dir).
40026         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40027         we've just stat'ed a directory.  Skip the stat call when possible.
40028         ---
40029         Note this AFS-related exchange:
40030         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40031         and note find's pioctl call in find/fstype.c.
40032         But that is necessary only if you want to enable the
40033         optimization for AFS, and for now, I don't.
40034
40035         fts: move a function definition "up" (no semantic change)
40036         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40037         "up" to precede upcoming use of a related function.
40038
40039 2009-02-11  Jim Meyering  <meyering@redhat.com>
40040
40041         fts: correct internal computation of nlinks (optimization-related)
40042         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40043         whether the current entry is a directory, so don't test it.
40044
40045 2009-02-10  Bruno Haible  <bruno@clisp.org>
40046
40047         Tests for module 'uniwbrk/ulc-wordbreaks'.
40048         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40049         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40050         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40051
40052         Tests for module 'uniwbrk/u32-wordbreaks'.
40053         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40054         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40055
40056         Tests for module 'uniwbrk/u16-wordbreaks'.
40057         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40058         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40059
40060         Tests for module 'uniwbrk/u8-wordbreaks'.
40061         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40062         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40063
40064 2009-02-10  Bruno Haible  <bruno@clisp.org>
40065
40066         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40067         property.
40068         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40069         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40070         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40071
40072 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40073
40074         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40075         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40076
40077 2009-02-10  Bruno Haible  <bruno@clisp.org>
40078
40079         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40080         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40081         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40082         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40083         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40084         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40085
40086 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40087
40088         * lib/sockets.h (gl_fd_to_handle): New function.
40089
40090         * tests/test-sockets.c: Call gl_fd_to_handle.
40091
40092 2009-02-09  Bruno Haible  <bruno@clisp.org>
40093
40094         * doc/havelib.texi: Document the conventions on bi-arch systems.
40095
40096 2009-02-08  Bruno Haible  <bruno@clisp.org>
40097
40098         Document the AC_LIB_LINKFLAGS macro.
40099         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40100         * doc/gnulib.texi: Include it.
40101
40102 2009-02-08  Bruno Haible  <bruno@clisp.org>
40103
40104         Fix wrong order of sections, compared to TOC.
40105         * doc/gnulib.texi: Include relocatable-maint.texi after the
40106         "Regular expressions" node, not before.
40107
40108 2009-02-08  Bruno Haible  <bruno@clisp.org>
40109
40110         Tests for module 'unicase/totitle'.
40111         * modules/unicase/totitle-tests: New file.
40112
40113         Tests for module 'unicase/tolower'.
40114         * modules/unicase/tolower-tests: New file.
40115
40116         Tests for module 'unicase/toupper'.
40117         * modules/unicase/toupper-tests: New file.
40118         * tests/unicase/test-mapping-part1.h: New file.
40119         * tests/unicase/test-mapping-part2.h: New file.
40120
40121         New module 'unicase/totitle'.
40122         * modules/unicase/totitle: New file.
40123         * lib/unicase/totitle.c: New file.
40124
40125         New module 'unicase/tolower'.
40126         * modules/unicase/tolower: New file.
40127         * lib/unicase/tolower.c: New file.
40128
40129         New module 'unicase/toupper'.
40130         * modules/unicase/toupper: New file.
40131         * lib/unicase/toupper.c: New file.
40132         * lib/unicase/simple-mapping.h: New file.
40133
40134         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40135         (mapping_table): New structure.
40136         (output_simple_mapping): New function.
40137         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40138         * modules/gen-uni-tables (Description): Update.
40139         * lib/unicase/toupper.h: New file, automatically generated by
40140         gen-uni-tables.
40141         * lib/unicase/tolower.h: New file, automatically generated by
40142         gen-uni-tables.
40143         * lib/unicase/totitle.h: New file, automatically generated by
40144         gen-uni-tables.
40145         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40146         gen-uni-tables.
40147         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40148         gen-uni-tables.
40149         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40150         gen-uni-tables.
40151
40152         New module 'unicase/base'.
40153         * modules/unicase/base: New file.
40154         * lib/unicase.h: New file.
40155
40156 2009-02-08  Bruno Haible  <bruno@clisp.org>
40157
40158         New module 'uniwbrk/ulc-wordbreaks'.
40159         * modules/uniwbrk/ulc-wordbreaks: New file.
40160         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40161
40162         New module 'uniwbrk/u32-wordbreaks'.
40163         * modules/uniwbrk/u32-wordbreaks: New file.
40164         * lib/uniwbrk/u32-wordbreaks.c: New file.
40165
40166         New module 'uniwbrk/u16-wordbreaks'.
40167         * modules/uniwbrk/u16-wordbreaks: New file.
40168         * lib/uniwbrk/u16-wordbreaks.c: New file.
40169
40170         New module 'uniwbrk/u8-wordbreaks'.
40171         * modules/uniwbrk/u8-wordbreaks: New file.
40172         * lib/uniwbrk/u8-wordbreaks.c: New file.
40173         * lib/uniwbrk/u-wordbreaks.h: New file.
40174
40175         New module 'uniwbrk/table'.
40176         * modules/uniwbrk/table: New file.
40177         * lib/uniwbrk/wbrktable.h: New file.
40178         * lib/uniwbrk/wbrktable.c: New file.
40179
40180         New module 'uniwbrk/wordbreak-property'.
40181         * modules/uniwbrk/wordbreak-property: New file.
40182         * lib/uniwbrk/wordbreak-property.c: New file.
40183
40184         * lib/gen-uni-tables.c (WBP_*): New enum items.
40185         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40186         (unicode_org_wbp): New variable.
40187         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40188         New functions.
40189         (wbp_table): New structure.
40190         (output_wbp, output_wbrk_tables): New functions.
40191         (main): Accept additional argument. Invoke fill_org_wbp,
40192         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40193         output_wbrk_tables.
40194         * modules/gen-uni-tables (Description): Update.
40195         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40196         gen-uni-tables.
40197
40198         New module 'uniwbrk/base'.
40199         * modules/uniwbrk/base: New file.
40200         * lib/uniwbrk.h: New file.
40201
40202 2009-02-08  Bruno Haible  <bruno@clisp.org>
40203
40204         Update to Unicode 5.1.0.
40205         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40206         U+2185..U+2188.
40207         (is_property_default_ignorable_code_point): Don't include characters
40208         of category Cc or Cs and not-a-characters.
40209         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40210         U+0D79, U+109E, U+109F, U+A60C.
40211         * lib/unictype/bidi_of.h: Regenerated.
40212         * lib/unictype/blocks.h: Regenerated.
40213         * lib/unictype/categ_C.h: Regenerated.
40214         * lib/unictype/categ_Cf.h: Regenerated.
40215         * lib/unictype/categ_Cn.h: Regenerated.
40216         * lib/unictype/categ_L.h: Regenerated.
40217         * lib/unictype/categ_Ll.h: Regenerated.
40218         * lib/unictype/categ_Lm.h: Regenerated.
40219         * lib/unictype/categ_Lo.h: Regenerated.
40220         * lib/unictype/categ_Lu.h: Regenerated.
40221         * lib/unictype/categ_M.h: Regenerated.
40222         * lib/unictype/categ_Mc.h: Regenerated.
40223         * lib/unictype/categ_Me.h: Regenerated.
40224         * lib/unictype/categ_Mn.h: Regenerated.
40225         * lib/unictype/categ_N.h: Regenerated.
40226         * lib/unictype/categ_Nd.h: Regenerated.
40227         * lib/unictype/categ_Nl.h: Regenerated.
40228         * lib/unictype/categ_No.h: Regenerated.
40229         * lib/unictype/categ_P.h: Regenerated.
40230         * lib/unictype/categ_Pd.h: Regenerated.
40231         * lib/unictype/categ_Pe.h: Regenerated.
40232         * lib/unictype/categ_Pf.h: Regenerated.
40233         * lib/unictype/categ_Pi.h: Regenerated.
40234         * lib/unictype/categ_Po.h: Regenerated.
40235         * lib/unictype/categ_Ps.h: Regenerated.
40236         * lib/unictype/categ_S.h: Regenerated.
40237         * lib/unictype/categ_Sk.h: Regenerated.
40238         * lib/unictype/categ_Sm.h: Regenerated.
40239         * lib/unictype/categ_So.h: Regenerated.
40240         * lib/unictype/categ_of.h: Regenerated.
40241         * lib/unictype/combining.h: Regenerated.
40242         * lib/unictype/ctype_alnum.h: Regenerated.
40243         * lib/unictype/ctype_alpha.h: Regenerated.
40244         * lib/unictype/ctype_graph.h: Regenerated.
40245         * lib/unictype/ctype_lower.h: Regenerated.
40246         * lib/unictype/ctype_print.h: Regenerated.
40247         * lib/unictype/ctype_punct.h: Regenerated.
40248         * lib/unictype/ctype_upper.h: Regenerated.
40249         * lib/unictype/decdigit.h: Regenerated.
40250         * lib/unictype/digit.h: Regenerated.
40251         * lib/unictype/mirror.h: Regenerated.
40252         * lib/unictype/numeric.h: Regenerated.
40253         * lib/unictype/pr_alphabetic.h: Regenerated.
40254         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40255         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40256         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40257         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40258         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40259         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40260         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40261         * lib/unictype/pr_combining.h: Regenerated.
40262         * lib/unictype/pr_dash.h: Regenerated.
40263         * lib/unictype/pr_decimal_digit.h: Regenerated.
40264         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40265         * lib/unictype/pr_deprecated.h: Regenerated.
40266         * lib/unictype/pr_diacritic.h: Regenerated.
40267         * lib/unictype/pr_extender.h: Regenerated.
40268         * lib/unictype/pr_format_control.h: Regenerated.
40269         * lib/unictype/pr_grapheme_base.h: Regenerated.
40270         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40271         * lib/unictype/pr_grapheme_link.h: Regenerated.
40272         * lib/unictype/pr_id_continue.h: Regenerated.
40273         * lib/unictype/pr_id_start.h: Regenerated.
40274         * lib/unictype/pr_ideographic.h: Regenerated.
40275         * lib/unictype/pr_ignorable_control.h: Regenerated.
40276         * lib/unictype/pr_lowercase.h: Regenerated.
40277         * lib/unictype/pr_math.h: Regenerated.
40278         * lib/unictype/pr_numeric.h: Regenerated.
40279         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40280         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40281         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40282         * lib/unictype/pr_other_id_continue.h: Regenerated.
40283         * lib/unictype/pr_other_lowercase.h: Regenerated.
40284         * lib/unictype/pr_other_math.h: Regenerated.
40285         * lib/unictype/pr_punctuation.h: Regenerated.
40286         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40287         * lib/unictype/pr_soft_dotted.h: Regenerated.
40288         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40289         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40290         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40291         * lib/unictype/pr_uppercase.h: Regenerated.
40292         * lib/unictype/pr_xid_continue.h: Regenerated.
40293         * lib/unictype/pr_xid_start.h: Regenerated.
40294         * lib/unictype/pr_zero_width.h: Regenerated.
40295         * lib/unictype/scripts.h: Regenerated.
40296         * lib/unictype/scripts_byname.gperf: Regenerated.
40297         * lib/unictype/sy_java_ident.h: Regenerated.
40298         * lib/unilbrk/lbrkprop1.h: Regenerated.
40299         * lib/unilbrk/lbrkprop2.h: Regenerated.
40300         * tests/unictype/test-categ_C.c: Regenerated.
40301         * tests/unictype/test-categ_Cf.c: Regenerated.
40302         * tests/unictype/test-categ_Cn.c: Regenerated.
40303         * tests/unictype/test-categ_L.c: Regenerated.
40304         * tests/unictype/test-categ_Ll.c: Regenerated.
40305         * tests/unictype/test-categ_Lm.c: Regenerated.
40306         * tests/unictype/test-categ_Lo.c: Regenerated.
40307         * tests/unictype/test-categ_Lu.c: Regenerated.
40308         * tests/unictype/test-categ_M.c: Regenerated.
40309         * tests/unictype/test-categ_Mc.c: Regenerated.
40310         * tests/unictype/test-categ_Me.c: Regenerated.
40311         * tests/unictype/test-categ_Mn.c: Regenerated.
40312         * tests/unictype/test-categ_N.c: Regenerated.
40313         * tests/unictype/test-categ_Nd.c: Regenerated.
40314         * tests/unictype/test-categ_Nl.c: Regenerated.
40315         * tests/unictype/test-categ_No.c: Regenerated.
40316         * tests/unictype/test-categ_P.c: Regenerated.
40317         * tests/unictype/test-categ_Pd.c: Regenerated.
40318         * tests/unictype/test-categ_Pe.c: Regenerated.
40319         * tests/unictype/test-categ_Pf.c: Regenerated.
40320         * tests/unictype/test-categ_Pi.c: Regenerated.
40321         * tests/unictype/test-categ_Po.c: Regenerated.
40322         * tests/unictype/test-categ_Ps.c: Regenerated.
40323         * tests/unictype/test-categ_S.c: Regenerated.
40324         * tests/unictype/test-categ_Sk.c: Regenerated.
40325         * tests/unictype/test-categ_Sm.c: Regenerated.
40326         * tests/unictype/test-categ_So.c: Regenerated.
40327         * tests/unictype/test-ctype_alnum.c: Regenerated.
40328         * tests/unictype/test-ctype_alpha.c: Regenerated.
40329         * tests/unictype/test-ctype_graph.c: Regenerated.
40330         * tests/unictype/test-ctype_lower.c: Regenerated.
40331         * tests/unictype/test-ctype_print.c: Regenerated.
40332         * tests/unictype/test-ctype_punct.c: Regenerated.
40333         * tests/unictype/test-ctype_upper.c: Regenerated.
40334         * tests/unictype/test-decdigit.h: Regenerated.
40335         * tests/unictype/test-digit.h: Regenerated.
40336         * tests/unictype/test-numeric.h: Regenerated.
40337         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40338         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40339         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40340         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40341         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40342         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40343         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40344         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40345         * tests/unictype/test-pr_combining.c: Regenerated.
40346         * tests/unictype/test-pr_dash.c: Regenerated.
40347         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40348         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40349         * tests/unictype/test-pr_deprecated.c: Regenerated.
40350         * tests/unictype/test-pr_diacritic.c: Regenerated.
40351         * tests/unictype/test-pr_extender.c: Regenerated.
40352         * tests/unictype/test-pr_format_control.c: Regenerated.
40353         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40354         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40355         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40356         * tests/unictype/test-pr_id_continue.c: Regenerated.
40357         * tests/unictype/test-pr_id_start.c: Regenerated.
40358         * tests/unictype/test-pr_ideographic.c: Regenerated.
40359         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40360         * tests/unictype/test-pr_lowercase.c: Regenerated.
40361         * tests/unictype/test-pr_math.c: Regenerated.
40362         * tests/unictype/test-pr_numeric.c: Regenerated.
40363         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40364         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40365         Regenerated.
40366         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40367         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40368         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40369         * tests/unictype/test-pr_other_math.c: Regenerated.
40370         * tests/unictype/test-pr_punctuation.c: Regenerated.
40371         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40372         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40373         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40374         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40375         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40376         * tests/unictype/test-pr_uppercase.c: Regenerated.
40377         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40378         * tests/unictype/test-pr_xid_start.c: Regenerated.
40379         * tests/unictype/test-pr_zero_width.c: Regenerated.
40380
40381         Update to Unicode 5.1.0.
40382         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40383         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40384         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40385         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40386         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40387         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40388         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40389         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40390         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40391         (nonspacing_table_ind): Update.
40392         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40393
40394         Update to Unicode 5.1.0.
40395         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40396         code transform.
40397         * lib/uniname/uniname.c (unicode_character_name,
40398         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40399         * lib/uniname/uninames.h: Regenerated.
40400         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40401
40402 2009-02-07  Bruno Haible  <bruno@clisp.org>
40403
40404         Merge gen-ctype and gen-lbrk into a single program.
40405         * lib/gen-uni-tables.c: New file, incorporating
40406         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40407         Add directory prefixes to the names of the generated files.
40408         * lib/unictype/gen-ctype.c: Remove file.
40409         * lib/unilbrk/gen-lbrk.c: Remove file.
40410         * modules/gen-uni-tables: New file.
40411         * modules/unictype/gen-ctype: Remove file.
40412         * modules/unilbrk/gen-lbrk: Remove file.
40413
40414 2009-02-07  Bruno Haible  <bruno@clisp.org>
40415
40416         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40417
40418         New module 'unistr/u32-strcoll'.
40419         * modules/unistr/u32-strcoll: New file.
40420         * lib/unistr/u32-strcoll.c: New file.
40421
40422         New module 'unistr/u16-strcoll'.
40423         * modules/unistr/u16-strcoll: New file.
40424         * lib/unistr/u16-strcoll.c: New file.
40425
40426         New module 'unistr/u8-strcoll'.
40427         * modules/unistr/u8-strcoll: New file.
40428         * lib/unistr/u8-strcoll.c: New file.
40429         * lib/unistr/u-strcoll.h: New file.
40430
40431 2009-02-07  Bruno Haible  <bruno@clisp.org>
40432
40433         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40434         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40435         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40436         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40437         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40438         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40439
40440 2009-02-07  Bruno Haible  <bruno@clisp.org>
40441
40442         Make 64-bit clean.
40443         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40444         output_combclass, output_bidi_category, output_decimal_digit,
40445         output_digit, output_numeric, output_mirror, output_scripts,
40446         output_ident_category): Use proper width specifier in format strings.
40447
40448 2009-02-07  Bruno Haible  <bruno@clisp.org>
40449
40450         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40451         failure behaviour.
40452
40453 2009-02-07  Jim Meyering  <meyering@redhat.com>
40454
40455         regex: avoid compilation failure with upcoming gcc-4.4
40456         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40457         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40458         "... error: integer overflow in preprocessor expression".
40459
40460 2009-02-05  Ben Pfaff  <blp@gnu.org>
40461
40462         Fix link errors on Windows when close module is used.
40463         * modules/close: Add $(LIB_CLOSE) to Link section.
40464         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40465         $(LIB_CLOSE) on Windows.
40466
40467 2009-02-05  Jim Meyering  <meyering@redhat.com>
40468
40469         still avoid unused-parameter warnings, but do it cleanly
40470         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40471         (get_fs_usage): Cast to void instead.
40472         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40473         (dev_from_mount_options, read_file_system_list): Cast to void.
40474         Prompted by Bruno Haible.
40475
40476 2009-02-04  Jim Meyering  <meyering@redhat.com>
40477
40478         fsusage.c: correct copyright year
40479         * lib/fsusage.c: Reflect year in which the change is pushed into
40480
40481         avoid misc. warnings
40482         * lib/fsusage.c (UNUSED_PARAM): Define.
40483         (get_fs_usage): Mark parameter "disk" as unused.
40484         * lib/getugroups.c (getgrent): Use "void" in prototype.
40485         * lib/mountlist.c: Mark unused parameters.
40486         (read_file_system_list): Declare a local with "const".
40487         * lib/nanosleep.c (getnow): Declare static.
40488         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40489
40490         dirfd: set errno upon failure
40491         * lib/dirfd.c: Include <errno.h>.
40492         Set errno to ENOTSUP when returning -1.
40493         * modules/dirfd (Depends-on): Add errno.
40494         Suggested by John Kodis <kodis@comcast.net>.
40495
40496 2009-02-01  Bruno Haible  <bruno@clisp.org>
40497
40498         Don't assume sizeof (long) >= sizeof (void *).
40499         * lib/memcmp.c: Include stdint.h.
40500         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40501         srcp2 to 'const byte *'.
40502         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40503         types to uintptr_t.
40504         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40505         * modules/memcmp (Depends-on): Add stdint.
40506         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40507
40508 2009-01-30  Eric Blake  <ebb9@byu.net>
40509
40510         fix more require-before-expand issues
40511         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40512         expand, AC_PROG_AWK.
40513         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40514
40515 2009-01-28  Eric Blake  <ebb9@byu.net>
40516
40517         version-etc: use consistent URL formatting
40518         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40519         Improve formatting.  Use fputs for string without %.
40520
40521 2009-01-28  Jim Meyering  <meyering@redhat.com>
40522
40523         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40524         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40525         "underquoted definition of NAME" from autoconf-2.59.
40526
40527 2009-01-28  Bruno Haible  <bruno@clisp.org>
40528
40529         * doc/gnulib.texi: Add "Obsolete modules" to index.
40530
40531 2009-01-28  Jim Meyering  <meyering@redhat.com>
40532
40533         useless-if-before-free: recognize more variants
40534         * build-aux/useless-if-before-free: Also recognize e.g.,
40535         if (NULL != p) free (p);
40536
40537 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40538
40539         test-getaddrinfo: skip (don't fail) this test when there's no network
40540         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40541         on the presumption that it means you lack network access.
40542
40543 2009-01-26  Jim Meyering  <meyering@redhat.com>
40544
40545         fflush: avoid warnings on modern systems
40546         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40547         pos and result, into scopes where they're used.
40548
40549 2009-01-26  Eric Blake  <ebb9@byu.net>
40550
40551         Silence warning reintroduced by recent extensions patch.
40552         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40553         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40554         autoconf.
40555
40556         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40557         * m4/00gnulib.m4: New file.
40558         * gnulib-tool (func_get_filelist): Always use it.
40559         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40560         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40561
40562 2009-01-25  Bruno Haible  <bruno@clisp.org>
40563
40564         Make test-quotearg work on MacOS X and AIX.
40565         * tests/test-quotearg.sh: New file.
40566         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40567         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40568         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40569         include <libintl.h>.
40570         (fake_locale): Remove variable.
40571         (gettext, dgettext, dcgettext): Remove functions.
40572         (main): Instead of setting a fake locale, set a real locale. Call
40573         textdomain and bindtextdomain.
40574         * modules/quotearg-tests (Files): Add the new files.
40575         (Depends-on): Add gettext, setenv, unsetenv.
40576         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40577         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40578         Augment TESTS_ENVIRONMENT.
40579
40580 2009-01-25  Bruno Haible  <bruno@clisp.org>
40581
40582         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40583         fr_FR.ISO8859-1 locale on MacOS X.
40584         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40585         ja_JP.eucJP locale on MacOS X.
40586         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40587         zh_CN.GB18030 locale on MacOS X.
40588
40589 2009-01-25  Bruno Haible  <bruno@clisp.org>
40590
40591         Avoid link errors on MacOS X 10.3.
40592         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40593         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40594
40595 2009-01-25  Bruno Haible  <bruno@clisp.org>
40596
40597         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40598         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40599         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40600         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40601         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40602         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40603         posix_spawnattr_init, posix_spawnattr_setsigmask,
40604         posix_spawnattr_setflags, posix_spawnattr_destroy.
40605
40606         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40607         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40608         * modules/execute (Files): Remove m4/posix_spawn.m4.
40609         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40610         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40611         posix_spawnattr_init, posix_spawnattr_setsigmask,
40612         posix_spawnattr_setflags, posix_spawnattr_destroy.
40613
40614 2009-01-25  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/glthread/threadlib.c: Include <stdlib.h>.
40617
40618 2009-01-25  Bruno Haible  <bruno@clisp.org>
40619
40620         * lib/glthread/threadlib.c (dummy): New declaration.
40621
40622 2009-01-25  Bruno Haible  <bruno@clisp.org>
40623
40624         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40625         multibyte characters also for the GB18030 encoding. Don't crash when
40626         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40627
40628 2009-01-25  Bruno Haible  <bruno@clisp.org>
40629
40630         Avoid redefining 'struct random_data' on OSF/1 5.1.
40631         * lib/stdlib.in.h: Include <random.h> if it exists.
40632         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40633         HAVE_RANDOM_H. Include <random.h> when testing whether
40634         'struct random_data' exists.
40635         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40636
40637 2009-01-25  Bruno Haible  <bruno@clisp.org>
40638
40639         Don't install charset.alias on MacOS X >= 10.3.
40640         * lib/localcharset.c (DARWIN7): New macro.
40641         (get_charset_aliases): Hardcode the result for Darwin7.
40642         * modules/localcharset (install-exec-local): Don't install
40643         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40644
40645 2009-01-25  Bruno Haible  <bruno@clisp.org>
40646
40647         Don't install charset.alias on mingw and Cygwin.
40648         * modules/localcharset (install-exec-local): Don't install
40649         charset.alias on mingw and Cygwin, if the file does not yet exist.
40650         The result for these platforms is hardcoded in localcharset.c.
40651
40652 2009-01-25  Bruno Haible  <bruno@clisp.org>
40653
40654         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40656         before requiring AC_USE_SYSTEM_EXTENSIONS.
40657
40658 2009-01-25  Jim Meyering  <meyering@redhat.com>
40659
40660         c-strtod: avoid warnings
40661         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40662         "assignment discards qualifiers from pointer target type" warnings.
40663
40664 2009-01-24  Bruno Haible  <bruno@clisp.org>
40665
40666         Add support for non-UTF-8 locales on MacOS X.
40667         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40668         canonical encodings. For Darwin 7 and newer, don't map traditional
40669         encodings to UTF-8.
40670         Reported by Vincent Lefevre <vincent@vinc17.org>
40671         at <http://savannah.gnu.org/bugs/?25235>.
40672
40673 2009-01-24  Bruno Haible  <bruno@clisp.org>
40674
40675         * doc/gnulib.texi (Obsolete modules): New section.
40676         Reported by Mike Frysinger <vapier@gentoo.org>.
40677
40678 2009-01-24  Bruno Haible  <bruno@clisp.org>
40679
40680         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40681         (%.dvi): New rule.
40682
40683 2009-01-24  Bruno Haible  <bruno@clisp.org>
40684
40685         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40686         Reported by Eric Blake.
40687
40688 2009-01-24  Bruno Haible  <bruno@clisp.org>
40689
40690         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40691         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40692         Reported by Gary V. Vaughan <gary@gnu.org>.
40693
40694 2009-01-24  Bruno Haible  <bruno@clisp.org>
40695
40696         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40697
40698 2009-01-23  Bruno Haible  <bruno@clisp.org>
40699
40700         Make c-strtod, c-strtold usable in libraries.
40701         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40702         (C_STRTOD): Call strdup instead of xstrdup.
40703         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40704         * modules/c-strtold (Depends-on): Likewise.
40705         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40706         * NEWS: Mention the change.
40707         Reported by Michael Gold <mgold@ncf.ca>.
40708
40709 2009-01-23  Jim Meyering  <meyering@redhat.com>
40710
40711         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40712         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40713         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40714
40715 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40716
40717         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40718         GNU CoreUtils.
40719         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40720         * modules/version-etc (Description): Update.
40721
40722 2009-01-22  Bruno Haible  <bruno@clisp.org>
40723
40724         Cache the C locale object.
40725         * lib/c-strtod.c (c_locale_cache): New variable.
40726         (c_locale): New function.
40727         (C_STRTOD): Use it, and don't call freelocale.
40728         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40729         Suggested by Paolo Bonzini.
40730
40731 2009-01-21  Bruno Haible  <bruno@clisp.org>
40732
40733         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40734         conditions other than overflow.
40735
40736 2009-01-21  Bruno Haible  <bruno@clisp.org>
40737
40738         * lib/c-strtod.c: Include errno.h.
40739         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40740         value from STRTOD_L and STRTOD.
40741
40742 2009-01-21  Bruno Haible  <bruno@clisp.org>
40743         and Jim Meyering  <meyering@redhat.com>
40744
40745         nanosleep: skip configure test (fail it) for apple universal builds
40746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40747         universal builds, assume that nanosleep does not work.
40748         * modules/nanosleep (Depends-on): Add multiarch.
40749
40750         mktime: skip configure test (fail it) for apple universal builds
40751         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40752         universal builds, assume that mktime does not work.
40753         * modules/mktime (Depends-on): Add multiarch.
40754
40755 2009-01-21  Eric Blake  <ebb9@byu.net>
40756
40757         multiarch: avoid expand-before-require warning
40758         * modules/multiarch (configure.ac): Require, rather than expand,
40759         gl_MULTIARCH.
40760         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40761         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40762         enforce that all clients require it.  Partial reversion of
40763         2008-12-29 patch.
40764
40765         error: avoid expand-before-require warning
40766         * modules/errno (configure.ac): Require, rather than expand,
40767         gl_HEADER_ERRNO_H.
40768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40769         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40770         enforce that all clients require it.
40771
40772         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40773         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40774         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40775         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40776
40777 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40778
40779         Revert:
40780         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40781
40782         regex: do not depend on obsolete modules.
40783         * modules/regex: Remove memcmp and memmove.
40784
40785 2009-01-20  Bruno Haible  <bruno@clisp.org>
40786
40787         Make the 'link' module link on Windows NT 4.
40788         * lib/link.c (_WIN32_WINNT): Don't define.
40789         (CreateHardLinkFuncType): New type.
40790         (CreateHardLinkFunc, initialized): New variables.
40791         (initialize): New function.
40792         (link): Invoke CreateHardLink indirectly through the function pointer.
40793
40794 2009-01-20  Bruno Haible  <bruno@clisp.org>
40795
40796         Fix compilation failure on mingw.
40797         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40798
40799 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40800
40801         * doc/c-strtod.texi: Mention a couple of restrictions.
40802
40803 2009-01-20  Jim Meyering  <meyering@redhat.com>
40804
40805         gettimeofday: move more declarations out of functions
40806         * lib/gettimeofday.c: Move extern declarations of tzset and
40807         gmtime out of containing functions.  Prompted by Bruno Haible.
40808
40809 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40810
40811         regex: do not depend on obsolete modules.
40812         * modules/regex: Remove memcmp and memmove.
40813
40814 2009-01-19  Bruno Haible  <bruno@clisp.org>
40815
40816         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40817         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40818         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40819         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40820         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40821
40822 2009-01-19  Bruno Haible  <bruno@clisp.org>
40823
40824         * tests/test-link.c: Include <errno.h>.
40825         (main): Exit with code 77 when a hard link cannot be created due to
40826         the file system.
40827         * tests/test-link.sh: Skip test when a hard link cannot be created due
40828         to the file system.
40829         Suggested by Eric Blake.
40830
40831 2009-01-19  Martin Lambers  <marlam@marlam.de>
40832
40833         * modules/link-tests: New file.
40834         * tests/test-link.sh: New file.
40835         * tests/test-link.c: New file.
40836
40837 2009-01-19  Eric Blake  <ebb9@byu.net>
40838
40839         doc: mention another function added in cygwin 1.7.0
40840         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40841         Another new function in cygwin 1.7.
40842
40843 2009-01-19  Bruno Haible  <bruno@clisp.org>
40844
40845         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40846         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40847         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40848         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40850         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40851         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40852         * m4/md4.m4 (gl_MD4): Likewise.
40853         * m4/md5.m4 (gl_MD5): Likewise.
40854         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40855         * m4/sha1.m4 (gl_SHA1): Likewise.
40856         * m4/sha256.m4 (gl_SHA256): Likewise.
40857         * m4/sha512.m4 (gl_SHA512): Likewise.
40858
40859 2009-01-19  Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/uniname/uniname-tests (Depends-on): Add progname.
40862         * tests/uniname/test-uninames.c: Include progname.h.
40863         (main): Call set_program_name.
40864
40865         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40866         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40867         (main): Call set_program_name.
40868
40869         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40870         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40871         (main): Call set_program_name.
40872
40873         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40874         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40875         (main): Call set_program_name.
40876
40877         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40878         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40879         (main): Call set_program_name.
40880
40881         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40882         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40883         (main): Call set_program_name.
40884
40885         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40886         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40887         (main): Call set_program_name.
40888
40889         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40890         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40891         (main): Call set_program_name.
40892
40893         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40894         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40895         (main): Call set_program_name.
40896
40897 2009-01-19  Eric Blake  <ebb9@byu.net>
40898
40899         test-unistd: test previous patch
40900         * tests/test-unistd.c: Test *_FILENO macros.
40901
40902         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40903         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40904         Guarantee a definition.
40905         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40906         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40907         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40908         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40909         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40910         Likewise.
40911         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40912         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40913         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40914         Likewise.
40915         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40916         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40917         (STDERR_FILENO): Likewise.
40918         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40919         (STDERR_FILENO): Likewise.
40920         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40921         (STDERR_FILENO): Likewise.
40922         Reported by Elbert Pol.
40923
40924 2009-01-19  Eric Blake  <ebb9@byu.net>
40925
40926         doc: mention more functions added in cygwin 1.7.0
40927         * doc/posix-functions/abort.texi (abort): Update wording related
40928         to cygwin.
40929         * doc/posix-functions/daylight.texi (daylight): Likewise.
40930         * doc/posix-functions/optarg.texi (optarg): Likewise.
40931         * doc/posix-functions/optarg.texi (opterr): Likewise.
40932         * doc/posix-functions/optarg.texi (optind): Likewise.
40933         * doc/posix-functions/optarg.texi (optopt): Likewise.
40934         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40935         worked in 1.5.x, and was withdrawn in 1.7.
40936         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40937         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40938         cygwin versions.
40939         * doc/posix-functions/perror.texi (perror): Likewise.
40940         * doc/posix-functions/printf.texi (printf): Likewise.
40941         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40942         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40943         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40944         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40945         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40946         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40947         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40948         Likewise.
40949         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40950         Likewise.
40951         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40952         this function.
40953         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40954         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40955         Likewise.
40956         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40957         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40958         * doc/posix-functions/confstr.texi (confstr): Likewise.
40959         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40960         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40961         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40962         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40963         * doc/posix-functions/fputws.texi (fputws): Likewise.
40964         * doc/posix-functions/fwide.texi (fwide): Likewise.
40965         * doc/posix-functions/getwc.texi (getwc): Likewise.
40966         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40967         * doc/posix-functions/putwc.texi (putwc): Likewise.
40968         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40969         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40970         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40971         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40972         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40973         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40974         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40975         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40976         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40977         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40978         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40979
40980 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40981
40982         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40983         * lib/ioctl.c: Include <sys/ioctl.h>.
40984
40985 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40986
40987         * modules/getdate-tests (Depends-on): Add progname.
40988         * tests/test-getdate.c: Use progname module, to avoid link errors
40989         on non-glibc systems.
40990
40991 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40992
40993         * modules/filenamecat-tests (Depends-on): Add progname.
40994         * modules/fstrcmp-tests (Depends-on): Likewise.
40995
40996         * tests/test-filenamecat.c: Use progname module, to avoid link
40997         errors on non-glibc systems.
40998         * tests/test-fstrcmp.c: Likewise.
40999
41000 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41001
41002         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41003         * lib/gettimeofday.c: Move extern declaration out of function.
41004
41005 2009-01-18  Bruno Haible  <bruno@clisp.org>
41006
41007         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41008         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41009         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41010
41011 2009-01-18  Bruno Haible  <bruno@clisp.org>
41012
41013         * lib/strftime.c (MEMPCPY): Remove unused macro.
41014         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41015
41016 2009-01-18  Martin Lambers  <marlam@marlam.de>
41017
41018         New module 'link'.
41019         * lib/unistd.in.h (link): New declaration.
41020         * lib/link.c: New file.
41021         * m4/link.m4: New file.
41022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41023         HAVE_LINK.
41024         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41025         * modules/link: New file.
41026         * doc/posix-functions/link.texi: Mention the new module.
41027
41028 2009-01-18  Bruno Haible  <bruno@clisp.org>
41029
41030         * tests/test-avltree_list.c (main): Call set_program_name.
41031         * tests/test-avltree_oset.c (main): Likewise.
41032         * tests/test-obstack-printf.c: Include progname.h.
41033         (main): Call set_program_name.
41034         * tests/test-quotearg.c: Include progname.h.
41035         (main): Call set_program_name.
41036         * tests/test-xmemdup0.c: Include progname.h.
41037         (main): Call set_program_name.
41038
41039 2009-01-18  Bruno Haible  <bruno@clisp.org>
41040
41041         New module 'alphasort'.
41042         * lib/dirent.in.h (alphasort): New declaration.
41043         * lib/alphasort.c: New file, from glibc with modifications.
41044         * m4/alphasort.m4: New file.
41045         * modules/alphasort: New file.
41046         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41047         HAVE_ALPHASORT.
41048         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41049         HAVE_ALPHASORT.
41050         * doc/posix-functions/alphasort.texi: Mention the new module and the
41051         portability problems.
41052
41053 2009-01-18  Bruno Haible  <bruno@clisp.org>
41054
41055         New module 'scandir'.
41056         * lib/dirent.in.h (scandir): New declaration.
41057         * lib/scandir.c: New file, from glibc with modifications.
41058         * m4/scandir.m4: New file.
41059         * modules/scandir: New file.
41060         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41061         HAVE_SCANDIR.
41062         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41063         HAVE_SCANDIR.
41064         * doc/posix-functions/scandir.texi: Mention the new module and the
41065         portability problems.
41066
41067 2009-01-17  Bruno Haible  <bruno@clisp.org>
41068
41069         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41070         Update documentation.
41071         (func_remove_suffix): Escape all dots in the suffix. Update
41072         documentation.
41073         (func_filter_filelist): Update documentation.
41074         Reported by Ralf Wildenhues.
41075
41076 2009-01-17  Bruno Haible  <bruno@clisp.org>
41077
41078         * modules/dprintf-posix-tests: New file.
41079         * tests/test-dprintf-posix.sh: New file.
41080         * tests/test-dprintf-posix.c: New file.
41081
41082         New modules 'dprintf', 'dprintf-posix'.
41083         * lib/stdio.in.h (dprintf): New declaration.
41084         * lib/dprintf.c: New file.
41085         * m4/dprintf.m4: New file.
41086         * m4/dprintf-posix.m4: New file.
41087         * modules/dprintf: New file.
41088         * modules/dprintf-posix: New file.
41089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41090         HAVE_DPRINTF, REPLACE_DPRINTF.
41091         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41092         HAVE_DPRINTF, REPLACE_DPRINTF.
41093         * doc/posix-functions/dprintf.texi: Mention the new modules.
41094
41095 2009-01-17  Bruno Haible  <bruno@clisp.org>
41096
41097         * modules/vdprintf-posix-tests: New file.
41098         * tests/test-vdprintf-posix.sh: New file.
41099         * tests/test-vdprintf-posix.c: New file.
41100
41101         New modules 'vdprintf', 'vdprintf-posix'.
41102         * lib/stdio.in.h (vdprintf): New declaration.
41103         * lib/vdprintf.c: New file.
41104         * m4/vdprintf.m4: New file.
41105         * m4/vdprintf-posix.m4: New file.
41106         * modules/vdprintf: New file.
41107         * modules/vdprintf-posix: New file.
41108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41109         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41110         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41111         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41112         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41113
41114 2009-01-17  Bruno Haible  <bruno@clisp.org>
41115
41116         Fix replacement of fopen on mingw.
41117         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41118         mingw.
41119
41120 2009-01-17  Bruno Haible  <bruno@clisp.org>
41121
41122         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41123         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41124
41125 2009-01-17  Bruno Haible  <bruno@clisp.org>
41126
41127         Avoid test-fflush2.sh failure on mingw.
41128         * tests/test-fflush2.c: Include binary-io.h.
41129         (main): Put standard input into binary mode.
41130         * modules/fflush-tests (Depends-on): Add binary-io.
41131
41132 2009-01-17  Bruno Haible  <bruno@clisp.org>
41133
41134         * lib/wchar.in.h: In another particular situation, include only the
41135         system's <wchar.h> file.
41136         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41137         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41138         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41139
41140 2009-01-17  Bruno Haible  <bruno@clisp.org>
41141
41142         Support for stripping executables in --enable-relocatable.
41143         * build-aux/install-reloc: Expect one more argument, or an environment
41144         variable RELOC_STRIP_PROG. If set, strip the destination program and
41145         its wrapper.
41146         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41147         RELOC_STRIP_PROG.
41148         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41149         to set RELOCATABLE_STRIP.
41150         * NEWS: Mention the new Makefile requirement.
41151
41152 2009-01-17  Bruno Haible  <bruno@clisp.org>
41153
41154         * build-aux/install-reloc: Remove debugging information left over by
41155         C compiler on MacOS X.
41156
41157 2009-01-17  Bruno Haible  <bruno@clisp.org>
41158
41159         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41160         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41161         _NSGetExecutablePath.
41162
41163 2009-01-16  Jim Meyering  <meyering@redhat.com>
41164
41165         strerror: avoid warnings about discarding "const"
41166         * lib/strerror.c (rpl_strerror): Instead of returning a const
41167         string from each and every "case", use a variable, and add a single
41168         cast after the switch.
41169
41170 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41171
41172         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41173
41174 2009-01-16  Bruno Haible  <bruno@clisp.org>
41175
41176         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41177         array initializer syntax that also works in C++ mode.
41178         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41179
41180 2009-01-16  Jim Meyering  <meyering@redhat.com>
41181
41182         poll: suppress a warning
41183         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41184         to ignore "...unsigned expression < 0 is always false" warnings.
41185
41186 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41187
41188         poll: remove declarations of unused variables
41189         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41190         sockbuf and optlen.
41191
41192 2009-01-15  Bruno Haible  <bruno@clisp.org>
41193
41194         Make fflush-after-ungetc POSIX compliant on BSD systems.
41195         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41196         (clear_ungetc_buffer): Implement also for other systems.
41197         (rpl_fflush): On glibc systems, invoke
41198         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41199         clear_ungetc_buffer after fetching the stream's position, not before.
41200
41201 2009-01-15  Bruno Haible  <bruno@clisp.org>
41202
41203         Make fflush-after-ungetc POSIX compliant on glibc systems.
41204         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41205         after ungetc.
41206         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41207         (rpl_fflush): On glibc systems, simply call the system's fflush
41208         function after clearing the ungetc buffer.
41209         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41210         Instead, lseek only to the end of file, then use the system's fseeko
41211         for the rest. On glibc systems, reset the EOF indicator bit.
41212
41213 2009-01-15  Jim Meyering  <meyering@redhat.com>
41214
41215         openmp.m4: revert quote-adding change, for portability to older autoconf
41216         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41217         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41218         Simon Josefsson noticed the problem when using autoconf-2.61.
41219
41220 2009-01-15  Bruno Haible  <bruno@clisp.org>
41221
41222         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41223         * tests/test-fflush2.c (ASSERT): Always fail.
41224         (main): Add two tests for fflush() after ungetc(), taking into account
41225         the Austin Group's clarification.
41226         Suggested by Eric Blake.
41227
41228 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41229
41230         mktime.m4: remove K&R-style function prototypes
41231         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41232         for the Sun C++ compiler.
41233
41234 2009-01-14  Bruno Haible  <bruno@clisp.org>
41235
41236         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41237         while including <wchar.h>.
41238         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41239         the system's <wchar.h> file.
41240         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41241
41242 2009-01-14  Bruno Haible  <bruno@clisp.org>
41243
41244         * m4/csharp.m4: Don't mention gettext on the serial number line.
41245         * m4/csharpexec.m4: Likewise.
41246         * m4/eaccess.m4: Likewise.
41247         * m4/javaexec.m4: Likewise.
41248         * m4/sig_atomic_t.m4: Likewise.
41249         * m4/tmpdir.m4: Likewise.
41250         * m4/intldir.m4: Bump gettext version.
41251         * m4/lib-ld.m4: Likewise.
41252
41253 2009-01-14  Bruno Haible  <bruno@clisp.org>
41254
41255         * lib/progname.c (set_program_name): Add more comments.
41256         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41257
41258 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41259
41260         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41261         were sys/stat.h does not define it.
41262
41263 2009-01-14  Jim Meyering  <meyering@redhat.com>
41264
41265         many *.m4 files: improve m4 quoting
41266         99% of this change was performed by running the following commands:
41267         git ls-files | grep '\.m4$' | xargs perl -pi \
41268           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41269           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41270           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41271           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41272         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41273         The remainder were to add Copyright dates, increment serial numbers,
41274         undo some changes in comments, exclude m4/intl.m4, and add quotes
41275         around the "1" in ",1" where the unusual spacing prohibited the
41276         above regexps from doing the job.  For more details, see
41277         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41278         * m4/acl.m4: Modified.
41279         * m4/afs.m4: Likewise.
41280         * m4/alloca.m4: Likewise.
41281         * m4/argp.m4: Likewise.
41282         * m4/argz.m4: Likewise.
41283         * m4/atexit.m4: Likewise.
41284         * m4/bison-i18n.m4: Likewise.
41285         * m4/bison.m4: Likewise.
41286         * m4/byteswap.m4: Likewise.
41287         * m4/c-stack.m4: Likewise.
41288         * m4/c-strtod.m4: Likewise.
41289         * m4/calloc.m4: Likewise.
41290         * m4/canonicalize-lgpl.m4: Likewise.
41291         * m4/chown.m4: Likewise.
41292         * m4/clock_time.m4: Likewise.
41293         * m4/codeset.m4: Likewise.
41294         * m4/copy-file.m4: Likewise.
41295         * m4/csharp.m4: Likewise.
41296         * m4/csharpcomp.m4: Likewise.
41297         * m4/csharpexec.m4: Likewise.
41298         * m4/d-ino.m4: Likewise.
41299         * m4/d-type.m4: Likewise.
41300         * m4/dirfd.m4: Likewise.
41301         * m4/double-slash-root.m4: Likewise.
41302         * m4/eaccess.m4: Likewise.
41303         * m4/eealloc.m4: Likewise.
41304         * m4/environ.m4: Likewise.
41305         * m4/errno_h.m4: Likewise.
41306         * m4/euidaccess.m4: Likewise.
41307         * m4/execute.m4: Likewise.
41308         * m4/fatal-signal.m4: Likewise.
41309         * m4/fchdir.m4: Likewise.
41310         * m4/fcntl_h.m4: Likewise.
41311         * m4/fileblocks.m4: Likewise.
41312         * m4/filenamecat.m4: Likewise.
41313         * m4/findprog.m4: Likewise.
41314         * m4/flexmember.m4: Likewise.
41315         * m4/fnmatch.m4: Likewise.
41316         * m4/fopen.m4: Likewise.
41317         * m4/fpending.m4: Likewise.
41318         * m4/fprintf-posix.m4: Likewise.
41319         * m4/free.m4: Likewise.
41320         * m4/frexp.m4: Likewise.
41321         * m4/frexpl.m4: Likewise.
41322         * m4/fsusage.m4: Likewise.
41323         * m4/ftruncate.m4: Likewise.
41324         * m4/gc-camellia.m4: Likewise.
41325         * m4/gc-random.m4: Likewise.
41326         * m4/gc.m4: Likewise.
41327         * m4/getaddrinfo.m4: Likewise.
41328         * m4/getcwd-abort-bug.m4: Likewise.
41329         * m4/getcwd-path-max.m4: Likewise.
41330         * m4/getdate.m4: Likewise.
41331         * m4/getdomainname.m4: Likewise.
41332         * m4/getgroups.m4: Likewise.
41333         * m4/gethostname.m4: Likewise.
41334         * m4/gethrxtime.m4: Likewise.
41335         * m4/getline.m4: Likewise.
41336         * m4/getloadavg.m4: Likewise.
41337         * m4/getndelim2.m4: Likewise.
41338         * m4/getpass.m4: Likewise.
41339         * m4/gettext.m4: Likewise.
41340         * m4/gettime.m4: Likewise.
41341         * m4/gettimeofday.m4: Likewise.
41342         * m4/gnulib-common.m4: Likewise.
41343         * m4/group-member.m4: Likewise.
41344         * m4/host-os.m4: Likewise.
41345         * m4/iconv.m4: Likewise.
41346         * m4/iconv_open.m4: Likewise.
41347         * m4/inet_ntop.m4: Likewise.
41348         * m4/inet_pton.m4: Likewise.
41349         * m4/inline.m4: Likewise.
41350         * m4/intldir.m4: Likewise.
41351         * m4/intlmacosx.m4: Likewise.
41352         * m4/intmax.m4: Likewise.
41353         * m4/intmax_t.m4: Likewise.
41354         * m4/inttypes.m4: Likewise.
41355         * m4/inttypes_h.m4: Likewise.
41356         * m4/inttypes-pri.m4: Likewise.
41357         * m4/isapipe.m4: Likewise.
41358         * m4/isnand.m4: Likewise.
41359         * m4/isnanf.m4: Likewise.
41360         * m4/isnanl.m4: Likewise.
41361         * m4/javacomp.m4: Likewise.
41362         * m4/javaexec.m4: Likewise.
41363         * m4/jm-winsz1.m4: Likewise.
41364         * m4/jm-winsz2.m4: Likewise.
41365         * m4/lchown.m4: Likewise.
41366         * m4/lcmessage.m4: Likewise.
41367         * m4/ldexpl.m4: Likewise.
41368         * m4/lib-ld.m4: Likewise.
41369         * m4/lib-link.m4: Likewise.
41370         * m4/libsigsegv.m4: Likewise.
41371         * m4/link-follow.m4: Likewise.
41372         * m4/localcharset.m4: Likewise.
41373         * m4/locale-fr.m4: Likewise.
41374         * m4/locale-ja.m4: Likewise.
41375         * m4/locale-tr.m4: Likewise.
41376         * m4/locale-zh.m4: Likewise.
41377         * m4/lock.m4: Likewise.
41378         * m4/longlong.m4: Likewise.
41379         * m4/ls-mntd-fs.m4: Likewise.
41380         * m4/lstat.m4: Likewise.
41381         * m4/malloc.m4: Likewise.
41382         * m4/mathl.m4: Likewise.
41383         * m4/mbrtowc.m4: Likewise.
41384         * m4/mbstate_t.m4: Likewise.
41385         * m4/mbswidth.m4: Likewise.
41386         * m4/memchr.m4: Likewise.
41387         * m4/memcmp.m4: Likewise.
41388         * m4/memcpy.m4: Likewise.
41389         * m4/memmem.m4: Likewise.
41390         * m4/memmove.m4: Likewise.
41391         * m4/mempcpy.m4: Likewise.
41392         * m4/memrchr.m4: Likewise.
41393         * m4/memset.m4: Likewise.
41394         * m4/minmax.m4: Likewise.
41395         * m4/mkdir-slash.m4: Likewise.
41396         * m4/mkdtemp.m4: Likewise.
41397         * m4/mktime.m4: Likewise.
41398         * m4/mmap-anon.m4: Likewise.
41399         * m4/mountlist.m4: Likewise.
41400         * m4/nanosleep.m4: Likewise.
41401         * m4/nls.m4: Likewise.
41402         * m4/nocrash.m4: Likewise.
41403         * m4/open.m4: Likewise.
41404         * m4/openat.m4: Likewise.
41405         * m4/openmp.m4: Likewise.
41406         * m4/pathmax.m4: Likewise.
41407         * m4/perl.m4: Likewise.
41408         * m4/physmem.m4: Likewise.
41409         * m4/pipe.m4: Likewise.
41410         * m4/po.m4: Likewise.
41411         * m4/poll.m4: Likewise.
41412         * m4/posixtm.m4: Likewise.
41413         * m4/posixver.m4: Likewise.
41414         * m4/printf-frexp.m4: Likewise.
41415         * m4/printf-frexpl.m4: Likewise.
41416         * m4/printf-posix.m4: Likewise.
41417         * m4/printf-posix-rpl.m4: Likewise.
41418         * m4/printf.m4: Likewise.
41419         * m4/progtest.m4: Likewise.
41420         * m4/putenv.m4: Likewise.
41421         * m4/readline.m4: Likewise.
41422         * m4/readlink.m4: Likewise.
41423         * m4/readutmp.m4: Likewise.
41424         * m4/realloc.m4: Likewise.
41425         * m4/regex.m4: Likewise.
41426         * m4/relocatable.m4: Likewise.
41427         * m4/relocatable-lib.m4: Likewise.
41428         * m4/rename-dest-slash.m4: Likewise.
41429         * m4/rename.m4: Likewise.
41430         * m4/rmdir-errno.m4: Likewise.
41431         * m4/rmdir.m4: Likewise.
41432         * m4/roundf.m4: Likewise.
41433         * m4/roundl.m4: Likewise.
41434         * m4/rpmatch.m4: Likewise.
41435         * m4/save-cwd.m4: Likewise.
41436         * m4/selinux-selinux-h.m4: Likewise.
41437         * m4/setenv.m4: Likewise.
41438         * m4/settime.m4: Likewise.
41439         * m4/sig2str.m4: Likewise.
41440         * m4/sig_atomic_t.m4: Likewise.
41441         * m4/signalblocking.m4: Likewise.
41442         * m4/signbit.m4: Likewise.
41443         * m4/sigpipe.m4: Likewise.
41444         * m4/sockets.m4: Likewise.
41445         * m4/sockpfaf.m4: Likewise.
41446         * m4/st_dm_mode.m4: Likewise.
41447         * m4/stat-time.m4: Likewise.
41448         * m4/stdbool.m4: Likewise.
41449         * m4/stdint.m4: Likewise.
41450         * m4/stdint_h.m4: Likewise.
41451         * m4/stpcpy.m4: Likewise.
41452         * m4/stpncpy.m4: Likewise.
41453         * m4/strcase.m4: Likewise.
41454         * m4/strchrnul.m4: Likewise.
41455         * m4/strcspn.m4: Likewise.
41456         * m4/strdup.m4: Likewise.
41457         * m4/strftime.m4: Likewise.
41458         * m4/strndup.m4: Likewise.
41459         * m4/strnlen.m4: Likewise.
41460         * m4/strpbrk.m4: Likewise.
41461         * m4/strptime.m4: Likewise.
41462         * m4/strsep.m4: Likewise.
41463         * m4/strtod.m4: Likewise.
41464         * m4/strtoimax.m4: Likewise.
41465         * m4/strtok_r.m4: Likewise.
41466         * m4/strtol.m4: Likewise.
41467         * m4/strtoll.m4: Likewise.
41468         * m4/strtoul.m4: Likewise.
41469         * m4/strtoull.m4: Likewise.
41470         * m4/strtoumax.m4: Likewise.
41471         * m4/strverscmp.m4: Likewise.
41472         * m4/threadlib.m4: Likewise.
41473         * m4/timegm.m4: Likewise.
41474         * m4/tm_gmtoff.m4: Likewise.
41475         * m4/tmpdir.m4: Likewise.
41476         * m4/tmpfile.m4: Likewise.
41477         * m4/tzset.m4: Likewise.
41478         * m4/uintmax_t.m4: Likewise.
41479         * m4/unlinkdir.m4: Likewise.
41480         * m4/unlocked-io.m4: Likewise.
41481         * m4/uptime.m4: Likewise.
41482         * m4/userspec.m4: Likewise.
41483         * m4/utimbuf.m4: Likewise.
41484         * m4/utime.m4: Likewise.
41485         * m4/utimes-null.m4: Likewise.
41486         * m4/utimes.m4: Likewise.
41487         * m4/vararrays.m4: Likewise.
41488         * m4/vasnprintf.m4: Likewise.
41489         * m4/vfprintf-posix.m4: Likewise.
41490         * m4/vprintf-posix.m4: Likewise.
41491         * m4/wait-process.m4: Likewise.
41492         * m4/wchar_t.m4: Likewise.
41493         * m4/wint_t.m4: Likewise.
41494         * m4/write-any-file.m4: Likewise.
41495         * m4/yield.m4: Likewise.
41496
41497 2009-01-13  Bruno Haible  <bruno@clisp.org>
41498
41499         Avoid test-copy-file.sh failures when ACL support insufficient.
41500         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41501         TESTS_ENVIRONMENT.
41502         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41503         Reported by Jim Meyering.
41504
41505 2009-01-13  Bruno Haible  <bruno@clisp.org>
41506
41507         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41508         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41509         * modules/unistdio/u8-printf-parse (Files): Likewise.
41510         * modules/unistdio/u32-printf-parse (Files): Likewise.
41511         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41512
41513 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41514
41515         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41516         and m4/inttypes_h.m4 too.
41517
41518 2009-01-12  Eric Blake  <ebb9@byu.net>
41519
41520         tests: IRIX 6.2 cc can't compile -0.0 into .data
41521         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41522         rather than at compile-time.
41523         * tests/test-floorl.c (minus_zero): Likewise.
41524         * tests/test-frexpl.c (minus_zero): Likewise.
41525         * tests/test-isnan.c (minus_zerol): Likewise.
41526         * tests/test-isnanl.h (minus_zero): Likewise.
41527         * tests/test-ldexpl.c (minus_zero): Likewise.
41528         * tests/test-roundl.c (minus_zero): Likewise.
41529         * tests/test-signbit.c (minus_zerol): Likewise.
41530         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41531         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41532         * tests/test-truncl.c (minus_zero): Likewise.
41533         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41534         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41535         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41536
41537 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41538
41539         regex: fix glibc bug 9697
41540         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41541         handling.
41542
41543 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41544
41545         regex: fix glibc bug 697
41546         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41547         being NULL also if there are no backreferences.
41548
41549 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41550
41551         regex: merge glibc changes
41552         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41553         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41554         re_string_skip_chars, re_string_reconstruct): Likewise.
41555         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41556
41557 2009-01-07  Jim Meyering  <meyering@redhat.com>
41558
41559         poll: filter through cppi
41560         * lib/poll.c: Indent cpp directives to reflect nesting.
41561
41562 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41563
41564         poll: don't return uninitialized
41565         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41566
41567 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41568
41569         avoid compile failure on AIX 6.1
41570         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41571         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41572
41573 2009-01-04  Jim Meyering  <meyering@redhat.com>
41574
41575         remove duplicate inclusion of <stdio.h>
41576         * tests/test-fprintf-posix.c: Likewise.
41577         * tests/test-printf-posix.c: Likewise.
41578         * tests/test-snprintf-posix.c: Likewise.
41579         * tests/test-sprintf-posix.c: Likewise.
41580         * tests/test-vasprintf-posix.c: Likewise.
41581         * tests/test-vfprintf-posix.c: Likewise.
41582         * tests/test-vprintf-posix.c: Likewise.
41583         * tests/test-vsnprintf-posix.c: Likewise.
41584         * tests/test-vsprintf-posix.c: Likewise.
41585
41586 2009-01-03  Jim Meyering  <meyering@redhat.com>
41587
41588         gnulib-tool: fix sed-based filtering
41589         * gnulib-tool (func_filter_filelist): Remove extra backslash
41590         in sed_fff_filter definition.
41591
41592 2009-01-02  Jim Meyering  <meyering@redhat.com>
41593
41594         strftime: avoid compilation failure on Solaris 2.6
41595         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41596         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41597         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41598         be available.  Reported by Tom G. Christensen.  Details in
41599         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41600
41601 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41602             Bruno Haible  <bruno@clisp.org>
41603
41604         Speed up gnulib-tool by doing more string processing through shell
41605         built-ins.
41606         * gnulib-tool (fast_func_append): New variable.
41607         (func_remove_prefix, func_remove_suffix): New functions.
41608         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41609         (func_filter_filelist): New function.
41610         (func_get_dependencies): Use func_remove_suffix instead of sed.
41611         (func_get_automake_snippet): Use func_filter_filelist instead of a
41612         subshell and sed invocation.
41613
41614 2009-01-01  Bruno Haible  <bruno@clisp.org>
41615
41616         Fix a security bug.
41617         * gnulib-tool (func_import, import, update): Don't allow the characters
41618         '"', '$', '`', '\' in macro arguments that become part of commands that
41619         are evaluated.
41620
41621 2009-01-01  Bruno Haible  <bruno@clisp.org>
41622
41623         * gnulib-tool (func_reset_sigpipe): Add more comments.
41624
41625 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41626
41627         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41628         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41629         already know the answer.
41630
41631 2009-01-01  Jim Meyering  <meyering@redhat.com>
41632
41633         * lib/version-etc.c (version_etc_va): Update copyright year.
41634
41635 2008-12-30  Bruno Haible  <bruno@clisp.org>
41636
41637         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41638         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41639         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41640
41641 2008-12-29  Eric Blake  <ebb9@byu.net>
41642
41643         multiarch: avoid autoconf AC_REQUIRE bug
41644         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41645         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41646         2.63 and older.
41647         Reported by Bruno Haible, and analyzed in
41648         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41649
41650 2008-12-29  Bruno Haible  <bruno@clisp.org>
41651
41652         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41653         files in subdirectories correctly.
41654         Reported by Ralf Wildenhues.
41655
41656 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41657
41658         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41659         rather than 'join FILE -', for Solaris join.
41660
41661 2008-12-29  Bruno Haible  <bruno@clisp.org>
41662
41663         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41664         quoting.
41665         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41666         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41667         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41668         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41669         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41670         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41671         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41672         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41673         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41674         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41675         * m4/nls.m4 (AM_NLS): Likewise.
41676         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41677         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41678         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41679         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41680         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41681         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41682         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41683         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41684         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41685         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41686         * m4/xsize.m4 (gl_XSIZE): Likewise.
41687         Suggested by Jim Meyering.
41688
41689 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41690
41691         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41692         * lib/parse-duration.c: use a switch instead of cascading if's.
41693
41694 2008-12-29  Eric Blake  <ebb9@byu.net>
41695
41696         wchar.h: supply WEOF on Irix 5.3
41697         * lib/wchar.in.h (wint_t): Also supply WEOF.
41698         * lib/wctype.in.h (wint_t): Likewise.
41699         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41700         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41701         Reported by Tom G. Christensen.
41702
41703 2008-12-26  Bruno Haible  <bruno@clisp.org>
41704
41705         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41706         i486, i586, i686.
41707
41708 2008-12-26  Bruno Haible  <bruno@clisp.org>
41709
41710         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41711
41712 2008-12-26  Bruno Haible  <bruno@clisp.org>
41713
41714         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41715         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41716         not __STDC_CONSTANT_MACROS.
41717         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41718
41719 2008-12-25  Bruno Haible  <bruno@clisp.org>
41720
41721         Add support for universal builds to vasnprintf.
41722         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41723         universal builds, guess no.
41724         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41725         * modules/vasprintf-posix (Depends-on): Likewise.
41726         * modules/fprintf-posix (Depends-on): Likewise.
41727         * modules/vfprintf-posix (Depends-on): Likewise.
41728         * modules/snprintf-posix (Depends-on): Likewise.
41729         * modules/vsnprintf-posix (Depends-on): Likewise.
41730         * modules/sprintf-posix (Depends-on): Likewise.
41731         * modules/vsprintf-posix (Depends-on): Likewise.
41732         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41733         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41734         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41735         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41736         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41737         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41738         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41739
41740         Add support for universal builds to <inttypes.h>.
41741         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41742         _SCNu64_PREFIX): In Apple
41743         universal builds, define directly, using _LP64.
41744         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41745         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41746         * modules/inttypes (Depends-on): Add multiarch.
41747         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41748
41749         Add support for universal builds to <stdint.h>.
41750         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41751         universal builds, define directly, using _LP64.
41752         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41753         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41754         and size_t.
41755         * modules/stdint (Depends-on): Add multiarch.
41756         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41757
41758         New module 'multiarch'.
41759         * modules/multiarch: New file.
41760         * m4/multiarch.m4: New file.
41761
41762 2008-12-25  Bruno Haible  <bruno@clisp.org>
41763
41764         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41765
41766 2008-12-25  Bruno Haible  <bruno@clisp.org>
41767
41768         * modules/btowc (License): Relicense under LGPLv2+.
41769         * modules/mbsinit (License): Likewise.
41770         * modules/mbrtowc (License): Likewise.
41771         * modules/wcrtomb (License): Likewise.
41772         * modules/streq (License): Likewise.
41773         Reported by David Lutterkort <lutter@redhat.com>.
41774
41775 2008-12-23  Bruno Haible  <bruno@clisp.org>
41776
41777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41778
41779 2008-12-23  Bruno Haible  <bruno@clisp.org>
41780
41781         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41783         GETADDRINFO_LIB, not in LIBS.
41784         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41785         * modules/canon-host (Link): Likewise.
41786         * NEWS: Mention the change.
41787         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41788         GETADDRINFO_LIB.
41789
41790 2008-12-22  Bruno Haible  <bruno@clisp.org>
41791
41792         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41793         * doc/posix-functions/iswalpha_l.texi: Likewise.
41794         * doc/posix-functions/iswblank_l.texi: Likewise.
41795         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41796         * doc/posix-functions/iswctype_l.texi: Likewise.
41797         * doc/posix-functions/iswdigit_l.texi: Likewise.
41798         * doc/posix-functions/iswgraph_l.texi: Likewise.
41799         * doc/posix-functions/iswlower_l.texi: Likewise.
41800         * doc/posix-functions/iswprint_l.texi: Likewise.
41801         * doc/posix-functions/iswpunct_l.texi: Likewise.
41802         * doc/posix-functions/iswspace_l.texi: Likewise.
41803         * doc/posix-functions/iswupper_l.texi: Likewise.
41804         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41805         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41806         * doc/posix-functions/open_wmemstream.texi: Likewise.
41807         * doc/posix-functions/swscanf.texi: Likewise.
41808         * doc/posix-functions/towctrans_l.texi: Likewise.
41809         * doc/posix-functions/towlower.texi: Likewise.
41810         * doc/posix-functions/towlower_l.texi: Likewise.
41811         * doc/posix-functions/towupper.texi: Likewise.
41812         * doc/posix-functions/towupper_l.texi: Likewise.
41813         * doc/posix-functions/vfwprintf.texi: Likewise.
41814         * doc/posix-functions/vfwscanf.texi: Likewise.
41815         * doc/posix-functions/vswscanf.texi: Likewise.
41816         * doc/posix-functions/vwprintf.texi: Likewise.
41817         * doc/posix-functions/vwscanf.texi: Likewise.
41818         * doc/posix-functions/wcpcpy.texi: Likewise.
41819         * doc/posix-functions/wcpncpy.texi: Likewise.
41820         * doc/posix-functions/wcscasecmp.texi: Likewise.
41821         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41822         * doc/posix-functions/wcscoll_l.texi: Likewise.
41823         * doc/posix-functions/wcsdup.texi: Likewise.
41824         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41825         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41826         * doc/posix-functions/wcsnlen.texi: Likewise.
41827         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41828         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41829         * doc/posix-functions/wctrans_l.texi: Likewise.
41830         * doc/posix-functions/wctype_l.texi: Likewise.
41831         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41832         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41833         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41834         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41835         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41836         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41837         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41838         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41839         * doc/glibc-functions/wcschrnul.texi: Likewise.
41840         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41841         * doc/glibc-functions/wcstod_l.texi: Likewise.
41842         * doc/glibc-functions/wcstof_l.texi: Likewise.
41843         * doc/glibc-functions/wcstol_l.texi: Likewise.
41844         * doc/glibc-functions/wcstold_l.texi: Likewise.
41845         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41846         * doc/glibc-functions/wcstoq.texi: Likewise.
41847         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41848         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41849         * doc/glibc-functions/wcstouq.texi: Likewise.
41850         * doc/glibc-functions/wmempcpy.texi: Likewise.
41851
41852 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41853             Eric Blake  <ebb9@byu.net>
41854             Paolo Bonzini  <bonzini@gnu.org>
41855             Bruno Haible  <bruno@clisp.org>
41856
41857         Make c-stack work on Haiku.
41858         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41859         (c_stack_action): Use SA_ONSTACK flag.
41860
41861 2008-12-22  Bruno Haible  <bruno@clisp.org>
41862
41863         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41864
41865 2008-12-22  Bruno Haible  <bruno@clisp.org>
41866
41867         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41868         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41869         being overridden.
41870         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41871         New macros.
41872         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41874         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41875         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41876
41877 2008-12-22  Bruno Haible  <bruno@clisp.org>
41878
41879         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41880         from test code.
41881
41882 2008-12-22  Eric Blake  <ebb9@byu.net>
41883
41884         Avoid gcc warnings on cygwin.
41885         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41886         Avoid unused variable.
41887         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41888         Likewise.
41889
41890 2008-12-22  Bruno Haible  <bruno@clisp.org>
41891
41892         Remove HAVE_MBRTOWC conditionals.
41893         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41894         (mbscasecmp): Assume mbrtowc function.
41895         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41896         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41897         * lib/mbschr.c: Include mbuiter.h unconditionally.
41898         (mbschr): Assume mbrtowc function.
41899         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41900         (mbscspn): Assume mbrtowc function.
41901         * lib/mbslen.c: Include mbuiter.h unconditionally.
41902         (mbslen): Assume mbrtowc function.
41903         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41904         (mbsncasecmp): Assume mbrtowc function.
41905         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41906         (mbsnlen): Assume mbrtowc function.
41907         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41908         (mbspbrk): Assume mbrtowc function.
41909         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41910         (mbspcasecmp): Assume mbrtowc function.
41911         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41912         (mbsrchr): Assume mbrtowc function.
41913         * lib/mbssep.c: Include mbuiter.h unconditionally.
41914         (mbssep): Assume mbrtowc function.
41915         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41916         (mbsspn): Assume mbrtowc function.
41917         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41918         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41919         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41920         (mbstok_r): Assume mbrtowc function.
41921         * lib/propername.c: Include mbuiter.h unconditionally.
41922         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41923         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41924         (trim2): Assume mbrtowc function.
41925         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41926         (mbsnwidth): Assume mbrtowc function.
41927         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41928         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41929         fallback definitions.
41930         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41931
41932 2008-12-22  Bruno Haible  <bruno@clisp.org>
41933
41934         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41935
41936 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41937
41938         * modules/regex: Request emulations for the mb*/wc* functions we need.
41939         * m4/regex.m4: Don't look for those functions here.
41940         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41941
41942 2008-12-22  Bruno Haible  <bruno@clisp.org>
41943
41944         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41945
41946 2008-12-21  Bruno Haible  <bruno@clisp.org>
41947
41948         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41949         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41950         (Include): Remove conditionalization.
41951         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41952         (Include): Remove conditionalization.
41953         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41954         (Include): Remove conditionalization.
41955         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41956         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41957         * NEWS: Mention the change.
41958         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41959         via Sergey Poznyakoff <gray@gnu.org.ua>.
41960
41961 2008-12-21  Bruno Haible  <bruno@clisp.org>
41962
41963         * MODULES.html.sh (Extended multibyte and wide character utilities
41964         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41965         wcrtomb, wcsrtombs.
41966         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41967         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41968         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41969         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41970
41971 2008-12-21  Bruno Haible  <bruno@clisp.org>
41972
41973         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41974
41975 2008-12-21  Bruno Haible  <bruno@clisp.org>
41976
41977         * modules/wcsnrtombs-tests: New file.
41978         * tests/test-wcsnrtombs1.sh: New file.
41979         * tests/test-wcsnrtombs2.sh: New file.
41980         * tests/test-wcsnrtombs3.sh: New file.
41981         * tests/test-wcsnrtombs4.sh: New file.
41982         * tests/test-wcsnrtombs.c: New file.
41983
41984         New module 'wcsnrtombs'.
41985         * lib/wchar.in.h (wcsnrtombs): New declaration.
41986         * lib/wcsnrtombs.c: New file.
41987         * lib/wcsrtombs-state.c: New file.
41988         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41989         (internal_state): Remove variable.
41990         * m4/wcsnrtombs.m4: New file.
41991         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41992         compilation units.
41993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41994         HAVE_WCSNRTOMBS.
41995         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41996         HAVE_WCSNRTOMBS.
41997         * modules/wcsnrtombs: New file.
41998         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41999         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42000
42001 2008-12-21  Bruno Haible  <bruno@clisp.org>
42002
42003         * modules/wcsrtombs-tests: New file.
42004         * tests/test-wcsrtombs1.sh: New file.
42005         * tests/test-wcsrtombs2.sh: New file.
42006         * tests/test-wcsrtombs3.sh: New file.
42007         * tests/test-wcsrtombs4.sh: New file.
42008         * tests/test-wcsrtombs.c: New file.
42009
42010         New module 'wcsrtombs'.
42011         * lib/wchar.in.h (wcsrtombs): New declaration.
42012         * lib/wcsrtombs.c: New file.
42013         * m4/wcsrtombs.m4: New file.
42014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42015         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42017         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42018         * modules/wcsrtombs: New file.
42019         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42020         bugs.
42021
42022 2008-12-21  Bruno Haible  <bruno@clisp.org>
42023
42024         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42025         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42027         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42028         if not correct.
42029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42030         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42031         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42032         m4/locale-zh.m4, m4/codeset.m4.
42033         * doc/posix-functions/wcrtomb.texi: Document the bug.
42034
42035 2008-12-21  Bruno Haible  <bruno@clisp.org>
42036
42037         Work around a btowc() bug on IRIX 6.5.
42038         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42039         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42040         REPLACE_WTOBC if not.
42041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42042         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42043         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42044
42045 2008-12-21  Bruno Haible  <bruno@clisp.org>
42046
42047         * modules/wcrtomb-tests: New file.
42048         * tests/test-wcrtomb.sh: New file.
42049         * tests/test-wcrtomb.c: New file.
42050
42051         New module 'wcrtomb'.
42052         * lib/wchar.in.h (wcrtomb): New declaration.
42053         * lib/wcrtomb.c: New file.
42054         * m4/wcrtomb.m4: New file.
42055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42056         HAVE_WCRTOMB.
42057         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42058         HAVE_WCRTOMB.
42059         * modules/wcrtomb: New file.
42060         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42061
42062 2008-12-21  Bruno Haible  <bruno@clisp.org>
42063
42064         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42065         * modules/mbsrtowcs (Files): Likewise.
42066         * modules/wctob (Files): Likewise.
42067         * modules/c-strcase-tests (Files): Likewise.
42068         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42069         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42070         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42071         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42072         * modules/vasnprintf-posix-tests (Files): Likewise.
42073
42074 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42075
42076         gitlog-to-changelog: pass all command-line arguments to git-log
42077         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42078         it is sometimes convenient to filter the commits in various ways.
42079         gitlog-to-changelog only allows --since to specify a start date,
42080         but git-log itself supports many other filtering mechanisms.
42081         At the moment, I want to filter by branch name.  Rather than
42082         adding a --branch option to gitlog-to-changelog, it seems more
42083         flexible to simply pass all options directly to git-log and let
42084         git do the work.  Notice that this effectively makes --since a
42085         redundant option for gitlog-to-changelog, but removing it would
42086         require current usage to change since calls would then require
42087         an additional '--'.
42088
42089 2008-12-21  Bruno Haible  <bruno@clisp.org>
42090
42091         * modules/mbsnrtowcs-tests: New file.
42092         * tests/test-mbsnrtowcs1.sh: New file.
42093         * tests/test-mbsnrtowcs2.sh: New file.
42094         * tests/test-mbsnrtowcs3.sh: New file.
42095         * tests/test-mbsnrtowcs4.sh: New file.
42096         * tests/test-mbsnrtowcs.c: New file.
42097
42098         New module 'mbsnrtowcs'.
42099         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42100         * lib/mbsnrtowcs.c: New file.
42101         * lib/mbsrtowcs-state.c: New file.
42102         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42103         (internal_state): Remove variable.
42104         * m4/mbsnrtowcs.m4: New file.
42105         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42106         compilation units.
42107         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42108         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42109         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42110         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42111         * modules/mbsnrtowcs: New file.
42112         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42113         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42114         portability problem.
42115
42116 2008-12-21  Bruno Haible  <bruno@clisp.org>
42117
42118         Work around mbsrtowcs bug.
42119         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42120         (gl_FUNC_MBSRTOWCS): Invoke it.
42121         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42122         m4/locale-zh.m4.
42123         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42124
42125 2008-12-21  Bruno Haible  <bruno@clisp.org>
42126
42127         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42128
42129 2008-12-21  Bruno Haible  <bruno@clisp.org>
42130
42131         Update doc for AIX.
42132         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42133         16-bit wchar_t type.
42134         * doc/posix-functions/btowc.texi: Likewise.
42135         * doc/posix-functions/fgetwc.texi: Likewise.
42136         * doc/posix-functions/fgetws.texi: Likewise.
42137         * doc/posix-functions/fputwc.texi: Likewise.
42138         * doc/posix-functions/fputws.texi: Likewise.
42139         * doc/posix-functions/fwide.texi: Likewise.
42140         * doc/posix-functions/fwprintf.texi: Likewise.
42141         * doc/posix-functions/fwscanf.texi: Likewise.
42142         * doc/posix-functions/getwchar.texi: Likewise.
42143         * doc/posix-functions/getwc.texi: Likewise.
42144         * doc/posix-functions/iswalnum.texi: Likewise.
42145         * doc/posix-functions/iswalpha.texi: Likewise.
42146         * doc/posix-functions/iswblank.texi: Likewise.
42147         * doc/posix-functions/iswcntrl.texi: Likewise.
42148         * doc/posix-functions/iswctype.texi: Likewise.
42149         * doc/posix-functions/iswdigit.texi: Likewise.
42150         * doc/posix-functions/iswgraph.texi: Likewise.
42151         * doc/posix-functions/iswlower.texi: Likewise.
42152         * doc/posix-functions/iswprint.texi: Likewise.
42153         * doc/posix-functions/iswpunct.texi: Likewise.
42154         * doc/posix-functions/iswspace.texi: Likewise.
42155         * doc/posix-functions/iswupper.texi: Likewise.
42156         * doc/posix-functions/iswxdigit.texi: Likewise.
42157         * doc/posix-functions/mbrtowc.texi: Likewise.
42158         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42159         * doc/posix-functions/mbstowcs.texi: Likewise.
42160         * doc/posix-functions/mbtowc.texi: Likewise.
42161         * doc/posix-functions/putwchar.texi: Likewise.
42162         * doc/posix-functions/putwc.texi: Likewise.
42163         * doc/posix-functions/swprintf.texi: Likewise.
42164         * doc/posix-functions/tolower.texi: Likewise.
42165         * doc/posix-functions/toupper.texi: Likewise.
42166         * doc/posix-functions/towctrans.texi: Likewise.
42167         * doc/posix-functions/ungetwc.texi: Likewise.
42168         * doc/posix-functions/vswprintf.texi: Likewise.
42169         * doc/posix-functions/wcrtomb.texi: Likewise.
42170         * doc/posix-functions/wcscat.texi: Likewise.
42171         * doc/posix-functions/wcschr.texi: Likewise.
42172         * doc/posix-functions/wcscmp.texi: Likewise.
42173         * doc/posix-functions/wcscoll.texi: Likewise.
42174         * doc/posix-functions/wcscpy.texi: Likewise.
42175         * doc/posix-functions/wcscspn.texi: Likewise.
42176         * doc/posix-functions/wcsftime.texi: Likewise.
42177         * doc/posix-functions/wcslen.texi: Likewise.
42178         * doc/posix-functions/wcsncat.texi: Likewise.
42179         * doc/posix-functions/wcsncmp.texi: Likewise.
42180         * doc/posix-functions/wcsncpy.texi: Likewise.
42181         * doc/posix-functions/wcspbrk.texi: Likewise.
42182         * doc/posix-functions/wcsrchr.texi: Likewise.
42183         * doc/posix-functions/wcsrtombs.texi: Likewise.
42184         * doc/posix-functions/wcsspn.texi: Likewise.
42185         * doc/posix-functions/wcsstr.texi: Likewise.
42186         * doc/posix-functions/wcstod.texi: Likewise.
42187         * doc/posix-functions/wcstof.texi: Likewise.
42188         * doc/posix-functions/wcstoimax.texi: Likewise.
42189         * doc/posix-functions/wcstok.texi: Likewise.
42190         * doc/posix-functions/wcstold.texi: Likewise.
42191         * doc/posix-functions/wcstoll.texi: Likewise.
42192         * doc/posix-functions/wcstol.texi: Likewise.
42193         * doc/posix-functions/wcstombs.texi: Likewise.
42194         * doc/posix-functions/wcstoull.texi: Likewise.
42195         * doc/posix-functions/wcstoul.texi: Likewise.
42196         * doc/posix-functions/wcstoumax.texi: Likewise.
42197         * doc/posix-functions/wcswidth.texi: Likewise.
42198         * doc/posix-functions/wcsxfrm.texi: Likewise.
42199         * doc/posix-functions/wctob.texi: Likewise.
42200         * doc/posix-functions/wctomb.texi: Likewise.
42201         * doc/posix-functions/wctrans.texi: Likewise.
42202         * doc/posix-functions/wctype.texi: Likewise.
42203         * doc/posix-functions/wcwidth.texi: Likewise.
42204         * doc/posix-functions/wmemchr.texi: Likewise.
42205         * doc/posix-functions/wmemcmp.texi: Likewise.
42206         * doc/posix-functions/wmemcpy.texi: Likewise.
42207         * doc/posix-functions/wmemmove.texi: Likewise.
42208         * doc/posix-functions/wmemset.texi: Likewise.
42209         * doc/posix-functions/wprintf.texi: Likewise.
42210         * doc/posix-functions/wscanf.texi: Likewise.
42211
42212 2008-12-21  Bruno Haible  <bruno@clisp.org>
42213
42214         Update doc for HP-UX 11.11.
42215         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42216         in HP-UX version 11.00, not in all versions of HP-UX 11.
42217         * doc/posix-functions/fwide.texi: Likewise.
42218         * doc/posix-functions/fwprintf.texi: Likewise.
42219         * doc/posix-functions/fwscanf.texi: Likewise.
42220         * doc/posix-functions/inet_ntop.texi: Likewise.
42221         * doc/posix-functions/inet_pton.texi: Likewise.
42222         * doc/posix-functions/mbrlen.texi: Likewise.
42223         * doc/posix-functions/mbrtowc.texi: Likewise.
42224         * doc/posix-functions/mbsinit.texi: Likewise.
42225         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42226         * doc/posix-functions/swprintf.texi: Likewise.
42227         * doc/posix-functions/swscanf.texi: Likewise.
42228         * doc/posix-functions/towctrans.texi: Likewise.
42229         * doc/posix-functions/vfwprintf.texi: Likewise.
42230         * doc/posix-functions/vswprintf.texi: Likewise.
42231         * doc/posix-functions/vwprintf.texi: Likewise.
42232         * doc/posix-functions/wcrtomb.texi: Likewise.
42233         * doc/posix-functions/wcsrtombs.texi: Likewise.
42234         * doc/posix-functions/wcsstr.texi: Likewise.
42235         * doc/posix-functions/wctob.texi: Likewise.
42236         * doc/posix-functions/wctrans.texi: Likewise.
42237         * doc/posix-functions/wmemchr.texi: Likewise.
42238         * doc/posix-functions/wmemcmp.texi: Likewise.
42239         * doc/posix-functions/wmemcpy.texi: Likewise.
42240         * doc/posix-functions/wmemmove.texi: Likewise.
42241         * doc/posix-functions/wmemset.texi: Likewise.
42242         * doc/posix-functions/wprintf.texi: Likewise.
42243         * doc/posix-functions/wscanf.texi: Likewise.
42244
42245 2008-12-21  Bruno Haible  <bruno@clisp.org>
42246
42247         Work around a portability problem.
42248         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42249         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42250
42251 2008-12-20  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42254         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42255         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42257         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42258
42259         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42260         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42261         set.
42262         (GNULIB_defined_mbstate_t): New macro.
42263         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42264         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42265         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42266         reuses the system's mbrtowc function but works around the bugs.
42267         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42268         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42269         macros.
42270         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42271         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42272         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42273         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42274         REPLACE_MBSINIT if mbsinit needs to be overridden.
42275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42276         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42277         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42278         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42279         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42280         m4/locale-zh.m4.
42281         (Depends): Add mbsinit.
42282         * modules/mbsinit (Depends): Add mbrtowc.
42283         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42284
42285 2008-12-20  Bruno Haible  <bruno@clisp.org>
42286
42287         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42288         so that there are no conversion errors on AIX.
42289         * tests/test-mbsrtowcs.c (main): LIkewise.
42290
42291 2008-12-20  Bruno Haible  <bruno@clisp.org>
42292
42293         Work around wctob bug on Solaris <= 9.
42294         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42295         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42296         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42297         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42298         * modules/wctob (Files): Add m4/locale-fr.m4.
42299         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42300
42301 2008-12-20  Bruno Haible  <bruno@clisp.org>
42302
42303         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42304         /dev/null.
42305         * tests/test-select-in.sh: Likewise.
42306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42307
42308 2008-12-20  Bruno Haible  <bruno@clisp.org>
42309
42310         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42311         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42312         Cygwin 1.5.x.
42313
42314 2008-12-20  Bruno Haible  <bruno@clisp.org>
42315
42316         Ensure mbstate_t is defined on HP-UX 11.11.
42317         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42318         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42319         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42320         AC_USE_SYSTEM_EXTENSIONS.
42321         * modules/fnmatch (Depends-on): Add extensions.
42322         * modules/mbrlen (Depends-on): Likewise.
42323         * modules/mbrtowc (Depends-on): Likewise.
42324         * modules/mbsinit (Depends-on): Likewise.
42325         * modules/mbsrtowcs (Depends-on): Likewise.
42326         * modules/mbswidth (Depends-on): Likewise.
42327         * modules/quotearg (Depends-on): Likewise.
42328         * modules/strftime (Depends-on): Likewise.
42329
42330 2008-12-20  Bruno Haible  <bruno@clisp.org>
42331
42332         Ensure wctob is declared on IRIX 6.5.
42333         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42334         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42335         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42337         of HAVE_WCTOB.
42338         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42339         HAVE_WCTOB.
42340         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42341
42342 2008-12-19  Bruno Haible  <bruno@clisp.org>
42343
42344         * modules/mbsrtowcs-tests: New file.
42345         * tests/test-mbsrtowcs1.sh: New file.
42346         * tests/test-mbsrtowcs2.sh: New file.
42347         * tests/test-mbsrtowcs3.sh: New file.
42348         * tests/test-mbsrtowcs4.sh: New file.
42349         * tests/test-mbsrtowcs.c: New file.
42350
42351         New module 'mbsrtowcs'.
42352         * lib/wchar.in.h (mbsrtowcs): New declaration.
42353         * lib/mbsrtowcs.c: New file.
42354         * m4/mbsrtowcs.m4: New file.
42355         * modules/mbsrtowcs: New file.
42356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42357         HAVE_MBSRTOWCS.
42358         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42359         HAVE_MBSRTOWCS.
42360         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42361
42362 2008-12-19  Bruno Haible  <bruno@clisp.org>
42363
42364         New module 'mbrlen'.
42365         * lib/wchar.in.h (mbrlen): New declaration.
42366         * lib/mbrlen.c: New file.
42367         * m4/mbrlen.m4: New file.
42368         * modules/mbrlen: New file.
42369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42370         HAVE_MBRLEN.
42371         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42372         HAVE_MBRLEN.
42373         * doc/posix-functions/mbrlen.texi: Document the new module.
42374
42375 2008-12-19  Bruno Haible  <bruno@clisp.org>
42376
42377         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42378         * modules/mbrtowc (Depends-on): Add verify.
42379         Suggested by Paul Eggert.
42380
42381 2008-12-18  Bruno Haible  <bruno@clisp.org>
42382
42383         * modules/mbsinit-tests: New file.
42384         * tests/test-mbsinit.sh: New file.
42385         * tests/test-mbsinit.c: New file.
42386
42387 2008-12-18  Bruno Haible  <bruno@clisp.org>
42388
42389         * modules/mbrtowc-tests: New file.
42390         * tests/test-mbrtowc1.sh: New file.
42391         * tests/test-mbrtowc2.sh: New file.
42392         * tests/test-mbrtowc3.sh: New file.
42393         * tests/test-mbrtowc4.sh: New file.
42394         * tests/test-mbrtowc.c: New file.
42395
42396         New module 'mbrtowc'.
42397         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42398         mbsinit and mbrtowc.
42399         (mbrtowc): New declaration.
42400         * lib/mbrtowc.c: New file.
42401         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42402         * modules/mbrtowc: New file.
42403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42404         HAVE_MBRTOWC.
42405         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42406         HAVE_MBRTOWC.
42407         * doc/posix-functions/mbrtowc.texi: Document the new module.
42408
42409 2008-12-18  Bruno Haible  <bruno@clisp.org>
42410
42411         New module 'wctob'.
42412         * lib/wchar.in.h (wctob): New declaration.
42413         * lib/wctob.c: New file.
42414         * m4/wctob.m4: New file.
42415         * modules/wctob: New file.
42416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42417         HAVE_WCTOB.
42418         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42419         * doc/posix-functions/wctob.texi: Document the new module.
42420
42421 2008-12-18  Bruno Haible  <bruno@clisp.org>
42422
42423         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42424         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42425
42426 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42427
42428         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42429         G. Christensen" <tgc@jupiterrise.com>.
42430
42431         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42432         G. Christensen" <tgc@jupiterrise.com>.
42433
42434         * lib/flock.c: Need to include string.h.  Reported by "Tom
42435         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42436         <ebb9@byu.net>.
42437
42438 2008-12-18  Bruno Haible  <bruno@clisp.org>
42439
42440         * m4/locale-ja.m4: New file, from GNU gettext.
42441
42442 2008-12-17  Bruno Haible  <bruno@clisp.org>
42443
42444         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42445         Suggested by Eric Blake.
42446
42447 2008-12-17  Bruno Haible  <bruno@clisp.org>
42448
42449         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42450
42451 2008-12-17  Bruno Haible  <bruno@clisp.org>
42452
42453         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42454         * modules/mbsinit (Depends-on): Add verify.
42455         Suggested by Paul Eggert.
42456
42457 2008-12-17  Bruno Haible  <bruno@clisp.org>
42458
42459         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42460         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42461         gl_FUNC_MBRTOWC.
42462         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42463         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42464         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42465         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42466         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42467         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42468         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42469         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42470         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42471         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42472         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42473         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42474         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42475         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42476         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42477         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42478         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42479         * modules/trim (configure.ac): Likewise.
42480
42481 2008-12-17  Bruno Haible  <bruno@clisp.org>
42482
42483         * modules/btowc-tests: New file.
42484         * tests/test-btowc1.sh: New file.
42485         * tests/test-btowc2.sh: New file.
42486         * tests/test-btowc.c: New file.
42487
42488         New module 'btowc'.
42489         * lib/wchar.in.h (btowc): New declaration.
42490         * lib/btowc.c: New file.
42491         * m4/btowc.m4: New file.
42492         * modules/btowc: New file.
42493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42494         HAVE_BTOWC.
42495         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42496         * doc/posix-functions/btowc.texi: Document the new module.
42497
42498 2008-12-17  Bruno Haible  <bruno@clisp.org>
42499
42500         New module 'mbsinit'.
42501         * lib/wchar.in.h (mbsinit): New declaration.
42502         * lib/mbsinit.c: New file.
42503         * m4/mbsinit.m4: New file.
42504         * modules/mbsinit: New file.
42505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42506         HAVE_MBSINIT.
42507         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42508         HAVE_MBSINIT.
42509         * doc/posix-functions/mbsinit.texi: Document the new module.
42510
42511 2008-12-16  Bruno Haible  <bruno@clisp.org>
42512
42513         * lib/unistd.in.h: Add comment.
42514         * tests/test-environ.c: Don't include <stdlib.h>.
42515
42516 2008-12-16  Bruno Haible  <bruno@clisp.org>
42517
42518         * lib/parse-duration.h (parse_duration): Document return value
42519         convention.
42520         * lib/parse-duration.c: Include specification header first. Add
42521         comments.
42522         (_): Remove macro.
42523         (parse_year_month_day, parse_hour_minute_second): Move side effects
42524         outside of strchr call.
42525         (parse_non_iso8601): Move side effects outside of isspace call.
42526         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42527         call.
42528
42529 2008-12-16  Bruno Haible  <bruno@clisp.org>
42530
42531         * tests/test-parse-duration.sh: Produce no output when the test
42532         succeeds.
42533
42534 2008-12-16  Bruno Haible  <bruno@clisp.org>
42535
42536         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42537         expressions.
42538
42539 2008-12-15  Bruno Haible  <bruno@clisp.org>
42540
42541         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42542         * doc/glibc-functions/flistxattr.texi: Likewise.
42543         * doc/glibc-functions/fopencookie.texi: Likewise.
42544         * doc/glibc-functions/fremovexattr.texi: Likewise.
42545         * doc/glibc-functions/fsetxattr.texi: Likewise.
42546         * doc/glibc-functions/getxattr.texi: Likewise.
42547         * doc/glibc-functions/lgetxattr.texi: Likewise.
42548         * doc/glibc-functions/listxattr.texi: Likewise.
42549         * doc/glibc-functions/llistxattr.texi: Likewise.
42550         * doc/glibc-functions/lremovexattr.texi: Likewise.
42551         * doc/glibc-functions/lsetxattr.texi: Likewise.
42552         * doc/glibc-functions/removexattr.texi: Likewise.
42553         * doc/glibc-functions/setxattr.texi: Likewise.
42554         * doc/posix-functions/open_memstream.texi: Likewise.
42555
42556 2008-12-15  Eric Blake  <ebb9@byu.net>
42557
42558         Update doc for cygwin 1.7.
42559         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42560         functions.
42561         * doc/posix-functions/fchmodat.texi: Likewise.
42562         * doc/posix-functions/fchownat.texi: Likewise.
42563         * doc/posix-functions/fdopendir.texi: Likewise.
42564         * doc/posix-functions/fmemopen.texi: Likewise.
42565         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42566         * doc/posix-functions/fstatat.texi: Likewise.
42567         * doc/posix-functions/futimens.texi: Likewise.
42568         * doc/posix-functions/gai_strerror.texi: Likewise.
42569         * doc/posix-functions/getaddrinfo.texi: Likewise.
42570         * doc/posix-functions/getnameinfo.texi: Likewise.
42571         * doc/posix-functions/if_freenameindex.texi: Likewise.
42572         * doc/posix-functions/if_indextoname.texi: Likewise.
42573         * doc/posix-functions/if_nameindex.texi: Likewise.
42574         * doc/posix-functions/if_nametoindex.texi: Likewise.
42575         * doc/posix-functions/insque.texi: Likewise.
42576         * doc/posix-functions/linkat.texi: Likewise.
42577         * doc/posix-functions/llrint.texi: Likewise.
42578         * doc/posix-functions/llrintf.texi: Likewise.
42579         * doc/posix-functions/llrintl.texi: Likewise.
42580         * doc/posix-functions/lockf.texi: Likewise.
42581         * doc/posix-functions/lrintl.texi: Likewise.
42582         * doc/posix-functions/mkdirat.texi: Likewise.
42583         * doc/posix-functions/mkfifoat.texi: Likewise.
42584         * doc/posix-functions/mknodat.texi: Likewise.
42585         * doc/posix-functions/mq_close.texi: Likewise.
42586         * doc/posix-functions/mq_getattr.texi: Likewise.
42587         * doc/posix-functions/mq_notify.texi: Likewise.
42588         * doc/posix-functions/mq_open.texi: Likewise.
42589         * doc/posix-functions/mq_receive.texi: Likewise.
42590         * doc/posix-functions/mq_send.texi: Likewise.
42591         * doc/posix-functions/mq_setattr.texi: Likewise.
42592         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42593         * doc/posix-functions/mq_timedsend.texi: Likewise.
42594         * doc/posix-functions/mq_unlink.texi: Likewise.
42595         * doc/posix-functions/open_memstream.texi: Likewise.
42596         * doc/posix-functions/openat.texi: Likewise.
42597         * doc/posix-functions/posix_fadvise.texi: Likewise.
42598         * doc/posix-functions/posix_fallocate.texi: Likewise.
42599         * doc/posix-functions/posix_madvise.texi: Likewise.
42600         * doc/posix-functions/posix_memalign.texi: Likewise.
42601         * doc/posix-functions/posix_openpt.texi: Likewise.
42602         * doc/posix-functions/readlinkat.texi: Likewise.
42603         * doc/posix-functions/remque.texi: Likewise.
42604         * doc/posix-functions/renameat.texi: Likewise.
42605         * doc/posix-functions/rintl.texi: Likewise.
42606         * doc/posix-functions/sem_unlink.texi: Likewise.
42607         * doc/posix-functions/shm_open.texi: Likewise.
42608         * doc/posix-functions/shm_unlink.texi: Likewise.
42609         * doc/posix-functions/signgam.texi: Likewise.
42610         * doc/posix-functions/sigset.texi: Likewise.
42611         * doc/posix-functions/stpcpy.texi: Likewise.
42612         * doc/posix-functions/stpncpy.texi: Likewise.
42613         * doc/posix-functions/strerror.texi: Likewise.
42614         * doc/posix-functions/strtod.texi: Likewise.
42615         * doc/posix-functions/symlinkat.texi: Likewise.
42616         * doc/posix-functions/unlinkat.texi: Likewise.
42617         * doc/posix-functions/utimensat.texi: Likewise.
42618         * doc/glibc-functions/bindresvport.texi: Likewise.
42619         * doc/glibc-functions/dn_expand.texi: Likewise.
42620         * doc/glibc-functions/exp10.texi: Likewise.
42621         * doc/glibc-functions/exp10f.texi: Likewise.
42622         * doc/glibc-functions/fgetxattr.texi: Likewise.
42623         * doc/glibc-functions/flistxattr.texi: Likewise.
42624         * doc/glibc-functions/fopencookie.texi: Likewise.
42625         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42626         * doc/glibc-functions/fremovexattr.texi: Likewise.
42627         * doc/glibc-functions/fsetxattr.texi: Likewise.
42628         * doc/glibc-functions/getifaddrs.texi: Likewise.
42629         * doc/glibc-functions/getxattr.texi: Likewise.
42630         * doc/glibc-functions/lgetxattr.texi: Likewise.
42631         * doc/glibc-functions/listxattr.texi: Likewise.
42632         * doc/glibc-functions/llistxattr.texi: Likewise.
42633         * doc/glibc-functions/lremovexattr.texi: Likewise.
42634         * doc/glibc-functions/lsetxattr.texi: Likewise.
42635         * doc/glibc-functions/pow10.texi: Likewise.
42636         * doc/glibc-functions/pow10f.texi: Likewise.
42637         * doc/glibc-functions/rcmd_af.texi: Likewise.
42638         * doc/glibc-functions/removexattr.texi: Likewise.
42639         * doc/glibc-functions/res_init.texi: Likewise.
42640         * doc/glibc-functions/res_mkquery.texi: Likewise.
42641         * doc/glibc-functions/res_query.texi: Likewise.
42642         * doc/glibc-functions/res_querydomain.texi: Likewise.
42643         * doc/glibc-functions/res_send.texi: Likewise.
42644         * doc/glibc-functions/rresvport_af.texi: Likewise.
42645         * doc/glibc-functions/setxattr.texi: Likewise.
42646         * doc/glibc-functions/strcasestr.texi: Likewise.
42647
42648 2008-12-15  Bruno Haible  <bruno@clisp.org>
42649
42650         Fix compilation error on OSF/1 4.0.
42651         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42652         <sys/time.h>, simply delegate to the system header.
42653         Reported by Daniel Richard G. <oss@teragram.com>.
42654
42655 2008-12-15  Bruno Haible  <bruno@clisp.org>
42656
42657         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42658         * doc/posix-functions/fchmodat.texi: Likewise.
42659         * doc/posix-functions/fchownat.texi: Likewise.
42660         * doc/posix-functions/fdopendir.texi: Likewise.
42661         * doc/posix-functions/fstatat.texi: Likewise.
42662         * doc/posix-functions/mkdirat.texi: Likewise.
42663         * doc/posix-functions/unlinkat.texi: Likewise.
42664
42665 2008-12-14  Bruno Haible  <bruno@clisp.org>
42666
42667         Update doc for POSIX:2008.
42668         * doc/posix-functions/faccessat.texi: New file.
42669         * doc/posix-functions/fchmodat.texi: New file.
42670         * doc/posix-functions/fchownat.texi: New file.
42671         * doc/posix-functions/fdopendir.texi: New file.
42672         * doc/posix-functions/fstatat.texi: New file.
42673         * doc/posix-functions/futimens.texi: New file.
42674         * doc/posix-functions/linkat.texi: New file.
42675         * doc/posix-functions/mkdirat.texi: New file.
42676         * doc/posix-functions/mkfifoat.texi: New file.
42677         * doc/posix-functions/mknodat.texi: New file.
42678         * doc/posix-functions/open_wmemstream.texi: New file.
42679         * doc/posix-functions/openat.texi: New file.
42680         * doc/posix-functions/psiginfo.texi: New file.
42681         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42682         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42683         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42684         * doc/posix-functions/readlinkat.texi: New file.
42685         * doc/posix-functions/renameat.texi: New file.
42686         * doc/posix-functions/strerror_l.texi: New file.
42687         * doc/posix-functions/symlinkat.texi: New file.
42688         * doc/posix-functions/unlinkat.texi: New file.
42689         * doc/posix-functions/utimensat.texi: New file.
42690         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42691
42692 2008-12-14  Bruno Haible  <bruno@clisp.org>
42693
42694         Update doc for POSIX:2008.
42695         * doc/posix-functions/alphasort.texi: Renamed from
42696         doc/glibc-functions/alphasort.texi.
42697         * doc/posix-functions/dirfd.texi: Renamed from
42698         doc/glibc-functions/dirfd.texi.
42699         * doc/posix-functions/dprintf.texi: Renamed from
42700         doc/glibc-functions/dprintf.texi.
42701         * doc/posix-functions/duplocale.texi: Renamed from
42702         doc/glibc-functions/duplocale.texi.
42703         * doc/posix-functions/fexecve.texi: Renamed from
42704         doc/glibc-functions/fexecve.texi.
42705         * doc/posix-functions/fmemopen.texi: Renamed from
42706         doc/glibc-functions/fmemopen.texi.
42707         * doc/posix-functions/freelocale.texi: Renamed from
42708         doc/glibc-functions/freelocale.texi.
42709         * doc/posix-functions/getdate_err.texi: Renamed from
42710         doc/glibc-functions/getdate_err.texi.
42711         * doc/posix-functions/isalnum_l.texi: Renamed from
42712         doc/glibc-functions/isalnum_l.texi.
42713         * doc/posix-functions/isalpha_l.texi: Renamed from
42714         doc/glibc-functions/isalpha_l.texi.
42715         * doc/posix-functions/isblank_l.texi: Renamed from
42716         doc/glibc-functions/isblank_l.texi.
42717         * doc/posix-functions/iscntrl_l.texi: Renamed from
42718         doc/glibc-functions/iscntrl_l.texi.
42719         * doc/posix-functions/isdigit_l.texi: Renamed from
42720         doc/glibc-functions/isdigit_l.texi.
42721         * doc/posix-functions/isgraph_l.texi: Renamed from
42722         doc/glibc-functions/isgraph_l.texi.
42723         * doc/posix-functions/islower_l.texi: Renamed from
42724         doc/glibc-functions/islower_l.texi.
42725         * doc/posix-functions/isprint_l.texi: Renamed from
42726         doc/glibc-functions/isprint_l.texi.
42727         * doc/posix-functions/ispunct_l.texi: Renamed from
42728         doc/glibc-functions/ispunct_l.texi.
42729         * doc/posix-functions/isspace_l.texi: Renamed from
42730         doc/glibc-functions/isspace_l.texi.
42731         * doc/posix-functions/isupper_l.texi: Renamed from
42732         doc/glibc-functions/isupper_l.texi.
42733         * doc/posix-functions/iswalnum_l.texi: Renamed from
42734         doc/glibc-functions/iswalnum_l.texi.
42735         * doc/posix-functions/iswalpha_l.texi: Renamed from
42736         doc/glibc-functions/iswalpha_l.texi.
42737         * doc/posix-functions/iswblank_l.texi: Renamed from
42738         doc/glibc-functions/iswblank_l.texi.
42739         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42740         doc/glibc-functions/iswcntrl_l.texi.
42741         * doc/posix-functions/iswctype_l.texi: Renamed from
42742         doc/glibc-functions/iswctype_l.texi.
42743         * doc/posix-functions/iswdigit_l.texi: Renamed from
42744         doc/glibc-functions/iswdigit_l.texi.
42745         * doc/posix-functions/iswgraph_l.texi: Renamed from
42746         doc/glibc-functions/iswgraph_l.texi.
42747         * doc/posix-functions/iswlower_l.texi: Renamed from
42748         doc/glibc-functions/iswlower_l.texi.
42749         * doc/posix-functions/iswprint_l.texi: Renamed from
42750         doc/glibc-functions/iswprint_l.texi.
42751         * doc/posix-functions/iswpunct_l.texi: Renamed from
42752         doc/glibc-functions/iswpunct_l.texi.
42753         * doc/posix-functions/iswspace_l.texi: Renamed from
42754         doc/glibc-functions/iswspace_l.texi.
42755         * doc/posix-functions/iswupper_l.texi: Renamed from
42756         doc/glibc-functions/iswupper_l.texi.
42757         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42758         doc/glibc-functions/iswxdigit_l.texi.
42759         * doc/posix-functions/isxdigit_l.texi: Renamed from
42760         doc/glibc-functions/isxdigit_l.texi.
42761         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42762         doc/glibc-functions/mbsnrtowcs.texi.
42763         * doc/posix-functions/mkdtemp.texi: Renamed from
42764         doc/glibc-functions/mkdtemp.texi.
42765         * doc/posix-functions/newlocale.texi: Renamed from
42766         doc/glibc-functions/newlocale.texi.
42767         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42768         doc/glibc-functions/nl_langinfo_l.texi.
42769         * doc/posix-functions/open_memstream.texi: Renamed from
42770         doc/glibc-functions/open_memstream.texi.
42771         * doc/posix-functions/opterr.texi: Renamed from
42772         doc/glibc-functions/opterr.texi.
42773         * doc/posix-functions/optind.texi: Renamed from
42774         doc/glibc-functions/optind.texi.
42775         * doc/posix-functions/optopt.texi: Renamed from
42776         doc/glibc-functions/optopt.texi.
42777         * doc/posix-functions/psignal.texi: Renamed from
42778         doc/glibc-functions/psignal.texi.
42779         * doc/posix-functions/scandir.texi: Renamed from
42780         doc/glibc-functions/scandir.texi.
42781         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42782         doc/glibc-functions/sched_get_priority_min.texi.
42783         * doc/posix-functions/signgam.texi: Renamed from
42784         doc/glibc-functions/signgam.texi.
42785         * doc/posix-functions/stpcpy.texi: Renamed from
42786         doc/glibc-functions/stpcpy.texi.
42787         * doc/posix-functions/stpncpy.texi: Renamed from
42788         doc/glibc-functions/stpncpy.texi.
42789         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42790         doc/glibc-functions/strcasecmp_l.texi.
42791         * doc/posix-functions/strcoll_l.texi: Renamed from
42792         doc/glibc-functions/strcoll_l.texi.
42793         * doc/posix-functions/strfmon_l.texi: Renamed from
42794         doc/glibc-functions/strfmon_l.texi.
42795         * doc/posix-functions/strftime_l.texi: Renamed from
42796         doc/glibc-functions/strftime_l.texi.
42797         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42798         doc/glibc-functions/strncasecmp_l.texi.
42799         * doc/posix-functions/strndup.texi: Renamed from
42800         doc/glibc-functions/strndup.texi.
42801         * doc/posix-functions/strnlen.texi: Renamed from
42802         doc/glibc-functions/strnlen.texi.
42803         * doc/posix-functions/strsignal.texi: Renamed from
42804         doc/glibc-functions/strsignal.texi.
42805         * doc/posix-functions/strxfrm_l.texi: Renamed from
42806         doc/glibc-functions/strxfrm_l.texi.
42807         * doc/posix-functions/timer_gettime.texi: Renamed from
42808         doc/glibc-functions/timer_gettime.texi.
42809         * doc/posix-functions/tolower_l.texi: Renamed from
42810         doc/glibc-functions/tolower_l.texi.
42811         * doc/posix-functions/toupper_l.texi: Renamed from
42812         doc/glibc-functions/toupper_l.texi.
42813         * doc/posix-functions/towctrans_l.texi: Renamed from
42814         doc/glibc-functions/towctrans_l.texi.
42815         * doc/posix-functions/towlower_l.texi: Renamed from
42816         doc/glibc-functions/towlower_l.texi.
42817         * doc/posix-functions/towupper_l.texi: Renamed from
42818         doc/glibc-functions/towupper_l.texi.
42819         * doc/posix-functions/uselocale.texi: Renamed from
42820         doc/glibc-functions/uselocale.texi.
42821         * doc/posix-functions/vdprintf.texi: Renamed from
42822         doc/glibc-functions/vdprintf.texi.
42823         * doc/posix-functions/wcpcpy.texi:
42824         Renamed from doc/glibc-functions/wcpcpy.texi.
42825         * doc/posix-functions/wcpncpy.texi: Renamed from
42826         doc/glibc-functions/wcpncpy.texi.
42827         * doc/posix-functions/wcscasecmp.texi: Renamed from
42828         doc/glibc-functions/wcscasecmp.texi.
42829         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42830         doc/glibc-functions/wcscasecmp_l.texi.
42831         * doc/posix-functions/wcscoll_l.texi: Renamed from
42832         doc/glibc-functions/wcscoll_l.texi.
42833         * doc/posix-functions/wcsdup.texi: Renamed from
42834         doc/glibc-functions/wcsdup.texi.
42835         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42836         doc/glibc-functions/wcsncasecmp.texi.
42837         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42838         doc/glibc-functions/wcsncasecmp_l.texi.
42839         * doc/posix-functions/wcsnlen.texi: Renamed from
42840         doc/glibc-functions/wcsnlen.texi.
42841         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42842         doc/glibc-functions/wcsnrtombs.texi.
42843         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42844         doc/glibc-functions/wcsxfrm_l.texi.
42845         * doc/posix-functions/wctrans_l.texi: Renamed from
42846         doc/glibc-functions/wctrans_l.texi.
42847         * doc/posix-functions/wctype_l.texi: Renamed from
42848         doc/glibc-functions/wctype_l.texi.
42849         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42850         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42851         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42852         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42853         these subsections.
42854         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42855         Remove sections.
42856
42857 2008-12-14  Bruno Haible  <bruno@clisp.org>
42858
42859         Update doc for POSIX:2008.
42860         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42861
42862 2008-12-14  Bruno Haible  <bruno@clisp.org>
42863
42864         Update doc for POSIX:2008.
42865         * doc/pastposix-functions/bcmp.texi: Renamed from
42866         doc/posix-functions/bcmp.texi.
42867         * doc/pastposix-functions/bcopy.texi: Renamed from
42868         doc/posix-functions/bcopy.texi.
42869         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42870         doc/posix-functions/bsd_signal.texi.
42871         * doc/pastposix-functions/bzero.texi: Renamed from
42872         doc/posix-functions/bzero.texi.
42873         * doc/pastposix-functions/ecvt.texi: Renamed from
42874         doc/posix-functions/ecvt.texi.
42875         * doc/pastposix-functions/fcvt.texi: Renamed from
42876         doc/posix-functions/fcvt.texi.
42877         * doc/pastposix-functions/ftime.texi: Renamed from
42878         doc/posix-functions/ftime.texi.
42879         * doc/pastposix-functions/gcvt.texi: Renamed from
42880         doc/posix-functions/gcvt.texi.
42881         * doc/pastposix-functions/getcontext.texi: Renamed from
42882         doc/posix-functions/getcontext.texi.
42883         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42884         doc/posix-functions/gethostbyaddr.texi.
42885         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42886         doc/posix-functions/gethostbyname.texi.
42887         * doc/pastposix-functions/getwd.texi: Renamed from
42888         doc/posix-functions/getwd.texi.
42889         * doc/pastposix-functions/h_errno.texi: Renamed from
42890         doc/posix-functions/h_errno.texi.
42891         * doc/pastposix-functions/index.texi: Renamed from
42892         doc/posix-functions/index.texi.
42893         * doc/pastposix-functions/makecontext.texi: Renamed from
42894         doc/posix-functions/makecontext.texi.
42895         * doc/pastposix-functions/mktemp.texi: Renamed from
42896         doc/posix-functions/mktemp.texi.
42897         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42898         doc/posix-functions/pthread_attr_getstackaddr.texi.
42899         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42900         doc/posix-functions/pthread_attr_setstackaddr.texi.
42901         * doc/pastposix-functions/rindex.texi: Renamed from
42902         doc/posix-functions/rindex.texi.
42903         * doc/pastposix-functions/scalb.texi: Renamed from
42904         doc/posix-functions/scalb.texi.
42905         * doc/pastposix-functions/setcontext.texi: Renamed from
42906         doc/posix-functions/setcontext.texi.
42907         * doc/pastposix-functions/swapcontext.texi: Renamed from
42908         doc/posix-functions/swapcontext.texi.
42909         * doc/pastposix-functions/ualarm.texi: Renamed from
42910         doc/posix-functions/ualarm.texi.
42911         * doc/pastposix-functions/usleep.texi: Renamed from
42912         doc/posix-functions/usleep.texi.
42913         * doc/pastposix-functions/vfork.texi: Renamed from
42914         doc/posix-functions/vfork.texi.
42915         * doc/pastposix-functions/wcswcs.texi: Renamed from
42916         doc/posix-functions/wcswcs.texi.
42917         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42918         (Function Substitutes): Update.
42919
42920 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42921
42922         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42923         m4/strerror.m4.
42924
42925 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42926             Bruno Haible  <bruno@clisp.org>
42927
42928         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42929
42930 2008-12-13  Bruno Haible  <bruno@clisp.org>
42931
42932         * modules/strtoull (Depends-on): Remove unistd.
42933
42934 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42935
42936         * modules/strtoull (Depends-on): Add stdlib.
42937
42938 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42939
42940         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42941
42942 2008-12-10  Jim Meyering  <meyering@redhat.com>
42943
42944         gl_ASSERT: don't say assertions are disabled when they're not
42945         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42946         "checking whether to enable assertions... no", when they are in
42947         fact enabled.  This is solely a bug in the output of configure.
42948         In spite of saying "no", NDEBUG was not defined in that case.
42949         Also, as noted by Eric Blake, leave assertions enabled upon
42950         --enable-assert=INVALID.
42951
42952 2008-12-10  Bruno Haible  <bruno@clisp.org>
42953
42954         Change MODULES.html to refer to POSIX:2008 where possible.
42955         * MODULES.html.sh (POSIX2008_URL): New variable.
42956         (posix_headers): Remove sys/timeb, ucontext.
42957         (posix2001_headers): New variable.
42958         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42959         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42960         index, makecontext, mktemp, pthread_attr_getstackaddr,
42961         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42962         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42963         (posix2001_functions): New variable.
42964         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42965         otherwise.
42966
42967 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42968
42969         add missing include to parse-duration.c
42970         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42971         * modules/parse-duration (Depends-on): Add xalloc.
42972
42973         fix sed script reading maint.mk
42974         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42975         (syntax-check-rules): Use it.
42976
42977 2008-12-09  Bruno Haible  <bruno@clisp.org>
42978
42979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42980         MacOS X 10.4/PowerPC.
42981         Reported by Simon Josefsson.
42982
42983 2008-12-08  Jim Meyering  <meyering@redhat.com>
42984
42985         work around mingw's lack of some S_IF definitions
42986         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42987         Reported by Simon Josefsson.
42988
42989 2008-12-08  Bruno Haible  <bruno@clisp.org>
42990
42991         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42992         applied to variables. Needed on MacOS X 10.4/PowerPC.
42993         Reported by Simon Josefsson.
42994
42995 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42996         and Eric Blake  <ebb9@byu.net>
42997
42998         assert: honor --enable-assert
42999         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43000         order to honor --enable-assert, rather than treating it as a
43001         synonym for --disable-assert.
43002
43003 2008-12-08  Jim Meyering  <meyering@redhat.com>
43004
43005         * lib/posixtm.c: Remove now-useless declaration of mktime.
43006
43007         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43008
43009 2008-12-07  Bruno Haible  <bruno@clisp.org>
43010
43011         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43012         test_once): Mark functions as static.
43013         * tests/test-tls.c (test_tls): Likewise.
43014
43015 2008-12-07  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43018         iconv_register_autodetect.
43019
43020 2008-12-07  Jim Meyering  <meyering@redhat.com>
43021
43022         posixtm.c: avoid a warning
43023         * lib/posixtm.c (posixtime): Don't initialize tm0.
43024         It's no longer needed to placate gcc4's -Wuninitialized,
43025         and the attempt to placate would elicit a new warning.
43026
43027         unicodeio.c: mark unused parameters
43028         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43029         (fallback_failure_callback): Likewise.
43030
43031 2008-12-07  Bruno Haible  <bruno@clisp.org>
43032
43033         * gnulib-tool (func_create_testdir): When building the tests
43034         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43035         Reported by Simon Josefsson.
43036
43037 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43038
43039         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43040
43041 2008-12-06  Bruno Haible  <bruno@clisp.org>
43042
43043         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43044         Suggested by Eric Blake.
43045
43046 2008-12-06  Bruno Haible  <bruno@clisp.org>
43047
43048         Fix a c-stack test failure on MacOS X.
43049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43050         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43051         handler for SIGBUS as well.
43052         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43053         install a signal handler for SIGBUS as well.
43054         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43055
43056 2008-12-06  Bruno Haible  <bruno@clisp.org>
43057
43058         Advocacy documentation.
43059         * doc/gnulib-intro.texi (Benefits): New section.
43060         * doc/gnulib.texi: Update.
43061
43062 2008-12-06  Bruno Haible  <bruno@clisp.org>
43063
43064         Document the 'manywarnings' module.
43065         * doc/manywarnings.texi: New file.
43066         * doc/gnulib.texi: Include it.
43067
43068 2008-12-05  Eric Blake  <ebb9@byu.net>
43069
43070         tests: silence some gcc warnings
43071         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43072         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43073         type mismatches.
43074
43075 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43076             Bruno Haible  <bruno@clisp.org>
43077
43078         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43079
43080 2008-11-29  Jim Meyering  <meyering@redhat.com>
43081
43082         unicodeio.c: mark unused parameters
43083         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43084         (fallback_failure_callback): Likewise.
43085
43086         fts: fix a thinko
43087         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43088         (set_stat_type): Return S_IF*-valued "type" directly.
43089         Prompted by James Youngman's spotting a related bug.
43090         Confirmed by further testing through find.
43091
43092         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43093         * lib/fts.c (D_TYPE): Define.
43094         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43095         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43096         (s_ifmt_shift_bits): New function.
43097         (set_stat_type): New function.
43098         (fts_build): When not calling fts_stat, call set_stat_type
43099         to propagate dirent.d_type info to fts_read caller.
43100         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43101         fts_statp->st_mode type information may be valid.
43102
43103 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43104
43105         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43106         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43107         <sds@gnu.org>.
43108
43109 2008-11-20  Bruno Haible  <bruno@clisp.org>
43110
43111         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43112         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43113         INCLUDE_NEXT.
43114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43115         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43116         * modules/math (Makefile.am): Substitute
43117         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43118         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43119
43120 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43121             Bruno Haible  <bruno@clisp.org>
43122
43123         * lib/stdint.in.h: Define all type macros so that their expansion is
43124         a single typedef'ed token. Fixes a compilation failure in Boost which
43125         does "using ::int8_t;".
43126
43127 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43128
43129         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43130         gl_MANYWARN_ALL_GCC.
43131         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43132         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43133         * modules/manywarnings: New file.
43134         * MODULES.html.sh: Mention manywarnings module.
43135
43136 2008-11-18  Bruno Haible  <bruno@clisp.org>
43137
43138         * doc/gnulib-tool.texi (Unit tests): New section.
43139
43140 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43141
43142         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43143         paths like 'lib/po/foo.po'.
43144
43145 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43146
43147         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43148         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43149
43150 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43151
43152         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43153         parameter works.
43154
43155 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43156
43157         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43158
43159 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43160
43161         * modules/parse-duration-tests: New file.
43162         * tests/test-parse-duration.sh: New file.
43163         * tests/test-parse-duration.c: New file.
43164
43165         New module 'parse-duration'.
43166         * lib/parse-duration.h: New file.
43167         * lib/parse-duration.c: New file.
43168         * modules/parse-duration: New file.
43169
43170 2008-11-17  Bruno Haible  <bruno@clisp.org>
43171
43172         * tests/test-select-out.sh: Comment out the first pipe test.
43173         Reported by Simon Josefsson.
43174
43175 2008-11-17  Bruno Haible  <bruno@clisp.org>
43176
43177         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43178         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43179         gl_HOSTENT.
43180
43181 2008-11-17  Bruno Haible  <bruno@clisp.org>
43182
43183         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43184         -lnetwork and -lnet. Needed for Haiku and BeOS.
43185
43186 2008-11-16  Bruno Haible  <bruno@clisp.org>
43187
43188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43189
43190 2008-11-16  Bruno Haible  <bruno@clisp.org>
43191
43192         Avoid test failure on Haiku.
43193         * tests/test-fsync.c: Include <errno.h>.
43194         (main): Don't require that fsync (0) fails.
43195
43196 2008-11-15  Bruno Haible  <bruno@clisp.org>
43197
43198         New module 'hostent'.
43199         * modules/hostent: New file.
43200         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43201
43202 2008-11-15  Bruno Haible  <bruno@clisp.org>
43203
43204         New module 'servent'.
43205         * modules/servent: New file.
43206         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43207
43208 2008-11-15  Bruno Haible  <bruno@clisp.org>
43209
43210         Avoid generating same test program with two different rules.
43211         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43212         test-frexp to test-frexp-nolibm.
43213         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43214         test-frexpl to test-frexpl-nolibm.
43215
43216 2008-11-15  Bruno Haible  <bruno@clisp.org>
43217
43218         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43219         $(FREXPL_LIBM).
43220
43221 2008-11-15  Bruno Haible  <bruno@clisp.org>
43222
43223         * lib/netdb.in.h: Activate the definitions also when the system's
43224         <netdb.h> has 'struct addrinfo'.
43225         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43226         EAI_OVERFLOW or AI_NUMERICSERV.
43227         * doc/posix-headers/netdb.texi: Document the problem.
43228
43229 2008-11-15  Bruno Haible  <bruno@clisp.org>
43230
43231         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43232
43233         Make the 'sched' module work on platforms where <sched.h> exists but
43234         is incomplete (such as Haiku).
43235         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43236         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43237         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43238         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43239         HAVE_STRUCT_SCHED_PARAM.
43240         * modules/sched (Depends-on): Add include_next.
43241         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43242         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43243         * doc/posix-headers/sched.texi: Document the issue.
43244
43245 2008-11-13  Jim Meyering  <meyering@redhat.com>
43246
43247         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43248         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43249         test would fail due to the difference in the Report bugs to ...
43250         line.  The expected address is empty, "<>", while the actual
43251         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43252
43253 2008-11-12  Bruno Haible  <bruno@clisp.org>
43254
43255         lstat: don't compile lstat.c on systems lacking lstat
43256         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43257         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43258         Reported by Daniel P. Berrange via Jim Meyering.
43259
43260 2008-11-12  Jim Meyering  <meyering@redhat.com>
43261
43262         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43263
43264 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43265
43266         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43267         instead.
43268
43269 2008-11-12  Bruno Haible  <bruno@clisp.org>
43270
43271         * lib/unicodeio.c: Include unistr.h.
43272         (utf8_wctomb): Remove function.
43273         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43274
43275 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43276
43277         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43278         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43279         <bruno@clisp.org>.
43280         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43281
43282 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43283
43284         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43285         * doc/gnulib.texi: Add section for warnings.
43286
43287 2008-11-11  Bruno Haible  <bruno@clisp.org>
43288
43289         * lib/sockets.h: Add a comment.
43290
43291 2008-11-11  Karl Berry  <karl@gnu.org>
43292
43293         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43294
43295 2008-11-11  Eric Blake  <ebb9@byu.net>
43296
43297         fdl.texi: avoid git symlinks
43298         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43299
43300 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43301
43302         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43303
43304 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43305
43306         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43307         (gl_WARN_ADD): Substitute $2 if literal.
43308
43309 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43310
43311         * m4/warning.m4: Remove.
43312
43313 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43314
43315         * m4/warnings.m4: Almost complete rewrite. :-)
43316
43317 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43318
43319         * modules/warnings: New module.
43320         * m4/warnings.m4: New file.
43321         * MODULES.html.sh: Mention warnings module.
43322         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43323         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43324
43325 2008-11-10  Eric Blake  <ebb9@byu.net>
43326
43327         fdl.texi: make a symlink to the latest version
43328         * doc/standards.texi: Revert today's earlier change.
43329         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43330         * doc/fdl.texi: ...and replace this with a symlink to the newer
43331         fdl-1.3.texi.
43332
43333 2008-11-10  Bruno Haible  <bruno@clisp.org>
43334
43335         * tests/test-select-fd.c (main): Accept the result file name as fourth
43336         argument.
43337         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43338         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43339
43340 2008-11-10  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43343         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43344         as autoconf-substituted macros.
43345         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43346         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43347         gl_NETDB_H_DEFAULTS. Set these variables.
43348         * modules/netdb (Makefile.am): Substitute these variables.
43349
43350 2008-11-10  Eric Blake  <ebb9@byu.net>
43351
43352         standards.texi: include correct file for FDL 1.3
43353         * doc/standards.texi (GNU Free Documentation License): Change
43354         include file to pull in FDL 1.3, not 1.2.
43355
43356         fdl.texi: revert accidental change to license
43357         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43358
43359 2008-11-10  Bruno Haible  <bruno@clisp.org>
43360
43361         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43362         cross-compiling guesses also when the native compile gives no result.
43363
43364 2008-11-10  Bruno Haible  <bruno@clisp.org>
43365
43366         * lib/spawni.c (__spawni): Force variable into the stack.
43367
43368 2008-11-10  Bruno Haible  <bruno@clisp.org>
43369
43370         Add support for Haiku.
43371         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43372         glibc and BeOS, but also on Haiku.
43373         * lib/fpurge.c (fpurge): Likewise.
43374         * lib/freadable.c (freadable): Likewise.
43375         * lib/freadahead.c (freadahead): Likewise.
43376         * lib/freading.c (freading): Likewise.
43377         * lib/freadptr.c (freadptr): Likewise.
43378         * lib/freadseek.c (freadptrinc): Likewise.
43379         * lib/fseeko.c (rpl_fseeko): Likewise.
43380         * lib/fseterr.c (fseterr): Likewise.
43381         * lib/fwritable.c (fwritable): Likewise.
43382         * lib/fwriting.c (fwriting): Likewise.
43383         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43384
43385 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43386
43387         * lib/config.charset: Treat Haiku like BeOS.
43388
43389 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43390
43391         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43392         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43393
43394 2008-11-08  Bruno Haible  <bruno@clisp.org>
43395
43396         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43397         AC_CACHE_CHECK.
43398
43399 2008-11-08  Bruno Haible  <bruno@clisp.org>
43400
43401         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43402
43403 2008-11-08  Bruno Haible  <bruno@clisp.org>
43404
43405         * tests/test-select-fd.c: New file.
43406         * tests/test-select-in.sh: New file.
43407         * tests/test-select-out.sh: New file.
43408         * tests/test-select-stdin.c: New file.
43409         * modules/select-tests (Files): Add the new files.
43410         (Depends-on): Add gettimeofday.
43411         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43412         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43413         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43414
43415 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43416             Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43419
43420 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43421
43422         * build-aux/pmccabe2html: Added support for C++ source files.
43423
43424 2008-11-05  Ben Pfaff  <blp@gnu.org>
43425
43426         Fix lib/close.c build on Windows.
43427         * modules/close (Files): Add lib/w32sock.h.
43428
43429 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43430
43431         Accept Bison's NEWS format.
43432         * build-aux/announce-gen (print_news_deltas): Tweak
43433         $re_prefix.
43434
43435 2008-11-04  Bruno Haible  <bruno@clisp.org>
43436
43437         * modules/random_r (Maintainer): Add glibc.
43438
43439 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43440
43441         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43442         by karl@freefriends.org (Karl Berry).
43443         * doc/alloca.texi: Likewise.
43444         * doc/c-ctype.texi: Likewise.
43445         * doc/c-strcase.texi: Likewise.
43446         * doc/c-strcaseeq.texi: Likewise.
43447         * doc/c-strcasestr.texi: Likewise.
43448         * doc/c-strstr.texi: Likewise.
43449         * doc/c-strtod.texi: Likewise.
43450         * doc/c-strtold.texi: Likewise.
43451         * doc/ctime.texi: Likewise.
43452         * doc/error.texi: Likewise.
43453         * doc/fdl.texi: Likewise.
43454         * doc/gcd.texi: Likewise.
43455         * doc/getdate.texi: Likewise.
43456         * doc/gnulib-intro.texi: Likewise.
43457         * doc/gnulib-tool.texi: Likewise.
43458         * doc/gnulib.texi: Likewise.
43459         * doc/inet_ntoa.texi: Likewise.
43460         * doc/maintain.texi: Likewise.
43461         * doc/make-stds.texi: Likewise.
43462         * doc/quote.texi: Likewise.
43463         * doc/regexprops-generic.texi: Likewise.
43464         * doc/standards.texi: Likewise.
43465         * doc/verify.texi: Likewise.
43466         * doc/visibility.texi: Likewise.
43467         * doc/gnulib.texi (GNU Free Documentation License): Include
43468         fdl-1.3.texi instead of fdl.texi.
43469
43470 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43471
43472         * doc/fdl-1.3.texi: New file, from
43473         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43474         * modules/fdl-1.3: Add.
43475         * MODULES.html.sh: Add fdl-1.3.
43476
43477 2008-11-03  Bruno Haible  <bruno@clisp.org>
43478
43479         Make determination of absolute name of header file work with AIX xlc.
43480         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43481         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43482         preprocessing.
43483         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43484         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43485
43486 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43487
43488         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43489         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43490         <ludo@gnu.org>.
43491
43492 2008-11-02  Bruno Haible  <bruno@clisp.org>
43493
43494         Mark 'strpbrk' obsolete.
43495         * modules/strpbrk (Status, Notice): New sections.
43496         * modules/strtok_r (Depends-on): Add strpbrk.
43497
43498 2008-11-02  Bruno Haible  <bruno@clisp.org>
43499
43500         Mark 'strdup' obsolete.
43501         * modules/strdup (Status, Notice): New sections.
43502         * modules/findprog (Depends-on): Add strdup.
43503         * modules/getaddrinfo (Depends-on): Likewise.
43504         * modules/localename (Depends-on): Likewise.
43505         * modules/relocatable-lib (Depends-on): Likewise.
43506         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43507         * modules/relocatable-prog (Depends-on): Likewise.
43508         * modules/trim (Depends-on): Likewise.
43509         * modules/unictype/gen-ctype (Depends-on): Likewise.
43510         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43511
43512 2008-11-02  Bruno Haible  <bruno@clisp.org>
43513
43514         Mark 'strcspn' obsolete.
43515         * modules/strcspn (Status, Notice): New sections.
43516
43517 2008-11-02  Bruno Haible  <bruno@clisp.org>
43518
43519         Mark 'rmdir' obsolete.
43520         * modules/rmdir (Status, Notice): New sections.
43521         * modules/clean-temp (Depends-on): Add rmdir.
43522         * modules/openat (Depends-on): Likewise.
43523
43524 2008-11-02  Bruno Haible  <bruno@clisp.org>
43525
43526         Mark 'raise' obsolete.
43527         * modules/raise (Status, Notice): New sections.
43528         (Include): Specify <signal.h>.
43529         * modules/stdio (Depends-on): Add raise.
43530         * modules/write (Depends-on): Likewise.
43531
43532 2008-11-02  Bruno Haible  <bruno@clisp.org>
43533
43534         Mark 'memset' obsolete.
43535         * modules/memset (Status, Notice): New sections.
43536
43537 2008-11-02  Bruno Haible  <bruno@clisp.org>
43538
43539         Mark 'memmove' obsolete.
43540         * modules/memmove (Status, Notice): New sections.
43541         * modules/argp (Depends-on): Add memmove.
43542         * modules/argz (Depends-on): Likewise.
43543         * modules/canonicalize (Depends-on): Likewise.
43544         * modules/canonicalize-lgpl (Depends-on): Likewise.
43545         * modules/fts (Depends-on): Likewise.
43546         * modules/getcwd (Depends-on): Likewise.
43547         * modules/human (Depends-on): Likewise.
43548         * modules/regex (Depends-on): Likewise.
43549         * modules/striconveh (Depends-on): Likewise.
43550         * modules/trim (Depends-on): Likewise.
43551         * modules/unistr/u8-move (Depends-on): Likewise.
43552         * modules/unistr/u16-move (Depends-on): Likewise.
43553         * modules/unistr/u32-move (Depends-on): Likewise.
43554
43555 2008-11-02  Bruno Haible  <bruno@clisp.org>
43556
43557         Mark 'memcpy' obsolete.
43558         * modules/memcpy (Status, Notice): New sections.
43559
43560 2008-11-02  Bruno Haible  <bruno@clisp.org>
43561
43562         Mark 'memcmp' obsolete.
43563         * modules/memcmp (Status, Notice): New sections.
43564         * modules/argmatch (Depends-on): Add memchr.
43565         * modules/backupfile (Depends-on): Likewise.
43566         * modules/c-strcasestr (Depends-on): Likewise.
43567         * modules/crypto/des (Depends-on): Likewise.
43568         * modules/csharpcomp (Depends-on): Likewise.
43569         * modules/fnmatch (Depends-on): Likewise.
43570         * modules/git-merge-changelog (Depends-on): Likewise.
43571         * modules/isnand (Depends-on): Likewise.
43572         * modules/isnand-nolibm (Depends-on): Likewise.
43573         * modules/isnanf (Depends-on): Likewise.
43574         * modules/isnanf-nolibm (Depends-on): Likewise.
43575         * modules/isnanl (Depends-on): Likewise.
43576         * modules/isnanl-nolibm (Depends-on): Likewise.
43577         * modules/mbchar (Depends-on): Likewise.
43578         * modules/memcoll (Depends-on): Likewise.
43579         * modules/quotearg (Depends-on): Likewise.
43580         * modules/regex (Depends-on): Likewise.
43581         * modules/relocatable-prog (Depends-on): Likewise.
43582         * modules/same (Depends-on): Likewise.
43583         * modules/signbit (Depends-on): Likewise.
43584         * modules/strcasestr-simple (Depends-on): Likewise.
43585         * modules/unictype/gen-ctype (Depends-on): Likewise.
43586         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43587         * modules/uniname/uniname (Depends-on): Likewise.
43588         * modules/unistr/u8-cmp (Depends-on): Likewise.
43589
43590 2008-11-02  Bruno Haible  <bruno@clisp.org>
43591
43592         Mark 'memchr' obsolete.
43593         * modules/memchr (Status, Notice): New sections.
43594         * modules/argp (Depends-on): Add memchr.
43595         * modules/base64 (Depends-on): Likewise.
43596         * modules/c-strcasestr (Depends-on): Likewise.
43597         * modules/chdir-long (Depends-on): Likewise.
43598         * modules/fnmatch (Depends-on): Likewise.
43599         * modules/getsubopt (Depends-on): Likewise.
43600         * modules/git-merge-changelog (Depends-on): Likewise.
43601         * modules/glob (Depends-on): Likewise.
43602         * modules/strcasestr-simple (Depends-on): Likewise.
43603         * modules/strnlen (Depends-on): Likewise.
43604
43605 2008-11-02  Bruno Haible  <bruno@clisp.org>
43606
43607         Mark 'atexit' obsolete.
43608         * modules/atexit (Status, Notice): New sections.
43609         * modules/chdir-long (Depends-on): Add atexit.
43610         * modules/wait-process (Depends-on): Likewise.
43611
43612 2008-11-02  Bruno Haible  <bruno@clisp.org>
43613
43614         * gnulib-tool: New option --with-obsolete.
43615         (func_usage): Document it.
43616         (func_modules_transitive_closure): Drop obsolete dependencies if
43617         incobsolete is not true.
43618         (func_import): Read and save the incobsolete variable to the cache.
43619
43620 2008-11-02  Bruno Haible  <bruno@clisp.org>
43621
43622         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43623         * gnulib-tool: New option --extract-status.
43624         (func_usage): Document it.
43625         (sed_extract_prog): Recognize it.
43626         (func_get_status): New function.
43627
43628 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43629
43630         * modules/sockets (License): Change from LGPL to LGPLv2+.
43631
43632 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43633
43634         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43635
43636 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43637
43638         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43639         Mention times and sys_times.
43640         * modules/sys_times, modules/sys_times-tests: New modules.
43641         * modules/times, modules/times-tests: Likewise
43642         * m4/sys_times_h.m4: New file.
43643         * lib/sys_times.in.h: Likewise
43644         * lib/times.c: Likewise.
43645         * tests/test-sys_times.c: Likewise.
43646         * tests/test-times.c: Likewise.
43647         * doc/posix-headers/sys_times.texi: Update.
43648         * doc/posix-functions/times.texi: Update.
43649
43650 2008-10-28  Jim Meyering  <meyering@redhat.com>
43651
43652         * modules/tempname (Depends-on): Add lstat.
43653
43654         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43655
43656 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43657
43658         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43659         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43660         using idiom used elsewhere in gnulib.
43661
43662 2008-10-27  Jim Meyering  <meyering@redhat.com>
43663
43664         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43665
43666 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43667
43668         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43669         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43670         programs.
43671         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43672
43673 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43674
43675         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43676
43677 2008-10-27  Bruno Haible  <bruno@clisp.org>
43678
43679         * tests/test-lstat.c: Include <stdio.h>.
43680
43681 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43682
43683         * modules/lstat-tests: New module.
43684         * tests/test-lstat.c: New file.
43685
43686 2008-10-26  Jim Meyering  <meyering@redhat.com>
43687
43688         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43689
43690 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43691             Bruno Haible  <bruno@clisp.org>
43692
43693         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43694         * modules/configmake (Include): Add a note that the include must come
43695         after all system headers.
43696         * lib/javaversion.c: Include configmake.h after all other includes.
43697
43698 2008-10-26  Bruno Haible  <bruno@clisp.org>
43699
43700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43701         HAVE_STRUCT_RANDOM_DATA to 1.
43702         (gl_STDLIB_H): Simplify.
43703
43704 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43705
43706         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43707         substitute HAVE_STRUCT_RANDOM_DATA.
43708         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43709         random_data.
43710         * modules/stdlib (Makefile.am): Substitute
43711         HAVE_STRUCT_RANDOM_DATA.
43712
43713 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43714
43715         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43716         * doc/gnulib-intro.texi (Copyright): Likewise.
43717
43718 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43719
43720         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43721         findings.
43722
43723 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43724             Bruno Haible  <bruno@clisp.org>
43725
43726         * lib/unistd.in.h: Include <winsock2.h>.
43727         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43728         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43729         Provide dummy declarations.
43730         (gethostname): Override.
43731         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43732         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43733         gl_PREREQ_SYS_H_WINSOCK2.
43734         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43735         * doc/posix-functions/gethostname.texi: More details.
43736
43737 2008-10-25  Bruno Haible  <bruno@clisp.org>
43738
43739         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43740         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43741         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43742
43743         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43744         here ...
43745         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43746         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43747         gl_UNISTD_H_DEFAULTS.
43748
43749 2008-10-25  Eric Blake  <ebb9@byu.net>
43750
43751         signbit: avoid spurious compiler failure
43752         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43753         declarations inside function.
43754
43755 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43756             Bruno Haible  <bruno@clisp.org>
43757
43758         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43759         * modules/random_r (Depends-on): Add stdint.
43760
43761 2008-10-24  Bruno Haible  <bruno@clisp.org>
43762
43763         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43764         Eggert.
43765         * modules/strerror (License): Likewise.
43766
43767 2008-10-24  Jim Meyering  <meyering@redhat.com>
43768
43769         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43770         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43771
43772 2008-10-24  Eric Blake  <ebb9@byu.net>
43773
43774         getgroups: fix compilation when getgroups is available
43775         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43776         but with <config.h> override of getgroups disabled.
43777
43778 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43779
43780         * doc/gnulib.texi (Header files): Add note about C++ problems.
43781         Explained by Bruno Haible <bruno@clisp.org>.
43782
43783 2008-10-23  Bruno Haible  <bruno@clisp.org>
43784
43785         Define a dummy SA_NODEFER macro on Interix.
43786         * lib/signal.in.h (SA_NODEFER): Define fallback.
43787         Reported by Aleksey Cheusov <cheusov@tut.by> via
43788         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43789
43790 2008-10-23  Bruno Haible  <bruno@clisp.org>
43791
43792         * modules/freadahead (License): Change to LGPLv2+.
43793         Suggested by Simon Josefsson.
43794
43795 2008-10-23  Jim Meyering  <meyering@redhat.com>
43796
43797         random_r: new module
43798         * modules/random_r: New file.
43799         * m4/random_r.m4: New file.
43800         * lib/random_r.c: New file, from glibc.
43801         * modules/random_r-tests: New file.
43802         * tests/test-random_r.c: New file.
43803         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43804          Declare.
43805         (RAND_MAX): Define.
43806         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43807         * modules/stdlib: Substitute them, too.
43808         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43809         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43810         * doc/glibc-functions/random_r.texi: Likewise.
43811         * doc/glibc-functions/setstate_r.texi: Likewise.
43812         * doc/glibc-functions/srandom_r.texi: Likewise.
43813         * config/srclist.txt: Mention it.
43814
43815 2008-10-23  David Lutterkort  <lutter@redhat.com>
43816
43817         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43818         link requirement
43819
43820 2008-10-23  Jim Meyering  <meyering@redhat.com>
43821
43822         selinux-h: mark parameters of stub functions as intentionally unused
43823         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43824         * lib/se-context.in.h: Likewise.
43825
43826 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43827
43828         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43829
43830 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43831
43832         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43833
43834 2008-10-22  Eric Blake  <ebb9@byu.net>
43835
43836         glthread/thread: avoid compiler warning
43837         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43838         Add unreachable abort to silence compiler.
43839
43840 2008-10-22  Eric Blake  <ebb9@byu.net>
43841
43842         netdb: also supply struct addrinfo for cygwin 1.5.x
43843         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43844         older cygwin.
43845         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43846         cygwin.
43847         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43848
43849 2008-10-22  Bruno Haible  <bruno@clisp.org>
43850
43851         * users.txt: Update entry about pspp.
43852
43853 2008-10-21  Bruno Haible  <bruno@clisp.org>
43854
43855         Simplification.
43856         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43857         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43858
43859         Simplification.
43860         * lib/ioctl.c (ioctl): Don't undefine.
43861         * lib/socket.c (socket): Don't undefine.
43862
43863         Remove unused module indicator macros.
43864         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43865         GNULIB_$1 as a C macro.
43866
43867         * doc/posix-functions/close.texi: Undo last change.
43868         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43869         Windows platforms.
43870
43871 2008-10-21  Bruno Haible  <bruno@clisp.org>
43872
43873         Add gethostname() declaration to <unistd.h>.
43874         * lib/unistd.in.h (gethostname): New declaration.
43875         * lib/gethostname.c: Include <unistd.h>.
43876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43877         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43879         and HAVE_GETHOSTNAME.
43880         * modules/gethostname (Depends-on): Add unistd.
43881         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43882         (Include): Specify <unistd.h>.
43883         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43884         HAVE_GETHOSTNAME.
43885         * tests/test-gethostname.c: Include <unistd.h> first.
43886
43887 2008-10-21  Bruno Haible  <bruno@clisp.org>
43888
43889         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43890         * modules/select-tests (Depends-on): Likewise.
43891         Reported by Simon Josefsson.
43892
43893 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43894
43895         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43896         * lib/accept.c: New file, based on winsock.c.
43897         * lib/bind.c: New file, based on winsock.c.
43898         * lib/connect.c: New file, based on winsock.c.
43899         * lib/getpeername.c: New file, based on winsock.c.
43900         * lib/getsockname.c: New file, based on winsock.c.
43901         * lib/getsockopt.c: New file, based on winsock.c.
43902         * lib/ioctl.c: New file, based on winsock.c.
43903         * lib/listen.c: New file, based on winsock.c.
43904         * lib/recv.c: New file, based on winsock.c.
43905         * lib/recvfrom.c: New file, based on winsock.c.
43906         * lib/send.c: New file, based on winsock.c.
43907         * lib/sendto.c: New file, based on winsock.c.
43908         * lib/setsockopt.c: New file, based on winsock.c.
43909         * lib/shutdown.c: New file, based on winsock.c.
43910         * lib/socket.c: New file, based on winsock.c.
43911         * lib/w32sock.h: New file, based on winsock.c.
43912         * lib/winsock.c: Remove file.
43913         * modules/accept: Likewise.
43914         * modules/bind: Likewise.
43915         * modules/connect: Likewise.
43916         * modules/getpeername: Likewise.
43917         * modules/getsockname: Likewise.
43918         * modules/getsockopt: Likewise.
43919         * modules/ioctl: Likewise.
43920         * modules/listen: Likewise.
43921         * modules/recv: Likewise.
43922         * modules/recvfrom: Likewise.
43923         * modules/send: Likewise.
43924         * modules/sendto: Likewise.
43925         * modules/setsockopt: Likewise.
43926         * modules/shutdown: Likewise.
43927         * modules/socket: Use socket.c instead of winsock.c.
43928         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43929         * doc/posix-functions/accept.texi: Doc fix.
43930         * doc/posix-functions/bind.texi: Doc fix.
43931         * doc/posix-functions/close.texi: Doc fix.
43932         * doc/posix-functions/connect.texi: Doc fix.
43933         * doc/posix-functions/getpeername.texi: Doc fix.
43934         * doc/posix-functions/getsockname.texi: Doc fix.
43935         * doc/posix-functions/getsockopt.texi: Doc fix.
43936         * doc/posix-functions/ioctl.texi: Doc fix.
43937         * doc/posix-functions/listen.texi: Doc fix.
43938         * doc/posix-functions/recv.texi: Doc fix.
43939         * doc/posix-functions/recvfrom.texi: Doc fix.
43940         * doc/posix-functions/send.texi: Doc fix.
43941         * doc/posix-functions/sendto.texi: Doc fix.
43942         * doc/posix-functions/setsockopt.texi: Doc fix.
43943         * doc/posix-functions/shutdown.texi: Doc fix.
43944         * doc/posix-functions/socket.texi: Doc fix.
43945
43946 2008-10-20  Bruno Haible  <bruno@clisp.org>
43947
43948         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43949         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43950         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43951         as an alias for SIGABRT.
43952         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43953         (sigaction): Map it to SIGABRT.
43954         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43955
43956 2008-10-20  Bruno Haible  <bruno@clisp.org>
43957
43958         * lib/fts.c: Don't include lstat.h.
43959         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43960
43961         Move the lstat() declaration to <sys/stat.h>.
43962         * lib/lstat.h: Remove file.
43963         * lib/sys_stat.in.h: Add special invocation convention.
43964         (lstat): New declaration.
43965         * lib/lstat.c (orig_lstat): New function.
43966         (rpl_lstat): Use orig_lstat instead of lstat.
43967         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43968         AC_C_INLINE. Set REPLACE_LSTAT.
43969         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43970         and REPLACE_LSTAT.
43971         * modules/lstat (Files): Remove lib/lstat.h.
43972         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43973         (Include): Specify <sys/stat.h> instead of lstat.h.
43974         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43975         REPLACE_LSTAT.
43976         * NEWS: Mention the change.
43977
43978 2008-10-20  Bruno Haible  <bruno@clisp.org>
43979
43980         * modules/posix_spawn-tests: New file.
43981         * tests/test-posix_spawn3.c: New file.
43982
43983 2008-10-20  Bruno Haible  <bruno@clisp.org>
43984
43985         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43986         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43987         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43988         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43989         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43990
43991 2008-10-20  Bruno Haible  <bruno@clisp.org>
43992
43993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43994         of posix_spawn on AIX 5.3.
43995
43996 2008-10-20  Bruno Haible  <bruno@clisp.org>
43997
43998         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43999
44000 2008-10-20  Bruno Haible  <bruno@clisp.org>
44001
44002         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44003         of AC_LANG_PROGRAM.
44004
44005 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44006
44007         * lib/netdb.in.h: Don't define GNU specific constants until they
44008         are supported or needed.  Reported by Bruno Haible
44009         <bruno@clisp.org>.
44010
44011 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44012
44013         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44014
44015 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44016
44017         * lib/getaddrinfo.h: Remove file.
44018         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44019         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44020         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44021         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44022         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44023         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44024         * tests/test-getaddrinfo.c: Likewise.
44025         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44026         * NEWS: Mention change.
44027
44028 2008-10-19  Bruno Haible  <bruno@clisp.org>
44029
44030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44031
44032 2008-10-19  Bruno Haible  <bruno@clisp.org>
44033
44034         * lib/wait-process.c: Include simply <sys/wait.h>.
44035         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44036         WIFSTOPPED): Remove fallback definitions.
44037         * modules/wait-process (Depends-on): Add sys_wait.
44038
44039         New module 'sys_wait'.
44040         * modules/sys_wait: New file.
44041         * lib/sys_wait.in.h: New file, partially copied from
44042         lib/wait-process.c.
44043         * m4/sys_wait_h.m4: New file.
44044         * doc/posix-headers/sys_wait.texi: Mention the new module.
44045
44046 2008-10-19  Bruno Haible  <bruno@clisp.org>
44047
44048         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44049
44050 2008-10-19  Bruno Haible  <bruno@clisp.org>
44051
44052         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44053         * lib/wait-process.c (WAIT_T): Remove type.
44054         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44055         (wait_subprocess): Update.
44056
44057 2008-10-19  Bruno Haible  <bruno@clisp.org>
44058
44059         New module 'atoll'.
44060         * modules/atoll: New file.
44061         * lib/stdlib.in.h (atoll): New declaration.
44062         * lib/atoll.c: New file, from glibc with modifications.
44063         * m4/atoll.m4: New file.
44064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44065         HAVE_ATOLL.
44066         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44067         * doc/posix-functions/atoll.texi: Mention the new module.
44068
44069 2008-10-19  Bruno Haible  <bruno@clisp.org>
44070
44071         Add strtoull() declaration to <stdlib.h>.
44072         * lib/stdlib.in.h (strtoull): New declaration.
44073         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44074         Set HAVE_STRTOULL.
44075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44076         HAVE_STRTOULL.
44077         * modules/strtoull (Depends-on): Add stdlib.
44078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44079         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44080         HAVE_STRTOULL.
44081
44082 2008-10-19  Bruno Haible  <bruno@clisp.org>
44083
44084         Add strtoll() declaration to <stdlib.h>.
44085         * lib/stdlib.in.h (strtoll): New declaration.
44086         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44087         Set HAVE_STRTOLL.
44088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44089         HAVE_STRTOLL.
44090         * modules/strtoll (Depends-on): Add stdlib.
44091         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44092         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44093
44094 2008-10-19  Bruno Haible  <bruno@clisp.org>
44095
44096         * modules/bcopy (Depends-on): Add strings.
44097         (Include): Specify <strings.h>.
44098
44099 2008-10-19  Bruno Haible  <bruno@clisp.org>
44100
44101         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44102
44103 2008-10-19  Bruno Haible  <bruno@clisp.org>
44104
44105         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44106         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44107         mingw.
44108
44109 2008-10-19  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/atanl.c: Don't include isnanl.h.
44112         * lib/cosl.c: Likewise.
44113         * lib/ldexpl.c: Likewise.
44114         * lib/logl.c: Likewise.
44115         * lib/sinl.c: Likewise.
44116         * lib/sqrtl.c: Likewise.
44117         * lib/tanl.c: Likewise.
44118
44119         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44120         * lib/isnanf.h: Remove file.
44121         * lib/isnand.h: Remove file.
44122         * lib/isnanl.h: Remove file.
44123         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44124         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44125         macros.
44126         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44127         HAVE_ISNANF, don't define it as a C macro.
44128         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44129         HAVE_ISNAND, don't define it as a C macro.
44130         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44131         HAVE_ISNANL, don't define it as a C macro.
44132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44133         HAVE_ISNAN[FDL].
44134         * modules/isnanf (Files): Remove lib/isnanf.h.
44135         (Depends-on): Add math.
44136         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44137         (Include): Specify <math.h> instead of isnanf.h.
44138         * modules/isnand (Files): Remove lib/isnand.h.
44139         (Depends-on): Add math.
44140         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44141         (Include): Specify <math.h> instead of isnand.h.
44142         * modules/isnanl (Files): Remove lib/isnanl.h.
44143         (Depends-on): Add math.
44144         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44145         (Include): Specify <math.h> instead of isnanl.h.
44146         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44147         HAVE_ISNAN[FDL].
44148         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44149         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44150         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44151         * NEWS: Mention the change.
44152
44153 2008-10-18  Bruno Haible  <bruno@clisp.org>
44154
44155         Add getusershell(), setusershell(), endusershell() declarations to
44156         <unistd.h>.
44157         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44158         declarations.
44159         * lib/getusershell.c: Include unistd.h.
44160         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44161         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44162         HAVE_GETUSERSHELL.
44163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44164         and HAVE_GETUSERSHELL.
44165         * modules/getusershell (Depends-on): Add unistd, extensions.
44166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44167         (Include): Specify <unistd.h>.
44168         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44169         HAVE_GETUSERSHELL.
44170
44171 2008-10-18  Bruno Haible  <bruno@clisp.org>
44172
44173         Add a getloadavg() declaration to <stdlib.h>.
44174         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44175         getloadavg declaration.
44176         (getloadavg): New declaration.
44177         * lib/getloadavg.c: Include <stdlib.h> first.
44178         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44179         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44180         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44182         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44183         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44184         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44185         (Include): Specify <stdlib.h>.
44186         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44187         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44188
44189 2008-10-18  Bruno Haible  <bruno@clisp.org>
44190
44191         * lib/dirchownmod.c: Don't include lchmod.h.
44192
44193         Move the lchmod() declaration to <sys/stat.h>.
44194         * lib/lchmod.h: Remove file.
44195         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44196         (lchmod): New declaration, moved here from lib/lchown.h.
44197         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44198         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44199         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44200         and HAVE_LCHMOD.
44201         * modules/lchmod (Files): Remove lib/lchmod.h.
44202         (Depends-on): Add sys_stat, extensions.
44203         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44204         (Include): Specify <sys/stat.h> instead of lchmod.h.
44205         * modules/sys_stat (Depends-on): Add link-warning.
44206         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44207         definition of GL_LINK_WARNING.
44208         * NEWS: Mention the change.
44209
44210 2008-10-18  Bruno Haible  <bruno@clisp.org>
44211
44212         * lib/fchdir.c: Don't include dirfd.h.
44213         * lib/fts.c: Likewise.
44214         * lib/getcwd.c: Likewise.
44215         * lib/glob.c: Likewise.
44216
44217         Move the dirfd() declaration to <dirent.h>.
44218         * lib/dirfd.h: Remove file.
44219         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44220         (dirfd): New declaration.
44221         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44223         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44224         HAVE_DECL_DIRFD.
44225         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44226         HAVE_DECL_DIRFD.
44227         * modules/dirfd (Files): Remove lib/dirfd.h.
44228         (Depends-on): Add dirent, extensions.
44229         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44230         (Include): Specify <dirent.h> instead of dirfd.h.
44231         * modules/dirent (Depends-on): Add link-warning.
44232         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44233         definition of GL_LINK_WARNING.
44234         * NEWS: Mention the change.
44235
44236 2008-10-18  Bruno Haible  <bruno@clisp.org>
44237
44238         Move the euidaccess() declaration to <unistd.h>.
44239         * lib/euidaccess.h: Remove file.
44240         * lib/unistd.in.h (euidaccess): New declaration.
44241         * lib/euidaccess.c: Don't include euidaccess.h.
44242         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44243         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44245         and HAVE_EUIDACCESS.
44246         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44247         (Depends-on): Add unistd.
44248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44249         (Include): Specify <unistd.h> instead of euidaccess.h.
44250         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44251         HAVE_EUIDACCESS.
44252         * NEWS: Mention the change.
44253
44254 2008-10-18  Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44257
44258         Move the getdomainname() declaration to <unistd.h>.
44259         * lib/getdomainname.h: Remove file.
44260         * lib/unistd.in.h (getdomainname): New declaration.
44261         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44262         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44263         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44264         HAVE_GETDOMAINNAME.
44265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44266         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44267         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44268         (Depends-on): Add unistd, extensions.
44269         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44270         (Includes): Specify <unistd.h> instead of getdomainname.h.
44271         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44272         HAVE_GETDOMAINNAME.
44273         * NEWS: Mention the change.
44274
44275 2008-10-18  Bruno Haible  <bruno@clisp.org>
44276
44277         * modules/dirent: New file.
44278         * m4/dirent_h.m4: New file.
44279         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44280         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44281         * modules/fchdir (Files): Remove lib/dirent.in.h.
44282         (Depends-on): Add dirent.
44283         (Makefile.am): Move rules to modules/dirent.
44284         * doc/posix-headers/dirent.texi: Mention the new module.
44285
44286 2008-10-18  Bruno Haible  <bruno@clisp.org>
44287
44288         Avoid -Wunused-parameter warnings in public gnulib header files.
44289         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44290         macro.
44291         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44292
44293 2008-10-18  Bruno Haible  <bruno@clisp.org>
44294
44295         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44296         * doc/glibc-functions/error.texi: Mention the module 'error'.
44297         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44298         * doc/glibc-functions/getdomainname.texi: Mention the module
44299         'getdomainname'.
44300         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44301         * doc/glibc-functions/getpagesize.texi: Mention the module
44302         'getpagesize'.
44303         * doc/glibc-functions/getusershell.texi: Mention the module
44304         'getusershell'.
44305         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44306         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44307         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44308         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44309         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44310         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44311         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44312         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44313         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44314         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44315         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44316         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44317         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44318         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44319
44320 2008-10-17  Bruno Haible  <bruno@clisp.org>
44321
44322         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44323         HP-UX and IRIX, use -0.0L.
44324         * tests/test-ceill.c (minus_zero): Likewise.
44325         * tests/test-floorl.c (minus_zero): Likewise.
44326         * tests/test-frexpl.c (minus_zero): Likewise.
44327         * tests/test-isnan.c (minus_zerol): Likewise.
44328         * tests/test-isnanl.h (minus_zero): Likewise.
44329         * tests/test-ldexpl.c (minus_zero): Likewise.
44330         * tests/test-roundl.c (minus_zero): Likewise.
44331         * tests/test-signbit.c (minus_zerol): Likewise.
44332         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44333         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44334         * tests/test-truncl.c (minus_zero): Likewise.
44335         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44336         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44337         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44338         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44339
44340 2008-10-17  Bruno Haible  <bruno@clisp.org>
44341
44342         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44343         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44344         that it gets activated only for gcc >= 3.0.
44345         * lib/dirent.in.h: Likewise.
44346         * lib/errno.in.h: Likewise.
44347         * lib/fcntl.in.h: Likewise.
44348         * lib/float.in.h: Likewise.
44349         * lib/iconv.in.h: Likewise.
44350         * lib/inttypes.in.h: Likewise.
44351         * lib/locale.in.h: Likewise.
44352         * lib/math.in.h: Likewise.
44353         * lib/netdb.in.h: Likewise.
44354         * lib/netinet_in.in.h: Likewise.
44355         * lib/search.in.h: Likewise.
44356         * lib/signal.in.h: Likewise.
44357         * lib/spawn.in.h: Likewise.
44358         * lib/stdarg.in.h: Likewise.
44359         * lib/stdint.in.h: Likewise.
44360         * lib/stdio.in.h: Likewise.
44361         * lib/stdlib.in.h: Likewise.
44362         * lib/string.in.h: Likewise.
44363         * lib/strings.in.h: Likewise.
44364         * lib/sys_file.in.h: Likewise.
44365         * lib/sys_ioctl.in.h: Likewise.
44366         * lib/sys_select.in.h: Likewise.
44367         * lib/sys_socket.in.h: Likewise.
44368         * lib/sys_stat.in.h: Likewise.
44369         * lib/sys_time.in.h: Likewise.
44370         * lib/sysexits.in.h: Likewise.
44371         * lib/time.in.h: Likewise.
44372         * lib/unistd.in.h: Likewise.
44373         * lib/wchar.in.h: Likewise.
44374         * lib/wctype.in.h: Likewise.
44375         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44376
44377 2008-10-17  Jim Meyering  <meyering@redhat.com>
44378
44379         ignore-value: don't depend on inline module
44380         * modules/ignore-value (Depends-on): Remove 'inline'.
44381         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44382         Suggestion from Bruno Haible.
44383
44384 2008-10-17  Bruno Haible  <bruno@clisp.org>
44385
44386         New implementation of condition variables for Win32.
44387         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44388         (gl_linked_waitqueue_t): New type.
44389         (gl_cond_t): Use it.
44390         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44391         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44392         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44393         (glthread_cond_init_func, glthread_cond_wait_func,
44394         glthread_cond_timedwait_func, glthread_cond_signal_func,
44395         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44396         Reimplemented on the basis of gl_linked_waitqueue_t.
44397         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44398         gl_waitqueue_t.
44399         (gl_rwlock_t): Update.
44400         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44401
44402 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44403
44404         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44405         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44406
44407 2008-10-17  Jim Meyering  <meyering@redhat.com>
44408
44409         ignore-value: new module
44410         * modules/ignore-value: New file.
44411         * lib/ignore-value.h: New file.
44412         * MODULES.html.sh (Compiler warning management): New section,
44413         just for this module.  More to come.
44414
44415 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44416
44417         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44418         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44419         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44420
44421 2008-10-16  Jim Meyering  <meyering@redhat.com>
44422
44423         openat-die.c: avoid 'no previous prototype' warning
44424         * lib/openat-die.c: Include "openat.h".
44425         Reported by Reuben Thomas <rrt@sc3d.org>.
44426
44427 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44428
44429         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44430         * lib/netdb.in.h: Fix typo.
44431         Reported by Bruno Haible  <bruno@clisp.org>
44432
44433         * lib/netdb.in.h: Include sys/socket.h for platforms without
44434         netdb.h, to get structures like hostent on MinGW.
44435         * modules/netdb (Depends-on): Add sys_socket.
44436
44437 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44438
44439         * modules/netdb, modules/netdb-tests: New file.
44440         * m4/netdb_h.m4: New file.
44441         * lib/netdb.in.h: Add, currently just an empty file pending
44442         definitions.
44443         * tests/test-netdb.c: New file.
44444         * doc/posix-headers/netdb.texi: Mention that we replace it if
44445         needed.
44446         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44447         netdb.
44448
44449 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44450
44451         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44452         with code.
44453
44454 2008-10-13  Bruno Haible  <bruno@clisp.org>
44455
44456         * lib/glthread/cond.c (glthread_cond_wait_func,
44457         glthread_cond_timedwait_func): Add a comment.
44458
44459 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44460
44461         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44462         * tests/test-select.c: Likewise,
44463
44464 2008-10-13  Bruno Haible  <bruno@clisp.org>
44465
44466         * lib/glthread/cond.c (glthread_cond_wait_func,
44467         glthread_cond_timedwait_func): Fix variable name.
44468         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44469
44470 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44471
44472         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44474         struct sockaddr.sa_len.
44475         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44476
44477 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44478
44479         * build-aux/pmccabe2html: Add css and css_url parameters.
44480
44481 2008-10-12  Bruno Haible  <bruno@clisp.org>
44482
44483         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44484         calling aclx_get.
44485         Reported by Rainer Tammer <tammer@tammer.net>.
44486
44487 2008-10-12  Bruno Haible  <bruno@clisp.org>
44488
44489         Use msvcrt aware primitives for creation/termination of Win32 threads.
44490         * lib/glthread/thread.c: Include <process.h>.
44491         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44492         (wrapper_func): Update signature.
44493         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44494
44495 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44496             Bruno Haible  <bruno@clisp.org>
44497
44498         Provide a Win32 implementation of the 'cond' module.
44499         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44500         * lib/glthread/cond.c (glthread_cond_init_func,
44501         glthread_cond_wait_func, glthread_cond_timedwait_func,
44502         glthread_cond_signal_func, glthread_cond_broadcast_func,
44503         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44504         * modules/cond (Dependencies): Add gettimeofday.
44505
44506 2008-10-11  Bruno Haible  <bruno@clisp.org>
44507
44508         Make sleep work on older versions of mingw.
44509         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44510         only whether it exists.
44511         * doc/posix-functions/sleep.texi: Mention the problem with older
44512         versions of mingw.
44513
44514 2008-10-11  Bruno Haible  <bruno@clisp.org>
44515
44516         New module 'shutdown'.
44517         * modules/shutdown: New file.
44518         * lib/sys_socket.in.h (shutdown): New declaration.
44519         * lib/winsock.c (shutdown): New function.
44520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44521         GNULIB_SHUTDOWN.
44522         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44523         * doc/posix-functions/shutdown.texi: Document the new module.
44524
44525 2008-10-11  Jim Meyering  <meyering@redhat.com>
44526
44527         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44528
44529 2008-10-11  Bruno Haible  <bruno@clisp.org>
44530
44531         New module 'fclose'.
44532         * modules/fclose: New file.
44533         * lib/stdio.in.h (fclose): New declaration.
44534         * lib/fclose.c: New file.
44535         * m4/fclose.m4: New file.
44536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44537         REPLACE_FCLOSE.
44538         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44539         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44540         REPLACE_FCLOSE.
44541         * modules/close (Depends-on): fclose.
44542         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44543
44544 2008-10-11  Bruno Haible  <bruno@clisp.org>
44545
44546         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44547         set errno and don't call _close.
44548
44549 2008-10-10  Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44552         ACL, not afterwards. Fixes test failure on Cygwin.
44553
44554 2008-10-09  Ben Pfaff  <blp@gnu.org>
44555
44556         * build-aux/announce-gen: Fix gnulib version related part of usage
44557         message.  Die with a useful error message if no tarballs are
44558         found.
44559
44560 2008-10-10  Jim Meyering  <meyering@redhat.com>
44561
44562         bootstrap: use git's --depth=N option only if it's supported
44563         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44564         recognize the --depth option.  Reported by Pádraig Brady.
44565
44566 2008-10-09  Bruno Haible  <bruno@clisp.org>
44567
44568         New module 'ioctl'.
44569         * modules/ioctl: New file.
44570         * lib/sys_socket.in.h (ioctl): Remove declaration.
44571         * lib/winsock.c: Include <sys/ioctl.h>.
44572         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44573         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44574         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44575         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44576         * doc/posix-functions/ioctl.texi: Mention the new module.
44577
44578 2008-10-09  Bruno Haible  <bruno@clisp.org>
44579
44580         New module 'sys_ioctl'.
44581         * lib/sys_ioctl.in.h: New file.
44582         * m4/sys_ioctl_h.m4: New file.
44583         * modules/sys_ioctl: New file.
44584         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44585
44586 2008-10-09  Bruno Haible  <bruno@clisp.org>
44587
44588         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44589         * lib/winsock.c: Include <stdarg.h>.
44590         (rpl_ioctl): Change to second argument 'int' and then varargs.
44591
44592 2008-10-09  Bruno Haible  <bruno@clisp.org>
44593
44594         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44595         when the sys_socket module is present and the system has <winsock2.h>.
44596
44597 2008-10-09  Bruno Haible  <bruno@clisp.org>
44598
44599         * doc/posix-functions/close.texi: Mention module 'close' instead of
44600         module 'sys_socket'.
44601
44602 2008-10-09  Bruno Haible  <bruno@clisp.org>
44603
44604         * doc/glibc-headers/sys_ioctl.texi: New file.
44605         * doc/gnulib.texi: Include it.
44606
44607 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44608             Bruno Haible  <bruno@clisp.org>
44609
44610         Combine the two replacements of 'close'.
44611         * lib/sys_socket.in.h (close): Define to a reminder to include
44612         <unistd.h>.
44613         (_gl_close_fd_maybe_socket): New declaration.
44614         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44615         * lib/winsock.c (close): Remove undefinition.
44616         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44617         needed for the gnulib module 'close'.
44618         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44619         define to an error symbol or to a warning, if suitable.
44620         * lib/close.c: Include <sys/socket.h>.
44621         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44622         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44623         UNISTD_H_HAVE_WINSOCK2_H.
44624         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44626         UNISTD_H_HAVE_WINSOCK2_H.
44627         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44628         (configure.ac): Set a module indicator.
44629         (Makefile.am): Substitute GNULIB_CLOSE.
44630         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44631         * modules/poll-tests (Depends-on): Add close.
44632         * modules/select-tests (Depends-on): Likewise.
44633
44634 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44635             Bruno Haible  <bruno@clisp.org>
44636
44637         New module 'close'.
44638         * modules/close: New file.
44639         * lib/unistd.in.h (close): Move declaration out of the
44640         FCHDIR_REPLACEMENT scope.
44641         (_gl_unregister_fd): New declaration.
44642         * lib/close.c: New file.
44643         * lib/fchdir.c (rpl_close): Remove function.
44644         * m4/close.m4: New file.
44645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44646         close.
44647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44648         REPLACE_CLOSE.
44649         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44650         REPLACE_CLOSE.
44651         * modules/fchdir (Depends-on): Add close.
44652
44653 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44654             Bruno Haible  <bruno@clisp.org>
44655
44656         * lib/fcntl.in.h (open): Simplify conditionals.
44657         (_gl_register_fd): New declaration.
44658         * lib/fchdir.c (rpl_open): Remove function.
44659         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44660         also.
44661         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44663         open.
44664
44665 2008-10-09  Jim Meyering  <meyering@redhat.com>
44666
44667         GNUmakefile: use the more name-space-friendly "_version"
44668         * top/GNUmakefile (_dummy): Update.
44669         (_version): Rename from "version".
44670
44671 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44672             Bruno Haible  <bruno@clisp.org>
44673
44674         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44675         rpl_close.
44676         (_gl_register_fd): New function, extracted from rpl_open.
44677         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44678         (rpl_open, rpl_opendir): Use _gl_register_fd.
44679
44680 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44681
44682         Fix organization of 'open' replacement.
44683         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44684         (gl_FUNC_OPEN): Use it.
44685         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44686
44687 2008-10-08  Bruno Haible  <bruno@clisp.org>
44688
44689         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44690
44691 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44692
44693         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44694         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44695         listen).
44696
44697 2008-10-08  Eric Blake  <ebb9@byu.net>
44698
44699         GNUmakefile: add 'make version' target
44700         * top/GNUmakefile (_curr-ver): Split version update rules...
44701         (version): ...into a target.
44702
44703 2008-10-07  Bruno Haible  <bruno@clisp.org>
44704
44705         Use a more portable replacement expression for -0.0L.
44706         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44707         instead of -0.0L. Fix m4 quotation.
44708
44709         * tests/test-signbit.c: Include <float.h>.
44710         (minus_zero): New variable.
44711         (test_signbitl): Use minus_zero instead of -zero.
44712         * modules/signbit-tests (Depends-on): Add float.
44713
44714         * tests/test-ceill.c: Include <float.h>.
44715         (zero): Remove variable.
44716         (minus_zero): New variable.
44717         (main): Use minus_zero instead of -zero.
44718         * modules/ceill-tests (Depends-on): Add float.
44719
44720         * tests/test-floorl.c: Include <float.h>.
44721         (zero): Remove variable.
44722         (minus_zero): New variable.
44723         (main): Use minus_zero instead of -zero.
44724         * modules/floorl-tests (Depends-on): Add float.
44725
44726         * tests/test-roundl.c: Include <float.h>.
44727         (zero): Remove variable.
44728         (minus_zero): New variable.
44729         (main): Use minus_zero instead of -zero.
44730         * modules/roundl-tests (Depends-on): Add float.
44731
44732         * tests/test-truncl.c: Include <float.h>.
44733         (zero): Remove variable.
44734         (minus_zero): New variable.
44735         (main): Use minus_zero instead of -zero.
44736         * modules/truncl-tests (Depends-on): Add float.
44737
44738         * tests/test-frexpl.c (zero): Remove variable.
44739         (minus_zero): New variable.
44740         (main): Use minus_zero instead of -zero.
44741         * modules/frexpl-tests (Depends-on): Add float.
44742
44743         * tests/test-isnan.c (zerol): Remove variable.
44744         (minus_zerol): New variable.
44745         (test_long_double): Use minus_zerol instead of -zerol.
44746         * modules/isnan-tests (Depends-on): Add float.
44747
44748         * tests/test-isnanl.h (zero): Remove variable.
44749         (minus_zero): New variable.
44750         (main): Use minus_zero instead of -zero.
44751         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44752         * modules/isnanl-tests (Depends-on): Add float.
44753
44754         * tests/test-ldexpl.c (zero): Remove variable.
44755         (minus_zero): New variable.
44756         (main): Use minus_zero instead of -zero.
44757         * modules/ldexpl-tests (Depends-on): Add float.
44758
44759         * tests/test-snprintf-posix.h (zerol): Remove variable.
44760         (minus_zerol): New variable.
44761         (test_function): Use minus_zerol instead of -zerol.
44762         * modules/snprintf-posix-tests (Depends-on): Add float.
44763         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44764
44765         * tests/test-sprintf-posix.h (zerol): Remove variable.
44766         (minus_zerol): New variable.
44767         (test_function): Use minus_zerol instead of -zerol.
44768         * modules/sprintf-posix-tests (Depends-on): Add float.
44769         * modules/vsprintf-posix-tests (Depends-on): Add float.
44770
44771         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44772         (minus_zerol): New variable.
44773         (test_function): Use minus_zerol instead of -zerol.
44774         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44775
44776         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44777         (minus_zerol): New variable.
44778         (test_function): Use minus_zerol instead of -zerol.
44779         * modules/vasprintf-posix-tests (Depends-on): Add float.
44780
44781 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44782
44783         * MODULES.html.sh (Support for building documentation): Mention
44784         pmccabe2html.  Sort entries.
44785
44786         Add pmccabe2html module, from gnupdf.
44787         * build-aux/pmccabe.css: New file.
44788         * build-aux/pmccabe2html: New file.
44789         * m4/pmccabe2html.m4: New file.
44790         * modules/pmccabe2html: New file.
44791
44792 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44793
44794         flock: new module
44795         * MODULES.html.sh: Add to list of modules.
44796         * lib/flock.c: flock implementation for Windows and Unix systems
44797         which have fcntl.
44798         * doc/glibc-functions/flock.texi: Update documentation.
44799         * lib/sys_file.in.h: <sys/file.h> header file.
44800         * m4/flock.m4: M4 macros.
44801         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44802         * modules/flock: flock module.
44803         * modules/flock-tests: flock tests module.
44804         * modules/sys_file: sys/file.h module.
44805         * tests/test-flock.c: test suite for flock.
44806
44807 2008-10-06  Jim Meyering  <meyering@redhat.com>
44808
44809         bootstrap: check for LT_INIT more portably still ;-)
44810         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44811         Spotted by Bruno Haible.
44812
44813 2008-10-06  Eric Blake  <ebb9@byu.net>
44814
44815         test-signbit: avoid tripping Irix cc bug on -0.0L
44816         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44817         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44818         entire testsuite consistent and avoids an Irix 6.2 bug.
44819
44820 2008-10-05  Bruno Haible  <bruno@clisp.org>
44821             Jim Meyering  <jim@meyering.net>
44822
44823         Add an option for ignoring EPIPE during close_stdout.
44824         * lib/closeout.h: Include <stdbool.h>.
44825         (close_stdout_set_ignore_EPIPE): New declaration.
44826         * lib/closeout.c: Include <stdbool.h>.
44827         (ignore_EPIPE): New variable.
44828         (close_stdout_set_ignore_EPIPE): New function.
44829         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44830         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44831         failure.
44832         * modules/closeout (Depends-on): Add stdbool.
44833
44834 2008-10-05  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/accept: New file.
44837         * modules/bind: New file.
44838         * modules/connect: New file.
44839         * modules/getpeername: New file.
44840         * modules/getsockname: New file.
44841         * modules/getsockopt: New file.
44842         * modules/listen: New file.
44843         * modules/recv: New file.
44844         * modules/recvfrom: New file.
44845         * modules/send: New file.
44846         * modules/sendto: New file.
44847         * modules/setsockopt: New file.
44848         * modules/socket: New file.
44849         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44850         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44851         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44852         the particular module is requested. Add a link warning when the
44853         particular module is not requested.
44854         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44855         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44856         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44857         the particular module is requested.
44858         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44859         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44860         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44861         * modules/sys_socket (Depends-on): Add link-warning.
44862         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44863         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44864         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44865         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44866         GL_LINK_WARNING.
44867         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44868         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44869         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44870         * doc/posix-functions/getpeername.texi: Mention the new module
44871         'getpeername'.
44872         * doc/posix-functions/getsockname.texi: Mention the new module
44873         'getsockname'.
44874         * doc/posix-functions/getsockopt.texi: Mention the new module
44875         'getsockopt'.
44876         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44877         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44878         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44879         * doc/posix-functions/send.texi: Mention the new module 'send'.
44880         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44881         * doc/posix-functions/setsockopt.texi: Mention the new module
44882         'setsockopt'.
44883         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44884         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44885         listen, connect, accept.
44886         * modules/select-tests (Depends-on): Likewise.
44887
44888 2008-10-05  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/winsock.c (strerror): Remove unused #undef.
44891         (rpl_close): Remove unused local variable.
44892
44893         * modules/sys_socket (Depends-on); Add errno.
44894
44895 2008-10-05  Bruno Haible  <bruno@clisp.org>
44896
44897         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44898         (select): Add a link warning when the 'select' module is not used.
44899         * modules/sys_select (Depends-on): Add link-warning.
44900         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44901         Suggested by Paolo Bonzini.
44902
44903 2008-10-05  Jim Meyering  <meyering@redhat.com>
44904
44905         bootstrap: check for LT_INIT more portably
44906         * build-aux/bootstrap: Avoid using grep -E, since it's not
44907         portable enough.  Suggestion from Bruno Haible.
44908
44909 2008-10-05  Bruno Haible  <bruno@clisp.org>
44910
44911         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44912         as being fixed by gnulib.
44913
44914 2008-10-05  Bruno Haible  <bruno@clisp.org>
44915
44916         * modules/select-tests: New file, mostly copied from
44917         modules/sys_select-tests.
44918         * tests/test-select.c: New file, mostly copied from
44919         tests/test-sys_select.c.
44920         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44921         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44922         (Makefile.am): Remove test_sys_select_LDADD.
44923
44924         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44925         to an undefined symbol, for an error message.
44926         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44927         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44928         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44929         winsock-select.c here.
44930         * modules/sys_select (Files): Remove lib/winsock-select.c.
44931         (Depends-on): Remove alloca.
44932         (Makefile.am): Substitute GNULIB_SELECT.
44933         * modules/select: New file.
44934         * doc/posix-functions/select.texi: Update.
44935
44936 2008-10-05  Bruno Haible  <bruno@clisp.org>
44937
44938         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44939         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44940         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44941         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44942         getdtablesize.
44943         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44944         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44945
44946 2008-10-05  Bruno Haible  <bruno@clisp.org>
44947
44948         * modules/getdtablesize-tests: New file.
44949         * tests/test-getdtablesize.c: New file.
44950
44951         New module 'getdtablesize'.
44952         * lib/unistd.in.h (getdtablesize): New declaration.
44953         * lib/getdtablesize.c: New file.
44954         * m4/getdtablesize.m4: New file.
44955         * modules/getdtablesize: New file.
44956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44957         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44958         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44959         HAVE_GETDTABLESIZE.
44960         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44961
44962 2008-10-05  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/sched (Makefile.am): Fix typo.
44965         Reported by Simon Josefsson.
44966
44967 2008-10-05  Jim Meyering  <meyering@redhat.com>
44968
44969         bootstrap: check for LT_INIT, too
44970         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44971         are deprecated.  Suggestion from Ralf Wildenhues.
44972
44973 2008-10-05  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44976         overriding them by ours.
44977         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44978
44979 2008-10-05  Jim Meyering  <meyering@redhat.com>
44980
44981         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44982         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44983         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44984
44985 2008-10-04  Bruno Haible  <bruno@clisp.org>
44986
44987         * modules/dup2 (License): Change to LGPLv2+.
44988         * modules/sleep (License): Likewise.
44989         * modules/perror (License): Likewise.
44990         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44991         Blake.
44992         * modules/signal (License): Likewise.
44993         * modules/sigprocmask (License): Likewise.
44994         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44995         Meyering.
44996
44997 2008-10-04  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45000         Reported by Rainer Tammer <tammer@tammer.net>.
45001
45002 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45003             Bruno Haible  <bruno@clisp.org>
45004
45005         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45006         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45007         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45008
45009 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45010
45011         filevercmp: new module
45012         * lib/filevercmp.h: New function filevercmp comparing version strings.
45013         * lib/filevercmp.c: Implementation of filevercmp function.
45014         * modules/filevercmp: Module metadata.
45015         * tests/test-filevercmp.c: Unit test for new module.
45016         * modules/filevercmp-tests: Unit test metadata.
45017         * MODULES.html.sh: Add filevercmp module.
45018
45019 2008-10-03  Bruno Haible  <bruno@clisp.org>
45020
45021         * lib/c-ctype.h: Add comment.
45022         Reported by Jim Meyering.
45023
45024 2008-10-02  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45027
45028 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45029
45030         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45031         name of bootstrap.conf accordingly.
45032
45033 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45034
45035         * build-aux/bootstrap: Install git-merge-changelog configuration
45036         items into .gitconfig if needed.
45037
45038 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45039
45040         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45041         git repository, and initialize/update it accordingly.
45042
45043 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45044
45045         * modules/fsync-tests: New file.
45046         * tests/test-fsync.c: New file.
45047
45048         New module 'fsync'.
45049         * lib/fsync.c: New file.
45050         * m4/fsync.m4: New file.
45051         * modules/fsync: New file.
45052         * lib/unistd.in.h (fsync): New declaration.
45053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45054         GNULIB_FSYNC and HAVE_FSYNC.
45055         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45056         * MODULES.html.sh (posix_functions): Add fsync.
45057         * doc/posix-functions/fsync.texi: Mention the new module.
45058
45059 2008-10-02  Jim Meyering  <meyering@redhat.com>
45060
45061         fts.c: sync with similar code from coreutils' remove.c
45062         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45063         Guard also with "#if defined __linux__", since for now at least,
45064         this code is Linux-kernel-specific.
45065
45066 2008-10-02  Jim Meyering  <meyering@redhat.com>
45067
45068         fts: bug fixes
45069         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45070         Include <sys/vfs.h>, not <sys/statfs.h>.
45071
45072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45073         Include <sys/vfs.h>, not <sys/statfs.h>.
45074
45075 2008-10-01  Bruno Haible  <bruno@clisp.org>
45076
45077         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45079         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45080         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45081         * doc/posix-functions/posix_spawnp.texi: Likewise.
45082         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45083         whether posix_spawn actually works.
45084         * m4/pipe.m4 (gl_PIPE): Likewise.
45085         * modules/execute (Files): Add m4/posix_spawn.m4.
45086         * modules/pipe (Files): Add m4/posix_spawn.m4.
45087         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45088
45089 2008-10-01  Jim Meyering  <meyering@redhat.com>
45090
45091         remove trailing spaces
45092         * NEWS: Likewise.
45093         * lib/poll.c (poll): Likewise.
45094         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45095         * lib/winsock.c (rpl_close): Likewise.
45096         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45097         * modules/yield: Likewise.
45098         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45099         * tests/test-sys_select.c (connect_to_socket): Likewise.
45100
45101         fts.c: adjust a new interface to be more generally useful
45102         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45103         (fts_build): Adjust caller.
45104
45105 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45106
45107         * modules/cond-tests: New file.
45108         * tests/test-cond.c: New file.
45109
45110 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45111             Bruno Haible  <bruno@clisp.org>
45112
45113         * modules/cond (Dependencies): Add errno, time.
45114         * lib/glthread/cond.h: Include <time.h>.
45115         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45116         across platforms.
45117
45118 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45119             Bruno Haible  <bruno@clisp.org>
45120
45121         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45122
45123 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45124             Bruno Haible  <bruno@clisp.org>
45125
45126         * modules/tls-tests (Depends-on): Add thread, yield.
45127         (configure.ac): Remove all checks.
45128         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45129         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45130         gl_thread_self): Remove definitions. Include glthread/thread.h and
45131         glthread/yield.h instead.
45132         (test_tls): Pass an additional NULL argument to gl_thread_join.
45133
45134 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45135             Bruno Haible  <bruno@clisp.org>
45136
45137         * modules/lock-tests (Depends-on): Add thread, yield.
45138         (configure.ac): Remove all checks.
45139         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45140         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45141         gl_thread_self): Remove definitions. Include glthread/thread.h and
45142         glthread/yield.h instead.
45143         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45144         additional NULL argument to gl_thread_join.
45145
45146 2008-09-30  Bruno Haible  <bruno@clisp.org>
45147
45148         Fix the Win32 implementation of the 'thread' module.
45149         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45150         pointer type.
45151         (gl_thread_self): Invoke gl_thread_self_func.
45152         (gl_thread_self_func): New declaration.
45153         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45154         (do_init_self_key, init_self_key): New functions.
45155         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45156         Remove some fields.
45157         (running_threads, running_lock): Remove variables.
45158         (get_current_thread_handle): New function.
45159         (gl_thread_self_func, wrapper_func, glthread_create_func,
45160         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45161         simplified.
45162
45163 2008-09-30  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45166         files.
45167
45168 2008-09-30  Jim Meyering  <meyering@redhat.com>
45169
45170         fts.m4: correct the test for statfs.f_type
45171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45172         when checking for statfs.f_type.
45173
45174 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45175
45176         tests: avoid some compiler warnings
45177         * tests/test-memchr.c (main): Pass NULL indirectly.
45178         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45179
45180 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45181
45182         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45183         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45184         exactly specified dayshifts.
45185         (dayshift): New rule.
45186         (rel): Add dayshift.
45187         (relative_time_table) [tomorrow, yesterday, today, now]:
45188         Use tDAY_SHIFT in place of tDAY_UNIT.
45189         * tests/test-getdate.c: Add tests for now-disallowed countable
45190         dayshifts, e.g., "4 yesterday ago".
45191
45192 2008-09-29  Bruno Haible  <bruno@clisp.org>
45193
45194         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45195         * tests/test-posix_spawn1.in.sh: Renamed from
45196         tests/test-posix_spawn.in.sh.
45197         * tests/test-posix_spawn2.c: New file.
45198         * tests/test-posix_spawn2.in.sh: New file.
45199         * modules/posix_spawnp-tests (Files): Update.
45200         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45201
45202 2008-09-29  Bruno Haible  <bruno@clisp.org>
45203
45204         Propagate effects of putenv/setenv/unsetenv to child processes.
45205         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45206         * lib/pipe.c (create_pipe): Likewise.
45207
45208 2008-09-29  Bruno Haible  <bruno@clisp.org>
45209
45210         Enable use of shell scripts as executables in mingw.
45211         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45212         run the program as a shell script.
45213         * lib/pipe.c (create_pipe): Likewise.
45214         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45215         resulting array.
45216
45217 2008-09-29  Eric Blake  <ebb9@byu.net>
45218
45219         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45220
45221 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45222
45223         * doc/posix-functions/accept.texi: Update mingw problems.
45224         * doc/posix-functions/bind.texi: Update mingw problems.
45225         * doc/posix-functions/close.texi: Update mingw problems.
45226         * doc/posix-functions/connect.texi: Update mingw problems.
45227         * doc/posix-functions/getpeername.texi: Update mingw problems.
45228         * doc/posix-functions/getsockname.texi: Update mingw problems.
45229         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45230         * doc/posix-functions/ioctl.texi: Update mingw problems.
45231         * doc/posix-functions/listen.texi: Update mingw problems.
45232         * doc/posix-functions/recv.texi: Update mingw problems.
45233         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45234         * doc/posix-functions/select.texi: Update mingw problems.
45235         * doc/posix-functions/send.texi: Update mingw problems.
45236         * doc/posix-functions/sendto.texi: Update mingw problems.
45237         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45238         * doc/posix-functions/socket.texi: Update mingw problems.
45239
45240 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45241             Bruno Haible  <bruno@clisp.org>
45242
45243         * lib/sys_select.in.h: Include sys/time.h.
45244         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45245         * modules/sys_select: Depend on sys_time.
45246         * tests/test-sys_select.c: Test that sys/select.h defines struct
45247         timeval fully.
45248
45249 2008-09-29  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45252         * lib/sys_select.in.h: Likewise.
45253
45254 2008-09-29  Bruno Haible  <bruno@clisp.org>
45255
45256         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45257
45258 2008-09-29  Bruno Haible  <bruno@clisp.org>
45259
45260         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45261         Set LIBSOCKET instead of augmenting LIBS.
45262         * modules/sockets (Link): New section.
45263         * modules/sockets-tests (test_sockets_LDADD): New variable.
45264         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45265         * modules/poll-tests (test_poll_LDADD): New variable.
45266         * NEWS: Document the change.
45267
45268 2008-09-29  Bruno Haible  <bruno@clisp.org>
45269
45270         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45271         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45272         ARPA_INET_H directly.
45273         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45274
45275 2008-09-28  Bruno Haible  <bruno@clisp.org>
45276
45277         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45278         from gl_HEADER_SYS_SOCKET.
45279         (gl_HEADER_SYS_SOCKET): Invoke it.
45280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45281
45282 2008-09-28  Bruno Haible  <bruno@clisp.org>
45283
45284         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45285         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45286         Needed on OSF/1 4.0.
45287
45288 2008-09-28  Bruno Haible  <bruno@clisp.org>
45289
45290         Override open more carefully.
45291         * lib/open.c (orig_open): New function.
45292         (rpl_open): Use orig_open instead of open.
45293         * lib/fcntl.in.h: Add special invocation convention.
45294         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45295         (gl_FUNC_OPEN): Invoke it.
45296
45297         Override freopen more carefully.
45298         * lib/freopen.c (orig_freopen): New function.
45299         (rpl_freopen): Use orig_freopen instead of freopen.
45300         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45301         (gl_FUNC_FREOPEN): Invoke it.
45302
45303         Override fopen more carefully.
45304         * lib/fopen.c (orig_fopen): New function.
45305         (rpl_fopen): Use orig_fopen instead of fopen.
45306         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45307         (gl_FUNC_FOPEN): Invoke it.
45308         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45309
45310 2008-09-28  Bruno Haible  <bruno@clisp.org>
45311
45312         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45313         SIGPIPE.
45314
45315 2008-09-28  Bruno Haible  <bruno@clisp.org>
45316
45317         * tests/test-sigaction.c (handler, main): Disable the check whether
45318         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45319         glibc systems with LinuxThreads.
45320
45321 2008-09-28  Bruno Haible  <bruno@clisp.org>
45322
45323         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45324
45325         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45326         with AIX xlc.
45327         * lib/fcntl.in.h (open): Likewise.
45328         Reported by Rainer Tammer <tammer@tammer.net>.
45329
45330 2008-09-28  Bruno Haible  <bruno@clisp.org>
45331
45332         * modules/posix_spawnp-tests: New file.
45333         * tests/test-posix_spawn.c: New file.
45334         * tests/test-posix_spawn.in.sh: New file.
45335
45336         New module 'posix_spawnp'.
45337         * modules/posix_spawnp: New file.
45338         * lib/spawnp.c: New file, from GNU libc with modifications.
45339         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45340
45341         New module 'posix_spawn'.
45342         * modules/posix_spawn: New file.
45343         * lib/spawn.c: New file, from GNU libc with modifications.
45344         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45345
45346         New module 'posix_spawnattr_destroy'.
45347         * modules/posix_spawnattr_destroy: New file.
45348         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45349         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45350         module.
45351
45352         New module 'posix_spawnattr_setsigmask'.
45353         * modules/posix_spawnattr_setsigmask: New file.
45354         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45355         modifications.
45356         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45357         new module.
45358
45359         New module 'posix_spawnattr_getsigmask'.
45360         * modules/posix_spawnattr_getsigmask: New file.
45361         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45362         modifications.
45363         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45364         new module.
45365
45366         New module 'posix_spawnattr_setsigdefault'.
45367         * modules/posix_spawnattr_setsigdefault: New file.
45368         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45369         modifications.
45370         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45371         new module.
45372
45373         New module 'posix_spawnattr_getsigdefault'.
45374         * modules/posix_spawnattr_getsigdefault: New file.
45375         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45376         modifications.
45377         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45378         new module.
45379
45380         New module 'posix_spawnattr_setschedpolicy'.
45381         * modules/posix_spawnattr_setschedpolicy: New file.
45382         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45383         modifications.
45384         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45385         new module.
45386
45387         New module 'posix_spawnattr_getschedpolicy'.
45388         * modules/posix_spawnattr_getschedpolicy: New file.
45389         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45390         modifications.
45391         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45392         new module.
45393
45394         New module 'posix_spawnattr_setschedparam'.
45395         * modules/posix_spawnattr_setschedparam: New file.
45396         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45397         modifications.
45398         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45399         new module.
45400
45401         New module 'posix_spawnattr_getschedparam'.
45402         * modules/posix_spawnattr_getschedparam: New file.
45403         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45404         modifications.
45405         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45406         new module.
45407
45408         New module 'posix_spawnattr_setpgroup'.
45409         * modules/posix_spawnattr_setpgroup: New file.
45410         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45411         modifications.
45412         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45413         module.
45414
45415         New module 'posix_spawnattr_getpgroup'.
45416         * modules/posix_spawnattr_getpgroup: New file.
45417         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45418         modifications.
45419         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45420         module.
45421
45422         New module 'posix_spawnattr_setflags'.
45423         * modules/posix_spawnattr_setflags: New file.
45424         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45425         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45426         module.
45427
45428         New module 'posix_spawnattr_getflags'.
45429         * modules/posix_spawnattr_getflags: New file.
45430         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45431         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45432         module.
45433
45434         New module 'posix_spawnattr_init'.
45435         * modules/posix_spawnattr_init: New file.
45436         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45437         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45438         module.
45439
45440         New module 'posix_spawn_file_actions_destroy'.
45441         * modules/posix_spawn_file_actions_destroy: New file.
45442         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45443         modifications.
45444         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45445         the new module.
45446
45447         New module 'posix_spawn_file_actions_addopen'.
45448         * modules/posix_spawn_file_actions_addopen: New file.
45449         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45450         modifications.
45451         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45452         the new module.
45453
45454         New module 'posix_spawn_file_actions_adddup2'.
45455         * modules/posix_spawn_file_actions_adddup2: New file.
45456         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45457         modifications.
45458         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45459         the new module.
45460
45461         New module 'posix_spawn_file_actions_addclose'.
45462         * modules/posix_spawn_file_actions_addclose: New file.
45463         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45464         modifications.
45465         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45466         the new module.
45467
45468         New module 'posix_spawn_file_actions_init'.
45469         * modules/posix_spawn_file_actions_init: New file.
45470         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45471         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45472         new module.
45473
45474         New module 'posix_spawn-internal'.
45475         * modules/posix_spawn-internal: New file.
45476         * lib/spawn_int.h: New file, from GNU libc with modifications.
45477         * lib/spawni.c: New file, from GNU libc with modifications.
45478         * m4/posix_spawn.m4: New file.
45479
45480         New module 'spawn'.
45481         * modules/spawn: New file.
45482         * lib/spawn.in.h: New file, from GNU libc with modifications.
45483         * m4/spawn_h.m4: New file.
45484         * doc/posix-headers/spawn.texi: Mention the new module.
45485
45486 2008-09-28  Bruno Haible  <bruno@clisp.org>
45487
45488         * modules/sched-tests: New file.
45489         * tests/test-sched.c: New file.
45490
45491         New module 'sched'.
45492         * modules/sched: New file.
45493         * lib/sched.in.h: New file.
45494         * m4/sched_h.m4: New file.
45495         * doc/posix-headers/sched.texi: Mention the new module.
45496
45497 2008-09-27  Eric Blake  <ebb9@byu.net>
45498
45499         Fix previous patch, and tweak references to $0.
45500         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45501         (func_version, func_gnulib_dir): Don't call this program
45502         gnulib-tool.
45503         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45504         with using $0 in function.
45505         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45506         (func_fatal_error): Reuse the name the user invoked us with.
45507
45508 2008-09-27  Bruno Haible  <bruno@clisp.org>
45509
45510         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45511         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45512         (gl_ICONV_H): Not here.
45513         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45514         instead of assigning ICONV_H directly.
45515
45516         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45518         WCHAR_H directly.
45519
45520 2008-09-27  Bruno Haible  <bruno@clisp.org>
45521
45522         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45523         * modules/arpa_inet (Depends-on): Add link-warning.
45524         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45525         * modules/unistd (Makefile.am): Likewise.
45526
45527 2008-09-26  Bruno Haible  <bruno@clisp.org>
45528
45529         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45530         variables.
45531         (func_version): Essentially copied from gnulib-tool.
45532         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45533         func_readlink): Copied from gnulib-tool.
45534
45535 2008-09-26  Bruno Haible  <bruno@clisp.org>
45536
45537         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45538         invoking git-version-gen.
45539
45540 2008-09-26  Bruno Haible  <bruno@clisp.org>
45541
45542         * posix-modules: Update to directory names changed on 2008-01-19.
45543         Remove commas in output before splitting into words. No more need to
45544         avoid 'ftruncate' since 2007-02-19.
45545
45546 2008-09-26  Bruno Haible  <bruno@clisp.org>
45547
45548         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45549
45550 2008-09-26  Bruno Haible  <bruno@clisp.org>
45551
45552         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45553         * modules/fwriteerror (Depends-on): Add errno.
45554
45555 2008-09-26  Bruno Haible  <bruno@clisp.org>
45556
45557         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45558         * tests/test-vc-list-files-cvs.sh: Likewise.
45559
45560 2008-09-26  Bruno Haible  <bruno@clisp.org>
45561
45562         * doc/posix-headers/sys_resource.texi: Reorder items.
45563
45564 2008-09-26  Jim Meyering  <meyering@redhat.com>
45565
45566         fts: tweak inode comparison function
45567         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45568         inode numbers, as documented.
45569
45570         fts: sort dirent entries on inode number before traversing
45571         This avoids a quadratic, seek-related performance penalty when
45572         operating on a directory containing many entries (measurable at 10k;
45573         3.5 hours at 2 million entries with a cold cache) on certain types
45574         of file systems, including ext3 and ext4, but not tmpfs.
45575         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45576         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45577         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45578         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45579         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45580         (fts_build): Set the stat.st_ino member from D_INO.
45581         If it is likely to be useful, sort dirent entries on inode number.
45582
45583         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45584         and the struct statfs.f_type member.
45585         * modules/fts (Depends-on): Add d-ino.
45586
45587 2008-09-26  Bruno Haible  <bruno@clisp.org>
45588
45589         * modules/sigpipe-die (Depends-on): Add sigpipe.
45590
45591         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45592         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45593         and GNULIB_STDIO_H_SIGPIPE are set.
45594         * lib/stdio-write.c: New file.
45595         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45596         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45597         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45598         REPLACE_STDIO_WRITE_FUNCS.
45599         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45600         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45601         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45602         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45603         * modules/stdio (Files): Add lib/stdio-write.c.
45604         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45605         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45606         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45607         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45608         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45609         REPLACE_FPRINTF_POSIX.
45610         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45611         REPLACE_PRINTF_POSIX.
45612         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45613         REPLACE_VFPRINTF_POSIX.
45614         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45615         REPLACE_VPRINTF_POSIX.
45616         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45617         SIGPIPE issue.
45618         * doc/posix-functions/fputc.texi: Likewise.
45619         * doc/posix-functions/fputs.texi: Likewise.
45620         * doc/posix-functions/fwrite.texi: Likewise.
45621         * doc/posix-functions/printf.texi: Likewise.
45622         * doc/posix-functions/putc.texi: Likewise.
45623         * doc/posix-functions/putchar.texi: Likewise.
45624         * doc/posix-functions/puts.texi: Likewise.
45625         * doc/posix-functions/vfprintf.texi: Likewise.
45626         * doc/posix-functions/vprintf.texi: Likewise.
45627
45628         * modules/safe-write (Depends-on): Add write.
45629
45630         * modules/sigpipe-tests: New file.
45631         * tests/test-sigpipe.c: New file.
45632         * tests/test-sigpipe.sh: New file.
45633
45634         * modules/write: New file.
45635         * lib/unistd.in.h: Include <sys/types.h>.
45636         (write): New declaration.
45637         * lib/write.c: New file.
45638         * m4/write.m4: New file.
45639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45640         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45641         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45642         GNULIB_WRITE, REPLACE_WRITE.
45643         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45644         and the SIGPIPE issue.
45645
45646         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45647         (raise): New declaration.
45648         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45649         (ext_signal): New function.
45650         (rpl_raise): New function.
45651         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45652         GNULIB_SIGNAL_H_SIGPIPE.
45653         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45654         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45655
45656         * modules/sigpipe: New file.
45657         * m4/sigpipe.m4: New file.
45658
45659 2008-09-25  Derek Price  <derek@ximbiot.com>
45660             Bruno Haible  <bruno@clisp.org>
45661
45662         * gnulib-tool (func_import): Report all license incompatibilities, not
45663         just the first one.
45664
45665 2008-09-25  Bruno Haible  <bruno@clisp.org>
45666
45667         * gnulib-tool (func_import): When computing the edits, consider not
45668         only the Makefile.ams that exist but also those that will be generated.
45669
45670 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45671
45672         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45673         fixes gnulib-tool --test warning about duplicate dependency.
45674
45675 2008-09-25  Bruno Haible  <bruno@clisp.org>
45676
45677         * gnulib-tool: Don't ask the user to perform edits in the generated
45678         Makefile.ams.
45679         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45680         apply to the Makefile.am being generated.
45681         (func_emit_tests_Makefile_am): Execute edits that apply to the
45682         Makefile.am being generated.
45683         (func_import): Setup list of Makefile.am edits before emitting the
45684         Makefile.ams, not at the end.
45685         (func_create_testdir): Update.
45686         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45687
45688 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45689
45690         * gnulib-tool (func_import): Store the --tests-base option in the
45691         comment in gnulib-cache.m4.
45692
45693 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45694
45695         * NEWS: Document increased portability that sys_select now provides.
45696
45697         * lib/sys_select.in.h: Install select wrapper.
45698         * lib/sys_socket.in.h: Use more descriptive name when there is no
45699         select wrapper.
45700         * lib/winsock-select.c: New.
45701         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45702         Require gl_HEADER_SYS_SOCKET.
45703         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45704         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45705         * tests/test-sys_select.c: Add functional tests.
45706
45707 2008-09-24  Eric Blake  <ebb9@byu.net>
45708
45709         open, fopen: close fd leak in last patch
45710         * lib/open.c (rpl_open): Close fd before returning error.
45711         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45712         * doc/posix-functions/open.texi (open): Document that Irix also
45713         has the bug.
45714         * doc/posix-functions/fopen.texi (fopen): Likewise.
45715         Reported by Paolo Bonzini.
45716
45717 2008-09-24  Bruno Haible  <bruno@clisp.org>
45718
45719         Ensure that a filename ending in a slash cannot be used to access a
45720         non-directory.
45721         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45722         to check whether it's really a directory.
45723         * lib/fopen.c: Include fcntl.h, unistd.h.
45724         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45725         and fdopen().
45726         * modules/fopen (Depends-on): Add unistd.
45727         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45728         * tests/test-fopen.c (main): Likewise.
45729         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45730         * doc/posix-functions/fopen.texi: Likewise.
45731         Reported by Eric Blake.
45732
45733 2008-09-23  Eric Blake  <ebb9@byu.net>
45734
45735         c-stack: avoid compiler optimizations when provoking overflow
45736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45737         recursion harder to optimize, to ensure a stack overflow occurs.
45738         * tests/test-c-stack.c (recurse): Likewise.
45739         Borrowed from libsigsegv.
45740
45741         c-stack: work around Irix sigaltstack bug
45742         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45743         whether sigaltstack uses wrong end of stack_t (copied in part from
45744         libsigsegv).
45745         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45746         Irix bug, without requiring an over-allocation.
45747         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45748         bug.
45749
45750         fopen: document mingw bug on directories
45751         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45752         not allowing a stream visiting a directory, even though reading
45753         from such a stream is not portable.
45754
45755 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45756
45757         * lib/poll.c: Rewrite.
45758         * modules/poll: Depend on alloca.
45759
45760 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45761
45762         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45763         instead define prototypes for a full set of wrappers.  Ensure
45764         that Cygwin does not use the compatibility code, which is only
45765         for MinGW.
45766         * lib/winsock.c: New.
45767         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45768         * modules/sys_socket: Add lib/winsock.c.
45769
45770         * modules/poll-tests: Add errno and perror.
45771         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45772
45773 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45774
45775         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45776
45777 2008-09-23  Bruno Haible  <bruno@clisp.org>
45778
45779         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45780         * doc/glibc-functions/*: Likewise.
45781
45782 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45783
45784         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45785         success.
45786
45787 2008-09-22  Eric Blake  <ebb9@byu.net>
45788             Bruno Haible  <bruno@clisp.org>
45789
45790         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45791         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45792         supply %A but mishandle pseudo-NaN.
45793         Reported by Simon Josefsson.
45794
45795 2008-09-21  Bruno Haible  <bruno@clisp.org>
45796
45797         * tests/test-lock.c (main): Tweak skip message.
45798         * tests/test-tls.c (main): Likewise.
45799
45800 2008-09-21  Bruno Haible  <bruno@clisp.org>
45801
45802         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45803         whether 'struct sigaction' has sa_sigaction here...
45804         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45805         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45806
45807 2008-09-21  Bruno Haible  <bruno@clisp.org>
45808
45809         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45810         section.
45811         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45812         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45813         the new section.
45814         (Support for obsolete systems lacking POSIX:2001): New section.
45815         (String handling <string.h>): Move strdup to the new section.
45816         Suggested by Simon Josefsson and Paolo Bonzini.
45817
45818 2008-09-21  Bruno Haible  <bruno@clisp.org>
45819
45820         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45821         exponents in %e and %g results on 'long double'. Needed for mingw's
45822         improved *printf functions.
45823         * tests/test-vasprintf-posix.c (test_function): Likewise.
45824         * tests/test-snprintf-posix.h (test_function): Likewise.
45825         * tests/test-sprintf-posix.h (test_function): Likewise.
45826         Reported by Eric Blake.
45827
45828 2008-09-21  Bruno Haible  <bruno@clisp.org>
45829
45830         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45831         * tests/test-sprintf-posix.h (test_function): Likewise.
45832
45833 2008-09-21  Bruno Haible  <bruno@clisp.org>
45834
45835         * modules/getpass (Depends-on): Add strdup-posix.
45836
45837         New module 'strdup-posix'.
45838         * modules/strdup-posix: New file.
45839         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45840         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45842         REPLACE_STRDUP.
45843         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45844         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45845         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45846         strdup-posix.
45847
45848         * modules/strdup (Depends-on): Remove malloc-posix.
45849
45850 2008-09-20  Bruno Haible  <bruno@clisp.org>
45851
45852         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45853         Wildenhues.
45854
45855 2008-09-20  Bruno Haible  <bruno@clisp.org>
45856
45857         Ensure that wint_t gets defined on IRIX 5.3.
45858         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45859         * lib/wctype.in.h (wint_t): Likewise.
45860         (__wctype_wint_t): Remove type.
45861         (isw*): Use wint_t instead of __wctype_wint_t.
45862         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45863         * modules/wchar (Files): Add m4/wint_t.m4.
45864         (Makefile.am): Substitute HAVE_WINT_T.
45865         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45866         * tests/test-wctype.c: Check that wint_t is defined.
45867         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45868         * doc/posix-headers/wctype.texi: Likewise.
45869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45870
45871 2008-09-18  Bruno Haible  <bruno@clisp.org>
45872
45873         * gnulib-tool (func_exit): Update comment.
45874
45875 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45876
45877         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45878         assumes strdup exists and does not depend on strdup to return
45879         ENOMEM on out of memory conditions.
45880
45881 2008-09-18  Bruno Haible  <bruno@clisp.org>
45882
45883         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45884         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45885         digits for the exponent.
45886
45887 2008-09-18  Jim Meyering  <meyering@redhat.com>
45888             Bruno Haible  <bruno@clisp.org>
45889
45890         * lib/vasnprintf.c (decimal_point_char): Define also if
45891         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45892
45893 2008-09-16  Bruno Haible  <bruno@clisp.org>
45894         and Eric Blake  <ebb9@byu.net>
45895
45896         vasnprintf: support Irix 5.3
45897         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45898         that mishandle long double infinity.
45899         Reported by Tom G. Christensen.
45900
45901 2008-09-16  Bruno Haible  <bruno@clisp.org>
45902
45903         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45904         Solaris 9.
45905         * doc/glibc-functions/alphasort.texi: Likewise.
45906         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45907
45908 2008-09-16  Jim Meyering  <meyering@redhat.com>
45909
45910         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45911         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45912         a umask modification leak out of a subshell.  Otherwise, the
45913         opensolaris /bin/sh would be accepted and thus cause unwarranted
45914         failures in the coreutils test suite.
45915
45916 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45917
45918         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45919         to succeed.
45920
45921 2008-09-16  Jim Meyering  <meyering@redhat.com>
45922
45923         avoid spurious test failure when library is built without ACL support
45924         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45925         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45926         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45927         * tests/test-copy-acl.sh: Likewise.
45928
45929 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45930
45931         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45932         based on character occurrence counts.
45933
45934 2008-09-15  Eric Blake  <ebb9@byu.net>
45935
45936         tests: avoid some compiler warnings
45937         * tests/test-memchr.c (main): Pass NULL indirectly.
45938         * tests/test-closein.c (main): Avoid unused variable.
45939
45940 2008-09-15  Bruno Haible  <bruno@clisp.org>
45941
45942         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45943         are missing on OpenBSD 4.0 individually.
45944         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45945
45946 2008-09-15  Bruno Haible  <bruno@clisp.org>
45947
45948         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45949         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45950         * doc/posix-functions/perror.texi: Likewise.
45951         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45952         is missing.
45953         Reported by Eric Blake.
45954
45955         * lib/errno.in.h: Use replacement values >= 2000.
45956         Reported by Eric Blake.
45957
45958 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45959
45960         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45961         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45962         limit.
45963         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45964         compareseq was aborted.
45965
45966 2008-09-14  Bruno Haible  <bruno@clisp.org>
45967
45968         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45969         yvec_edit_count.
45970         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45971         (fstrcmp_bounded): Simplify result computation accordingly.
45972
45973 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45974
45975         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45976         (fstrcmp): Define in terms of fstrcmp_bounded.
45977         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45978         lower_bound argument.
45979         Return quickly if the result is certainly < lower_bound.
45980         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45981
45982 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45983
45984         * lib/diffseq.h (EARLY_ABORT): New macro.
45985         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45986         evaluates to true.
45987
45988 2008-09-14  Bruno Haible  <bruno@clisp.org>
45989
45990         * modules/perror-tests: New file.
45991         * tests/test-perror.sh: New file.
45992         * tests/test-perror.c: New file.
45993
45994         New module 'perror'.
45995         * lib/stdio.in.h (perror): New declaration.
45996         * lib/perror.c: New file.
45997         * m4/perror.m4: New file.
45998         * modules/perror: New file.
45999         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46000         * doc/posix-functions/perror.texi: Mention the perror module.
46001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46002         REPLACE_PERROR.
46003         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46004         REPLACE_PERROR.
46005
46006 2008-09-14  Bruno Haible  <bruno@clisp.org>
46007
46008         * modules/stdio (Makefile.am): Reorder to match the order in
46009         lib/stdio.in.h.
46010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46011
46012 2008-09-13  Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46015
46016 2008-09-13  Bruno Haible  <bruno@clisp.org>
46017
46018         Extend strerror to cover the added errno values.
46019         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46020         (rpl_strerror): Provide error messages for the added errno values and
46021         for the WSA* values.
46022         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46023         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46024         strerror.
46025         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46026         * modules/strerror (Depends-on): Add errno.
46027         * doc/posix-functions/strerror.texi: Document the change.
46028         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46029         and EOVERFLOW.
46030
46031 2008-09-13  Bruno Haible  <bruno@clisp.org>
46032
46033         * modules/EOVERFLOW: Remove file.
46034         * m4/eoverflow.m4: Remove file.
46035         * modules/EOVERFLOW-tests: Remove file.
46036         * tests/test-EOVERFLOW.c: Remove file.
46037         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46038         * modules/ftell (Depends-on): Likewise.
46039         * modules/getdelim (Depends-on): Likewise.
46040         * modules/getugroups (Depends-on): Likewise.
46041         * modules/poll (Depends-on): Likewise.
46042         * modules/snprintf (Depends-on): Likewise.
46043         * modules/sprintf-posix (Depends-on): Likewise.
46044         * modules/vasnprintf (Depends-on): Likewise.
46045         * modules/vasprintf (Depends-on): Likewise.
46046         * modules/vfprintf-posix (Depends-on): Likewise.
46047         * modules/vsnprintf (Depends-on): Likewise.
46048         * modules/vsprintf-posix (Depends-on): Likewise.
46049         * modules/xvasprintf (Depends-on): Likewise.
46050         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46051         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46052         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46053         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46054         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46055         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46056         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46057         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46058         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46059         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46060         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46061         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46062         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46063         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46064         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46065         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46066         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46067         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46068         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46069         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46070         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46071         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46072         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46073         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46074         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46075         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46076         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46077         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46078         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46079         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46080         * MODULES.html.sh: Remove EOVERFLOW.
46081         * NEWS: Mention the change.
46082
46083 2008-09-13  Bruno Haible  <bruno@clisp.org>
46084
46085         * modules/errno-tests: New file.
46086         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46087
46088         * lib/errno.in.h: New file.
46089         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46090         * modules/errno: New file.
46091         * doc/posix-headers/errno.texi: Update documentation.
46092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46093
46094 2008-09-13  Bruno Haible  <bruno@clisp.org>
46095
46096         * tests/test-poll.c: Use #if for native Windows, rather than testing
46097         __MSVCRT__.
46098
46099 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46100             Bruno Haible  <bruno@clisp.org>
46101
46102         * lib/glob.c: Don't include <pwd.h> on native Windows.
46103         (WINDOWS32): New macro.
46104         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46105
46106 2008-09-13  Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46109         (ETIMEDOUT): Remove macro.
46110         (glthread_cond_timedwait_multithreaded): New declaration.
46111         (glthread_cond_timedwait): Use it.
46112         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46113         (glthread_cond_timedwait_multithreaded): New function.
46114
46115 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46116
46117         * modules/poll-tests: Do not check for io.h.
46118         * tests/test-poll.c: Check for __MSVCRT__ instead.
46119
46120 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46121
46122         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46123         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46124         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46125
46126 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46127
46128         * modules/poll-tests: New.
46129         * tests/test-poll.c: New.
46130
46131 2008-09-12  Eric Blake  <ebb9@byu.net>
46132
46133         frexp: test for NetBSD failure on -0.0
46134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46135         not all, bugs from NetBSD 3.0 have been fixed.
46136         * doc/posix-functions/frexp.texi (frexp): Document bug.
46137         Reported by Thomas Klausner.
46138
46139         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46140         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46141         literal -0.0.
46142         Reported by Jonathan C. Patschke <jp@centtech.com>.
46143
46144 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46145
46146         * lib/glthread/cond.h: Use dummy implementation also if
46147         USE_WIN32_THREADS.
46148
46149 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46150
46151         * modules/fnmatch-posix (License): Change to LGPLv2+.
46152         * modules/fnmatch-gnu (License): Likewise.
46153
46154 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46155
46156         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46157
46158 2008-09-11  Jim Meyering  <meyering@redhat.com>
46159
46160         * users.txt: Add gtk-vnc.
46161
46162 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46163
46164         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46165         rotate amounts.
46166
46167         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46168         required for 16-bit and 8-bit rotates.
46169         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46170         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46171         UINT8_MAX instead of hard-coded constants.
46172         Suggested by Paul Eggert.
46173
46174 2008-09-07  Bruno Haible  <bruno@clisp.org>
46175
46176         * tests/test-striconveh.c (main): Check behaviour when converting from
46177         UTF-7.
46178
46179         Make striconveh work better with stateful encodings.
46180         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46181         that iconv does not increment the inptr when returning -1/EINVAL.
46182
46183 2008-09-07  Bruno Haible  <bruno@clisp.org>
46184
46185         * build-aux/config.rpath: Update according to libtool-2.2.6.
46186         * build-aux/config.libpath: Likewise.
46187
46188 2008-09-06  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46191         * lib/freadptr.c (freadptr): Likewise.
46192         * lib/freadseek.c (freadptrinc): Likewise.
46193         Reported by Simon Josefsson.
46194
46195 2008-09-06  Bruno Haible  <bruno@clisp.org>
46196
46197         * modules/freadptr (License): Change to LGPLv2+.
46198         * modules/freadseek (License): Likewise.
46199         Suggested by Eric Blake.
46200
46201         * modules/memchr2 (License): Change to LGPLv2+.
46202         Approved by Eric Blake.
46203
46204 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46205             Bruno Haible  <bruno@clisp.org>
46206
46207         Make gnulib-tool work with native 'sed' on AIX.
46208         * gnulib-tool (sed_noop): New variable.
46209         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46210         func_add_or_update, func_create_testdir): Use it to initialize sed
46211         script variables.
46212         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46213
46214 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46215             Bruno Haible  <bruno@clisp.org>
46216
46217         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46218         also works after #include directives.
46219
46220 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46221
46222         getdate.y: reject an out-of-range timezone value
46223         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46224         the range [-24...+24].  When specified with only one or two digits,
46225         * tests/test-getdate.c: Tests for the fix.
46226         * doc/getdate.texi: Document this change.
46227
46228 2008-09-03  Bruno Haible  <bruno@clisp.org>
46229
46230         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46231
46232 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46233
46234         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46235         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46236         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46237         Blake <ebb9@byu.net>.
46238
46239         * tests/test-bitrotate.c: Add more test vectors.
46240
46241 2008-09-02  Eric Blake  <ebb9@byu.net>
46242
46243         vasnprintf-posix: handle large precision via %.*d
46244         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46245         when handling it ourselves.
46246         * tests/test-vasnprintf-posix.c (test_function): Add test.
46247         * tests/test-snprintf-posix.h (test_function): Likewise.
46248         * tests/test-sprintf-posix.h (test_function): Likewise.
46249         * tests/test-vasprintf-posix.c (test_function): Likewise.
46250         Reported by Alain Guibert.
46251
46252 2008-09-01  Eric Blake  <ebb9@byu.net>
46253
46254         c-stack: make configure-time check more robust
46255         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46256         successful sigaction call.
46257         Reported by Tom G. Christensen.
46258
46259 2008-09-01  Bruno Haible  <bruno@clisp.org>
46260
46261         New module 'findprog-lgpl'.
46262         * modules/findprog-lgpl: New file.
46263         * lib/findprog-lgpl.c: New file.
46264         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46265         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46266         to decide whether to use strdup or xstrdup, concatenated_filename or
46267         xconcatenated_filename.
46268
46269 2008-09-01  Bruno Haible  <bruno@clisp.org>
46270
46271         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46272         'xconcat-filename' (GPL).
46273         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46274         (License): Change to LGPLv2+.
46275         * modules/xconcat-filename: New file.
46276         * lib/concat-filename.h (concatenated_filename): Change specification.
46277         (xconcatenated_filename): New declaration.
46278         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46279         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46280         memory situations.
46281         * lib/xconcat-filename.c: New file.
46282         * NEWS: Mention the change.
46283         * lib/findprog.c: Include concat-filename.h, not filename.h.
46284         (find_in_path): Use xconcatenated_filename instead of
46285         concatenated_filename.
46286         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46287         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46288         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46289         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46290         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46291         instead of concatenated_filename.
46292         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46293         (execute_java_class): Use xconcatenated_filename instead of
46294         concatenated_filename.
46295         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46296         * modules/javacomp (Depends-on): Likewise.
46297         * modules/javaexec (Depends-on): Likewise.
46298
46299 2008-09-01  Bruno Haible  <bruno@clisp.org>
46300
46301         Split module 'filename' into 'filename' and 'concat-filename'.
46302         * modules/filename: Keep only lib/filename.h.
46303         (License): Change to LGPLv2+.
46304         * modules/concat-filename: New file, extracted from modules/filename.
46305         * lib/filename.h (concatenated_filename): Remove declaration.
46306         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46307         * lib/concat-filename.c: Include concat-filename.h.
46308         * NEWS: Mention the change.
46309
46310 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46311
46312         * lib/bitrotate.h (rotl8, rotr8): Add.
46313
46314         * modules/bitrotate (configure.ac): Need
46315         AC_REQUIRE([AC_C_INLINE]).
46316         (Description): Mention stdint.h.  Reported by Bruno Haible
46317         <bruno@clisp.org>.
46318
46319         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46320         Paolo Bonzini <bonzini@gnu.org>.
46321
46322 2008-08-31  Bruno Haible  <bruno@clisp.org>
46323
46324         Assume Solaris specific bi-arch conventions on Solaris systems.
46325         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46326         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46327         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46328         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46329         like acl_libdirstem.
46330         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46331         acl_libdirstem.
46332         * NEWS: Mention the change.
46333         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46334
46335 2008-08-31  Jim Meyering  <meyering@redhat.com>
46336
46337         * lib/strftime.h: Add comments describing the two added arguments.
46338
46339         remove duplicate #include directives
46340         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46341         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46342
46343 2008-08-31  Bruno Haible  <bruno@clisp.org>
46344
46345         New module 'sigpipe-die'.
46346         * modules/sigpipe-die: New file.
46347         * lib/sigpipe-die.h: New file.
46348         * lib/sigpipe-die.c: New file.
46349         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46350
46351 2008-08-31  Bruno Haible  <bruno@clisp.org>
46352
46353         Don't override previously installed signal handlers.
46354         * lib/fatal-signal.c (saved_sigactions): New variable.
46355         (uninstall_handlers): Reset the signal to the saved handler, not
46356         to SIG_DFL (except when ignored).
46357         (install_handlers): Save the previous handlers.
46358
46359 2008-08-30  Bruno Haible  <bruno@clisp.org>
46360
46361         * gnulib-tool (func_reset_sigpipe): New function.
46362         (func_get_automake_snippet, func_modules_transitive_closure,
46363         func_import): Invoke it before a join command that reads from stdin,
46364         to avoid "echo: write error: Broken pipe" error messages on stderr.
46365         Reported by Sam Steingold <sds@gnu.org>.
46366
46367 2008-08-30  Bruno Haible  <bruno@clisp.org>
46368
46369         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46370         Code copied from m4/open.m4.
46371         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46372         access and the filename ends in a slash. Code copied from lib/open.c.
46373         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46374         * tests/test-fopen.c (main): Check against bug with trailing slash.
46375
46376 2008-08-29  Bruno Haible  <bruno@clisp.org>
46377
46378         Avoid some "gcc -pedantic" warnings.
46379         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46380         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46381         * lib/dirent.in.h: Likewise.
46382         * lib/fcntl.in.h: Likewise.
46383         * lib/float.in.h: Likewise.
46384         * lib/iconv.in.h: Likewise.
46385         * lib/inttypes.in.h: Likewise.
46386         * lib/locale.in.h: Likewise.
46387         * lib/math.in.h: Likewise.
46388         * lib/netinet_in.in.h: Likewise.
46389         * lib/search.in.h: Likewise.
46390         * lib/signal.in.h: Likewise.
46391         * lib/stdarg.in.h: Likewise.
46392         * lib/stdint.in.h: Likewise.
46393         * lib/stdio.in.h: Likewise.
46394         * lib/stdlib.in.h: Likewise.
46395         * lib/string.in.h: Likewise.
46396         * lib/strings.in.h: Likewise.
46397         * lib/sys_select.in.h: Likewise.
46398         * lib/sys_socket.in.h: Likewise.
46399         * lib/sys_stat.in.h: Likewise.
46400         * lib/sys_time.in.h: Likewise.
46401         * lib/sysexits.in.h: Likewise.
46402         * lib/time.in.h: Likewise.
46403         * lib/unistd.in.h: Likewise.
46404         * lib/wchar.in.h: Likewise.
46405         * lib/wctype.in.h: Likewise.
46406         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46407         * modules/fchdir (Makefile.am): Likewise.
46408         * modules/fcntl (Makefile.am): Likewise.
46409         * modules/float (Makefile.am): Likewise.
46410         * modules/iconv_open (Makefile.am): Likewise.
46411         * modules/inttypes (Makefile.am): Likewise.
46412         * modules/locale (Makefile.am): Likewise.
46413         * modules/math (Makefile.am): Likewise.
46414         * modules/netinet_in (Makefile.am): Likewise.
46415         * modules/search (Makefile.am): Likewise.
46416         * modules/signal (Makefile.am): Likewise.
46417         * modules/stdarg (Makefile.am): Likewise.
46418         * modules/stdint (Makefile.am): Likewise.
46419         * modules/stdio (Makefile.am): Likewise.
46420         * modules/stdlib (Makefile.am): Likewise.
46421         * modules/string (Makefile.am): Likewise.
46422         * modules/strings (Makefile.am): Likewise.
46423         * modules/sys_select (Makefile.am): Likewise.
46424         * modules/sys_socket (Makefile.am): Likewise.
46425         * modules/sys_stat (Makefile.am): Likewise.
46426         * modules/sys_time (Makefile.am): Likewise.
46427         * modules/sysexits (Makefile.am): Likewise.
46428         * modules/time (Makefile.am): Likewise.
46429         * modules/unistd (Makefile.am): Likewise.
46430         * modules/wchar (Makefile.am): Likewise.
46431         * modules/wctype (Makefile.am): Likewise.
46432         Reported by Reuben Thomas <rrt@sc3d.org>.
46433
46434 2008-08-29  Bruno Haible  <bruno@clisp.org>
46435
46436         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46437         any more.
46438
46439 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46440
46441         * MODULES.html.sh (Misc): Add bitrotate.
46442
46443         * modules/bitrotate: New file.
46444
46445         * lib/bitrotate.h: New file.
46446
46447         * modules/bitrotate-tests: New file.
46448
46449         * tests/test-bitrotate.c: New file.
46450
46451         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46452         on the bitrotate module.
46453
46454         * lib/arctwo.c: Use new bitrotate module.
46455
46456 2008-08-29  Jim Meyering  <meyering@redhat.com>
46457
46458         bootstrap: merge changes from coreutils
46459         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46460         of copied files.  Remove a kludge, now that this is fixed.
46461         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46462         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46463         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46464
46465 2008-08-29  Bruno Haible  <bruno@clisp.org>
46466
46467         * MODULES.html.sh: Remove --cvs-urls option.
46468
46469 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46470
46471         maint.mk: adjust to file name change
46472         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46473
46474 2008-08-28  Jim Meyering  <meyering@redhat.com>
46475
46476         * modules/getndelim2 (License): Relicense to LGPLv2+.
46477         Approved by Richard Stallman for the version of 1995, and by
46478         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46479
46480 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46481
46482         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46483         dummy if one is not available.  Do not touch them if
46484         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46485         (getc_maybe_unlocked): New.
46486         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46487
46488 2008-08-26  Eric Blake  <ebb9@byu.net>
46489
46490         doc/INSTALL: resync from autoconf
46491         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46492         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46493         moving...
46494         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46495         * INSTALL: Regenerate.
46496         * INSTALL.ISO: New file.
46497         * INSTALL.UTF-8: Likewise.
46498
46499 2008-08-26  Jim Meyering  <meyering@redhat.com>
46500
46501         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46502         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46503         these definitions conditional, so that they may be overridden, too.
46504
46505 2008-08-26  Bruno Haible  <bruno@clisp.org>
46506
46507         Generate INSTALL file variants with prettier quotes.
46508         * doc/Makefile (INSTALL_PRELUDE): New macro.
46509         (INSTALL): Use it.
46510         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46511
46512 2008-08-26  Bruno Haible  <bruno@clisp.org>
46513
46514         Run makeinfo in an English locale.
46515         * doc/Makefile (MAKEINFO): New variable.
46516
46517 2008-08-26  Bruno Haible  <bruno@clisp.org>
46518
46519         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46520         Suggested by Eric Blake.
46521
46522 2008-08-25  Bruno Haible  <bruno@clisp.org>
46523
46524         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46525
46526 2008-08-25  Eric Blake  <ebb9@byu.net>
46527
46528         c-stack: test that stack overflow can be caught
46529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46530         that platform allows handling stack overflow; at least OS/2 EMX
46531         has sigaltstack, but crashes before transferring control to
46532         handler on stack overflow.
46533         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46534         check for HAVE_STACK_OVERFLOW_HANDLING.
46535         Reported by Elbert Pol.
46536
46537 2008-08-25  Bruno Haible  <bruno@clisp.org>
46538
46539         * doc/posix-functions/strftime.texi: Fix description of strftime
46540         module.
46541
46542 2008-08-24  Bruno Haible  <bruno@clisp.org>
46543
46544         * tests/uniwidth/test-uc_width2.c: New file.
46545         * tests/uniwidth/test-uc_width2.sh: New file.
46546         * modules/uniwidth/width-tests (Files): Add the new files.
46547         (TESTS): Add uniwidth/test-uc_width2.sh.
46548         (TESTS_ENVIRONMENT): New variable.
46549         (check_PROGRAMS): Add test-uc_width2.
46550         (test_uc_width2_SOURCES): New variable.
46551
46552         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46553         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46554         not 0x00AB.
46555         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46556
46557 2008-08-22  Eric Blake  <ebb9@byu.net>
46558
46559         test-lock, test-tls: mention why a test is skipped
46560         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46561         skipped.
46562         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46563
46564         count-one-bits: relax license
46565         * modules/count-one-bits (License): Relicense to LGPLv2+.
46566         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46567
46568 2008-08-22  Andreas Schwab  <schwab@suse.de>
46569
46570         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46571         Remove spurious space in assignment.
46572
46573 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46574
46575         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46576         Paul Eggert <eggert@CS.UCLA.EDU>.
46577
46578 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46579
46580         * modules/gettext: Add m4/threadlib.m4.
46581
46582 2008-08-19  Eric Blake  <ebb9@byu.net>
46583
46584         test-c-stack: fix compilation failure on FreeBSD 5.0
46585         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46586         headers before <sys/resource.h>.
46587         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46588         the bug.
46589         Reported by Nelson H. F. Beebe.
46590
46591         strverscmp: migrate from "strverscmp.h" to <string.h>
46592         * modules/string (Makefile.am): Add new hooks.
46593         * modules/strverscmp (Files): Remove strverscmp.h.
46594         (Depends-on): Add string.
46595         (configure.ac): Add indicator.
46596         (Include): Mention new header.
46597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46598         defaults.
46599         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46600         results.
46601         * lib/strverscmp.h: Delete.
46602         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46603         * tests/test-strverscmp.c (includes): Adjust client.
46604         * lib/check-version.c (includes): Likewise.
46605         * NEWS: Document the change.
46606
46607         strverscmp: add unit test
46608         * modules/strverscmp-tests: New file.
46609         * tests/test-strverscmp.c: Likewise.
46610
46611 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46612
46613         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46614         regarding Windows crypto stuff, from Mono.
46615
46616 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46617
46618         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46619         if present, for intel RND.  Return error on failures.
46620
46621 2008-08-18  Ben Pfaff  <blp@gnu.org>
46622
46623         gitlog-to-changelog: give better diagnostic for failed pipe-open
46624         * build-aux/gitlog-to-changelog: Improve error message: suggest
46625         that the version of Git may be too old.
46626
46627 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46628
46629         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46630         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46631
46632 2008-08-18  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46635         pthread_in_use().
46636
46637 2008-08-18  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/glthread/threadlib.c: Include <pthread.h>.
46640
46641 2008-08-18  Bruno Haible  <bruno@clisp.org>
46642
46643         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46644         glthread_recursive_lock_* macros.
46645         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46646         Fix syntax error.
46647
46648 2008-08-18  Bruno Haible  <bruno@clisp.org>
46649
46650         * lib/glthread/thread.c: Avoid forcing a context switch right after
46651         thread creation.
46652
46653 2008-08-17  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46656         * lib/glthread/thread.h: Provide Win32 specific implementation.
46657         * modules/thread (Files): Add lib/glthread/thread.c.
46658         (Depends-on): Add lock.
46659         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46660
46661 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46662
46663         New module 'yield'.
46664         * modules/yield: New file.
46665         * lib/glthread/yield.h: New file.
46666         * m4/yield.m4: New file.
46667         * MODULES.html.sh (Multithreading): Add yield.
46668
46669 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46670
46671         New module 'thread'.
46672         * modules/thread: New file.
46673         * lib/glthread/thread.h: New file.
46674         * m4/thread.m4: New file.
46675         * MODULES.html.sh (Multithreading): Add thread.
46676
46677 2008-08-17  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/glthread/lock.h: Include <stdlib.h> always.
46680         * lib/glthread/tls.h: Likewise.
46681         * lib/glthread/cond.h: Likewise.
46682
46683 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46684
46685         New module 'cond'.
46686         * modules/cond: New file.
46687         * lib/glthread/cond.h: New file.
46688         * lib/glthread/cond.c: New file.
46689         * m4/cond.m4: New file.
46690         * MODULES.html.sh (Multithreading): Add cond.
46691
46692 2008-08-16  Eric Blake  <ebb9@byu.net>
46693
46694         c-stack: fix regression on Irix 5.3 from 2008-06-21
46695         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46696         sa_sigaction...
46697         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46698         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46699         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46700         * modules/signal (Makefile.am): Use the value.
46701         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46702         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46703         * doc/posix-headers/signal.texi (signal.h): Document this
46704         portability issue.
46705         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46706         Reported by Tom G. Christensen.
46707
46708 2008-08-17  Bruno Haible  <bruno@clisp.org>
46709
46710         New module 'threadlib'.
46711         * modules/threadlib: New file.
46712         * lib/glthread/threadlib.c: New file, extracted from
46713         lib/glthread/lock.c.
46714         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46715         functions.
46716         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46717         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46718         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46719         macros.
46720         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46721         (gl_DISABLE_THREADS): Remove macro.
46722         * modules/lock (Files): Remove build-aux/config.rpath.
46723         (Depends-on): Remove havelib. Add threadlib.
46724         (configure.ac-early): Remove section.
46725         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46726         * modules/tls (Depends-on): Remove lock. Add threadlib.
46727         (Link): New section, copied from threadlib.
46728         * MODULES.html.sh (Multithreading): Add threadlib.
46729
46730 2008-08-14  Bruno Haible  <bruno@clisp.org>
46731
46732         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46733         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46734         glthread_rwlock_unlock, glthread_rwlock_destroy,
46735         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46736         glthread_recursive_lock_destroy): Define as macros always.
46737         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46738         glthread_lock_lock.
46739         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46740         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46741         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46742         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46743         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46744         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46745         (glthread_recursive_lock_lock_func): Renamed from
46746         glthread_recursive_lock_lock.
46747         (glthread_recursive_lock_unlock_func): Renamed from
46748         glthread_recursive_lock_unlock.
46749         (glthread_recursive_lock_destroy_func): Renamed from
46750         glthread_recursive_lock_destroy.
46751
46752 2008-08-14  Bruno Haible  <bruno@clisp.org>
46753
46754         * lib/glthread/lock.h: Renamed from lib/lock.h.
46755         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46756         * lib/glthread/tls.h: Renamed from lib/tls.h.
46757         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46758         * lib/fstrcmp.c: Update includes.
46759         * lib/strsignal.c: Update includes.
46760         * modules/lock (Files, Makefile.am): Update.
46761         (Include): Change to "glthread/lock.h".
46762         * modules/tls (Files, Makefile.am): Update.
46763         (Include): Change to "glthread/tls.h".
46764         * tests/test-lock.c: Update includes.
46765         * tests/test-tls.c: Update includes.
46766         * NEWS: Mention the renamed header files.
46767
46768 2008-08-11  Jim Meyering  <meyering@redhat.com>
46769
46770         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46771
46772 2008-08-11  Eric Blake  <ebb9@byu.net>
46773
46774         test-c-stack: avoid C99-ism
46775         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46776         before statement.
46777         Reported by Alain Guibert.
46778
46779 2008-08-10  Jim Meyering  <meyering@redhat.com>
46780
46781         ensure that return value of uinttostr et al are not ignored
46782         * lib/inttostr.h (__GNUC_PREREQ): Define.
46783         (__attribute_warn_unused_result__): Define.
46784         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46785
46786 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46787
46788         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46789         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46790
46791 2008-08-07  Jim Meyering  <meyering@redhat.com>
46792
46793         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46794
46795         * modules/mkstemp (License): Relicense under LGPLv2+.
46796         * modules/tempname (License): Likewise.
46797
46798 2008-08-06  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/poll.c (poll): Further micro-optimization.
46801
46802 2008-08-06  Jim Meyering  <meyering@redhat.com>
46803
46804         inet_pton.c: use locale-independent tolower
46805         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46806         (inet_pton6): Use c_tolower rather than tolower.
46807         * modules/inet_pton (Depends-on): Add c-ctype.
46808
46809 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46810
46811         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46812         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46813
46814 2008-08-06  Jim Meyering  <meyering@redhat.com>
46815
46816         * modules/inet_pton (License): Relicense under LGPLv2+.
46817
46818 2008-08-03  Bruno Haible  <bruno@clisp.org>
46819
46820         Additional non-aborting API for lock and tls.
46821         * lib/lock.h: Include <errno.h>.
46822         (glthread_lock_init): New macro/function.
46823         (gl_lock_init): Define as wrapper around glthread_lock_init.
46824         (glthread_lock_lock): New macro/function.
46825         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46826         (glthread_lock_unlock): New macro/function.
46827         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46828         (glthread_lock_destroy): New macro/function.
46829         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46830         (glthread_rwlock_init): New macro/function.
46831         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46832         (glthread_rwlock_rdlock): New macro/function.
46833         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46834         (glthread_rwlock_wrlock): New macro/function.
46835         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46836         (glthread_rwlock_unlock): New macro/function.
46837         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46838         (glthread_rwlock_destroy): New macro/function.
46839         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46840         (glthread_recursive_lock_init): New macro/function.
46841         (gl_recursive_lock_init): Define as wrapper around
46842         glthread_recursive_lock_init.
46843         (glthread_recursive_lock_lock): New macro/function.
46844         (gl_recursive_lock_lock): Define as wrapper around
46845         glthread_recursive_lock_lock.
46846         (glthread_recursive_lock_unlock): New macro/function.
46847         (gl_recursive_lock_unlock): Define as wrapper around
46848         glthread_recursive_lock_unlock.
46849         (glthread_recursive_lock_destroy): New macro/function.
46850         (gl_recursive_lock_destroy): Define as wrapper around
46851         glthread_recursive_lock_destroy.
46852         (glthread_once): New macro/function.
46853         (gl_once): Define as wrapper around glthread_once.
46854         Update function declarations.
46855         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46856         glthread_rwlock_init. Return error code.
46857         (glthread_rwlock_rdlock_multithreaded): Renamed from
46858         glthread_rwlock_rdlock. Return error code.
46859         (glthread_rwlock_wrlock_multithreaded): Renamed from
46860         glthread_rwlock_wrlock. Return error code.
46861         (glthread_rwlock_unlock_multithreaded): Renamed from
46862         glthread_rwlock_unlock. Return error code.
46863         (glthread_rwlock_destroy_multithreaded): Renamed from
46864         glthread_rwlock_destroy. Return error code.
46865         (glthread_recursive_lock_init_multithreaded): Renamed from
46866         glthread_recursive_lock_init. Return error code.
46867         (glthread_recursive_lock_lock_multithreaded): Renamed from
46868         glthread_recursive_lock_lock. Return error code.
46869         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46870         glthread_recursive_lock_unlock. Return error code.
46871         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46872         glthread_recursive_lock_destroy. Return error code.
46873         (glthread_once_call): Make static.
46874         (glthread_once_multithreaded): Renamed from glthread_once.
46875         * lib/tls.h: Include <errno.h>.
46876         (glthread_tls_key_init): New macro/function.
46877         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46878         (glthread_tls_set): New macro/function.
46879         (gl_tls_set): Define as wrapper around glthread_tls_set.
46880         (glthread_tls_key_destroy): New macro/function.
46881         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46882         Update function declarations.
46883         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46884         glthread_tls_get.
46885         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46886
46887 2008-08-04  Eric Blake  <ebb9@byu.net>
46888
46889         gnumakefile: use space, not TAB, outside of targets
46890         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46891
46892 2008-08-02  Jim Meyering  <meyering@redhat.com>
46893
46894         getdate.y: avoid locale-dependent date parsing failure
46895         In Turkish locales, getdate would fail to recognize keywords
46896         containing a lowercase "i".  The solution is not to rely on
46897         locale-sensitive case-conversion.
46898         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46899         (lookup_word): Use c_toupper in place of toupper.
46900         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46901         Reported by Vefa Bicakci <bicave@superonline.com> in
46902         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46903         * modules/getdate (Depends-on): Add c-ctype.
46904
46905 2008-08-02  Bruno Haible  <bruno@clisp.org>
46906
46907         * gnulib-tool (func_import): When updating or creating a .gitignore
46908         file, prepend each added line with a slash, and ignore leading slashes
46909         from the existing lines.
46910         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46911
46912 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46913
46914         Portability fix for GNU make 3.79.1.
46915         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46916         versions do not understand.
46917
46918 2008-08-01  Bruno Haible  <bruno@clisp.org>
46919
46920         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46921         * tests/test-isnanf.h (zero): New variable.
46922         (main): Avoid literal -0.0f.
46923         * tests/test-isnand.h (zero): New variable.
46924         (main): Avoid literal -0.0.
46925         * tests/test-isnanl.h (zero): New variable.
46926         (main): Avoid literal -0.0L.
46927         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46928         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46929         -0.0, -0.0L.
46930         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46931         (test_signbitd): Avoid literal -0.0.
46932         (test_signbitl): Avoid literal -0.0L.
46933         * tests/test-ceilf1.c (zero): New variable.
46934         (main): Avoid literal -0.0f.
46935         * tests/test-ceill.c (zero): New variable.
46936         (main): Avoid literal -0.0L.
46937         * tests/test-floorf1.c (zero): New variable.
46938         (main): Avoid literal -0.0f.
46939         * tests/test-floorl.c (zero): New variable.
46940         (main): Avoid literal -0.0L.
46941         * tests/test-roundf1.c (zero): New variable.
46942         (main): Avoid literal -0.0f.
46943         * tests/test-round1.c (zero): New variable.
46944         (main): Avoid literal -0.0.
46945         * tests/test-roundl.c (zero): New variable.
46946         (main): Avoid literal -0.0L.
46947         * tests/test-truncf1.c (zero): New variable.
46948         (main): Avoid literal -0.0f.
46949         * tests/test-trunc1.c (zero): New variable.
46950         (main): Avoid literal -0.0.
46951         * tests/test-truncl.c (zero): New variable.
46952         (main): Avoid literal -0.0L.
46953         * tests/test-frexp.c (zero): New variable.
46954         (main): Avoid literal -0.0.
46955         * tests/test-frexpl.c (zero): New variable.
46956         (main): Avoid literal -0.0L.
46957         * tests/test-ldexpl.c (zero): New variable.
46958         (main): Avoid literal -0.0L.
46959         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46960         (zerod, zerol): New variables.
46961         (test_function): Avoid literals -0.0, -0.0L.
46962         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46963         (zerod, zerol): New variables.
46964         (test_function): Avoid literals -0.0, -0.0L.
46965         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46966         (zerod, zerol): New variables.
46967         (test_function): Avoid literals -0.0, -0.0L.
46968         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46969         (zerod, zerol): New variables.
46970         (test_function): Avoid literals -0.0, -0.0L.
46971         * tests/test-strtod.c (zero): New variable.
46972         (main): Avoid literal -0.0.
46973         Reported by Jonathan C. Patschke <jp@centtech.com>.
46974
46975 2008-07-31  Jim Meyering  <meyering@redhat.com>
46976
46977         sha256.h: correct definition of SHA224_DIGEST_SIZE
46978         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46979         Reported by Paulie Pena IV <paulie4@gmail.com>.
46980         Define as 224 / 8, rather than as a literal.
46981         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46982         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46983         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46984
46985 2008-07-31  Bruno Haible  <bruno@clisp.org>
46986
46987         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46988         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46989         Reported by Jonathan Patschke <jp@centtech.com>.
46990
46991 2008-07-31  Bruno Haible  <bruno@clisp.org>
46992
46993         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46994         Reported by Paolo Bonzini <bonzini@gnu.org>.
46995
46996 2008-07-30  Eric Blake  <ebb9@byu.net>
46997
46998         test-strtod: allow compilation without -lm
46999         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47000         Reported by Dennis Clarke <blastwave@gmail.com>.
47001
47002 2008-07-28  Jim Meyering  <meyering@redhat.com>
47003
47004         bootstrap: work also when there are no .po files in po/
47005         * build-aux/bootstrap (update_po_files): Complete the change
47006         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47007
47008 2008-07-27  Jim Meyering  <meyering@redhat.com>
47009
47010         * users.txt: Add zile.
47011
47012 2008-07-26  Ben Pfaff  <blp@gnu.org>
47013
47014         Add missing dependencies on new m4/exponent[fdl].m4 files.
47015         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47016         * modules/isnand-nolibm: Add m4/exponentd.m4.
47017         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47018         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47019         m4/isnan[fdl].m4, because the macros actually used moved.
47020         Reported by Jim Meyering.
47021
47022 2008-07-14  Ben Pfaff  <blp@gnu.org>
47023
47024         Add isinf module.
47025         * lib/isinf.c: New file.
47026         * lib/math.in.h: Define isinf macro if we have decided to replace
47027         it.
47028         * m4/isinf.m4: New file.
47029         * m4/math_h.m4: Initialize and substitute variables for isinf
47030         module.
47031         * modules/isinf: New file.
47032         * modules/isinf-tests: New file.
47033         * modules/math: Add substitutions for new module.
47034         * tests/test-isinf.c: New file.
47035         * doc/posix-functions/isinf.texi: Mention new module.
47036         * MODULES.html.sh: Mention new module.
47037
47038 2008-07-14  Ben Pfaff  <blp@gnu.org>
47039
47040         Factor out some macros for use by additional modules.
47041         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47042         exponentf.m4.
47043         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47044         exponentd.m4.
47045         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47046         file exponentl.m4.
47047         * m4/exponentf.m4: New file.
47048         * m4/exponentd.m4: New file.
47049         * m4/exponentl.m4: New file.
47050         * modules/isnanf: Use new file m4/exponentf.m4.
47051         * modules/isnand: Use new file m4/exponentd.m4.
47052         * modules/isnanl: Use new file m4/exponentl.m4.
47053
47054 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47055
47056         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47057         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47058         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47059         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47060
47061         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47062         readlink on platforms without PATH_MAX.
47063
47064 2008-07-21  Eric Blake  <ebb9@byu.net>
47065
47066         Warn, not fail, on stale version.
47067         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47068
47069         Don't allow installation with stale devel version number.
47070         * top/GNUmakefile (_is-install-target): New macro.
47071         (_curr-ver): Forbid installation with stale version number.
47072
47073 2008-07-20  Bruno Haible  <bruno@clisp.org>
47074
47075         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47076         TESTS_ENVIRONMENT.
47077         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47078
47079 2008-07-20  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/c-stack.h (c_stack_action): Add documentation.
47082         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47083
47084 2008-07-20  Bruno Haible  <bruno@clisp.org>
47085
47086         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47087         * modules/readlink (License): Likewise.
47088
47089 2008-07-17  Eric Blake  <ebb9@byu.net>
47090
47091         * modules/c-stack (Link): Fix typo.
47092
47093         Make c-stack use libsigsegv, when available.
47094         * modules/c-stack (Depends-on): Add libsigsegv.
47095         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47096         needed.
47097         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47098         (segv_handler, overflow_handler, c_stack_action)
47099         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47100         implementation when libsigsegv is available, but only when using
47101         the library is necessary.
47102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47103         comment, explaining why XSI check fails on Linux.
47104         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47105         * tests/test-c-stack2.sh: Tweak skip message.
47106         * NEWS: Document new link-time requirements.
47107
47108 2008-07-16  Eric Blake  <ebb9@byu.net>
47109
47110         c-stack: Expose false positives when not using libsigsegv.
47111         * modules/c-stack-tests (Files): Expand test.
47112         * tests/test-c-stack.c (main): Add means to conditionally trigger
47113         non-overflow SIGSEGV.
47114         * tests/test-c-stack2.sh: New file.
47115
47116 2008-07-14  Bruno Haible  <bruno@clisp.org>
47117
47118         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47119         Reported by Eric Blake.
47120
47121 2008-07-14  Sam Steingold  <sds@gnu.org>
47122             Bruno Haible  <bruno@clisp.org>
47123
47124         New module libsigsegv.
47125         * modules/libsigsegv: New file.
47126         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47127         modifications.
47128         * MODULES.html.sh (Signal handling): New section.
47129
47130 2008-07-14  Bruno Haible  <bruno@clisp.org>
47131
47132         * modules/unictype/ctype-* (Description): Add the word "function".
47133         Improves the resulting doc in MODULES.html.
47134
47135 2008-07-12  Ben Pfaff  <blp@gnu.org>
47136
47137         Add longlong module.
47138         * modules/longlong: New file.
47139
47140 2008-07-12  Bruno Haible  <bruno@clisp.org>
47141
47142         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47143         to empty.
47144
47145 2008-07-10  Ben Pfaff  <blp@gnu.org>
47146
47147         Add isnan module.
47148         * doc/posix-functions/isnan.texi: Mention new module.
47149         * lib/math.in.h: Define isnan macro if we have decided to replace
47150         it.
47151         * m4/isnan.m4: New file.
47152         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47153         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47154         also.
47155         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47156         redundancy.
47157         * m4/math_h.m4: Initialize and substitute variables for isnan
47158         module.
47159         * modules/isnan: New file.
47160         * modules/isnan-tests: New file.
47161         * modules/math: Add substitutions for new module.
47162         * tests/test-isnan.c: New file.
47163         * MODULES.html.sh: Mention new module.
47164
47165 2008-07-10  Ben Pfaff  <blp@gnu.org>
47166
47167         Add isnanf module.
47168         * lib/isnanf.m4: New file.
47169         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47170         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47171         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47172         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47173         * modules/isnanf: New file.
47174         * modules/isnanf-tests: New file.
47175         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47176         files.
47177         * tests/test-isnanf-nolibm.c: factored most of its contents into
47178         new file tests/test-isnanf.h.
47179         * tests/test-isnanf.h: New file.
47180         * tests/test-isnanf.c: New file.
47181         * MODULES.html.sh: Mention new module.
47182         * doc/glibc-functions/isnanf.texi: Mention new module.
47183
47184 2008-07-10  Ben Pfaff  <blp@gnu.org>
47185
47186         Add isnand module.
47187         * lib/isnand.h: New file.
47188         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47189         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47190         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47191         functionality also.
47192         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47193         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47194         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47195         * modules/isnand: New file.
47196         * modules/isnand-tests: New file.
47197         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47198         files.
47199         * tests/test-isnand-nolibm.c: factored most of its contents into
47200         new file tests/test-isnand.h.
47201         * tests/test-isnand.h: New file.
47202         * tests/test-isnand.c: New file.
47203         * MODULES.html.sh: Mention new module.
47204
47205 2008-07-10  Ben Pfaff  <blp@gnu.org>
47206
47207         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47208         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47209         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47210         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47211         * modules/isnanf-nolibm: Update references to renamed files.
47212         * modules/isnand-nolibm: Likewise.
47213         * modules/isnanf-nolibm-tests: Likewise.
47214         * modules/isnand-nolibm-tests: Likewise.
47215         * lib/frexp.c: Likewise.
47216         * lib/isfinite.c: Likewise.
47217         * lib/signbitd.c: Likewise.
47218         * lib/signbitf.c: Likewise.
47219         * lib/vasnprintf.c: Likewise.
47220         * tests/test-ceilf1.c: Likewise.
47221         * tests/test-ceilf2.c: Likewise.
47222         * tests/test-floorf1.c: Likewise.
47223         * tests/test-floorf2.c: Likewise.
47224         * tests/test-frexp.c: Likewise.
47225         * tests/test-round1.c: Likewise.
47226         * tests/test-round2.c: Likewise.
47227         * tests/test-roundf1.c: Likewise.
47228         * tests/test-strtod.c: Likewise.
47229         * tests/test-trunc1.c: Likewise.
47230         * tests/test-trunc2.c: Likewise.
47231         * tests/test-truncf1.c: Likewise.
47232         * tests/test-truncf2.c: Likewise.
47233         * NEWS: Mention the renamed header files.
47234
47235 2008-07-11  Jim Meyering  <meyering@redhat.com>
47236
47237         vc-list-files: make the last-resort awk code more portable
47238         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47239         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47240         does not support it.
47241
47242 2008-07-10  Eric Blake  <ebb9@byu.net>
47243
47244         Work with tar's bootstrap.
47245         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47246         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47247         an m4 comment.
47248
47249 2008-07-09  Jim Meyering  <meyering@redhat.com>
47250
47251         posix-shell.m4: fix typo that made this test malfunction
47252         * m4/posix-shell.m4: Remove capitalization in variable name.
47253
47254 2008-07-08  Bruno Haible  <bruno@clisp.org>
47255
47256         * m4/onceonly.m4: Update comments.
47257         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47258
47259 2008-07-04  Jim Meyering  <meyering@redhat.com>
47260
47261         * users.txt: Add vc-dwim.
47262         (bison, coreutils): Use the gitweb URL.
47263
47264 2008-07-03  Jim Meyering  <meyering@redhat.com>
47265
47266         * users.txt: Add libffcall.  From Sam Steingold.
47267
47268 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47269
47270         getdate.y: do not ignore TZ with relative day, month or year offset
47271         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47272         relative-date-handling, since otherwise, the latter would clobber the
47273         sole output (an updated Start value) of the tz-handling block.
47274         * tests/test-getdate.c: Tests for the fix
47275
47276 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47277
47278         Recognize 'foo_LIBRARIES += libgnu.a'.
47279         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47280         makefile snippet has already specified an installation location,
47281         also using '+='.
47282
47283 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47284
47285         getdate.y: factor out common actions
47286         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47287         Use them in place of open-coded actions.
47288
47289 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47290
47291         Add self-test for getdate module.
47292         * modules/getdate-tests: New file.
47293         * tests/test-getdate.c: New file.
47294
47295 2008-06-29  Bruno Haible  <bruno@clisp.org>
47296
47297         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47298         .gitignore.
47299         Reported by Sylvain Beucler <beuc@beuc.net>.
47300
47301 2008-06-29  Bruno Haible  <bruno@clisp.org>
47302
47303         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47304         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47305
47306 2008-06-29  Bruno Haible  <bruno@clisp.org>
47307
47308         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47309         EXTRA_DIST.
47310         Reported by Sylvain Beucler <beuc@beuc.net>.
47311
47312 2008-06-26  Jim Meyering  <meyering@redhat.com>
47313
47314         make several modules depend on the "open" module
47315         This provides slightly increased consistency when opening-for-write
47316         the name of a non-directory spelled with a trailing slash.
47317         * modules/chdir-safer: Likewise.
47318         * modules/chown: Likewise.
47319         * modules/clean-temp: Likewise.
47320         * modules/copy-file: Likewise.
47321         * modules/fchdir: Likewise.
47322         * modules/fcntl-safer: Likewise.
47323         * modules/pipe: Likewise.
47324         * modules/utime: Likewise.
47325         Prompted by Eric Blake and Bruno Haible.
47326
47327 2008-06-24  Andreas Schwab  <schwab@suse.de>
47328
47329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47330         literals can be used as initializers for global variables.
47331
47332 2008-06-23  Eric Blake  <ebb9@byu.net>
47333
47334         Make gnulib-cache.m4 easier to diff.
47335         * gnulib-tool (func_import): Allow newlines when reading cached
47336         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47337
47338 2008-06-23  Bruno Haible  <bruno@clisp.org>
47339
47340         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47341         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47342         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47343         m4/signalblocking.m4.
47344         (gl_PREREQ_SIGACTION): Don't invoke it.
47345         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47346         gl_PREREQ_SIG_HANDLER_H.
47347         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47348         Don't check for sigaction here.
47349
47350 2008-06-23  Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47353         (install_handlers): Don't set the SA_RESETHAND flag.
47354
47355 2008-06-23  Bruno Haible  <bruno@clisp.org>
47356
47357         * m4/sigaction.m4: Comment fixes.
47358         * lib/signal.in.h: Likewise.
47359
47360 2008-06-23  Eric Blake  <ebb9@byu.net>
47361
47362         Fix typo.
47363         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47364
47365         Avoid SA_ namespace.
47366         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47367         Reported by Ralf Wildenhues.
47368
47369         Avoid test failure due to SA_RESTORER.
47370         * tests/test-sigaction.c (SA_MASK): New macro.
47371         (main): Avoid failing due to extension flags being set.
47372         Reported by Jim Meyering.
47373
47374         Revert use of sig-handler.h in sigprocmask.c.
47375         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47376         it requires the existence of struct sigaction.
47377         * lib/sigprocmask.c (handler_t): Restore typedef.
47378         (rpl_signal, old_handlers): Use local type.
47379
47380 2008-06-22  Bruno Haible  <bruno@clisp.org>
47381
47382         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47383         conditionally.
47384         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47385
47386 2008-06-22  Bruno Haible  <bruno@clisp.org>
47387
47388         * doc/posix-functions/siginterrupt.texi: Move note.
47389
47390         * lib/signal.in.h (SA_RESTART): New macro.
47391         * lib/sigaction.c: Update comment.
47392
47393         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47394
47395         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47396         (gl_PREREQ_SIGPROCMASK): Invoke it.
47397         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47398
47399         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47400
47401         * lib/sigprocmask.c: Update a comment.
47402
47403 2008-06-21  Eric Blake  <ebb9@byu.net>
47404
47405         Use sigaction module rather than signal().
47406         * modules/c-stack (Depends-on): Add sigaction.
47407         * modules/fatal-signal (Depends-on): Likewise.
47408         * modules/nanosleep (Depends-on): Likewise.
47409         * modules/sigprocmask (Files): Add sig-handler.h.
47410         * modules/sigaction (Files): Likewise.
47411         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47412         Eggert.
47413         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47414         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47415         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47416         (init_fatal_signals): Likewise.
47417         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47418         (siginterrupt): Delete fallback.
47419         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47420         instead.
47421         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47422         siginterrupt.
47423
47424         New module sigaction, for mingw.
47425         * modules/sigaction: New module...
47426         * modules/sigaction-tests: ...and its test.
47427         * m4/sigaction.m4: New file.
47428         * lib/sigaction.c: Likewise.
47429         * tests/test-sigaction.c: Likewise.
47430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47431         * modules/signal (Makefile.am): Likewise.
47432         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47433         needed.
47434         * doc/posix-headers/signal.texi (signal.h): Mention provided
47435         types.
47436         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47437         that sigaction is preferable.
47438         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47439         module.
47440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47441         sigaction.
47442
47443         Improve robustness of sigprocmask by overriding signal.
47444         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47445         is in use.
47446         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47447         (SIGKILL, SIGSTOP): Provide fallbacks.
47448         (rpl_signal): Implement.
47449         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47450         signal can be called inside handlers.
47451
47452         Fix nanosleep module on mingw.
47453         * modules/nanosleep (Depends-on): Add sys_select.
47454         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47455
47456         Fix licensing of sigprocmask.
47457         * modules/raise (License): Relicense as LGPL.
47458
47459 2008-06-21  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47462         result if it contains question marks.
47463         Reported by Michael Geng <linux@michaelgeng.de>.
47464
47465 2008-06-19  Bruno Haible  <bruno@clisp.org>
47466
47467         Fix CVS-ism.
47468         * doc/gnulib.texi: Include updated-stamp.texi.
47469         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47470         (updated-stamp.texi): New rule.
47471         (gnulib.info): Depend on it.
47472         * doc/.gitignore: Add updated-stamp.texi.
47473         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47474
47475 2008-06-19  Bruno Haible  <bruno@clisp.org>
47476
47477         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47478         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47479
47480 2008-06-19  Eric Blake  <ebb9@byu.net>
47481
47482         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47483         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47484         Reported by Stepan Kasal.
47485
47486 2008-06-18  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47489         Reported by Eric Blake.
47490
47491 2008-06-18  Eric Blake  <ebb9@byu.net>
47492
47493         Work around cygwin 1.5.25 strsignal bug.
47494         * tests/test-strsignal.c: Allow for const char *.
47495         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47496
47497 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47498
47499         * users.txt: Update URL to article and add author/date
47500         information.
47501
47502 2008-06-17  Bruno Haible  <bruno@clisp.org>
47503
47504         New macro gl_DISABLE_THREADS.
47505         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47506         if the user did not pass --enable-threads or --disable-threads option.
47507         (gl_DISABLE_THREADS): New macro.
47508         Reported by Eric Blake <ebb9@byu.net>.
47509
47510 2008-06-17  Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47513         when the macro ignores it.
47514         Based on a patch by Eric Blake <ebb9@byu.net>.
47515
47516 2008-06-17  Bruno Haible  <bruno@clisp.org>
47517
47518         * modules/tls (License): Change to LGPLv2+.
47519         Reported by Eric Blake.
47520
47521 2008-06-17  Eric Blake  <ebb9@byu.net>
47522
47523         Simplify c-stack prerequisites.
47524         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47526         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47527         check.
47528         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47529         <sys/resource.h>.
47530
47531         Move c-stack test into testsuite.
47532         * modules/c-stack-tests: New file.
47533         * lib/c-stack.c [DEBUG]: Move test program...
47534         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47535         fail test if sigaltstack is lacking.
47536         * tests/test-c-stack.sh: New driver file.
47537
47538 2008-06-16  Eric Blake  <ebb9@byu.net>
47539
47540         Use raise module consistently.
47541         * modules/fatal-signal (Depends-on): Add raise.
47542         * modules/sigprocmask (Depends-on): Likewise.
47543         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47544         * lib/sigprocmask.c (sigprocmask): Likewise.
47545         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47546         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47547
47548         Fix compliance bug in sigpending.
47549         * lib/sigprocmask.c (sigpending): Return pending array via
47550         parameter, not return value.
47551
47552 2008-06-14  Eric Blake  <ebb9@byu.net>
47553
47554         Improve obstack-printf test code.
47555         * tests/test-obstack-printf.c (test_function): Fix comment, and
47556         simplify usage of obstack_* in macros.  Add a test for coverage.
47557         Reported by Bruno Haible.
47558
47559 2008-06-14  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47562         array size as a constant, not as a const variable.
47563         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47564         AC_USE_SYSTEM_EXTENSIONS.
47565         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47566         Test whether the obstack_printf function actually exists.
47567         * modules/obstack-printf (Depends-on): Add extensions.
47568         (Include): Remove obstack.h.
47569         * modules/obstack-printf-posix (Depends-on): Add extensions.
47570         (Include): Remove obstack.h.
47571
47572 2008-06-13  Eric Blake  <ebb9@byu.net>
47573
47574         Add obstack-printf and obstack-printf-posix modules.
47575         * modules/obstack-printf: New file.
47576         * modules/obstack-printf-posix: Likewise.
47577         * MODULES.html.sh (Misc): Mention them.
47578         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47579         Likewise.
47580         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47581         Likewise.
47582         * modules/stdio (Makefile.am): Accomodate new modules.
47583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47584         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47585         Declare.
47586         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47587         functions.
47588         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47589         (gl_REPLACE_OBSTACK_PRINTF): New macros
47590         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47591         * tests/test-obstack-printf.c: New file.
47592         * modules/obstack-printf-tests: Likewise.
47593         * modules/obstack-printf-posix-tests: Likewise.
47594
47595 2008-06-11  Bruno Haible  <bruno@clisp.org>
47596
47597         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47598         * lib/open.c: Include errno.h.
47599         (open): Fail when attempting to write to a file that has a trailing
47600         slash.
47601         * tests/test-open.c (main): Test against trailing slash bug.
47602         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47603
47604 2008-06-10  Bruno Haible  <bruno@clisp.org>
47605
47606         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47607         for $? to work inside the trap command, with various /bin/sh-s.
47608         * tests/test-vc-list-files-cvs.sh: Likewise.
47609
47610 2008-06-10  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/acl-internal.h: Don't include gettext.h here.
47613         * lib/set-mode-acl.c: Include gettext.h here.
47614         * lib/copy-acl.c: Likewise.
47615
47616 2008-06-10  Bruno Haible  <bruno@clisp.org>
47617
47618         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47619         * lib/wait-process.c (wait_subprocess): Likewise.
47620         * lib/execute.h (execute): Add termsigp argument.
47621         * lib/execute.c (execute): Likewise.
47622         * lib/csharpcomp.c (compile_csharp_using_pnet,
47623         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47624         * lib/csharpexec.c (execute_csharp_using_pnet,
47625         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47626         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47627         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47628         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47629         is_jikes_present): Update.
47630         * lib/javaexec.c (execute_java_class): Update.
47631         * lib/javaversion.c (execute_and_read_line): Update.
47632         * NEWS: Document the changes.
47633         Reported by Eric Blake.
47634
47635 2008-06-10  Eric Blake  <ebb9@byu.net>
47636
47637         Add missing include.
47638         * tests/test-strstr.c (includes): Add <signal.h>.
47639         * tests/test-strcasestr.c (includes): Likewise.
47640         * tests/test-memmem.c (includes): Likewise.
47641
47642 2008-06-10  Bruno Haible  <bruno@clisp.org>
47643
47644         * lib/wait-process.c (wait_subprocess): Add an assertion.
47645
47646 2008-06-10  Bruno Haible  <bruno@clisp.org>
47647
47648         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47649
47650 2008-06-10  Bruno Haible  <bruno@clisp.org>
47651
47652         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47653         using alarm().
47654         * tests/test-strcasestr.c (main): Likewise.
47655         * tests/test-strstr.c (main): Likewise.
47656
47657 2008-06-09  Bruno Haible  <bruno@clisp.org>
47658
47659         Work around the Solaris 10 ACE ACLs ABI change.
47660         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47661         declare if ACL_NO_TRIVIAL is present.
47662         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47663         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47664         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47665         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47666         define if ACL_NO_TRIVIAL is present.
47667         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47668         and use the current ABI.
47669         (file_has_acl): Use same #if condition as elsewhere.
47670         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47671         in use, and use the current ABI.
47672         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47673         Reported by Jim Meyering.
47674
47675 2008-06-09  Eric Blake  <ebb9@byu.net>
47676
47677         Work around environments that (stupidly) ignore SIGALRM.
47678         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47679         before using alarm().
47680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47682         Reported by Ian Beckwith <ianb@erislabs.net>.
47683
47684         Produce autobuild blurb earlier in log.
47685         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47686
47687 2008-06-09  Jim Meyering  <meyering@redhat.com>
47688         and OndÅ™ej Vašík  <ovasik@redhat.com>
47689
47690         utimens.c: correct kernel bug work-around
47691         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47692         failure, not success, and the kernel bug we're trying to work
47693         around affects not just the utimensat call, but also the fallback
47694         futimens call.
47695         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47696         not success.
47697         [HAVE_FUTIMENS]: Use the same work-around, here.
47698
47699 2008-06-09  Jim Meyering  <meyering@redhat.com>
47700
47701         add more guards around definition of ACE_-related code
47702         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47703         ALLOW and ACE_OWNER are also defined.
47704
47705 2008-06-08  Bruno Haible  <bruno@clisp.org>
47706
47707         * lib/acl-internal.h: Add me as co-author.
47708         * lib/file-has-acl.c: Likewise.
47709         * lib/set-mode-acl.c: Likewise.
47710         * lib/copy-acl.c: Likewise.
47711
47712 2008-06-08  Bruno Haible  <bruno@clisp.org>
47713
47714         Add support for AIX ACLs.
47715         * lib/acl-internal.h (acl_nontrivial): New declaration.
47716         * lib/file-has-acl.c (acl_nontrivial): New function.
47717         (file_has_acl): Add implementation using AIX 4 ACL API.
47718         * lib/set-mode-acl.c (qset_acl): Likewise.
47719         * lib/copy-acl.c (qcopy_acl): Likewise.
47720
47721 2008-06-08  Bruno Haible  <bruno@clisp.org>
47722
47723         Add support for HP-UX ACLs.
47724         * lib/acl-internal.h (acl_nontrivial): New declaration.
47725         * lib/file-has-acl.c (acl_nontrivial): New function.
47726         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47727         * lib/set-mode-acl.c (qset_acl): Likewise.
47728         * lib/copy-acl.c (qcopy_acl): Likewise.
47729
47730 2008-06-08  Bruno Haible  <bruno@clisp.org>
47731
47732         Add support for Cygwin ACLs.
47733         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47734         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47735         the chmod_or_fchmod call.
47736         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47737
47738 2008-06-08  Bruno Haible  <bruno@clisp.org>
47739
47740         Fix bug with setuid modes in Solaris 10+ code.
47741         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47742         succeeded, when the mode contains some special bits.
47743
47744 2008-06-08  Bruno Haible  <bruno@clisp.org>
47745
47746         Add support for Solaris 7..10 ACLs.
47747         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47748         declarations.
47749         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47750         functions.
47751         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47752         * lib/set-mode-acl.c (qset_acl): Likewise.
47753         * lib/copy-acl.c (qcopy_acl): Likewise.
47754
47755 2008-06-08  Bruno Haible  <bruno@clisp.org>
47756
47757         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47758         declaration.
47759         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47760         (acl_access_nontrivial): Remove MacOS X case.
47761         (file_has_acl): Use acl_extended_nontrivial.
47762         * lib/copy-acl.c (qcopy_acl): Likewise.
47763
47764 2008-06-08  Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47767
47768 2008-06-08  Jim Meyering  <meyering@redhat.com>
47769
47770         * modules/acl (Maintainer): Add Bruno Haible.
47771
47772 2008-06-07  Bruno Haible  <bruno@clisp.org>
47773
47774         Improve support for Tru64 ACLs.
47775         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47776         ACL on OSF/1.
47777
47778 2008-06-07  Bruno Haible  <bruno@clisp.org>
47779
47780         Add support for MacOS X ACLs.
47781         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47782         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47783         * lib/set-mode-acl.c (qset_acl): Likewise.
47784         * lib/copy-acl.c (qcopy_acl): Likewise.
47785
47786 2008-06-07  Bruno Haible  <bruno@clisp.org>
47787
47788         Fix memory leak introduced on 2008-05-22.
47789         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47790         use.
47791
47792 2008-06-07  Bruno Haible  <bruno@clisp.org>
47793
47794         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47795         to construct an empty ACL.
47796
47797 2008-06-07  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47800         precisely.
47801         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47802
47803 2008-06-07  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47806         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47807
47808 2008-06-07  Bruno Haible  <bruno@clisp.org>
47809
47810         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47811         regardless of POSIX.
47812         * doc/posix-functions/_longjmp.texi: Likewise.
47813         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47814         SystemV platform in this case.
47815
47816 2008-06-06  Eric Blake  <ebb9@byu.net>
47817
47818         Document abort() bugs.
47819         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47820
47821         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47822         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47823         sigsetjmp.
47824         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47825         siglongjmp, but only as a macro.
47826         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47827         is obsolete.
47828         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47829
47830         Tweak documentation to cover cygwin argz bugs.
47831         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47832         argz bug fix; no code change needed since no cygwin releases
47833         occurred between the last fix and the bug being tested.
47834         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47835         module and recently fixed cygwin bugs.
47836         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47837         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47838         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47839         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47840         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47841         Likewise.
47842         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47843         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47844         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47845         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47846         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47847         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47848         Likewise.
47849
47850         Avoid gcc warning on cygwin.
47851         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47852         !ACL_NO_TRIVIAL]: Avoid unused variable.
47853
47854 2008-06-05  Eric Blake  <ebb9@byu.net>
47855
47856         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47857         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47858         git-version-gen fails to come up with a version.
47859         Reported by Simon Josefsson.
47860
47861 2008-06-05  Jim Meyering  <meyering@redhat.com>
47862             Paul Eggert  <eggert@cs.ucla.edu>
47863
47864         utimens.c: work around a probable Linux kernel bug
47865         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47866         appears to be a kernel bug that causes utimensat to return 280
47867         instead of 0, indicating success.
47868
47869 2008-06-04  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47872         2008-06-01 commit.
47873
47874 2008-06-04  Bruno Haible  <bruno@clisp.org>
47875
47876         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47877         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47878         (file_has_acl): Use it. Save errno afterwards.
47879         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47880
47881 2008-06-03  Bruno Haible  <bruno@clisp.org>
47882
47883         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47884         draft code. Simplify #ifs.
47885         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47886         Put Solaris code after POSIX-draft code. Fix comments regarding
47887         Solaris 10, HP-UX. Mention Cygwin.
47888         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47889
47890 2008-06-03  Eric Blake  <ebb9@byu.net>
47891
47892         Provide fallback for older kernels.
47893         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47894         Provide runtime fallback if kernel lacks support.
47895         Reported by Mike Frysinger.
47896
47897 2008-06-02  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47900         it exists.
47901
47902 2008-06-02  Bruno Haible  <bruno@clisp.org>
47903
47904         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47905         * lib/copy-acl.c (qcopy_acl): Update comment.
47906
47907 2008-06-02  Bruno Haible  <bruno@clisp.org>
47908
47909         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47910         like ACL APIs.
47911
47912 2008-06-02  Bruno Haible  <bruno@clisp.org>
47913
47914         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47915         * tests/test-set-mode-acl.sh: Likewise.
47916         * tests/test-copy-acl.sh: Likewise.
47917         * tests/test-copy-file.sh: Likewise.
47918
47919 2008-06-02  Bruno Haible  <bruno@clisp.org>
47920
47921         * tests/test-file-has-acl.sh: Remove unused code.
47922
47923 2008-06-01  Bruno Haible  <bruno@clisp.org>
47924
47925         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47926         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47927         messages.
47928         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47929
47930 2008-06-01  Bruno Haible  <bruno@clisp.org>
47931
47932         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47933         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47934         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47935         APIs.
47936         * modules/acl-tests (configure.ac): Remove tests now contained in
47937         m4/acl.m4.
47938
47939 2008-06-02  Jim Meyering  <meyering@redhat.com>
47940
47941         announce-gen: use a better key-server host name
47942         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47943         it may be more consistently reliable.  Suggested by Werner Koch
47944         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47945
47946 2008-06-01  Bruno Haible  <bruno@clisp.org>
47947
47948         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47949         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47950
47951 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47952
47953         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47954
47955 2008-06-01  Bruno Haible  <bruno@clisp.org>
47956
47957         New ACL tests.
47958         * tests/test-file-has-acl.sh: New file.
47959         * tests/test-file-has-acl.c: New file.
47960         * tests/test-set-mode-acl.sh: New file.
47961         * tests/test-set-mode-acl.c: New file.
47962         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47963         * tests/test-copy-acl.c: New file.
47964         * modules/acl-tests: New file, based on modules/copy-file-tests.
47965         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47966         (Depends-on): Add acl-tests.
47967         (configure.ac): Remove checks.
47968         (Makefile.am): Don't create test-sameacls program here any more.
47969
47970 2008-06-01  Bruno Haible  <bruno@clisp.org>
47971
47972         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47973         * tests/test-sameacls.c: Include progname.h.
47974         (main): Invoke set_program_name. Portability fixes for MacOS X,
47975         Solaris, HP-UX.
47976
47977 2008-06-01  Bruno Haible  <bruno@clisp.org>
47978
47979         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47980         function.
47981         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47982
47983 2008-06-01  Bruno Haible  <bruno@clisp.org>
47984
47985         * modules/rpmatch (Depends-on): Add strdup.
47986
47987 2008-06-01  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/pipe.c: Include unistd-safer.h.
47990         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47991         * modules/pipe (Depends-on): Add unistd-safer.
47992
47993 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47994
47995         * modules/autobuild (configure.ac): Call AB_INIT.
47996
47997 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47998
47999         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48000         Suggested by Bruno Haible <bruno@clisp.org>.
48001
48002 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48003
48004         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48005         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48006         <bruno@clisp.org>.
48007
48008 2008-05-29  Eric Blake  <ebb9@byu.net>
48009
48010         Prefer new POSIX 200x interfaces over futimesat.
48011         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48012         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48013         when available.
48014         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48015
48016 2008-05-28  Bruno Haible  <bruno@clisp.org>
48017
48018         * modules/stpcpy (License): Change to LGPLv2+.
48019         Requested by David Lutterkort <dlutter@redhat.com>.
48020
48021 2008-05-27  Bruno Haible  <bruno@clisp.org>
48022
48023         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48024         current mingw.
48025         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48026
48027 2008-05-27  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/iconv_open (Link): New section, from module 'iconv'.
48030         * modules/striconv (Link): Likewise.
48031         * modules/striconveh (Link): Likewise.
48032         * modules/xstriconv (Link): Likewise.
48033         * modules/unicodeio (Link): Likewise.
48034         * modules/propername (Link): Likewise.
48035         Reported by Jim Meyering.
48036
48037 2008-05-26  Jim Meyering  <meyering@redhat.com>
48038
48039         sha256: do not artificially restrict buffer length to be < 2^32
48040         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48041         uint32_t to size_t.
48042         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48043         to match.
48044
48045         avoid unaligned access errors, e.g., on sparc
48046         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48047         direct access through a possibly-unaligned uint64* pointer.
48048         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48049         direct access through a possibly-unaligned uint32* pointer.
48050         Prompted by this patch from Tom "spot" Callaway:
48051         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48052
48053         sha512.c: fix typo in comment
48054         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48055
48056 2008-05-25  Bruno Haible  <bruno@clisp.org>
48057
48058         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48059         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48060         (Makefile.am): Update lib_SOURCES.
48061
48062 2008-05-25  Bruno Haible  <bruno@clisp.org>
48063
48064         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48065
48066 2008-05-25  Jim Meyering  <meyering@redhat.com>
48067
48068         useless-if-before-free: freed expr may have white-space differences
48069         * build-aux/useless-if-before-free: Recognize cases in which the
48070         freed expression differs from the tested one in embedded white
48071         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48072         $1 was used, so we can't make any regexp shy.  Improved tests now
48073         detect this.
48074
48075         useless-if-before-free: accept white space in the expression.
48076         * build-aux/useless-if-before-free: For now, any white space
48077         in the expression must be identical in the free argument.
48078
48079         useless-if-before-free: efficiency tweak
48080         * build-aux/useless-if-before-free: Make the expression-matching
48081         regexp "shy".
48082         Make the *outer* regexp shy, not the expr-matching one.
48083
48084         update code-in-comment to accept cast of free arg
48085         * build-aux/useless-if-before-free: Update regexp.
48086
48087 2008-05-25  Bruno Haible  <bruno@clisp.org>
48088
48089         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48090         * modules/copy-file-tests (Files, Makefile.am): Update.
48091         * tests/test-copy-file.c (func_test_copy): Update.
48092
48093 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48094
48095         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48096
48097 2008-05-23  Bruno Haible  <bruno@clisp.org>
48098
48099         Improve support for ACLs on OSF/1.
48100         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48101         Remove fallback for unknown flavors of ACLs.
48102
48103 2008-05-22  Bruno Haible  <bruno@clisp.org>
48104
48105         Add support for ACLs on OSF/1.
48106         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48107         replacements.
48108         (acl_free_text): New macro fallback.
48109         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48110         acl_free.
48111         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48112         acl_free_text function. Require AC_C_INLINE.
48113
48114 2008-05-22  Bruno Haible  <bruno@clisp.org>
48115
48116         Make copy_acl work on MacOS X 10.5.
48117         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48118         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48119         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48120         If MODE_INSIDE_ACL, don't assume that every system has the same text
48121         representation for ACLs as FreeBSD.
48122         * lib/copy-acl.c (copy_acl): Add support for platforms with
48123         !MODE_INSIDE_ACL.
48124         * lib/file-has-acl.c (file_has_acl): Likewise.
48125         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48126         FreeBSD, MacOS X, or IRIX, respectively.
48127
48128 2008-05-22  Bruno Haible  <bruno@clisp.org>
48129
48130         * lib/acl.h: Don't include <sys/acl.h>.
48131         (GETACLCNT): Move fallback to lib/acl-internal.h.
48132         * lib/acl-internal.h: Include <sys/acl.h> here.
48133         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48134
48135 2008-05-22  Bruno Haible  <bruno@clisp.org>
48136
48137         Split off copy_acl function to separate file.
48138         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48139         * lib/acl.c (copy_acl): Moved function to separate file.
48140         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48141         * modules/acl (Files): Add lib/copy-acl.c.
48142         (Makefiles.am): Augment lib_SOURCES.
48143
48144 2008-05-22  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/copy-file-tests: New file.
48147         * tests/test-copy-file.sh: New file.
48148         * tests/test-copy-file.c: New file.
48149         * tests/test-copy-file-sameacls.c: New file.
48150
48151 2008-05-22  Eric Blake  <ebb9@byu.net>
48152
48153         Avoid gcc warning.
48154         * tests/test-memcmp.c (main): Pass NULL indirectly.
48155
48156 2008-05-21  Bruno Haible  <bruno@clisp.org>
48157
48158         Add reference doc about ACLs.
48159         * doc/acl-resources.txt: New file.
48160         * doc/acl-cygwin.txt: New file.
48161
48162 2008-05-21  Bruno Haible  <bruno@clisp.org>
48163
48164         Avoid one more warning from gcc.
48165         * lib/vasnprintf.c (IF_LINT): Update comments.
48166         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48167
48168 2008-05-21  Jim Meyering  <meyering@redhat.com>
48169
48170         avoid a warning from gcc
48171         * lib/vasnprintf.c (IF_LINT): Define.
48172         (scale10_round_decimal_long_double):
48173         Use it to avoid a "may be used uninitialized" warning.
48174         (scale10_round_decimal_double): Likewise.
48175
48176 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48177
48178         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48179         declared.
48180
48181 2008-05-20  Bruno Haible  <bruno@clisp.org>
48182
48183         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48184         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48185
48186 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48187
48188         * modules/memcmp-tests: New file.
48189         * tests/test-memcmp.c: New file.
48190
48191 2008-05-19  Bruno Haible  <bruno@clisp.org>
48192
48193         * modules/propername (Notice, configure.ac): Put quoted "..." into
48194         --keyword option.
48195         * lib/propername.h: Update comments accordingly.
48196         Reported by Eric Blake.
48197
48198 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48199
48200         * modules/getpass-gnu (Depends-on): Add fseeko.
48201
48202 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48203
48204         * modules/base64-tests: New file.
48205
48206 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48207
48208         * lib/base64.c (base64_decode_ctx): If a decode context structure
48209         was passed in use it to ignore newlines.  If a context structure
48210         was _not_ passed in, continue to treat newlines as garbage (this
48211         is the historical behavior).  Formerly base64_decode.
48212         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48213         takes a decode context structure.
48214         * lib/base64.h (base64_decode): Macro for four-argument calls.
48215         (base64_decode_alloc): Likewise.
48216         * lib/base64.c (base64_decode_ctx): If a decode context structure
48217         was passed in use it to ignore newlines.  If a context structure
48218         was _not_ passed in, continue to treat newlines as garbage (this
48219         is the historical behavior).  Formerly base64_decode.
48220         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48221         takes a decode context structure.
48222         * lib/base64.h (base64_decode): Macro for four-argument calls.
48223         (base64_decode_alloc): Likewise.
48224
48225 2008-05-19  Jim Meyering  <meyering@redhat.com>
48226
48227         avoid a warning from gcc
48228         * lib/trim.c (IF_LINT): Define.
48229         (trim2): Use it to avoid a "may be used uninitialized" warning.
48230
48231         Fix doc typo.
48232         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48233
48234 2008-05-19  Bruno Haible  <bruno@clisp.org>
48235
48236         * doc/glibc-functions/getpass.texi: Document limits of other
48237         implementations.
48238
48239 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48240             Bruno Haible <bruno@clisp.org>
48241
48242         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48243
48244 2008-05-18  Bruno Haible  <bruno@clisp.org>
48245
48246         * modules/propername: New file, from GNU gettext.
48247         * lib/propername.h: New file, from GNU gettext.
48248         * lib/propername.c: New file, from GNU gettext.
48249         * MODULES.html.sh (Internationalization functions): Add propername.
48250
48251 2008-05-16  Jim Meyering  <meyering@redhat.com>
48252             Bruno Haible  <bruno@clisp.org>
48253
48254         Avoid some warnings from "gcc -Wshadow".
48255         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48256
48257 2008-05-15  Eric Blake  <ebb9@byu.net>
48258
48259         Extend previous patch to cygwin 1.7.0.
48260         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48261         fast implementation in cygwin >= 1.7.0.
48262         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48264
48265 2008-05-15  Bruno Haible  <bruno@clisp.org>
48266
48267         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48268         implementation in glibc >= 2.9.
48269         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48271
48272 2008-05-15  Bruno Haible  <bruno@clisp.org>
48273
48274         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48275         (Unicode string functions): Add unilbrk/*.
48276         Reported by Karl Berry.
48277
48278 2008-05-15  Eric Blake  <ebb9@byu.net>
48279
48280         Fix violation of <stdbool.h> replacement in regex.
48281         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48282         * lib/regexec.c (re_search_internal): Likewise.
48283         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48284
48285 2008-05-15  Jim Meyering  <meyering@redhat.com>
48286
48287         avoid distracting test output when git or cvs is not found
48288         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48289         * tests/test-vc-list-files-git.sh: Likewise.
48290
48291 2008-05-15  Eric Blake  <ebb9@byu.net>
48292
48293         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48294         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48295         glibc version.
48296         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48297         * doc/posix-functions/strstr.texi (strstr): Likewise.
48298         * lib/str-two-way.h (MAX): Sychronize with glibc.
48299
48300 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48301
48302         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48303         opr.ctx_type.
48304         (calc_first): Initialize constraint field.
48305         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48306         Fix grammar.
48307         (duplicate_node): Merge constraint field for all node types.
48308         (calc_eclosure_iter): Look at constraint field for all node types.
48309         * lib/regex_internal.c (create_cd_newstate): Don't look at
48310         opr.ctx_type.
48311
48312 2008-05-14  Bruno Haible  <bruno@clisp.org>
48313
48314         Help GCC to do better code generation.
48315         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48316         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48317         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48318         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48319         Declare with attribute 'malloc' if supported.
48320
48321 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48322
48323         use "echo STR|wc -c" rather than unportable "expr length STR"
48324         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48325         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48326
48327 2008-05-14  Jim Meyering  <meyering@redhat.com>
48328
48329         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48330         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48331         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48332         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48333         via Collin Lasse.
48334
48335 2008-05-14  Eric Blake  <ebb9@byu.net>
48336
48337         Avoid quadratic growth in gl_LIBSOURCES.
48338         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48339         Suggested by Bruno Haible.
48340
48341         Test xmemdup0.
48342         * modules/xmemdup0-tests: New file.
48343         * tests/test-xmemdup0.c: Likewise.
48344
48345 2008-05-13  Eric Blake  <ebb9@byu.net>
48346
48347         Split xmemdup0 into its own module.
48348         * modules/xmemdup0: New file.
48349         * lib/xmemdup0.h: Likewise.
48350         * lib/xmemdup0.c: Likewise.
48351         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48352         * lib/xalloc.h (xmemdup0): Remove.
48353         * lib/xmalloc.c (xmemdup0): Likewise.
48354
48355 2008-05-13  Eric Blake  <ebb9@byu.net>
48356             Bruno Haible  <bruno@clisp.org>
48357
48358         Reduce number of forks required during autoconf.
48359         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48360         and gl_LIBSOURCES_DIR.
48361         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48362         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48363         m4_syscmd per file.
48364         <m4_foreach_w>: Move...
48365         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48366
48367 2008-05-13  Eric Blake  <ebb9@byu.net>
48368
48369         * gnulib-tool: Fix various comment typos.
48370
48371 2008-05-12  Bruno Haible  <bruno@clisp.org>
48372
48373         Tailor the linebreaking algorithm.
48374         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48375
48376 2008-05-12  Bruno Haible  <bruno@clisp.org>
48377
48378         Update to Unicode 5.0.0.
48379         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48380         LBP_JV, LBP_JT. Redistribute values.
48381         (unilbrk_table): Change size.
48382         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48383         Unicode TR#14 rev. 22.
48384         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48385         LBP_JV, LBP_JT. Redistribute values.
48386         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48387         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48388         Update.
48389         * lib/unilbrk/lbrkprop1.h: Regenerated.
48390         * lib/unilbrk/lbrkprop2.h: Regenerated.
48391         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48392         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48393         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48394         Likewise.
48395         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48396         Likewise.
48397         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48398         result.
48399         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48400         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48401         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48402         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48403         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48404         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48405
48406 2008-05-11  Bruno Haible  <bruno@clisp.org>
48407
48408         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48409
48410 2008-05-11  Bruno Haible  <bruno@clisp.org>
48411
48412         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48413         * modules/unilbrk/gen-lbrk: New file.
48414
48415 2008-05-11  Bruno Haible  <bruno@clisp.org>
48416
48417         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48418         * m4/sha512.m4 (gl_SHA512): Likewise.
48419
48420 2008-05-11  Jim Meyering  <meyering@redhat.com>
48421
48422         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48423         * modules/crypto/sha256: New file.
48424         * modules/crypto/sha512: Likewise.
48425         * lib/sha256.c: Likewise.
48426         * lib/sha256.h: Likewise.
48427         * lib/sha512.c: Likewise.
48428         * lib/sha512.h: Likewise.
48429         * lib/u64.h: Likewise.
48430         * m4/sha256.m4: Likewise.
48431         * m4/sha512.m4: Likewise.
48432         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48433
48434 2008-05-10  Bruno Haible  <bruno@clisp.org>
48435
48436         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48437         (Input/Output <stdio.h>): Add xprintf.
48438         (Signal handling <signal.h>): Add strsignal.
48439         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48440         (Core language properties): Add func.
48441         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48442         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48443         strings.
48444         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48445         (Input/output): New section.
48446         (File system functions): Add openat-die, stat-macros.
48447         (Networking functions): Add sockets.
48448         (Unicode string functions): Add unictype/*.
48449         (Support for building libraries and executables): Add gperf.
48450         (Support for building documentation): Add agpl-3.0.
48451         (Misc): Add nocrash.
48452
48453 2008-05-10  Bruno Haible  <bruno@clisp.org>
48454
48455         * modules/unictype/gen-ctype: New file.
48456
48457 2008-05-10  Jim Meyering  <meyering@redhat.com>
48458
48459         Make chdir-safer.c more efficient on a system with no symlinks.
48460         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48461         also if ELOOP is zero.  Suggested by Bruno Haible.
48462
48463         Make chdir-safer.c slightly safer.
48464         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48465         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48466
48467         Avoid compile failure on systems without ELOOP (like mingw).
48468         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48469         Reported by Bruno Haible.
48470
48471 2008-05-10  Bruno Haible  <bruno@clisp.org>
48472
48473         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48474         (is_utf8_encoding): Use a case-insensitive comparison.
48475         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48476         streq.
48477
48478 2008-05-10  Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48481         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48482         * lib/unilbrk/ulc-common.h (iconv_string_length,
48483         iconv_string_keeping_offsets): Remove declarations.
48484         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48485         Don't include <iconv.h>, streq.h, xsize.h.
48486         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48487         conversion.
48488         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48489         <iconv.h>, streq.h, xsize.h.
48490         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48491         conversion.
48492         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48493         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48494         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48495         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48496
48497 2008-05-10  Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48500         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48501
48502         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48503         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48504
48505         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48506         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48507
48508         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48509         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48510
48511         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48512         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48513
48514         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48515         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48516
48517         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48518         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48519
48520         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48521         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48522
48523 2008-05-10  Bruno Haible  <bruno@clisp.org>
48524
48525         Split up 'linebreak' module.
48526         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48527         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48528         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48529         modifications.
48530         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48531         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48532         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48533         lib/linebreak.c.
48534         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48535         lib/linebreak.c.
48536         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48537         lib/linebreak.c.
48538         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48539         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48540         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48541         lib/linebreak.c.
48542         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48543         lib/linebreak.c.
48544         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48545         lib/linebreak.c.
48546         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48547         lib/linebreak.c.
48548         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48549         lib/linebreak.c.
48550         * modules/unilbrk/base: New file.
48551         * modules/unilbrk/tables: New file.
48552         * modules/unilbrk/u8-possible-linebreaks: New file.
48553         * modules/unilbrk/u16-possible-linebreaks: New file.
48554         * modules/unilbrk/u32-possible-linebreaks: New file.
48555         * modules/unilbrk/ulc-common: New file.
48556         * modules/unilbrk/ulc-possible-linebreaks: New file.
48557         * modules/unilbrk/u8-width-linebreaks: New file.
48558         * modules/unilbrk/u16-width-linebreaks: New file.
48559         * modules/unilbrk/u32-width-linebreaks: New file.
48560         * modules/unilbrk/ulc-width-linebreaks: New file.
48561         * lib/linebreak.h: Remove file.
48562         * lib/linebreak.c: Remove file.
48563         * m4/linebreak.m4: Remove file.
48564         * modules/linebreak: Remove file.
48565         * NEWS: Mention the changes.
48566
48567 2008-05-09  Eric Blake  <ebb9@byu.net>
48568
48569         Add xmemdup0.
48570         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48571         implementation.
48572         * lib/xmalloc.c (xmemdup0): New C implementation.
48573
48574 2008-05-08  Bruno Haible  <bruno@clisp.org>
48575
48576         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48577
48578 2008-05-07  Eric Blake  <ebb9@byu.net>
48579
48580         Support cross-compilation of <wctype.h>.
48581         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48582         AC_CACHE_CHECK.
48583
48584 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48585
48586         * build-aux/vc-list-files: Add support for bzr.
48587
48588 2008-05-03  Jim Meyering  <meyering@redhat.com>
48589
48590         avoid failed assertion with tight malloc
48591         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48592
48593 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48594
48595         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48596         are needed from arpa/inet.h.
48597         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48598         Reported by Bruno Haible.
48599
48600 2008-05-02  Jim Meyering  <meyering@redhat.com>
48601
48602         avoid compilation error on FreeBSD 6
48603         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48604
48605 2008-05-01  Jim Meyering  <meyering@redhat.com>
48606
48607         useless-if-before-free: correct --help's exit status description
48608         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48609         for one or more matches, etc.  Reported by Bruno Haible.
48610
48611         vc-list-files: make the stand-alone gnulib test work
48612         * modules/vc-list-files-tests (configure.ac):
48613         Define and AC_SUBST abs_aux_dir.
48614         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48615         $(abs_top_srcdir) to each script and having each of them
48616         duplicate the work of setting PATH, set PATH here, using
48617         the new variable, abs_aux_dir instead.
48618         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48619         * tests/test-vc-list-files-git.sh: Likewise.
48620         Reported by Bruno Haible.
48621
48622 2008-05-01  Bruno Haible  <bruno@clisp.org>
48623
48624         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48625         reallocation. Rename 'done' to 'found_delimiter'.
48626
48627 2008-05-01  Jim Meyering  <meyering@redhat.com>
48628
48629         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48630         * build-aux/vc-list-files: Use `...`, not $(...).
48631
48632 2008-04-30  Jim Meyering  <meyering@redhat.com>
48633
48634         add tests for vc-list-files
48635         * modules/vc-list-files-tests: New module.
48636         * tests/test-vc-list-files-cvs.sh: New file.
48637         * tests/test-vc-list-files-git.sh: New file.
48638
48639         avoid a warning from gcc
48640         * lib/getndelim2.c (IF_LINT): Define.
48641         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48642
48643         vc-list-files: work properly with build-aux/cvsu, too
48644         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48645         to all cvs-based clauses.
48646
48647         vc-list-files: work properly in the CVS+awk case, too
48648         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48649
48650         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48651         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48652         take more than one file argument, so .  Add quotes, just in case $dir
48653         ever contains a shell meta-character.  Prompted by Soren Hansen in
48654         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48655
48656 2008-04-29  Eric Blake  <ebb9@byu.net>
48657
48658         Optimize getndelim2 to use block operations when possible.
48659         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48660         freadseek, and memchr2.
48661         * lib/getndelim2.c (getndelim2): Use them for block reads.
48662
48663 2008-04-29  Bruno Haible  <bruno@clisp.org>
48664
48665         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48666         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48667         * modules/inet_ntop (Depends-on): Add extensions.
48668         * modules/inet_pton (Depends-on): Likewise.
48669         Reported by Simon Josefsson.
48670
48671 2008-04-29  Jim Meyering  <meyering@redhat.com>
48672
48673         When the is more than one match in a block, match all of them.
48674         * build-aux/useless-if-before-free: Iterate through each block
48675         until there are no more matches.
48676
48677         Fix broken useless-if-before-free script.
48678         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48679         the expression to match cast of argument to free-like function.
48680
48681 2008-04-29  Eric Blake  <ebb9@byu.net>
48682
48683         Use new header.
48684         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48685
48686 2008-04-29  Jim Meyering  <meyering@redhat.com>
48687
48688         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48689         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48690         by gnulib to exist and to declare e.g., inet_ntop.
48691         Don't include "inet_ntop.h", now removed.
48692
48693         * m4/arpa_inet_h.m4: Remove trailing blanks.
48694
48695 2008-04-29  Eric Blake  <ebb9@byu.net>
48696
48697         Silence valgrind on safe reads beyond potential array bounds.
48698         * lib/rawmemchr.valgrind: New file.
48699         * lib/strchrnul.valgrind: Likewise.
48700         * modules/rawmemchr (Files): Distribute new file.
48701         * modules/strchrnul (Files): Likewise.
48702         Suggested by Bruno Haible.
48703
48704 2008-04-29  Bruno Haible  <bruno@clisp.org>
48705
48706         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48707         (inet_ntop, inet_pton): Change portability warning's wording.
48708         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48709         Invoke gl_CHECK_NEXT_HEADERS.
48710         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48711         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48712         set ARPA_INET_H.
48713         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48714         * modules/arpa_inet (Description): No longer only for systems that
48715         lack it.
48716         (Depends-on): Add include_next.
48717         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48718         HAVE_ARPA_INET_H.
48719
48720 2008-04-29  Jim Meyering  <meyering@redhat.com>
48721
48722         * modules/mkdir (License): Re-license as LGPLv2+.
48723
48724 2008-04-29  Bruno Haible  <bruno@clisp.org>
48725
48726         * modules/rawmemchr (Maintainer): Set to Eric.
48727         * modules/strchrnul (Maintainer): Likewise.
48728
48729 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48730
48731         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48732         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48733
48734         * modules/arpa_inet (arpa/inet.h): Use them.
48735
48736 2008-04-28  Eric Blake  <ebb9@byu.net>
48737
48738         Test getndelim2.
48739         * modules/getndelim2-tests: New file.
48740         * tests/test-getndelim2.c: Likewise.
48741         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48742         stream.
48743         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48744
48745         * MODULES.html.sh: Document new module.
48746
48747 2008-04-20  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/c-stack.c (die): Use raise.
48750         * modules/c-stack (Depends-on): Add raise.
48751
48752 2008-04-28  Bruno Haible  <bruno@clisp.org>
48753
48754         Expect rpmatch to be declared.
48755         * lib/yesno.c (rpmatch): Remove declaration.
48756
48757         Declare rpmatch.
48758         * lib/stdlib.in.h (rpmatch): New declaration.
48759         * lib/rpmatch.c: Include <stdlib.h> first.
48760         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48761         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48763         HAVE_RPMATCH.
48764         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48766         (Include): Set to <stdlib.h>.
48767         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48768         HAVE_RPMATCH.
48769         * NEWS: Document the change.
48770
48771 2008-04-28  Bruno Haible  <bruno@clisp.org>
48772
48773         Change rpmatch to use nl_langinfo when appropriate.
48774         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48775         (N_): New macro.
48776         (localized_pattern): New function/macro.
48777         (try): Remove match, nomatch arguments. Copy the pattern into safe
48778         memory before caching it.
48779         (rpmatch): Use localized_pattern. Add translator comments.
48780         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48781         Suggested by Eric Blake.
48782         * modules/rpmatch (Depends-on): Add stdbool.
48783
48784 2008-04-28  Eric Blake  <ebb9@byu.net>
48785
48786         Add rawmemchr module, matching glibc.
48787         * modules/string (Makefile.am): New indicator.
48788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48789         * lib/string.in.h (rawmemchr): Declare when appropriate.
48790         * modules/rawmemchr: New file.
48791         * m4/rawmemchr.m4: Likewise.
48792         * lib/rawmemchr.c: Likewise.
48793         * modules/rawmemchr-tests: Likewise.
48794         * tests/test-rawmemchr.c: Likewise.
48795         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48796         module.
48797         * modules/strchrnul (Depends-on): Add rawmemchr.
48798         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48799
48800         Whitespace cleanup.
48801         * tests/test-strchrnul.c: Reindent.
48802         * lib/strchrnul.c: Likewise.
48803
48804         Optimize and test strchrnul.
48805         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48806         * modules/strchrnul-tests: New file.
48807         * tests/test-strchrnul.c: Likewise.
48808
48809         Remove intprops dependency.
48810         * modules/memchr (Depends-on): Remove intprops.
48811         * modules/memrchr (Depends-on): Likewise.
48812         * modules/memchr2 (Depends-on): Likewise.
48813         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48814         * lib/memrchr.c (__memrchr): Likewise.
48815         * lib/memrchr2.c (memchr2): Likewise.
48816         Reported by Simon Josefsson.
48817
48818 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48819
48820         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48821         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48822
48823 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48824
48825         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48826
48827         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48828
48829         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48830
48831         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48832         declarations.
48833         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48834
48835         * m4/inet_pton.m4: Don't check for header files.
48836
48837         * m4/inet_ntop.m4: Don't check for header files.
48838
48839 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48840
48841         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48842         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48843         trigger for cygwin).
48844         Reported by Bruno Haible  <bruno@clisp.org>.
48845
48846 2008-04-28  Bruno Haible  <bruno@clisp.org>
48847
48848         * doc/posix-functions/strdup.texi: Mention mingw problem.
48849
48850 2008-04-27  Bruno Haible  <bruno@clisp.org>
48851
48852         * modules/stat-time-tests (Depends-on): Add sleep.
48853         * tests/test-stat-time.c (force_unlink): New function.
48854         (cleanup): Use it.
48855         (test_mtime): Remove the ctime related tests.
48856         (test_ctime): New function, containing the ctime related tests.
48857         (main): Call test_ctime, except on native Windows platforms.
48858
48859 2008-04-27  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/rpmatch.c (rpmatch): Add some comments.
48862         Reported by James Youngman <jay@gnu.org>.
48863
48864 2008-04-27  Bruno Haible  <bruno@clisp.org>
48865
48866         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48867         quiet NaNs.
48868
48869 2008-04-27  Bruno Haible  <bruno@clisp.org>
48870
48871         Make test-yesno.sh work on mingw.
48872         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48873         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48874         (main): Set stdin to binary mode.
48875         * modules/yesno-tests (Depends-on): Add binary-io.
48876
48877 2008-04-27  Bruno Haible  <bruno@clisp.org>
48878
48879         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48880         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48881         argument that lie outside the IEEE 854 domain.
48882         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48883         (gl_ISFINITE): Use it.
48884         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48885
48886 2008-04-27  Bruno Haible  <bruno@clisp.org>
48887
48888         Allow local renaming in config.h.
48889         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48890
48891 2008-04-27  Bruno Haible  <bruno@clisp.org>
48892
48893         * lib/memchr.c (__memchr): Change type of 'i'.
48894         * lib/memchr2.c (memchr2): Likewise.
48895
48896 2008-04-26  Eric Blake  <ebb9@byu.net>
48897         and Bruno Haible  <bruno@clisp.org>
48898
48899         Optimize and test memrchr.
48900         * modules/memrchr (Depends-on): Add intprops.
48901         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48902         * modules/memrchr-tests: New file.
48903         * tests/test-memrchr.c: New file.
48904
48905 2008-04-26  Bruno Haible  <bruno@clisp.org>
48906
48907         Add tentative support for DragonFly BSD.
48908         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48909         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48910         fp.
48911         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48912         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48913         * lib/fpurge.c (fpurge): Likewise.
48914         * lib/freadable.c (freaadable): Likewise.
48915         * lib/freadahead.c (freadahead): Likewise.
48916         * lib/freading.c (freading): Likewise.
48917         * lib/freadptr.c (freadptr): Likewise.
48918         * lib/freadseek.c (freadptrinc): Likewise.
48919         * lib/fseeko.c (fseeko): Likewise.
48920         * lib/fseterr.c (fseterr): Likewise.
48921         * lib/fwritable.c (fwritable): Likewise.
48922         * lib/fwriting.c (fwriting): Likewise.
48923
48924 2008-04-26  Bruno Haible  <bruno@clisp.org>
48925
48926         * lib/stdio-impl.h: New file.
48927         * lib/fbufmode.c: Include stdio-impl.h.
48928         (fbufmode): Use fp_, remove redundant #defines.
48929         * lib/fflush.c: Include stdio-impl.h.
48930         (clear_ungetc_buffer): Remove redundant #defines.
48931         * lib/fpurge.c: Include stdio-impl.h.
48932         (fpurge): Remove redundant #defines.
48933         * lib/freadable.c: Include stdio-impl.h.
48934         (freadable): Remove redundant #defines.
48935         * lib/freadahead.c: Include stdio-impl.h.
48936         (freadahead): Remove redundant #defines.
48937         * lib/freading.c: Include stdio-impl.h.
48938         (freading): Remove redundant #defines.
48939         * lib/freadptr.c: Include stdio-impl.h.
48940         (freadptr): Remove redundant #defines.
48941         * lib/freadseek.c: Include stdio-impl.h.
48942         (freadptrinc): Remove redundant #defines.
48943         * lib/fseeko.c: Include stdio-impl.h.
48944         (rpl_fseeko): Remove redundant #defines.
48945         * lib/fseterr.c: Include stdio-impl.h.
48946         (fseterr): Remove redundant #defines.
48947         * lib/fwritable.c: Include stdio-impl.h.
48948         (fwritable: Remove redundant #defines.
48949         * lib/fwriting.c: Include stdio-impl.h.
48950         (fwriting): Remove redundant #defines.
48951         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48952         * modules/fflush (Files): Likewise.
48953         * modules/fpurge (Files): Likewise.
48954         * modules/freadable (Files): Likewise.
48955         * modules/freadahead (Files): Likewise.
48956         * modules/freading (Files): Likewise.
48957         * modules/freadptr (Files): Likewise.
48958         * modules/freadseek (Files): Likewise.
48959         * modules/fseeko (Files): Likewise.
48960         * modules/fseterr (Files): Likewise.
48961         * modules/fwritable (Files): Likewise.
48962         * modules/fwriting (Files): Likewise.
48963
48964 2008-04-26  Bruno Haible  <bruno@clisp.org>
48965
48966         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48967         restore_seek_optimization, update_fpos_cache): New functions, extracted
48968         from rpl_fflush.
48969         (rpl_fflush): Use them.
48970         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48971         (gl_REPLACE_FFLUSH): Use it.
48972
48973 2008-04-26  Bruno Haible  <bruno@clisp.org>
48974
48975         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48976         on Solaris.
48977         * tests/test-xstrtoimax.sh: Likewise.
48978         * tests/test-xstrtoumax.sh: Likewise.
48979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48980
48981 2008-04-26  Bruno Haible  <bruno@clisp.org>
48982
48983         * modules/memchr-tests: New file.
48984         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48985
48986 2008-04-26  Eric Blake  <ebb9@byu.net>
48987             Bruno Haible  <bruno@clisp.org>
48988
48989         * lib/memchr.c: Include intprops.h.
48990         (__memchr): Optimize parallel detection of matching bytes. Rename local
48991         variables. Add explanatory comments.
48992
48993 2008-04-26  Bruno Haible  <bruno@clisp.org>
48994
48995         Fix module 'memchr', broken since 2000-10-28.
48996         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48997
48998 2008-04-26  Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49001         comments.
49002
49003 2008-04-25  Eric Blake  <ebb9@byu.net>
49004
49005         Use native fstatat on cygwin 1.7.0.
49006         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49007         first.
49008
49009 2008-04-23  Eric Blake  <ebb9@byu.net>
49010
49011         Improve memchr2 performance.
49012         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49013         NUL bytes.
49014         * modules/memchr2 (Depends-on): Use intprops.h.
49015
49016 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49017
49018         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49019         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49020         <blp@cs.stanford.edu>.
49021
49022 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49023
49024         * lib/arpa_inet.in.h: New file.
49025
49026         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49027         (Makefile.am): Sed in substitute header file.
49028
49029         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49030         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49031
49032         * modules/inet_ntop (configure.ac): Use
49033         gl_ARPA_INET_MODULE_INDICATOR.
49034
49035         * modules/inet_pton (configure.ac): Use
49036         gl_ARPA_INET_MODULE_INDICATOR.
49037
49038 2008-04-22  Jim Meyering  <meyering@redhat.com>
49039
49040         * modules/verify (License): Re-license as LGPLv2+.
49041
49042 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49043
49044         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49045         parameter to void* as per POSIX standard (MinGW uses char*).
49046
49047 2008-04-21  Bruno Haible  <bruno@clisp.org>
49048
49049         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49050         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49051         Define to replacements if REPLACE_ISWCNTRL is 1.
49052         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49053         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49054         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49055         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49056         what it fixes.
49057         * doc/posix-functions/iswalpha.texi: Likewise.
49058         * doc/posix-functions/iswblank.texi: Likewise.
49059         * doc/posix-functions/iswcntrl.texi: Likewise.
49060         * doc/posix-functions/iswdigit.texi: Likewise.
49061         * doc/posix-functions/iswgraph.texi: Likewise.
49062         * doc/posix-functions/iswlower.texi: Likewise.
49063         * doc/posix-functions/iswprint.texi: Likewise.
49064         * doc/posix-functions/iswpunct.texi: Likewise.
49065         * doc/posix-functions/iswspace.texi: Likewise.
49066         * doc/posix-functions/iswupper.texi: Likewise.
49067         * doc/posix-functions/iswxdigit.texi: Likewise.
49068         Reported by Alain Guibert.
49069
49070 2008-04-21  Bruno Haible  <bruno@clisp.org>
49071
49072         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49073         Patch by Alain Guibert.
49074
49075 2008-04-21  Bruno Haible  <bruno@clisp.org>
49076
49077         Fix test failures on mingw.
49078         * tests/test-xstrtol.c (print_no_progname): New function.
49079         (main): Install it in error_print_progname hook.
49080         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49081         * tests/test-xstrtoimax.sh: Likewise.
49082         * tests/test-xstrtoumax.sh: Likewise.
49083
49084 2008-04-21  Bruno Haible  <bruno@clisp.org>
49085
49086         Fix test failure on mingw.
49087         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49088
49089 2008-04-21  Bruno Haible  <bruno@clisp.org>
49090
49091         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49092         Actually assign a value.
49093
49094 2008-04-20  Bruno Haible  <bruno@clisp.org>
49095
49096         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49097         take 2.
49098         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49099         'canonicalize-lgpl' module is also used.
49100         * lib/canonicalize-lgpl.c: Undo last change.
49101         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49102
49103 2008-04-20  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49106         config.h. Provide _mkdir based fallback for mingw.
49107         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49108         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49109         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49110         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49111         rather than defining mkdir in config.h.
49112         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49113         (gl_SYS_STAT_H_DEFAULTS): New macro.
49114         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49115         HAVE_IO_H any more.
49116         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49117         HAVE_DECL_MKDIR and HAVE_IO_H.
49118
49119 2008-04-20  Bruno Haible  <bruno@clisp.org>
49120
49121         * lib/isapipe.c: Port to native Windows platforms.
49122
49123 2008-04-20  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49126
49127 2008-04-21  Eric Blake  <ebb9@byu.net>
49128
49129         Work around preprocessors that don't handle UINTMAX_MAX.
49130         * lib/memchr2.c (memchr2): Avoid embedded #if.
49131         Reported by Alain Guibert, fix suggested by Bruno Haible.
49132
49133 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49134
49135         * doc/posix-functions/strftime.texi (strftime): Explain better
49136         Windows incompatibility.  Suggested by Micah Cowan
49137         <micah@cowan.name>.
49138
49139 2008-04-20  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49142         unistr/u8-mblen.
49143
49144 2008-04-20  Bruno Haible  <bruno@clisp.org>
49145
49146         Fix test failure on platforms with non-GNU iconv.
49147         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49148         (U_TO_U8): Use it, rather than u16_to_u8.
49149         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49150         units at the end of the input string.
49151         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49152
49153 2008-04-20  Bruno Haible  <bruno@clisp.org>
49154
49155         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49156         when the resulting length is 0.
49157         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49158
49159 2008-04-20  Bruno Haible  <bruno@clisp.org>
49160
49161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49162         works.
49163         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49164
49165 2008-04-20  Bruno Haible  <bruno@clisp.org>
49166
49167         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49168         * modules/tsearch-tests (configure.ac): Test for initstate function.
49169
49170 2008-04-20  Bruno Haible  <bruno@clisp.org>
49171
49172         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49173         for nlink_t if missing.
49174         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49175
49176 2008-04-19  Bruno Haible  <bruno@clisp.org>
49177
49178         Work around snprintf bug on Linux libc5.
49179         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49181         gl_SNPRINTF_SIZE1.
49182         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49183         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49184         that test failed.
49185         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49186         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49187         * modules/snprintf (Files): Add m4/printf.m4.
49188         * modules/vsnprintf (Files): Likewise.
49189         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49190         * doc/posix-functions/vsnprintf.texi: Likewise.
49191
49192 2008-04-19  Bruno Haible  <bruno@clisp.org>
49193
49194         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49195         from 0.0058 to less than 10^-7.
49196
49197 2008-04-19  Bruno Haible  <bruno@clisp.org>
49198
49199         Fix rounding when a precision is given.
49200         * lib/vasnprintf.c (is_borderline): New function.
49201         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49202         9...9x.
49203         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49204         %e, %g.
49205         * tests/test-vasprintf-posix.c (test_function): Likewise.
49206         * tests/test-snprintf-posix.h (test_function): Likewise.
49207         * tests/test-sprintf-posix.h (test_function): Likewise.
49208         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49209         * tests/test-printf-posix.h (test_function): Likewise.
49210         * tests/test-printf-posix.output: Update.
49211         Reported by John Darrington <john@darrington.wattle.id.au> via
49212         Ben Pfaff <blp@cs.stanford.edu>.
49213
49214 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49215
49216         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49217         Suggested by Bruno Haible <bruno@clisp.org>.
49218
49219 2008-04-17  Bruno Haible  <bruno@clisp.org>
49220
49221         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49222         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49223         implementation.
49224         Patch by Bruce Merry <bmerry@gmail.com>.
49225
49226 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49227
49228         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49229         doesn't work under Windows.
49230
49231 2008-04-16  Bruno Haible  <bruno@clisp.org>
49232
49233         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49234         New macros.
49235         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49236         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49237         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49238         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49239         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49240         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49241         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49242         macros.
49243         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49244         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49245         Northern Sotho, Uighur.
49246
49247 2008-04-16  Bruno Haible  <bruno@clisp.org>
49248
49249         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49250         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49251         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49252         Reported by Daniel Bergström <daniel@octocode.com>.
49253
49254 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49255             Bruno Haible  <bruno@clisp.org>
49256
49257         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49258         function.
49259         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49260         New functions, mostly extracted from gl_locale_name_default.
49261         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49262
49263 2008-04-16  Eric Blake  <ebb9@byu.net>
49264
49265         Adjust strtod detection to catch glibc 2.7 bug.
49266         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49267         Reported by John Gatewood Ham.
49268
49269 2008-04-16  Bruno Haible  <bruno@clisp.org>
49270
49271         Add tentative support for Linux libc5.
49272         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49273         * lib/fpurge.c (fpurge): Likewise.
49274         * lib/freadable.c (freadable): Likewise.
49275         * lib/freadahead.c (freadahead): Likewise.
49276         * lib/freading.c (freading): Likewise.
49277         * lib/freadptr.c (freadptr): Likewise.
49278         * lib/freadseek.c (freadptrinc): Likewise.
49279         * lib/fseeko.c (rpl_fseeko): Likewise.
49280         * lib/fseterr.c (fseterr): Likewise.
49281         * lib/fwritable.c (fwritable): Likewise.
49282         * lib/fwriting.c (fwriting): Likewise.
49283         Reported by Alain Guibert <alguibert+bts@free.fr>.
49284
49285 2008-04-15  Bruno Haible  <bruno@clisp.org>
49286
49287         * modules/mathl (configure.ac): Define module indicator.
49288
49289 2008-04-15  Bruno Haible  <bruno@clisp.org>
49290
49291         * lib/logl.c (logl): Remove unused variables.
49292
49293 2008-04-15  Bruno Haible  <bruno@clisp.org>
49294
49295         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49296         fails.
49297
49298 2008-04-15  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/trim.c (trim2): Fix argument of isspace() macro.
49301
49302 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49303
49304         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49305         to 0.
49306         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49307
49308 2008-04-14  Bruno Haible  <bruno@clisp.org>
49309
49310         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49311         AC_LANG_PROGRAM argument.
49312         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49313         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49315         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49316         * m4/math_h.m4 (gl_MATH_H): Likewise.
49317         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49319         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49320         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49321         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49322         * m4/regex.m4 (gl_REGEX): Likewise.
49323         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49324         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49327         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49328         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49330         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49331
49332 2008-04-14  Jim Meyering  <meyering@redhat.com>
49333
49334         test-strtod: fix typos: s/abs/fabs/
49335         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49336
49337 2008-04-13  Bruno Haible  <bruno@clisp.org>
49338
49339         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49340         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49341         module is also used and while not building the reloc-wrapper.
49342
49343 2008-04-13  Bruno Haible  <bruno@clisp.org>
49344
49345         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49346
49347 2008-04-13  Bruno Haible  <bruno@clisp.org>
49348
49349         Fix AIX compilation failure introduced on 2008-04-02.
49350         * tests/test-frexp.c (exp): Undefine before redefining.
49351         * tests/test-frexpl.c (exp): Likewise.
49352
49353 2008-04-13  Bruno Haible  <bruno@clisp.org>
49354
49355         Work around a HP-UX stdio bug.
49356         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49357         * tests/test-ftello.c (main): Likewise.
49358         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49359         * doc/posix-functions/ftello.texi: Likewise.
49360
49361 2008-04-13  Bruno Haible  <bruno@clisp.org>
49362
49363         Make test-signbit pass on HP-UX/hppa.
49364         * tests/test-signbit.c (minus_zerol): New variable.
49365         (test_signbitl): Use it.
49366
49367 2008-04-13  Bruno Haible  <bruno@clisp.org>
49368
49369         Make truncl work on OSF/1 4.0.
49370         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49371         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49372         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49374         HAVE_DECL_TRUNCL.
49375         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49376         HAVE_DECL_TRUNCL.
49377         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49378
49379 2008-04-13  Bruno Haible  <bruno@clisp.org>
49380
49381         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49382
49383 2008-04-13  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49386         expression, so as to avoid HP-UX 11 cc compiler bug.
49387
49388 2008-04-13  Bruno Haible  <bruno@clisp.org>
49389
49390         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49391
49392 2008-04-13  Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/git-merge-changelog.c: Remove empty declaration outside of
49395         functions.
49396
49397 2008-04-13  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49400
49401 2008-04-13  Bruno Haible  <bruno@clisp.org>
49402
49403         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49404         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49406         also if it exists but lacks definitions of the SHUT_* macros.
49407         * modules/sys_socket (Description): Update.
49408         Reported by Elbert Pol <e.pol@chello.nl>.
49409
49410 2008-04-13  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/localcharset.c (OS2): Don't redefine if already defined.
49413         Reported by Elbert Pol <e.pol@chello.nl>.
49414
49415 2008-04-13  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/binary-io.h [__EMX__]: Include <io.h>.
49418         Reported by Elbert Pol <e.pol@chello.nl>.
49419
49420 2008-04-12  Bruno Haible  <bruno@clisp.org>
49421
49422         * lib/fpucw.h: Enable the definitions also for x86_64.
49423         Needed for NetBSD/x86_64.
49424         Reported by Thomas Klausner <tk@giga.or.at>.
49425
49426 2008-04-12  Bruno Haible  <bruno@clisp.org>
49427
49428         * tests/test-strtod.c: Include isnand.h.
49429         (main): Use isnand instead of isnan.
49430         Reported by Jim Meyering.
49431
49432 2008-04-12  Bruno Haible  <bruno@clisp.org>
49433
49434         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49435         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49436
49437 2008-04-12  Jim Meyering  <meyering@redhat.com>
49438
49439         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49440
49441 2008-04-12  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49444         Reported by Elbert Pol <e.pol@chello.nl>.
49445
49446 2008-04-12  Eric Blake  <ebb9@byu.net>
49447
49448         Work around Solaris 10 math.h bug.
49449         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49450         (gl_MATH_H_DEFAULTS): Set up default.
49451         * modules/math (Makefile.am): Replace new indicators.
49452         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49453         * tests/test-math.c (main): Test this.
49454         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49455         * doc/posix-headers/math.texi (math.h): Mention bug.
49456         Reported by Nelson H. F. Beebe and Jim Meyering.
49457
49458 2008-04-11  Bruno Haible  <bruno@clisp.org>
49459
49460         Adapt to future versions of Apple GCC.
49461         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49462         Reported by Peter O'Gorman <peter@pogma.com>.
49463
49464 2008-04-11  Bruno Haible  <bruno@clisp.org>
49465
49466         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49467
49468 2008-04-11  Bruno Haible  <bruno@clisp.org>
49469
49470         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49471
49472         * modules/getaddrinfo-tests (Makefile.am): Define
49473         test_getaddrinfo_LDADD.
49474
49475 2008-04-11  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49478         (init): Fix syntax error.
49479         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49480         is declared.
49481
49482 2008-04-11  Bruno Haible  <bruno@clisp.org>
49483
49484         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49485         * modules/glob (Depends-on): Add stdbool.
49486
49487 2008-04-11  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/trim.c: Include <string.h>.
49490
49491 2008-04-11  Eric Blake  <ebb9@byu.net>
49492
49493         Avoid compile failure on OS/2.
49494         * lib/regex_internal.h (internal_function): Disable optimization
49495         on OS/2 (__EMX__), where it caused compiler error.
49496         Reported by Elbert Pol.
49497
49498 2008-04-11  Bruno Haible  <bruno@clisp.org>
49499
49500         Flush the standard error stream before aborting. Needed on mingw.
49501         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49502         * tests/test-array_list.c (ASSERT): Likewise.
49503         * tests/test-array_oset.c (ASSERT): Likewise.
49504         * tests/test-avltree_list.c (ASSERT): Likewise.
49505         * tests/test-avltree_oset.c (ASSERT): Likewise.
49506         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49507         * tests/test-binary-io.c (ASSERT): Likewise.
49508         * tests/test-byteswap.c (ASSERT): Likewise.
49509         * tests/test-c-ctype.c (ASSERT): Likewise.
49510         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49511         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49512         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49513         * tests/test-c-strstr.c (ASSERT): Likewise.
49514         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49515         * tests/test-canonicalize.c (ASSERT): Likewise.
49516         * tests/test-carray_list.c (ASSERT): Likewise.
49517         * tests/test-ceilf1.c (ASSERT): Likewise.
49518         * tests/test-ceilf2.c (ASSERT): Likewise.
49519         * tests/test-ceill.c (ASSERT): Likewise.
49520         * tests/test-count-one-bits.c (ASSERT): Likewise.
49521         * tests/test-fbufmode.c (ASSERT): Likewise.
49522         * tests/test-fflush2.c (ASSERT): Likewise.
49523         * tests/test-floorf1.c (ASSERT): Likewise.
49524         * tests/test-floorf2.c (ASSERT): Likewise.
49525         * tests/test-floorl.c (ASSERT): Likewise.
49526         * tests/test-fopen.c (ASSERT): Likewise.
49527         * tests/test-fpending.c (ASSERT): Likewise.
49528         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49529         * tests/test-fpurge.c (ASSERT): Likewise.
49530         * tests/test-freadable.c (ASSERT): Likewise.
49531         * tests/test-freadahead.c (ASSERT): Likewise.
49532         * tests/test-freading.c (ASSERT): Likewise.
49533         * tests/test-freadptr.c (ASSERT): Likewise.
49534         * tests/test-freadptr2.c (ASSERT): Likewise.
49535         * tests/test-freadseek.c (ASSERT): Likewise.
49536         * tests/test-freopen.c (ASSERT): Likewise.
49537         * tests/test-frexp.c (ASSERT): Likewise.
49538         * tests/test-frexpl.c (ASSERT): Likewise.
49539         * tests/test-fseek.c (ASSERT): Likewise.
49540         * tests/test-fseeko.c (ASSERT): Likewise.
49541         * tests/test-fstrcmp.c (ASSERT): Likewise.
49542         * tests/test-ftell.c (ASSERT): Likewise.
49543         * tests/test-ftello.c (ASSERT): Likewise.
49544         * tests/test-func.c (ASSERT): Likewise.
49545         * tests/test-fwritable.c (ASSERT): Likewise.
49546         * tests/test-fwriting.c (ASSERT): Likewise.
49547         * tests/test-getdelim.c (ASSERT): Likewise.
49548         * tests/test-getline.c (ASSERT): Likewise.
49549         * tests/test-i-ring.c (ASSERT): Likewise.
49550         * tests/test-iconv-utf.c (ASSERT): Likewise.
49551         * tests/test-iconv.c (ASSERT): Likewise.
49552         * tests/test-isfinite.c (ASSERT): Likewise.
49553         * tests/test-isnand.c (ASSERT): Likewise.
49554         * tests/test-isnanf.c (ASSERT): Likewise.
49555         * tests/test-isnanl.h (ASSERT): Likewise.
49556         * tests/test-ldexpl.c (ASSERT): Likewise.
49557         * tests/test-linked_list.c (ASSERT): Likewise.
49558         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49559         * tests/test-localename.c (ASSERT): Likewise.
49560         * tests/test-lseek.c (ASSERT): Likewise.
49561         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49562         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49563         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49564         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49565         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49566         * tests/test-mbschr.c (ASSERT): Likewise.
49567         * tests/test-mbscspn.c (ASSERT): Likewise.
49568         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49569         * tests/test-mbspbrk.c (ASSERT): Likewise.
49570         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49571         * tests/test-mbsrchr.c (ASSERT): Likewise.
49572         * tests/test-mbsspn.c (ASSERT): Likewise.
49573         * tests/test-mbsstr1.c (ASSERT): Likewise.
49574         * tests/test-mbsstr2.c (ASSERT): Likewise.
49575         * tests/test-mbsstr3.c (ASSERT): Likewise.
49576         * tests/test-memchr2.c (ASSERT): Likewise.
49577         * tests/test-memmem.c (ASSERT): Likewise.
49578         * tests/test-open.c (ASSERT): Likewise.
49579         * tests/test-printf-frexp.c (ASSERT): Likewise.
49580         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49581         * tests/test-printf-posix.c (ASSERT): Likewise.
49582         * tests/test-quotearg.c (ASSERT): Likewise.
49583         * tests/test-rbtree_list.c (ASSERT): Likewise.
49584         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49585         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49586         * tests/test-round1.c (ASSERT): Likewise.
49587         * tests/test-roundf1.c (ASSERT): Likewise.
49588         * tests/test-roundl.c (ASSERT): Likewise.
49589         * tests/test-signbit.c (ASSERT): Likewise.
49590         * tests/test-sleep.c (ASSERT): Likewise.
49591         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49592         * tests/test-snprintf.c (ASSERT): Likewise.
49593         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49594         * tests/test-stat-time.c (ASSERT): Likewise.
49595         * tests/test-strcasestr.c (ASSERT): Likewise.
49596         * tests/test-strerror.c (ASSERT): Likewise.
49597         * tests/test-striconv.c (ASSERT): Likewise.
49598         * tests/test-striconveh.c (ASSERT): Likewise.
49599         * tests/test-striconveha.c (ASSERT): Likewise.
49600         * tests/test-strsignal.c (ASSERT): Likewise.
49601         * tests/test-strstr.c (ASSERT): Likewise.
49602         * tests/test-strtod.c (ASSERT): Likewise.
49603         * tests/test-trunc1.c (ASSERT): Likewise.
49604         * tests/test-trunc2.c (ASSERT): Likewise.
49605         * tests/test-truncf1.c (ASSERT): Likewise.
49606         * tests/test-truncf2.c (ASSERT): Likewise.
49607         * tests/test-truncl.c (ASSERT): Likewise.
49608         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49609         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49610         * tests/test-vasnprintf.c (ASSERT): Likewise.
49611         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49612         * tests/test-vasprintf.c (ASSERT): Likewise.
49613         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49614         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49615         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49616         * tests/test-vsnprintf.c (ASSERT): Likewise.
49617         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49618         * tests/test-wcwidth.c (ASSERT): Likewise.
49619         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49620         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49621         * tests/test-xvasprintf.c (ASSERT): Likewise.
49622         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49623         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49624         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49625         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49626         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49627         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49628         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49629         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49630         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49631         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49632         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49633         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49634         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49635         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49636         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49637         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49638         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49639         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49640         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49641         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49642         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49643         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49644         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49645         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49646         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49647         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49648         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49649         * tests/unictype/test-combining.c (ASSERT): Likewise.
49650         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49651         * tests/unictype/test-digit.c (ASSERT): Likewise.
49652         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49653         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49654         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49655         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49656         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49657         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49658         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49659         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49660         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49661         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49662         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49663         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49664         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49665         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49666         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49667         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49668         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49669         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49670         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49671         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49672         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49673         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49674         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49675         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49676         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49677         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49678         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49679         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49680         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49681         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49682         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49683         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49684         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49685         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49686         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49687         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49688         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49689         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49690         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49691         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49692         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49693         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49694         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49695         Reported by Eric Blake.
49696
49697 2008-04-11  Bruno Haible  <bruno@clisp.org>
49698
49699         * lib/wchar.in.h: Tweak comment.
49700
49701 2008-04-11  Bruno Haible  <bruno@clisp.org>
49702
49703         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49704         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49705         gl_COMMON.
49706         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49707
49708 2008-04-11  Bruno Haible  <bruno@clisp.org>
49709
49710         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49711
49712 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49713
49714         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49715         of attempting to use non-existing /dev/*random.  Based on patch
49716         from Adam Strzelecki <ono@java.pl> in
49717         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49718
49719 2008-04-08  Bruno Haible  <bruno@clisp.org>
49720
49721         Add tentative support for emx+gcc.
49722         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49723         * lib/fpurge.c (fpurge): Likewise.
49724         * lib/freadable.c (freadable): Likewise.
49725         * lib/freadahead.c (freadahead): Likewise.
49726         * lib/freading.c (freading): Likewise.
49727         * lib/freadptr.c (freadptr): Likewise.
49728         * lib/freadseek.c (freadptrinc): Likewise.
49729         * lib/fseeko.c (rpl_fseeko): Likewise.
49730         * lib/fseterr.c (fseterr): Likewise.
49731         * lib/fwritable.c (fwritable): Likewise.
49732         * lib/fwriting.c (fwriting): Likewise.
49733         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49734
49735 2008-04-09  Eric Blake  <ebb9@byu.net>
49736
49737         Avoid some autoconf warnings.
49738         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49739         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49740         * m4/afs.m4 (gl_AFS): Likewise.
49741         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49742         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49743         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49744         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49745         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49746         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49747         (AC_CHECK_DECLS_ONCE): Likewise.
49748         Rename file...
49749         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49750         gnulib-tool requires autoconf 2.59 or better.
49751         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49752
49753 2008-04-08  Eric Blake  <ebb9@byu.net>
49754
49755         Use 'git describe --match' if present (added in git 1.5.5).
49756         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49757         if possible.
49758
49759 2008-04-08  Bruno Haible  <bruno@clisp.org>
49760
49761         Add tentative support for OpenServer.
49762         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49763         _ptr, _cnt.
49764         * lib/fpurge.c (fpurge): Likewise.
49765         * lib/freadable.c (freadable): Likewise.
49766         * lib/freadahead.c (freadahead): Likewise.
49767         * lib/freading.c (freading): Likewise.
49768         * lib/freadptr.c (freadptr): Likewise.
49769         * lib/freadseek.c (freadptrinc): Likewise.
49770         * lib/fseeko.c (rpl_fseeko): Likewise.
49771         * lib/fseterr.c (fseterr): Likewise.
49772         * lib/fwritable.c (fwritable): Likewise.
49773         * lib/fwriting.c (fwriting): Likewise.
49774         Reported by Roger Cornelius <rac@tenzing.org> and
49775         Brian K. White <brian@aljex.com>.
49776
49777 2008-04-06  Jim Meyering  <meyering@redhat.com>
49778
49779         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49780
49781 2008-04-06  Bruno Haible  <bruno@clisp.org>
49782
49783         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49784         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49785         * tests/test-printf-posix.sh: Likewise.
49786         * tests/test-vfprintf-posix.sh: Likewise.
49787         * tests/test-vprintf-posix.sh: Likewise.
49788         * tests/test-xprintf-posix.sh: Likewise.
49789
49790 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49791
49792         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49793         hide error from 'ls', needed on OS/2.
49794         Report by Elbert Pol <elbert.pol@gmail.com>.
49795
49796 2008-04-04  Eric Blake  <ebb9@byu.net>
49797
49798         Make test-fseeko.c failures meaningful.
49799         * tests/test-fseeko.c: Print line number on failure.
49800         * tests/test-fseek.c: Likewise.
49801         Reported by Nelson H. F. Beebe.
49802
49803         Improve strtod bug detection check.
49804         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49805         required for Solaris 10.
49806         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49807
49808 2008-04-04  Bruno Haible  <bruno@clisp.org>
49809
49810         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49811         by m4/setenv.m4.
49812
49813 2008-04-03  Eric Blake  <ebb9@byu.net>
49814
49815         Ensure sane .version contents.
49816         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49817         version string.
49818         * build-aux/git-version-gen: Improve documentation.
49819
49820         Make GNU make output nicer.
49821         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49822         MAKECMDGOALS to enforce message for all command line targets.  Set
49823         srcdir for use in maint.mk.
49824
49825         Another maintainer tweak.
49826         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49827         a target that regenerates version.
49828
49829 2008-04-03  Jim Meyering  <meyering@redhat.com>
49830
49831         vc-list-files: don't cause coreutils "make po-check" failure
49832         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49833
49834 2008-04-03  Eric Blake  <ebb9@byu.net>
49835
49836         Allow VPATH usage of vc-list-files.
49837         * build-aux/vc-list-files (scriptversion): Add timestamp.
49838         (options): Add --help, --version, -C.
49839         (CVS): Support installed cvsu.
49840
49841 2008-04-02  Bruno Haible  <bruno@clisp.org>
49842
49843         Avoid some "statement with no effect" warnings from gcc.
49844         * tests/test-wctype.c (main): Explicitly ignore unused values.
49845         Reported by Jim Meyering.
49846
49847 2008-04-02  Jim Meyering  <meyering@redhat.com>
49848
49849         Avoid some warnings from "gcc -Wshadow".
49850         * tests/test-frexp.c (exp): Define to a different identifier.
49851         * tests/test-frexpl.c (exp): Likewise.
49852
49853 2008-04-03  Jim Meyering  <meyering@redhat.com>
49854
49855         bootstrap: remove dangling *.[ch] symlinks from lib
49856         * build-aux/bootstrap [dangling symlink removal]: Move find's
49857         -depth option to precede all others, to avoid a warning.
49858         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49859
49860 2008-04-02  Bruno Haible  <bruno@clisp.org>
49861
49862         Avoid some warnings from "gcc -Wshadow".
49863         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49864         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49865         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49866         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49867         Reported by Jim Meyering.
49868
49869 2008-04-01  Bruno Haible  <bruno@clisp.org>
49870
49871         Fix test to work on IRIX 6.5 with cc.
49872         * tests/test-math.c (numeric_equal): New function.
49873         (main): Use it.
49874
49875 2008-04-01  Bruno Haible  <bruno@clisp.org>
49876
49877         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49878
49879 2008-04-01  Bruno Haible  <bruno@clisp.org>
49880
49881         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49882         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49883         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49884         (Depends-on): Remove math.
49885
49886         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49887         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49888         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49889         (Depends-on): Remove math.
49890
49891         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49892         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49893         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49894         (Depends-on): Remove math.
49895         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49896         (Depends-on): Remove math.
49897
49898         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49899         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49900         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49901         (Depends-on): Remove math.
49902         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49903         (Depends-on): Remove math.
49904
49905         * tests/test-round1.c: Include nan.h.
49906         (main): Use NaNd instead of NAN.
49907         * modules/round-tests (Files): Add tests/nan.h.
49908
49909         * tests/test-trunc1.c: Include nan.h.
49910         (main): Use NaNd instead of NAN.
49911         * modules/trunc-tests (Files): Add tests/nan.h.
49912
49913         * tests/test-roundf1.c: Include nan.h.
49914         (main): Use NaNf instead of NAN.
49915         * modules/roundf-tests (Files): Add tests/nan.h.
49916
49917         * tests/test-truncf1.c: Include nan.h.
49918         (main): Use NaNf instead of NAN.
49919         * modules/truncf-tests (Files): Add tests/nan.h.
49920
49921         * tests/test-ceilf1.c: Include nan.h.
49922         (main): Use NaNf instead of NAN.
49923         * modules/ceilf-tests (Files): Add tests/nan.h.
49924
49925         * tests/test-floorf1.c: Include nan.h.
49926         (main): Use NaNf instead of NAN.
49927         * modules/floorf-tests (Files): Add tests/nan.h.
49928
49929         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49930         (main): Use NaNf instead of NAN.
49931         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49932
49933         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49934         (main): Use NaNd instead of NAN.
49935         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49936
49937         * tests/test-frexp.c: Include nan.h.
49938         (main): Use NaNd instead of NAN.
49939         * modules/frexp-tests (Files): Add tests/nan.h.
49940
49941         * lib/isnan.c: Don't include <math.h>.
49942         (FUNC): Don't use NAN macro.
49943         * modules/isnand-nolibm (Depends-on): Remove math.
49944         * modules/isnanf-nolibm (Depends-on): Remove math.
49945         * modules/isnanl (Depends-on): Remove math.
49946         * modules/isnanl-nolibm (Depends-on): Remove math.
49947
49948         * tests/nan.h: New file.
49949
49950 2008-04-01  Eric Blake  <ebb9@byu.net>
49951
49952         Fix typos.
49953         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49954         values to be the right type.
49955
49956         For now, cater to gnulib strtod inaccuracies.
49957         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49958         fractional results.  While not as nice from a QoI perspective, it
49959         is a quicker patch than correctly implementing decimal to binary
49960         rounding.
49961
49962 2008-03-31  Eric Blake  <ebb9@byu.net>
49963
49964         Guarantee a definition of NAN.
49965         * lib/math.in.h (NAN): Define if missing.
49966         * tests/test-math.c (main): Test it.
49967         * doc/posix-headers/math.texi (math.h): Document this.
49968         * lib/isnan.c (rpl_isnand): Use it.
49969         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49970         * tests/test-floorf1.c (NaN): Likewise.
49971         * tests/test-frexp.c (NaN): Likewise.
49972         * tests/test-isnand.c (NaN): Likewise.
49973         * tests/test-isnanf.c (NaN): Likewise.
49974         * tests/test-round1.c (NaN): Likewise.
49975         * tests/test-roundf1.c (NaN): Likewise.
49976         * tests/test-snprintf-posix.h (NaN): Likewise.
49977         * tests/test-sprintf-posix.h (NaN): Likewise.
49978         * tests/test-trunc1.c (NaN): Likewise.
49979         * tests/test-truncf1.c (NaN): Likewise.
49980         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49981         * tests/test-vasprintf-posix.c (NaN): Likewise.
49982         * modules/isnand-nolibm (Depends-on): Add math.
49983         * modules/isnanf-nolibm (Depends-on): Likewise.
49984         * modules/isnanl (Depends-on): Likewise.
49985         * modules/isnanl-nolibm (Depends-on): Likewise.
49986         * modules/snprintf-posix-tests (Depends-on): Likewise.
49987         * modules/sprintf-posix-tests (Depends-on): Likewise.
49988         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49989         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49990         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49991         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49992
49993 2008-03-31  Bruno Haible  <bruno@clisp.org>
49994
49995         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49996         * doc/posix-functions/strtod.texi: Likewise.
49997
49998 2008-03-31  Bruno Haible  <bruno@clisp.org>
49999
50000         * tests/test-strtod.c (main): Don't use C99 syntax.
50001
50002 2008-03-31  Bruno Haible  <bruno@clisp.org>
50003
50004         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50005         Reported by Eric Blake.
50006
50007 2008-03-31  Jim Meyering  <meyering@redhat.com>
50008
50009         Don't compare actual signbit return values.
50010         * tests/test-strtod.c (main): Rather, compare only their
50011         zero/non-zero nature.
50012
50013 2008-03-31  Eric Blake  <ebb9@byu.net>
50014
50015         More strtod documentation.
50016         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50017         failures as distinct bugs.
50018
50019 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50020
50021         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50022         Problem reported by Erik Benada in
50023         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50024
50025 2008-03-30  Bruno Haible  <bruno@clisp.org>
50026
50027         * tests/test-strtod.c: Add comments about which assertion fails on which
50028         platform.
50029         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50030
50031 2008-03-30  Eric Blake  <ebb9@byu.net>
50032
50033         Test signbit behavior on zeros.
50034         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50035         (test_signbitd, test_signbitl): Likewise.
50036
50037         More strtod touchups.
50038         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50039         sign of negative underflow, for now.  Use .5, not .1.
50040         * doc/posix-functions/strtod.texi (strtod): Mention these
50041         limitations.
50042         Reported by Jim Meyering.
50043
50044 2008-03-30  Bruno Haible  <bruno@clisp.org>
50045
50046         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50047         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50048
50049 2008-03-30  Bruno Haible  <bruno@clisp.org>
50050
50051         Avoid failure when attempting to return empty iconv results on some
50052         platforms.
50053         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50054         allocation, don't report ENOMEM when the resulting string is empty.
50055
50056 2008-03-30  Bruno Haible  <bruno@clisp.org>
50057
50058         Fix buffer overrun.
50059         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50060         Don't consider the width for tmp_length. Check count against tmp_length
50061         before doing the padding. Ensure enough allocation during padding.
50062
50063 2008-03-30  Eric Blake  <ebb9@byu.net>
50064
50065         strtod touchups.
50066         * lib/strtod.c (strtod): Avoid compiler warnings.
50067         Reported by Jim Meyering.
50068
50069 2008-03-30  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50072         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50073         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50074         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50075         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50076         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50077         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50078         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50079
50080         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50081         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50082         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50083         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50084         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50085         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50086         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50087         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50088
50089         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50090         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50091         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50092         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50093         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50094         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50095         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50096         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50097
50098         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50099         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50100
50101         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50102         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50103
50104         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50105         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50106
50107         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50109         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50110
50111         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50113         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50114
50115         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50116         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50117         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50118
50119         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50121         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50122
50123         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50124         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50126         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50127         (Depends-on): Add EOVERFLOW.
50128         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50129         (Depends-on): Add EOVERFLOW.
50130         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50131         (Depends-on): Add EOVERFLOW.
50132         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50133         (Depends-on): Add EOVERFLOW.
50134         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50135         (Depends-on): Add EOVERFLOW.
50136         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50137         (Depends-on): Add EOVERFLOW.
50138         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50139         (Depends-on): Add EOVERFLOW.
50140         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50141         (Depends-on): Add EOVERFLOW.
50142
50143         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50145         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50146
50147         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50149         * modules/snprintf (Depends-on): Add EOVERFLOW.
50150
50151         * lib/poll.c (EOVERFLOW): Remove fallback.
50152         * modules/poll (Depends-on): Add EOVERFLOW.
50153
50154         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50155         * modules/getugroups (Depends-on): Add EOVERFLOW.
50156
50157         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50158         * modules/getdelim (Depends-on): Add EOVERFLOW.
50159
50160         * lib/ftell.c (EOVERFLOW): Remove fallback.
50161         * modules/ftell (Depends-on): Add EOVERFLOW.
50162
50163         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50165         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50166
50167         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50168
50169         * modules/EOVERFLOW-tests: New file.
50170         * tests/test-EOVERFLOW.c: New file.
50171
50172         * modules/EOVERFLOW: New file.
50173         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50174
50175 2008-03-30  Bruno Haible  <bruno@clisp.org>
50176
50177         Fix bug introduced on 2007-06-10.
50178         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50179         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50180
50181 2008-03-30  Bruno Haible  <bruno@clisp.org>
50182
50183         Improve freadseek's efficiency after ungetc.
50184         * lib/freadseek.c: Include freadahead.h.
50185         (freadptrinc): New function, extracted from freadseek.
50186         (freadseek): Use it in a loop. Use freadahead to determine the number
50187         of loop iterations.
50188         * modules/freadseek (Depends-on): Add freadahead.
50189         (configure.ac): Require AC_C_INLINE.
50190
50191 2008-03-30  Bruno Haible  <bruno@clisp.org>
50192
50193         * lib/freadseek.c (freadseek): Don't ignore the return value of
50194         freadptr.
50195
50196 2008-03-29  Eric Blake  <ebb9@byu.net>
50197
50198         Add hex float support.
50199         * modules/strtod (Depends-on): Add c-ctype.
50200         (Link): Mention POW_LIB.
50201         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50202         whitespace between 'e' and exponent.
50203         * tests/test-strtod.c (main): Enable hex float tests.
50204         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50205         now provides.
50206
50207         Document various strtod bugs, with some fixes.
50208         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50209         "-0x", "inf", "nan", and hex constants.
50210         * doc/posix-functions/atof.texi (atof): Likewise.
50211         * modules/stdlib (Makefile.am): Support strtod.
50212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50213         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50214         detect additional strtod bugs.
50215         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50216         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50217         bool where appropriate.  Parse 'inf' and 'nan'.
50218         * tests/test-strtod.c: New file.
50219         * modules/strtod (Depends-on): Add stdbool, stdlib.
50220         (configure.ac): Turn on module indicator.
50221         * modules/strtod-tests: New module.
50222
50223 2008-03-29  Eric Blake  <ebb9@byu.net>
50224
50225         Fix ftell on mingw.
50226         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50227         * modules/ftell-tests (Depends-on): Add binary-io.
50228         * modules/ftello-tests (Depends-on): Likewise.
50229         * tests/test-ftell.c (main): Enhance test to cover behavior after
50230         ungetc.  Enforce binary mode.
50231         * tests/test-ftello.c (main): Likewise.
50232
50233         Pass test-freadseek on cygwin.
50234         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50235         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50236         ungetc buffer.
50237
50238         * tests/test-fflush2.c (main): Fix typo.
50239
50240 2008-03-29  Bruno Haible  <bruno@clisp.org>
50241
50242         * tests/test-fflush2.c (main): Temporarily disable the contents of
50243         this test.
50244         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50245         Reported by Eric Blake.
50246
50247 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50248
50249         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50250         (GC_SHA224_DIGEST_SIZE): Add.
50251
50252         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50253         (gc_hash_digest_length): Likewise.
50254         (gc_hash_buffer): Likewise.
50255
50256 2008-03-25  Bruno Haible  <bruno@clisp.org>
50257
50258         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50259         detail which gettext release to use.
50260         Reported by Simon Josefsson.
50261
50262 2008-03-26  Jim Meyering  <meyering@redhat.com>
50263
50264         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50265         * modules/gnumakefile (clean-GNUmakefile): Also, use
50266         test ... && ... || : syntax rather than if-then ... fi.
50267
50268         gnumakefile: Don't double-quote-expand $(VPATH) value.
50269         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50270
50271 2008-03-24  Eric Blake  <ebb9@byu.net>
50272
50273         Alter GNUmakefile to install into top directory.
50274         * modules/maintainer-makefile: Split, and add dependency...
50275         * modules/gnumakefile: to this new module.
50276         * build-aux/GNUmakefile: Move...
50277         * top/GNUmakefile: ...here.
50278         * build-aux/maint.mk: Move...
50279         * top/maint.mk: ...here.
50280         * MODULES.html.sh (Support for maintaining...): Document new
50281         module.
50282
50283 2008-03-23  Bruno Haible  <bruno@clisp.org>
50284
50285         * gnulib-tool: New options --vc-files, --no-vc-files.
50286         (func_usage): Document them.
50287         (vc_files): New variable.
50288         (func_import): Consider vc_files.
50289         (func_create_testdir): Set vc_files to empty.
50290         Suggested by Jim Meyering and Karl Berry.
50291
50292 2008-03-23  Bruno Haible  <bruno@clisp.org>
50293
50294         Fix regex compilation error on HP-UX 11.
50295         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50296         * modules/regex (Files): Add m4/mbstate_t.m4.
50297         Reported by Ton Voon <ton.voon@altinity.com>.
50298
50299 2008-03-23  Bruno Haible  <bruno@clisp.org>
50300
50301         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50302
50303 2008-03-23  Eric Blake  <ebb9@byu.net>
50304             Bruno Haible  <bruno@clisp.org>
50305
50306         Install files from top/ in the destination directory.
50307         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50308         augmentation also for the files from top/.
50309         (func_import, func_create_testdir): Rewrite file names:
50310         top/filename -> filename.
50311
50312 2008-03-23  Bruno Haible  <bruno@clisp.org>
50313
50314         Tweak "gnulib --version" output.
50315         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50316
50317 2008-03-23  Bruno Haible  <bruno@clisp.org>
50318
50319         Tweak "gnulib --version" output.
50320         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50321         rather than contents of ChangeLog, when possible.
50322
50323 2008-03-21  Eric Blake  <ebb9@byu.net>
50324
50325         More --version tweaks.
50326         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50327         date of last ChangeLog entry.
50328
50329 2008-03-21  Jim Meyering  <meyering@redhat.com>
50330
50331         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50332
50333 2008-03-20  Eric Blake  <ebb9@byu.net>
50334
50335         VPATH fix.
50336         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50337
50338 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50339
50340         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50341         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50342
50343 2008-03-20  Eric Blake  <ebb9@byu.net>
50344
50345         Sync GNUmakefile with coreutils.
50346         * build-aux/GNUmakefile (have-Makefile): Rename...
50347         (_have-Makefile): ...to this, for namespace consideration.
50348         (GNUmakefile.cfg): Include, if present.
50349         (_autoreconf): Define a default.
50350         (_is-dist-target): New rule for rebuilds to pick up intra-release
50351         version.
50352         (maint-cfg.mk): Rename...
50353         (cfg.mk): ...to this.
50354
50355 2008-03-18  Jim Meyering  <meyering@redhat.com>
50356
50357         New script and module: mktempd
50358         * MODULES.html.sh (maint+release support): Add mktempd.
50359         * build-aux/mktempd: New file.
50360         * modules/mktempd: New file.
50361
50362 2008-03-15  Jim Meyering  <meyering@redhat.com>
50363
50364         Undo last change.
50365         * lib/sha1.c, lib/md5.c: 63 != ~63.
50366         Reported by Andreas Schwab.
50367
50368         sha1.c, md5.c: Hoist a redundant expression.
50369         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50370         "ctx->buflen" only once, before calling *_process_block.
50371         * lib/md5.c (md5_process_bytes): Likewise.
50372
50373 2008-03-14  Eric Blake  <ebb9@byu.net>
50374
50375         Bump copyright year in files generated by gnulib-tool.
50376         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50377         gnulib-tool, rather than hard-coding it.
50378
50379         Fix 'gnulib-tool --version' output to work with git.
50380         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50381         (startup): ...here.
50382         (func_version): Use it to invoke git-version-gen, rather than
50383         relying on CVS keyword expansion.  Modernize wording.
50384         (cvsdatestamp, last_checkin_date, version): Kill unused
50385         variables.
50386
50387 2008-03-12  Jim Meyering  <meyering@redhat.com>
50388
50389         Recognize optional cast of the argument to free.
50390         * build-aux/useless-if-before-free: Update regexps.
50391
50392         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50393
50394 2008-03-11  Bruno Haible  <bruno@clisp.org>
50395
50396         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50397         by a single package.
50398         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50399         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50400         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50401         Reported by Sam Steingold <sds@gnu.org>.
50402
50403 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50404
50405         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50406         repositories.
50407
50408 2008-03-11  Bruno Haible  <bruno@clisp.org>
50409
50410         Avoid conflicts between local macro definitions.
50411         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50412         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50413
50414 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50415             Bruno Haible  <bruno@clisp.org>
50416
50417         Make va_copy work with some version of xlc on AIX 5.1.
50418         * lib/stdarg.in.h: New file.
50419         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50420         On AIX, use a <stdarg.h> file substitute.
50421         * modules/stdarg (Files): Add lib/stdarg.in.h.
50422         (Depends-on): Add include_next.
50423         (Makefile.am): Build a stdarg.h substitute if requested.
50424         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50425
50426 2008-03-10  Bruno Haible  <bruno@clisp.org>
50427
50428         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50430         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50431
50432 2008-03-10  Bruno Haible  <bruno@clisp.org>
50433
50434         * modules/stdlib (Depends-on): Add include_next, remove
50435         absolute-header.
50436
50437 2008-03-09  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/freadahead.h (freadahead): Document more precisely.
50440         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50441         the sum of both buffer sizes.
50442         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50443         * NEWS: Document the change.
50444
50445 2008-03-09  Bruno Haible  <bruno@clisp.org>
50446
50447         Extend freadptr to return also the buffer size.
50448         * lib/freadptr.h (freadptr): Add sizep argument.
50449         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50450         (freadptr): Add sizep argument. Determine buffer size like freadahead
50451         does.
50452         * tests/test-freadptr.c: Don't include freadahead.h.
50453         (main): Adapt for new calling convention of freadptr.
50454         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50455         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50456         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50457         tests/test-freadptr2.sh.
50458         (Depends): Remove freadahead.
50459         (TESTS): Add test-freadptr2.sh.
50460         (check_PROGRAMS): Add test-freadptr2.
50461
50462 2008-03-09  Bruno Haible  <bruno@clisp.org>
50463
50464         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50465         Report and solution by Simon Josefsson.
50466
50467 2008-03-06  Bruno Haible  <bruno@clisp.org>
50468
50469         Make fflush after ungetc work on BSD platforms.
50470         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50471         * tests/test-fflush2.c: New file.
50472         * tests/test-fflush2.sh: New file.
50473         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50474         tests/test-fflush2.c.
50475         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50476         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50477
50478 2008-03-06  Eric Blake  <ebb9@byu.net>
50479
50480         Likewise for ftello.
50481         * modules/ftello (Dependencies): Add extensions.
50482         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50483
50484 2008-03-06  Bruno Haible  <bruno@clisp.org>
50485
50486         * modules/fseeko (Dependencies): Add extensions.
50487         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50488         Needed on glibc systems.
50489
50490 2008-03-06  Bruno Haible  <bruno@clisp.org>
50491
50492         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50493         email address.
50494         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50495
50496 2008-03-06  Bruno Haible  <bruno@clisp.org>
50497
50498         * users.txt: Add libgnupdf.
50499
50500 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50501
50502         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50503         (Header File Substitutes, Function Substitutes,
50504         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50505         (Build robot for gnulib): Fix typo.
50506
50507 2008-03-06  Bruno Haible  <bruno@clisp.org>
50508
50509         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50510         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50511
50512 2008-03-06  Bruno Haible  <bruno@clisp.org>
50513
50514         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50515         * doc/gnulib.texi: Include it.
50516
50517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50518
50519         * modules/func (License): Change license to unlimited; there was
50520         no LGPL parts in the module anyway.
50521
50522 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50523
50524         * modules/__func__: Renamed to modules/func.
50525         * modules/__func__-tests: Renamed to modules/func-tests.
50526         * tests/test-__func__.c: Renamed to tests/test-func.c.
50527         * m4/__func__.m4: Renamed to m4/func.m4.
50528         * doc/gnulib.texi (__func__): Section renamed to func.
50529         Suggested by Eric Blake <ebb9@byu.net>.
50530
50531 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50532
50533         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50534         about __func__.  Make example self-contained.  Suggested by Eric
50535         Blake <ebb9@byu.net>.
50536
50537         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50538         Suggested by Eric Blake <ebb9@byu.net>.
50539
50540 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50541
50542         * modules/__func__: New file.
50543         * modules/__func__-tests: New file.
50544         * tests/test-__func__.c: New file.
50545         * m4/__func__.m4: New file.
50546         * doc/gnulib.texi (__func__): Document __func__ module.
50547
50548 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50549
50550         * modules/byteswap (License): Re-license as LGPLv2+.
50551
50552 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50553
50554         * doc/Makefile: Add pdf target.
50555
50556 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50557
50558         * modules/inline (License): Use 'unlimited', since there are only
50559         *.m4 files in this module.
50560
50561 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50562             Bruno Haible  <bruno@clisp.org>
50563
50564         Add support for HP C 7.1 on OpenVMS 8.3.
50565         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50566
50567 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50568
50569         Update VMS specifics.
50570         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50571
50572 2008-03-02  Jim Meyering  <meyering@redhat.com>
50573
50574         Remove the last dependency on the "free" module.
50575         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50576         Reported by Bob Proulx.
50577
50578         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50579
50580         Remove useless "if" tests before free.  Deprecate "free" module.
50581         * doc/posix-functions/free.texi: Mention that this
50582         module is no longer useful.
50583         * modules/free (Notice): Say this module is obsolete.
50584         * modules/readutmp (Depends-on): Remove free.
50585         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50586         * lib/putenv.c (putenv): Likewise.
50587         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50588         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50589         * tests/test-c-strcasestr.c (main): Likewise.
50590         * tests/test-c-strstr.c (main): Likewise.
50591         * tests/test-mbscasestr1.c (main): Likewise.
50592         * tests/test-mbscasestr2.c (main): Likewise.
50593         * tests/test-mbsstr1.c (main): Likewise.
50594         * tests/test-mbsstr2.c (main): Likewise.
50595         * tests/test-memmem.c (main): Likewise.
50596         * tests/test-strcasestr.c (main): Likewise.
50597         * tests/test-striconv.c (main): Likewise.
50598         * tests/test-striconveh.c (main): Likewise.
50599         * tests/test-striconveha.c (main): Likewise.
50600         * tests/test-strstr.c (main): Likewise.
50601
50602         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50603
50604         bootstrap: sync from coreutils again
50605         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50606
50607 2008-03-01  Jim Meyering  <meyering@redhat.com>
50608
50609         bootstrap: sync from coreutils
50610         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50611         also when the target doesn't exist.
50612
50613 2008-03-01  Eric Blake  <ebb9@byu.net>
50614
50615         Fix bugs in last patch.
50616         * lib/memchr2.c (memchr2): Fix typo.
50617         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50618         extension.
50619         Reported by Bruce Korb.
50620
50621         New module 'memchr2'.
50622         * modules/memchr2: New file.
50623         * modules/memchr2-tests: Likewise.
50624         * lib/memchr2.h: Likewise.
50625         * lib/memchr2.c: Likewise, based on memchr.c.
50626         * tests/test-memchr2.c: New test.
50627         * MODULES.html.sh (String handling): Add memchr2.
50628
50629 2008-02-29  Bruno Haible  <bruno@clisp.org>
50630
50631         * modules/freadseek-tests: New file.
50632         * tests/test-freadseek.sh: New file.
50633         * tests/test-freadseek.c: New file.
50634
50635         New module 'freadseek'.
50636         * modules/freadseek: New file.
50637         * lib/freadseek.h: New file.
50638         * lib/freadseek.c: New file.
50639         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50640
50641 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50642
50643         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50644         wydawca.
50645
50646         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50647         program_invocation_name and program_invocation_short_name are
50648         present.
50649
50650 2008-02-28  Bruno Haible  <bruno@clisp.org>
50651
50652         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50653         * tests/test-freadptr.sh: Also test non-seekable stdin.
50654
50655 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50656
50657         * build-aux/bootstrap (source_base, m4_base)
50658         (doc_base, tests_base): New variables.
50659         (gnulib_tool_options): Do not hardcode base directories, use
50660         the above variables instead.
50661
50662 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50663
50664         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50665
50666 2008-02-28  Bruno Haible  <bruno@clisp.org>
50667
50668         * modules/freadptr-tests: New file.
50669         * tests/test-freadptr.sh: New file.
50670         * tests/test-freadptr.c: New file.
50671
50672         New module 'freadptr'.
50673         * modules/freadptr: New file.
50674         * lib/freadptr.h: New file.
50675         * lib/freadptr.c: New file.
50676         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50677
50678 2008-02-26  Karl Berry  <karl@freefriends.org>
50679
50680         Sync from Libtool:
50681         * libltdl/argz.c (argz_add, argz_count): New functions.
50682         * libltdl/argz.in.h: Declare them.
50683         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50684
50685 2008-02-22  Bruno Haible  <bruno@clisp.org>
50686
50687         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50688         is a pointer type.  Needed for HP-UX 10.
50689         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50690         * doc/posix-functions/gmtime_r.texi: Likewise.
50691         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50692
50693 2008-02-24  Bruno Haible  <bruno@clisp.org>
50694
50695         * modules/environ-tests: New file.
50696         * tests/test-environ.c: New file.
50697
50698         New module 'environ'.
50699         * modules/environ: New file.
50700         * lib/unistd.in.h (environ): New declaration.
50701         * m4/environ.m4: New file.
50702         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50703         after use.
50704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50705         HAVE_DECL_ENVIRON.
50706         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50707         HAVE_DECL_ENVIRON.
50708         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50709         wrong claim that 'environ' is missing on some systems.
50710         * modules/execute (Depends-on): Add environ.
50711         * lib/execute.c (environ): Remove fallback declaration.
50712         * modules/pipe (Depends-on): Add environ.
50713         * lib/pipe.c (environ): Remove fallback declaration.
50714         * modules/setenv (Depends-on): Add environ.
50715         * lib/setenv.c (environ): Remove fallback declaration.
50716         * modules/unsetenv (Depends-on): Add environ.
50717         * lib/unsetenv.c (environ): Remove fallback declaration.
50718         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50719         m4/environ.m4.
50720         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50721         (gl_PREREQ_UNSETENV): Likewise.
50722
50723 2008-02-24  Bruno Haible  <bruno@clisp.org>
50724
50725         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50726
50727 2008-02-20  Bob Proulx  <bob@proulx.com>
50728
50729         Enable use of older two part flavor 'git describe'.
50730         * build-aux/git-version-gen: If using the older two part flavor of
50731         git version then recreate the third part now present in the
50732         newer three part flavor of git describe.
50733
50734 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50735
50736         * lib/fts.c (fts_build): Typo correction to comment.
50737
50738 2008-02-17  Bruno Haible  <bruno@clisp.org>
50739
50740         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50741         generating no-op conflicts.
50742
50743 2008-02-17  Bruno Haible  <bruno@clisp.org>
50744
50745         Speed up by 10%.
50746         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50747         result_entries, rather than an index-based loop.
50748
50749 2008-02-17  Bruno Haible  <bruno@clisp.org>
50750
50751         Speed up by 25%.
50752         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50753         'hashcode_cached'.
50754         (entry_create): New function.
50755         (entry_hashcode): Use the cached hashcode if possible.
50756         (read_changelog_file, try_split_merged_entry): Use entry_create.
50757
50758 2008-02-17  Bruno Haible  <bruno@clisp.org>
50759
50760         Speed up from O(n^2) to O(n) for long ChangeLog files.
50761         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50762         (read_changelog_file): Change implementation of entries_reversed list
50763         to rbtreehash.
50764         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50765
50766 2008-02-17  Bruno Haible  <bruno@clisp.org>
50767
50768         New option --split-merged-entry.
50769         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50770         (find_paragraph_end, try_split_merged_entry): New functions.
50771         (long_options): Add option --split-merged-entry.
50772         (usage): Document option --split-merged-entry.
50773         (main): Implement option --split-merged-entry.
50774         Reported by Eric Blake.
50775
50776 2008-02-17  Bruno Haible  <bruno@clisp.org>
50777
50778         * lib/git-merge-changelog.c: Include c-strstr.h.
50779         (main): Support the "git pull --rebase" situation.
50780         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50781         Reported by Eric Blake.
50782
50783 2008-02-16  Eric Blake  <ebb9@byu.net>
50784
50785         Avoid doubling \ in common case of "c-maybe" quoting style.
50786         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50787         eliding outer quotes.
50788         * lib/quotearg.h: Document this.
50789         * tests/test-quotearg.c (result_strings, inputs, results_g)
50790         (flag_results, locale_results): Test it by adding a new string to
50791         each test group.
50792         (compare_strings): Test new string.
50793
50794 2008-02-13  Eric Blake  <ebb9@byu.net>
50795
50796         Avoid trigraph quoting in default output.
50797         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50798         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50799         unless explicitly requested.
50800         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50801
50802 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50803
50804         Don't rely on signed integer overflowing to negative value.
50805         * lib/getugroups.c (getugroups): Include <limits.h>.
50806         Instead, compare against INT_MAX, and increment only if the test passes.
50807
50808 2008-02-13  Jim Meyering  <meyering@redhat.com>
50809         and Eric Blake  <ebb9@byu.net>
50810
50811         Avoid shadowing warning and compile errors on Linux.
50812         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50813         forwarding macros on Linux.
50814         (dcgettext): Define a stub, for Linux.
50815         (results_g, main): Avoid warnings.
50816
50817 2008-02-12  Eric Blake  <ebb9@byu.net>
50818
50819         Silence warning in last patch.
50820         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50821
50822         Quotearg part 4: add tests, fix c-maybe colon quoting.
50823         * lib/quotearg.h: Improve documentation.
50824         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50825         escapes when adding outer quotes.  When quoting trigraphs, use
50826         valid C notation.  When quoting NUL, omit extra characters if next
50827         character is not digit.  Alter prototype.
50828         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50829         callers.
50830         * modules/quotearg-tests: New module.
50831         * tests/test-quotearg.c: New test.
50832
50833 2008-02-07  Eric Blake  <ebb9@byu.net>
50834
50835         Quotearg part 3: add flag to control outer quote elision.
50836         * lib/quotearg.h (c_maybe_quoting_style): New style.
50837         (enum quoting_flags): Better documentation of flags.
50838         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50839         c-maybe style.
50840         (quotearg_buffer_restyled): Handle new flag to elide outer
50841         quotes.
50842
50843         Quotearg part 2: add flag that can control NUL elision.
50844         * lib/quotearg.h (set_quoting_flags): New prototype.
50845         * lib/quotearg.c (struct quoting_options): Add flag field.
50846         (set_quoting_flags): New function.
50847         (quotearg_buffer_restyled): Add flags parameter.
50848         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50849         (quotearg_n_options): Set the flag, since length cannot be
50850         returned.
50851         (quoting_options_from_style): Default flags correctly.
50852
50853         Quotearg part 1: more wrappers, restore quotearg_char state.
50854         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50855         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50856         (quotearg_colon_mem): New wrappers.
50857         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50858         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50859         functions.
50860         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50861         (quotearg_colon_mem): New functions.
50862
50863 2008-02-11  Bruno Haible  <bruno@clisp.org>
50864
50865         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50866         library in the current directory: it does not work with parallel make.
50867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50868
50869 2008-02-11  Bruno Haible  <bruno@clisp.org>
50870
50871         * .gitattributes: New file.
50872
50873 2008-02-11  Jim Meyering  <meyering@redhat.com>
50874
50875         useless-if-before-free: Fix reversed exit values.
50876         * build-aux/useless-if-before-free: Use correct values
50877         for EXIT_MATCH and EXIT_NO_MATCH.
50878
50879         * build-aux/useless-if-before-free: Close stdout carefully.
50880
50881 2008-02-10  Bruno Haible  <bruno@clisp.org>
50882
50883         New module 'git-merge-changelog'.
50884         * modules/git-merge-changelog: New file.
50885         * lib/git-merge-changelog.c: New file.
50886
50887 2008-02-10  Jim Meyering  <meyering@redhat.com>
50888
50889         useless-if-before-free: New option: --list (-l).
50890
50891         useless-if-before-free: Don't exit immediately upon open failure.
50892         * build-aux/useless-if-before-free: Exit 2 for errors.
50893         Upon failure to open a file, don't exit immediately.
50894         Rather, just warn and continue with any remaining files.
50895
50896 2008-02-10  Bruno Haible  <bruno@clisp.org>
50897
50898         New abstract list operation 'node_set_value'.
50899         * lib/gl_list.h (gl_list_node_set_value): New function.
50900         (struct gl_list_implementation): New field node_set_value.
50901         * lib/gl_list.c (gl_list_node_set_value): New function.
50902         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50903         (gl_array_list_implementation): Update.
50904         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50905         (gl_carray_list_implementation): Update.
50906         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50907         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50908         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50909         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50910         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50911         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50912         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50913         Update.
50914         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50915         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50916         (gl_sublist_list_implementation): Update.
50917
50918 2008-02-10  Bruno Haible  <bruno@clisp.org>
50919
50920         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50921         Needed when ELEMENT is #defined to 'some_type *'.
50922
50923 2008-02-10  Jim Meyering  <meyering@redhat.com>
50924
50925         New script and module: useless-if-before-free
50926         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50927         * build-aux/useless-if-before-free: New file.
50928         * modules/useless-if-before-free: New file.
50929
50930         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50931
50932         xstrtol_error: Fix typo.
50933         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50934         s/exit_failure/exit_status/.
50935
50936 2008-02-09  Jim Meyering  <meyering@redhat.com>
50937
50938         New script and module: gitlog-to-changelog
50939         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50940         * modules/gitlog-to-changelog: New file.
50941         * build-aux/gitlog-to-changelog: New file.
50942
50943 2008-02-08  Jim Meyering  <meyering@redhat.com>
50944
50945         Avoid two "parameter unused" warnings.
50946         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50947         Mark "st" as used.
50948
50949         Use "git COMMAND", not "git-COMMAND".
50950         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50951         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50952         * build-aux/git-version-gen: Use "git status", not "git-status".
50953
50954 2008-02-07  Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50957         Avoids a crash on Windows Vista.
50958         Reported by Adam Strzelecki <ono@java.pl> via
50959         Simon Josefsson <simon@josefsson.org>.
50960
50961 2008-02-06  Bruno Haible  <bruno@clisp.org>
50962
50963         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50964         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50965         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50967         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50969         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50970         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50978         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50979         left-adjust flag.
50980         * tests/test-snprintf-posix.h (test_function): Likewise.
50981         * tests/test-sprintf-posix.h (test_function): Likewise.
50982         * tests/test-vasprintf-posix.c (test_function): Likewise.
50983         * doc/posix-functions/fprintf.texi: Update.
50984         * doc/posix-functions/printf.texi: Update.
50985         * doc/posix-functions/snprintf.texi: Update.
50986         * doc/posix-functions/sprintf.texi: Update.
50987         * doc/posix-functions/vfprintf.texi: Update.
50988         * doc/posix-functions/vprintf.texi: Update.
50989         * doc/posix-functions/vsnprintf.texi: Update.
50990         * doc/posix-functions/vsprintf.texi: Update.
50991         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50992
50993 2008-02-06  Bruno Haible  <bruno@clisp.org>
50994
50995         Fix bug introduced on 2008-01-26.
50996         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50997
50998 2008-02-06  Bruno Haible  <bruno@clisp.org>
50999
51000         Fix bug introduced on 2007-06-10.
51001         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51002         !NEED_PRINTF_FLAG_ZERO.
51003
51004 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51005
51006         getloadavg: use libperfstat on AIX5
51007         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51008
51009 2008-02-03  Bruno Haible  <bruno@clisp.org>
51010
51011         * lib/diffseq.h: Add comments about required #includes.
51012         Reported by Michael Biggs <gnulib@doubleplum.net>.
51013
51014 2008-02-01  Bruno Haible  <bruno@clisp.org>
51015
51016         * users.txt: Add gnuit.
51017
51018 2008-01-31  Bruno Haible  <bruno@clisp.org>
51019
51020         * lib/md4.c (set_uint32): Mark as inline.
51021         * lib/md5.c (set_uint32): Likewise.
51022         * lib/sha1.c (set_uint32): Likewise.
51023         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51024         * m4/md5.m4 (gl_MD5): Likewise.
51025         * m4/sha1.m4 (gl_SHA1): Likewise.
51026
51027 2008-01-31  Jim Meyering  <meyering@redhat.com>
51028
51029         Use "sizeof VAR", rather than a literal "4".
51030         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51031         * lib/md4.c (md4_read_ctx): Likewise.
51032         * lib/sha1.c (sha1_read_ctx): Likewise.
51033
51034 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51035
51036         * tests/test-sha1.c: New file, based on test-md5.c.
51037
51038         * modules/crypto/sha1-tests: New file.
51039
51040 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51041
51042         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51043
51044 2008-01-31  Jim Meyering  <meyering@redhat.com>
51045
51046         Prefer "sizeof v" over the equivalent "4".
51047         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51048         * lib/md5.c (set_uint32): Likewise.
51049         * lib/sha1.c (set_uint32): Likewise.
51050
51051 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51052
51053         * lib/sha1.c (set_uint32): Mark function as static.
51054
51055 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51056
51057         md2: clarify comments to say that alignment is not required.
51058         * lib/md2.h: Remove warning about alignment in comment.
51059         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51060         never been required.
51061
51062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51063
51064         md4: adapt alignment constraint fix from sha1.
51065         * lib/md4.c (set_uint32): New function, from sha1.c
51066         (md4_read_ctx): Use it.
51067         (md4_finish_ctx): Doc fix.
51068         * lib/md4.h: Doc fix.
51069
51070 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51071
51072         md5: adapt alignment constraint fix from sha1.
51073         * lib/md5.c (set_uint32): New function, from sha1.c
51074         (md5_read_ctx): Use it.
51075         (md5_finish_ctx): Doc fix.
51076         * lib/md5.h: Doc fix.
51077
51078 2008-01-30  Peter Palfrader  <weasel@debian.org>
51079
51080         sha1: remove the result buffer alignment constraint
51081         * lib/sha1.c (set_uint32): New function.
51082         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51083         constraint.
51084         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51085         * lib/sha1.h: Likewise.
51086
51087 2008-01-30  Andreas Schwab  <schwab@suse.de>
51088             Bruno Haible  <bruno@clisp.org>
51089
51090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51091         correct definition of LDBL_MIN_EXP.
51092
51093 2008-01-30  Karl Berry  <karl@gnu.org>
51094
51095         * config/srclist-update: try to preserve x bit on updates.
51096         * config/srclistvars.sh: update for karl.
51097
51098 2008-01-29  Jim Meyering  <meyering@redhat.com>
51099
51100         vasnprintf.c: Avoid warning about unused label
51101         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51102         "overflow" label definition and associated code with the
51103         same cpp condition that guards the sole use of that label.
51104
51105 2008-01-26  Bruno Haible  <bruno@clisp.org>
51106
51107         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51108         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51109         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51110         * lib/isnanl-nolibm.h (isnanl): Likewise.
51111         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51112
51113 2008-01-26  Bruno Haible  <bruno@clisp.org>
51114
51115         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51116         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51117
51118 2008-01-26  Bruno Haible  <bruno@clisp.org>
51119
51120         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51121         GCC >= 4.0 built-in.
51122         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51123
51124 2008-01-26  Bruno Haible  <bruno@clisp.org>
51125
51126         Rename isnan, applicable to 'double' only, to isnand.
51127         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51128         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51129         (configure.ac): Update.
51130         (Include): Replace "isnan.h" with "isnand.h".
51131         * m4/isnand.m4: Renamed from m4/isnan.m4.
51132         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51133         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51134         instead of isnan.c.
51135         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51136         instead of HAVE_ISNAN_IN_LIBC.
51137         (isnand): Renamed from isnan.
51138         * lib/isnand.c: New file.
51139         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51140         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51141         (Makefile.am): Update.
51142         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51143         Include isnand.h instead of isnan.h.
51144         (main): Test isnand instead of isnan.
51145         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51146         isnan-nolibm.
51147         * modules/frexp (Depends-on): Likewise.
51148         * modules/frexp-tests (Depends-on): Likewise.
51149         * modules/frexp-nolibm (Depends-on): Likewise.
51150         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51151         * modules/isfinite (Depends-on): Likewise.
51152         * modules/round-tests (Depends-on): Likewise.
51153         * modules/signbit (Depends-on): Likewise.
51154         * modules/signbit-tests (Depends-on): Likewise.
51155         * modules/snprintf-posix (Depends-on): Likewise.
51156         * modules/sprintf-posix (Depends-on): Likewise.
51157         * modules/trunc-tests (Depends-on): Likewise.
51158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51165         * modules/vasnprintf-posix (Depends-on): Likewise.
51166         * modules/vasprintf-posix (Depends-on): Likewise.
51167         * modules/vfprintf-posix (Depends-on): Likewise.
51168         * modules/vsnprintf-posix (Depends-on): Likewise.
51169         * modules/vsprintf-posix (Depends-on): Likewise.
51170         * lib/frexp.c: Include isnand.h instead of isnan.h.
51171         (ISNAN): Set to isnand instead of isnan.
51172         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51173         (gl_isfinited): Use isnand instead of isnan.
51174         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51175         (gl_signbitd): Use isnand instead of isnan.
51176         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51177         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51178         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51179         (main): Use isnand instead of isnan.
51180         * tests/test-round1.c: Include isnand.h.
51181         (main): Use isnand instead of isnan.
51182         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51183         (ISNAN): Set to isnand instead of isnan.
51184         * tests/test-trunc1.c: Include isnand.h.
51185         (main): Use isnand instead of isnan.
51186         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51187         (equal): Use isnand instead of isnan.
51188         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51189         isnand-nolibm.
51190         * NEWS: Mention the change.
51191
51192 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51193             Bruno Haible  <bruno@clisp.org>
51194
51195         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51196         the GCC builtins for signbits are present and set
51197         REPLACE_SIGNBIT_USING_GCC if so.
51198         * lib/math.in.h (signbit): Define using GCC builtins if
51199         REPLACE_SIGNBIT_USING_GCC is set.
51200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51201         REPLACE_SIGNBIT_USING_GCC.
51202         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51203
51204 2008-01-25  Jim Meyering  <meyering@redhat.com>
51205
51206         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51207         * lib/poll.c: Include <config.h>, not "config.h".
51208         * tests/test-getaddrinfo.c: Likewise.
51209
51210 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51211
51212         * modules/sockets-tests: New file.
51213
51214 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51215
51216         * modules/sockets: New module, can be used to call WSA_Startup and
51217         WSA_Cleanup when needed.
51218
51219         * lib/sockets.h, lib/sockets.c: New files.
51220
51221         * m4/sockets.m4: New file.
51222
51223         * tests/test-sockets.c: New file.
51224
51225 2008-01-19  Bruno Haible  <bruno@clisp.org>
51226
51227         * doc/posix-headers: Renamed from doc/headers.
51228         * doc/posix-functions: Renamed from doc/functions.
51229         * doc/gnulib.texi: Update.
51230
51231 2008-01-19  Bruno Haible  <bruno@clisp.org>
51232
51233         * doc/glibc-functions/strcasestr.texi: Include contents of
51234         doc/functions/strcasestr.texi, fixing the list of platforms.
51235         * doc/functions/strcasestr.texi: Remove file.
51236
51237 2008-01-19  Bruno Haible  <bruno@clisp.org>
51238
51239         * doc/glibc-functions/memmem.texi: Include contents of
51240         doc/functions/memmem.texi.
51241         * doc/functions/memmem.texi: Remove file.
51242
51243 2008-01-18  Bruno Haible  <bruno@clisp.org>
51244
51245         * doc/glibc-functions/*.texi: New files.
51246         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51247         to use the new files.
51248
51249 2008-01-17  Bruno Haible  <bruno@clisp.org>
51250
51251         * tests/test-gethostname.c (main): Fix printf statement.
51252
51253 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51254
51255         * modules/gethostname-tests: New file.
51256
51257         * tests/test-gethostname.c: New file.
51258
51259 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51260
51261         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51262         used by the UNAME case.  Reported by Bruno Haible
51263         <bruno@clisp.org>.
51264
51265 2008-01-17  Eric Blake  <ebb9@byu.net>
51266
51267         Convert c-strcasestr to be more efficient.
51268         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51269         (Depends-on): Add c-strcase, remove malloca, strnlen.
51270         * tests/test-c-strcasestr.c (main): Enhance test.
51271         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51272
51273 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51274
51275         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51276         Use it in creating po/Makevars.
51277
51278 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51279
51280         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51281         Applications that requires it should initialize libgcrypt
51282         manually.
51283
51284 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51285
51286         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51287
51288 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51289
51290         Fix problem with getdate on mingw32 reported by Simon Josefsson
51291         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51292         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51293         tzname", when deciding whether to declare tzname.
51294         * lib/strftime.c (tzname): Likewise.
51295
51296 2008-01-15  Bruno Haible  <bruno@clisp.org>
51297
51298         Work around a MacOS X 10.5 bug in frexpl().
51299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51300         * doc/functions/frexpl.texi: Document the bug.
51301         Reported by Elias Pipping <pipping@gentoo.org>.
51302
51303 2008-01-14  Eric Blake  <ebb9@byu.net>
51304
51305         Touch up previous patch.
51306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51307         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51308
51309         Convert strcasestr module to use Two-Way algorithm.
51310         * modules/strcasestr-simple: New module, based on the old
51311         strcasestr, but with Two-Way rather than KMP.
51312         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51313         * lib/string.in.h (rpl_strcasestr): Declare.
51314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51315         performance.
51316         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51317         * modules/string (Makefile.am): Support strcasestr.
51318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51319         * modules/strcasestr-tests (Depends-on): Check for alarm.
51320         * tests/test-strcasestr.c: Augment test.
51321         * lib/str-two-way.h: Clean up stray macro.
51322         * NEWS: Document new module.
51323         * MODULES.html.sh (string handling): Likewise.
51324         * doc/functions/strcasestr.texi: New file.
51325         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51326         here, since it is not a POSIX function.
51327
51328 2008-01-14  Colin Watson  <cjwatson@debian.org>
51329             Bruno Haible  <bruno@clisp.org>
51330
51331         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51332         works fine; if not, set REPLACE_STRSIGNAL.
51333         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51335         REPLACE_STRSIGNAL.
51336         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51337         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51338         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51339
51340 2008-01-14  Bruno Haible  <bruno@clisp.org>
51341
51342         * modules/strsignal (Include): Change to <string.h>.
51343
51344 2008-01-14  Colin Watson  <cjwatson@debian.org>
51345
51346         * modules/argp (Notice): Add a notice recommending to change
51347         XGETTEXT_OPTIONS.
51348         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51349
51350 2008-01-13  Colin Watson  <cjwatson@debian.org>
51351
51352         * modules/strsignal-tests: New file.
51353         * tests/test-strsignal.c: New file.
51354
51355         * lib/strsignal.c: New file, from glibc with modifications.
51356         * lib/siglist.h: New file, from glibc with modifications.
51357         * lib/string.in.h (strsignal): New declaration.
51358         * m4/strsignal.m4: New file.
51359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51360         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51361         * modules/strsignal: New file.
51362         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51363         HAVE_DECL_STRSIGNAL.
51364
51365 2008-01-13  Bruno Haible  <bruno@clisp.org>
51366
51367         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51368         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51369         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51370         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51371
51372 2008-01-13  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51375         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51376         * lib/argp.h (__attribute__): Likewise.
51377         * lib/c-stack.c (__attribute__): Likewise.
51378         * lib/error.h (__attribute__): Likewise.
51379         * lib/fts.c (__attribute__): Likewise.
51380         * lib/openat.h (__attribute__): Likewise.
51381         * lib/stdio.in.h (__attribute__): Likewise.
51382         * lib/string.in.h (__attribute__): Likewise.
51383         * lib/utimens.c (__attribute__): Likewise.
51384         * lib/vasnprintf.h (__attribute__): Likewise.
51385         * lib/xalloc.h (__attribute__): Likewise.
51386         * lib/xprintf.h (__attribute__): Likewise.
51387         * lib/xstrtol.h (__attribute__): Likewise.
51388         * lib/xvasprintf.h (__attribute__): Likewise.
51389
51390 2008-01-12  Bruno Haible  <bruno@clisp.org>
51391
51392         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51393         * doc/glibc-headers/a.out.texi: New file.
51394         * doc/glibc-headers/aliases.texi: New file.
51395         * doc/glibc-headers/alloca.texi: New file.
51396         * doc/glibc-headers/ar.texi: New file.
51397         * doc/glibc-headers/argp.texi: New file.
51398         * doc/glibc-headers/argz.texi: New file.
51399         * doc/glibc-headers/byteswap.texi: New file.
51400         * doc/glibc-headers/crypt.texi: New file.
51401         * doc/glibc-headers/endian.texi: New file.
51402         * doc/glibc-headers/envz.texi: New file.
51403         * doc/glibc-headers/err.texi: New file.
51404         * doc/glibc-headers/error.texi: New file.
51405         * doc/glibc-headers/execinfo.texi: New file.
51406         * doc/glibc-headers/fpu_control.texi: New file.
51407         * doc/glibc-headers/fstab.texi: New file.
51408         * doc/glibc-headers/fts.texi: New file.
51409         * doc/glibc-headers/getopt.texi: New file.
51410         * doc/glibc-headers/ieee754.texi: New file.
51411         * doc/glibc-headers/ifaddrs.texi: New file.
51412         * doc/glibc-headers/libintl.texi: New file.
51413         * doc/glibc-headers/mcheck.texi: New file.
51414         * doc/glibc-headers/mntent.texi: New file.
51415         * doc/glibc-headers/obstack.texi: New file.
51416         * doc/glibc-headers/paths.texi: New file.
51417         * doc/glibc-headers/printf.texi: New file.
51418         * doc/glibc-headers/pty.texi: New file.
51419         * doc/glibc-headers/resolv.texi: New file.
51420         * doc/glibc-headers/shadow.texi: New file.
51421         * doc/glibc-headers/sysexits.texi: New file.
51422         * doc/glibc-headers/ttyent.texi: New file.
51423
51424 2008-01-12  Jim Meyering  <meyering@redhat.com>
51425
51426         announce-gen: emit Gnulib's git-based version string.
51427         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51428         New option --gnulib-version=V, where V is expected to be
51429         the output of running git describe in the gnulib directory.
51430         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51431         not useful, and plan to stop publishing an xdelta file with each
51432         coreutils release.
51433
51434         * build-aux/announce-gen: Also check for lzma-compressed files.
51435
51436 2008-01-11  Bruno Haible  <bruno@clisp.org>
51437
51438         * tests/test-memmem.c (main): Increase maximum allowed time.
51439         * tests/test-strstr.c (main): Likewise.
51440
51441 2008-01-11  Bruno Haible  <bruno@clisp.org>
51442
51443         * doc/functions/memmem.texi: Add more precisions about platforms.
51444         * doc/functions/strstr.texi: Likewise.
51445
51446 2008-01-10  Eric Blake  <ebb9@byu.net>
51447
51448         * m4/strstr.m4: Delete cruft from copy-n-paste.
51449         Reported by Bruno Haible.
51450
51451 2008-01-10  Bruno Haible  <bruno@clisp.org>
51452
51453         Make c-strstr rely on strstr.
51454         * lib/c-strstr.c: Don't include str-kmp.h.
51455         (c_strstr): Define in terms of strstr.
51456         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51457         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51458
51459 2008-01-10  Bruno Haible  <bruno@clisp.org>
51460
51461         * doc/gnulib.texi (String Functions in C Locale): New section.
51462         * doc/c-ctype.texi: New file.
51463         * doc/c-strcase.texi: New file.
51464         * doc/c-strcaseeq.texi: New file.
51465         * doc/c-strcasestr.texi: New file.
51466         * doc/c-strstr.texi: New file.
51467         * doc/c-strtod.texi: New file.
51468         * doc/c-strtold.texi: New file.
51469
51470 2008-01-10  Eric Blake  <ebb9@byu.net>
51471
51472         * lib/relocatable.h: Fix a comment.
51473
51474 2008-01-10  Eric Blake  <ebb9@byu.net>
51475
51476         Share two-way algorithm.
51477         * lib/str-two-way.h: New file, merged from...
51478         * lib/memmem.c: ...here...
51479         * lib/strstr.c: ...and here.
51480         * modules/memmem (Files): Use it.
51481         * modules/strstr (Files): Likewise.
51482
51483         Avoid quadratic strstr implementations.
51484         * lib/strstr.c: New file.
51485         * m4/strstr.m4: Likewise.
51486         * modules/strstr: Likewise.
51487         * modules/strstr-tests: Likewise.
51488         * tests/test-strstr.c: Likewise.
51489         * lib/string.in.h (rpl_strstr): Declare.
51490         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51492         * modules/string (Makefile.am): Likewise.
51493         * MODULES.html.sh (string handling): Mention new module.
51494         * doc/functions/strstr.texi (strstr): Document the bug.
51495
51496 2008-01-10  Bruno Haible  <bruno@clisp.org>
51497
51498         * lib/relocatable.h (relocate): State whether result is freshly
51499         allocated or not.
51500         * lib/relocatable.c (relocate): Return a freshly allocated string
51501         instead of a pointer to a privately held string.
51502         Reported by Sylvain Beucler <beuc@gnu.org>.
51503
51504 2008-01-10  Colin Watson  <cjwatson@debian.org>
51505
51506         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51507         s/S_ISNLK/S_ISLNK/.
51508
51509 2008-01-09  Bruno Haible  <bruno@clisp.org>
51510
51511         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51512         and other files.
51513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51514         if it's only a guess.
51515         * modules/memmem: Simplify by depending on memmem-simple.
51516
51517 2008-01-09  Bruno Haible  <bruno@clisp.org>
51518
51519         Work around OpenBSD 4.0 tdelete() bug.
51520         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51521         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51522         macros and don't redefine the enum values.
51523         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51524         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51525         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51526
51527 2008-01-09  Bruno Haible  <bruno@clisp.org>
51528
51529         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51530         (main): Don't perform the tests if setlocale did not install a UTF-8
51531         locale. Needed on OpenBSD 4.0.
51532         * modules/wcwidth-tests (Depends-on): Add localcharset.
51533
51534 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51535
51536         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51537         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51538         * NEWS: announce this.
51539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51540
51541 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51542         and Eric Blake  <ebb9@byu.net>
51543
51544         Add memmem-simple module.
51545         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51546         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51547         * modules/memmem-simple: New file.
51548         * modules/memmem (Description): Tweak.
51549         * MODULES.html.sh (string handling): Mention new module.
51550         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51551         addressed by memmem-simple.
51552         * NEWS: Document the difference.
51553
51554 2008-01-09  Eric Blake  <ebb9@byu.net>
51555
51556         Give gcc some memmem optimization hints.
51557         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51558         (strcasestr): Declare as pure.
51559         * modules/memmem (Maintainer): Claim my implementation.
51560
51561 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51562
51563         Support AIX 6.1 and higher.
51564         * build-aux/config.libpath: Likewise.
51565         * build-aux/config.rpath: Likewise.
51566
51567 2008-01-08  Jim Meyering  <meyering@redhat.com>
51568             Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51571         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51572         Reported by Peter Fales in
51573         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51574
51575 2008-01-08  Bruno Haible  <bruno@clisp.org>
51576
51577         * modules/unictype/category-of (Depends-on): Add
51578         unictype/category-none.
51579         * modules/unictype/category-and-tests (Depends-on): Add
51580         unictype/category-{L,N,Lu,Nd}.
51581         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51582         * modules/unictype/category-or-tests (Depends-on): Add
51583         unictype/category-{L,N}.
51584         * modules/unictype/category-name-tests (Depends-on): Add
51585         unictype/category-{Z,Nl}.
51586         Reported by Simon Josefsson.
51587
51588 2008-01-08  Bruno Haible  <bruno@clisp.org>
51589
51590         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51591         convention better.
51592         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51593         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51594         Reported by Peter Miller <millerp@canb.auug.org.au>.
51595
51596 2008-01-08  Eric Blake  <ebb9@byu.net>
51597
51598         Rewrite memmem to guarantee linear complexity without malloc.
51599         * lib/memmem.c (memmem): Use Two-Way rather than
51600         Knuth-Morris-Pratt, to allow O(1) space usage.
51601         (critical_factorization, two_way_short_needle)
51602         (two_way_long_needle): New functions.
51603         (knuth_morris_pratt): Delete.
51604         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51605         Add stdint.
51606         * tests/test-memmem.c (main): Add tests for periodic needle and
51607         sublinear performance.
51608         * doc/functions/memmem.texi (memmem): Document other deficiencies
51609         in cygwin and older glibc.
51610
51611 2008-01-08  Bruno Haible  <bruno@clisp.org>
51612
51613         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51614         augmentation.
51615
51616 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51617
51618         Add a configure time option: --disable-acl.
51619         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51620         AC_ARG_ENABLE(acl).
51621
51622 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51623
51624         * tests/test-localename.c: Don't include obsolete "setenv.h".
51625
51626         * modules/localename-tests (Depends-on): Need unsetenv.
51627
51628 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51629
51630         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51631
51632 2008-01-06  Colin Watson  <cjwatson@debian.org>
51633
51634         * users.txt: Add man-db.
51635
51636 2008-01-07  Bruno Haible  <bruno@clisp.org>
51637
51638         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51639         previous section name.
51640
51641 2008-01-07  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/progname.c (set_program_name): Don't strip off a leading
51644         "lt-" prefix outside a .libs directory.
51645         Suggested by Paul Eggert.
51646
51647 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51648             Bruno Haible  <bruno@clisp.org>
51649
51650         Improve memory cleanup in 'relocatable' module.
51651         * lib/relocatable.h (compute_curr_prefix): Change return type to
51652         'char *'.
51653         * lib/relocatable.c (compute_curr_prefix): Change return type to
51654         'char *'. Free curr_installdir after use.
51655         (relocate): Free curr_prefix_better after use.
51656         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51657
51658 2008-01-01  Bruno Haible  <bruno@clisp.org>
51659
51660         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51661         failure on older glibc systems.
51662         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51663
51664 2008-01-05  Eric Blake  <ebb9@byu.net>
51665
51666         Avoid quadratic system memmem.
51667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51668         Reported by Ralf Wildenhues.
51669
51670         Fix memmem test for mingw.
51671         * modules/memmem-tests (configure.ac): Check for alarm.
51672         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51673         it.
51674         * doc/functions/memmem.texi: New file.
51675         * doc/gnulib.texi (Function Substitutes): Add memmem.
51676         Reported by Bruno Haible.
51677
51678 2008-01-04  Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51681         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51682         gl_HEADER_STRING_H_DEFAULTS.
51683
51684 2008-01-04  Eric Blake  <ebb9@byu.net>
51685
51686         Shorten duration of memmem test.
51687         * tests/test-memmem.c (main): Use alarm to declare failure if test
51688         is taking too long.
51689         Reported by Ralf Wildenhues.
51690
51691 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51692
51693         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51694         string, needed by strerror.
51695
51696 2008-01-03  Colin Watson  <cjwatson@debian.org>
51697             Bruno Haible  <bruno@clisp.org>
51698
51699         * doc/gnulib-tool.texi (Localization): New section.
51700
51701 2008-01-02  Bruno Haible  <bruno@clisp.org>
51702
51703         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51704         variables to 'unsigned char *' type.
51705         Reported by Paul Eggert.
51706
51707 2008-01-02  Jim Meyering  <jim@meyering.net>
51708
51709         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51710
51711 2007-12-31  Jim Meyering  <jim@meyering.net>
51712
51713         Avoid use of private FTS type name.
51714         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51715
51716 2007-12-30  Karl Berry  <karl@gnu.org>
51717
51718         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51719         work around defect in Texinfo and/or the standalone Info browser.
51720
51721 2007-12-30  Bruno Haible  <bruno@clisp.org>
51722
51723         Unify 5 copies of the KMP code.
51724         * lib/str-kmp.h: New file.
51725         * lib/c-strcasestr.c: Include str-kmp.h.
51726         (knuth_morris_pratt): Remove function.
51727         (c_strcasestr): Update.
51728         * lib/c-strstr.c: Include str-kmp.h.
51729         (knuth_morris_pratt): Remove function.
51730         (c_strcasestr): Update.
51731         * lib/mbscasestr.c: Include str-kmp.h.
51732         (knuth_morris_pratt_unibyte): Remove function.
51733         * lib/mbsstr.c: Include str-kmp.h.
51734         (knuth_morris_pratt_unibyte): Remove function.
51735         * lib/strcasestr.c: Include str-kmp.h.
51736         (knuth_morris_pratt): Remove function.
51737         (strcasestr): Update.
51738         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51739         * modules/c-strstr (Files): Likewise.
51740         * modules/mbscasestr (Files): Likewise.
51741         * modules/mbsstr (Files): Likewise.
51742         * modules/strcasestr (Files): Likewise.
51743         Suggested by Paul Eggert.
51744
51745 2007-12-30  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51748         defined.
51749
51750 2007-12-30  Bruno Haible  <bruno@clisp.org>
51751
51752         * lib/xmalloca.h: Include xalloc.h.
51753         (xnmalloca): New macro.
51754
51755 2007-12-30  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/malloca.h (nmalloca): New macro.
51758         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51759         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51760         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51761         knuth_morris_pratt_multibyte): Likewise.
51762         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51763         knuth_morris_pratt_multibyte): Likewise.
51764         * lib/memmem.c (knuth_morris_pratt): Likewise.
51765         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51766
51767 2007-12-25  Bruno Haible  <bruno@clisp.org>
51768
51769         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51770         * lib/glob.c: Don't include openat.h.
51771         (link_exists2_p): Add back the code that deals with the
51772         !GLOB_ALTDIRFUNC case.
51773         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51774         let it do the filename concatenation.
51775         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51776         * modules/glob (Depends-on): Remove openat.
51777
51778 2007-12-31  Bruno Haible  <bruno@clisp.org>
51779
51780         * modules/dirfd (License): Change to LGPLv2+.
51781         Approved by Jim Meyering.
51782
51783 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51784
51785         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51786         when multiplying M by sizeof (size_t).
51787
51788 2007-12-10  Martin Lambers  <marlam@marlam.de>
51789
51790         Override getpagesize on mingw.
51791         * lib/getpagesize.c: New file.
51792         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51793         * modules/getpagesize (Files): Add lib/getpagesize.c.
51794         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51796         REPLACE_GETPAGESIZE.
51797         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51798
51799 2007-12-25  Bruno Haible  <bruno@clisp.org>
51800
51801         * modules/localcharset (Notice): New field.
51802         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51803         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51804
51805 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51806             Bruno Haible  <bruno@clisp.org>
51807
51808         Avoid using the syntax symbol() in formatted documentation.
51809         * MODULES.html.sh (func_module): When replacing symbol() with a
51810         hyperlink, remove the parentheses. Show an error if some remain.
51811         Recognize and render the '...' syntax.
51812         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51813         Rework. Add paragraph about GCC's inlining.
51814         * doc/alloca.texi: Likewise.
51815         * doc/error.texi: Remove parentheses from symbol reference.
51816         * doc/gnulib-intro.texi: Likewise.
51817         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51818         * modules/fnmatch (Description): Reword to say "the ... function".
51819         * modules/full-read (Description): Likewise.
51820         * modules/full-write (Description): Likewise.
51821         * modules/safe-read (Description): Likewise.
51822         * modules/safe-write (Description): Likewise.
51823         * modules/strchrnul (Description): Likewise.
51824         * modules/trim (Description): Likewise.
51825         * modules/error (Description): Remove parentheses from symbol
51826         references.
51827         * modules/verror (Description): Likewise.
51828         Reported by Karl Berry.
51829
51830 2007-12-25  Bruno Haible  <bruno@clisp.org>
51831
51832         Fixup after 2007-10-16 commit.
51833         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51834
51835 2007-12-24  Bruno Haible  <bruno@clisp.org>
51836
51837         Make --enable-relocatable work with DESTDIR.
51838         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51839         to compute installdir from destprog.
51840         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51841         also set the RELOC_DESTDIR variable.
51842         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51843
51844 2007-12-24  Bruno Haible  <bruno@clisp.org>
51845
51846         Fix link error due to xalloc_die().
51847         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51848         of xreadlink.
51849         * lib/relocwrapper.c: Update comments.
51850         * build-aux/install-reloc: Remove xreadlink.c from file list.
51851         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51852         xreadlink.c.
51853         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51854
51855 2007-12-24  Bruno Haible  <bruno@clisp.org>
51856
51857         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51858         * lib/setenv.h: Remove file.
51859         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51860         lib/setenv.h.
51861         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51862         (Depends-on): Add stdlib.
51863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51864         gl_FUNC_UNSETENV.
51865         (Include): Replace setenv.h with <stdlib.h>.
51866         * modules/unsetenv: New file.
51867         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51868         * lib/unsetenv.c: Include <stdlib.h> first.
51869         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51870         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51871         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51872         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51873         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51874         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51876         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51877         * doc/functions/unsetenv.texi: Update.
51878         * modules/xsetenv (Depends-on): Add unsetenv.
51879         * modules/getdate (Depends-on): Likewise.
51880         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51881         * lib/xsetenv.c: Don't include setenv.h.
51882         * lib/getdate.y: Likewise.
51883         * lib/relocwrapper.c: Likewise.
51884         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51885         (Depends-on): Add stdlib.
51886         * NEWS: Mention the changes.
51887         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51888
51889 2007-12-23  Bruno Haible  <bruno@clisp.org>
51890
51891         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51892         indentation.
51893
51894 2007-12-23  Bruno Haible  <bruno@clisp.org>
51895
51896         * lib/c-strcasestr.c: Add more comments.
51897         * lib/c-strstr.c: Likewise.
51898         * lib/mbscasestr.c: Likewise.
51899         * lib/mbsstr.c: Likewise.
51900         * lib/strcasestr.c: Likewise.
51901         * lib/memmem.c: Likewise.
51902
51903 2007-12-23  Bruno Haible  <bruno@clisp.org>
51904
51905         * tests/test-memmem.c: Include <string.h> first.
51906
51907 2007-12-22  Bruno Haible  <bruno@clisp.org>
51908
51909         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51910         the contents of $testsbase.
51911         Reported by Ralf Wildenhues.
51912
51913 2007-12-22  Bruno Haible  <bruno@clisp.org>
51914
51915         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51916         two variables local_ldadd_before, local_ldadd_last.
51917
51918 2007-12-20  Eric Blake  <ebb9@byu.net>
51919
51920         Work around circular library issue when cross-compiling.
51921         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51922         that progname.o does not need to pull in rpl_memcmp.
51923
51924 2007-12-19  Eric Blake  <ebb9@byu.net>
51925
51926         Fix memmem to avoid O(n^2) worst-case complexity.
51927         * lib/memmem.c (knuth_morris_pratt): New function.
51928         (memmem): Use it if first few naive iterations fail.
51929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51930         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51931         * modules/memchr (License): Likewise.
51932         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51933         malloca.
51934         * tests/test-memmem.c: Rewrite, borrowing ideas from
51935         test-mbsstr1.c; the old version wouldn't even compile!
51936         * modules/memmem-tests: New file.
51937         * lib/string.in.h (rpl_memmem): Add declaration.
51938         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51940         REPLACE_MEMMEM.
51941
51942 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51943
51944         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51945         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51946         before any system include files, and undef after them all.  This
51947         should fix a problem on VMS reported by John E. Malmberg in
51948         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51949
51950 2007-12-17  Eric Blake  <ebb9@byu.net>
51951
51952         Revert addition of verify, for BSD/OS.
51953         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51954         can't handle large files, for the sake of obsolete platforms.
51955         * modules/fseeko (Depends-on): Remove verify.
51956         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51957         * doc/functions/ftello.texi (ftello): Likewise.
51958         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51959         Reported by Larry Jones.
51960
51961 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51962
51963         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51964         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51965
51966 2007-12-17  Jim Meyering  <meyering@redhat.com>
51967
51968         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51969         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51970         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51971         * modules/getcwd (Depends-on): Add openat.
51972         Reported by Petr Salinger.
51973
51974 2007-12-17  Bruno Haible  <bruno@clisp.org>
51975
51976         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51977         avoid a segmentation fault of the configure test on x86_64 systems.
51978
51979 2007-12-15  Jim Meyering  <meyering@redhat.com>
51980
51981         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51982
51983 2007-12-13  Eric Blake  <ebb9@byu.net>
51984
51985         Another fseek test.
51986         * tests/test-fseek.c (main): Also test ungetc handling.
51987         * tests/test-fseeko.c (main): Likewise.
51988         * modules/fseeko (Depends-on): Add verify.
51989         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51990         large.
51991         Reported by Larry Jones.
51992
51993         Fix fseeko on mingw.
51994         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51995         seek.
51996
51997         Beef up fseek tests.
51998         * tests/test-fseek.c (main): Also test eof handling.
51999         * tests/test-fseeko.c (main): Likewise.
52000         Reported by Larry Jones.
52001
52002 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52003
52004         Fix fseeko on BSD-based platforms.
52005         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52006         successful seek.
52007
52008 2007-12-12  Eric Blake  <ebb9@byu.net>
52009
52010         Allow circular dependency of separate libtests.a
52011         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52012         when use_libtests.
52013
52014 2007-12-11  Eric Blake  <ebb9@byu.net>
52015
52016         Fix bug with -0.0L in previous patch.
52017         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52018         * tests/test-isnan.c (main): Also test on zeroes.
52019         * tests/test-isnanf.c (main): Likewise.
52020         * tests/test-isnanl.h (main): Likewise.
52021
52022         Detect pseudo-denormals on x86 even when cross-compiling.
52023         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52024         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52025         invalid bit patterns that happen to satisfy ==.
52026
52027         Avoid link failures with separate libtests.a.
52028         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52029         last, to satisfy circular dependencies.
52030
52031 2007-12-11  Eric Blake  <ebb9@byu.net>
52032         and Bruno Haible  <bruno@clisp.org>
52033
52034         Fix OpenBSD 4.0 <float.h> handling of long double.
52035         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52036         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52037         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52038
52039 2007-12-11  Jim Meyering  <meyering@redhat.com>
52040
52041         * users.txt: Add libvirt.
52042
52043         Support versions of autoconf prior to 2.59c.
52044         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52045         if it is not already defined.
52046
52047 2007-12-09  Bruno Haible  <bruno@clisp.org>
52048
52049         Let 'gnulib-tool --import' collect sources needed for the tests in
52050         tests/ rather than in lib/.
52051         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52052         argument. If true, add rules to generate libtests.a, and put libtests.a
52053         into $(LDADD). Consider source files in subdirectories and set
52054         uses_subdirs.
52055         (func_emit_initmacro_start, func_emit_initmacro_end,
52056         func_emit_initmacro_done): Pass all arguments explicitly.
52057         (func_import): Determine two module lists main_modules,
52058         testsrelated_modules. Determine use_libtests. Determine two variables
52059         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52060         instead of just sed_transform_lib_file. Determine two variables
52061         main_files and testsrelated_files. Compute 'files' as the union of
52062         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52063         func_add_or_update. In the generated gnulib-comp.m4, collect the
52064         object files for tests/ in different variables than those for lib/.
52065         Substitute LIBTESTS_LIBDEPS.
52066         (func_create_testdir): Combine the uses_subdirs results from
52067         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52068
52069 2007-12-09  Bruno Haible  <bruno@clisp.org>
52070
52071         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52072         the build-aux directory.
52073
52074 2007-12-09  Bruno Haible  <bruno@clisp.org>
52075
52076         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52077         introduced on 2006-09-09.
52078
52079 2007-12-07  Jim Meyering  <meyering@redhat.com>
52080
52081         Let these macros work also with autoconf-2.59.
52082         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52083         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52085
52086 2007-12-06  Jim Meyering  <meyering@redhat.com>
52087
52088         Avoid a configure-time syntax error in gl_FUNC_ACL.
52089         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52090         function in each branch, before testing the cache variable.
52091
52092 2007-12-04  Eric Blake  <ebb9@byu.net>
52093
52094         Make scripts executable.
52095         * build-aux/config.guess: Add execute permissions.
52096         * build-aux/config.sub: Likewise.
52097         * build-aux/gendocs.sh: Likewise.
52098
52099         Fix frexp on mingw.
52100         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52101         cross-compiling.
52102         * doc/functions/frexp.texi (frexp): Document the bug.
52103
52104         Make cygwin fseeko check more reliable.
52105         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52106         version numbers, rather than unrelated feature check.
52107         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52108         * doc/functions/ftello.texi (ftello): Likewise.
52109         Reported by Bruno Haible.
52110
52111         * m4/strerror.m4: Bump version number.
52112
52113 2007-12-03  Bruno Haible  <bruno@clisp.org>
52114
52115         * doc/functions/mprotect.texi: Mention the mingw problem.
52116
52117 2007-12-03  Eric Blake  <ebb9@byu.net>
52118
52119         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52120         REPLACE_STRERROR is initialized before this macro.
52121
52122 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52123
52124         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52125         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52126         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52127         put -lsec in even for programs other than 'ls'.  This fixes a problem
52128         for gettext reported by Bruno Haible in
52129         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52130         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52131         Add support for Solaris 10.  This isn't efficient, but should get the
52132         job done for now.
52133
52134 2007-12-03  James Youngman  <jay@gnu.org>
52135
52136         * doc/regexprops-generic.texi: change "an close-group" to "a
52137         close-group" and "illegal" to "not allowed".
52138
52139 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52140
52141         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52142         pr_byname.h. Needed for the rare case when the maintainer has done
52143         "make maintainer-clean" in the source directory and then attempts a
52144         build outside the source directory.
52145         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52146         scripts_byname.h.
52147
52148 2007-12-02  Martin Lambers <marlam@marlam.de>
52149             Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/getpagesize.h: Remove file.
52152         * lib/unistd.in.h: Include declaration of getpagesize here.
52153         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52154         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52155         HAVE_SYS_PARAM_H.
52156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52157         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52158         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52159         (Depends-on): Add unistd.
52160         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52161         (Include): Use <unistd.h> instead of getpagesize.h.
52162         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52163         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52164         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52165         gl_GETPAGESIZE invocation, already handled by module dependency.
52166         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52167
52168 2007-12-02  Bruno Haible  <bruno@clisp.org>
52169
52170         * modules/strings-tests: New file.
52171         * tests/test-strings.c: New file.
52172
52173         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52174         * lib/strings.in.h: New file.
52175         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52176         * m4/strings_h.m4: New file.
52177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52178         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52179         * modules/strings: New file.
52180         * modules/string (Makefile.am): Update.
52181         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52182         Reported by Karl Berry.
52183
52184 2007-12-01  Eric Blake  <ebb9@byu.net>
52185
52186         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52187         accomodate fix in cygwin 1.5.25.
52188
52189 2007-12-01  Jim Meyering  <meyering@redhat.com>
52190
52191         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52192         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52193         that would inhibit utf8-optimization of a regexp containing line-
52194         or buffer-anchors, e.g., `^', `$'.
52195
52196 2007-11-30  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52199         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52200         glthread_recursive_lock_init.
52201         * lib/lock.c (glthread_recursive_lock_init)
52202         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52204
52205 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52206
52207         New function qset_acl, like set_acl but with syscall semantics.
52208         * lib/acl.h (qset_acl): New decl.
52209         * lib/acl.c (qset_acl): New function.
52210         (set_acl): Use new function.  Use more-consistent diagnostics.
52211
52212 2007-11-28  Jim Meyering  <meyering@redhat.com>
52213
52214         * modules/physmem (License): Change from GPL to LGPLv2+.
52215
52216 2007-11-26  Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52219         'long double' type has excess precision.
52220         Reported by Jim Meyering in
52221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52222
52223 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52224
52225         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52226         Sync from <http://gnu.org/licenses>.
52227         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52228         with license text from same location.
52229         * doc/maintain.texi, doc/standards.texi:  Sync from
52230         <http://savannah.gnu.org/projects/gnustandards>.
52231
52232 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52233         and Jim Meyering  <meyering@redhat.com>
52234
52235         Adjust getdate' grammar to accept a slightly more regular language.
52236         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52237         Before, the former was rejected.
52238         * lib/getdate.y (digits_to_date_time): New function, factored
52239         out of ...
52240         (number): ...here.  Just call digits_to_date_time.
52241         (hybrid): New non-terminal to handle an <unsigned number,
52242         signed relative offset> sequence consistently.
52243
52244 2007-11-18  Jim Meyering  <meyering@redhat.com>
52245
52246         Pull my changes from coreutils:
52247         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52248         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52249         use of $gnulib_tool_option_extras, so that it's separated from the
52250         preceding argument.
52251
52252         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52253         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52254         parent destination directories before copying a file into place.
52255
52256 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52257
52258         bootstrap: work also with 4-argument variant of AC_INIT
52259         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52260
52261 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52262
52263         Port test-getaddrinfo to Solaris.
52264         Problem reported by Bruno Haible in
52265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52266         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52267         explanation of setting 'hints'.
52268         Don't reject an implementation merely because it returns EAI_SERVICE.
52269         (EAI_SERVICE): Define to 0 if not defined.
52270
52271 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52272
52273         The license of gnu-make and posix-shell is now "GPLed build tool".
52274         * modules/gnu-make (License): Likewise.
52275         * modules/posix-shell (License): Likewise.
52276
52277         New module posix-shell, for determining a POSIX shell
52278         or perhaps something that is close enough to a POSIX shell.
52279         * m4/posix-shell.m4: New file.
52280         * modules/posix-shell: New file.
52281
52282         * MODULES.html.sh: Mention new module.
52283
52284         New module gnu-make, for determining whether we're using GNU Make.
52285         * m4/gnu-make.m4: New file.
52286         * modules/gnu-make: New file.
52287         * MODULES.html.sh: Mention new module.
52288
52289 2007-11-14  Jim Meyering  <meyering@redhat.com>
52290
52291         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52292         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52293         use this macro to create a function _definition_.
52294         Remove useless "#undef ARGMATCH_DIE".
52295
52296 2007-11-14  Bruno Haible  <bruno@clisp.org>
52297
52298         * lib/config.charset: Update for OpenBSD 4.1.
52299         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52300
52301 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52302
52303         Document 64-bit #if problems in stdint.texi.
52304         * doc/headers/stdint.texi (stdint.h): Mention problems with
52305         64-bit-#if, and how to work around them.
52306
52307         Don't insist on 'long long int' support in the preprocessor.  It
52308         breaks too many things.  For example, PRIdMAX still uses a 'long
52309         long int' format with the latest Sun compiler, even though
52310         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52311         preprocessor problem.  This causes the latest coreutils to dump
52312         core on Solaris 10 sparc with the Sun C compiler.
52313         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52314         the troublesome expressions at configure-time, not at #if-time.
52315         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52316         preprocessor.
52317         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52318         compile-time C checks, done at 'configure'-time.
52319         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52320         * modules/inttypes (Makefile): Substitute the new symbols that
52321         gl_INTTYPES_H now generates.
52322         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52323
52324 2007-11-12  Bruno Haible  <bruno@clisp.org>
52325
52326         Tests for Unicode character classification functions.
52327
52328         * modules/unictype/bidicategory-byname-tests: New file.
52329         * modules/unictype/bidicategory-name-tests: New file.
52330         * modules/unictype/bidicategory-of-tests: New file.
52331         * modules/unictype/bidicategory-test-tests: New file.
52332         * modules/unictype/block-list-tests: New file.
52333         * modules/unictype/block-of-tests: New file.
52334         * modules/unictype/block-test-tests: New file.
52335         * modules/unictype/category-C-tests: New file.
52336         * modules/unictype/category-Cc-tests: New file.
52337         * modules/unictype/category-Cf-tests: New file.
52338         * modules/unictype/category-Cn-tests: New file.
52339         * modules/unictype/category-Co-tests: New file.
52340         * modules/unictype/category-Cs-tests: New file.
52341         * modules/unictype/category-L-tests: New file.
52342         * modules/unictype/category-Ll-tests: New file.
52343         * modules/unictype/category-Lm-tests: New file.
52344         * modules/unictype/category-Lo-tests: New file.
52345         * modules/unictype/category-Lt-tests: New file.
52346         * modules/unictype/category-Lu-tests: New file.
52347         * modules/unictype/category-M-tests: New file.
52348         * modules/unictype/category-Mc-tests: New file.
52349         * modules/unictype/category-Me-tests: New file.
52350         * modules/unictype/category-Mn-tests: New file.
52351         * modules/unictype/category-N-tests: New file.
52352         * modules/unictype/category-Nd-tests: New file.
52353         * modules/unictype/category-Nl-tests: New file.
52354         * modules/unictype/category-No-tests: New file.
52355         * modules/unictype/category-P-tests: New file.
52356         * modules/unictype/category-Pc-tests: New file.
52357         * modules/unictype/category-Pd-tests: New file.
52358         * modules/unictype/category-Pe-tests: New file.
52359         * modules/unictype/category-Pf-tests: New file.
52360         * modules/unictype/category-Pi-tests: New file.
52361         * modules/unictype/category-Po-tests: New file.
52362         * modules/unictype/category-Ps-tests: New file.
52363         * modules/unictype/category-S-tests: New file.
52364         * modules/unictype/category-Sc-tests: New file.
52365         * modules/unictype/category-Sk-tests: New file.
52366         * modules/unictype/category-Sm-tests: New file.
52367         * modules/unictype/category-So-tests: New file.
52368         * modules/unictype/category-Z-tests: New file.
52369         * modules/unictype/category-Zl-tests: New file.
52370         * modules/unictype/category-Zp-tests: New file.
52371         * modules/unictype/category-Zs-tests: New file.
52372         * modules/unictype/category-and-not-tests: New file.
52373         * modules/unictype/category-and-tests: New file.
52374         * modules/unictype/category-byname-tests: New file.
52375         * modules/unictype/category-name-tests: New file.
52376         * modules/unictype/category-none-tests: New file.
52377         * modules/unictype/category-of-tests: New file.
52378         * modules/unictype/category-or-tests: New file.
52379         * modules/unictype/category-test-withtable-tests: New file.
52380         * modules/unictype/combining-class-tests: New file.
52381         * modules/unictype/ctype-alnum-tests: New file.
52382         * modules/unictype/ctype-alpha-tests: New file.
52383         * modules/unictype/ctype-blank-tests: New file.
52384         * modules/unictype/ctype-cntrl-tests: New file.
52385         * modules/unictype/ctype-digit-tests: New file.
52386         * modules/unictype/ctype-graph-tests: New file.
52387         * modules/unictype/ctype-lower-tests: New file.
52388         * modules/unictype/ctype-print-tests: New file.
52389         * modules/unictype/ctype-punct-tests: New file.
52390         * modules/unictype/ctype-space-tests: New file.
52391         * modules/unictype/ctype-upper-tests: New file.
52392         * modules/unictype/ctype-xdigit-tests: New file.
52393         * modules/unictype/decimal-digit-tests: New file.
52394         * modules/unictype/digit-tests: New file.
52395         * modules/unictype/mirror-tests: New file.
52396         * modules/unictype/numeric-tests: New file.
52397         * modules/unictype/property-alphabetic-tests: New file.
52398         * modules/unictype/property-ascii-hex-digit-tests: New file.
52399         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52400         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52401         * modules/unictype/property-bidi-block-separator-tests: New file.
52402         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52403         * modules/unictype/property-bidi-common-separator-tests: New file.
52404         * modules/unictype/property-bidi-control-tests: New file.
52405         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52406         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52407         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52408         * modules/unictype/property-bidi-european-digit-tests: New file.
52409         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52410         * modules/unictype/property-bidi-left-to-right-tests: New file.
52411         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52412         * modules/unictype/property-bidi-other-neutral-tests: New file.
52413         * modules/unictype/property-bidi-pdf-tests: New file.
52414         * modules/unictype/property-bidi-segment-separator-tests: New file.
52415         * modules/unictype/property-bidi-whitespace-tests: New file.
52416         * modules/unictype/property-byname-tests: New file.
52417         * modules/unictype/property-combining-tests: New file.
52418         * modules/unictype/property-composite-tests: New file.
52419         * modules/unictype/property-currency-symbol-tests: New file.
52420         * modules/unictype/property-dash-tests: New file.
52421         * modules/unictype/property-decimal-digit-tests: New file.
52422         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52423         * modules/unictype/property-deprecated-tests: New file.
52424         * modules/unictype/property-diacritic-tests: New file.
52425         * modules/unictype/property-extender-tests: New file.
52426         * modules/unictype/property-format-control-tests: New file.
52427         * modules/unictype/property-grapheme-base-tests: New file.
52428         * modules/unictype/property-grapheme-extend-tests: New file.
52429         * modules/unictype/property-grapheme-link-tests: New file.
52430         * modules/unictype/property-hex-digit-tests: New file.
52431         * modules/unictype/property-hyphen-tests: New file.
52432         * modules/unictype/property-id-continue-tests: New file.
52433         * modules/unictype/property-id-start-tests: New file.
52434         * modules/unictype/property-ideographic-tests: New file.
52435         * modules/unictype/property-ids-binary-operator-tests: New file.
52436         * modules/unictype/property-ids-trinary-operator-tests: New file.
52437         * modules/unictype/property-ignorable-control-tests: New file.
52438         * modules/unictype/property-iso-control-tests: New file.
52439         * modules/unictype/property-join-control-tests: New file.
52440         * modules/unictype/property-left-of-pair-tests: New file.
52441         * modules/unictype/property-line-separator-tests: New file.
52442         * modules/unictype/property-logical-order-exception-tests: New file.
52443         * modules/unictype/property-lowercase-tests: New file.
52444         * modules/unictype/property-math-tests: New file.
52445         * modules/unictype/property-non-break-tests: New file.
52446         * modules/unictype/property-not-a-character-tests: New file.
52447         * modules/unictype/property-numeric-tests: New file.
52448         * modules/unictype/property-other-alphabetic-tests: New file.
52449         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52450         * modules/unictype/property-other-grapheme-extend-tests: New file.
52451         * modules/unictype/property-other-id-continue-tests: New file.
52452         * modules/unictype/property-other-id-start-tests: New file.
52453         * modules/unictype/property-other-lowercase-tests: New file.
52454         * modules/unictype/property-other-math-tests: New file.
52455         * modules/unictype/property-other-uppercase-tests: New file.
52456         * modules/unictype/property-paired-punctuation-tests: New file.
52457         * modules/unictype/property-paragraph-separator-tests: New file.
52458         * modules/unictype/property-pattern-syntax-tests: New file.
52459         * modules/unictype/property-pattern-white-space-tests: New file.
52460         * modules/unictype/property-private-use-tests: New file.
52461         * modules/unictype/property-punctuation-tests: New file.
52462         * modules/unictype/property-quotation-mark-tests: New file.
52463         * modules/unictype/property-radical-tests: New file.
52464         * modules/unictype/property-sentence-terminal-tests: New file.
52465         * modules/unictype/property-soft-dotted-tests: New file.
52466         * modules/unictype/property-space-tests: New file.
52467         * modules/unictype/property-terminal-punctuation-tests: New file.
52468         * modules/unictype/property-test-tests: New file.
52469         * modules/unictype/property-titlecase-tests: New file.
52470         * modules/unictype/property-unassigned-code-value-tests: New file.
52471         * modules/unictype/property-unified-ideograph-tests: New file.
52472         * modules/unictype/property-uppercase-tests: New file.
52473         * modules/unictype/property-variation-selector-tests: New file.
52474         * modules/unictype/property-white-space-tests: New file.
52475         * modules/unictype/property-xid-continue-tests: New file.
52476         * modules/unictype/property-xid-start-tests: New file.
52477         * modules/unictype/property-zero-width-tests: New file.
52478         * modules/unictype/scripts-tests: New file.
52479         * modules/unictype/syntax-c-ident-tests: New file.
52480         * modules/unictype/syntax-c-whitespace-tests: New file.
52481         * modules/unictype/syntax-java-ident-tests: New file.
52482         * modules/unictype/syntax-java-whitespace-tests: New file.
52483         * tests/unictype/test-bidi_byname.c: New file.
52484         * tests/unictype/test-bidi_name.c: New file.
52485         * tests/unictype/test-bidi_of.c: New file.
52486         * tests/unictype/test-bidi_test.c: New file.
52487         * tests/unictype/test-block_list.c: New file.
52488         * tests/unictype/test-block_of.c: New file.
52489         * tests/unictype/test-block_test.c: New file.
52490         * tests/unictype/test-categ_and.c: New file.
52491         * tests/unictype/test-categ_and_not.c: New file.
52492         * tests/unictype/test-categ_byname.c: New file.
52493         * tests/unictype/test-categ_name.c: New file.
52494         * tests/unictype/test-categ_none.c: New file.
52495         * tests/unictype/test-categ_of.c: New file.
52496         * tests/unictype/test-categ_or.c: New file.
52497         * tests/unictype/test-categ_test_withtable.c: New file.
52498         * tests/unictype/test-combining.c: New file.
52499         * tests/unictype/test-decdigit.c: New file.
52500         * tests/unictype/test-digit.c: New file.
52501         * tests/unictype/test-mirror.c: New file.
52502         * tests/unictype/test-numeric.c: New file.
52503         * tests/unictype/test-pr_byname.c: New file.
52504         * tests/unictype/test-pr_test.c: New file.
52505         * tests/unictype/test-predicate-part1.h: New file.
52506         * tests/unictype/test-predicate-part2.h: New file.
52507         * tests/unictype/test-scripts.c: New file.
52508         * tests/unictype/test-sy_c_ident.c: New file.
52509         * tests/unictype/test-sy_java_ident.c: New file.
52510
52511         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52512         for Unicode 5.0.0.
52513         * tests/unictype/test-categ_Cc.c: Likewise.
52514         * tests/unictype/test-categ_Cf.c: Likewise.
52515         * tests/unictype/test-categ_Cn.c: Likewise.
52516         * tests/unictype/test-categ_Co.c: Likewise.
52517         * tests/unictype/test-categ_Cs.c: Likewise.
52518         * tests/unictype/test-categ_L.c: Likewise.
52519         * tests/unictype/test-categ_Ll.c: Likewise.
52520         * tests/unictype/test-categ_Lm.c: Likewise.
52521         * tests/unictype/test-categ_Lo.c: Likewise.
52522         * tests/unictype/test-categ_Lt.c: Likewise.
52523         * tests/unictype/test-categ_Lu.c: Likewise.
52524         * tests/unictype/test-categ_M.c: Likewise.
52525         * tests/unictype/test-categ_Mc.c: Likewise.
52526         * tests/unictype/test-categ_Me.c: Likewise.
52527         * tests/unictype/test-categ_Mn.c: Likewise.
52528         * tests/unictype/test-categ_N.c: Likewise.
52529         * tests/unictype/test-categ_Nd.c: Likewise.
52530         * tests/unictype/test-categ_Nl.c: Likewise.
52531         * tests/unictype/test-categ_No.c: Likewise.
52532         * tests/unictype/test-categ_P.c: Likewise.
52533         * tests/unictype/test-categ_Pc.c: Likewise.
52534         * tests/unictype/test-categ_Pd.c: Likewise.
52535         * tests/unictype/test-categ_Pe.c: Likewise.
52536         * tests/unictype/test-categ_Pf.c: Likewise.
52537         * tests/unictype/test-categ_Pi.c: Likewise.
52538         * tests/unictype/test-categ_Po.c: Likewise.
52539         * tests/unictype/test-categ_Ps.c: Likewise.
52540         * tests/unictype/test-categ_S.c: Likewise.
52541         * tests/unictype/test-categ_Sc.c: Likewise.
52542         * tests/unictype/test-categ_Sk.c: Likewise.
52543         * tests/unictype/test-categ_Sm.c: Likewise.
52544         * tests/unictype/test-categ_So.c: Likewise.
52545         * tests/unictype/test-categ_Z.c: Likewise.
52546         * tests/unictype/test-categ_Zl.c: Likewise.
52547         * tests/unictype/test-categ_Zp.c: Likewise.
52548         * tests/unictype/test-categ_Zs.c: Likewise.
52549         * tests/unictype/test-ctype_alnum.c: Likewise.
52550         * tests/unictype/test-ctype_alpha.c: Likewise.
52551         * tests/unictype/test-ctype_blank.c: Likewise.
52552         * tests/unictype/test-ctype_cntrl.c: Likewise.
52553         * tests/unictype/test-ctype_digit.c: Likewise.
52554         * tests/unictype/test-ctype_graph.c: Likewise.
52555         * tests/unictype/test-ctype_lower.c: Likewise.
52556         * tests/unictype/test-ctype_print.c: Likewise.
52557         * tests/unictype/test-ctype_punct.c: Likewise.
52558         * tests/unictype/test-ctype_space.c: Likewise.
52559         * tests/unictype/test-ctype_upper.c: Likewise.
52560         * tests/unictype/test-ctype_xdigit.c: Likewise.
52561         * tests/unictype/test-decdigit.h: Likewise.
52562         * tests/unictype/test-digit.h: Likewise.
52563         * tests/unictype/test-numeric.h: Likewise.
52564         * tests/unictype/test-pr_alphabetic.c: Likewise.
52565         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52566         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52567         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52568         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52569         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52570         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52571         * tests/unictype/test-pr_bidi_control.c: Likewise.
52572         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52573         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52574         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52575         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52576         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52577         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52578         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52579         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52580         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52581         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52582         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52583         * tests/unictype/test-pr_combining.c: Likewise.
52584         * tests/unictype/test-pr_composite.c: Likewise.
52585         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52586         * tests/unictype/test-pr_dash.c: Likewise.
52587         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52588         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52589         * tests/unictype/test-pr_deprecated.c: Likewise.
52590         * tests/unictype/test-pr_diacritic.c: Likewise.
52591         * tests/unictype/test-pr_extender.c: Likewise.
52592         * tests/unictype/test-pr_format_control.c: Likewise.
52593         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52594         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52595         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52596         * tests/unictype/test-pr_hex_digit.c: Likewise.
52597         * tests/unictype/test-pr_hyphen.c: Likewise.
52598         * tests/unictype/test-pr_id_continue.c: Likewise.
52599         * tests/unictype/test-pr_id_start.c: Likewise.
52600         * tests/unictype/test-pr_ideographic.c: Likewise.
52601         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52602         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52603         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52604         * tests/unictype/test-pr_iso_control.c: Likewise.
52605         * tests/unictype/test-pr_join_control.c: Likewise.
52606         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52607         * tests/unictype/test-pr_line_separator.c: Likewise.
52608         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52609         * tests/unictype/test-pr_lowercase.c: Likewise.
52610         * tests/unictype/test-pr_math.c: Likewise.
52611         * tests/unictype/test-pr_non_break.c: Likewise.
52612         * tests/unictype/test-pr_not_a_character.c: Likewise.
52613         * tests/unictype/test-pr_numeric.c: Likewise.
52614         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52615         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52616         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52617         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52618         * tests/unictype/test-pr_other_id_start.c: Likewise.
52619         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52620         * tests/unictype/test-pr_other_math.c: Likewise.
52621         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52622         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52623         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52624         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52625         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52626         * tests/unictype/test-pr_private_use.c: Likewise.
52627         * tests/unictype/test-pr_punctuation.c: Likewise.
52628         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52629         * tests/unictype/test-pr_radical.c: Likewise.
52630         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52631         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52632         * tests/unictype/test-pr_space.c: Likewise.
52633         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52634         * tests/unictype/test-pr_titlecase.c: Likewise.
52635         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52636         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52637         * tests/unictype/test-pr_uppercase.c: Likewise.
52638         * tests/unictype/test-pr_variation_selector.c: Likewise.
52639         * tests/unictype/test-pr_white_space.c: Likewise.
52640         * tests/unictype/test-pr_xid_continue.c: Likewise.
52641         * tests/unictype/test-pr_xid_start.c: Likewise.
52642         * tests/unictype/test-pr_zero_width.c: Likewise.
52643         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52644         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52645
52646 2007-11-12  Bruno Haible  <bruno@clisp.org>
52647
52648         Unicode character classification functions.
52649         * lib/unictype.h: New file.
52650         * modules/unictype/base: New file.
52651         * modules/unictype/category-L: New file.
52652         * modules/unictype/category-Lu: New file.
52653         * modules/unictype/category-Ll: New file.
52654         * modules/unictype/category-Lt: New file.
52655         * modules/unictype/category-Lm: New file.
52656         * modules/unictype/category-Lo: New file.
52657         * modules/unictype/category-M: New file.
52658         * modules/unictype/category-Mn: New file.
52659         * modules/unictype/category-Mc: New file.
52660         * modules/unictype/category-Me: New file.
52661         * modules/unictype/category-N: New file.
52662         * modules/unictype/category-Nd: New file.
52663         * modules/unictype/category-Nl: New file.
52664         * modules/unictype/category-No: New file.
52665         * modules/unictype/category-P: New file.
52666         * modules/unictype/category-Pc: New file.
52667         * modules/unictype/category-Pd: New file.
52668         * modules/unictype/category-Ps: New file.
52669         * modules/unictype/category-Pe: New file.
52670         * modules/unictype/category-Pi: New file.
52671         * modules/unictype/category-Pf: New file.
52672         * modules/unictype/category-Po: New file.
52673         * modules/unictype/category-S: New file.
52674         * modules/unictype/category-Sm: New file.
52675         * modules/unictype/category-Sc: New file.
52676         * modules/unictype/category-Sk: New file.
52677         * modules/unictype/category-So: New file.
52678         * modules/unictype/category-Z: New file.
52679         * modules/unictype/category-Zs: New file.
52680         * modules/unictype/category-Zl: New file.
52681         * modules/unictype/category-Zp: New file.
52682         * modules/unictype/category-C: New file.
52683         * modules/unictype/category-Cc: New file.
52684         * modules/unictype/category-Cf: New file.
52685         * modules/unictype/category-Cs: New file.
52686         * modules/unictype/category-Co: New file.
52687         * modules/unictype/category-Cn: New file.
52688         * modules/unictype/category-or: New file.
52689         * modules/unictype/category-of: New file.
52690         * modules/unictype/category-test: New file.
52691         * modules/unictype/category-test-withtable: New file.
52692         * modules/unictype/category-byname: New file.
52693         * modules/unictype/category-none: New file.
52694         * modules/unictype/category-and: New file.
52695         * modules/unictype/category-and-not: New file.
52696         * modules/unictype/category-name: New file.
52697         * modules/unictype/combining-class: New file.
52698         * modules/unictype/category-all: New file.
52699         * modules/unictype/bidicategory-all: New file.
52700         * modules/unictype/bidicategory-byname: New file.
52701         * modules/unictype/bidicategory-name: New file.
52702         * modules/unictype/bidicategory-of: New file.
52703         * modules/unictype/bidicategory-test: New file.
52704         * modules/unictype/decimal-digit: New file.
52705         * modules/unictype/digit: New file.
52706         * modules/unictype/numeric: New file.
52707         * modules/unictype/mirror: New file.
52708         * modules/unictype/property-white-space: New file.
52709         * modules/unictype/property-alphabetic: New file.
52710         * modules/unictype/property-other-alphabetic: New file.
52711         * modules/unictype/property-not-a-character: New file.
52712         * modules/unictype/property-default-ignorable-code-point: New file.
52713         * modules/unictype/property-other-default-ignorable-code-point: New
52714         file.
52715         * modules/unictype/property-deprecated: New file.
52716         * modules/unictype/property-logical-order-exception: New file.
52717         * modules/unictype/property-variation-selector: New file.
52718         * modules/unictype/property-private-use: New file.
52719         * modules/unictype/property-unassigned-code-value: New file.
52720         * modules/unictype/property-uppercase: New file.
52721         * modules/unictype/property-other-uppercase: New file.
52722         * modules/unictype/property-lowercase: New file.
52723         * modules/unictype/property-other-lowercase: New file.
52724         * modules/unictype/property-titlecase: New file.
52725         * modules/unictype/property-soft-dotted: New file.
52726         * modules/unictype/property-id-start: New file.
52727         * modules/unictype/property-other-id-start: New file.
52728         * modules/unictype/property-id-continue: New file.
52729         * modules/unictype/property-other-id-continue: New file.
52730         * modules/unictype/property-xid-start: New file.
52731         * modules/unictype/property-xid-continue: New file.
52732         * modules/unictype/property-pattern-white-space: New file.
52733         * modules/unictype/property-pattern-syntax: New file.
52734         * modules/unictype/property-join-control: New file.
52735         * modules/unictype/property-grapheme-base: New file.
52736         * modules/unictype/property-grapheme-extend: New file.
52737         * modules/unictype/property-other-grapheme-extend: New file.
52738         * modules/unictype/property-grapheme-link: New file.
52739         * modules/unictype/property-bidi-control: New file.
52740         * modules/unictype/property-bidi-left-to-right: New file.
52741         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52742         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52743         * modules/unictype/property-bidi-european-digit: New file.
52744         * modules/unictype/property-bidi-eur-num-separator: New file.
52745         * modules/unictype/property-bidi-eur-num-terminator: New file.
52746         * modules/unictype/property-bidi-arabic-digit: New file.
52747         * modules/unictype/property-bidi-common-separator: New file.
52748         * modules/unictype/property-bidi-block-separator: New file.
52749         * modules/unictype/property-bidi-segment-separator: New file.
52750         * modules/unictype/property-bidi-whitespace: New file.
52751         * modules/unictype/property-bidi-non-spacing-mark: New file.
52752         * modules/unictype/property-bidi-boundary-neutral: New file.
52753         * modules/unictype/property-bidi-pdf: New file.
52754         * modules/unictype/property-bidi-embedding-or-override: New file.
52755         * modules/unictype/property-bidi-other-neutral: New file.
52756         * modules/unictype/property-hex-digit: New file.
52757         * modules/unictype/property-ascii-hex-digit: New file.
52758         * modules/unictype/property-ideographic: New file.
52759         * modules/unictype/property-unified-ideograph: New file.
52760         * modules/unictype/property-radical: New file.
52761         * modules/unictype/property-ids-binary-operator: New file.
52762         * modules/unictype/property-ids-trinary-operator: New file.
52763         * modules/unictype/property-zero-width: New file.
52764         * modules/unictype/property-space: New file.
52765         * modules/unictype/property-non-break: New file.
52766         * modules/unictype/property-iso-control: New file.
52767         * modules/unictype/property-format-control: New file.
52768         * modules/unictype/property-dash: New file.
52769         * modules/unictype/property-hyphen: New file.
52770         * modules/unictype/property-punctuation: New file.
52771         * modules/unictype/property-line-separator: New file.
52772         * modules/unictype/property-paragraph-separator: New file.
52773         * modules/unictype/property-quotation-mark: New file.
52774         * modules/unictype/property-sentence-terminal: New file.
52775         * modules/unictype/property-terminal-punctuation: New file.
52776         * modules/unictype/property-currency-symbol: New file.
52777         * modules/unictype/property-math: New file.
52778         * modules/unictype/property-other-math: New file.
52779         * modules/unictype/property-paired-punctuation: New file.
52780         * modules/unictype/property-left-of-pair: New file.
52781         * modules/unictype/property-combining: New file.
52782         * modules/unictype/property-composite: New file.
52783         * modules/unictype/property-decimal-digit: New file.
52784         * modules/unictype/property-numeric: New file.
52785         * modules/unictype/property-diacritic: New file.
52786         * modules/unictype/property-extender: New file.
52787         * modules/unictype/property-ignorable-control: New file.
52788         * modules/unictype/property-test: New file.
52789         * modules/unictype/property-byname: New file.
52790         * modules/unictype/property-all: New file.
52791         * modules/unictype/scripts: New file.
52792         * modules/unictype/scripts-all: New file.
52793         * modules/unictype/block-of: New file.
52794         * modules/unictype/block-test: New file.
52795         * modules/unictype/block-list: New file.
52796         * modules/unictype/block-all: New file.
52797         * modules/unictype/syntax-c-whitespace: New file.
52798         * modules/unictype/syntax-java-whitespace: New file.
52799         * modules/unictype/syntax-c-ident: New file.
52800         * modules/unictype/syntax-java-ident: New file.
52801         * modules/unictype/ctype-alnum: New file.
52802         * modules/unictype/ctype-alpha: New file.
52803         * modules/unictype/ctype-cntrl: New file.
52804         * modules/unictype/ctype-digit: New file.
52805         * modules/unictype/ctype-graph: New file.
52806         * modules/unictype/ctype-lower: New file.
52807         * modules/unictype/ctype-print: New file.
52808         * modules/unictype/ctype-punct: New file.
52809         * modules/unictype/ctype-space: New file.
52810         * modules/unictype/ctype-upper: New file.
52811         * modules/unictype/ctype-xdigit: New file.
52812         * modules/unictype/ctype-blank: New file.
52813         * lib/unictype/bidi_byname.c: New file.
52814         * lib/unictype/bidi_name.c: New file.
52815         * lib/unictype/bidi_of.c: New file.
52816         * lib/unictype/bidi_test.c: New file.
52817         * lib/unictype/bitmap.h: New file.
52818         * lib/unictype/block_test.c: New file.
52819         * lib/unictype/blocks.c: New file.
52820         * lib/unictype/categ_C.c: New file.
52821         * lib/unictype/categ_Cc.c: New file.
52822         * lib/unictype/categ_Cf.c: New file.
52823         * lib/unictype/categ_Cn.c: New file.
52824         * lib/unictype/categ_Co.c: New file.
52825         * lib/unictype/categ_Cs.c: New file.
52826         * lib/unictype/categ_L.c: New file.
52827         * lib/unictype/categ_Ll.c: New file.
52828         * lib/unictype/categ_Lm.c: New file.
52829         * lib/unictype/categ_Lo.c: New file.
52830         * lib/unictype/categ_Lt.c: New file.
52831         * lib/unictype/categ_Lu.c: New file.
52832         * lib/unictype/categ_M.c: New file.
52833         * lib/unictype/categ_Mc.c: New file.
52834         * lib/unictype/categ_Me.c: New file.
52835         * lib/unictype/categ_Mn.c: New file.
52836         * lib/unictype/categ_N.c: New file.
52837         * lib/unictype/categ_Nd.c: New file.
52838         * lib/unictype/categ_Nl.c: New file.
52839         * lib/unictype/categ_No.c: New file.
52840         * lib/unictype/categ_P.c: New file.
52841         * lib/unictype/categ_Pc.c: New file.
52842         * lib/unictype/categ_Pd.c: New file.
52843         * lib/unictype/categ_Pe.c: New file.
52844         * lib/unictype/categ_Pf.c: New file.
52845         * lib/unictype/categ_Pi.c: New file.
52846         * lib/unictype/categ_Po.c: New file.
52847         * lib/unictype/categ_Ps.c: New file.
52848         * lib/unictype/categ_S.c: New file.
52849         * lib/unictype/categ_Sc.c: New file.
52850         * lib/unictype/categ_Sk.c: New file.
52851         * lib/unictype/categ_Sm.c: New file.
52852         * lib/unictype/categ_So.c: New file.
52853         * lib/unictype/categ_Z.c: New file.
52854         * lib/unictype/categ_Zl.c: New file.
52855         * lib/unictype/categ_Zp.c: New file.
52856         * lib/unictype/categ_Zs.c: New file.
52857         * lib/unictype/categ_and.c: New file.
52858         * lib/unictype/categ_and_not.c: New file.
52859         * lib/unictype/categ_byname.c: New file.
52860         * lib/unictype/categ_name.c: New file.
52861         * lib/unictype/categ_none.c: New file.
52862         * lib/unictype/categ_of.c: New file.
52863         * lib/unictype/categ_or.c: New file.
52864         * lib/unictype/categ_test.c: New file.
52865         * lib/unictype/combining.c: New file.
52866         * lib/unictype/ctype_alnum.c: New file.
52867         * lib/unictype/ctype_alpha.c: New file.
52868         * lib/unictype/ctype_blank.c: New file.
52869         * lib/unictype/ctype_cntrl.c: New file.
52870         * lib/unictype/ctype_digit.c: New file.
52871         * lib/unictype/ctype_graph.c: New file.
52872         * lib/unictype/ctype_lower.c: New file.
52873         * lib/unictype/ctype_print.c: New file.
52874         * lib/unictype/ctype_punct.c: New file.
52875         * lib/unictype/ctype_space.c: New file.
52876         * lib/unictype/ctype_upper.c: New file.
52877         * lib/unictype/ctype_xdigit.c: New file.
52878         * lib/unictype/decdigit.c: New file.
52879         * lib/unictype/digit.c: New file.
52880         * lib/unictype/identsyntaxmap.h: New file.
52881         * lib/unictype/mirror.c: New file.
52882         * lib/unictype/numeric.c: New file.
52883         * lib/unictype/pr_alphabetic.c: New file.
52884         * lib/unictype/pr_ascii_hex_digit.c: New file.
52885         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52886         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52887         * lib/unictype/pr_bidi_block_separator.c: New file.
52888         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52889         * lib/unictype/pr_bidi_common_separator.c: New file.
52890         * lib/unictype/pr_bidi_control.c: New file.
52891         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52892         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52893         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52894         * lib/unictype/pr_bidi_european_digit.c: New file.
52895         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52896         * lib/unictype/pr_bidi_left_to_right.c: New file.
52897         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52898         * lib/unictype/pr_bidi_other_neutral.c: New file.
52899         * lib/unictype/pr_bidi_pdf.c: New file.
52900         * lib/unictype/pr_bidi_segment_separator.c: New file.
52901         * lib/unictype/pr_bidi_whitespace.c: New file.
52902         * lib/unictype/pr_byname.c: New file.
52903         * lib/unictype/pr_byname.gperf: New file.
52904         * lib/unictype/pr_combining.c: New file.
52905         * lib/unictype/pr_composite.c: New file.
52906         * lib/unictype/pr_currency_symbol.c: New file.
52907         * lib/unictype/pr_dash.c: New file.
52908         * lib/unictype/pr_decimal_digit.c: New file.
52909         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52910         * lib/unictype/pr_deprecated.c: New file.
52911         * lib/unictype/pr_diacritic.c: New file.
52912         * lib/unictype/pr_extender.c: New file.
52913         * lib/unictype/pr_format_control.c: New file.
52914         * lib/unictype/pr_grapheme_base.c: New file.
52915         * lib/unictype/pr_grapheme_extend.c: New file.
52916         * lib/unictype/pr_grapheme_link.c: New file.
52917         * lib/unictype/pr_hex_digit.c: New file.
52918         * lib/unictype/pr_hyphen.c: New file.
52919         * lib/unictype/pr_id_continue.c: New file.
52920         * lib/unictype/pr_id_start.c: New file.
52921         * lib/unictype/pr_ideographic.c: New file.
52922         * lib/unictype/pr_ids_binary_operator.c: New file.
52923         * lib/unictype/pr_ids_trinary_operator.c: New file.
52924         * lib/unictype/pr_ignorable_control.c: New file.
52925         * lib/unictype/pr_iso_control.c: New file.
52926         * lib/unictype/pr_join_control.c: New file.
52927         * lib/unictype/pr_left_of_pair.c: New file.
52928         * lib/unictype/pr_line_separator.c: New file.
52929         * lib/unictype/pr_logical_order_exception.c: New file.
52930         * lib/unictype/pr_lowercase.c: New file.
52931         * lib/unictype/pr_math.c: New file.
52932         * lib/unictype/pr_non_break.c: New file.
52933         * lib/unictype/pr_not_a_character.c: New file.
52934         * lib/unictype/pr_numeric.c: New file.
52935         * lib/unictype/pr_other_alphabetic.c: New file.
52936         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52937         * lib/unictype/pr_other_grapheme_extend.c: New file.
52938         * lib/unictype/pr_other_id_continue.c: New file.
52939         * lib/unictype/pr_other_id_start.c: New file.
52940         * lib/unictype/pr_other_lowercase.c: New file.
52941         * lib/unictype/pr_other_math.c: New file.
52942         * lib/unictype/pr_other_uppercase.c: New file.
52943         * lib/unictype/pr_paired_punctuation.c: New file.
52944         * lib/unictype/pr_paragraph_separator.c: New file.
52945         * lib/unictype/pr_pattern_syntax.c: New file.
52946         * lib/unictype/pr_pattern_white_space.c: New file.
52947         * lib/unictype/pr_private_use.c: New file.
52948         * lib/unictype/pr_punctuation.c: New file.
52949         * lib/unictype/pr_quotation_mark.c: New file.
52950         * lib/unictype/pr_radical.c: New file.
52951         * lib/unictype/pr_sentence_terminal.c: New file.
52952         * lib/unictype/pr_soft_dotted.c: New file.
52953         * lib/unictype/pr_space.c: New file.
52954         * lib/unictype/pr_terminal_punctuation.c: New file.
52955         * lib/unictype/pr_test.c: New file.
52956         * lib/unictype/pr_titlecase.c: New file.
52957         * lib/unictype/pr_unassigned_code_value.c: New file.
52958         * lib/unictype/pr_unified_ideograph.c: New file.
52959         * lib/unictype/pr_uppercase.c: New file.
52960         * lib/unictype/pr_variation_selector.c: New file.
52961         * lib/unictype/pr_white_space.c: New file.
52962         * lib/unictype/pr_xid_continue.c: New file.
52963         * lib/unictype/pr_xid_start.c: New file.
52964         * lib/unictype/pr_zero_width.c: New file.
52965         * lib/unictype/scripts.c: New file.
52966         * lib/unictype/sy_c_ident.c: New file.
52967         * lib/unictype/sy_c_whitespace.c: New file.
52968         * lib/unictype/sy_java_ident.c: New file.
52969         * lib/unictype/sy_java_whitespace.c: New file.
52970
52971         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52972         Unicode 5.0.0.
52973         * lib/unictype/blocks.h: Likewise.
52974         * lib/unictype/categ_C.h: Likewise.
52975         * lib/unictype/categ_Cc.h: Likewise.
52976         * lib/unictype/categ_Cf.h: Likewise.
52977         * lib/unictype/categ_Cn.h: Likewise.
52978         * lib/unictype/categ_Co.h: Likewise.
52979         * lib/unictype/categ_Cs.h: Likewise.
52980         * lib/unictype/categ_L.h: Likewise.
52981         * lib/unictype/categ_Ll.h: Likewise.
52982         * lib/unictype/categ_Lm.h: Likewise.
52983         * lib/unictype/categ_Lo.h: Likewise.
52984         * lib/unictype/categ_Lt.h: Likewise.
52985         * lib/unictype/categ_Lu.h: Likewise.
52986         * lib/unictype/categ_M.h: Likewise.
52987         * lib/unictype/categ_Mc.h: Likewise.
52988         * lib/unictype/categ_Me.h: Likewise.
52989         * lib/unictype/categ_Mn.h: Likewise.
52990         * lib/unictype/categ_N.h: Likewise.
52991         * lib/unictype/categ_Nd.h: Likewise.
52992         * lib/unictype/categ_Nl.h: Likewise.
52993         * lib/unictype/categ_No.h: Likewise.
52994         * lib/unictype/categ_P.h: Likewise.
52995         * lib/unictype/categ_Pc.h: Likewise.
52996         * lib/unictype/categ_Pd.h: Likewise.
52997         * lib/unictype/categ_Pe.h: Likewise.
52998         * lib/unictype/categ_Pf.h: Likewise.
52999         * lib/unictype/categ_Pi.h: Likewise.
53000         * lib/unictype/categ_Po.h: Likewise.
53001         * lib/unictype/categ_Ps.h: Likewise.
53002         * lib/unictype/categ_S.h: Likewise.
53003         * lib/unictype/categ_Sc.h: Likewise.
53004         * lib/unictype/categ_Sk.h: Likewise.
53005         * lib/unictype/categ_Sm.h: Likewise.
53006         * lib/unictype/categ_So.h: Likewise.
53007         * lib/unictype/categ_Z.h: Likewise.
53008         * lib/unictype/categ_Zl.h: Likewise.
53009         * lib/unictype/categ_Zp.h: Likewise.
53010         * lib/unictype/categ_Zs.h: Likewise.
53011         * lib/unictype/categ_of.h: Likewise.
53012         * lib/unictype/combining.h: Likewise.
53013         * lib/unictype/ctype_alnum.h: Likewise.
53014         * lib/unictype/ctype_alpha.h: Likewise.
53015         * lib/unictype/ctype_blank.h: Likewise.
53016         * lib/unictype/ctype_cntrl.h: Likewise.
53017         * lib/unictype/ctype_digit.h: Likewise.
53018         * lib/unictype/ctype_graph.h: Likewise.
53019         * lib/unictype/ctype_lower.h: Likewise.
53020         * lib/unictype/ctype_print.h: Likewise.
53021         * lib/unictype/ctype_punct.h: Likewise.
53022         * lib/unictype/ctype_space.h: Likewise.
53023         * lib/unictype/ctype_upper.h: Likewise.
53024         * lib/unictype/ctype_xdigit.h: Likewise.
53025         * lib/unictype/decdigit.h: Likewise.
53026         * lib/unictype/digit.h: Likewise.
53027         * lib/unictype/mirror.h: Likewise.
53028         * lib/unictype/numeric.h: Likewise.
53029         * lib/unictype/pr_alphabetic.h: Likewise.
53030         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53031         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53032         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53033         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53034         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53035         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53036         * lib/unictype/pr_bidi_control.h: Likewise.
53037         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53038         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53039         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53040         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53041         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53042         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53043         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53044         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53045         * lib/unictype/pr_bidi_pdf.h: Likewise.
53046         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53047         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53048         * lib/unictype/pr_combining.h: Likewise.
53049         * lib/unictype/pr_composite.h: Likewise.
53050         * lib/unictype/pr_currency_symbol.h: Likewise.
53051         * lib/unictype/pr_dash.h: Likewise.
53052         * lib/unictype/pr_decimal_digit.h: Likewise.
53053         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53054         * lib/unictype/pr_deprecated.h: Likewise.
53055         * lib/unictype/pr_diacritic.h: Likewise.
53056         * lib/unictype/pr_extender.h: Likewise.
53057         * lib/unictype/pr_format_control.h: Likewise.
53058         * lib/unictype/pr_grapheme_base.h: Likewise.
53059         * lib/unictype/pr_grapheme_extend.h: Likewise.
53060         * lib/unictype/pr_grapheme_link.h: Likewise.
53061         * lib/unictype/pr_hex_digit.h: Likewise.
53062         * lib/unictype/pr_hyphen.h: Likewise.
53063         * lib/unictype/pr_id_continue.h: Likewise.
53064         * lib/unictype/pr_id_start.h: Likewise.
53065         * lib/unictype/pr_ideographic.h: Likewise.
53066         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53067         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53068         * lib/unictype/pr_ignorable_control.h: Likewise.
53069         * lib/unictype/pr_iso_control.h: Likewise.
53070         * lib/unictype/pr_join_control.h: Likewise.
53071         * lib/unictype/pr_left_of_pair.h: Likewise.
53072         * lib/unictype/pr_line_separator.h: Likewise.
53073         * lib/unictype/pr_logical_order_exception.h: Likewise.
53074         * lib/unictype/pr_lowercase.h: Likewise.
53075         * lib/unictype/pr_math.h: Likewise.
53076         * lib/unictype/pr_non_break.h: Likewise.
53077         * lib/unictype/pr_not_a_character.h: Likewise.
53078         * lib/unictype/pr_numeric.h: Likewise.
53079         * lib/unictype/pr_other_alphabetic.h: Likewise.
53080         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53081         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53082         * lib/unictype/pr_other_id_continue.h: Likewise.
53083         * lib/unictype/pr_other_id_start.h: Likewise.
53084         * lib/unictype/pr_other_lowercase.h: Likewise.
53085         * lib/unictype/pr_other_math.h: Likewise.
53086         * lib/unictype/pr_other_uppercase.h: Likewise.
53087         * lib/unictype/pr_paired_punctuation.h: Likewise.
53088         * lib/unictype/pr_paragraph_separator.h: Likewise.
53089         * lib/unictype/pr_pattern_syntax.h: Likewise.
53090         * lib/unictype/pr_pattern_white_space.h: Likewise.
53091         * lib/unictype/pr_private_use.h: Likewise.
53092         * lib/unictype/pr_punctuation.h: Likewise.
53093         * lib/unictype/pr_quotation_mark.h: Likewise.
53094         * lib/unictype/pr_radical.h: Likewise.
53095         * lib/unictype/pr_sentence_terminal.h: Likewise.
53096         * lib/unictype/pr_soft_dotted.h: Likewise.
53097         * lib/unictype/pr_space.h: Likewise.
53098         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53099         * lib/unictype/pr_titlecase.h: Likewise.
53100         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53101         * lib/unictype/pr_unified_ideograph.h: Likewise.
53102         * lib/unictype/pr_uppercase.h: Likewise.
53103         * lib/unictype/pr_variation_selector.h: Likewise.
53104         * lib/unictype/pr_white_space.h: Likewise.
53105         * lib/unictype/pr_xid_continue.h: Likewise.
53106         * lib/unictype/pr_xid_start.h: Likewise.
53107         * lib/unictype/pr_zero_width.h: Likewise.
53108         * lib/unictype/scripts.h: Likewise.
53109         * lib/unictype/scripts_byname.gperf: Likewise.
53110         * lib/unictype/sy_c_ident.h: Likewise.
53111         * lib/unictype/sy_c_whitespace.h: Likewise.
53112         * lib/unictype/sy_java_ident.h: Likewise.
53113         * lib/unictype/sy_java_whitespace.h: Likewise.
53114
53115         * lib/unictype/Makefile: New file.
53116         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53117         glibc.
53118         * lib/unictype/3level.h: New file, copied from glibc.
53119         * lib/unictype/3levelbit.h: New file.
53120
53121 2007-11-11  Bruno Haible  <bruno@clisp.org>
53122
53123         * modules/gperf: New file.
53124         * modules/iconv_open (Depends-on): Add it.
53125         (Makefile.am): Remove the GPERF definition.
53126
53127 2007-11-11  Bruno Haible  <bruno@clisp.org>
53128
53129         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53130         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53131
53132 2007-11-11  Bruno Haible  <bruno@clisp.org>
53133
53134         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53135         (usage): Remove function.
53136
53137 2007-11-11  Bruno Haible  <bruno@clisp.org>
53138
53139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53140         gl_FUNC_CEILF_LIBS.
53141         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53142         gl_FUNC_CEIL_LIBS.
53143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53144         gl_FUNC_CEILL_LIBS.
53145         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53146         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53147         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53148
53149 2007-11-11  Bruno Haible  <bruno@clisp.org>
53150
53151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53152         roundf were declared but do not exist on functions.
53153         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53154         roundl were declared but do not exist on functions.
53155         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53156         HAVE_FLOORL_AND_CEILL, respectively.
53157         Needed for Sun C on Solaris 10.
53158
53159 2007-11-11  Bruno Haible  <bruno@clisp.org>
53160
53161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53162         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53163         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53164         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53165         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53166         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53167         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53168         HAVE_DECL_ROUNDF.
53169         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53170         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53172         of HAVE_DECL_ROUND*.
53173         * modules/math (Makefile.am): Update.
53174
53175 2007-11-10  Bruno Haible  <bruno@clisp.org>
53176
53177         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53178         ptrdiff_t as m4/intl.m4.
53179
53180 2007-11-10  Jim Meyering  <meyering@redhat.com>
53181
53182         Avoid link failure for the argmatch test.
53183         * tests/test-argmatch.c (usage): Define function to avoid a link
53184         failure: argmatch_die requires a usage function.
53185
53186 2007-11-09  Bruno Haible  <bruno@clisp.org>
53187
53188         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53189         * doc/functions/vsnprintf.texi: Likewise.
53190         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53191         with a size argument < 2.
53192
53193 2007-11-09  Bruno Haible  <bruno@clisp.org>
53194
53195         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53196         buffer. Fixes an inefficiency introduced on 2007-11-03.
53197
53198 2007-11-09  Bruno Haible  <bruno@clisp.org>
53199
53200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53201         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53202
53203 2007-11-08  Jim Meyering  <meyering@redhat.com>
53204
53205         Change cache variable name prefix "jm_" to "gl_" everywhere.
53206         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53207         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53208         * m4/uptime.m4: s/gl_/jm_/
53209
53210 2007-11-07  Bruno Haible  <bruno@clisp.org>
53211
53212         Update to GNU gettext 0.17.
53213         * m4/intl.m4: Update to GNU gettext 0.17.
53214         * m4/po.m4: Likewise.
53215         * modules/gettext (Files): Remove m4/ulonglong.m4.
53216         (configure.ac): Require gettext infrastructure from version 0.17.
53217
53218 2007-11-06  Bruno Haible  <bruno@clisp.org>
53219
53220         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53221         symbolic values are not defined in a public header.
53222         * lib/freadable.c (freadable) [QNX]: Likewise.
53223         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53224         * lib/freading.c (freading) [QNX]: Likewise.
53225         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53226         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53227         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53228         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53229         Reported by Alain Magloire.
53230
53231         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53232
53233 2007-11-05  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53236         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53237         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53238         Reported by Eric Blake.
53239
53240 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53241             Bruno Haible  <bruno@clisp.org>
53242
53243         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53244         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53245         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53246         (malloc): Undefine also before including <stdlib.h>.
53247         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53248         Needed on OSF/1 4.0.
53249
53250 2007-11-05  Jim Meyering  <meyering@redhat.com>
53251
53252         git-version-gen: sync from coreutils.
53253         * build-aux/git-version-gen: Add comments.
53254         Change the first '-' to '.' in the snapshot version string,
53255         e.g., 6.9-377-08144 -> 6.9.377-08144
53256         Remove first parameter.
53257         Don't declare a version "-dirty" merely because a time
53258         stamp has changed.
53259
53260 2007-11-04  Bruno Haible  <bruno@clisp.org>
53261
53262         * lib/lock.h: Protect all macro definitions containing an 'if'
53263         statement through a "do { ... } while (0)".
53264         * lib/tls.h: Likewise.
53265
53266 2007-11-04  Bruno Haible  <bruno@clisp.org>
53267
53268         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53269
53270 2007-11-04  Bruno Haible  <bruno@clisp.org>
53271
53272         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53273         * modules/fprintf-posix (Depends-on): Add nocrash.
53274         * modules/snprintf-posix (Depends-on): Likewise.
53275         * modules/sprintf-posix (Depends-on): Likewise.
53276         * modules/vasnprintf-posix (Depends-on): Likewise.
53277         * modules/vasprintf-posix (Depends-on): Likewise.
53278         * modules/vfprintf-posix (Depends-on): Likewise.
53279         * modules/vsnprintf-posix (Depends-on): Likewise.
53280         * modules/vsprintf-posix (Depends-on): Likewise.
53281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53283         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53287         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53288
53289 2007-11-04  Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/nocrash: New file.
53292         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53293         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53294
53295 2007-11-04  Bruno Haible  <bruno@clisp.org>
53296
53297         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53298         precision handling.
53299         * tests/test-vasprintf-posix.c (test_function): Likewise.
53300         * tests/test-snprintf-posix.h (test_function): Likewise.
53301         * tests/test-sprintf-posix.h (test_function): Likewise.
53302
53303         Fix *printf behaviour for large precisions on mingw and BeOS.
53304         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53305         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53307         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53308         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53309         gl_PRINTF_PRECISION and test its result. Invoke
53310         gl_PREREQ_VASNPRINTF_PRECISION.
53311         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53312         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53313         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53315         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53316         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53317         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53318         * doc/functions/fprintf.texi: Update.
53319         * doc/functions/printf.texi: Update.
53320         * doc/functions/snprintf.texi: Update.
53321         * doc/functions/sprintf.texi: Update.
53322         * doc/functions/vfprintf.texi: Update.
53323         * doc/functions/vprintf.texi: Update.
53324         * doc/functions/vsnprintf.texi: Update.
53325         * doc/functions/vsprintf.texi: Update.
53326
53327 2007-11-04  Bruno Haible  <bruno@clisp.org>
53328
53329         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53330
53331 2007-11-04  Bruno Haible  <bruno@clisp.org>
53332
53333         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53334         Reported by Sylvain Beucler <beuc@gnu.org>.
53335
53336 2007-11-03  Bruno Haible  <bruno@clisp.org>
53337
53338         * tests/test-fprintf-posix2.sh: New file.
53339         * tests/test-fprintf-posix2.c: New file.
53340         * modules/fprintf-posix-tests (Files): Add them.
53341         (TESTS): Add test-fprintf-posix2.sh.
53342         (configure.ac): Check for getrlimit and setrlimit.
53343         (check_PROGRAMS): Add test-fprintf-posix2.
53344
53345         * tests/test-printf-posix2.sh: New file.
53346         * tests/test-printf-posix2.c: New file.
53347         * modules/printf-posix-tests (Files): Add them.
53348         (TESTS): Add test-printf-posix2.sh.
53349         (configure.ac): Check for getrlimit and setrlimit.
53350         (check_PROGRAMS): Add test-printf-posix2.
53351
53352         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53353         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53354         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53355         (decode_double): New function, copied from decode_long_double.
53356         (scale10_round_decimal_decoded): New function, extracted from
53357         scale10_round_decimal_long_double.
53358         (scale10_round_decimal_long_double): Use it.
53359         (scale10_round_decimal_double): New function.
53360         (floorlog10): New function.
53361         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53363         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53365         gl_PRINTF_ENOMEM and test its result. Invoke
53366         gl_PREREQ_VASNPRINTF_ENOMEM.
53367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53374         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53375         * modules/snprintf-posix (Depends-on): Likewise.
53376         * modules/sprintf-posix (Depends-on): Likewise.
53377         * modules/vasnprintf-posix (Depends-on): Likewise.
53378         * modules/vasprintf-posix (Depends-on): Likewise.
53379         * modules/vfprintf-posix (Depends-on): Likewise.
53380         * modules/vsnprintf-posix (Depends-on): Likewise.
53381         * modules/vsprintf-posix (Depends-on): Likewise.
53382         * doc/functions/fprintf.texi: Update.
53383         * doc/functions/printf.texi: Update.
53384         * doc/functions/snprintf.texi: Update.
53385         * doc/functions/sprintf.texi: Update.
53386         * doc/functions/vfprintf.texi: Update.
53387         * doc/functions/vprintf.texi: Update.
53388         * doc/functions/vsnprintf.texi: Update.
53389         * doc/functions/vsprintf.texi: Update.
53390
53391 2007-11-03  Bruno Haible  <bruno@clisp.org>
53392
53393         * modules/frexp-nolibm-tests: New file.
53394
53395         * modules/frexp-nolibm: New file.
53396         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53397
53398 2007-11-03  Bruno Haible  <bruno@clisp.org>
53399
53400         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53401         value is C99 compliant.
53402         Needed for OSF/1 5.1.
53403
53404 2007-11-03  Bruno Haible  <bruno@clisp.org>
53405
53406         Fix out-of-memory handling of vasnprintf.
53407         * lib/printf-parse.c: Include <errno.h>.
53408         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53409         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53410         is already set.
53411
53412 2007-11-02  Eric Blake  <ebb9@byu.net>
53413
53414         Fix tests on cygwin.
53415         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53416
53417 2007-11-01  Bruno Haible  <bruno@clisp.org>
53418
53419         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53420         warning.
53421         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53422         needed for POSIX compatibility.
53423
53424 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53425
53426         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53427         for compatibility with GNU.
53428
53429 2007-11-01  Bruno Haible  <bruno@clisp.org>
53430
53431         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53432         (putenv): Renamed from rpl_putenv. Change argument type from
53433         'const char *' to 'char *'.
53434         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53435         of defining putenv in config.h, just set REPLACE_PUTENV.
53436         * modules/putenv (Depends-on): Add stdlib.
53437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53438         (Include): Use <stdlib.h>.
53439         * lib/stdlib.in.h (putenv): New declaration.
53440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53441         REPLACE_PUTENV.
53442         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53443         REPLACE_PUTENV.
53444         Needed for MacOS X 10.5.0.
53445         Reported by Peter O'Gorman <peter@pogma.com>.
53446
53447 2007-11-01  Jim Meyering  <meyering@redhat.com>
53448
53449         Treat an empty date string exactly like "0".
53450         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53451         if the remaining date string (to be parsed) is empty, use "0".
53452         Reported by Mischa Molhoek and discussed in this thread:
53453         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53454
53455 2007-10-31  Bruno Haible  <bruno@clisp.org>
53456
53457         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53458         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53459         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53460         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53461         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53462         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53463
53464 2007-10-31  Bruno Haible  <bruno@clisp.org>
53465
53466         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53467         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53468         (AC_TYPE_LONG_LONG_INT): Use it.
53469         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53470         it as well.
53471         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53472         to m4/longlong.m4.
53473         * modules/stdint (Files): Remove m4/ulonglong.m4.
53474         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53475         m4/ulonglong.m4.
53476         * modules/strtoumax (Files): Likewise.
53477
53478 2007-10-30  Bruno Haible  <bruno@clisp.org>
53479
53480         * modules/xvasprintf-posix: New file.
53481         Suggested by Eric Blake.
53482
53483 2007-10-30  Bruno Haible  <bruno@clisp.org>
53484
53485         * modules/xprintf-posix-tests: New file.
53486         * tests/test-xprintf-posix.sh: New file.
53487         * tests/test-xprintf-posix.c: New file.
53488         * tests/test-xfprintf-posix.c: New file.
53489
53490         * modules/xprintf-posix: New file.
53491
53492 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53493
53494         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53495         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53496         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53497
53498 2007-10-29  Bruno Haible  <bruno@clisp.org>
53499
53500         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53501         contain the special marker '_cv_'.
53502         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53503         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53504         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53505         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53506         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53507         Reported by Ralf Wildenhues.
53508
53509 2007-10-29  Bruno Haible  <bruno@clisp.org>
53510
53511         * gnulib-tool (func_import): When --lgpl is not specified, set
53512         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53513         GPLv3.
53514         Reported by Simon Josefsson.
53515
53516 2007-10-28  Bruno Haible  <bruno@clisp.org>
53517
53518         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53519         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53520         HAVE_DECL_ISFINITE.
53521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53522         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53523         HAVE_DECL_ISFINITE.
53524
53525 2007-10-28  Bruno Haible  <bruno@clisp.org>
53526
53527         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53528         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53529
53530 2007-10-28  Bruno Haible  <bruno@clisp.org>
53531
53532         Fix link errors with Sun C 5.0 on Solaris 10.
53533         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53534         function is declared but not present in the compiler's libm.
53535         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53536         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53537         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53538         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53539         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53540         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53541         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53543         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53544         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53545         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53546         HAVE_DECL_FLOORL.
53547
53548 2007-10-28  Bruno Haible  <bruno@clisp.org>
53549
53550         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53551         gl_FUNC_FLOORL. Cache the result.
53552         (gl_FUNC_FLOORL): Use it.
53553         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53554         gl_FUNC_CEILL. Cache the result.
53555         (gl_FUNC_CEILL): Use it.
53556
53557         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53558         gl_FUNC_FLOOR. Cache the result.
53559         (gl_FUNC_FLOOR): Use it.
53560         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53561         gl_FUNC_CEIL. Cache the result.
53562         (gl_FUNC_CEIL): Use it.
53563
53564         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53565         gl_FUNC_FLOORF. Cache the result.
53566         (gl_FUNC_FLOORF): Use it.
53567         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53568         gl_FUNC_CEILF. Cache the result.
53569         (gl_FUNC_CEILF): Use it.
53570
53571 2007-10-28  Bruno Haible  <bruno@clisp.org>
53572
53573         * gnulib-tool: Allow specifying the LGPL version number through
53574         --lgpl=2 or --lgpl=3.
53575         (func_usage): Document --lgpl with argument.
53576         Handle --lgpl=... arguments.
53577         (func_import): Recognize also gl_LGPL calls with an argument. When
53578         --lgpl=2 is used and the module's license is just LGPL, report an
53579         error. Set sed_transform_lib_file according to the lgpl variable. In
53580         the generated files, use --lgpl or gl_LGPL invocations with argument,
53581         if necessary.
53582         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53583         an LGPv2+ license.
53584         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53585         gl_LGPL macro.
53586
53587 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53588             Bruno Haible  <bruno@clisp.org>
53589
53590         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53591         (u16_uctomb_aux): Likewise.
53592         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53593         !HAVE_INLINE.
53594         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53595
53596 2007-10-28  Bruno Haible  <bruno@clisp.org>
53597
53598         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53599         Invoke AM_GETTEXT_OPTION if it exists.
53600         * modules/vasprintf: Likewise.
53601         * modules/verror: Likewise.
53602         * modules/xprintf: Likewise.
53603         * modules/xvasprintf: Likewise.
53604
53605 2007-10-27  Ben Pfaff  <blp@gnu.org>
53606
53607         * lib/math.in.h: Define isfinite macro and prototypes for
53608         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53609         implementations.
53610         * m4/math_h.m4: New substitutions for isfinite module.
53611         * lib/isfinite.c: New file.
53612         * m4/isfinite.m4: New file.
53613         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53614         * modules/isfinite: New file.
53615         * modules/isfinite-tests: New file.
53616         * tests/tests-isfinite.c: New file.
53617         * doc/functions/isfinite.texi: Mention isfinite module.
53618         * MODULES.html.sh: Mention new module.
53619
53620 2007-10-27  Ben Pfaff  <blp@gnu.org>
53621
53622         Ralf Wildenhues reported that Tru64 4.0D declares the round
53623         functions but does not have definitions.
53624         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53625         cannot be found in any library, set the output variable to
53626         "missing" instead of "".
53627         * m4/round.m4: Also use our substitute if we cannot find round in
53628         any library, even if it is declared.
53629         * m4/roundf.m4: Likewise for roundf.
53630         * m4/roundl.m4: Likewise for roundl.
53631         * lib/math.in.h: Undefine roundf, round, roundl before defining
53632         their replacements, to allow for hypothetical systems where these
53633         may be defined as macros but not available in libraries.
53634
53635 2007-10-27  Bruno Haible  <bruno@clisp.org>
53636
53637         * doc/gnulib.texi: Invoke @firstparagraphindent.
53638         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53639         changes in gnulib.
53640         (Source changes): New section.
53641
53642 2007-10-26  Bruno Haible  <bruno@clisp.org>
53643
53644         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53645         borrowed from autoconf.
53646
53647 2007-10-26  Bruno Haible  <bruno@clisp.org>
53648
53649         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53650         strerror returned the empty string. Needed on HP-UX 11.00.
53651
53652 2007-10-24  Micah Cowan  <micah@cowan.name>
53653
53654         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53655         * build-aux/bootstrap: Remove support for now-unnecessary option,
53656         --cvs-user, and envvars CVS_USER, CVS_RSH.
53657
53658 2007-10-24  Jim Meyering  <meyering@redhat.com>
53659
53660         Avoid diagnostics from sha1sum when there is no cached checksum.
53661         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53662         if the po.s1 file hasn't been created yet.
53663
53664         * build-aux/bootstrap: Sync from coreutils:
53665         2007-10-24  Jim Meyering  <meyering@redhat.com>
53666         Get gnulib from the git repository, not from an obsolete cvs one.
53667         * build-aux/bootstrap: Suggestion from Micah Cowan.
53668         2007-10-04  Jim Meyering  <jim@meyering.net>
53669         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53670         (update_po_files): Work also when there are no .po files in po/.
53671
53672 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * README: Append ".git" to git and cg examples.
53675         Problem reported by Benoit Sigoure.
53676
53677 2007-10-23  Micah Cowan  <micah@cowan.name>
53678
53679         * users.txt: Add wget.
53680
53681 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53682
53683         Fix linking of some unistdio tests on FreeBSD.
53684         * modules/unistdio/u16-vsnprintf-tests
53685         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53686         * modules/unistdio/u16-vsprintf-tests
53687         (test_u16_vsnprintf1_LDADD): Likewise.
53688         * modules/unistdio/u32-vsnprintf-tests
53689         (test_u32_vsnprintf1_LDADD): Likewise.
53690         * modules/unistdio/u32-vsprintf-tests
53691         (test_u32_vsprintf1_LDADD): Likewise.
53692         * modules/unistdio/u8-vsnprintf-tests
53693         (test_u8_vsnprintf1_LDADD): Likewise.
53694         * modules/unistdio/u8-vsprintf-tests
53695         (test_u8_vsprintf1_LDADD): Likewise.
53696         * modules/unistdio/ulc-vsnprintf-tests
53697         (test_ulc_vsnprintf1_LDADD): Likewise.
53698         * modules/unistdio/ulc-vsprintf-tests
53699         (test_ulc_vsprintf1_LDADD): Likewise.
53700
53701         Fix linking of some uniconv tests on FreeBSD.
53702         * modules/uniconv/u16-conv-from-enc-tests
53703         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53704         * modules/uniconv/u16-conv-to-enc-tests
53705         (test_u16_conv_to_enc_LDADD): Likewise.
53706         * modules/uniconv/u16-strconv-from-enc-tests
53707         (test_u16_strconv_from_enc_LDADD): Likewise.
53708         * modules/uniconv/u16-strconv-to-enc-tests
53709         (test_u16_strconv_to_enc_LDADD): Likewise.
53710         * modules/uniconv/u32-conv-from-enc-tests
53711         (test_u32_conv_from_enc_LDADD): Likewise.
53712         * modules/uniconv/u32-conv-to-enc-tests
53713         (test_u32_conv_to_enc_LDADD): Likewise.
53714         * modules/uniconv/u32-strconv-from-enc-tests
53715         (test_u32_strconv_from_enc_LDADD): Likewise.
53716         * modules/uniconv/u32-strconv-to-enc-tests
53717         (test_u32_strconv_to_enc_LDADD): Likewise.
53718         * modules/uniconv/u8-conv-from-enc-tests
53719         (test_u8_conv_from_enc_LDADD): Likewise.
53720         * modules/uniconv/u8-conv-to-enc-tests
53721         (test_u8_conv_to_enc_LDADD): Likewise.
53722         * modules/uniconv/u8-strconv-from-enc-tests
53723         (test_u8_strconv_from_enc_LDADD): Likewise.
53724         * modules/uniconv/u8-strconv-to-enc-tests
53725         (test_u8_strconv_to_enc_LDADD): Likewise.
53726
53727 2007-10-22  Bruno Haible  <bruno@clisp.org>
53728
53729         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53730         size.
53731
53732 2007-10-22  Eric Blake  <ebb9@byu.net>
53733
53734         Tweak x*printf documentation.
53735         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53736         variable name and comments.
53737         Suggested by Bruno Haible.
53738
53739 2007-10-22  Bruno Haible  <bruno@clisp.org>
53740
53741         * lib/acl.c (copy_acl): Fix file name in comment.
53742
53743 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53744
53745         Fix Tru64 problem with stdbool.h.
53746         * lib/stdbool.in.h (false, true):
53747         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53748         Don't declare as an enum in this situation; it runs afoul of Tru64.
53749         Problem reported by Steven M. Schweda in
53750         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53751
53752 2007-10-22  Eric Blake  <ebb9@byu.net>
53753
53754         Also wrap vf?printf.
53755         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53756         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53757         (xvprintf, xvfprintf): New functions.
53758
53759 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53760
53761         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53762         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53763
53764         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53765         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53766
53767 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53768
53769         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53770         by Bruno Haible.
53771
53772 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53773
53774         * lib/getloadavg.c
53775         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53776         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53777
53778         * tests/test-i-ring.c: Work for C89.
53779
53780 2007-10-22  Bruno Haible  <bruno@clisp.org>
53781
53782         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53783         -1u, in preprocessor expression, so that we don't test for the bug
53784         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53785         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53786
53787 2007-10-22  Eric Blake  <ebb9@byu.net>
53788
53789         * tests/test-yesno.sh: Silence stderr during test.
53790
53791 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53792
53793         * modules/crypto/gc-camellia: New file.
53794
53795         * m4/gc-camellia.m4: New file.
53796
53797         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53798
53799         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53800
53801 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53802
53803         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53804         --help to stdout.  Reported by sms@antinode.org (Steven
53805         M. Schweda).
53806
53807 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53808
53809         * users.txt: Fix link to libksba.
53810
53811 2007-10-21  Ben Pfaff  <blp@gnu.org>
53812
53813         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53814         round.c roundf implementation that depends on floorf and ceilf to
53815         be tested unconditionally.
53816
53817 2007-10-21  Ben Pfaff  <blp@gnu.org>
53818
53819         * m4/check-libm-func.m4: Removed.
53820         * m4/check-math-lib.m4: New file.
53821         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53822         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53823         definition and lack of AC_LIBOBJ([roundf]).
53824         * m4/roundl.m4: Ditto, and similarly for roundl.
53825         * modules/round: Reference new m4 file.
53826         * modules/roundf: Ditto.
53827         * modules/roundl: Ditto.
53828         * tests/test-round2.c (main): Use ROUND instead of round.
53829         Bug report from Bruno Haible.
53830
53831 2007-10-21  Bruno Haible  <bruno@clisp.org>
53832
53833         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53834         context.
53835
53836 2007-10-21  Bruno Haible  <bruno@clisp.org>
53837
53838         * tests/test-wcwidth.c (main): Allow negative result for some control
53839         characters.
53840
53841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53842         Needed on OSF/1 5.1.
53843
53844 2007-10-21  Bruno Haible  <bruno@clisp.org>
53845
53846         * tests/test-floorf1.c: Include isnanf.h.
53847         (main): Use isnanf() instead of isnan().
53848         * tests/test-ceilf1.c: Include isnanf.h.
53849         (main): Use isnanf() instead of isnan().
53850         * tests/test-truncf1.c: Include isnanf.h.
53851         (main): Use isnanf() instead of isnan().
53852         * tests/test-roundf1.c: Include isnanf.h.
53853         (main): Use isnanf() instead of isnan().
53854
53855 2007-10-21  Eric Blake  <ebb9@byu.net>
53856
53857         * users.txt: Update URL for m4.
53858
53859 2007-10-21  Bruno Haible  <bruno@clisp.org>
53860
53861         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53862
53863 2007-10-21  Bruno Haible  <bruno@clisp.org>
53864
53865         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53866         Git's management files if the CVS files are not present.
53867
53868 2007-10-20  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53871         gcc-3.4.x.
53872
53873 2007-10-20  Ben Pfaff  <blp@gnu.org>
53874
53875         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53876         implementations.
53877         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53878         * lib/round.c: New file.
53879         * lib/roundf.c: New file.
53880         * lib/roundl.c: New file.
53881         * m4/round.m4: New file.
53882         * m4/roundf.m4: New file.
53883         * m4/roundl.m4: New file.
53884         * m4/check-libm-func-m4: New file.
53885         * modules/math: Replace round, roundf, roundl related @VARS@ in
53886         math.in.h.
53887         * modules/round: New file.
53888         * modules/round-tests: New file.
53889         * modules/roundf: New file.
53890         * modules/roundf-tests: New file.
53891         * modules/roundl: New file.
53892         * modules/roundl-tests: New file.
53893         * tests/test-round1.c: New file.
53894         * tests/test-round2.c: New file.
53895         * tests/test-roundf1.c: New file.
53896         * tests/test-roundf2.c: New file.
53897         * tests/test-roundl.c: New file.
53898         * doc/functions/round.texi: Mention round module.
53899         * doc/functions/roundf.texi: Mention roundf module.
53900         * doc/functions/roundl.texi: Mention roundl module.
53901         * MODULES.html.sh: Mention new modules.
53902         Thanks to Bruno Haible for suggestions.
53903
53904 2007-10-20  Jim Meyering  <meyering@redhat.com>
53905
53906         * lib/xprintf.c: Include <config.h> unconditionally.
53907
53908         Change xprintf's license to GPL.
53909         * modules/xprintf (License): s/LGPL/GPL/, since this module
53910         depends on modules (exit and exitfail) which are GPL.
53911         Suggestion from Bruno Haible.
53912
53913         xprintf fixes.
53914         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53915         Use a clearer diagnostic.
53916         Patch from Bruno Haible.
53917
53918 2007-10-20  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53921         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53923
53924 2007-10-20  Bruno Haible  <bruno@clisp.org>
53925
53926         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53927         precision in the comparison result > x - 1 or similar.
53928         * tests/test-ceilf2.c (correct_result_p): Likewise.
53929         * tests/test-truncf2.c (correct_result_p): Likewise.
53930         * tests/test-trunc2.c (correct_result_p): Likewise.
53931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53932
53933 2007-10-20  Bruno Haible  <bruno@clisp.org>
53934
53935         * modules/ceil: New file.
53936         * m4/ceil.m4: New file.
53937         * doc/functions/ceil.texi: Mention the 'ceil' module.
53938
53939 2007-10-20  Bruno Haible  <bruno@clisp.org>
53940
53941         * modules/floor: New file.
53942         * m4/floor.m4: New file.
53943         * doc/functions/floor.texi: Mention the 'floor' module.
53944
53945 2007-10-20  Bruno Haible  <bruno@clisp.org>
53946
53947         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53948         of %a.
53949         * modules/floorf-tests (Depends-on): Likewise.
53950         * modules/truncf-tests (Depends-on): Likewise.
53951         * modules/trunc-tests (Depends-on): Likewise.
53952         Reported by Ben Pfaff.
53953
53954 2007-10-19  Jim Meyering  <meyering@redhat.com>
53955
53956         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53957         Don't bother testing specific errno values.  Just test ferror.
53958
53959         New module: xprintf
53960         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53961
53962 2007-10-19  Bruno Haible  <bruno@clisp.org>
53963
53964         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53965         syntax.
53966         * modules/javaexec (Makefile.am): Likewise.
53967         * modules/relocatable-prog (Makefile.am): Likewise.
53968         Suggested by Jim Meyering.
53969
53970 2007-10-18  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53973         Reported by Jim Meyering.
53974
53975 2007-10-18  Eric Blake  <ebb9@byu.net>
53976
53977         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53978
53979 2007-10-18  Bruno Haible  <bruno@clisp.org>
53980
53981         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53982         the format string into writable memory. Needed in Fortify conditions.
53983
53984 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53985             Bruno Haible  <bruno@clisp.org>
53986
53987         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53988         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53989         * modules/trim (Depends-on): Add mbchar.
53990         (configure.ac): Add gl_FUNC_MBRTOWC.
53991         (Makefile.am): Augment lib_SOURCES.
53992
53993 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53994
53995         Modify glob.c to use fstatat and dirfd, to simplify it.
53996         Suggested by Eric Blake.
53997         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53998         Don't include <stdbool.h>; not used.
53999         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54000         (link_exists_p): Simplify implementation, since we can now assume
54001         dirfd and fstatat.
54002         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54003
54004 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54005
54006         * gnulib-tool (func_get_dependencies): Fix sed script to
54007         match only tests.
54008
54009 2007-10-17  Bruno Haible  <bruno@clisp.org>
54010
54011         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54012         allow locale names without encoding suffix.
54013         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54015
54016 2007-10-16  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54019         * lib/getgroups.c (getgroups): Likewise.
54020         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54021
54022 2007-10-16  Bruno Haible  <bruno@clisp.org>
54023
54024         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54025         * modules/malloc-posix (License): Likewise.
54026         * modules/realloc-posix (License): Likewise.
54027         * modules/calloc-posix (License): Likewise.
54028         * modules/intprops (License): Change from GPL to LGPL, with
54029         Paul Eggert's approval.
54030
54031 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54032
54033         Merge glibc changes into lib/glob.c.
54034
54035         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54036         2007-10-15 04:59:03 UTC.  Here are the changes:
54037
54038         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54039
54040         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54041
54042         * lib/glob.c: Add some branch prediction throughout.
54043
54044         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54045
54046         [BZ #5103]
54047         * lib/glob.c (glob): Recognize patterns starting \/.
54048
54049         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54050
54051         [BZ #3996]
54052         * lib/glob.c (attribute_hidden): Define if not defined.
54053         (glob): Unescape dirname, filename or username when needed and not
54054         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54055         is NULL.  Handle unescaped [ in pattern without closing ].
54056         Don't pass GLOB_CHECK down to recursive glob for directories.
54057         (__glob_pattern_type): New function.
54058         (__glob_pattern_p): Implement using __glob_pattern_type.
54059         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54060         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54061         Remove unreachable code.
54062
54063         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54064
54065         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54066         explain why there are no leaks.
54067
54068         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54069
54070         [BZ #3253]
54071         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54072         time, rather allocate increasingly bigger arrays of pointers, if
54073         possible with alloca, if too large with malloc.
54074
54075 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54078         Problem reported by H.Merijn Brand in
54079         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54081         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54082
54083 2007-10-15  Bruno Haible  <bruno@clisp.org>
54084
54085         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54086         with explicit rpl_ prefix.
54087         * lib/fopen.c (fopen): Likewise.
54088         * lib/freopen.c (freopen): Likewise.
54089         * lib/iconv.c (iconv): Likewise.
54090         * lib/iconv_close.c (iconv_close): Likewise.
54091
54092 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54093
54094         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54095
54096 2007-10-15  Bruno Haible  <bruno@clisp.org>
54097
54098         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54099         <stddef.h> instead of <stdlib.h> since we only need NULL.
54100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54101
54102 2007-10-15  Bruno Haible  <bruno@clisp.org>
54103
54104         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54105         Replace paragraph talking about LIBOBJS.
54106         Reported by Colin Watson <cjwatson@debian.org>.
54107
54108 2007-10-15  Bruno Haible  <bruno@clisp.org>
54109
54110         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54111         <stdlib.h> before using NULL.
54112
54113 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54114
54115         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54116         Reported by Albert Chin <china@thewrittenword.com>.
54117
54118 2007-10-14  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/iconv_open-utf-tests: New file.
54121         * tests/test-iconv-utf.c: New file.
54122
54123         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54124         * modules/iconv_open-utf: New file.
54125         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54126         (iconv, iconv_close): New declarations.
54127         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54128         be defined.
54129         (iconv_open): Add special handling of conversion between UTF-8 and
54130         UTF-{16,32}{BE,LE}.
54131         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54132         * lib/iconv_close.c: New file.
54133         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54134         gl_FUNC_ICONV_OPEN.
54135         (gl_FUNC_ICONV_OPEN): Use it.
54136         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54137         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54138         and REPLACE_ICONV_UTF.
54139         * modules/iconv_open (Depends-on): Add c-strcase.
54140         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54141         ICONV_CONST.
54142         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54143
54144 2007-10-13  Albert Chin  <china@thewrittenword.com>
54145             Bruno Haible  <bruno@clisp.org>
54146
54147         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54148         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54149
54150 2007-10-13  Bruno Haible  <bruno@clisp.org>
54151
54152         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54153         defined, use the ISO C99 inline semantics.
54154         * lib/argp.h (ARGP_EI): Likewise.
54155
54156 2007-10-13  Bruno Haible  <bruno@clisp.org>
54157
54158         Handle 'inline' change in gcc 4.3.0.
54159         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54160         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54161         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54162         argp_fmtstream_point): Disable 'extern' declaration if the function
54163         definition is going to be provided inline.
54164         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54165         semantics, not the ISO C99 inline semantics.
54166         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54167         'extern' declaration if the function definition is going to be provided
54168         inline.
54169         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54170         the GNU C inline semantics, not the ISO C99 inline semantics. With
54171         GCC 4.2, avoid a warning.
54172
54173 2007-10-13  Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/freading.h (freading): Enable the use of __freading for
54176         glibc >= 2.7.
54177         * lib/freading.c (freading): Likewise.
54178
54179 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54180
54181         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54182         "warning: C99 inline functions are not supported; using GNU89".
54183
54184 2007-10-12  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54187         of 2.
54188         * tests/test-ceilf2.c: New file.
54189         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54190
54191         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54192         * modules/ceilf-tests: Update.
54193
54194 2007-10-12  Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54197         of 2.
54198         * tests/test-floorf2.c: New file.
54199         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54200
54201         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54202         * modules/floorf-tests: Update.
54203
54204 2007-10-12  Bruno Haible  <bruno@clisp.org>
54205
54206         * tests/test-trunc2.c: New file.
54207         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54208
54209         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54210         * modules/trunc-tests: Update.
54211
54212 2007-10-12  Bruno Haible  <bruno@clisp.org>
54213
54214         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54215         of 2.
54216         * tests/test-truncf2.c: New file.
54217         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54218
54219         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54220         * modules/truncf-tests: Update.
54221
54222 2007-10-11  Eric Blake  <ebb9@byu.net>
54223
54224         Don't claim strerror is broken on Interix.
54225         * doc/functions/strerror.texi (strerror): Known broken systems are
54226         now Solaris 8, and not Interix.
54227         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54228         Interix on cross-compile.
54229         Reported by Martin Koeppe in
54230         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54231
54232 2007-10-11  Bruno Haible  <bruno@clisp.org>
54233
54234         * modules/i-ring-tests: New file.
54235         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54236         instead of assert.
54237
54238 2007-10-11  Bruno Haible  <bruno@clisp.org>
54239
54240         * modules/filenamecat-tests: New file.
54241         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54242         * lib/filenamecat.c: Remove test code.
54243
54244 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54245
54246         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54247
54248         * lib/strerror.c: Include <string.h> always, to test interface,
54249         and to remove the need for the dummy.
54250         Include intprops.h to compute width instead of doing it ourselves
54251         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54252         (strerror): Define it to return NULL if there's no system strerror.
54253         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54254         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54255         ancient pre-strerror Unix systems well any more.  Saying "unknown
54256         system error" is enough.
54257         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54258         simpler strerror.c implementation.
54259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54260         Simplify the tests to reflect the simpler strerror implementation.
54261         * modules/strerror (Depends-on): Add intprops.
54262
54263 2007-10-09  Eric Blake  <ebb9@byu.net>
54264
54265         Silence test-fpending.
54266         * modules/fpending-tests (Files): Add wrapper script.
54267         * tests/test-fpending.sh: New file.
54268
54269 2007-10-09  Bruno Haible  <bruno@clisp.org>
54270
54271         * MODULES.html.sh (func_module): Don't create a hyperlink for
54272         function names like 'printf_frexp'.
54273         (Misc): Add crc, memxor.
54274         (Characteristics of floating types): New section.
54275         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54276         isnanf-nolibm, signbit, trunc, truncf, truncl.
54277         (Enhancements for ISO C 99 functions): New subsection Input/output.
54278         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54279         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54280         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54281         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54282         (Enhancements for POSIX:2001 functions): Add chdir-long.
54283         (File system functions): Add areadlink, chdir-safer, read-file.
54284         Remove cycle-check.
54285         (File system as inode set): New section.
54286         (Date and time): Add gethrxtime.
54287         (Multithreading): Add openmp.
54288         (Internationalization functions): Add localename.
54289         (Unicode string functions): Add unistr/u*-mbsnlen.
54290         (Support for maintaining and releasing projects): Add git-version-gen.
54291         (Lone files): Remove directories.
54292
54293 2007-10-08  Ben Pfaff  <blp@gnu.org>
54294
54295         * lib/xmalloca.h: Fix typo in comment.
54296
54297 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54298
54299         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54300         when avoiding problems with integer overflow.  Use a portable test
54301         instead.
54302
54303 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54304
54305         * modules/dummy (License): Change to LGPLv2+.
54306         * modules/float (License): Likewise
54307         * modules/realloc (License): Likewise
54308         * modules/stdlib (License): Likewise
54309
54310 2007-10-07  Bruno Haible  <bruno@clisp.org>
54311
54312         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54313         * floor.c (TWO_MANT_DIG): Likewise.
54314         * ceil.c (TWO_MANT_DIG): Likewise.
54315         Reported by Ben Pfaff.
54316
54317 2007-10-07  Bruno Haible  <bruno@clisp.org>
54318
54319         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54320         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54321         * lib/frexp.c (FUNC): Likewise.
54322         * lib/printf-frexp.h (printf_frexp): Likewise.
54323         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54324         * lib/printf-frexp.c (FUNC): Likewise.
54325         Suggested by Jim Meyering.
54326
54327 2007-10-07  Jim Meyering  <meyering@redhat.com>
54328
54329         Make xnanosleep's integer overflow test more robust.
54330         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54331         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54332
54333 2007-10-07  Bruno Haible  <bruno@clisp.org>
54334
54335         * NEWS: Mention the license change.
54336
54337         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54338         abbreviations in the modules files.
54339
54340         Change copyright notice from GPLv2+ to GPLv3+.
54341         * README: Change copyright notice.
54342         * MODULES.html.sh: Likewise.
54343         * build-aux/bootstrap.conf: Likewise.
54344         * build-aux/config.libpath: Likewise.
54345         * build-aux/csharpcomp.sh.in: Likewise.
54346         * build-aux/csharpexec.sh.in: Likewise.
54347         * build-aux/install-reloc: Likewise.
54348         * build-aux/javacomp.sh.in: Likewise.
54349         * build-aux/javaexec.sh.in: Likewise.
54350         * build-aux/ldd.sh.in: Likewise.
54351         * build-aux/reloc-ldflags: Likewise.
54352         * build-aux/relocatable.sh.in: Likewise.
54353         * build-aux/x-to-1.in: Likewise.
54354         * check-module: Likewise.
54355         * config/srclistvars.sh: Likewise.
54356         * gnulib-tool: Likewise.
54357         * lib/acl-internal.h: Likewise.
54358         * lib/acl.c: Likewise.
54359         * lib/acl.h: Likewise.
54360         * lib/acl_entries.c: Likewise.
54361         * lib/areadlink-with-size.c: Likewise.
54362         * lib/areadlink.c: Likewise.
54363         * lib/areadlink.h: Likewise.
54364         * lib/argmatch.c: Likewise.
54365         * lib/argmatch.h: Likewise.
54366         * lib/argp-ba.c: Likewise.
54367         * lib/argp-eexst.c: Likewise.
54368         * lib/argp-fmtstream.c: Likewise.
54369         * lib/argp-fmtstream.h: Likewise.
54370         * lib/argp-fs-xinl.c: Likewise.
54371         * lib/argp-help.c: Likewise.
54372         * lib/argp-namefrob.h: Likewise.
54373         * lib/argp-parse.c: Likewise.
54374         * lib/argp-pin.c: Likewise.
54375         * lib/argp-pv.c: Likewise.
54376         * lib/argp-pvh.c: Likewise.
54377         * lib/argp-xinl.c: Likewise.
54378         * lib/argp.h: Likewise.
54379         * lib/at-func.c: Likewise.
54380         * lib/atanl.c: Likewise.
54381         * lib/backupfile.c: Likewise.
54382         * lib/backupfile.h: Likewise.
54383         * lib/basename.c: Likewise.
54384         * lib/binary-io.h: Likewise.
54385         * lib/byteswap.in.h: Likewise.
54386         * lib/c-stack.c: Likewise.
54387         * lib/c-stack.h: Likewise.
54388         * lib/c-strcasestr.c: Likewise.
54389         * lib/c-strcasestr.h: Likewise.
54390         * lib/c-strstr.c: Likewise.
54391         * lib/c-strstr.h: Likewise.
54392         * lib/c-strtod.c: Likewise.
54393         * lib/calloc.c: Likewise.
54394         * lib/canon-host.c: Likewise.
54395         * lib/canon-host.h: Likewise.
54396         * lib/canonicalize-lgpl.c: Likewise.
54397         * lib/canonicalize.c: Likewise.
54398         * lib/canonicalize.h: Likewise.
54399         * lib/ceil.c: Likewise.
54400         * lib/ceilf.c: Likewise.
54401         * lib/ceill.c: Likewise.
54402         * lib/chdir-long.c: Likewise.
54403         * lib/chdir-long.h: Likewise.
54404         * lib/chdir-safer.c: Likewise.
54405         * lib/chdir-safer.h: Likewise.
54406         * lib/chown.c: Likewise.
54407         * lib/classpath.c: Likewise.
54408         * lib/classpath.h: Likewise.
54409         * lib/clean-temp.c: Likewise.
54410         * lib/clean-temp.h: Likewise.
54411         * lib/cloexec.c: Likewise.
54412         * lib/close-stream.c: Likewise.
54413         * lib/closein.c: Likewise.
54414         * lib/closein.h: Likewise.
54415         * lib/closeout.c: Likewise.
54416         * lib/closeout.h: Likewise.
54417         * lib/concat-filename.c: Likewise.
54418         * lib/copy-file.c: Likewise.
54419         * lib/copy-file.h: Likewise.
54420         * lib/count-one-bits.h: Likewise.
54421         * lib/crc.c: Likewise.
54422         * lib/crc.h: Likewise.
54423         * lib/creat-safer.c: Likewise.
54424         * lib/csharpcomp.c: Likewise.
54425         * lib/csharpcomp.h: Likewise.
54426         * lib/csharpexec.c: Likewise.
54427         * lib/csharpexec.h: Likewise.
54428         * lib/cycle-check.c: Likewise.
54429         * lib/cycle-check.h: Likewise.
54430         * lib/diacrit.c: Likewise.
54431         * lib/diacrit.h: Likewise.
54432         * lib/diffseq.h: Likewise.
54433         * lib/dirchownmod.c: Likewise.
54434         * lib/dirent.in.h: Likewise.
54435         * lib/dirfd.c: Likewise.
54436         * lib/dirfd.h: Likewise.
54437         * lib/dirname.c: Likewise.
54438         * lib/dirname.h: Likewise.
54439         * lib/dummy.c: Likewise.
54440         * lib/dup-safer.c: Likewise.
54441         * lib/dup2.c: Likewise.
54442         * lib/eealloc.h: Likewise.
54443         * lib/error.c: Likewise.
54444         * lib/error.h: Likewise.
54445         * lib/euidaccess.c: Likewise.
54446         * lib/exclude.c: Likewise.
54447         * lib/exclude.h: Likewise.
54448         * lib/execute.c: Likewise.
54449         * lib/execute.h: Likewise.
54450         * lib/exitfail.c: Likewise.
54451         * lib/exitfail.h: Likewise.
54452         * lib/expl.c: Likewise.
54453         * lib/fatal-signal.c: Likewise.
54454         * lib/fatal-signal.h: Likewise.
54455         * lib/fbufmode.c: Likewise.
54456         * lib/fbufmode.h: Likewise.
54457         * lib/fchdir.c: Likewise.
54458         * lib/fchmodat.c: Likewise.
54459         * lib/fchownat.c: Likewise.
54460         * lib/fcntl--.h: Likewise.
54461         * lib/fcntl-safer.h: Likewise.
54462         * lib/fcntl.in.h: Likewise.
54463         * lib/fd-safer.c: Likewise.
54464         * lib/fflush.c: Likewise.
54465         * lib/file-has-acl.c: Likewise.
54466         * lib/file-set.c: Likewise.
54467         * lib/file-type.c: Likewise.
54468         * lib/file-type.h: Likewise.
54469         * lib/fileblocks.c: Likewise.
54470         * lib/filemode.c: Likewise.
54471         * lib/filemode.h: Likewise.
54472         * lib/filename.h: Likewise.
54473         * lib/filenamecat.c: Likewise.
54474         * lib/filenamecat.h: Likewise.
54475         * lib/findprog.c: Likewise.
54476         * lib/findprog.h: Likewise.
54477         * lib/float.in.h: Likewise.
54478         * lib/floor.c: Likewise.
54479         * lib/floorf.c: Likewise.
54480         * lib/floorl.c: Likewise.
54481         * lib/fopen-safer.c: Likewise.
54482         * lib/fopen.c: Likewise.
54483         * lib/fpending.c: Likewise.
54484         * lib/fpending.h: Likewise.
54485         * lib/fprintf.c: Likewise.
54486         * lib/fprintftime.h: Likewise.
54487         * lib/fpucw.h: Likewise.
54488         * lib/fpurge.c: Likewise.
54489         * lib/fpurge.h: Likewise.
54490         * lib/freadable.c: Likewise.
54491         * lib/freadable.h: Likewise.
54492         * lib/freadahead.c: Likewise.
54493         * lib/freadahead.h: Likewise.
54494         * lib/freading.c: Likewise.
54495         * lib/freading.h: Likewise.
54496         * lib/free.c: Likewise.
54497         * lib/freopen.c: Likewise.
54498         * lib/frexp.c: Likewise.
54499         * lib/frexpl.c: Likewise.
54500         * lib/fseek.c: Likewise.
54501         * lib/fseterr.c: Likewise.
54502         * lib/fseterr.h: Likewise.
54503         * lib/fstatat.c: Likewise.
54504         * lib/fstrcmp.c: Likewise.
54505         * lib/fstrcmp.h: Likewise.
54506         * lib/fsusage.c: Likewise.
54507         * lib/fsusage.h: Likewise.
54508         * lib/ftell.c: Likewise.
54509         * lib/ftello.c: Likewise.
54510         * lib/fts-cycle.c: Likewise.
54511         * lib/fts.c: Likewise.
54512         * lib/fts_.h: Likewise.
54513         * lib/full-read.c: Likewise.
54514         * lib/full-read.h: Likewise.
54515         * lib/full-write.c: Likewise.
54516         * lib/full-write.h: Likewise.
54517         * lib/fwritable.c: Likewise.
54518         * lib/fwritable.h: Likewise.
54519         * lib/fwriteerror.c: Likewise.
54520         * lib/fwriteerror.h: Likewise.
54521         * lib/fwriting.c: Likewise.
54522         * lib/fwriting.h: Likewise.
54523         * lib/gcd.c: Likewise.
54524         * lib/gcd.h: Likewise.
54525         * lib/getcwd.c: Likewise.
54526         * lib/getdate.h: Likewise.
54527         * lib/getdate.y: Likewise.
54528         * lib/getdomainname.c: Likewise.
54529         * lib/getdomainname.h: Likewise.
54530         * lib/getgroups.c: Likewise.
54531         * lib/gethostname.c: Likewise.
54532         * lib/gethrxtime.c: Likewise.
54533         * lib/gethrxtime.h: Likewise.
54534         * lib/getloadavg.c: Likewise.
54535         * lib/getndelim2.c: Likewise.
54536         * lib/getndelim2.h: Likewise.
54537         * lib/getnline.c: Likewise.
54538         * lib/getnline.h: Likewise.
54539         * lib/getopt.c: Likewise.
54540         * lib/getopt.in.h: Likewise.
54541         * lib/getopt1.c: Likewise.
54542         * lib/getopt_int.h: Likewise.
54543         * lib/getpagesize.h: Likewise.
54544         * lib/getsubopt.c: Likewise.
54545         * lib/gettime.c: Likewise.
54546         * lib/getugroups.c: Likewise.
54547         * lib/getugroups.h: Likewise.
54548         * lib/getusershell.c: Likewise.
54549         * lib/gl_anyavltree_list1.h: Likewise.
54550         * lib/gl_anyavltree_list2.h: Likewise.
54551         * lib/gl_anyhash_list1.h: Likewise.
54552         * lib/gl_anyhash_list2.h: Likewise.
54553         * lib/gl_anylinked_list1.h: Likewise.
54554         * lib/gl_anylinked_list2.h: Likewise.
54555         * lib/gl_anyrbtree_list1.h: Likewise.
54556         * lib/gl_anyrbtree_list2.h: Likewise.
54557         * lib/gl_anytree_list1.h: Likewise.
54558         * lib/gl_anytree_list2.h: Likewise.
54559         * lib/gl_anytree_oset.h: Likewise.
54560         * lib/gl_anytreehash_list1.h: Likewise.
54561         * lib/gl_anytreehash_list2.h: Likewise.
54562         * lib/gl_array_list.c: Likewise.
54563         * lib/gl_array_list.h: Likewise.
54564         * lib/gl_array_oset.c: Likewise.
54565         * lib/gl_array_oset.h: Likewise.
54566         * lib/gl_avltree_list.c: Likewise.
54567         * lib/gl_avltree_list.h: Likewise.
54568         * lib/gl_avltree_oset.c: Likewise.
54569         * lib/gl_avltree_oset.h: Likewise.
54570         * lib/gl_avltreehash_list.c: Likewise.
54571         * lib/gl_avltreehash_list.h: Likewise.
54572         * lib/gl_carray_list.c: Likewise.
54573         * lib/gl_carray_list.h: Likewise.
54574         * lib/gl_linked_list.c: Likewise.
54575         * lib/gl_linked_list.h: Likewise.
54576         * lib/gl_linkedhash_list.c: Likewise.
54577         * lib/gl_linkedhash_list.h: Likewise.
54578         * lib/gl_list.c: Likewise.
54579         * lib/gl_list.h: Likewise.
54580         * lib/gl_oset.c: Likewise.
54581         * lib/gl_oset.h: Likewise.
54582         * lib/gl_rbtree_list.c: Likewise.
54583         * lib/gl_rbtree_list.h: Likewise.
54584         * lib/gl_rbtree_oset.c: Likewise.
54585         * lib/gl_rbtree_oset.h: Likewise.
54586         * lib/gl_rbtreehash_list.c: Likewise.
54587         * lib/gl_rbtreehash_list.h: Likewise.
54588         * lib/gl_sublist.c: Likewise.
54589         * lib/gl_sublist.h: Likewise.
54590         * lib/group-member.c: Likewise.
54591         * lib/group-member.h: Likewise.
54592         * lib/hard-locale.c: Likewise.
54593         * lib/hard-locale.h: Likewise.
54594         * lib/hash-pjw.c: Likewise.
54595         * lib/hash-pjw.h: Likewise.
54596         * lib/hash-triple.c: Likewise.
54597         * lib/hash.c: Likewise.
54598         * lib/hash.h: Likewise.
54599         * lib/human.c: Likewise.
54600         * lib/human.h: Likewise.
54601         * lib/i-ring.c: Likewise.
54602         * lib/i-ring.h: Likewise.
54603         * lib/idcache.c: Likewise.
54604         * lib/imaxabs.c: Likewise.
54605         * lib/imaxdiv.c: Likewise.
54606         * lib/inet_pton.c: Likewise.
54607         * lib/inet_pton.h: Likewise.
54608         * lib/intprops.h: Likewise.
54609         * lib/inttostr.c: Likewise.
54610         * lib/inttostr.h: Likewise.
54611         * lib/inttypes.in.h: Likewise.
54612         * lib/isapipe.c: Likewise.
54613         * lib/isdir.c: Likewise.
54614         * lib/isnan.c: Likewise.
54615         * lib/isnan.h: Likewise.
54616         * lib/isnanf.c: Likewise.
54617         * lib/isnanf.h: Likewise.
54618         * lib/isnanl-nolibm.h: Likewise.
54619         * lib/isnanl.c: Likewise.
54620         * lib/isnanl.h: Likewise.
54621         * lib/javacomp.c: Likewise.
54622         * lib/javacomp.h: Likewise.
54623         * lib/javaexec.c: Likewise.
54624         * lib/javaexec.h: Likewise.
54625         * lib/javaversion.c: Likewise.
54626         * lib/javaversion.h: Likewise.
54627         * lib/javaversion.java: Likewise.
54628         * lib/lbrkprop.h: Likewise.
54629         * lib/lchmod.h: Likewise.
54630         * lib/lchown.c: Likewise.
54631         * lib/ldexpl.c: Likewise.
54632         * lib/linebreak.c: Likewise.
54633         * lib/linebreak.h: Likewise.
54634         * lib/linebuffer.c: Likewise.
54635         * lib/linebuffer.h: Likewise.
54636         * lib/locale.in.h: Likewise.
54637         * lib/logl.c: Likewise.
54638         * lib/long-options.c: Likewise.
54639         * lib/long-options.h: Likewise.
54640         * lib/lstat.c: Likewise.
54641         * lib/lstat.h: Likewise.
54642         * lib/math.in.h: Likewise.
54643         * lib/mbchar.c: Likewise.
54644         * lib/mbchar.h: Likewise.
54645         * lib/mbfile.h: Likewise.
54646         * lib/mbiter.h: Likewise.
54647         * lib/mbscasecmp.c: Likewise.
54648         * lib/mbscasestr.c: Likewise.
54649         * lib/mbschr.c: Likewise.
54650         * lib/mbscspn.c: Likewise.
54651         * lib/mbslen.c: Likewise.
54652         * lib/mbsncasecmp.c: Likewise.
54653         * lib/mbsnlen.c: Likewise.
54654         * lib/mbspbrk.c: Likewise.
54655         * lib/mbspcasecmp.c: Likewise.
54656         * lib/mbsrchr.c: Likewise.
54657         * lib/mbssep.c: Likewise.
54658         * lib/mbsspn.c: Likewise.
54659         * lib/mbsstr.c: Likewise.
54660         * lib/mbstok_r.c: Likewise.
54661         * lib/mbswidth.c: Likewise.
54662         * lib/mbswidth.h: Likewise.
54663         * lib/mbuiter.h: Likewise.
54664         * lib/memcasecmp.c: Likewise.
54665         * lib/memcasecmp.h: Likewise.
54666         * lib/memchr.c: Likewise.
54667         * lib/memcmp.c: Likewise.
54668         * lib/memcoll.c: Likewise.
54669         * lib/memcoll.h: Likewise.
54670         * lib/memcpy.c: Likewise.
54671         * lib/memrchr.c: Likewise.
54672         * lib/mkancesdirs.c: Likewise.
54673         * lib/mkdir-p.c: Likewise.
54674         * lib/mkdir-p.h: Likewise.
54675         * lib/mkdir.c: Likewise.
54676         * lib/mkdirat.c: Likewise.
54677         * lib/mkdtemp.c: Likewise.
54678         * lib/mkstemp-safer.c: Likewise.
54679         * lib/mkstemp.c: Likewise.
54680         * lib/modechange.c: Likewise.
54681         * lib/modechange.h: Likewise.
54682         * lib/mountlist.c: Likewise.
54683         * lib/mountlist.h: Likewise.
54684         * lib/mpsort.c: Likewise.
54685         * lib/nanosleep.c: Likewise.
54686         * lib/obstack.c: Likewise.
54687         * lib/obstack.h: Likewise.
54688         * lib/open-safer.c: Likewise.
54689         * lib/open.c: Likewise.
54690         * lib/openat-die.c: Likewise.
54691         * lib/openat-priv.h: Likewise.
54692         * lib/openat-proc.c: Likewise.
54693         * lib/openat.c: Likewise.
54694         * lib/openat.h: Likewise.
54695         * lib/pagealign_alloc.c: Likewise.
54696         * lib/pagealign_alloc.h: Likewise.
54697         * lib/physmem.c: Likewise.
54698         * lib/physmem.h: Likewise.
54699         * lib/pipe-safer.c: Likewise.
54700         * lib/pipe.c: Likewise.
54701         * lib/pipe.h: Likewise.
54702         * lib/posixtm.c: Likewise.
54703         * lib/posixtm.h: Likewise.
54704         * lib/posixver.c: Likewise.
54705         * lib/printf-frexp.c: Likewise.
54706         * lib/printf-frexp.h: Likewise.
54707         * lib/printf-frexpl.c: Likewise.
54708         * lib/printf-frexpl.h: Likewise.
54709         * lib/printf.c: Likewise.
54710         * lib/progname.c: Likewise.
54711         * lib/progname.h: Likewise.
54712         * lib/progreloc.c: Likewise.
54713         * lib/putenv.c: Likewise.
54714         * lib/quote.c: Likewise.
54715         * lib/quote.h: Likewise.
54716         * lib/quotearg.c: Likewise.
54717         * lib/quotearg.h: Likewise.
54718         * lib/raise.c: Likewise.
54719         * lib/readline.c: Likewise.
54720         * lib/readline.h: Likewise.
54721         * lib/readlink.c: Likewise.
54722         * lib/readtokens.c: Likewise.
54723         * lib/readtokens.h: Likewise.
54724         * lib/readtokens0.c: Likewise.
54725         * lib/readtokens0.h: Likewise.
54726         * lib/readutmp.c: Likewise.
54727         * lib/readutmp.h: Likewise.
54728         * lib/realloc.c: Likewise.
54729         * lib/relocwrapper.c: Likewise.
54730         * lib/rename-dest-slash.c: Likewise.
54731         * lib/rename.c: Likewise.
54732         * lib/rmdir.c: Likewise.
54733         * lib/rpmatch.c: Likewise.
54734         * lib/safe-read.c: Likewise.
54735         * lib/safe-read.h: Likewise.
54736         * lib/safe-write.c: Likewise.
54737         * lib/safe-write.h: Likewise.
54738         * lib/same-inode.h: Likewise.
54739         * lib/same.c: Likewise.
54740         * lib/same.h: Likewise.
54741         * lib/save-cwd.c: Likewise.
54742         * lib/save-cwd.h: Likewise.
54743         * lib/savedir.c: Likewise.
54744         * lib/savedir.h: Likewise.
54745         * lib/savewd.c: Likewise.
54746         * lib/savewd.h: Likewise.
54747         * lib/search.in.h: Likewise.
54748         * lib/setenv.c: Likewise.
54749         * lib/setenv.h: Likewise.
54750         * lib/settime.c: Likewise.
54751         * lib/sh-quote.c: Likewise.
54752         * lib/sh-quote.h: Likewise.
54753         * lib/sig2str.c: Likewise.
54754         * lib/sig2str.h: Likewise.
54755         * lib/signal.in.h: Likewise.
54756         * lib/signbitd.c: Likewise.
54757         * lib/signbitf.c: Likewise.
54758         * lib/signbitl.c: Likewise.
54759         * lib/sigprocmask.c: Likewise.
54760         * lib/sincosl.c: Likewise.
54761         * lib/sleep.c: Likewise.
54762         * lib/sprintf.c: Likewise.
54763         * lib/sqrtl.c: Likewise.
54764         * lib/stat-time.h: Likewise.
54765         * lib/stdio--.h: Likewise.
54766         * lib/stdio-safer.h: Likewise.
54767         * lib/stdlib--.h: Likewise.
54768         * lib/stdlib-safer.h: Likewise.
54769         * lib/stdlib.in.h: Likewise.
54770         * lib/stpcpy.c: Likewise.
54771         * lib/stpncpy.c: Likewise.
54772         * lib/strchrnul.c: Likewise.
54773         * lib/strcspn.c: Likewise.
54774         * lib/strerror.c: Likewise.
54775         * lib/strftime.c: Likewise.
54776         * lib/strftime.h: Likewise.
54777         * lib/striconveh.c: Likewise.
54778         * lib/striconveh.h: Likewise.
54779         * lib/striconveha.c: Likewise.
54780         * lib/striconveha.h: Likewise.
54781         * lib/stripslash.c: Likewise.
54782         * lib/strnlen1.c: Likewise.
54783         * lib/strnlen1.h: Likewise.
54784         * lib/strtod.c: Likewise.
54785         * lib/strtoimax.c: Likewise.
54786         * lib/strtok_r.c: Likewise.
54787         * lib/strtol.c: Likewise.
54788         * lib/strtoll.c: Likewise.
54789         * lib/strtoul.c: Likewise.
54790         * lib/strtoull.c: Likewise.
54791         * lib/sysexits.in.h: Likewise.
54792         * lib/tempname.c: Likewise.
54793         * lib/tempname.h: Likewise.
54794         * lib/timespec.h: Likewise.
54795         * lib/tls.c: Likewise.
54796         * lib/tls.h: Likewise.
54797         * lib/tmpdir.c: Likewise.
54798         * lib/tmpdir.h: Likewise.
54799         * lib/tmpfile-safer.c: Likewise.
54800         * lib/tmpfile.c: Likewise.
54801         * lib/trigl.c: Likewise.
54802         * lib/trigl.h: Likewise.
54803         * lib/trim.c: Likewise.
54804         * lib/trim.h: Likewise.
54805         * lib/trunc.c: Likewise.
54806         * lib/truncf.c: Likewise.
54807         * lib/truncl.c: Likewise.
54808         * lib/tsearch.c: Likewise.
54809         * lib/unicodeio.c: Likewise.
54810         * lib/unicodeio.h: Likewise.
54811         * lib/unistd--.h: Likewise.
54812         * lib/unistd-safer.h: Likewise.
54813         * lib/unistdio/ulc-fprintf.c: Likewise.
54814         * lib/unistdio/ulc-vfprintf.c: Likewise.
54815         * lib/unlinkdir.c: Likewise.
54816         * lib/unlinkdir.h: Likewise.
54817         * lib/unlocked-io.h: Likewise.
54818         * lib/unsetenv.c: Likewise.
54819         * lib/userspec.c: Likewise.
54820         * lib/utime.c: Likewise.
54821         * lib/utimecmp.c: Likewise.
54822         * lib/utimecmp.h: Likewise.
54823         * lib/utimens.c: Likewise.
54824         * lib/verify.h: Likewise.
54825         * lib/verror.c: Likewise.
54826         * lib/verror.h: Likewise.
54827         * lib/version-etc-fsf.c: Likewise.
54828         * lib/version-etc.c: Likewise.
54829         * lib/version-etc.h: Likewise.
54830         * lib/vfprintf.c: Likewise.
54831         * lib/vprintf.c: Likewise.
54832         * lib/vsprintf.c: Likewise.
54833         * lib/w32spawn.h: Likewise.
54834         * lib/wait-process.c: Likewise.
54835         * lib/wait-process.h: Likewise.
54836         * lib/wcwidth.c: Likewise.
54837         * lib/write-any-file.c: Likewise.
54838         * lib/xalloc-die.c: Likewise.
54839         * lib/xalloc.h: Likewise.
54840         * lib/xasprintf.c: Likewise.
54841         * lib/xgetcwd.c: Likewise.
54842         * lib/xgetcwd.h: Likewise.
54843         * lib/xgetdomainname.c: Likewise.
54844         * lib/xgetdomainname.h: Likewise.
54845         * lib/xgethostname.c: Likewise.
54846         * lib/xmalloc.c: Likewise.
54847         * lib/xmalloca.c: Likewise.
54848         * lib/xmalloca.h: Likewise.
54849         * lib/xmemcoll.c: Likewise.
54850         * lib/xnanosleep.c: Likewise.
54851         * lib/xreadlink.c: Likewise.
54852         * lib/xreadlink.h: Likewise.
54853         * lib/xsetenv.c: Likewise.
54854         * lib/xsetenv.h: Likewise.
54855         * lib/xstriconv.c: Likewise.
54856         * lib/xstriconv.h: Likewise.
54857         * lib/xstrndup.c: Likewise.
54858         * lib/xstrndup.h: Likewise.
54859         * lib/xstrtod.c: Likewise.
54860         * lib/xstrtod.h: Likewise.
54861         * lib/xstrtol-error.c: Likewise.
54862         * lib/xstrtol.c: Likewise.
54863         * lib/xstrtol.h: Likewise.
54864         * lib/xtime.h: Likewise.
54865         * lib/xvasprintf.c: Likewise.
54866         * lib/xvasprintf.h: Likewise.
54867         * lib/yesno.c: Likewise.
54868         * lib/yesno.h: Likewise.
54869         * posix-modules: Likewise.
54870         * tests/test-alloca-opt.c: Likewise.
54871         * tests/test-arcfour.c: Likewise.
54872         * tests/test-arctwo.c: Likewise.
54873         * tests/test-argmatch.c: Likewise.
54874         * tests/test-argp-2.sh: Likewise.
54875         * tests/test-argp.c: Likewise.
54876         * tests/test-arpa_inet.c: Likewise.
54877         * tests/test-array_list.c: Likewise.
54878         * tests/test-array_oset.c: Likewise.
54879         * tests/test-atexit.c: Likewise.
54880         * tests/test-avltree_list.c: Likewise.
54881         * tests/test-avltree_oset.c: Likewise.
54882         * tests/test-avltreehash_list.c: Likewise.
54883         * tests/test-base64.c: Likewise.
54884         * tests/test-binary-io.c: Likewise.
54885         * tests/test-byteswap.c: Likewise.
54886         * tests/test-c-ctype.c: Likewise.
54887         * tests/test-c-strcasecmp.c: Likewise.
54888         * tests/test-c-strcasestr.c: Likewise.
54889         * tests/test-c-strncasecmp.c: Likewise.
54890         * tests/test-c-strstr.c: Likewise.
54891         * tests/test-canonicalize-lgpl.c: Likewise.
54892         * tests/test-canonicalize.c: Likewise.
54893         * tests/test-carray_list.c: Likewise.
54894         * tests/test-ceilf.c: Likewise.
54895         * tests/test-ceill.c: Likewise.
54896         * tests/test-count-one-bits.c: Likewise.
54897         * tests/test-crc.c: Likewise.
54898         * tests/test-dirname.c: Likewise.
54899         * tests/test-fbufmode.c: Likewise.
54900         * tests/test-fcntl.c: Likewise.
54901         * tests/test-fflush.c: Likewise.
54902         * tests/test-floorf.c: Likewise.
54903         * tests/test-floorl.c: Likewise.
54904         * tests/test-fopen.c: Likewise.
54905         * tests/test-fprintf-posix.c: Likewise.
54906         * tests/test-fprintf-posix.h: Likewise.
54907         * tests/test-fpurge.c: Likewise.
54908         * tests/test-freadable.c: Likewise.
54909         * tests/test-freadahead.c: Likewise.
54910         * tests/test-freading.c: Likewise.
54911         * tests/test-freopen.c: Likewise.
54912         * tests/test-frexp.c: Likewise.
54913         * tests/test-frexpl.c: Likewise.
54914         * tests/test-fseek.c: Likewise.
54915         * tests/test-fseeko.c: Likewise.
54916         * tests/test-fseterr.c: Likewise.
54917         * tests/test-fstrcmp.c: Likewise.
54918         * tests/test-ftell.c: Likewise.
54919         * tests/test-ftello.c: Likewise.
54920         * tests/test-fwritable.c: Likewise.
54921         * tests/test-fwriting.c: Likewise.
54922         * tests/test-getaddrinfo.c: Likewise.
54923         * tests/test-getpass.c: Likewise.
54924         * tests/test-gettimeofday.c: Likewise.
54925         * tests/test-hmac-md5.c: Likewise.
54926         * tests/test-hmac-sha1.c: Likewise.
54927         * tests/test-iconv.c: Likewise.
54928         * tests/test-iconvme.c: Likewise.
54929         * tests/test-inttypes.c: Likewise.
54930         * tests/test-isnan.c: Likewise.
54931         * tests/test-isnanf.c: Likewise.
54932         * tests/test-isnanl-nolibm.c: Likewise.
54933         * tests/test-isnanl.c: Likewise.
54934         * tests/test-isnanl.h: Likewise.
54935         * tests/test-ldexpl.c: Likewise.
54936         * tests/test-linked_list.c: Likewise.
54937         * tests/test-linkedhash_list.c: Likewise.
54938         * tests/test-locale.c: Likewise.
54939         * tests/test-localename.c: Likewise.
54940         * tests/test-lock.c: Likewise.
54941         * tests/test-lseek.c: Likewise.
54942         * tests/test-malloca.c: Likewise.
54943         * tests/test-math.c: Likewise.
54944         * tests/test-mbscasecmp.c: Likewise.
54945         * tests/test-mbscasestr1.c: Likewise.
54946         * tests/test-mbscasestr2.c: Likewise.
54947         * tests/test-mbscasestr3.c: Likewise.
54948         * tests/test-mbscasestr4.c: Likewise.
54949         * tests/test-mbschr.c: Likewise.
54950         * tests/test-mbscspn.c: Likewise.
54951         * tests/test-mbsncasecmp.c: Likewise.
54952         * tests/test-mbspbrk.c: Likewise.
54953         * tests/test-mbspcasecmp.c: Likewise.
54954         * tests/test-mbsrchr.c: Likewise.
54955         * tests/test-mbsspn.c: Likewise.
54956         * tests/test-mbsstr1.c: Likewise.
54957         * tests/test-mbsstr2.c: Likewise.
54958         * tests/test-mbsstr3.c: Likewise.
54959         * tests/test-md5.c: Likewise.
54960         * tests/test-memmem.c: Likewise.
54961         * tests/test-netinet_in.c: Likewise.
54962         * tests/test-open.c: Likewise.
54963         * tests/test-printf-frexp.c: Likewise.
54964         * tests/test-printf-frexpl.c: Likewise.
54965         * tests/test-printf-posix.c: Likewise.
54966         * tests/test-printf-posix.h: Likewise.
54967         * tests/test-rbtree_list.c: Likewise.
54968         * tests/test-rbtree_oset.c: Likewise.
54969         * tests/test-rbtreehash_list.c: Likewise.
54970         * tests/test-read-file.c: Likewise.
54971         * tests/test-rijndael.c: Likewise.
54972         * tests/test-search.c: Likewise.
54973         * tests/test-signbit.c: Likewise.
54974         * tests/test-sleep.c: Likewise.
54975         * tests/test-snprintf-posix.c: Likewise.
54976         * tests/test-snprintf-posix.h: Likewise.
54977         * tests/test-snprintf.c: Likewise.
54978         * tests/test-sprintf-posix.c: Likewise.
54979         * tests/test-sprintf-posix.h: Likewise.
54980         * tests/test-stat-time.c: Likewise.
54981         * tests/test-stdbool.c: Likewise.
54982         * tests/test-stdint.c: Likewise.
54983         * tests/test-stdio.c: Likewise.
54984         * tests/test-stdlib.c: Likewise.
54985         * tests/test-stpncpy.c: Likewise.
54986         * tests/test-strcasestr.c: Likewise.
54987         * tests/test-striconv.c: Likewise.
54988         * tests/test-striconveh.c: Likewise.
54989         * tests/test-striconveha.c: Likewise.
54990         * tests/test-string.c: Likewise.
54991         * tests/test-sys_select.c: Likewise.
54992         * tests/test-sys_socket.c: Likewise.
54993         * tests/test-sys_stat.c: Likewise.
54994         * tests/test-sys_time.c: Likewise.
54995         * tests/test-sysexits.c: Likewise.
54996         * tests/test-time.c: Likewise.
54997         * tests/test-tls.c: Likewise.
54998         * tests/test-trunc.c: Likewise.
54999         * tests/test-truncf.c: Likewise.
55000         * tests/test-truncl.c: Likewise.
55001         * tests/test-unistd.c: Likewise.
55002         * tests/test-vasnprintf-posix.c: Likewise.
55003         * tests/test-vasnprintf-posix2.c: Likewise.
55004         * tests/test-vasnprintf.c: Likewise.
55005         * tests/test-vasprintf-posix.c: Likewise.
55006         * tests/test-vasprintf.c: Likewise.
55007         * tests/test-verify.c: Likewise.
55008         * tests/test-vfprintf-posix.c: Likewise.
55009         * tests/test-vprintf-posix.c: Likewise.
55010         * tests/test-vsnprintf-posix.c: Likewise.
55011         * tests/test-vsnprintf.c: Likewise.
55012         * tests/test-vsprintf-posix.c: Likewise.
55013         * tests/test-wchar.c: Likewise.
55014         * tests/test-wctype.c: Likewise.
55015         * tests/test-wcwidth.c: Likewise.
55016         * tests/test-xstrtol.c: Likewise.
55017         * tests/test-xvasprintf.c: Likewise.
55018         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55019         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55020         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55021         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55022         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55023         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55024         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55025         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55026         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55027         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55028         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55029         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55030         * tests/uniname/test-uninames.c: Likewise.
55031         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55032         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55033         * tests/unistdio/test-u16-printf1.h: Likewise.
55034         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55035         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55036         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55037         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55038         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55039         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55040         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55041         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55042         * tests/unistdio/test-u32-printf1.h: Likewise.
55043         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55044         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55045         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55046         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55047         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55048         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55049         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55050         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55051         * tests/unistdio/test-u8-printf1.h: Likewise.
55052         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55053         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55054         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55055         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55056         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55057         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55058         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55059         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55060         * tests/unistdio/test-ulc-printf1.h: Likewise.
55061         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55062         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55063         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55064         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55065         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55066         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55067         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55068         * tests/uniwidth/test-u16-width.c: Likewise.
55069         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55070         * tests/uniwidth/test-u32-width.c: Likewise.
55071         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55072         * tests/uniwidth/test-u8-width.c: Likewise.
55073         * tests/uniwidth/test-uc_width.c: Likewise.
55074         * config/srclist-update: Likewise.
55075         (fixlicense): Update to GPLv3+.
55076
55077         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55078         * tests/test-tsearch.c: Change copyright notice.
55079
55080         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55081         * lib/c-strcaseeq.h: Change copyright notice.
55082         * lib/streq.h: Likewise.
55083         * lib/uniconv.h: Likewise.
55084         * lib/uniconv/u-conv-from-enc.h: Likewise.
55085         * lib/uniconv/u-conv-to-enc.h: Likewise.
55086         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55087         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55088         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55089         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55090         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55091         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55092         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55093         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55094         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55095         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55096         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55097         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55098         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55099         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55100         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55101         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55102         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55103         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55104         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55105         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55106         * lib/uniname.h: Likewise.
55107         * lib/uniname/uniname.c: Likewise.
55108         * lib/unistdio.h: Likewise.
55109         * lib/unistdio/u-asnprintf.h: Likewise.
55110         * lib/unistdio/u-asprintf.h: Likewise.
55111         * lib/unistdio/u-printf-args.c: Likewise.
55112         * lib/unistdio/u-printf-args.h: Likewise.
55113         * lib/unistdio/u-printf-parse.h: Likewise.
55114         * lib/unistdio/u-snprintf.h: Likewise.
55115         * lib/unistdio/u-sprintf.h: Likewise.
55116         * lib/unistdio/u-vasprintf.h: Likewise.
55117         * lib/unistdio/u-vsnprintf.h: Likewise.
55118         * lib/unistdio/u-vsprintf.h: Likewise.
55119         * lib/unistdio/u16-asnprintf.c: Likewise.
55120         * lib/unistdio/u16-asprintf.c: Likewise.
55121         * lib/unistdio/u16-printf-parse.c: Likewise.
55122         * lib/unistdio/u16-snprintf.c: Likewise.
55123         * lib/unistdio/u16-sprintf.c: Likewise.
55124         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55125         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55126         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55127         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55128         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55129         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55130         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55131         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55132         * lib/unistdio/u16-vasnprintf.c: Likewise.
55133         * lib/unistdio/u16-vasprintf.c: Likewise.
55134         * lib/unistdio/u16-vsnprintf.c: Likewise.
55135         * lib/unistdio/u16-vsprintf.c: Likewise.
55136         * lib/unistdio/u32-asnprintf.c: Likewise.
55137         * lib/unistdio/u32-asprintf.c: Likewise.
55138         * lib/unistdio/u32-printf-parse.c: Likewise.
55139         * lib/unistdio/u32-snprintf.c: Likewise.
55140         * lib/unistdio/u32-sprintf.c: Likewise.
55141         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55142         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55143         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55144         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55145         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55146         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55147         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55148         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55149         * lib/unistdio/u32-vasnprintf.c: Likewise.
55150         * lib/unistdio/u32-vasprintf.c: Likewise.
55151         * lib/unistdio/u32-vsnprintf.c: Likewise.
55152         * lib/unistdio/u32-vsprintf.c: Likewise.
55153         * lib/unistdio/u8-asnprintf.c: Likewise.
55154         * lib/unistdio/u8-asprintf.c: Likewise.
55155         * lib/unistdio/u8-printf-parse.c: Likewise.
55156         * lib/unistdio/u8-snprintf.c: Likewise.
55157         * lib/unistdio/u8-sprintf.c: Likewise.
55158         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55159         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55160         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55161         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55162         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55163         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55164         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55165         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55166         * lib/unistdio/u8-vasnprintf.c: Likewise.
55167         * lib/unistdio/u8-vasprintf.c: Likewise.
55168         * lib/unistdio/u8-vsnprintf.c: Likewise.
55169         * lib/unistdio/u8-vsprintf.c: Likewise.
55170         * lib/unistdio/ulc-asnprintf.c: Likewise.
55171         * lib/unistdio/ulc-asprintf.c: Likewise.
55172         * lib/unistdio/ulc-printf-parse.c: Likewise.
55173         * lib/unistdio/ulc-snprintf.c: Likewise.
55174         * lib/unistdio/ulc-sprintf.c: Likewise.
55175         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55176         * lib/unistdio/ulc-vasprintf.c: Likewise.
55177         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55178         * lib/unistdio/ulc-vsprintf.c: Likewise.
55179         * lib/unistr.h: Likewise.
55180         * lib/unistr/u-cpy-alloc.h: Likewise.
55181         * lib/unistr/u-cpy.h: Likewise.
55182         * lib/unistr/u-endswith.h: Likewise.
55183         * lib/unistr/u-move.h: Likewise.
55184         * lib/unistr/u-set.h: Likewise.
55185         * lib/unistr/u-startswith.h: Likewise.
55186         * lib/unistr/u-stpcpy.h: Likewise.
55187         * lib/unistr/u-stpncpy.h: Likewise.
55188         * lib/unistr/u-strcat.h: Likewise.
55189         * lib/unistr/u-strcpy.h: Likewise.
55190         * lib/unistr/u-strcspn.h: Likewise.
55191         * lib/unistr/u-strdup.h: Likewise.
55192         * lib/unistr/u-strlen.h: Likewise.
55193         * lib/unistr/u-strncat.h: Likewise.
55194         * lib/unistr/u-strncpy.h: Likewise.
55195         * lib/unistr/u-strnlen.h: Likewise.
55196         * lib/unistr/u-strpbrk.h: Likewise.
55197         * lib/unistr/u-strspn.h: Likewise.
55198         * lib/unistr/u-strstr.h: Likewise.
55199         * lib/unistr/u-strtok.h: Likewise.
55200         * lib/unistr/u16-check.c: Likewise.
55201         * lib/unistr/u16-chr.c: Likewise.
55202         * lib/unistr/u16-cmp.c: Likewise.
55203         * lib/unistr/u16-cpy-alloc.c: Likewise.
55204         * lib/unistr/u16-cpy.c: Likewise.
55205         * lib/unistr/u16-endswith.c: Likewise.
55206         * lib/unistr/u16-mblen.c: Likewise.
55207         * lib/unistr/u16-mbsnlen.c: Likewise.
55208         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55209         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55210         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55211         * lib/unistr/u16-mbtouc.c: Likewise.
55212         * lib/unistr/u16-mbtoucr.c: Likewise.
55213         * lib/unistr/u16-move.c: Likewise.
55214         * lib/unistr/u16-next.c: Likewise.
55215         * lib/unistr/u16-prev.c: Likewise.
55216         * lib/unistr/u16-set.c: Likewise.
55217         * lib/unistr/u16-startswith.c: Likewise.
55218         * lib/unistr/u16-stpcpy.c: Likewise.
55219         * lib/unistr/u16-stpncpy.c: Likewise.
55220         * lib/unistr/u16-strcat.c: Likewise.
55221         * lib/unistr/u16-strchr.c: Likewise.
55222         * lib/unistr/u16-strcmp.c: Likewise.
55223         * lib/unistr/u16-strcpy.c: Likewise.
55224         * lib/unistr/u16-strcspn.c: Likewise.
55225         * lib/unistr/u16-strdup.c: Likewise.
55226         * lib/unistr/u16-strlen.c: Likewise.
55227         * lib/unistr/u16-strmblen.c: Likewise.
55228         * lib/unistr/u16-strmbtouc.c: Likewise.
55229         * lib/unistr/u16-strncat.c: Likewise.
55230         * lib/unistr/u16-strncmp.c: Likewise.
55231         * lib/unistr/u16-strncpy.c: Likewise.
55232         * lib/unistr/u16-strnlen.c: Likewise.
55233         * lib/unistr/u16-strpbrk.c: Likewise.
55234         * lib/unistr/u16-strrchr.c: Likewise.
55235         * lib/unistr/u16-strspn.c: Likewise.
55236         * lib/unistr/u16-strstr.c: Likewise.
55237         * lib/unistr/u16-strtok.c: Likewise.
55238         * lib/unistr/u16-to-u32.c: Likewise.
55239         * lib/unistr/u16-to-u8.c: Likewise.
55240         * lib/unistr/u16-uctomb-aux.c: Likewise.
55241         * lib/unistr/u16-uctomb.c: Likewise.
55242         * lib/unistr/u32-check.c: Likewise.
55243         * lib/unistr/u32-chr.c: Likewise.
55244         * lib/unistr/u32-cmp.c: Likewise.
55245         * lib/unistr/u32-cpy-alloc.c: Likewise.
55246         * lib/unistr/u32-cpy.c: Likewise.
55247         * lib/unistr/u32-endswith.c: Likewise.
55248         * lib/unistr/u32-mblen.c: Likewise.
55249         * lib/unistr/u32-mbsnlen.c: Likewise.
55250         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55251         * lib/unistr/u32-mbtouc.c: Likewise.
55252         * lib/unistr/u32-mbtoucr.c: Likewise.
55253         * lib/unistr/u32-move.c: Likewise.
55254         * lib/unistr/u32-next.c: Likewise.
55255         * lib/unistr/u32-prev.c: Likewise.
55256         * lib/unistr/u32-set.c: Likewise.
55257         * lib/unistr/u32-startswith.c: Likewise.
55258         * lib/unistr/u32-stpcpy.c: Likewise.
55259         * lib/unistr/u32-stpncpy.c: Likewise.
55260         * lib/unistr/u32-strcat.c: Likewise.
55261         * lib/unistr/u32-strchr.c: Likewise.
55262         * lib/unistr/u32-strcmp.c: Likewise.
55263         * lib/unistr/u32-strcpy.c: Likewise.
55264         * lib/unistr/u32-strcspn.c: Likewise.
55265         * lib/unistr/u32-strdup.c: Likewise.
55266         * lib/unistr/u32-strlen.c: Likewise.
55267         * lib/unistr/u32-strmblen.c: Likewise.
55268         * lib/unistr/u32-strmbtouc.c: Likewise.
55269         * lib/unistr/u32-strncat.c: Likewise.
55270         * lib/unistr/u32-strncmp.c: Likewise.
55271         * lib/unistr/u32-strncpy.c: Likewise.
55272         * lib/unistr/u32-strnlen.c: Likewise.
55273         * lib/unistr/u32-strpbrk.c: Likewise.
55274         * lib/unistr/u32-strrchr.c: Likewise.
55275         * lib/unistr/u32-strspn.c: Likewise.
55276         * lib/unistr/u32-strstr.c: Likewise.
55277         * lib/unistr/u32-strtok.c: Likewise.
55278         * lib/unistr/u32-to-u16.c: Likewise.
55279         * lib/unistr/u32-to-u8.c: Likewise.
55280         * lib/unistr/u32-uctomb.c: Likewise.
55281         * lib/unistr/u8-check.c: Likewise.
55282         * lib/unistr/u8-chr.c: Likewise.
55283         * lib/unistr/u8-cmp.c: Likewise.
55284         * lib/unistr/u8-cpy-alloc.c: Likewise.
55285         * lib/unistr/u8-cpy.c: Likewise.
55286         * lib/unistr/u8-endswith.c: Likewise.
55287         * lib/unistr/u8-mblen.c: Likewise.
55288         * lib/unistr/u8-mbsnlen.c: Likewise.
55289         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55290         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55291         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55292         * lib/unistr/u8-mbtouc.c: Likewise.
55293         * lib/unistr/u8-mbtoucr.c: Likewise.
55294         * lib/unistr/u8-move.c: Likewise.
55295         * lib/unistr/u8-next.c: Likewise.
55296         * lib/unistr/u8-prev.c: Likewise.
55297         * lib/unistr/u8-set.c: Likewise.
55298         * lib/unistr/u8-startswith.c: Likewise.
55299         * lib/unistr/u8-stpcpy.c: Likewise.
55300         * lib/unistr/u8-stpncpy.c: Likewise.
55301         * lib/unistr/u8-strcat.c: Likewise.
55302         * lib/unistr/u8-strchr.c: Likewise.
55303         * lib/unistr/u8-strcmp.c: Likewise.
55304         * lib/unistr/u8-strcpy.c: Likewise.
55305         * lib/unistr/u8-strcspn.c: Likewise.
55306         * lib/unistr/u8-strdup.c: Likewise.
55307         * lib/unistr/u8-strlen.c: Likewise.
55308         * lib/unistr/u8-strmblen.c: Likewise.
55309         * lib/unistr/u8-strmbtouc.c: Likewise.
55310         * lib/unistr/u8-strncat.c: Likewise.
55311         * lib/unistr/u8-strncmp.c: Likewise.
55312         * lib/unistr/u8-strncpy.c: Likewise.
55313         * lib/unistr/u8-strnlen.c: Likewise.
55314         * lib/unistr/u8-strpbrk.c: Likewise.
55315         * lib/unistr/u8-strrchr.c: Likewise.
55316         * lib/unistr/u8-strspn.c: Likewise.
55317         * lib/unistr/u8-strstr.c: Likewise.
55318         * lib/unistr/u8-strtok.c: Likewise.
55319         * lib/unistr/u8-to-u16.c: Likewise.
55320         * lib/unistr/u8-to-u32.c: Likewise.
55321         * lib/unistr/u8-uctomb-aux.c: Likewise.
55322         * lib/unistr/u8-uctomb.c: Likewise.
55323         * lib/unitypes.h: Likewise.
55324         * lib/uniwidth.h: Likewise.
55325         * lib/uniwidth/cjk.h: Likewise.
55326         * lib/uniwidth/u16-strwidth.c: Likewise.
55327         * lib/uniwidth/u16-width.c: Likewise.
55328         * lib/uniwidth/u32-strwidth.c: Likewise.
55329         * lib/uniwidth/u32-width.c: Likewise.
55330         * lib/uniwidth/u8-strwidth.c: Likewise.
55331         * lib/uniwidth/u8-width.c: Likewise.
55332         * lib/uniwidth/width.c: Likewise.
55333
55334 2007-10-07  Bruno Haible  <bruno@clisp.org>
55335
55336         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55337         The file is still under LGPL (see modules/inttypes).
55338
55339 2007-10-06  Bruno Haible  <bruno@clisp.org>
55340
55341         * modules/trunc (Dependencies): Add 'extensions'.
55342         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55343         Reported by Ben Pfaff <blp@gnu.org>.
55344
55345 2007-10-06  Bruno Haible  <bruno@clisp.org>
55346
55347         * modules/freopen-tests: New file.
55348         * tests/test-freopen.c: New file.
55349
55350         * modules/fopen-tests: New file.
55351         * tests/test-fopen.c: New file.
55352
55353         * modules/fopen: New file.
55354         * lib/fopen.c: New file.
55355         * m4/fopen.m4: New file.
55356         * modules/freopen: New file.
55357         * lib/freopen.c: New file.
55358         * m4/freopen.m4: New file.
55359         * lib/stdio.in.h (fopen, freopen): New declarations.
55360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55361         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55362         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55363         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55364         * doc/functions/fopen.texi: Mention the 'fopen' module.
55365         * doc/functions/freopen.texi: Mention the 'freopen' module.
55366
55367 2007-10-06  Bruno Haible  <bruno@clisp.org>
55368
55369         * modules/open-tests: New file.
55370         * tests/test-open.c: New file.
55371
55372         * modules/open: New file.
55373         * lib/open.c: New file.
55374         * m4/open.m4: New file.
55375         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55376         lib/open.c does.
55377         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55378         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55379         macros.
55380         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55381         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55382         REPLACE_OPEN.
55383         * doc/functions/open.texi: Mention the 'open' module.
55384
55385 2007-10-04  Bruno Haible  <bruno@clisp.org>
55386
55387         * modules/ceill-tests: New file.
55388         * tests/test-ceill.c: New file.
55389
55390         * modules/ceill: New file.
55391         * lib/ceill.c: Replace entire file.
55392         * m4/ceill.m4: New file.
55393         * lib/math.in.h (ceill): Replace declaration.
55394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55395         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55396         * doc/functions/ceill.texi: Mention the 'ceill' module.
55397         * modules/mathl (Files): Remove lib/ceill.c.
55398         (Depends-on): Add ceill.
55399
55400 2007-10-04  Bruno Haible  <bruno@clisp.org>
55401
55402         * modules/ceilf-tests: New file.
55403         * tests/test-ceilf.c: New file.
55404
55405         * modules/ceilf: New file.
55406         * lib/ceil.c: New file.
55407         * lib/ceilf.c: New file.
55408         * m4/ceilf.m4: New file.
55409         * lib/math.in.h (ceilf): New declaration.
55410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55411         HAVE_DECL_CEILF.
55412         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55413         HAVE_DECL_CEILF.
55414         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55415
55416 2007-10-04  Bruno Haible  <bruno@clisp.org>
55417
55418         * modules/floorl-tests: New file.
55419         * tests/test-floorl.c: New file.
55420
55421         * modules/floorl: New file.
55422         * lib/floorl.c: Replace entire file.
55423         * m4/floorl.m4: New file.
55424         * lib/math.in.h (floorl): Replace declaration.
55425         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55426         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55427         * doc/functions/floorl.texi: Mention the 'floorl' module.
55428         * modules/mathl (Files): Remove lib/floorl.c.
55429         (Depends-on): Add floorl.
55430
55431 2007-10-04  Bruno Haible  <bruno@clisp.org>
55432
55433         * modules/floorf-tests: New file.
55434         * tests/test-floorf.c: New file.
55435
55436         * modules/floorf: New file.
55437         * lib/floor.c: New file.
55438         * lib/floorf.c: New file.
55439         * m4/floorf.m4: New file.
55440         * lib/math.in.h (floorf): New declaration.
55441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55442         HAVE_DECL_FLOORF.
55443         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55444         HAVE_DECL_FLOORF.
55445         * doc/functions/floorf.texi: Mention the 'floorf' module.
55446
55447 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55448             Bruno Haible  <bruno@clisp.org>
55449
55450         Advertise for the Git server instead of the CVS server.
55451         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55452         repository instead of the CVS one.
55453         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55454         about all VCS systems generically.
55455         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55456
55457 2007-10-04  Bruno Haible  <bruno@clisp.org>
55458
55459         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55460         means.
55461         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55462
55463 2007-10-04  Bruno Haible  <bruno@clisp.org>
55464
55465         * modules/truncl-tests: New file.
55466         * tests/test-truncl.c: New file.
55467
55468         * modules/truncl: New file.
55469         * lib/truncl.c: New file.
55470         * m4/truncl.m4: New file.
55471         * lib/math.in.h (truncl): New declaration.
55472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55473         HAVE_DECL_TRUNCL.
55474         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55475         HAVE_DECL_TRUNCL.
55476         * doc/functions/truncl.texi: Mention the 'truncl' module.
55477
55478 2007-10-04  Bruno Haible  <bruno@clisp.org>
55479
55480         * modules/truncf-tests: New file.
55481         * tests/test-truncf.c: New file.
55482
55483         * modules/truncf: New file.
55484         * lib/trunc.c: Make paramerizable through USE_* macros.
55485         * lib/truncf.c: New file.
55486         * m4/truncf.m4: New file.
55487         * lib/math.in.h (truncf): New declaration.
55488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55489         HAVE_DECL_TRUNCF.
55490         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55491         HAVE_DECL_TRUNCF.
55492         * doc/functions/truncf.texi: Mention the 'truncf' module.
55493
55494 2007-10-03  Bruno Haible  <bruno@clisp.org>
55495
55496         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55497         augmentation also for tests modules.
55498         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55499         * modules/atexit-tests (Makefile.am): Likewise.
55500         * modules/binary-io-tests (Makefile.am): Likewise.
55501         * modules/c-strcase-tests (Makefile.am): Likewise.
55502         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55503         * modules/canonicalize-tests (Makefile.am): Likewise.
55504         * modules/closein-tests (Makefile.am): Likewise.
55505         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55506         * modules/freadahead-tests (Makefile.am): Likewise.
55507         * modules/fseek-tests (Makefile.am): Likewise.
55508         * modules/fseeko-tests (Makefile.am): Likewise.
55509         * modules/ftell-tests (Makefile.am): Likewise.
55510         * modules/ftello-tests (Makefile.am): Likewise.
55511         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55512         * modules/isnanl-tests (Makefile.am): Likewise.
55513         * modules/lseek-tests (Makefile.am): Likewise.
55514         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55515         * modules/mbscasestr-tests (Makefile.am): Likewise.
55516         * modules/mbschr-tests (Makefile.am): Likewise.
55517         * modules/mbscspn-tests (Makefile.am): Likewise.
55518         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55519         * modules/mbspbrk-tests (Makefile.am): Likewise.
55520         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55521         * modules/mbsrchr-tests (Makefile.am): Likewise.
55522         * modules/mbsspn-tests (Makefile.am): Likewise.
55523         * modules/mbsstr-tests (Makefile.am): Likewise.
55524         * modules/printf-posix-tests (Makefile.am): Likewise.
55525         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55526         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55527         * modules/tsearch-tests (Makefile.am): Likewise.
55528         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55529         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55530         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55531         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55532         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55533         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55534         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55535         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55536         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55537         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55538         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55539         * modules/xstrtol-tests (Makefile.am): Likewise.
55540         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55541         * modules/yesno-tests (Makefile.am): Likewise.
55542
55543 2007-10-03  Bruno Haible  <bruno@clisp.org>
55544
55545         * modules/trunc-tests: New file.
55546         * tests/test-trunc.c: New file.
55547
55548         * modules/trunc: New file.
55549         * lib/trunc.c: New file.
55550         * m4/trunc.m4: New file.
55551         * lib/math.in.h (trunc): New declaration.
55552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55553         HAVE_DECL_TRUNC.
55554         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55555         HAVE_DECL_TRUNC.
55556         * doc/functions/trunc.texi: Mention the 'trunc' module.
55557
55558 2007-10-03  Bruno Haible  <bruno@clisp.org>
55559
55560         * tests/test-fpending.c: New file, mostly copied
55561         from coreutils/lib/t-fpending.c.
55562         * modules/fpending-tests: New file.
55563
55564 2007-10-03  Bruno Haible  <bruno@clisp.org>
55565
55566         Port the stdio extensions to QNX (untested).
55567         * lib/fseterr.c (fseterr): Add support for QNX.
55568         * lib/fbufmode.c (fbufmode): Likewise.
55569         * lib/freadable.c (freadable): Likewise.
55570         * lib/fwritable.c (fwritable): Likewise.
55571         * lib/freading.c (freading): Likewise.
55572         * lib/fwriting.c (fwriting): Likewise.
55573         * lib/freadahead.c (freadahed): Likewise.
55574         * lib/fpurge.c (fpurge): Likewise.
55575         * lib/fseeko.c (rpl_fseeko): Likewise.
55576
55577 2007-10-03  Bruno Haible  <bruno@clisp.org>
55578             Jim Meyering  <jim@meyering.net>
55579             Eric Blake  <ebb9@byu.net>
55580
55581         * doc/relocatable.texi: Use @command instead of @program.
55582
55583 2007-10-02  Jim Meyering  <jim@meyering.net>
55584
55585         Perform one more "_.h" -> ".in.h" substitution.
55586         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55587         instead of unistd_.h here, too.
55588
55589 2007-10-01  Bruno Haible  <bruno@clisp.org>
55590
55591         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55592         Needed for the alloca-opt module.
55593
55594 2007-09-30  Bruno Haible  <bruno@clisp.org>
55595
55596         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55597         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55598         alloca_.h.
55599         * lib/argz.in.h: Renamed from lib/argz_.h.
55600         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55601         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55602         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55603         byteswap_.h.
55604         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55605         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55606         dirent_.h.
55607         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55608         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55609         fcntl_.h.
55610         * lib/float.in.h: Renamed from lib/float_.h.
55611         * modules/float (Files, Makefile.am): Use float.in.h instead of
55612         float_.h.
55613         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55614         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55615         fnmatch_.h.
55616         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55617         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55618         getopt_.h.
55619         * lib/glob.in.h: Renamed from lib/glob_.h.
55620         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55621         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55622         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55623         iconv_.h.
55624         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55625         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55626         inttypes_.h.
55627         * lib/locale.in.h: Renamed from lib/locale_.h.
55628         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55629         locale_.h.
55630         * lib/math.in.h: Renamed from lib/math_.h.
55631         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55632         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55633         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55634         of netinet_in_.h. Add dependency.
55635         * lib/poll.in.h: Renamed from lib/poll_.h.
55636         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55637         * lib/search.in.h: Renamed from lib/search_.h.
55638         * modules/search (Files, Makefile.am): Use search.in.h instead of
55639         search_.h.
55640         * lib/signal.in.h: Renamed from lib/signal_.h.
55641         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55642         _signal.h.
55643         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55644         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55645         stdbool_.h.
55646         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55647         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55648         stdint_.h.
55649         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55650         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55651         stdio_.h.
55652         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55653         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55654         stdlib_.h.
55655         * lib/string.in.h: Renamed from lib/string_.h.
55656         * modules/string (Files, Makefile.am): Use string.in.h instead of
55657         string_.h.
55658         * doc/gnulib-tool.texi (Initial import): Update.
55659         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55660         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55661         of sys_select_.h. Add dependency.
55662         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55663         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55664         of sys_socket_.h.
55665         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55666         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55667         sys_stat_.h.
55668         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55669         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55670         sys_time_.h.
55671         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55672         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55673         sysexits_.h.
55674         * lib/time.in.h: Renamed from lib/time_.h.
55675         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55676         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55677         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55678         unistd_.h.
55679         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55680         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55681         wchar_.h.
55682         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55683         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55684         wctype_.h.
55685         * build-aux/bootstrap (slurp): Update.
55686         * lib/.cppi-disable: Update.
55687
55688 2007-09-30  Bruno Haible  <bruno@clisp.org>
55689
55690         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55691         Needed on BeOS.
55692
55693 2007-09-30  Bruno Haible  <bruno@clisp.org>
55694
55695         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55696
55697 2007-09-29  Bruno Haible  <bruno@clisp.org>
55698
55699         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55700
55701 2007-09-29  Bruno Haible  <bruno@clisp.org>
55702
55703         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55704         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55705         * build-aux/install-reloc: Compile also areadlink.c.
55706         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55707
55708 2007-09-29  Bruno Haible  <bruno@clisp.org>
55709
55710         * gnulib-tool (func_emit_initmacro_done): Indentation.
55711
55712 2007-09-29  Bruno Haible  <bruno@clisp.org>
55713
55714         * README: Add CVS checkout update instructions.
55715         Info from Bob Proulx <bob@proulx.com>.
55716
55717 2007-09-28  Eric Blake  <ebb9@byu.net>
55718
55719         Provide move-if-change.
55720         * build-aux/move-if-change: New file, based on best practice
55721         rather than any canonical upstream location.
55722
55723 2007-09-28  Jim Meyering  <jim@meyering.net>
55724
55725         Fix canonicalize loop-detection corner case.
55726         Do not attempt to stat the symlink values stored via seen_triple.
55727         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55728         on linux-2.6.18, (but not 2.6.22).
55729         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55730         triple_compare.  The former compares dev,ino,filename, while the latter
55731         would actually stat dirname(filename) when dev and ino were equal.
55732         * lib/hash-triple.c: Install <string.h>.
55733         (STREQ): Define.
55734         (triple_compare_ino_str): New function.
55735         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55736
55737 2007-09-28  Eric Blake  <ebb9@byu.net>
55738
55739         Enforce that AC_REPLACE_FUNCS files exist.
55740         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55741         override check for typos.
55742
55743         Fix test-closein on Solaris 10.
55744         * tests/test-closein.c (main): Don't assume stdin can be inherited
55745         closed on all systems.
55746         * tests/test-closein.sh: Likewise.
55747         Reported by Piotr Tarnowski.
55748
55749 2007-09-28  Jim Meyering  <jim@meyering.net>
55750
55751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55752
55753 2007-09-27  Jim Meyering  <jim@meyering.net>
55754
55755         canonicalize: Avoid a false-positive cycle failure.
55756         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55757         Sort.  Remove cycle-check.
55758         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55759         not cycle-check.h.
55760         (seen_triple): New function.
55761         (canonicalize_filename_mode): Use it instead of cycle-check.
55762         * tests/test-canonicalize.c: Add a test for this bug.
55763         * tests/test-canonicalize.sh: Set up and run the test.
55764
55765         New module, file-set, from coreutils.
55766         * modules/file-set: Define it.
55767         * lib/file-set.c, lib/file-set.h: Implement.
55768
55769         New module, hash-triple, from coreutils.
55770         * modules/hash-triple: Define it.
55771         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55772
55773 2007-09-25  Eric Blake  <ebb9@byu.net>
55774
55775         Fix strerror on Interix.
55776         * lib/string_.h (strerror): Declare replacement.
55777         * doc/functions/strerror.texi (strerror): Document the Interix
55778         shortcoming.
55779         * modules/string (Makefile.am): Support new hooks.
55780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55781         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55782         gl_FUNC_STRERROR_SEPARATE.
55783         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55784         * lib/strerror.c (rpl_strerror): Provide replacement.
55785         * modules/strerror (Depends-on): Add string.
55786         (configure.ac): Detect use of module.
55787         * tests/test-strerror.c: New file.
55788         * modules/strerror-tests: New test module.
55789         * modules/argp (Depends-on): Add strerror.
55790         * modules/error (Depends-on): Likewise.
55791         Reported by Martin Koeppe.
55792
55793 2007-09-24  Bruno Haible  <bruno@clisp.org>
55794
55795         * README: Update git instructions.
55796
55797 2007-09-24  Eric Blake  <ebb9@byu.net>
55798
55799         Revert fpending breakage from 2007-09-08.
55800         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55801         __fpending.c.
55802
55803 2007-09-24  Jim Meyering  <jim@meyering.net>
55804
55805         filenamecat.c: Add a test.
55806         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55807         showing how the function works when DIR is the empty string.
55808
55809 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55810
55811         * tests/test-canonicalize.sh: Turn on executable bit.
55812
55813 2007-09-19  Eric Blake  <ebb9@byu.net>
55814
55815         * README: Update CVS instructions.
55816
55817 2007-09-18  Bruno Haible  <bruno@clisp.org>
55818
55819         * modules/areadlink: New file.
55820         * lib/areadlink.h (areadlink): New declaration.
55821         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55822
55823 2007-09-17  Jim Meyering  <jim@meyering.net>
55824
55825         * lib/savewd.c (ESTALE) [!defined]: Define.
55826         Reported to be required on Interix by Martin Koeppe.
55827
55828 2007-09-17  Bruno Haible  <bruno@clisp.org>
55829
55830         * gnulib-tool (func_version): Use $version.
55831
55832 2007-09-16  Bruno Haible  <bruno@clisp.org>
55833
55834         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55835         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55836         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55837         Reported by Greg Schafer <gschafer@zip.com.au>.
55838
55839 2007-09-15  Bruno Haible  <bruno@clisp.org>
55840
55841         * gnulib-tool (sed): Try a little harder to make bash understand the
55842         alias.
55843         Reported by Bruce Korb <bruce.korb@gmail.com>.
55844
55845 2007-09-13  Eric Blake  <ebb9@byu.net>
55846
55847         * ChangeLog: Remove conflict markers.
55848
55849 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55850
55851         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55852         Reported by Bruno Haible <bruno@clisp.org>.
55853
55854 2007-09-12  Bruno Haible  <bruno@clisp.org>
55855
55856         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55857         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55858         is not defined.
55859
55860 2007-09-12  Eric Blake  <ebb9@byu.net>
55861
55862         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55864         Autoconf definition.
55865         * modules/euidaccess (Depends-on): Add extensions, for
55866         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55867         * modules/fnmatch (Depends-on): Likewise.
55868         * modules/getaddrinfo (Depends-on): Likewise.
55869         * modules/getdelim (Depends-on): Likewise.
55870         * modules/getline (Depends-on): Likewise.
55871         * modules/getsubopt (Depends-on): Likewise.
55872         * modules/gettext (Depends-on): Likewise.
55873         * modules/group-member (Depends-on): Likewise.
55874         * modules/mbchar (Depends-on): Likewise.
55875         * modules/memmem (Depends-on): Likewise.
55876         * modules/mempcpy (Depends-on): Likewise.
55877         * modules/memrchr (Depends-on): Likewise.
55878         * modules/pagealign_alloc (Depends-on): Likewise.
55879         * modules/readutmp (Depends-on): Likewise.
55880         * modules/stpcpy (Depends-on): Likewise.
55881         * modules/stpncpy (Depends-on): Likewise.
55882         * modules/strchrnul (Depends-on): Likewise.
55883         * modules/strndup (Depends-on): Likewise.
55884         * modules/strsep (Depends-on): Likewise.
55885         * modules/strverscmp (Depends-on): Likewise.
55886         * modules/vasprintf (Depends-on): Likewise.
55887         * modules/wcwidth (Depends-on): Likewise.
55888         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55889         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55890         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55891         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55892         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55893         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55894         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55895         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55896         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55897         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55899         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55900         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55902         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55903         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55904         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55905         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55906         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55907         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55908         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55909         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55910         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55911         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55912         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55914         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55915         so that lock.m4 can be used in gettext without extensions module.
55916
55917 2007-09-11  Bruno Haible  <bruno@clisp.org>
55918
55919         * m4/isc-posix.m4: Remove file.
55920         Suggested by Eric Blake.
55921
55922 2007-09-11  Eric Blake  <ebb9@byu.net>
55923
55924         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55925
55926 2007-09-10  Bruno Haible  <bruno@clisp.org>
55927
55928         * posix-modules: Fix typo in error message.
55929         Reported by Matt <mkraai@beckman.com>.
55930
55931 2007-09-09  Bruno Haible  <bruno@clisp.org>
55932
55933         * doc/functions/getdelim.texi: Update list of platforms lacking the
55934         function.
55935         * doc/functions/getline.texi: Likewise.
55936
55937 2007-09-09  Jim Meyering  <jim@meyering.net>
55938
55939         * lib/hash.c (hash_initialize): Detect calloc failure.
55940         Reported by Bruno Haible.
55941
55942 2007-09-09  Bruno Haible  <bruno@clisp.org>
55943
55944         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55945         malloc or realloc fails.
55946
55947 2007-09-09  Bruno Haible  <bruno@clisp.org>
55948
55949         * modules/getcwd (Depends-on): Add malloc-posix.
55950         * modules/glob (Depends-on): Likewise.
55951         * modules/putenv (Depends-on): Likewise.
55952         * modules/strdup (Depends-on): Likewise.
55953         * modules/getdelim (Depends-on): Add realloc-posix.
55954         * modules/read-file (Depends-on): Likewise.
55955
55956 2007-09-09  Bruno Haible  <bruno@clisp.org>
55957
55958         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55959         (gl_FUNC_MALLOC_POSIX): Require it.
55960         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55961         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55962         * modules/realloc (Files): Add m4/malloc.m4.
55963         * modules/calloc (Files): Likewise.
55964
55965 2007-09-09  Bruno Haible  <bruno@clisp.org>
55966
55967         * modules/malloc-posix: New file.
55968         * modules/malloc (Depends-on): Add malloc-posix.
55969         * lib/malloc.c: Include errno.h.
55970         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55971         and a POSIX-compatible malloc into a single function. Set ENOMEM
55972         when returning NULL.
55973         * m4/malloc.m4: New file.
55974         * doc/functions/malloc.texi: Mention the malloc-posix module.
55975         * lib/stdlib_.h (malloc): New declaration.
55976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55977         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55978         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55979         and HAVE_MALLOC_POSIX.
55980
55981 2007-09-09  Bruno Haible  <bruno@clisp.org>
55982
55983         * modules/realloc-posix: New file.
55984         * modules/realloc (Depends-on): Add realloc-posix.
55985         * lib/realloc.c: Include errno.h.
55986         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55987         and a POSIX-compatible realloc into a single function. Set ENOMEM
55988         when returning NULL.
55989         * m4/realloc.m4: New file.
55990         * doc/functions/realloc.texi: Mention the realloc-posix module.
55991         * lib/stdlib_.h (realloc): New declaration.
55992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55993         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55994         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55995         and HAVE_REALLOC_POSIX.
55996
55997 2007-09-09  Bruno Haible  <bruno@clisp.org>
55998
55999         * modules/calloc-posix: New file.
56000         * modules/calloc (Depends-on): Add calloc-posix.
56001         * lib/calloc.c: Include errno.h.
56002         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56003         and a POSIX-compatible calloc into a single function. Set ENOMEM
56004         when returning NULL.
56005         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56006         * doc/functions/calloc.texi: Mention the calloc-posix module.
56007         * lib/stdlib_.h (calloc): New declaration.
56008         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56009         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56010         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56011         and HAVE_CALLOC_POSIX.
56012
56013 2007-09-09  Bruno Haible  <bruno@clisp.org>
56014
56015         Allow for modules to show an arbitrary notice.
56016         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56017         * gnulib-tool: New option --extract-notice.
56018         (func_usage): Document it.
56019         (sed_extract_prog): Update.
56020         (func_get_notice): New function.
56021         (func_modules_notice): New function.
56022         (func_import, func_create_testdir): Invoke it.
56023         Suggested by Jim Meyering.
56024
56025 2007-09-09  Bruno Haible  <bruno@clisp.org>
56026
56027         * gnulib-tool: New options --verbose, --quiet.
56028         (func_usage): Document them.
56029         (verbose): New variable.
56030         (func_execute_command): New function.
56031         (func_import): Don't show the module list and the file list if
56032         $verbose < 0.
56033         (func_create_testdir): Likewise. Use func_execute_command.
56034         (func_create_megatestdir): Use func_execute_command.
56035
56036 2007-09-08  Bruno Haible  <bruno@clisp.org>
56037
56038         * gnulib-tool (func_import): Prefer rsync over wget when available,
56039         for fetching the PO files.
56040
56041 2007-09-08  Bruno Haible  <bruno@clisp.org>
56042
56043         * posix-modules: New file. Portions copied from gnulib-tool.
56044         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56045
56046 2007-09-08  Jim Meyering  <jim@meyering.net>
56047
56048         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56049         * lib/fpending.h: Rename from __fpending.h.
56050         * lib/fpending.c: Rename from __fpending.c.
56051         Include "fpending.h", not "__fpending.h".
56052         * lib/__fpending.h, lib/__fpending.c: Remove files.
56053         * modules/fpending (Files): Reflect new file names.
56054         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56055
56056 2007-09-08  Bruno Haible  <bruno@clisp.org>
56057
56058         * m4/inttypes-h.m4: Remove stub file.
56059
56060 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56061
56062         * doc/headers/stdint.texi: Discuss #include_next issue.
56063
56064 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56065
56066         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56067
56068 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56069
56070         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56071         in variable name.
56072
56073 2007-09-03  Jim Meyering  <jim@meyering.net>
56074
56075         New module: git-version-gen.
56076         * modules/git-version-gen: New file.
56077
56078         Import changes from coreutils for bootstrap script.
56079
56080         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56081
56082         bootstrap: uses rsync to download the .po files
56083         * build-aux/bootstrap (po_download_command_format): New global.
56084         (download_po_files): Use rsync.
56085         (update_po_files): Don't remove .po files after download,
56086         so future rsync runs can take advantage of the copies.
56087
56088         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56089
56090         Solve the unnecessary-.po-file-regeneration problem once and for all.
56091         * build-aux/bootstrap (download_po_files): New function, renamed from
56092         get_translations.  Now, downloads, but doesn't update LINGUAS.
56093         (update_po_files): New function.
56094
56095         bootstrap: Ignore more.
56096         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56097         uniwidth to e.g., lib/.gitignore.
56098         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56099
56100         * build-aux/bootstrap: New setting: vc_ignore.
56101         (insert_sorted_if_absent): Create $file if absent.
56102         Adapt to new, possibly empty, list: $vc_ignore.
56103
56104         bootstrap: generate more ignorable names
56105         * build-aux/bootstrap (slurp): When generating ignorable names,
56106         also map .sin to .sed, .gperf to .c, and .y to .c.
56107
56108 2007-09-03  Jim Meyering  <jim@meyering.net>
56109
56110         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56111         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56112
56113 2007-09-02  Bruno Haible  <bruno@clisp.org>
56114
56115         Fix mis-recognition of 'mcs' on QNX 6.
56116         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56117         output contains the string "Mono".
56118         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56119         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56120
56121 2007-09-01  Bruno Haible  <bruno@clisp.org>
56122
56123         Fix collision between uniwidth/* and linebreak modules.
56124         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56125         u32_width): Remove declarations.
56126         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56127         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56128         streq3, streq2, streq1, streq0): Remove functions.
56129         (STREQ): Remove macro.
56130         (is_cjk_encoding): Remove function.
56131         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56132         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56133         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56134         * NEWS: Document the change.
56135
56136 2007-09-01  Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/streq.h: Add double-inclusion guard.
56139
56140 2007-09-01  Karl Berry  <karl@gnu.org>
56141
56142         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56143
56144 2007-08-28  Jim Meyering  <jim@meyering.net>
56145
56146         Rename mreadlink_with_size to areadlink_with_size.
56147         * NEWS: Document the change.
56148         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56149         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56150         * lib/mreadlink.h: Rename this to...
56151         * lib/areadlink.h: ...this.
56152         * modules/mreadlink-with-size: Rename this to...
56153         * modules/areadlink-with-size: ...this.
56154         * lib/canonicalize.c: Reflect the renaming.
56155         * modules/canonicalize: Likewise.
56156
56157 2007-08-26  Bruno Haible  <bruno@clisp.org>
56158
56159         * gnulib-tool (func_import): When deciding which files to remove,
56160         consider also dangling symbolic links.
56161         Reported by Eric Blake.
56162
56163 2007-08-26  Bruno Haible  <bruno@clisp.org>
56164
56165         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56166
56167 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56168
56169         * lib/readline.c: Don't include getline.h, the prototype is now
56170         found in stdio.h.
56171
56172 2007-08-23  Jim Meyering  <jim@meyering.net>
56173
56174         Getdelim touchup.
56175         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56176         around the funlockfile call, since funlockfile never sets errno.
56177         Don't set errno upon failed realloc.
56178
56179 2007-08-22  Eric Blake  <ebb9@byu.net>
56180
56181         Getline touchups.
56182         * lib/getdelim.c (getdelim): Revert regression that required *n to
56183         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56185         getdelim, rather than whether implementation is missing.
56186         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56187         * lib/stdio_.h (getline): Also declare if replacement is
56188         required.
56189         * doc/functions/getdelim.texi: New file.
56190         * doc/functions/getline.texi: Likewise.
56191         * doc/gnulib.texi (Function Substitutes): Add new files.
56192         Reported by Bruno Haible.
56193
56194 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56195
56196         * users.txt: Add Guile.
56197
56198 2007-08-22  Eric Blake  <ebb9@byu.net>
56199
56200         * tests/test-getdelim.c (main): Use remove, not unlink.
56201         * tests/test-getline.c (main): Likewise.
56202
56203         Move getline and getdelim into stdio.h, per POSIX 200x.
56204         * modules/getline (Files): Remove getline.h.
56205         (Depends-on): Add stdio.
56206         (configure.ac): Add module indicator.
56207         * modules/getdelim (Files): Remove getdelim.h.
56208         (Depends-on): Add stdio.
56209         (configure.ac): Add module indicator.
56210         * modules/stdio (Makefile.am): Work with new indicators.
56211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56213         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56214         * lib/getdelim.h: Delete.
56215         * lib/getline.h: Delete.
56216         * lib/stdio_.h (getdelim, getline): Declare.
56217         * modules/getdelim-tests: New module.
56218         * modules/getline-tests: Likewise.
56219         * tests/test-getdelim.c: New file.
56220         * tests/test-getline.c: Likewise.
56221         * NEWS: Document the change.
56222         * lib/getline.c: Update choice of header.
56223         * lib/csharpcomp.c: Likewise.
56224         * lib/getpass.c: Likewise.
56225         * lib/javacomp.c: Likewise.
56226         * lib/javaversion.c: Likewise.
56227         * lib/yesno.c: Likewise.
56228         * lib/getdelim.c: Likewise.
56229         (getdelim): Set errno on failure, and avoid memory leak.
56230
56231 2007-08-19  Bruno Haible  <bruno@clisp.org>
56232
56233         * modules/closein (Depends-on): Add freadahead.
56234         * lib/closein.c: Include freadahead.h.
56235         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56236         is zero.
56237
56238 2007-08-19  Bruno Haible  <bruno@clisp.org>
56239
56240         * modules/freadahead-tests: New file.
56241         * tests/test-freadahead.sh: New file.
56242         * tests/test-freadahead.c: New file.
56243
56244         * modules/freadahead: New file.
56245         * lib/freadahead.h: New file.
56246         * lib/freadahead.c: New file.
56247         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56248         fbufmode, fpurge, freadable, fwritable.
56249
56250 2007-08-19  Eric Blake  <ebb9@byu.net>
56251
56252         Test yesno in combination with closein.
56253         * lib/yesno.c (yesno): Document use of stdin.
56254         * modules/yesno-tests (Files): New module.
56255         * tests/test-yesno.c (main): New file.
56256         * tests/test-yesno.sh: Likewise.
56257
56258 2007-08-19  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56261         * lib/fseeko.c (rpl_fseeko): Likewise.
56262         * lib/fseterr.c (fseterr): Likewise.
56263
56264 2007-08-19  Bruno Haible  <bruno@clisp.org>
56265
56266         * tests/test-lseek.c (main): Disable a test for BeOS.
56267         * doc/functions/lseek.texi: Document the BeOS bug.
56268
56269 2007-08-19  Bruno Haible  <bruno@clisp.org>
56270             Eric Blake  <ebb9@byu.net>
56271
56272         * lib/lseek.c: Include <sys/stat.h>.
56273         (rpl_lseek): Add workaround code also for Unix platforms.
56274         Needed for BeOS.
56275         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56276         * doc/functions/lseek.texi: Document BeOS definiency.
56277
56278 2007-08-18  Bruno Haible  <bruno@clisp.org>
56279
56280         * modules/fstrcmp-tests: New file.
56281         * tests/test-fstrcmp.c: New file.
56282
56283 2007-08-18  Bruno Haible  <bruno@clisp.org>
56284
56285         * modules/fstrcmp: New file, from GNU gettext with modifications.
56286         * lib/fstrcmp.h: New file, from GNU gettext.
56287         * lib/fstrcmp.c: New file, from GNU gettext.
56288         * MODULES.html.sh (String handling): Add fstrcmp.
56289
56290 2007-08-18  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56293         'bool'.
56294         (diag, compareseq): Remove const from the ctxt argument.
56295         (USE_HEURISTIC): Undefine at the end.
56296
56297 2007-08-18  Jim Meyering  <jim@meyering.net>
56298
56299         New file: lib/idcache.h
56300         * NEWS: Mention the addition.
56301         * modules/idcache (Files): Add lib/idcache.h
56302         * lib/idcache.c: Include "idcache.h".
56303         Don't include <sys/types.h>.
56304         Add a FIXME comment.
56305         Move file-scoped "static" declarations to the top.
56306         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56307
56308 2007-08-17  Bruno Haible  <bruno@clisp.org>
56309         and Paul Eggert  <eggert@cs.ucla.edu>
56310
56311         * MODULES.html.sh: Add diffseq.
56312         * modules/diffseq: New file.
56313         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56314         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56315
56316 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56317
56318         Import changes from coreutils for bootstrap script.
56319
56320         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56321
56322         * build-aux/bootstrap (slurp): Work even in environments where
56323         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56324         current code does not slurp files whose names start with ".", and
56325         this looks like it might be a troublesome area.
56326
56327         2007-07-11  Jim Meyering  <jim@meyering.net>
56328
56329         If there's a GPL vN copyright comment, require that N == 3.
56330
56331         2007-07-08  Jim Meyering  <jim@meyering.net>
56332
56333         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56334         * build-aux/bootstrap (mam_template): Move definition out of loop.
56335
56336         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56337
56338         * build-aux/bootstrap (symlink_to_dir): Rename function from
56339         symlink_to_gnulib.  Add a directory parameter.  Update all
56340         callers.
56341         (cp_mark_as_generated): Also check for -- and link to -- files in
56342         gl/.
56343
56344         2007-07-08  Jim Meyering  <jim@meyering.net>
56345
56346         Adapt to deeper hierarchy in gnulib.
56347         * build-aux/bootstrap (symlink_to_dir): If the destination
56348         directory doesn't exist, create it. This is required at least for
56349         "lib/uniwidth/cjk.h".
56350
56351         2007-05-15  Jim Meyering  <jim@meyering.net>
56352
56353         * build-aux/bootstrap: Now that generated Makefile.am files
56354         are no longer under version control, they must be created at
56355         bootstrap time.
56356
56357 2007-08-14  Ben Pfaff  <blp@gnu.org>
56358
56359         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56360
56361 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56362
56363         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56364         given the changes below.
56365         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56366         even on hosts that have padding bits beyond the supported 64.
56367
56368 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56371         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56372         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56373         depends on it.
56374         (xstrtol_error): Remove.
56375         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56376         but with a different signature.
56377         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56378         * lib/xstrtol-error.c: Include exitfail.h.
56379         (xstrtol_fatal): New function, with a different signature from the
56380         old xstrtol_error, so that the caller need not worry about passing
56381         in an exit status, or about storage management of the option argument.
56382         (xstrtol_error): Now a static function.  Redo signature to
56383         implement xstrtol_fatal.  Output the correct number of hyphens in
56384         front of the option so that the caller need not worry about
56385         storage management.
56386         (N_): New macro.
56387         (_): Remove; not used now.
56388         * modules/xstrtol: Depend on getopt.
56389         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56390         of old STRTOL_FATAL_ERROR macro.
56391         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56392         of test program.
56393         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56394         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56395
56396 2007-08-08  Eric Blake  <ebb9@byu.net>
56397
56398         * lib/xstrtol-error.c: Add missing include.
56399
56400         Move xstrtol messages into gnulib domain, when --pobase is used.
56401         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56402         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56403         * modules/xstrtol (Files): Distribute new file.
56404         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56405         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56406         * tests/test-xstrtol.c: ...into new file.
56407         * tests/test-xstrtoul.c: Also test xstrtoul.
56408         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56409         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56410         * tests/test-xstrtol.sh: Drive the tests.
56411         * tests/test-xstrtoimax.sh: Likewise.
56412         * tests/test-xstrtoumax.sh: Likewise.
56413         * modules/xstrtol-tests: New module.
56414         * modules/xstrtoimax-tests: Likewise.
56415         * modules/xstrtoumax-tests: Likewise.
56416
56417 2007-08-08  Jim Meyering  <jim@meyering.net>
56418
56419         New function: mfile_name_concat.
56420         * lib/filenamecat.c (mfile_name_concat): New function, just like
56421         file_name_concat, but return NULL upon failure rather than exiting
56422         with a diagnostic.
56423         * lib/filenamecat.h: Declare it.
56424
56425 2007-08-07  Bruno Haible  <bruno@clisp.org>
56426
56427         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56428         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56429         warning from gcc.
56430         Reported by Eric Blake.
56431
56432 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56433
56434         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56435         * modules/crypto/arcfour (License): Likewise.
56436         * modules/crypto/des-tests (License): Likewise.
56437         * modules/crypto/gc-arctwo-tests (License): Likewise.
56438         * modules/crypto/gc-des-tests (License): Likewise.
56439         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56440         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56441         * modules/crypto/gc-md2-tests (License): Likewise.
56442         * modules/crypto/gc-md4-tests (License): Likewise.
56443         * modules/crypto/gc-md5-tests (License): Likewise.
56444         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56445         * modules/crypto/gc-rijndael-tests (License): Likewise.
56446         * modules/crypto/gc-sha1-tests (License): Likewise.
56447         * modules/crypto/gc-tests (License): Likewise.
56448         * modules/crypto/hmac-md5 (License): Likewise.
56449         * modules/crypto/hmac-sha1 (License): Likewise.
56450         * modules/crypto/md2-tests (License): Likewise.
56451         * modules/crypto/md4-tests (License): Likewise.
56452         * modules/crypto/md5 (License): Likewise.
56453         * modules/crypto/rijndael (License): Likewise.
56454         * modules/crypto/sha1 (License): Likewise.
56455         * modules/memxor (License): Likewise.
56456
56457 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56458         and Bruno Haible  <bruno@clisp.org>
56459
56460         * NEWS: Describe interface changes to human, xstrtol.
56461         * lib/human.h: Include <xstrtol.h>.
56462         (human_options): Return enum strtol_error, not int.  Remove
56463         bool arg; take int * instead.
56464         * lib/human.c: Don't include "gettext.h".
56465         (_): Remove; no longer used.
56466         Don't include <xstrtol.h>, since human.h does it.
56467         (human_options): Adjust to abovementioned interface changes.
56468         Do not report error to stderr; that's now the caller's
56469         responsibility.
56470         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56471         interface change.
56472         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56473         Str, Argument_type_string.  All uses changed.  Put " argument"
56474         in diagnostics to make them clearer.  Change wording of suffix
56475         message for clarity.
56476         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56477         Argument_type_string.
56478         (STRTOL_FATAL_WARN): Remove; no longer used.
56479         * modules/human (Depends-on): Remove gettext-h.
56480
56481 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56482
56483         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56484
56485 2007-07-31  Bruno Haible  <bruno@clisp.org>
56486
56487         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56488         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56489         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56490
56491 2007-07-31  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56494         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56495
56496 2007-07-30  Bruno Haible  <bruno@clisp.org>
56497
56498         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56499         * modules/c-ctype (License): Likewise.
56500         * modules/c-strcase (License): Likewise.
56501         * modules/check-version (License): Likewise.
56502         * modules/iconv (License): Likewise.
56503         * modules/iconv_open (License): Likewise.
56504         * modules/read-file (License): Likewise.
56505         * modules/striconv (License): Likewise.
56506         * modules/strverscmp (License): Likewise.
56507         * modules/vasprintf (License): Likewise.
56508         * modules/crypto/des (License): Likewise.
56509         * modules/crypto/gc (License): Likewise.
56510         * modules/crypto/gc-arcfour (License): Likewise.
56511         * modules/crypto/gc-arctwo (License): Likewise.
56512         * modules/crypto/gc-des (License): Likewise.
56513         * modules/crypto/gc-hmac-md5 (License): Likewise.
56514         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56515         * modules/crypto/gc-md2 (License): Likewise.
56516         * modules/crypto/gc-md4 (License): Likewise.
56517         * modules/crypto/gc-md5 (License): Likewise.
56518         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56519         * modules/crypto/gc-random (License): Likewise.
56520         * modules/crypto/gc-rijndael (License): Likewise.
56521         * modules/crypto/gc-sha1 (License): Likewise.
56522         * modules/crypto/md2 (License): Likewise.
56523         * modules/crypto/md4 (License): Likewise.
56524
56525 2007-07-30  Jim Meyering  <jim@meyering.net>
56526
56527         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56528         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56529         it has valid stat data.  This bug would cause du not to count the
56530         sizes of inaccessible directories.
56531         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56532         in <http://bugzilla.redhat.com/250077>.
56533
56534 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56535             Bruno Haible  <bruno@clisp.org>
56536
56537         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56538         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56539         #include_next, gives a diagnostic about it, but reports no error in
56540         the exit code.
56541         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56542
56543 2007-07-24  Ben Pfaff  <blp@gnu.org>
56544
56545         Improve name: "count-one-bits" is better than "popcount".
56546         * MODULES.html.sh: Update name.
56547         * lib/popcount.h: Renamed lib/count-one-bits.h.
56548         (popcount): Renamed count_one_bits.
56549         (popcountl): Renamed count_one_bits_l.
56550         (popcountll): Renamed count_one_bits_ll.
56551         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56552         * modules/popcount: Renamed module/count-one-bits.
56553         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56554         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56555
56556 2007-07-23  Ben Pfaff  <blp@gnu.org>
56557
56558         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56559         better code generation, and add U to large constants to avoid
56560         warnings, in non-GCC case.
56561         Suggested by Bruno Haible.
56562
56563 2007-07-23  Ben Pfaff  <blp@gnu.org>
56564
56565         * lib/popcount.h: Use verify_true instead of if...abort.
56566         * modules/popcount: Depend on verify module.
56567         Suggested by Jim Meyering.
56568
56569 2007-07-23  Bruno Haible  <bruno@clisp.org>
56570
56571         * gnulib-tool (func_import): Create a .cvsignore file also when the
56572         directory is not yet in CVS but the toplevel directory is. When
56573         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56574         Reported by Karl Berry.
56575
56576 2007-07-22  Ben Pfaff  <blp@gnu.org>
56577
56578         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56579         case.
56580         Suggested by Eric Blake.
56581
56582 2007-07-22  Ben Pfaff  <blp@gnu.org>
56583
56584         New module: popcount.
56585         * MODULES.html.sh: Add popcount.
56586         * modules/popcount: New file.
56587         * modules/popcount-tests: New file.
56588         * tests/test-popcount.c: New file.
56589         * lib/popcount.h: New file.
56590         * m4/popcount.m4: New file.
56591
56592 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56593
56594         * build-aux/announce-gen: Update to GPLv3.
56595
56596         * build-aux/config.guess: Update from config.
56597
56598 2007-07-21  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56601         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56602
56603 2007-07-20  Jim Meyering  <jim@meyering.net>
56604
56605         * check-module: Diagnose a self-dependency.
56606
56607 2007-07-19  Bruno Haible  <bruno@clisp.org>
56608
56609         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56610         empty.
56611         Reported by Eric Blake.
56612
56613 2007-07-18  Bruno Haible  <bruno@clisp.org>
56614
56615         * gnulib-tool: New options --po-base, --po-domain.
56616         (func_usage): Document them.
56617         (pobase, po_domain): New variables.
56618         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56619         DEFAULT_TEXT_DOMAIN.
56620         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56621         (func_import): Consider pobase and po_domain. Create a po/ directory.
56622         (func_create_testdir): Set pobase and po_domain to empty.
56623         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56624         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56625
56626 2007-07-18  Bruno Haible  <bruno@clisp.org>
56627
56628         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56629         EXTRA_DIST augmentation for files in build-aux/.
56630
56631 2007-07-16  Bruno Haible  <bruno@clisp.org>
56632
56633         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56634         * modules/getdelim (License): Likewise.
56635
56636 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56637
56638         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56639         * modules/d-type (License): Likewise.
56640         * modules/extensions (License): Likewise.
56641         * modules/fnmatch (License): Likewise.
56642         * modules/fseeko (License): Likewise.
56643         * modules/getaddrinfo (License): Likewise.
56644         * modules/getline (License): Likewise.
56645         * modules/getlogin_r (License): Likewise.
56646         * modules/getpass (License): Likewise.
56647         * modules/gettimeofday (License): Likewise.
56648         * modules/glob (License): Likewise.
56649         * modules/inet_ntop (License): Likewise.
56650         * modules/malloc (License): Likewise.
56651         * modules/malloca (License): Likewise.
56652         * modules/memmem (License): Likewise.
56653         * modules/mempcpy (License): Likewise.
56654         * modules/memset (License): Likewise.
56655         * modules/minmax (License): Likewise.
56656         * modules/mktime (License): Likewise.
56657         * modules/netinet_in (License): Likewise.
56658         * modules/pathmax (License): Likewise.
56659         * modules/poll (License): Likewise.
56660         * modules/regex (License): Likewise.
56661         * modules/snprintf (License): Likewise.
56662         * modules/stdbool (License): Likewise.
56663         * modules/stdint (License): Likewise.
56664         * modules/stdio (License): Likewise.
56665         * modules/strcase (License): Likewise.
56666         * modules/strcasestr (License): Likewise.
56667         * modules/strdup (License): Likewise.
56668         * modules/string (License): Likewise.
56669         * modules/strndup (License): Likewise.
56670         * modules/strnlen (License): Likewise.
56671         * modules/strpbrk (License): Likewise.
56672         * modules/strptime (License): Likewise.
56673         * modules/strsep (License): Likewise.
56674         * modules/sys_select (License): Likewise.
56675         * modules/sys_socket (License): Likewise.
56676         * modules/sys_stat (License): Likewise.
56677         * modules/sys_time (License): Likewise.
56678         * modules/time (License): Likewise.
56679         * modules/time_r (License): Likewise.
56680         * modules/timegm (License): Likewise.
56681         * modules/unistd (License): Likewise.
56682         * modules/vsnprintf (License): Likewise.
56683         * modules/wctype (License): Likewise.
56684
56685 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56686
56687         * modules/argz (License): LGPLv2+.
56688
56689 2007-07-15  Karl Berry  <karl@gnu.org>
56690
56691         * doc/gnulib.texi: revise node structure per new fdl.texi.
56692
56693 2007-07-14  Bruno Haible  <bruno@clisp.org>
56694
56695         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56696         the output file.
56697         * lib/uniname/uninames.h: Regenerated.
56698
56699 2007-07-14  Karl Berry  <karl@gnu.org>
56700
56701         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56702         omitting sectioning and index commands.
56703
56704 2007-07-13  Bruno Haible  <bruno@clisp.org>
56705
56706         New gnulib-tool option --more-symlinks.
56707         * gnulib-tool (func_usage): Document --more-symlinks.
56708         (do_copyrights): New variable.
56709         Recognize option --more-symlinks.
56710         (func_import): Don't add a copyright notice transform to
56711         sed_transform_lib_file if do_copyrights is empty.
56712
56713 2007-07-13  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/vasnprintf.c (decimal_point_char): Define also if
56716         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56717         && !NEED_PRINTF_DIRECTIVE_A.
56718         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56719         Gary V. Vaughan <gary@gnu.org>.
56720
56721 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56722
56723         * lib/inttypes_.h: Undo previous change, since it was fixed
56724         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56725
56726 2007-07-13  Bruno Haible  <bruno@clisp.org>
56727
56728         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56729         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56730
56731 2007-07-13  Jim Meyering  <jim@meyering.net>
56732
56733         df: Don't fail for Tru64's "file-on-file mount".
56734         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56735         so we fall through and use statfs instead.  Details here:
56736         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56737         Reported by Albert Chin.
56738
56739 2007-07-13  Bruno Haible  <bruno@clisp.org>
56740
56741         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56742         * modules/configmake (License): Likewise.
56743         * modules/gettext (License): Likewise.
56744         * modules/gettext-h (License): Likewise.
56745         * modules/include_next (License): Likewise.
56746         * modules/link-warning (License): Likewise.
56747         * modules/localcharset (License): Likewise.
56748         * modules/localename (License): Likewise.
56749         * modules/lock (License): Likewise.
56750         * modules/relocatable-lib-lgpl (License): Likewise.
56751         * modules/size_max (License): Likewise.
56752         * modules/vasnprintf (License): Likewise.
56753         * modules/wchar (License): Likewise.
56754         * modules/xsize (License): Likewise.
56755
56756 2007-07-13  Bruno Haible  <bruno@clisp.org>
56757
56758         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56759         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56760
56761 2007-07-12  Bruno Haible  <bruno@clisp.org>
56762
56763         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56764         in the modules files.
56765
56766 2007-07-11  Karl Berry  <karl@gnu.org>
56767
56768         * MODULES.html.sh (func_module): use
56769          sed -e '\|^'"${includefile}"'$|d'
56770          instead of /.../d, to avoid errors on $includefile's containing /.
56771
56772 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56773
56774         * gnulib-tool (func_import): Avoid duplication of --avoid
56775         statements
56776         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56777         names to `_' in variable names.
56778
56779 2007-07-10  Eric Blake  <ebb9@byu.net>
56780
56781         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56782         * NEWS: Document this change.
56783
56784 2007-07-08  Bruno Haible  <bruno@clisp.org>
56785
56786         Update to Unicode 5.0.
56787         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56788         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56789         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56790         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56791         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56792         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56793         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56794         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56795         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56796         U+10A3F, U+1D242..U+1D244.
56797         (nonspacing_table_ind): Update.
56798         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56799         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56800
56801 2007-07-08  Bruno Haible  <bruno@clisp.org>
56802
56803         Update to Unicode 5.0.
56804         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56805         code transform. Extend the name index field of unicode_name_to_code and
56806         unicode_code_to_name from 16 to 24 bits.
56807         * lib/uniname/uniname.c (unicode_character_name,
56808         unicode_name_character): Add the range 0x12xxx to the code transform.
56809         * lib/uniname/uninames.h: Regenerated.
56810         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56811
56812 2007-07-07  Bruno Haible  <bruno@clisp.org>
56813
56814         * modules/wcwidth-tests: New file.
56815         * tests/test-wcwidth.c: New file.
56816
56817         Work around MacOS X wcwidth() bug.
56818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56819         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56820         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56821         original wcwidth in non-UTF-8 locales.
56822         * modules/wcwidth (Depends-on): Add localcharset, streq,
56823         uniwidth/width.
56824         * doc/functions/wcwidth.texi: Update.
56825
56826 2007-07-07  Bruno Haible  <bruno@clisp.org>
56827
56828         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56829         (wcwidth): New declaration.
56830         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56831         macros.
56832         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56833         here. Prepare for creating <wchar.h> unconditionally.
56834         * modules/wchar (Depends-on): Add link-warning.
56835         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56836         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56837         * lib/wcwidth.h: Remove file.
56838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56839         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56840         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56841         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56842         (Include): Replace wcwidth.h with <wchar.h>.
56843         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56844         * lib/mbchar.h: Don't include wcwidth.h.
56845         * lib/mbswidth.c: Likewise.
56846         * NEWS: Mention the change.
56847
56848 2007-07-07  Bruno Haible  <bruno@clisp.org>
56849
56850         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56851         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56852         definition with an external declaration.
56853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56854         defined as a function. Remove AC_C_INLINE requirement.
56855         * modules/wcwidth (Files): Add lib/wcwidth.c.
56856         (Makefile.am): Remove redundant statement.
56857
56858 2007-07-07  Bruno Haible  <bruno@clisp.org>
56859
56860         * MODULES.html.sh (Unicode string functions): Add the new modules.
56861
56862         * tests/uniwidth/test-u32-strwidth.c: New file.
56863         * modules/uniwidth/u32-strwidth-tests: New file.
56864
56865         * lib/uniwidth/u32-strwidth.c: New file.
56866         * modules/uniwidth/u32-strwidth: New file.
56867
56868         * tests/uniwidth/test-u16-strwidth.c: New file.
56869         * modules/uniwidth/u16-strwidth-tests: New file.
56870
56871         * lib/uniwidth/u16-strwidth.c: New file.
56872         * modules/uniwidth/u16-strwidth: New file.
56873
56874         * tests/uniwidth/test-u8-strwidth.c: New file.
56875         * modules/uniwidth/u8-strwidth-tests: New file.
56876
56877         * lib/uniwidth/u8-strwidth.c: New file.
56878         * modules/uniwidth/u8-strwidth: New file.
56879
56880         * tests/uniwidth/test-u32-width.c: New file.
56881         * modules/uniwidth/u32-width-tests: New file.
56882
56883         * lib/uniwidth/u32-width.c: New file.
56884         * modules/uniwidth/u32-width: New file.
56885
56886         * tests/uniwidth/test-u16-width.c: New file.
56887         * modules/uniwidth/u16-width-tests: New file.
56888
56889         * lib/uniwidth/u16-width.c: New file.
56890         * modules/uniwidth/u16-width: New file.
56891
56892         * tests/uniwidth/test-u8-width.c: New file.
56893         * modules/uniwidth/u8-width-tests: New file.
56894
56895         * lib/uniwidth/u8-width.c: New file.
56896         * modules/uniwidth/u8-width: New file.
56897
56898         * tests/uniwidth/test-uc_width.c: New file.
56899         * modules/uniwidth/width-tests: New file.
56900
56901         * lib/uniwidth/width.c: New file, from GNU libiconv.
56902         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56903         * modules/uniwidth/width: New file.
56904
56905         * lib/uniwidth.h: New file, from GNU libiconv.
56906         * modules/uniwidth/base: New file.
56907
56908 2007-07-07  Bruno Haible  <bruno@clisp.org>
56909
56910         * lib/uniname.h: New file, from GNU gettext.
56911         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56912         * lib/uniname/uninames.h: New file, from GNU gettext.
56913         * lib/uniname/uniname.c: New file, from GNU gettext.
56914         * tests/uniname/test-uninames.sh: New file.
56915         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56916         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56917         * modules/uniname/base: New file.
56918         * modules/uniname/uniname: New file.
56919         * modules/uniname/uniname-tests: New file.
56920         * MODULES.html.sh (Unicode string functions): Add the new modules.
56921
56922 2007-07-06  Bruno Haible  <bruno@clisp.org>
56923
56924         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56925
56926 2007-07-06  Bruno Haible  <bruno@clisp.org>
56927
56928         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56929         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56930         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56931         include <sys/time.h>.
56932         Reported by Eric Blake.
56933
56934 2007-07-06  Eric Blake  <ebb9@byu.net>
56935
56936         Fix testing canonicalize on cygwin.
56937         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56938         Revert patch from 2007-06-19.
56939         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56940         canonicalize module is also in use.
56941         * tests/test-canonicalize.c: New file.
56942         * tests/test-canonicalize.sh: Likewise.
56943         * modules/canonicalize-tests: Likewise.
56944
56945 2007-07-06  Jim Meyering  <jim@meyering.net>
56946
56947         * lib/getugroups.c (getugroups): Detect getgrent failure.
56948         Adjust comment to reflect reality: this function may return -1.
56949
56950 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56951
56952         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56953         the new TP address.
56954         (usage): Fix typo
56955         (gnulib_mk): New variable.
56956
56957 2007-07-05  Jim Meyering  <jim@meyering.net>
56958
56959         Don't let endgrent clobber errno, no matter how improbable.
56960         * lib/getugroups.c (getugroups): Save and restore errno around
56961         endgrent call.
56962
56963         Close the group DB even when failing with 2^31 or more members.
56964         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56965
56966 2007-07-04  Jim Meyering  <jim@meyering.net>
56967
56968         * lib/getugroups.h: New file.
56969         * lib/getugroups.c: Include "getugroups.h".
56970         Remove uses of "register" keyword.
56971         Move local variable, "cp", down into scope where used.
56972         Give "username" parameter the "const" attribute.
56973         * modules/getugroups (Files): Add lib/getugroups.h
56974
56975 2007-07-04  Karl Berry  <karl@gnu.org>
56976
56977         * MODULES.html.sh (func_all_modules): Complete rename of
56978         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56979
56980 2007-07-02  Bruno Haible  <bruno@clisp.org>
56981
56982         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56983         mode, when inttypes.h comes from gnulib.
56984         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56985
56986 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56987
56988         * NEWS: Mention lgpl module name change.
56989
56990         * modules/lgpl-2.1: Renamed from lgpl.
56991
56992         * NEWS: Mention gpl module name change.
56993
56994         * modules/gpl-3.0: New file, based on gpl-2.0.
56995
56996         * modules/gpl-2.0: Renamed from gpl.
56997
56998         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56999         doc/gpl-2.0.texi.
57000
57001 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57002
57003         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57004         #define __STDC_LIMIT_MACROS temporarily while including
57005         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57006         Problem reported by Joel E. Denny in
57007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57008
57009 2007-07-01  Bruno Haible  <bruno@clisp.org>
57010
57011         * lib/unistdio.h: New file.
57012         * lib/unistdio/u-asnprintf.h: New file.
57013         * lib/unistdio/u-asprintf.h: New file.
57014         * lib/unistdio/u-printf-args.c: New file.
57015         * lib/unistdio/u-printf-args.h: New file.
57016         * lib/unistdio/u-printf-parse.h: New file.
57017         * lib/unistdio/u-snprintf.h: New file.
57018         * lib/unistdio/u-sprintf.h: New file.
57019         * lib/unistdio/u-vasprintf.h: New file.
57020         * lib/unistdio/u-vsnprintf.h: New file.
57021         * lib/unistdio/u-vsprintf.h: New file.
57022         * lib/unistdio/ulc-asnprintf.c: New file.
57023         * lib/unistdio/ulc-asprintf.c: New file.
57024         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57025         * lib/unistdio/ulc-printf-parse.c: New file.
57026         * lib/unistdio/ulc-snprintf.c: New file.
57027         * lib/unistdio/ulc-sprintf.c: New file.
57028         * lib/unistdio/ulc-vasnprintf.c: New file.
57029         * lib/unistdio/ulc-vasprintf.c: New file.
57030         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57031         * lib/unistdio/ulc-vsnprintf.c: New file.
57032         * lib/unistdio/ulc-vsprintf.c: New file.
57033         * lib/unistdio/u8-asnprintf.c: New file.
57034         * lib/unistdio/u8-asprintf.c: New file.
57035         * lib/unistdio/u8-printf-parse.c: New file.
57036         * lib/unistdio/u8-snprintf.c: New file.
57037         * lib/unistdio/u8-sprintf.c: New file.
57038         * lib/unistdio/u8-vasnprintf.c: New file.
57039         * lib/unistdio/u8-vasprintf.c: New file.
57040         * lib/unistdio/u8-vsnprintf.c: New file.
57041         * lib/unistdio/u8-vsprintf.c: New file.
57042         * lib/unistdio/u8-u8-asnprintf.c: New file.
57043         * lib/unistdio/u8-u8-asprintf.c: New file.
57044         * lib/unistdio/u8-u8-snprintf.c: New file.
57045         * lib/unistdio/u8-u8-sprintf.c: New file.
57046         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57047         * lib/unistdio/u8-u8-vasprintf.c: New file.
57048         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57049         * lib/unistdio/u8-u8-vsprintf.c: New file.
57050         * lib/unistdio/u16-asnprintf.c: New file.
57051         * lib/unistdio/u16-asprintf.c: New file.
57052         * lib/unistdio/u16-printf-parse.c: New file.
57053         * lib/unistdio/u16-snprintf.c: New file.
57054         * lib/unistdio/u16-sprintf.c: New file.
57055         * lib/unistdio/u16-vasnprintf.c: New file.
57056         * lib/unistdio/u16-vasprintf.c: New file.
57057         * lib/unistdio/u16-vsnprintf.c: New file.
57058         * lib/unistdio/u16-vsprintf.c: New file.
57059         * lib/unistdio/u16-u16-asnprintf.c: New file.
57060         * lib/unistdio/u16-u16-asprintf.c: New file.
57061         * lib/unistdio/u16-u16-snprintf.c: New file.
57062         * lib/unistdio/u16-u16-sprintf.c: New file.
57063         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57064         * lib/unistdio/u16-u16-vasprintf.c: New file.
57065         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57066         * lib/unistdio/u16-u16-vsprintf.c: New file.
57067         * lib/unistdio/u32-asnprintf.c: New file.
57068         * lib/unistdio/u32-asprintf.c: New file.
57069         * lib/unistdio/u32-printf-parse.c: New file.
57070         * lib/unistdio/u32-snprintf.c: New file.
57071         * lib/unistdio/u32-sprintf.c: New file.
57072         * lib/unistdio/u32-vasnprintf.c: New file.
57073         * lib/unistdio/u32-vasprintf.c: New file.
57074         * lib/unistdio/u32-vsnprintf.c: New file.
57075         * lib/unistdio/u32-vsprintf.c: New file.
57076         * lib/unistdio/u32-u32-asnprintf.c: New file.
57077         * lib/unistdio/u32-u32-asprintf.c: New file.
57078         * lib/unistdio/u32-u32-snprintf.c: New file.
57079         * lib/unistdio/u32-u32-sprintf.c: New file.
57080         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57081         * lib/unistdio/u32-u32-vasprintf.c: New file.
57082         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57083         * lib/unistdio/u32-u32-vsprintf.c: New file.
57084         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57085         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57086         * tests/unistdio/test-ulc-printf1.h: New file.
57087         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57088         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57089         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57090         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57091         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57092         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57093         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57094         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57095         * tests/unistdio/test-u8-asnprintf1.c: New file.
57096         * tests/unistdio/test-u8-asnprintf1.h: New file.
57097         * tests/unistdio/test-u8-printf1.h: New file.
57098         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57099         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57100         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57101         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57102         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57103         * tests/unistdio/test-u8-vasprintf1.c: New file.
57104         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57105         * tests/unistdio/test-u8-vsprintf1.c: New file.
57106         * tests/unistdio/test-u16-asnprintf1.c: New file.
57107         * tests/unistdio/test-u16-asnprintf1.h: New file.
57108         * tests/unistdio/test-u16-printf1.h: New file.
57109         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57110         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57111         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57112         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57113         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57114         * tests/unistdio/test-u16-vasprintf1.c: New file.
57115         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57116         * tests/unistdio/test-u16-vsprintf1.c: New file.
57117         * tests/unistdio/test-u32-asnprintf1.c: New file.
57118         * tests/unistdio/test-u32-asnprintf1.h: New file.
57119         * tests/unistdio/test-u32-printf1.h: New file.
57120         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57121         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57122         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57123         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57124         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57125         * tests/unistdio/test-u32-vasprintf1.c: New file.
57126         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57127         * tests/unistdio/test-u32-vsprintf1.c: New file.
57128         * modules/unistdio/base: New file.
57129         * modules/unistdio/u-printf-args: New file.
57130         * modules/unistdio/ulc-asnprintf: New file.
57131         * modules/unistdio/ulc-asprintf: New file.
57132         * modules/unistdio/ulc-fprintf: New file.
57133         * modules/unistdio/ulc-printf-parse: New file.
57134         * modules/unistdio/ulc-snprintf: New file.
57135         * modules/unistdio/ulc-sprintf: New file.
57136         * modules/unistdio/ulc-vasnprintf: New file.
57137         * modules/unistdio/ulc-vasprintf: New file.
57138         * modules/unistdio/ulc-vfprintf: New file.
57139         * modules/unistdio/ulc-vsnprintf: New file.
57140         * modules/unistdio/ulc-vsprintf: New file.
57141         * modules/unistdio/u8-asnprintf: New file.
57142         * modules/unistdio/u8-asprintf: New file.
57143         * modules/unistdio/u8-printf-parse: New file.
57144         * modules/unistdio/u8-snprintf: New file.
57145         * modules/unistdio/u8-sprintf: New file.
57146         * modules/unistdio/u8-vasnprintf: New file.
57147         * modules/unistdio/u8-vasprintf: New file.
57148         * modules/unistdio/u8-vsnprintf: New file.
57149         * modules/unistdio/u8-vsprintf: New file.
57150         * modules/unistdio/u8-u8-asnprintf: New file.
57151         * modules/unistdio/u8-u8-asprintf: New file.
57152         * modules/unistdio/u8-u8-snprintf: New file.
57153         * modules/unistdio/u8-u8-sprintf: New file.
57154         * modules/unistdio/u8-u8-vasnprintf: New file.
57155         * modules/unistdio/u8-u8-vasprintf: New file.
57156         * modules/unistdio/u8-u8-vsnprintf: New file.
57157         * modules/unistdio/u8-u8-vsprintf: New file.
57158         * modules/unistdio/u16-asnprintf: New file.
57159         * modules/unistdio/u16-asprintf: New file.
57160         * modules/unistdio/u16-printf-parse: New file.
57161         * modules/unistdio/u16-snprintf: New file.
57162         * modules/unistdio/u16-sprintf: New file.
57163         * modules/unistdio/u16-vasnprintf: New file.
57164         * modules/unistdio/u16-vasprintf: New file.
57165         * modules/unistdio/u16-vsnprintf: New file.
57166         * modules/unistdio/u16-vsprintf: New file.
57167         * modules/unistdio/u16-u16-asnprintf: New file.
57168         * modules/unistdio/u16-u16-asprintf: New file.
57169         * modules/unistdio/u16-u16-snprintf: New file.
57170         * modules/unistdio/u16-u16-sprintf: New file.
57171         * modules/unistdio/u16-u16-vasnprintf: New file.
57172         * modules/unistdio/u16-u16-vasprintf: New file.
57173         * modules/unistdio/u16-u16-vsnprintf: New file.
57174         * modules/unistdio/u16-u16-vsprintf: New file.
57175         * modules/unistdio/u32-asnprintf: New file.
57176         * modules/unistdio/u32-asprintf: New file.
57177         * modules/unistdio/u32-printf-parse: New file.
57178         * modules/unistdio/u32-snprintf: New file.
57179         * modules/unistdio/u32-sprintf: New file.
57180         * modules/unistdio/u32-vasnprintf: New file.
57181         * modules/unistdio/u32-vasprintf: New file.
57182         * modules/unistdio/u32-vsnprintf: New file.
57183         * modules/unistdio/u32-vsprintf: New file.
57184         * modules/unistdio/u32-u32-asnprintf: New file.
57185         * modules/unistdio/u32-u32-asprintf: New file.
57186         * modules/unistdio/u32-u32-snprintf: New file.
57187         * modules/unistdio/u32-u32-sprintf: New file.
57188         * modules/unistdio/u32-u32-vasnprintf: New file.
57189         * modules/unistdio/u32-u32-vasprintf: New file.
57190         * modules/unistdio/u32-u32-vsnprintf: New file.
57191         * modules/unistdio/u32-u32-vsprintf: New file.
57192         * modules/unistdio/ulc-asnprintf-tests: New file.
57193         * modules/unistdio/ulc-vasnprintf-tests: New file.
57194         * modules/unistdio/ulc-vasprintf-tests: New file.
57195         * modules/unistdio/ulc-vsnprintf-tests: New file.
57196         * modules/unistdio/ulc-vsprintf-tests: New file.
57197         * modules/unistdio/u8-asnprintf-tests: New file.
57198         * modules/unistdio/u8-vasnprintf-tests: New file.
57199         * modules/unistdio/u8-vasprintf-tests: New file.
57200         * modules/unistdio/u8-vsnprintf-tests: New file.
57201         * modules/unistdio/u8-vsprintf-tests: New file.
57202         * modules/unistdio/u16-asnprintf-tests: New file.
57203         * modules/unistdio/u16-vasnprintf-tests: New file.
57204         * modules/unistdio/u16-vasprintf-tests: New file.
57205         * modules/unistdio/u16-vsnprintf-tests: New file.
57206         * modules/unistdio/u16-vsprintf-tests: New file.
57207         * modules/unistdio/u32-asnprintf-tests: New file.
57208         * modules/unistdio/u32-vasnprintf-tests: New file.
57209         * modules/unistdio/u32-vasprintf-tests: New file.
57210         * modules/unistdio/u32-vsnprintf-tests: New file.
57211         * modules/unistdio/u32-vsprintf-tests: New file.
57212         * MODULES.html.sh (Unicode string functions): Add the new modules.
57213
57214 2007-07-01  Bruno Haible  <bruno@clisp.org>
57215
57216         * lib/sprintf.c (sprintf): Limit the available length estimation,
57217         to avoid address wraparound.
57218         * lib/vsprintf.c (vsprintf): Likewise.
57219         * modules/sprintf-posix (Dependencies): Add stdint.
57220         * modules/vsprintf-posix (Dependencies): Likewise.
57221
57222 2007-07-01  Bruno Haible  <bruno@clisp.org>
57223
57224         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57225         Windows PATH as well. Conservative double-quoting. Comments.
57226
57227 2007-07-01  Bruno Haible  <bruno@clisp.org>
57228             Eric Blake  <ebb9@byu.net>
57229             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57230
57231         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57232         empty components in $PATH, denoting '.'.
57233
57234 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57235
57236         * gnulib-tool: Fix indentation.
57237         (func_create_megatestdir): Likewise.
57238         Report by Bruno Haible.
57239
57240 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57241
57242         Sync from Automake.
57243         * build-aux/gnupload: Fix shell portability issues with for loops.
57244         Report by Karl Berry.
57245
57246 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57247
57248         * build-aux/maint.mk (POURL): Use translationproject.org.
57249
57250 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57251             Bruno Haible  <bruno@clisp.org>
57252
57253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57254         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57255         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57256         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57257         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57258
57259 2007-06-27  Bruno Haible  <bruno@clisp.org>
57260
57261         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57262         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57263
57264 2007-06-26  Karl Berry  <karl@gnu.org>
57265
57266         * MODULES.html.sh: remove xreadlink-with-size.
57267
57268 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57271         method that I hope also handles the double-include problem noted
57272         by Bruno Haible in
57273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57274
57275 2007-06-23  Bruno Haible  <bruno@clisp.org>
57276
57277         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57278         Don't let the 'mostlyclean' target fail if the last subdirectory could
57279         not be removed.
57280         Reported by Karl Berry.
57281
57282 2007-06-23  Bruno Haible  <bruno@clisp.org>
57283
57284         * gnulib-tool (echo): Add a speedier workaround for ksh.
57285         * tests/test-echo.sh: Likewise.
57286
57287 2007-06-23  Bruno Haible  <bruno@clisp.org>
57288
57289         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57290         * tests/test-echo.sh: Likewise.
57291
57292 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57293
57294         * gnulib-tool (IFS): Initialize early, so we don't set it to
57295         empty later.
57296         (self_abspathname): Rewrite algorithm to set it, reindent.
57297         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57298         (func_create_megatestdir): Merge some sed scripts.
57299
57300 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57301
57302         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57303         exposed by Sun Studio 11 cc on Solaris 8.
57304
57305 2007-06-22  Bruno Haible  <bruno@clisp.org>
57306
57307         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57308         backslashes.
57309         * tests/test-echo.sh: New file.
57310
57311 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57312
57313         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57314         simplify `sed_replace_build_aux' scripts, they are portable but
57315         echoing them with `echo' is not.
57316         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57317
57318 2007-06-21  Karl Berry  <karl@gnu.org>
57319
57320         * config/srclist.txt: guess we can't handle the licenses via
57321         srclist at the moment.
57322
57323 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57324
57325         * MODULES.html.sh: Add include_next.
57326         * modules/include_next: New file.
57327
57328 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57329
57330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57331         INCLUDE_NEXT.
57332         (gl_CHECK_NEXT_HEADERS): New macro.
57333         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57334         the obsolescent gl_ABSOLUTE_HEADER.
57335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57336         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57337         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57338         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57339         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57340         * m4/math_h.m4 (gl_MATH_H): Likewise.
57341         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57342         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57343         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57344         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57345         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57346         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57347         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57351         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57352         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57353         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57354         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57355         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57356         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57357         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57358         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57359         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57360         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57361         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57362         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57363         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57364         * lib/float_.h: Likewise.
57365         * lib/inttypes_.h: Likewise.
57366         * lib/math_.h: Likewise.
57367         * lib/search_.h: Likewise.
57368         * lib/signal_.h: Likewise.
57369         * lib/stdint_.h: Likewise.
57370         * lib/stdio_.h: Likewise.
57371         * lib/stdlib_.h: Likewise.
57372         * lib/string_.h: Likewise.
57373         * lib/sys_stat_.h: Likewise.
57374         * lib/sys_time_.h: Likewise.
57375         * lib/time_.h: Likewise.
57376         * lib/unistd_.h: Likewise.
57377         * lib/wchar_.h: Likewise.
57378         * lib/wctype_.h: Likewise.
57379         * lib/dirent_.h: Likewise.
57380         * lib/iconv_.h: Likewise.
57381         * lib/locale_.h: Likewise.
57382         * lib/netinet_in_.h: Likewise.
57383         * lib/sys_select_.h: Likewise.
57384         * lib/sys_socket_.h: Likewise.
57385         * lib/sysexits_.h: Likewise.
57386         * modules/fcntl (Depends-on): Depend on include_next, not
57387         absolute_header.
57388         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57389         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57390         * modules/fchdir: Likewise.
57391         * modules/float: Likewise.
57392         * modules/iconv_open: Likewise.
57393         * modules/inttypes: Likewise.
57394         * modules/locale: Likewise.
57395         * modules/math: Likewise.
57396         * modules/netinet_in: Likewise.
57397         * modules/search: Likewise.
57398         * modules/signal: Likewise.
57399         * modules/stdint: Likewise.
57400         * modules/stdio: Likewise.
57401         * modules/stdlib: Likewise.
57402         * modules/string: Likewise.
57403         * modules/sys_select: Likewise.
57404         * modules/sys_socket: Likewise.
57405         * modules/sys_stat: Likewise.
57406         * modules/sys_time: Likewise.
57407         * modules/sysexits: Likewise.
57408         * modules/time: Likewise.
57409         * modules/unistd: Likewise.
57410         * modules/wchar: Likewise.
57411         * modules/wctype: Likewise.
57412         * modules/sys_stat: Change maintainer to "all".
57413         * modules/unistd: Likewise.
57414
57415 2007-06-20  Karl Berry  <karl@gnu.org>
57416
57417         * config/srclist.txt: track www changes in license files.
57418
57419 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57420
57421         * build-aux/bootstrap: Remove stray dot.
57422         Make sure build_aux settings are honored when linking
57423         gnulib_extra_files.
57424
57425 2007-06-19  Eric Blake  <ebb9@byu.net>
57426
57427         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57428         Allow compilation on cygwin.
57429
57430 2007-06-19  Jim Meyering  <jim@meyering.net>
57431
57432         xreadlink-with-size: Remove module.  No longer used.
57433         Ex-callers now use xreadlink or mreadlink-with-size.
57434         * modules/xreadlink-with-size: Remove module.
57435         * lib/xreadlink-with-size.c: Remove file.
57436         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57437         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57438         just before the function definition *is* accurate.
57439
57440         Eliminate one way canonicalize_filename_mode could exit.
57441         * lib/canonicalize.c (canonicalize_filename_mode):
57442         Use mreadlink_with_size, not xreadlink_with_size.
57443
57444 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         Detect porting problems to FreeBSD/arm, which has time_t wider than
57447         long int.  Original problem reported for GNU diff by Xin Li in
57448         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57449         * modules/getdate (Depends-on): Add intprops, verify.
57450         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57451         is an integer type no wider than long int.
57452
57453 2007-06-18  Jim Meyering  <jim@meyering.net>
57454
57455         New module: mreadlink-with-size.
57456         * MODULES.html.sh: Add mreadlink-with-size.
57457         * modules/mreadlink-with-size: New module
57458         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57459         not xreadlink-with-size.
57460         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57461
57462 2007-06-16  Bruno Haible  <bruno@clisp.org>
57463
57464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57465         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57466         Reported by Gary V. Vaughan <gary@gnu.org>.
57467
57468 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57469
57470         Revamp lchown so that it lives in unistd.h where it belongs.
57471         * lib/lchown.h: Remove.
57472         * lib/dirchownmod.c: Don't include lib/lchown.h.
57473         * lib/fchownat.c: Likewise.
57474         * lib/openat.c: Likewise.
57475         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57476         does not follow symlinks.
57477         (EOPNOTSUPP): Define if not defined.
57478         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57479         is defined to 0.
57480         (lchown): New decl.
57481         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57482         Do not check for lchown decl.
57483         Set REPLACE_LCHOWN.
57484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57485         REPLACE_LCHOWN.
57486         * modules/chown: Make it clear it follows symlinks.
57487         * modules/lchown: Make it clear it doesn't follow symlinks.
57488         (Files): Remove lib/lchown.h
57489         (Depends-on): Add unistd.
57490         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57491         (Include): Include <unistd.h>, not "lchown.h".
57492         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57493         REPLACE_LCHOWN.
57494
57495 2007-06-15  Jim Meyering  <jim@meyering.net>
57496
57497         Change license (GPL to LGPL) of fsusage and dependents.
57498         * modules/fsusage (License): Change to LGPL.
57499         * modules/full-read (License): Likewise.
57500         * modules/full-write (License): Likewise.
57501         * modules/safe-read (License): Likewise.
57502         * modules/safe-write (License): Likewise.
57503
57504 2007-06-14  Ben Pfaff  <blp@gnu.org>
57505
57506         Missing part of allocsa -> malloca transition.
57507         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57508         gl_MALLOCA.
57509
57510 2007-06-12  Bruno Haible  <bruno@clisp.org>
57511
57512         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57513         to ia64, x86_64, i386.
57514         Reported by Eric Blake.
57515
57516 2007-06-12  Bruno Haible  <bruno@clisp.org>
57517
57518         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57519         cross-compiling to x86_64.
57520
57521 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57522
57523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57524         glitch reported by Ralf Wildenhues in
57525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57526
57527         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57528         Vin Shelton.
57529
57530 2007-06-11  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57533         replacement string.
57534         Reported by Eric Blake.
57535
57536 2007-06-10  Bruno Haible  <bruno@clisp.org>
57537
57538         Prepare vasnprintf code for use with Unicode strings.
57539         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57540         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57541         TYPE_U32_STRING.
57542         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57543         a_u32_string variants.
57544         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57545         * lib/printf-args.c: Don't include config.h and the specification
57546         header if PRINTF_FETCHARGS is already defined.
57547         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57548         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57549         TYPE_U16_STRING, TYPE_U32_STRING.
57550         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57551         u16_directive, u16_directives, u32_directive, u32_directives): New
57552         types.
57553         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57554         New declarations.
57555         * lib/printf-parse.c: Don't include config.h and the specification
57556         header if PRINTF_PARSE is already defined. Eliminate the set of
57557         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57558         them now. Include c-ctype.h.
57559         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57560         directive and CHAR_T_ONLY_ASCII.
57561         * lib/vasnprintf.c: Don't include config.h and the specification header
57562         if VASNPRINTF is already defined.
57563         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57564         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57565         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57566         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57567         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57568         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57569         code accordingly.
57570         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57571         pad_ourselves also in this case, with the 'c' and 's' directives, and
57572         with a different notion of "width".
57573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57574
57575 2007-06-10  Bruno Haible  <bruno@clisp.org>
57576
57577         * modules/unistr/u32-mbsnlen: New file.
57578         * lib/unistr/u32-mbsnlen.c: New file.
57579
57580         * modules/unistr/u16-mbsnlen: New file.
57581         * lib/unistr/u16-mbsnlen.c: New file.
57582
57583         * modules/unistr/u8-mbsnlen: New file.
57584         * lib/unistr/u8-mbsnlen.c: New file.
57585
57586         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57587         declarations.
57588
57589 2007-06-10  Bruno Haible  <bruno@clisp.org>
57590
57591         * lib/string_.h (mbsnlen): New declaration.
57592         * lib/mbsnlen.c: New file.
57593         * m4/mbsnlen.m4: New file.
57594         * modules/mbsnlen: New file.
57595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57596         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57597         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57598
57599 2007-06-10  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57602
57603 2007-06-10  Bruno Haible  <bruno@clisp.org>
57604
57605         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57606         * lib/mbuiter.h: Likewise.
57607
57608 2007-06-10  Bruno Haible  <bruno@clisp.org>
57609
57610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57611         declaration.
57612
57613 2007-06-10  Karl Berry  <karl@gnu.org>
57614
57615         * config/srclist.txt: remove gettext entries, Bruno prefers
57616         to update individually.
57617
57618 2007-06-10  Bruno Haible  <bruno@clisp.org>
57619
57620         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57621         'maxlen'. Ensure only length + width bytes are allocated, not
57622         length + 1 + width.
57623
57624 2007-06-09  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57627         (CHAR_T): Remove macro.
57628         (VASNPRINTF): Update.
57629
57630 2007-06-09  Bruno Haible  <bruno@clisp.org>
57631
57632         * MODULES.html.sh (Unicode string functions): Add the new modules.
57633
57634         * modules/uniconv/u32-conv-to-enc: New file.
57635         * lib/uniconv/u32-conv-to-enc.c: New file.
57636         * modules/uniconv/u32-conv-to-enc-tests: New file.
57637         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57638
57639         * modules/uniconv/u16-conv-to-enc: New file.
57640         * lib/uniconv/u16-conv-to-enc.c: New file.
57641         * lib/uniconv/u-conv-to-enc.h: New file.
57642         * modules/uniconv/u16-conv-to-enc-tests: New file.
57643         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57644
57645         * modules/uniconv/u8-conv-to-enc: New file.
57646         * lib/uniconv/u8-conv-to-enc.c: New file.
57647         * modules/uniconv/u8-conv-to-enc-tests: New file.
57648         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57649
57650         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57651         u32_conv_to_encoding): New declarations.
57652
57653 2007-06-09  Bruno Haible  <bruno@clisp.org>
57654
57655         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57656
57657 2007-06-09  Bruno Haible  <bruno@clisp.org>
57658
57659         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57660         * modules/malloca: Renamed from modules/allocsa, updated.
57661         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57662         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57663         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57664         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57665         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57666         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57667         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57668         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57669         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57670         * modules/c-strcasestr (Depends-on): Update.
57671         * lib/c-strcasestr.c: Update.
57672         * modules/c-strstr (Depends-on): Update.
57673         * lib/c-strstr.c: Update.
57674         * modules/canonicalize-lgpl (Depends-on): Update.
57675         * lib/canonicalize-lgpl.c: Update.
57676         * modules/clean-temp (Depends-on): Update.
57677         * lib/clean-temp.c: Update.
57678         * modules/csharpcomp (Depends-on): Update.
57679         * lib/csharpcomp.c: Update.
57680         * modules/csharpexec (Depends-on): Update.
57681         * lib/csharpexec.c: Update.
57682         * modules/javacomp (Depends-on): Update.
57683         * lib/javacomp.c: Update.
57684         * modules/javaexec (Depends-on): Update.
57685         * lib/javaexec.c: Update.
57686         * modules/mbscasestr (Depends-on): Update.
57687         * lib/mbscasestr.c: Update.
57688         * modules/mbsstr (Depends-on): Update.
57689         * lib/mbsstr.c: Update.
57690         * modules/setenv (Depends-on): Update.
57691         * lib/setenv.c: Update.
57692         * modules/strcasestr (Depends-on): Update.
57693         * lib/strcasestr.c: Update.
57694         * modules/striconveha (Depends-on): Update.
57695         * lib/striconveha.c: Update.
57696         * modules/relocatable-prog-wrapper (Files): Update.
57697         * lib/relocwrapper.c: Update.
57698         * build-aux/install-reloc: Update.
57699         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57700
57701 2007-06-08  Bruno Haible  <bruno@clisp.org>
57702
57703         Port to uClibc.
57704         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57705         * lib/fpurge.c (fpurge): Likewise.
57706         * lib/freading.c (freading): Likewise.
57707         * lib/fseeko.c (rpl_fseeko): Likewise.
57708         * lib/fseterr.c (fseterr): Likewise.
57709         * lib/fwriting.c (fwriting): Likewise.
57710         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57711
57712 2007-06-08  Bruno Haible  <bruno@clisp.org>
57713
57714         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57715         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57716         * modules/gettext (Files): Add m4/intlmacosx.m4.
57717
57718 2007-06-07  Bruno Haible  <bruno@clisp.org>
57719
57720         * modules/localename-tests: New file.
57721         * tests/test-localename.c: New file.
57722
57723         New module 'localename'.
57724         * lib/localename.h: New file.
57725         * lib/localename.c: New file, from GNU gettext.
57726         * m4/localename.m4: New file.
57727         * modules/localename: New file.
57728
57729 2007-06-07  Bruno Haible  <bruno@clisp.org>
57730
57731         Work around the lack of <wchar.h> on some builds of uClibc.
57732         * doc/headers/wchar.texi: Update.
57733         * lib/wchar_.h: Include <wchar.h> only if it exists.
57734         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57735         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57736         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57737         doesn't exist.
57738         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57739         * modules/mbfile (Depends-on): Add wchar.
57740         * modules/mbiter (Depends-on): Likewise.
57741         * modules/mbuiter (Depends-on): Likewise.
57742         Reported by Simon Josefsson.
57743
57744 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         Work around problem reported by Steven M. Schweda in
57747         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57748         Tru64 5.1B with the Compaq compiler environment installed declares
57749         an 'isblank' function but does not define it in the C library.
57750         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57751         * lib/regex_internal.h (isblank): Likewise.
57752         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57754
57755 2007-06-05  Bruno Haible  <bruno@clisp.org>
57756
57757         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57758         ia64.
57759         * modules/printf-safe: New file.
57760         * modules/fprintf-posix (Depends-on): Add printf-safe.
57761         * modules/printf-posix (Depends-on): Likewise.
57762         * modules/snprintf-posix (Depends-on): Likewise.
57763         * modules/sprintf-posix (Depends-on): Likewise.
57764         * modules/vasnprintf-posix (Depends-on): Likewise.
57765         * modules/vasprintf-posix (Depends-on): Likewise.
57766         * modules/vfprintf-posix (Depends-on): Likewise.
57767         * modules/vprintf-posix (Depends-on): Likewise.
57768         * modules/vsnprintf-posix (Depends-on): Likewise.
57769         * modules/vsprintf-posix (Depends-on): Likewise.
57770         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57771         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57772         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57773         "no" on i386, x86_64, ia64.
57774         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57775         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57776         on i386, x86_64, ia64.
57777         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57778         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57779         on i386, x86_64, ia64.
57780         * tests/test-vasnprintf-posix.c: Include float.h.
57781         (LDBL80_WORDS): New macro.
57782         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57783         on i386, x86_64, ia64.
57784         * tests/test-vasprintf-posix.c: Include float.h.
57785         (LDBL80_WORDS): New macro.
57786         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57787         on i386, x86_64, ia64.
57788         * tests/test-snprintf-posix.c: Include float.h.
57789         * tests/test-sprintf-posix.c: Likewise.
57790         * tests/test-vsnprintf-posix.c: Likewise.
57791         * tests/test-vsprintf-posix.c: Likewise.
57792
57793 2007-06-05  Bruno Haible  <bruno@clisp.org>
57794
57795         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57796         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57797         non-IEEE numbers on i386, x86_64, ia64.
57798         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57799         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57800         * tests/test-isnanl.h: Include float.h.
57801         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57802
57803 2007-06-05  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57806         also the %a / %A. Handle the %a / %A code before this extra handling.
57807
57808 2007-06-05  Bruno Haible  <bruno@clisp.org>
57809
57810         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57811         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57812
57813 2007-06-05  Bruno Haible  <bruno@clisp.org>
57814
57815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57816         typo in variable name.
57817
57818 2007-06-05  Eric Blake  <ebb9@byu.net>
57819
57820         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57821         Reported by Simon Josefsson.
57822
57823 2007-06-04  Bruno Haible  <bruno@clisp.org>
57824
57825         Avoid test failures on some PowerPC platforms.
57826         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57827         Define differently for PowerPC.
57828         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57829         Reported by Gary V. Vaughan <gary@gnu.org>.
57830
57831 2007-06-02  Bruno Haible  <bruno@clisp.org>
57832
57833         Fix test-stdint failure on FreeBSD/ia64.
57834         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57835         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57836         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57837         * doc/headers/stdint.texi: Update.
57838
57839 2007-06-01  Bruno Haible  <bruno@clisp.org>
57840
57841         * tests/test-binary-io.c (main): Pass a third argument to open().
57842         Reported by Gary V. Vaughan <gary@gnu.org>.
57843
57844 2007-06-01  Bruno Haible  <bruno@clisp.org>
57845
57846         * doc/functions/frexpl.texi: Update for mingw.
57847
57848 2007-06-01  Bruno Haible  <bruno@clisp.org>
57849
57850         * tests/test-lseek.c (main): Disable test of errno for invalid third
57851         argument.
57852         * doc/functions/lseek.texi: Update.
57853         Reported by Gary V. Vaughan <gary@gnu.org>.
57854
57855 2007-05-28  Bruno Haible  <bruno@clisp.org>
57856
57857         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57858
57859 2007-05-31  Eric Blake  <ebb9@byu.net>
57860
57861         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57862         cross compiling.
57863
57864 2007-05-30  Eric Blake  <ebb9@byu.net>
57865         and Bruno Haible  <bruno@clisp.org>
57866
57867         Work around mingw test failures exposed by m4-1.4.9b.
57868         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57869         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57870         moment.
57871
57872 2007-05-30  Bruno Haible  <bruno@clisp.org>
57873
57874         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57875         assuming that they are closed. Needed on HP-UX 11.
57876
57877 2007-05-29  Bruno Haible  <bruno@clisp.org>
57878
57879         Fix a problem with #include_next.
57880         * lib/dirent_.h: Split the double-inclusion guard.
57881         * lib/fcntl_.h: Likewise.
57882         * lib/float_.h: Likewise.
57883         * lib/iconv_.h: Likewise.
57884         * lib/inttypes_.h: Likewise.
57885         * lib/locale_.h: Likewise.
57886         * lib/math_.h: Likewise.
57887         * lib/netinet_in_.h: Likewise.
57888         * lib/search_.h: Likewise.
57889         * lib/signal_.h: Likewise.
57890         * lib/stdint_.h: Likewise.
57891         * lib/stdio_.h: Likewise.
57892         * lib/stdlib_.h: Likewise.
57893         * lib/string_.h: Likewise.
57894         * lib/sys_select_.h: Likewise.
57895         * lib/sys_socket_.h: Likewise.
57896         * lib/sys_stat_.h: Likewise.
57897         * lib/sys_time_.h: Likewise.
57898         * lib/sysexits_.h: Likewise.
57899         * lib/time_.h: Likewise.
57900         * lib/unistd_.h: Likewise.
57901         * lib/wchar_.h: Likewise.
57902         * lib/wctype_.h: Likewise.
57903
57904 2007-05-29  Bruno Haible  <bruno@clisp.org>
57905
57906         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57907         for the moment.
57908
57909 2007-05-29  Bruno Haible  <bruno@clisp.org>
57910
57911         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57912         invocation.
57913         Reported by Eric Blake.
57914
57915 2007-05-29  Bruno Haible  <bruno@clisp.org>
57916
57917         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57918         compiling case.
57919
57920 2007-05-29  Eric Blake  <ebb9@byu.net>
57921             Bruno Haible  <bruno@clisp.org>
57922
57923         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57924         cross compiles.
57925
57926 2007-05-28  Eric Blake  <ebb9@byu.net>
57927
57928         * modules/closein-tests (test_closein_LDADD): Support test on
57929         cygwin with libtool.
57930
57931 2007-05-28  Bruno Haible  <bruno@clisp.org>
57932
57933         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57934         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57935         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57936         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57937         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57938         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57939         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57940         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57941         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57942
57943 2007-05-28  Eric Blake  <ebb9@byu.net>
57944
57945         Unconditionally include <config.h> in unit tests.
57946         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57947         * tests/test-allocsa.c, tests/test-arcfour.c,
57948         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57949         tests/test-array_list.c, tests/test-array_oset.c,
57950         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57951         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57952         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57953         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57954         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57955         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57956         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57957         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57958         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57959         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57960         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57961         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57962         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57963         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57964         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57965         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57966         test-md5.c, test-memmem.c, test-printf-posix.c,
57967         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57968         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57969         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57970         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57971         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57972         test-vasnprintf-posix2.c, test-vasnprintf.c,
57973         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57974         test-vfprintf-posix.c, test-vprintf-posix.c,
57975         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57976         test-xvasprintf.c: Likewise.
57977
57978 2007-05-28  Bruno Haible  <bruno@clisp.org>
57979
57980         * gnulib-tool (func_import): Remember the --with-tests command-line
57981         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57982         Reported by Eric Blake.
57983
57984 2007-05-28  Bruno Haible  <bruno@clisp.org>
57985
57986         * modules/ftell-tests: New file.
57987         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57988         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57989
57990         * lib/ftell.c: New file.
57991         * modules/ftell: New file.
57992         * m4/ftell.m4: New file.
57993         * doc/functions/ftell.texi: Update.
57994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57995         REPLACE_FTELL.
57996         * lib/stdio_.h (rpl_ftell): New declaration.
57997         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57998         REPLACE_FTELL.
57999
58000 2007-05-28  Eric Blake  <ebb9@byu.net>
58001
58002         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58003
58004 2007-05-28  Bruno Haible  <bruno@clisp.org>
58005
58006         * modules/fseek-tests: New file.
58007         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58008         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58009
58010         * lib/fseek.c: New file.
58011         * modules/fseek: New file.
58012         * m4/fseek.m4: New file.
58013         * doc/functions/fseek.texi: Update.
58014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58015         REPLACE_FSEEK.
58016         * lib/stdio_.h (rpl_fseek): New declaration.
58017         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58018         REPLACE_FSEEK.
58019
58020 2007-05-28  Bruno Haible  <bruno@clisp.org>
58021
58022         * lib/stdio_.h (fflush): More comments.
58023
58024 2007-05-28  Bruno Haible  <bruno@clisp.org>
58025
58026         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58027         runtime test.
58028
58029 2007-05-28  Eric Blake  <ebb9@byu.net>
58030
58031         Improve lseek module.
58032         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58033         * lib/unistd_.h (lseek): Scale back link warning message.
58034         * tests/test-lseek.c: Beef up test.
58035         * tests/test-lseek.sh: Exercise more facets of lseek.
58036         Reported by Bruno Haible.
58037
58038 2007-05-28  Bruno Haible  <bruno@clisp.org>
58039
58040         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58041         to define.
58042
58043 2007-05-27  Bruno Haible  <bruno@clisp.org>
58044
58045         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58046
58047 2007-05-27  Bruno Haible  <bruno@clisp.org>
58048
58049         * modules/openmp: New file.
58050         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58051         Noah Misch.
58052
58053 2007-05-26  Bruno Haible  <bruno@clisp.org>
58054
58055         * modules/chdir-long (Depends-on): Add fchdir.
58056         * modules/chdir-safer (Depends-on): Likewise.
58057         * modules/fts (Depends-on): Likewise.
58058         * modules/fts-lgpl (Depends-on): Likewise.
58059         * modules/openat (Depends-on): Likewise.
58060         * modules/savewd (Depends-on): Likewise.
58061
58062 2007-05-24  Eric Blake  <ebb9@byu.net>
58063
58064         Fix lseek on mingw.
58065         * modules/lseek: New module.
58066         * m4/lseek.m4: New file.
58067         * lib/lseek.c: New file.
58068         * modules/lseek-tests: New file.
58069         * tests/test-lseek.c: New file.
58070         * tests/test-lseek.sh: New file.
58071         * MODULES.html.sh: Document lseek module.
58072         * modules/fflush (Depends-on): Add lseek, fseeko.
58073         * modules/fseeko (Depends-on): Likewise.
58074         * modules/ftello (Depends-on): Likewise.
58075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58076         broken.
58077         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58078         broken.
58079         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58080         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58081         * lib/ftello.c (rpl_ftello): Likewise.
58082         * tests/test-fseeko.c (main): Test this.
58083         * tests/test-fseeko.sh: Likewise.
58084         * tests/test-ftello.c (main): Likewise.
58085         * tests/test-ftello.sh: Likewise.
58086         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58087         implies replacing fseek.
58088         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58089         HAVE_FTELLO.
58090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58091         * modules/unistd (Makefile.am): Likewise.
58092         * lib/unistd_.h (lseek): Declare a replacement.
58093         * doc/functions/lseek.texi (lseek): Document this fix.
58094         * doc/functions/fseek.texi (fseek): Likewise.
58095         * doc/functions/ftell.texi (ftell): Likewise.
58096
58097 2007-05-24  Bruno Haible  <bruno@clisp.org>
58098
58099         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58100         in the printed representation of a NaN.
58101         * tests/test-vasprintf-posix.c (test_function): Likewise.
58102         * tests/test-snprintf-posix.h (test_function): Likewise.
58103         * tests/test-sprintf-posix.h (test_function): Likewise.
58104         Reported by Eric Blake.
58105
58106 2007-05-23  Eric Blake  <ebb9@byu.net>
58107
58108         Fix fseeko/ftello on cygwin 1.5.24.
58109         * doc/functions/fseeko.texi (fseeko): Document the fix.
58110         * doc/functions/ftello.texi (ftello): Document the fix.
58111         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58112         * doc/functions/stdout.text (stdout): New file.
58113         * doc/functions/stderr.text (stderr): New file.
58114         * doc/gnulib.texi (Function Substitutes): Use new files.
58115         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58116         prior to 1.7.0.
58117         * tests/test-ftello.c (main): Likewise for ftello.
58118         * tests/test-fseeko.sh: New file.
58119         * tests/test-ftello.sh: New file.
58120         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58121         with seekable stdin.
58122         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58124         (gl_REPLACE_FSEEKO): New macro.
58125         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58126         * modules/fseeko (Files): Distribute fseeko.c.
58127         * modules/ftello (Files): Distribute ftello.c.
58128         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58129         mode.
58130         * lib/ftello.c (rpl_ftello): New file.
58131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58132         fseeko, ftello.
58133         (gl_STDIN_LARGE_OFFSET): New macro.
58134         * modules/stdio (Makefile.am): Perform the replacement.
58135         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58136
58137 2007-05-23  Bruno Haible  <bruno@clisp.org>
58138
58139         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58140         GNULIB_POSIXCHECK is defined.
58141
58142 2007-05-21  Bruno Haible  <bruno@clisp.org>
58143
58144         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58145         Check also the output for NaN arguments. When cross-compiling, guess
58146         no on IRIX.
58147         * lib/vasnprintf.c: Update comments.
58148         * tests/test-vasnprintf-posix.c (strisnan): New function.
58149         (test_function): Use it.
58150         * tests/test-vasprintf-posix.c (strisnan): New function.
58151         (test_function): Use it.
58152         * tests/test-snprintf-posix.h (strisnan): New function.
58153         (test_function): Use it.
58154         * tests/test-sprintf-posix.h (strisnan): New function.
58155         (test_function): Use it.
58156         Reported by Eric Blake.
58157
58158 2007-05-20  Bruno Haible  <bruno@clisp.org>
58159
58160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58161         numbers that fails on BeOS.
58162         * doc/functions/frexpl.texi: Update.
58163
58164 2007-05-20  Jim Meyering  <jim@meyering.net>
58165
58166         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58167         forced upon us by glibc-2.6.
58168
58169 2007-05-20  Bruno Haible  <bruno@clisp.org>
58170
58171         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58172         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58173         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58174         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58175         NEED_PRINTF_INFINITE.
58176         (is_infinitel): New function.
58177         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58179         gl_PREREQ_VASNPRINTF_INFINITE.
58180         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58182         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58183         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58184         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58185         gl_PREREQ_VASNPRINTF_INFINITE.
58186         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58187         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58188         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58190         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58192         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58193         * doc/functions/fprintf.texi: Update.
58194         * doc/functions/printf.texi: Update.
58195         * doc/functions/snprintf.texi: Update.
58196         * doc/functions/sprintf.texi: Update.
58197         * doc/functions/vfprintf.texi: Update.
58198         * doc/functions/vprintf.texi: Update.
58199         * doc/functions/vsnprintf.texi: Update.
58200         * doc/functions/vsprintf.texi: Update.
58201
58202 2007-05-20  Bruno Haible  <bruno@clisp.org>
58203
58204         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58205         was not found in libc.
58206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58207
58208 2007-05-20  Bruno Haible  <bruno@clisp.org>
58209
58210         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58211         printed as "-nan" instead of "nan".
58212         * tests/test-vasprintf-posix.c (test_function): Likewise.
58213         * tests/test-snprintf-posix.h (test_function): Likewise.
58214         * tests/test-sprintf-posix.h (test_function): Likewise.
58215         Needed for HP-UX 11.
58216
58217 2007-05-20  Jim Meyering  <jim@meyering.net>
58218
58219         Fix buggy test for the fchownat-deref bug.
58220         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58221         symlink required for the run-test.  Without it, this test would
58222         always declare that fchownat doesn't work, and client code would
58223         unnecessarily use the replacement function with fixed libc.
58224         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58225         Reported by Greg Schafer.
58226
58227 2007-05-19  Bruno Haible  <bruno@clisp.org>
58228
58229         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58230         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58231         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58232         Needed for IRIX 6.5 and Solaris 2.5.1.
58233
58234 2007-05-19  Bruno Haible  <bruno@clisp.org>
58235
58236         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58237         (test_function): Skip tests involving -0.0 on platforms where
58238         -0.0 = 0.0.
58239         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58240         (test_function): Skip tests involving -0.0 on platforms where
58241         -0.0 = 0.0.
58242         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58243         (test_function): Skip tests involving -0.0 on platforms where
58244         -0.0 = 0.0.
58245         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58246         (test_function): Skip tests involving -0.0 on platforms where
58247         -0.0 = 0.0.
58248         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58249         tests.
58250         * tests/test-printf-posix.h (test_function): Likewise.
58251         * tests/test-printf-posix.output: Remove all -0.0 related results.
58252         Needed for IRIX 6.5.
58253
58254 2007-05-19  Bruno Haible  <bruno@clisp.org>
58255
58256         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58257         printed as "nan0x7fffffff" instead of "nan".
58258         * tests/test-vasprintf-posix.c (test_function): Likewise.
58259         * tests/test-snprintf-posix.h (test_function): Likewise.
58260         * tests/test-sprintf-posix.h (test_function): Likewise.
58261         * tests/test-fprintf-posix.h (NaN): Remove macro.
58262         (test_function): Remove all NaN related tests.
58263         * tests/test-printf-posix.h (NaN): Remove macro.
58264         (test_function): Remove all NaN related tests.
58265         * tests/test-printf-posix.output: Remove all NaN related results.
58266         Needed for IRIX 6.5.
58267
58268 2007-05-19  Bruno Haible  <bruno@clisp.org>
58269
58270         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58272
58273 2007-05-19  Bruno Haible  <bruno@clisp.org>
58274
58275         * lib/float_.h: New file.
58276         * m4/float_h.m4: New file.
58277         * modules/float: New file.
58278         * modules/isnanl (Dependencies): Add float.
58279         * modules/isnanl-nolibm (Dependencies): Likewise.
58280         * modules/mathl (Dependencies): Likewise.
58281         * modules/printf-frexpl (Dependencies): Likewise.
58282         * modules/signbit (Dependencies): Likewise.
58283         * modules/vasnprintf (Dependencies): Likewise.
58284         * doc/headers/float.texi: Update.
58285
58286 2007-05-19  Jim Meyering  <jim@meyering.net>
58287
58288         * lib/utimens.c (gl_futimens): Rename from futimens,
58289         now that glibc-2.6 declares futimens.
58290         * lib/utimens.h: Likewise.
58291
58292 2007-05-19  Bruno Haible  <bruno@clisp.org>
58293
58294         Avoid test failures on mingw.
58295         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58296         * tests/test-printf-posix.sh: Likewise.
58297         * tests/test-vfprintf-posix.sh: Likewise.
58298         * tests/test-vprintf-posix.sh: Likewise.
58299
58300 2007-05-19  Bruno Haible  <bruno@clisp.org>
58301
58302         Fix *printf result for NaN, Inf, -0.0 on mingw.
58303         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58304         * lib/vasnprintf.c: Include math.h and isnan.h.
58305         (is_infinite_or_zero): New function.
58306         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58307         values in the %f, %F, %e, %E, %g, %G directives.
58308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58310         gl_PRINTF_INFINITE and test its result. Invoke
58311         gl_PREREQ_VASNPRINTF_INFINITE.
58312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58319         * doc/functions/fprintf.texi: Update.
58320         * doc/functions/printf.texi: Update.
58321         * doc/functions/snprintf.texi: Update.
58322         * doc/functions/sprintf.texi: Update.
58323         * doc/functions/vfprintf.texi: Update.
58324         * doc/functions/vprintf.texi: Update.
58325         * doc/functions/vsnprintf.texi: Update.
58326         * doc/functions/vsprintf.texi: Update.
58327
58328 2007-05-19  Bruno Haible  <bruno@clisp.org>
58329
58330         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58331         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58332         Instead of multiplying with 10^k, set extra_zeroes to k.
58333         (scale10_round_long_double): Remove function.
58334
58335 2007-05-18  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58338         introduced on 2007-05-06.
58339
58340 2007-05-18  Bruno Haible  <bruno@clisp.org>
58341
58342         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58343         %g directives.
58344         * tests/test-vasprintf-posix.c (test_function): Likewise.
58345         * tests/test-snprintf-posix.h (test_function): Likewise.
58346         * tests/test-sprintf-posix.h (test_function): Likewise.
58347
58348 2007-05-18  Bruno Haible  <bruno@clisp.org>
58349
58350         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58351         (strmatch): New function.
58352         (test_function): Test the %f directive on numbers of various exponents.
58353         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58354         (strmatch): New function.
58355         (test_function): Test the %f directive on numbers of various exponents.
58356         * tests/test-snprintf-posix.h (strmatch): New function.
58357         (test_function): Test the %f directive on numbers of various exponents.
58358         * tests/test-sprintf-posix.h (strmatch): New function.
58359         (test_function): Test the %f directive on numbers of various exponents.
58360         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58361         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58362         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58363         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58364
58365 2007-05-18  Bruno Haible  <bruno@clisp.org>
58366
58367         Add support for 'long double' number output.
58368         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58369         * lib/vasnprintf.c: Include math.h and float+.h.
58370         (mp_limb_t): New type.
58371         (GMP_LIMB_BITS): New macro.
58372         (mp_twolimb_t): New type.
58373         (GMP_TWOLIMB_BITS): New macro.
58374         (mpn_t): New type.
58375         (multiply, divide, convert_to_decimal, decode_long_double,
58376         scale10_round_long_double, scale10_round_decimal_long_double,
58377         floorlog10l): New functions.
58378         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58379         for the %f, %F, %e, %E, %g, %G directives.
58380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58382         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58383         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58391         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58392         * modules/snprintf-posix (Depends-on): Likewise.
58393         * modules/sprintf-posix (Depends-on): Likewise.
58394         * modules/vasnprintf-posix (Depends-on): Likewise.
58395         * modules/vasprintf-posix (Depends-on): Likewise.
58396         * modules/vfprintf-posix (Depends-on): Likewise.
58397         * modules/vsnprintf-posix (Depends-on): Likewise.
58398         * modules/vsprintf-posix (Depends-on): Likewise.
58399         * modules/vasnprintf (Files): Add lib/float+.h.
58400         * doc/functions/fprintf.texi: Update.
58401         * doc/functions/printf.texi: Update.
58402         * doc/functions/snprintf.texi: Update.
58403         * doc/functions/sprintf.texi: Update.
58404         * doc/functions/vfprintf.texi: Update.
58405         * doc/functions/vprintf.texi: Update.
58406         * doc/functions/vsnprintf.texi: Update.
58407         * doc/functions/vsprintf.texi: Update.
58408
58409 2007-05-18  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58412
58413 2007-05-18  Bruno Haible  <bruno@clisp.org>
58414
58415         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58416         for printing 64-bit integers. Needed for mingw.
58417
58418 2007-05-18  Bruno Haible  <bruno@clisp.org>
58419
58420         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58421         gl_FUNC_FREXPL_WORKS.
58422         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58423
58424 2007-05-18  Bruno Haible  <bruno@clisp.org>
58425
58426         * modules/frexpl-nolibm-tests: New file.
58427
58428         * modules/frexpl-nolibm: New file.
58429         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58430
58431 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58434         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58435         GCC 4.2, which otherwise issues a lot of warnings.
58436         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58437         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58438         Likewise.
58439         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58440         * modules/iconv_open (iconv.h): Likewise.
58441         * modules/locale (locale.h): Likewise.
58442         * modules/netinet_in (netinet/in.h): Likewise.
58443         * modules/sys_select (sys_select.h): Likewise.
58444         * modules/sys_socket (sys/socket.h): Likewise.
58445         * modules/sys_stat (sys/stat.h): Likewise.
58446         * modules/sysexits (sysexits.h): Likewise.
58447         * modules/unistd (unistd.h): Likewise.
58448
58449 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58450
58451         * modules/closein-tests (Makefile.am): Distribute
58452         `test-closein.sh'.
58453
58454 2007-05-17  Bruno Haible  <bruno@clisp.org>
58455
58456         * tests/test-printf-posix.output: Renamed from
58457         tests/test-fprintf-posix.out.
58458         * modules/fprintf-posix-tests: Update.
58459         * modules/printf-posix-tests: Update.
58460         * modules/vfprintf-posix-tests: Update.
58461         * modules/vprintf-posix-tests: Update.
58462         * tests/test-fprintf-posix.sh: Update.
58463         * tests/test-printf-posix.sh: Update.
58464         * tests/test-vfprintf-posix.sh: Update.
58465         * tests/test-vprintf-posix.sh: Update.
58466         Reported by Ralf Wildenhues.
58467
58468 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58469
58470         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58471         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58472         GCC 4.2, which otherwise issues a lot of warnings.
58473         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58474         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58475         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58476         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58477         it should no longer be needed.
58478         * lib/string_.h: Likewise.
58479         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58480         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58481         * modules/inttypes (inttypes.h): Likewise.
58482         * modules/math (math.h): Likewise.
58483         * modules/search (search.h): Likewise.
58484         * modules/signal (signal.h): Likewise.
58485         * modules/stdint (stdint.h): Likewise.
58486         * modules/stdio (stdio.h): Likewise.
58487         * modules/stdlib (stdlib.h): Likewise.
58488         * modules/string (string.h): Likewise.
58489         * modules/sys_time (sys/time.h): Likewise.
58490         * modules/time (time.h): Likewise.
58491         * modules/wchar (wchar.h): Likewise.
58492         * modules/wctype (wtype.h): Likewise.
58493
58494 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58495
58496         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58497
58498 2007-05-13  Bruno Haible  <bruno@clisp.org>
58499
58500         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58501         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58502         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58503         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58504         (gl_PREREQ_STRTOK_R): Don't require it here.
58505
58506 2007-05-13  Bruno Haible  <bruno@clisp.org>
58507
58508         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58509         when used in C++ mode.
58510
58511 2007-05-12  Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/linebuffer.h: Tweak doc.
58514         * lib/linebuffer.c: Likewise.
58515
58516 2007-05-12  James Youngman  <jay@gnu.org>
58517
58518         * lib/linebuffer.c (readlinebuffer_delim): New function,
58519         like readlinebuffer, but use a caller-specified delimiter.
58520         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58521         as the delimiter.
58522         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58523
58524 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58525
58526         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58527         * modules/openat (Files): Remove openat-die.c.
58528         (Depends-on): Add openat-die.
58529         * modules/openat-die: New module.
58530
58531 2007-05-06  Bruno Haible  <bruno@clisp.org>
58532
58533         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58534         Update with info about Cygwin.
58535         * doc/functions/fprintf.texi: Update.
58536         * doc/functions/printf.texi: Update.
58537         * doc/functions/snprintf.texi: Update.
58538         * doc/functions/sprintf.texi: Update.
58539         * doc/functions/vfprintf.texi: Update.
58540         * doc/functions/vprintf.texi: Update.
58541         * doc/functions/vsnprintf.texi: Update.
58542         * doc/functions/vsprintf.texi: Update.
58543         Reported by Eric Blake.
58544
58545 2007-05-06  Bruno Haible  <bruno@clisp.org>
58546
58547         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58548         padding ourselves for the floating-point directives.
58549         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58552         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58553         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58561         * tests/test-snprintf-posix.h (test_function): Also check the width
58562         and some flags in the %f directive.
58563         * tests/test-sprintf-posix.h (test_function): Likewise.
58564         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58565         * tests/test-vasprintf-posix.c (test_function): Likewise.
58566         * doc/functions/fprintf.texi: Update.
58567         * doc/functions/printf.texi: Update.
58568         * doc/functions/snprintf.texi: Update.
58569         * doc/functions/sprintf.texi: Update.
58570         * doc/functions/vfprintf.texi: Update.
58571         * doc/functions/vprintf.texi: Update.
58572         * doc/functions/vsnprintf.texi: Update.
58573         * doc/functions/vsprintf.texi: Update.
58574
58575 2007-05-06  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58578         pass the ' flag character to sprintf or snprintf.
58579         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58582         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58583         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58585         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58591         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58592         flag.
58593         * tests/test-sprintf-posix.h (test_function): Likewise.
58594         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58595         * tests/test-vasprintf-posix.c (test_function): Likewise.
58596         * doc/functions/fprintf.texi: Update.
58597         * doc/functions/printf.texi: Update.
58598         * doc/functions/snprintf.texi: Update.
58599         * doc/functions/sprintf.texi: Update.
58600         * doc/functions/vfprintf.texi: Update.
58601         * doc/functions/vprintf.texi: Update.
58602         * doc/functions/vsnprintf.texi: Update.
58603         * doc/functions/vsprintf.texi: Update.
58604
58605 2007-05-01  Bruno Haible  <bruno@clisp.org>
58606
58607         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58608
58609 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58610
58611         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58612         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58613
58614 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58617         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58618         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58619
58620 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58621
58622         * lib/argp-help.c (struct hol_entry): New member `ord'.
58623         (HOL_ENTRY_PTRCMP): Use ord for comparison
58624         (hol_sort): Initialize ord.
58625
58626 2007-05-01  Bruno Haible  <bruno@clisp.org>
58627
58628         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58629         Reported by Eric Blake.
58630         * doc/gnulib.texi (Function Substitutes): Update.
58631
58632 2007-05-01  Bruno Haible  <bruno@clisp.org>
58633
58634         * doc/functions.texi: Remove file, now redundant through
58635         doc/functions/*.texi.
58636
58637 2007-05-01  Bruno Haible  <bruno@clisp.org>
58638
58639         * modules/argp (Depends-on): Add sleep.
58640
58641 2007-05-01  Bruno Haible  <bruno@clisp.org>
58642
58643         * modules/sleep-tests: New file.
58644         * tests/test-sleep.c: New file.
58645
58646         * modules/sleep: New file.
58647         * lib/sleep.c: New file.
58648         * m4/sleep.m4: New file.
58649         * lib/unistd_.h (sleep): New declaration.
58650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58651         HAVE_SLEEP.
58652         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58653         * doc/functions/sleep.texi: Document the sleep module.
58654
58655 2007-05-01  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/sigprocmask.h: Remove file.
58658         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58659         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58661         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58662         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58663         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58664         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58665         HAVE_SIGSET_T as a shell variable.
58666         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58667         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58668         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58669         (Depends-on): Add signal. Remove verify.
58670         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58671         (Include): Mention <signal.h> instead of sigprocmask.h.
58672         * NEWS: Mention the change.
58673         * lib/fatal-signal.c: Don't include sigprocmask.h.
58674
58675 2007-05-01  Bruno Haible  <bruno@clisp.org>
58676
58677         * modules/signal: New file.
58678         * lib/signal_.h: New file.
58679         * m4/signal_h.m4: New file.
58680
58681 2007-05-01  Bruno Haible  <bruno@clisp.org>
58682
58683         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58684         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58685         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58686         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58687
58688 2007-05-01  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58691         configure time.
58692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58693         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58694         * modules/sys_stat (Makefile.am): Substitute their values into
58695         sys/stat.h.
58696
58697 2007-05-01  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58700         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58701         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58702
58703 2007-05-01  Bruno Haible  <bruno@clisp.org>
58704
58705         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58706         'assert' module here.
58707
58708 2007-05-01  Bruno Haible  <bruno@clisp.org>
58709
58710         * doc/functions/*.texi: New files.
58711         * doc/functions/google-ranking.txt: New file.
58712         * doc/gnulib.texi (Function Substitutes): New chapter.
58713         (ctime, inet_ntoa): Remove sections.
58714         * doc/ctime.texi: Remove file.
58715         * doc/inet_ntoa.texi: Remove file.
58716         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58717         dependencies.
58718         (%.info): New rule, specifying a --reference-limit.
58719
58720 2007-05-01  Bruno Haible  <bruno@clisp.org>
58721
58722         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58723
58724 2007-05-01  Bruno Haible  <bruno@clisp.org>
58725
58726         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58727         the portability of 'mkdir' to mingw systems.
58728
58729 2007-05-01  Bruno Haible  <bruno@clisp.org>
58730
58731         * doc/headers/google-ranking.txt: New file.
58732
58733 2007-04-30  Eric Blake  <ebb9@byu.net>
58734
58735         Prefer fseeko to fseek.
58736         * modules/getpass (Depends-on): Add fseeko.
58737         * lib/getpass.c (getpass): Use fseeko, not fseek.
58738
58739 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58740
58741         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58742         assumes the sorting is stable, while most qsort implementations
58743         are not.  Use argument addresses to ensure they never compare as
58744         equal.
58745
58746         * tests/test-argp-2.sh (usage-indent test): Fix output
58747         (func_compare): Restore diff options
58748         * tests/test-argp.c: Restore #include "progname.h"
58749
58750 2007-04-29  Bruno Haible  <bruno@clisp.org>
58751
58752         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58754         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58756         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58757         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58758         (TESTS, check_PROGRAMS): Add test-snprintf.
58759         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58760         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58761         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58762         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58763         assertions that fail on HP-UX, OSF/1, or IRIX.
58764         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58765
58766 2007-04-29  Bruno Haible  <bruno@clisp.org>
58767
58768         * MODULES.html.sh (posix_functions): Remove 'contents'.
58769
58770 2007-04-29  Karl Berry  <karl@gnu.org>
58771
58772         * config/srclist.txt (gendocs_template_min): new entry.
58773
58774 2007-04-29  Bruno Haible  <bruno@clisp.org>
58775
58776         Work around fpurge bug on BSD systems.
58777         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58778         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58779         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58780         fpurge to rpl_fpurge if the system already has this function.
58781         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58782         the case where the system already has this function. Correct invariants
58783         on BSD systems.
58784         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58785         BSD systems.
58786
58787 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58788
58789         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58790         proposed by Sven Verdoolaege.
58791
58792         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58793         options.
58794         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58795         (usage and help tests): Update
58796
58797 2007-04-29  Bruno Haible  <bruno@clisp.org>
58798
58799         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58800         Print more information in case of failure. Disable a test on BeOS.
58801
58802 2007-04-29  Bruno Haible  <bruno@clisp.org>
58803
58804         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58805         This helps debugging on systems on which no gdb is available.
58806
58807 2007-04-29  Bruno Haible  <bruno@clisp.org>
58808
58809         * lib/freading.h: Improve comments.
58810         * lib/fwriting.h: Likewise.
58811         * tests/test-freading.c (main): Don't check freading immediately after
58812         repositioning. Needed for glibc.
58813
58814 2007-04-29  Bruno Haible  <bruno@clisp.org>
58815
58816         * lib/freading.c (freading): Trivial simplification.
58817
58818 2007-04-28  Bruno Haible  <bruno@clisp.org>
58819
58820         * tests/test-fwriting.c (main): Also test the interaction between
58821         fflush and fwriting.
58822         * modules/fwriting-tests (Depends-on): Add fflush.
58823
58824         * tests/test-freading.c (main): Also test the interaction between
58825         fflush and freading.
58826         * modules/freading-tests (Depends-on): Add fflush.
58827
58828 2007-04-28  Bruno Haible  <bruno@clisp.org>
58829
58830         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58831         fseeko and ftello.
58832         Suggested by Eric Blake.
58833
58834 2007-04-28  Jim Meyering  <jim@meyering.net>
58835
58836         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58837         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58838         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58839
58840 2007-04-27  Eric Blake  <ebb9@byu.net>
58841
58842         * doc/headers/assert.texi (assert.h): Document assert module use.
58843
58844 2007-04-27  Bruno Haible  <bruno@clisp.org>
58845
58846         * doc/headers/*.texi: New files.
58847         * doc/gnulib.texi (Header File Substitutes): New chapter.
58848         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58849         dependencies.
58850         (standards.info ,standards.html, standards.dvi): Update dependencies.
58851         (mostlyclean, clean): New targets.
58852
58853 2007-04-27  Bruno Haible  <bruno@clisp.org>
58854
58855         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58856         * modules/sysexits (Files, Makefile.am): Update.
58857
58858         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58859         * modules/sys_socket (Files, Makefile.am): Update.
58860
58861         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58862         * modules/sys_stat (Files, Makefile.am): Update.
58863
58864 2007-04-27  Eric Blake  <ebb9@byu.net>
58865
58866         * lib/freading.h: Improve comments.
58867         * lib/fwriting.h: Likewise.
58868         * lib/fflush.c: Likewise.
58869
58870         Fix closein for mingw.
58871         * modules/closein-tests: Add tests for closein.
58872         * tests/test-closein.c: New file.
58873         * tests/test-closein.sh: Likewise.
58874         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58875         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58876
58877 2007-04-27  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58880         version is < 6.
58881         * lib/math_.h [__DECC]: Likewise.
58882         * lib/stdio_.h [__DECC]: Likewise.
58883         * lib/stdlib_.h [__DECC]: Likewise.
58884         * lib/string_.h [__DECC]: Likewise.
58885         * lib/time_.h [__DECC]: Likewise.
58886         * lib/wchar_.h [__DECC]: Likewise.
58887         * lib/wctype_.h [__DECC]: Likewise.
58888
58889 2007-04-27  Bruno Haible  <bruno@clisp.org>
58890
58891         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58892
58893 2007-04-27  Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/fflush.c: Add comments.
58896         * modules/fpurge-tests (Depends-on): Add fflush.
58897         * modules/freadable-tests (Depends-on): Likewise.
58898         * modules/fwritable-tests (Depends-on): Likewise.
58899
58900 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58901
58902         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58903         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58904         Report by Bruno Haible <bruno@clisp.org>.
58905
58906 2007-04-26  Eric Blake  <ebb9@byu.net>
58907
58908         Fix fflush on mingw.
58909         * modules/fflush (Depends-on): Add freading.
58910         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58911         but unread data.
58912
58913 2007-04-26  Eric Blake  <ebb9@byu.net>
58914         and Bruno Haible  <bruno@clisp.org>
58915
58916         Implement freading and fwriting.
58917         * lib/freading.c: New file.
58918         * lib/freading.h: Likewise.
58919         * m4/freading.m4: Likewise.
58920         * modules/freading: Likewise.
58921         * modules/freading-tests: Likewise.
58922         * tests/test-freading.c: Likewise.
58923         * lib/fwriting.c: New file.
58924         * lib/fwriting.h: Likewise.
58925         * m4/fwriting.m4: Likewise.
58926         * modules/fwriting: Likewise.
58927         * modules/fwriting-tests: Likewise.
58928         * tests/test-fwriting.c: Likewise.
58929         * MODULES.html.sh (File stream based Input/Output): Mention them.
58930
58931 2007-04-26  Bruno Haible  <bruno@clisp.org>
58932
58933         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58934         'long' when we assume it.
58935         Suggested by Eric Blake.
58936
58937 2007-04-26  Bruno Haible  <bruno@clisp.org>
58938
58939         Ensure fseeko, ftello are declared on glibc systems.
58940         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58941         * modules/fseeko (configure.ac-early): Likewise.
58942         * modules/ftello (configure.ac-early): Likewise.
58943         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58944         AC_FUNC_FSEEKO for this.
58945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58946         (gl_CHECK_FSEEKO): Remove macro.
58947
58948 2007-04-26  Bruno Haible  <bruno@clisp.org>
58949
58950         * tests/test-fflush.c (main): Also check the ftell result after
58951         fflush and fseek/fseeko.
58952         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58953         file descriptor position cache in the stream.
58954         * lib/fseeko.c (rpl_fseeko): Likewise.
58955
58956 2007-04-26  Bruno Haible  <bruno@clisp.org>
58957
58958         * modules/fflush-tests (Depends-on): Add fseeko.
58959
58960 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58961             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58962
58963         * lib/argz_.h: ensure error_t definition is obtained in same
58964         mechanism system argz.h would have.
58965         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58966         argz facilities are known bad.  Err on the side of caution if
58967         cross-compiling.
58968
58969 2007-04-25  Eric Blake  <ebb9@byu.net>
58970
58971         * lib/fpurge.c (includes): Use stdlib.h for free.
58972         * tests/test-fflush.c (main): Also test fflush-fseeko.
58973
58974 2007-04-25  Bruno Haible  <bruno@clisp.org>
58975
58976         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58977         * lib/fseeko.c: New file.
58978         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58979         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58980         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58981         gl_FUNC_FSEEKO.
58982         (gl_FUNC_FSEEKO): Invoke it.
58983         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58984         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58985         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58986
58987 2007-04-25  Bruno Haible  <bruno@clisp.org>
58988
58989         * modules/fflush (Depends-on): Add ftello.
58990
58991 2007-04-25  Bruno Haible  <bruno@clisp.org>
58992
58993         * modules/ftello-tests: New file.
58994         * tests/test-ftello.c: New file.
58995
58996         * modules/ftello: New file.
58997         * m4/ftello.m4: New file.
58998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58999         HAVE_FTELLO.
59000         * lib/stdio_.h (ftello): New declaration.
59001         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59002         HAVE_FTELLO.
59003
59004 2007-04-25  Bruno Haible  <bruno@clisp.org>
59005
59006         * modules/fseeko-tests: New file.
59007         * tests/test-fseeko.c: New file.
59008
59009         * modules/fseeko: New file.
59010         * m4/fseeko.m4: New file.
59011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59012         HAVE_FSEEKO.
59013         * lib/stdio_.h (fseeko): New declaration.
59014         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59015         HAVE_FSEEKO.
59016
59017 2007-04-25  Bruno Haible  <bruno@clisp.org>
59018
59019         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59020
59021 2007-04-25  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59024         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59025         * tests/test-unistd.c: Likewise.
59026         * tests/test-fcntl.c: Likewise.
59027
59028 2007-04-23  Eric Blake  <ebb9@byu.net>
59029
59030         * lib/fflush.c: Fix missing include.
59031         Reported by Bruno Haible.
59032
59033 2007-04-23  Bruno Haible  <bruno@clisp.org>
59034
59035         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59036         Reported by Eric Blake.
59037
59038 2007-04-23  Bruno Haible  <bruno@clisp.org>
59039
59040         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59041
59042 2007-04-23  Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59045
59046 2007-04-23  Bruno Haible  <bruno@clisp.org>
59047
59048         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59049         Needed on HP-UX 11.
59050
59051 2007-04-16  Eric Blake  <ebb9@byu.net>
59052
59053         Make fflush rely on fpurge.
59054         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59055         open coding all variants.
59056         * modules/fflush (Depends-on): Add fpurge and unistd.
59057         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59058         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59059
59060         Fix --with-tests compilation on cygwin.
59061         * modules/argmatch-tests (Makefile.am): List gnulib library first
59062         in LDADD.
59063         * modules/argp-tests (Makefile.am): Likewise.
59064         * modules/array-list-tests (Makefile.am): Likewise.
59065         * modules/array-oset-tests (Makefile.am): Likewise.
59066         * modules/avltree-list-tests (Makefile.am): Likewise.
59067         * modules/avltree-oset-tests (Makefile.am): Likewise.
59068         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59069         * modules/carray-list-tests (Makefile.am): Likewise.
59070         * modules/dirname-tests (Makefile.am): Likewise.
59071         * modules/frexp-tests (Makefile.am): Likewise.
59072         * modules/isnanl-tests (Makefile.am): Likewise.
59073         * modules/linked-list-tests (Makefile.am): Likewise.
59074         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59075         * modules/lock-tests (Makefile.am): Likewise.
59076         * modules/rbtree-list-tests (Makefile.am): Likewise.
59077         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59078         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59079         * modules/tls-tests (Makefile.am): Likewise.
59080         * modules/tsearch-tests (Makefile.am): Likewise.
59081         * modules/xvasprintf-tests (Makefile.am): Likewise.
59082
59083         Fix fpurge for cygwin.
59084         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59085         value.
59086         * modules/fpurge-tests (Depends-on): Clean up trash.
59087
59088 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59089
59090         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59091
59092         * m4/autobuild.m4: Re-indent.
59093
59094 2007-04-13  Bruno Haible  <bruno@clisp.org>
59095
59096         * modules/fpurge-tests: New file.
59097         * tests/test-fpurge.c: New file.
59098
59099         * modules/fpurge: New file.
59100         * lib/fpurge.h: New file.
59101         * lib/fpurge.c: New file.
59102         * m4/fpurge.m4: New file.
59103
59104 2007-04-13  Bruno Haible  <bruno@clisp.org>
59105
59106         * modules/fbufmode-tests: New file.
59107         * tests/test-fbufmode.c: New file.
59108
59109         * modules/fbufmode: New file.
59110         * lib/fbufmode.h: New file.
59111         * lib/fbufmode.c: New file.
59112         * m4/fbufmode.m4: New file.
59113
59114 2007-04-13  Bruno Haible  <bruno@clisp.org>
59115
59116         * modules/fwritable-tests: New file.
59117         * tests/test-fwritable.c: New file.
59118
59119         * modules/fwritable: New file.
59120         * lib/fwritable.h: New file.
59121         * lib/fwritable.c: New file.
59122         * m4/fwritable.m4: New file.
59123
59124 2007-04-13  Bruno Haible  <bruno@clisp.org>
59125
59126         * modules/freadable-tests: New file.
59127         * tests/test-freadable.c: New file.
59128
59129         * modules/freadable: New file.
59130         * lib/freadable.h: New file.
59131         * lib/freadable.c: New file.
59132         * m4/freadable.m4: New file.
59133
59134 2007-04-13  Bruno Haible  <bruno@clisp.org>
59135
59136         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59137         MOSTLYCLEANFILES.
59138
59139 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59140
59141         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59142         gzip bootstrap.conf to avoid dragging in i18n machinery.
59143         (gnulib_tool_option): Use it.
59144
59145 2007-04-13  Bruno Haible  <bruno@clisp.org>
59146
59147         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59148         %F directives.
59149         * tests/test-vasprintf-posix.c (test_function): Likewise.
59150         * tests/test-snprintf-posix.h (test_function): Likewise.
59151         * tests/test-sprintf-posix.h (test_function): Likewise.
59152         * tests/test-fprintf-posix.h (test_function): Likewise.
59153         * tests/test-printf-posix.h (test_function): Likewise.
59154         * tests/test-fprintf-posix.out: Likewise.
59155
59156 2007-04-13  Bruno Haible  <bruno@clisp.org>
59157
59158         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59159         * modules/tls-tests (configure.ac): Likewise.
59160         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59161
59162 2007-04-13  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/tls.c (glthread_tls_get): Fix return type.
59165         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59166
59167 2007-04-12  Eric Blake  <ebb9@byu.net>
59168
59169         * modules/gettime (Depends-on): Remove gettime.
59170         Reported by Dmitry V. Levin.
59171
59172 2007-04-12  Bruno Haible  <bruno@clisp.org>
59173
59174         * modules/fflush (Include): Mention <stdio.h>.
59175         * modules/strtoimax (Include): Mention <inttypes.h>.
59176         * modules/strtoumax (Include): Likewise.
59177
59178 2007-04-12  Eric Blake  <ebb9@byu.net>
59179
59180         * .cvsignore: New file.
59181         * .gitignore: Likewise.
59182
59183 2007-04-12  Bruno Haible  <bruno@clisp.org>
59184
59185         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59186         not before, since $(LDADD) often contains libgnu.a.
59187         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59188         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59189         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59190         Needed on Cygwin.
59191
59192 2007-04-12  Eric Blake  <ebb9@byu.net>
59193
59194         Work around glibc's failure to flush stdin on fclose.
59195         * lib/closein.c (close_stdin): Flush stdin before closing.
59196
59197         Work around glibc's failure to reset seekable stdin on exit.
59198         * modules/closein: New module.
59199         * lib/closein.c: New file.
59200         * lib/closein.h: Likewise.
59201         * m4/closein.m4: Likewise.
59202         * MODULES.html.sh (File stream based Input/Output): Document it.
59203
59204 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59205
59206         * gnulib-tool: Rename generated 'autobuild' script to
59207         'do-autobuild' in --create-megatestdir output.
59208
59209         * doc/gnulib.texi (Build robot for gnulib): Fix.
59210
59211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59212
59213         * modules/sysexits (Depends-on): Add absolute-header.
59214
59215 2007-04-12  Eric Blake  <ebb9@byu.net>
59216
59217         No need to preserve errno on success.
59218         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59219         Reported by Bruno Haible.
59220
59221 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59222
59223         * MODULES.html.sh (Support for maintaining and releasing
59224         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59225
59226 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59227
59228         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59229
59230 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59231
59232         * modules/autobuild: New module.
59233
59234         * m4/autobuild.m4: New file.
59235
59236 2007-04-11  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59239         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59242         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59243         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59244         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59245         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59249         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59250         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59251         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59255         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59256         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59258         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59259         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59266         Reported by Eric Blake.
59267
59268 2007-04-11  Bruno Haible  <bruno@clisp.org>
59269
59270         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59271
59272 2007-04-10  Bruno Haible  <bruno@clisp.org>
59273
59274         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59275         for NaN and Infinity. Needed on FreeBSD 6.1.
59276         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59277         regarding results for "%010a" of Infinity and NaN.
59278         * tests/test-vasprintf-posix.c (test_function): Likewise.
59279         * tests/test-snprintf-posix.h (test_function): Likewise.
59280         * tests/test-sprintf-posix.h (test_function): Likewise.
59281         * tests/test-fprintf-posix.h (test_function): Likewise.
59282         * tests/test-printf-posix.h (test_function): Likewise.
59283         * tests/test-fprintf-posix.out: Likewise.
59284
59285 2007-04-10  Bruno Haible  <bruno@clisp.org>
59286
59287         * modules/locale-tests: New file.
59288         * tests/test-locale.c: New file.
59289
59290         * modules/locale: New file.
59291         * lib/locale_.h: New file.
59292         * m4/locale_h.m4: New file.
59293
59294 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59295             Bruno Haible  <bruno@clisp.org>
59296
59297         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59298         be determined, test for availability of the copysignf, copysign,
59299         copysignl functions.
59300         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59301         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59302         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59303
59304 2007-04-09  Eric Blake  <ebb9@byu.net>
59305
59306         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59307         * modules/stdio (Makefile.am): Support fflush.
59308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59309         * modules/fflush: New file.
59310         * lib/fflush.c: Likewise.
59311         * m4/fflush.m4: Likewise.
59312         * modules/fflush-tests: New test.
59313         * tests/test-fflush.c: Likewise.
59314         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59315
59316 2007-04-06  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59319         (VASNPRINTF): Use signbit for faster determination whether to print a
59320         minus sign.
59321         * modules/vasnprintf (Files): Remove lib/float+.h.
59322         * modules/fprintf-posix (Depends-on): Add signbit.
59323         * modules/snprintf-posix (Depends-on): Likewise.
59324         * modules/sprintf-posix (Depends-on): Likewise.
59325         * modules/vasnprintf-posix (Depends-on): Likewise.
59326         * modules/vasprintf-posix (Depends-on): Likewise.
59327         * modules/vfprintf-posix (Depends-on): Likewise.
59328         * modules/vsnprintf-posix (Depends-on): Likewise.
59329         * modules/vsprintf-posix (Depends-on): Likewise.
59330
59331 2007-04-06  Bruno Haible  <bruno@clisp.org>
59332
59333         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59334         * tests/test-frexpl.c (main): Likewise.
59335         * tests/test-ldexpl.c (main): Likewise.
59336         * modules/frexp-tests (Depends-on): Add signbit.
59337         * modules/frexpl-tests (Depdends-on): Likewise.
59338         * modules/ldexpl-tests (Depdends-on): Likewise.
59339
59340 2007-04-06  Bruno Haible  <bruno@clisp.org>
59341
59342         * modules/signbit-tests: New file.
59343         * tests/test-signbit.c: New file.
59344
59345         * modules/signbit: New file.
59346         * lib/signbitf.c: New file.
59347         * lib/signbitd.c: New file.
59348         * lib/signbitl.c: New file.
59349         * m4/signbit.m4: New file.
59350         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59351         (signbit): New macro.
59352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59353         REPLACE_SIGNBIT.
59354         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59355         REPLACE_FREXPL into math.h.
59356
59357 2007-04-06  Bruno Haible  <bruno@clisp.org>
59358
59359         * modules/isnanf-nolibm-tests: New file.
59360         * tests/test-isnanf.c: New file.
59361
59362         * modules/isnanf-nolibm: New file.
59363         * lib/isnanf.h: New file.
59364         * lib/isnanf.c: New file.
59365         * lib/isnan.c: Consider the USE_FLOAT macro.
59366         * m4/isnanf.m4: New file.
59367
59368 2007-04-06  Bruno Haible  <bruno@clisp.org>
59369
59370         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59371         (Link): New section.
59372
59373         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59374
59375 2007-04-06  Bruno Haible  <bruno@clisp.org>
59376
59377         Assume the 'long double' type.
59378         * m4/longdouble.m4: Remove file.
59379         * config/srclist.txt: Don't mention longdouble.m4.
59380         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59381         * lib/float+.h: Likewise.
59382         * lib/frexp.c: Likewise.
59383         * lib/printf-args.h: Likewise.
59384         * lib/printf-args.c: Likewise.
59385         * lib/printf-frexp.c: Likewise.
59386         * lib/printf-parse.c: Likewise.
59387         * lib/vasnprintf.c: Likewise.
59388         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59389         * m4/intl.m4: Likewise.
59390         * m4/isnanl.m4: Likewise.
59391         * m4/printf.m4: Likewise.
59392         * m4/printf-frexpl.m4: Likewise.
59393         * m4/vasnprintf.m4: Likewise.
59394         * modules/allocsa (Files): Remove m4/longdouble.m4.
59395         * modules/gettext (Files): Likewise.
59396         * modules/relocatable-prog-wrapper (Files): Likewise.
59397         * modules/vasnprintf (Files): Likewise.
59398         * modules/isnanl (Files): Likewise.
59399         (Include): Simplify.
59400         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59401         (Include): Simplify.
59402         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59403         (Include): Simplify.
59404         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59405         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59406         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59407         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59408         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59409         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59410         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59411         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59412         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59413         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59414         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59415         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59416         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59417         * tests/test-isnanl.c: Likewise.
59418         * tests/test-snprintf-posix.h: Likewise.
59419         * tests/test-sprintf-posix.h: Likewise.
59420         * tests/test-vasnprintf-posix.c: Likewise.
59421         * tests/test-vasnprintf-posix2.c: Likewise.
59422         * tests/test-vasprintf-posix.c: Likewise.
59423
59424 2007-04-06  Bruno Haible  <bruno@clisp.org>
59425
59426         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59427         * lib/math_.h [__DECC]: Include the overridden include file through
59428         #include_next, outside the double-inclusion guard.
59429         * lib/stdio_.h [__DECC]: Likewise.
59430         * lib/stdlib_.h [__DECC]: Likewise.
59431         * lib/string_.h [__DECC]: Likewise.
59432         * lib/time_.h [__DECC]: Likewise.
59433         * lib/wchar_.h [__DECC]: Likewise.
59434         * lib/wctype_.h [__DECC]: Likewise.
59435         * lib/inttypes_.h [__DECC]: Likewise.
59436         Reported by Albert Chin <china@thewrittenword.com> in
59437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59438
59439 2007-04-04  Eric Blake  <ebb9@byu.net>
59440
59441         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59442         1.5.x.
59443
59444 2007-04-04  Bruno Haible  <bruno@clisp.org>
59445
59446         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59447         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59448
59449 2007-04-04  Bruno Haible  <bruno@clisp.org>
59450
59451         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59452         results for "%010a" of Infinity and NaN.
59453         * tests/test-vasprintf-posix.c (test_function): Likewise.
59454         * tests/test-snprintf-posix.h (test_function): Likewise.
59455         * tests/test-sprintf-posix.h (test_function): Likewise.
59456         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59457         * tests/test-printf-posix.h (test_function): Likewise.
59458         * tests/test-fprintf-posix.out: Update.
59459         Needed for FreeBSD 6.1.
59460
59461 2007-04-04  Bruno Haible  <bruno@clisp.org>
59462
59463         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59464         directly used by the gnulib modules nor by gnulib-tool.
59465
59466 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59467
59468         * DEPENDENCIES: Give overall description of version dependency
59469         desirability.  Use more-typical names for apps.
59470         Add shell, coreutils, diffutils, grep, tar, gzip.
59471
59472 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59473
59474         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59475
59476 2007-04-04  Karl Berry  <karl@gnu.org>
59477
59478         * MODULES.html.sh (func_module): missing '.
59479
59480 2007-04-03  Bruno Haible  <bruno@clisp.org>
59481
59482         * modules/argmatch-tests (Makefile.am): New variable
59483         test_argmatch_LDADD.
59484         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59485         * modules/array-list-tests (Makefile.am): New variable
59486         test_array_list_LDADD.
59487         * modules/array-oset-tests (Makefile.am): New variable
59488         test_array_oset_LDADD.
59489         * modules/avltree-list-tests (Makefile.am): New variable
59490         test_avltree_list_LDADD.
59491         * modules/avltree-oset-tests (Makefile.am): New variable
59492         test_avltree_oset_LDADD.
59493         * modules/avltreehash-list-tests (Makefile.am): New variable
59494         test_avltreehash_list_LDADD.
59495         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59496         test_canonicalize_lgpl_LDADD.
59497         * modules/carray-list-tests (Makefile.am): New variable
59498         test_carray_list_LDADD.
59499         * modules/dirname-tests (Makefile.am): New variable
59500         test_dirname_LDADD.
59501         * modules/linked-list-tests (Makefile.am): New variable
59502         test_linked_list_LDADD.
59503         * modules/linkedhash-list-tests (Makefile.am): New variable
59504         test_linkedhash_list_LDADD.
59505         * modules/rbtree-list-tests (Makefile.am): New variable
59506         test_rbtree_list_LDADD.
59507         * modules/rbtree-oset-tests (Makefile.am): New variable
59508         test_rbtree_oset_LDADD.
59509         * modules/rbtreehash-list-tests (Makefile.am): New variable
59510         test_rbtreehash_list_LDADD.
59511         * modules/xvasprintf-tests (Makefile.am): New variable
59512         test_xvasprintf_LDADD.
59513         Reported by Eric Blake.
59514
59515 2007-04-03  Eric Blake  <ebb9@byu.net>
59516
59517         * DEPENDENCIES: Weaken m4 requirements.
59518
59519 2007-04-03  Bruno Haible  <bruno@clisp.org>
59520
59521         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59522         * modules/isnanl-tests (configure.ac): Likewise.
59523
59524 2007-04-03  Ben Pfaff  <blp@gnu.org>
59525
59526         * modules/iconv_open: Add $(srcdir)/ to source directory
59527         references in Makefile fragments that call gperf, to fix VPATH
59528         builds.
59529
59530 2007-04-03  Bruno Haible  <bruno@clisp.org>
59531
59532         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59533         * lib/ldexpl.c: Undo last change.
59534
59535 2007-04-03  Bruno Haible  <bruno@clisp.org>
59536
59537         * modules/printf-frexpl (Depends-on): Undo last change.
59538         (Files): Add m4/ldexpl.m4.
59539
59540 2007-04-03  Bruno Haible  <bruno@clisp.org>
59541
59542         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59543         * modules/isnanl (Link): New section.
59544
59545         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59546         * modules/frexp (Link): New section.
59547
59548         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59549         * modules/frexpl (Link): New section.
59550
59551         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59552         * modules/ldexpl (Link): New section.
59553
59554 2007-04-03  Bruno Haible  <bruno@clisp.org>
59555
59556         * modules/TEMPLATE-EXTENDED: New file.
59557         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59558
59559 2007-04-03  Bruno Haible  <bruno@clisp.org>
59560
59561         * DEPENDENCIES: New file.
59562         Suggested by Simon Josefsson.
59563
59564 2007-04-03  Bruno Haible  <bruno@clisp.org>
59565
59566         * doc/gnulib.texi: Escape @.
59567
59568 2007-04-03  James Youngman  <jay@gnu.org>
59569         and Paul Eggert  <eggert@cs.ucla.edu>
59570
59571         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59572         birthtime on all systems that have birthtime, not just those which
59573         use st_birthtimensec rather than st_birthtim.  Putting zero in
59574         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59575         that the birth time is not available for files on an NFS mount.
59576
59577 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59578
59579         * modules/memxor: Move back from crypto/, suggested by Bruno.
59580         * modules/crypto/hmac-sha1: Fix memxor dependency.
59581
59582         * modules/crypto/gc: Moved from ../.
59583
59584 2007-04-02  Eric Blake  <ebb9@byu.net>
59585
59586         * lib/ldexpl.c (includes): Avoid libm.
59587
59588         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59589
59590 2007-04-02  Bruno Haible  <bruno@clisp.org>
59591
59592         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59593         on IRIX.
59594
59595 2007-04-02  Bruno Haible  <bruno@clisp.org>
59596
59597         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59598         x86 or x86_64 platforms running MacOS X.
59599         Reported by Ryan Schmidt <@ryandesign.com>.
59600
59601 2007-04-02  Bruno Haible  <bruno@clisp.org>
59602
59603         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59604         i386.
59605
59606 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59607
59608         * modules/crypto/arcfour: Moved from ../.
59609         * modules/crypto/arcfour-tests: Moved from ../.
59610         * modules/crypto/arctwo: Moved from ../.
59611         * modules/crypto/arctwo-tests: Moved from ../.
59612         * modules/crypto/des: Moved from ../.
59613         * modules/crypto/des-tests: Moved from ../.
59614         * modules/crypto/gc-arcfour: Moved from ../.
59615         * modules/crypto/gc-arcfour-tests: Moved from ../.
59616         * modules/crypto/gc-arctwo: Moved from ../.
59617         * modules/crypto/gc-arctwo-tests: Moved from ../.
59618         * modules/crypto/gc-des: Moved from ../.
59619         * modules/crypto/gc-des-tests: Moved from ../.
59620         * modules/crypto/gc-hmac-md5: Moved from ../.
59621         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59622         * modules/crypto/gc-hmac-sha1: Moved from ../.
59623         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59624         * modules/crypto/gc-md2: Moved from ../.
59625         * modules/crypto/gc-md2-tests: Moved from ../.
59626         * modules/crypto/gc-md4: Moved from ../.
59627         * modules/crypto/gc-md4-tests: Moved from ../.
59628         * modules/crypto/gc-md5: Moved from ../.
59629         * modules/crypto/gc-md5-tests: Moved from ../.
59630         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59631         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59632         * modules/crypto/gc-random: Moved from ../.
59633         * modules/crypto/gc-rijndael: Moved from ../.
59634         * modules/crypto/gc-rijndael-tests: Moved from ../.
59635         * modules/crypto/gc-sha1: Moved from ../.
59636         * modules/crypto/gc-sha1-tests: Moved from ../.
59637         * modules/crypto/gc-tests: Moved from ../.
59638         * modules/crypto/hmac-md5: Moved from ../.
59639         * modules/crypto/hmac-md5-tests: Moved from ../.
59640         * modules/crypto/hmac-sha1: Moved from ../.
59641         * modules/crypto/hmac-sha1-tests: Moved from ../.
59642         * modules/crypto/md2: Moved from ../.
59643         * modules/crypto/md2-tests: Moved from ../.
59644         * modules/crypto/md4: Moved from ../.
59645         * modules/crypto/md4-tests: Moved from ../.
59646         * modules/crypto/md5: Moved from ../.
59647         * modules/crypto/md5-tests: Moved from ../.
59648         * modules/crypto/memxor: Moved from ../.
59649         * modules/crypto/rijndael: Moved from ../.
59650         * modules/crypto/rijndael-tests: Moved from ../.
59651         * modules/crypto/sha1: Moved from ../.
59652
59653 2007-03-30  James Youngman  <jay@gnu.org>
59654
59655         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59656         rename() to change the ctime of a file (because ctime is unaffected
59657         by rename on jfs2 on AIX 5.1).
59658         (main): Start by doing cleanup, in case a previous run failed leaving
59659         test files behind.
59660
59661 2007-03-31  Bruno Haible  <bruno@clisp.org>
59662
59663         Support old proprietary implementations of iconv.
59664         * modules/iconv_open: New file.
59665         * lib/iconv_.h: New file.
59666         * m4/iconv_h.m4: New file.
59667         * lib/iconv_open.c: New file.
59668         * lib/iconv_open-aix.gperf: New file.
59669         * lib/iconv_open-hpux.gperf: New file.
59670         * lib/iconv_open-irix.gperf: New file.
59671         * lib/iconv_open-osf.gperf: New file.
59672         * m4/iconv_open.m4: New file.
59673         * modules/linebreak (Depends-on): Add iconv_open.
59674         * modules/striconv (Depends-on): Likewise.
59675         * modules/striconveh (Depends-on): Likewise.
59676         * modules/unicodeio (Depends-on): Likewise.
59677         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59678         (iconv_t)(-1).
59679         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59680         conversion if cd is (iconv_t)(-1).
59681         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59682         is not possible.
59683
59684 2007-03-31  Bruno Haible  <bruno@clisp.org>
59685
59686         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59687         work on Solaris either. Protect also second use of "autodetect_jp".
59688
59689 2007-03-31  Bruno Haible  <bruno@clisp.org>
59690
59691         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59692         the function is not present.
59693
59694 2007-03-31  Bruno Haible  <bruno@clisp.org>
59695
59696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59697         the function is not present.
59698
59699 2007-03-31  Bruno Haible  <bruno@clisp.org>
59700
59701         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59702         a bug in HP-UX iconv_open().
59703
59704 2007-03-31  Bruno Haible  <bruno@clisp.org>
59705
59706         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59707         (Mathematics <math.h>): New section, add fpieee.
59708         (Input/output <stdio.h>): Add fseterr.
59709         (Mathematics <math.h>): New section, add printf-frexp.
59710         (Container data structures): Add sublist.
59711         (Core language properties): Add fpucw, inline.
59712         (Functions for greatest-width integer types <inttypes.h>): Add
59713         imaxabs, imaxdiv, inttypes.
59714         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59715         isnanl-nolibm, ldexp.
59716         (Mathematics <math.h>): New section, add printf-frexpl.
59717         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59718         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59719         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59720         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59721         (Unicode string functions): Add unistr/u*-mbtoucr.
59722         (Java): Add javacomp-script, javaexec-script.
59723         (C#): Add csharpcomp-script, csharpexec-script.
59724         (Support for building libraries and executables): Add havelib,
59725         relocatable-*.
59726         (Support for maintaining and releasing projects): Renamed from
59727         'Support for maintaining and release projects'. Add announce-gen.
59728
59729 2007-03-31  Bruno Haible  <bruno@clisp.org>
59730
59731         * README: Talk primarily about git.
59732         (git and CVS): Renamed from CVS.
59733         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59734         gnulib is available through git.
59735         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59736
59737 2007-03-30  Bruno Haible  <bruno@clisp.org>
59738
59739         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59740         * lib/poll_.h: Likewise.
59741         * lib/stat_.h: Likewise.
59742         * lib/sys_time_.h: Likewise.
59743         * lib/sysexit_.h: Likewise.
59744         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59745         * lib/stdbool_.h: Likewise.
59746         * lib/byteswap_.h: Add double-inclusion guard.
59747
59748 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59749
59750         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59751
59752 2007-03-30  Karl Berry  <karl@gnu.org>
59753
59754         * config/srclist-update: double space after USA in the license
59755         substitution, since that's how it's usually (?) written.
59756
59757 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59760         reported by Bruno Haible.
59761
59762 2007-03-29  Bruno Haible  <bruno@clisp.org>
59763
59764         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59765         a bug in AIX iconv().
59766
59767 2007-03-29  Bruno Haible  <bruno@clisp.org>
59768
59769         * modules/ldexpl-tests: New file.
59770         * tests/test-ldexpl.c: New file.
59771
59772 2007-03-29  Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/ldexpl.c: Include fpucw.h.
59775         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59776         multiplication.
59777         * modules/ldexpl (Depends-on): Add fpucw.
59778
59779 2007-03-29  Bruno Haible  <bruno@clisp.org>
59780
59781         * modules/ldexpl: New file.
59782         * m4/ldexpl.m4: New file.
59783         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59784         set.
59785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59786         REPLACE_LDEXPL.
59787         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59788         REPLACE_LDEXPL.
59789         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59790         gl_FUNC_LDEXPL_WORKS.
59791         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59792         * modules/mathl (Files): Remove lib/ldexpl.c.
59793         (Depends-on): Add ldexpl.
59794
59795 2007-03-29  Bruno Haible  <bruno@clisp.org>
59796
59797         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59798
59799 2007-03-29  Bruno Haible  <bruno@clisp.org>
59800
59801         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59802         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59803         and possibly also HP-UX.
59804         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59805         work on AIX, IRIX, HP-UX, OSF/1.
59806         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59807         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59808         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59809         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59810         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59811         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59812
59813 2007-03-29  Bruno Haible  <bruno@clisp.org>
59814
59815         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59816
59817 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59818
59819         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59820         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59821
59822 2007-03-29  Eric Blake  <ebb9@byu.net>
59823
59824         * lib/acl-internal.h: Remove redundant include.
59825         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59826         Cygwin when a file is locked.
59827
59828 2007-03-29  Bruno Haible  <bruno@clisp.org>
59829
59830         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59831         file.
59832         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59833
59834 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59837         try to remove a parent directory if the child couldn't be removed
59838         (except for the first rmdir, which could fail because the child
59839         doesn't exist).  Problem reported by Jeff Blaine in
59840         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59841
59842 2007-03-28  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/striconveh.c (utf8conv_carefully): New function.
59845         (mem_cd_iconveh_internal): Invoke it.
59846
59847 2007-03-28  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59850         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59851         input.
59852         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59853         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59854         unistr/u8-uctomb.
59855
59856 2007-03-28  Bruno Haible  <bruno@clisp.org>
59857
59858         * modules/unistr/u8-mbtoucr: New file.
59859         * lib/unistr/u8-mbtoucr.c: New file.
59860         * modules/unistr/u16-mbtoucr: New file.
59861         * lib/unistr/u16-mbtoucr.c: New file.
59862         * modules/unistr/u16-mbtoucr: New file.
59863         * lib/unistr/u16-mbtoucr.c: New file.
59864         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59865
59866 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59867             Bruno Haible  <bruno@clisp.org>
59868
59869         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59870         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59871         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59872
59873         * m4/stdio_h.m4: Add stubs for vasprintf too.
59874
59875         * modules/stdio: Support vasprintf in sed command.
59876
59877         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59878         vasprintf.h.  Add stdio module indicator.
59879
59880         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59881         vasprintf.h.
59882
59883         * lib/vasprintf.h: File removed.
59884
59885         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59886         * lib/vasprintf.c: Ditto.
59887         * lib/xvasprintf.c: Ditto.
59888         * tests/test-vasprintf-posix.c: Ditto.
59889         * tests/test-vasprintf.c: Ditto.
59890
59891 2007-03-27  Bruno Haible  <bruno@clisp.org>
59892
59893         Make vasnprintf multithread-safe.
59894         * lib/vasnprintf.c (decimal_point_char): New function.
59895         (VASNPRINTF): Use it.
59896         Suggested by Simon Josefsson.
59897
59898 2007-03-27  Eric Blake  <ebb9@byu.net>
59899
59900         Support sub-second birthtime on cygwin.
59901         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59902         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59903         (get_stat_birthtime): Also work with st_birthtim.
59904
59905 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59906
59907         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59908         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59909         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59910         (get_stat_birthtime_ns): Simplify compile-time tests.
59911         (get_stat_birthtime): Change the API to look like
59912         get_stat_mtime etc., except return a negative tv_nsec on error.
59913         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59914         Don't check for "spare" fields.
59915         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59916         or for struct stat.st_birthtime, as these tests aren't used.
59917         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59918
59919 2007-03-27  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/stat-time.h: Include <sys/stat.h>.
59922
59923 2007-03-27  James Youngman  <jay@gnu.org>
59924
59925         * lib/stat-time.h (get_stat_birthtime): New function for
59926           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59927         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59928           and its variants.
59929         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59930         * modules/stat-time-test: New file.
59931         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59932
59933 2007-03-26  Bruno Haible  <bruno@clisp.org>
59934
59935         Better support of signalling NaNs.
59936         * lib/atanl.c: Include isnanl.h.
59937         (atanl): Perform test for NaN at the beginning of the function and
59938         through a call to isnanl.
59939         * lib/cosl.c: Include isnanl.h.
59940         (cosl): Perform test for NaN at the beginning of the function and
59941         through a call to isnanl.
59942         * lib/ldexpl.c: Include isnanl.h.
59943         (ldexpl): Perform test for NaN through a call to isnanl.
59944         * lib/logl.c: Include isnanl.h.
59945         (logl): Perform test for NaN at the beginning of the function and
59946         through a call to isnanl.
59947         * lib/sinl.c: Include isnanl.h.
59948         (sinl): Perform test for NaN at the beginning of the function and
59949         through a call to isnanl.
59950         * lib/sqrtl.c: Include isnanl.h.
59951         (sqrtl): Perform test for NaN at the beginning of the function and
59952         through a call to isnanl.
59953         * lib/tanl.c: Include isnanl.h.
59954         (tanl): Perform test for NaN at the beginning of the function and
59955         through a call to isnanl.
59956         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59957         * modules/mathl (Depends-on): Add isnanl.
59958
59959 2007-03-26  Eric Blake  <ebb9@byu.net>
59960
59961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59962         regression in logic sense of previous patch.
59963
59964 2007-03-26  Bruno Haible  <bruno@clisp.org>
59965
59966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59967         unportable shell command "if ! ...".
59968         Reported by Ralf Wildenhues.
59969
59970 2007-03-25  Bruno Haible  <bruno@clisp.org>
59971
59972         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59973         <sysexits.h> file, and only add EX_CONFIG.
59974         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59975         absolute file name and whether it is sufficient. Substitute also
59976         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59977         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59978         ABSOLUTE_SYSEXITS_H into sysexits.h.
59979
59980 2007-03-25  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59983         hints is NULL.
59984
59985 2007-03-25  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59988         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59989
59990 2007-03-25  Bruno Haible  <bruno@clisp.org>
59991
59992         * lib/vasnprintf.c: Include langinfo.h.
59993         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59994         multithread-safe.
59995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59998         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59999         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60000         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60004         Reported by Simon Josefsson.
60005
60006 2007-03-25  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60009         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60010         * modules/vasnprintf (Depends-on): Add stdint.
60011
60012 2007-03-25  Bruno Haible  <bruno@clisp.org>
60013
60014         * modules/fpieee: New file.
60015         * m4/fpieee.m4: New file.
60016         * modules/isnan-nolibm (Depends-on): Add fpieee.
60017         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60018         * modules/isnanl (Depends-on): Add fpieee.
60019
60020 2007-03-25  Bruno Haible  <bruno@clisp.org>
60021
60022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60023
60024 2007-03-25  Bruno Haible  <bruno@clisp.org>
60025
60026         Avoid test failures on IRIX 6.5.
60027         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60028         (main): Use it.
60029         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60030         macros.
60031         (main): Use them.
60032
60033 2007-03-25  Bruno Haible  <bruno@clisp.org>
60034
60035         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60036         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60037         exists but doesn't work.
60038         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60039         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60041         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60042         math.h.
60043
60044 2007-03-25  Bruno Haible  <bruno@clisp.org>
60045
60046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60047         returns inf. Needed on IRIX 6.5.
60048
60049 2007-03-25  Bruno Haible  <bruno@clisp.org>
60050
60051         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60052         (main): Use isnanl instead of x != x idiom.
60053         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60054
60055         * tests/test-frexp.c: Include isnan.h.
60056         (main): Use isnan instead of x != x idiom.
60057         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60058
60059 2007-03-25  Bruno Haible  <bruno@clisp.org>
60060
60061         * tests/test-frexp.c (NaN): New function/macro.
60062         (main): Use it instead of 0.0 / 0.0.
60063         * tests/test-isnan.c (NaN): New function/macro.
60064         (main): Use it instead of 0.0 / 0.0.
60065         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60066         (test_function): Use it instead of 0.0 / 0.0.
60067         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60068         (test_function): Use it instead of 0.0 / 0.0.
60069         * tests/test-snprintf-posix.h (NaN): New function/macro.
60070         (test_function): Use it instead of 0.0 / 0.0.
60071         * tests/test-sprintf-posix.h (NaN): New function/macro.
60072         (test_function): Use it instead of 0.0 / 0.0.
60073         * tests/test-fprintf-posix.h (NaN): New function/macro.
60074         (test_function): Use it instead of 0.0 / 0.0.
60075         * tests/test-printf-posix.h (NaN): New function/macro.
60076         (test_function): Use it instead of 0.0 / 0.0.
60077
60078         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60079
60080 2007-03-25  Bruno Haible  <bruno@clisp.org>
60081
60082         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60083
60084 2007-03-25  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/regexec.c (merge_state_with_log): Make static.
60087
60088 2007-03-25  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/trigl.c (kernel_rem_pio2): Make static.
60091
60092 2007-03-25  Bruno Haible  <bruno@clisp.org>
60093
60094         * lib/sincosl.c (sincosl_table): Make static.
60095
60096 2007-03-25  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60099         if the compiler does not support C99.
60100
60101 2007-03-25  Bruno Haible  <bruno@clisp.org>
60102
60103         * modules/time (Makefile.am): Ensure all rule action lines start with a
60104         tab.
60105
60106 2007-03-24  Bruno Haible  <bruno@clisp.org>
60107
60108         * modules/tsearch-tests: New file.
60109         * tests/test-tsearch.sh: New file.
60110         * tests/test-tsearch.c: New file, mostly copied from glibc.
60111
60112         * modules/search-tests: New file.
60113         * tests/test-search.c: New file.
60114
60115         * modules/search: New file.
60116         * lib/search_.h: New file, incorporating lib/tsearch.h.
60117         * m4/search_h.m4: New file.
60118         * lib/tsearch.h: Remove file.
60119         * lib/tsearch.c: Include search.h instead of tsearch.h.
60120         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60121         HAVE_TSEARCH.
60122         * modules/tsearch (Files): Remove lib/tsearch.h.
60123         (Depends-on): Add search.
60124         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60125         (Include): Change tsearch.h into search.h.
60126
60127 2007-03-24  Bruno Haible  <bruno@clisp.org>
60128
60129         * modules/fpucw: New file.
60130         * lib/fpucw.h: New file.
60131         * lib/frexp.c: Include fpucw.h.
60132         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60133         (FUNC): Use them.
60134         * lib/printf-frexp.c: Include fpucw.h.
60135         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60136         (FUNC): Use them.
60137         * lib/vasnprintf.c: Include fpucw.h.
60138         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60139         'long double' calculations.
60140         * tests/test-frexpl.c: Include fpucw.h.
60141         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60142         * tests/test-printf-frexpl.c: Include fpucw.h.
60143         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60144         * modules/frexpl (Depends-on): Add fpucw.
60145         * modules/printf-frexpl (Depends-on): Likewise.
60146         * modules/fprintf-posix (Depends-on): Likewise.
60147         * modules/snprintf-posix (Depends-on): Likewise.
60148         * modules/sprintf-posix (Depends-on): Likewise.
60149         * modules/vasnprintf-posix (Depends-on): Likewise.
60150         * modules/vasprintf-posix (Depends-on): Likewise.
60151         * modules/vfprintf-posix (Depends-on): Likewise.
60152         * modules/vsnprintf-posix (Depends-on): Likewise.
60153         * modules/vsprintf-posix (Depends-on): Likewise.
60154         * modules/frexpl-tests (Depends-on): Likewise.
60155         * modules/printf-frexpl-tests (Depends-on): Likewise.
60156
60157 2007-03-24  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/float+.h: New file.
60160         * lib/isnan.c: Include float+.h.
60161         (SIZE): New macro.
60162         (FUNC): Compare only SIZE bytes of the value.
60163         * lib/vasnprintf.c: Include float+.h.
60164         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60165         SIZEOF_LDBL or SIZEOF_DBL bytes.
60166         * modules/isnan-nolibm (Files): Add lib/float+.h.
60167         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60168         * modules/isnanl (Files): Add lib/float+.h.
60169         * modules/vasnprintf (Files): Add lib/float+.h.
60170
60171 2007-03-24  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60174         include isnanl-nolibm.h.
60175
60176 2007-03-24  Bruno Haible  <bruno@clisp.org>
60177
60178         * tests/test-read-file.c (main): Don't produce spurious output for
60179         expected situations. Make the test fail if it encountered unexpected
60180         results.
60181
60182 2007-03-24  Bruno Haible  <bruno@clisp.org>
60183
60184         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60185         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60186
60187 2007-03-24  Bruno Haible  <bruno@clisp.org>
60188
60189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60190
60191 2007-03-24  Bruno Haible  <bruno@clisp.org>
60192
60193         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60194         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60195
60196         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60197         * modules/utf8-ucs4: Turn into a symbolic link to module
60198         unistr/u8-mbtouc.
60199
60200         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60201         utf8-ucs4-unsafe.
60202         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60203         unistr/u8-mbtouc-unsafe.
60204
60205         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60206         * modules/utf16-ucs4: Turn into a symbolic link to module
60207         unistr/u16-mbtouc.
60208
60209         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60210         utf16-ucs4-unsafe.
60211         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60212         unistr/u16-mbtouc-unsafe.
60213
60214         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60215         * modules/ucs4-utf8: Turn into a symbolic link to module
60216         unistr/u8-ubtomb.
60217
60218         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60219         * modules/ucs4-utf16: Turn into a symbolic link to module
60220         unistr/u16-ubtomb.
60221
60222 2007-03-24  Bruno Haible  <bruno@clisp.org>
60223
60224         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60225         Enable the function only if HAVE_INLINE.
60226         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60227         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60228         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60229         Enable the function only if HAVE_INLINE.
60230         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60231         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60232         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60233         Enable the function only if HAVE_INLINE.
60234         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60235         Enable the function only if HAVE_INLINE.
60236         * modules/utf8-ucs4: Update.
60237         * modules/utf8-ucs4-unsafe: Update.
60238         * modules/utf16-ucs4: Update.
60239         * modules/utf16-ucs4-unsafe: Update.
60240         * modules/ucs4-utf8: Update.
60241         * modules/ucs4-utf16: Update.
60242
60243 2007-03-24  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/utf8-ucs4.h: Remove file.
60246         * lib/utf8-ucs4-unsafe.h: Remove file.
60247         * lib/utf16-ucs4.h: Remove file.
60248         * lib/utf16-ucs4-unsafe.h: Remove file.
60249         * lib/ucs4-utf8.h: Remove file.
60250         * lib/ucs4-utf16.h: Remove file.
60251         * lib/unistr.h: Include their previous contents.
60252         * m4/utf-ucs4.m4: Remove file.
60253         * m4/ucs4-utf.m4: Remove file.
60254         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60255         (Depends-on): Add unistr/base.
60256         (configure.ac): Remove gl_UTF_UCS4.
60257         (Makefile.am): Update.
60258         (Include): Change to unistr.h.
60259         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60260         (Depends-on): Add unistr/base.
60261         (configure.ac): Remove gl_UTF_UCS4.
60262         (Makefile.am): Update.
60263         (Include): Change to unistr.h.
60264         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60265         (Depends-on): Add unistr/base.
60266         (configure.ac): Remove gl_UTF_UCS4.
60267         (Makefile.am): Update.
60268         (Include): Change to unistr.h.
60269         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60270         (Depends-on): Add unistr/base.
60271         (configure.ac): Remove gl_UTF_UCS4.
60272         (Makefile.am): Update.
60273         (Include): Change to unistr.h.
60274         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60275         (Depends-on): Add unistr/base.
60276         (configure.ac): Remove gl_UCS4_UTF.
60277         (Makefile.am): Update.
60278         (Include): Change to unistr.h.
60279         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60280         (Depends-on): Add unistr/base.
60281         (configure.ac): Remove gl_UCS4_UTF.
60282         (Makefile.am): Update.
60283         (Include): Change to unistr.h.
60284         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60285         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60286         utf8-ucs4-unsafe.h.
60287         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60288         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60289         utf16-ucs4-unsafe.h.
60290         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60291         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60292         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60293         * lib/unistr/u8-strchr.c: Likewise.
60294         * lib/unistr/u8-strrchr.c: Likewise.
60295         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60296         * lib/unistr/u16-strchr.c: Likewise.
60297         * lib/unistr/u16-strrchr.c: Likewise.
60298         * lib/striconveh.c: Update.
60299         * lib/linebreak.c: Update.
60300
60301 2007-03-24  Bruno Haible  <bruno@clisp.org>
60302
60303         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60304         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60305
60306 2007-03-22  Bruno Haible  <bruno@clisp.org>
60307
60308         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60309
60310 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60311
60312         * MODULES.html.sh (File system functions): New module write-any-file.
60313         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60314         * m4/write-any-file.m4: New files.
60315
60316 2007-03-23  Eric Blake  <ebb9@byu.net>
60317
60318         * gnulib-tool: Rearrange space-tab sequences, since some editors
60319         like to eat them.
60320
60321 2007-03-23  Eric Blake  <ebb9@byu.net>
60322
60323         * lib/version-etc.c (version_etc_va): Update license wording to
60324         be more concise.  Recommended by Richard Stallman.
60325
60326 2007-03-22  Bruno Haible  <bruno@clisp.org>
60327
60328         * lib/poll.c (MSG_PEEK): New fallback definition.
60329
60330 2007-03-22  Bruno Haible  <bruno@clisp.org>
60331
60332         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60333         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60334         (main): Update.
60335         Fixes a compilation error on BeOS.
60336
60337 2007-03-22  Bruno Haible  <bruno@clisp.org>
60338
60339         * modules/frexpl-tests: New file.
60340         * tests/test-frexpl.c: New file.
60341
60342         * modules/frexpl: New file.
60343         * m4/frexpl.m4: New file.
60344         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60345         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60347         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60348         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60349         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60350
60351 2007-03-22  Bruno Haible  <bruno@clisp.org>
60352
60353         * lib/frexpl.c: Share code with lib/frexp.c.
60354         * modules/mathl (Files): Add lib/frexp.c.
60355         (Depends-on): Add isnanl-nolibm.
60356
60357 2007-03-22  Bruno Haible  <bruno@clisp.org>
60358
60359         * modules/printf-frexp (Files): Add m4/frexp.m4.
60360         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60361         only if the found frexp function actually works.
60362
60363 2007-03-22  Bruno Haible  <bruno@clisp.org>
60364
60365         * lib/frexp.c: Remove older implementation that uses divisions.
60366
60367 2007-03-21  Bruno Haible  <bruno@clisp.org>
60368
60369         * modules/frexp-tests: New file.
60370         * tests/test-frexp.c: New file.
60371
60372         * modules/frexp: New file.
60373         * lib/frexp.c: New file.
60374         * m4/frexp.m4: New file.
60375         * lib/math_.h (frexp): New declaration.
60376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60377         REPLACE_FREXP.
60378         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60379
60380 2007-03-21  Bruno Haible  <bruno@clisp.org>
60381
60382         * modules/isnanl-tests: New file.
60383         * tests/test-isnanl.c: New file.
60384
60385         * modules/isnanl: New file.
60386         * lib/isnanl.h: New file.
60387         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60388         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60389         gl_FUNC_ISNANL_WORKS.
60390         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60391         New macros.
60392
60393 2007-03-21  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60396         lib/isnanl.h.
60397         (Include): Update.
60398         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60399         * lib/vasnprintf.c: Update.
60400         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60401         tests/test-isnanl.h, remove tests/test-isnanl.c.
60402         (Makefile.am): Update.
60403         * tests/test-isnanl-nolibm.c: New file.
60404         * tests/test-isnanl.h: New file.
60405         * tests/test-isnanl.c: Remove file.
60406
60407 2007-03-21  Jim Meyering  <jim@meyering.net>
60408
60409         When trying to open ".", treat ESTALE like EACCES.
60410         * lib/savewd.c (savewd_save): Resort to forking not just upon
60411         failure with EACCES, but also when errno is ESTALE.
60412
60413 2007-03-20  Bruno Haible  <bruno@clisp.org>
60414
60415         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60416         Needed on AIX 5.1. Reported by Matthew Woehlke.
60417
60418 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60419
60420         Suggestions by Bruno Haible:
60421         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60422         our own.
60423         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60424         * modules/acl (Depends-on): Add gettext.
60425
60426 2007-03-19  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/iconvme: Remove file.
60429         * lib/iconvme.h: Remove file.
60430         * lib/iconvme.c: Remove file.
60431         * m4/iconvme.m4: Remove file.
60432
60433 2007-03-19  Bruno Haible  <bruno@clisp.org>
60434
60435         * doc/relocatable-maint.texi: Break long shell script line.
60436         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60437
60438 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60439
60440         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60441         handle file_has_acl.
60442         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60443         * lib/acl.c: Move header inclusions and related macro defns into
60444         lib/acl-internal.h.
60445         (S_ISLNK): Remove defn, since that's now done for us.
60446         (file_has_acl): Move to lib/file-has-acl.c.
60447         Call acl_trivial if available.  This is the crucial part of the fix.
60448         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60449         shared within the library.  Rewrite a bit, partly to make it compatible
60450         with the GNU coding style.
60451         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60452         Remove unnecessary double-quotes.
60453         Don't test for acl_to_text; the build will catch that.
60454         Replace acl_entries if it doesn't exist and it is needed.
60455         Check for -lsec and acl_trivial (as used on Solaris 10).
60456         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60457         lib/file-has-acl.c.
60458         (Depends-on): Add sys_stat, for S_ISLNK.
60459
60460 2007-03-19  Ben Pfaff  <blp@gnu.org>
60461
60462         * doc/gnulib.texi: Fix typos.
60463         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60464
60465 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60466
60467         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60468         If size is zero here, buf must be zero.
60469
60470 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60471
60472         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60473         <bruno@clisp.org>.
60474
60475 2007-03-18  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60478         Suggested by Eric Blake.
60479
60480 2007-03-18  Ben Pfaff  <blp@gnu.org>
60481
60482         * doc/relocatable.texi: Recommend using as prefix a directory
60483         that does not exist and will never be created.  Based on
60484         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60485         and others.
60486
60487 2007-03-17  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/fchownat.c: Include lchown.h.
60490
60491 2007-03-17  Bruno Haible  <bruno@clisp.org>
60492
60493         Fix endless loop when the given allocated size was > INT_MAX.
60494         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60495         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60496         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60497         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60498         * lib/sprintf.c (sprintf): Likewise.
60499
60500 2007-03-17  Bruno Haible  <bruno@clisp.org>
60501
60502         * tests/test-argp-2.sh (func_compare): Output a context diff.
60503
60504 2007-03-17  Bruno Haible  <bruno@clisp.org>
60505
60506         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60507         locale's decimal-point character.
60508
60509 2007-03-17  Bruno Haible  <bruno@clisp.org>
60510
60511         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60512         before comparing it. Needed because on some platforms (e.g. x86) a
60513         'long double' occupies less bytes than sizeof (long double).
60514
60515 2007-03-17  Bruno Haible  <bruno@clisp.org>
60516
60517         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60518         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60519         * tests/test-getaddrinfo.c (simple): Likewise.
60520         * tests/test-read-file.c (main): Likewise.
60521
60522 2007-03-17  Bruno Haible  <bruno@clisp.org>
60523
60524         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60525
60526 2007-03-17  Bruno Haible  <bruno@clisp.org>
60527
60528         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60529         unused variable.
60530
60531 2007-03-17  Bruno Haible  <bruno@clisp.org>
60532
60533         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60534         * tests/test-c-strncasecmp.c: Likewise.
60535
60536 2007-03-17  Bruno Haible  <bruno@clisp.org>
60537
60538         * modules/stdlib (Depends-on): Add unistd.
60539         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60540         Needed for MacOS X 10.3.
60541
60542 2007-03-17  Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60545
60546 2007-03-17  Bruno Haible  <bruno@clisp.org>
60547
60548         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60549
60550 2007-03-17  Bruno Haible  <bruno@clisp.org>
60551
60552         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60553         to reflect files copied from gnulib (with or without modifications).
60554         Suggested by Jim Meyering.
60555
60556 2007-03-17  Eric Blake  <ebb9@byu.net>
60557
60558         * NEWS: Document stdlib change from 2007-02-18.
60559
60560 2007-03-17  Jim Meyering  <jim@meyering.net>
60561
60562         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60563         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60564         someone uses a name containing shell meta-characters.
60565         Reported by Alfred M. Szmidt.
60566
60567         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60568
60569 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60570
60571         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60572         and copy gettext configuration files only if configure.ac contains
60573         a use of AM_GNU_GETTEXT_VERSION.
60574
60575 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60576
60577         * build-aux/bootstrap (gnulib_name): New variable.
60578         (gnulib_tool_options): Use it.
60579
60580 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60581
60582         * tests/test-des.c: Use new namespace.
60583
60584 2007-03-15  Bruno Haible  <bruno@clisp.org>
60585
60586         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60587         Reported by James Youngman <jay@gnu.org>.
60588
60589 2007-03-15  Bruno Haible  <bruno@clisp.org>
60590
60591         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60592         declared prototype. Needed with cc on OSF/1 5.1.
60593
60594 2007-03-15  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60597         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60598         (struct gl_list_implementation): Add dispose_fn argument to the
60599         'create_empty', 'create' methods.
60600         (struct gl_list_impl_base): Add field 'dispose_fn'.
60601         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60602         argument.
60603         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60604         dispose_fn argument.
60605         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60606         dispose_fn on the dropped values.
60607         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60608         dispose_fn argument.
60609         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60610         dropped values.
60611         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60612         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60613         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60614         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60615         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60616         argument.
60617         (gl_tree_list_free): Call dispose_fn on the dropped values.
60618         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60619         the dropped values.
60620         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60621         Add dispose_fn argument.
60622         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60623         Call dispose_fn on the dropped values.
60624         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60625         Add dispose_fn argument.
60626         (gl_sublist_create): Initialize the 'dispose_fn' field.
60627         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60628         * tests/test-array_list.c (main): Update.
60629         * tests/test-carray_list.c (main): Update.
60630         * tests/test-avltree_list.c (main): Update.
60631         * tests/test-rbtree_list.c (main): Update.
60632         * tests/test-avltreehash_list.c (main): Update.
60633         * tests/test-rbtreehash_list.c (main): Update.
60634         * tests/test-linked_list.c (main): Update.
60635         * tests/test-linkedhash_list.c (main): Update.
60636         * tests/test-array_oset.c (main): Update.
60637
60638 2007-03-15  Bruno Haible  <bruno@clisp.org>
60639
60640         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60641         (gl_oset_create_empty): Add dispose_fn argument.
60642         (struct gl_oset_implementation): Add dispose_fn argument to
60643         'create_empty' method.
60644         (struct gl_oset_impl_base): Add dispose_fn field.
60645         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60646         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60647         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60648         values.
60649         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60650         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60651         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60652         dropped value.
60653         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60654         dropped value.
60655         * tests/test-array_oset.c (main): Update.
60656         * tests/test-avltree_oset.c (main): Update.
60657         * tests/test-rbtree_oset.c (main): Update.
60658         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60659
60660 2007-03-13  Bruno Haible  <bruno@clisp.org>
60661
60662         * tests/test-stdbool.c (i): Update after last patch.
60663
60664 2007-03-12  Bruno Haible  <bruno@clisp.org>
60665
60666         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60667         the iswprint macro. Needed on Solaris 2.5.1.
60668
60669 2007-03-12  Bruno Haible  <bruno@clisp.org>
60670
60671         * tests/test-printf-frexp.c (main): Declare x as volatile.
60672
60673 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60674
60675         * doc/gnulib.texi (Build robot for gnulib): New section.
60676
60677 2007-03-12  Jim Meyering  <jim@meyering.net>
60678
60679         * build-aux/bootstrap: New file.
60680         * build-aux/bootstrap.conf: New file, from coreutils.
60681
60682 2007-03-11  Bruno Haible  <bruno@clisp.org>
60683
60684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60685
60686 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60687
60688         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60689         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60690         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60691
60692 2007-03-11  Bruno Haible  <bruno@clisp.org>
60693
60694         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60695         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60696
60697 2007-03-11  Bruno Haible  <bruno@clisp.org>
60698
60699         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60700         formula. Needed for SunPRO C 5.0.
60701
60702 2007-03-11  Bruno Haible  <bruno@clisp.org>
60703
60704         * modules/long-options (Depends-on): Add getopt.
60705
60706 2007-03-11  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/modechange (Depends-on): Add stdbool.
60709
60710 2007-03-11  Bruno Haible  <bruno@clisp.org>
60711
60712         * modules/i-ring (Depends-on): Add stdbool.
60713
60714 2007-03-11  Bruno Haible  <bruno@clisp.org>
60715
60716         * modules/gc-des (Depends-on): Add stdbool.
60717
60718 2007-03-11  Bruno Haible  <bruno@clisp.org>
60719
60720         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60721
60722 2007-03-11  Bruno Haible  <bruno@clisp.org>
60723
60724         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60725
60726 2007-03-11  Bruno Haible  <bruno@clisp.org>
60727
60728         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60729
60730 2007-03-11  Bruno Haible  <bruno@clisp.org>
60731
60732         * lib/vasnprintf.c (sprintf): Undefine.
60733
60734 2007-03-11  Bruno Haible  <bruno@clisp.org>
60735
60736         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60737         initializers in SunPRO C and Compaq C compilers.
60738
60739 2007-03-11  Bruno Haible  <bruno@clisp.org>
60740
60741         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60742         decrementing code ANSI C compliant.
60743
60744 2007-03-11  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60747         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60748
60749 2007-03-11  Bruno Haible  <bruno@clisp.org>
60750
60751         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60752         <stdbool.h> substitute doesn't pass.
60753
60754 2007-03-11  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60757
60758 2007-03-11  Bruno Haible  <bruno@clisp.org>
60759
60760         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60761         script, for submission to autobuild.josefsson.org.
60762
60763 2007-03-10  Bruno Haible  <bruno@clisp.org>
60764
60765         * modules/canonicalize-lgpl-tests: New file.
60766         * tests/test-canonicalize-lgpl.sh: New file.
60767         * tests/test-canonicalize-lgpl.c: New file.
60768
60769         * modules/c-strcase-tests: New file.
60770         * tests/test-c-strcase.sh: New file.
60771         * tests/test-c-strcasecmp.c: New file.
60772         * tests/test-c-strncasecmp.c: New file.
60773
60774         * modules/atexit-tests: New file.
60775         * tests/test-atexit.sh: New file.
60776         * tests/test-atexit.c: New file.
60777
60778 2007-03-10  Bruno Haible  <bruno@clisp.org>
60779
60780         * tests/test-binary-io.sh: Use temporary filenames that are not so
60781         likely to clash with those of other tests (in a parallel make).
60782         * tests/test-binary-io.c: Likewise.
60783
60784 2007-03-10  Bruno Haible  <bruno@clisp.org>
60785
60786         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60787         fallback; use #error instead.
60788         Suggested by Simon Josefsson.
60789
60790 2007-03-10  Bruno Haible  <bruno@clisp.org>
60791
60792         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60793         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60794         first and the last.
60795
60796 2007-03-10  Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60799
60800 2007-03-10  Bruno Haible  <bruno@clisp.org>
60801
60802         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60803         "make distcheck".
60804         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60805         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60806         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60807
60808 2007-03-10  Bruno Haible  <bruno@clisp.org>
60809
60810         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60811         variable.
60812         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60813         variable.
60814
60815 2007-03-09  Eric Blake  <ebb9@byu.net>
60816         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60817
60818         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60819         types are not being provided by gnulib.
60820         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60821         types are supported.
60822
60823 2007-03-10  Bruno Haible  <bruno@clisp.org>
60824
60825         * lib/stdio_.h (__attribute__): New macro.
60826         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60827         vsprintf): Specify __attribute__ __format__ for GCC.
60828         Suggested by Eric Blake.
60829
60830 2007-03-09  Bruno Haible  <bruno@clisp.org>
60831
60832         * modules/printf-posix-tests: New file.
60833         * tests/test-printf-posix.sh: New file.
60834         * tests/test-printf-posix.c: New file.
60835
60836         * modules/printf-posix: New file.
60837         * lib/printf.c: New file.
60838         * m4/printf-posix-rpl.m4: New file.
60839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60840         REPLACE_PRINTF.
60841         * lib/stdio_.h (printf): New declaration.
60842         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60843         ____strfmon____): New macros.
60844         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60845         REPLACE_PRINTF.
60846
60847 2007-03-09  Bruno Haible  <bruno@clisp.org>
60848
60849         * tests/test-vasnprintf-posix2.sh: New file.
60850         * tests/test-vasnprintf-posix2.c: New file.
60851         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60852         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60853         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60854
60855         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60856         a locale dependent decimal point, rather than always '.'.
60857
60858 2007-03-09  Eric Blake  <ebb9@byu.net>
60859
60860         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60861         spite of platforms like Tandem/NSK that define it to -1.
60862
60863 2007-03-08  Bruno Haible  <bruno@clisp.org>
60864
60865         * modules/vprintf-posix-tests: New file.
60866         * tests/test-vprintf-posix.sh: New file.
60867         * tests/test-vprintf-posix.c: New file.
60868         * tests/test-printf-posix.h: New file.
60869
60870         * modules/vprintf-posix: New file.
60871         * lib/vprintf.c: New file.
60872         * m4/vprintf-posix.m4: New file.
60873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60874         REPLACE_VPRINTF.
60875         * lib/stdio_.h (vprintf): New declaration.
60876         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60877         REPLACE_VPRINTF.
60878
60879 2007-03-08  Bruno Haible  <bruno@clisp.org>
60880
60881         * modules/fprintf-posix-tests: New file.
60882         * tests/test-fprintf-posix.sh: New file.
60883         * tests/test-fprintf-posix.c: New file.
60884
60885         * modules/fprintf-posix: New file.
60886         * lib/fprintf.c: New file.
60887         * m4/fprintf-posix.m4: New file.
60888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60889         REPLACE_FPRINTF.
60890         * lib/stdio_.h (fprintf): New declaration.
60891         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60892         REPLACE_FPRINTF.
60893
60894 2007-03-08  Bruno Haible  <bruno@clisp.org>
60895
60896         * modules/vfprintf-posix-tests: New file.
60897         * tests/test-vfprintf-posix.sh: New file.
60898         * tests/test-vfprintf-posix.c: New file.
60899         * tests/test-fprintf-posix.h: New file.
60900         * tests/test-fprintf-posix.out: New file.
60901
60902         * modules/vfprintf-posix: New file.
60903         * lib/vfprintf.c: New file.
60904         * m4/vfprintf-posix.m4: New file.
60905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60906         REPLACE_VFPRINTF.
60907         * lib/stdio_.h (vfprintf): New declaration.
60908         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60909         REPLACE_VFPRINTF.
60910
60911 2007-03-08  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60914
60915 2007-03-08  Bruno Haible  <bruno@clisp.org>
60916
60917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60918         instead of 'expr' invocations.
60919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60924         Suggested by Paul Eggert.
60925
60926 2007-03-08  Bruno Haible  <bruno@clisp.org>
60927
60928         * modules/fseterr-tests: New file.
60929         * tests/test-fseterr.c: New file.
60930
60931         * modules/fseterr: New file.
60932         * lib/fseterr.h: New file.
60933         * lib/fseterr.c: New file.
60934
60935 2007-03-08  Bruno Haible  <bruno@clisp.org>
60936
60937         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60938         * lib/getopt_.h: Likewise.
60939         * lib/mbswidth.h: Likewise.
60940         * lib/setenv.h: Likewise.
60941         * lib/vasnprintf.h: Likewise.
60942         * lib/vasprintf.h: Likewise.
60943         * lib/verror.h: Likewise.
60944         * lib/xsetenv.h: Likewise.
60945         * lib/xvasprintf.h: Likewise.
60946
60947 2007-03-08  Jim Meyering  <jim@meyering.net>
60948
60949         * users.txt: Add parted.
60950
60951         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60952
60953 2007-03-07  Bruno Haible  <bruno@clisp.org>
60954
60955         * m4/printf.m4: Make the shell script snippets copy&pastable.
60956
60957 2007-03-02  Bruno Haible  <bruno@clisp.org>
60958
60959         * lib/netinet_in_.h: New file.
60960         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60961         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60962         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60963         (Depends-on): Add absolute-header.
60964         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60965         into netinet/in.h.
60966
60967 2007-03-03  Bruno Haible  <bruno@clisp.org>
60968
60969         * lib/sys_select_.h: New file.
60970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60971         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60972         * modules/sys_select (Files): Add lib/sys_select_.h.
60973         (Depends-on): Add absolute-header.
60974         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60975         into sys/select.h.
60976
60977 2007-03-02  Bruno Haible  <bruno@clisp.org>
60978
60979         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60980         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60981         values.
60982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60983         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60984         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60985         * modules/sys_socket (Depends-on): Add absolute-header.
60986         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60987         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60988         (Include): Remove requirement of inclusion of <sys/types.h>.
60989
60990 2007-03-02  Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/byteswap_.h (bswap_32): Fix formula.
60993
60994 2007-03-06  Bruno Haible  <bruno@clisp.org>
60995
60996         * modules/sprintf-posix-tests: New file.
60997         * tests/test-sprintf-posix.c: New file.
60998
60999         * modules/sprintf-posix: New file.
61000         * lib/sprintf.c: New file.
61001         * m4/sprintf-posix.m4: New file.
61002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61003         REPLACE_SPRINTF.
61004         * lib/stdio_.h (sprintf): New declaration.
61005         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61006         REPLACE_SPRINTF.
61007
61008 2007-03-06  Bruno Haible  <bruno@clisp.org>
61009
61010         * modules/vsprintf-posix-tests: New file.
61011         * tests/test-vsprintf-posix.c: New file.
61012         * tests/test-sprintf-posix.h: New file.
61013
61014         * modules/vsprintf-posix: New file.
61015         * lib/vsprintf.c: New file.
61016         * m4/vsprintf-posix.m4: New file.
61017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61018         REPLACE_VSPRINTF.
61019         * lib/stdio_.h (vsprintf): New declaration.
61020         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61021         REPLACE_VSPRINTF.
61022
61023 2007-03-06  Bruno Haible  <bruno@clisp.org>
61024
61025         * modules/vsnprintf (Depend-on): Remove minmax.
61026
61027 2007-03-06  Bruno Haible  <bruno@clisp.org>
61028
61029         * modules/snprintf-posix-tests: New file.
61030         * tests/test-snprintf-posix.c: New file.
61031
61032         * modules/snprintf-posix: New file.
61033         * m4/snprintf-posix.m4: New file.
61034         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61035         gl_FUNC_SNPRINTF.
61036         (gl_FUNC_SNPRINTF): Invoke it.
61037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61038         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61039         is set.
61040         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61041
61042 2007-03-06  Bruno Haible  <bruno@clisp.org>
61043
61044         * modules/vsnprintf-posix-tests: New file.
61045         * tests/test-vsnprintf-posix.c: New file.
61046         * tests/test-snprintf-posix.h: New file.
61047
61048         * modules/vsnprintf-posix: New file.
61049         * m4/vsnprintf-posix.m4: New file.
61050         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61051         gl_FUNC_VSNPRINTF.
61052         (gl_FUNC_VSNPRINTF): Invoke it.
61053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61054         * lib/stdio_.h (vsnprintf): Define as a replacement if
61055         REPLACE_VSNPRINTF is set.
61056         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61057
61058 2007-03-06  Bruno Haible  <bruno@clisp.org>
61059
61060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61062
61063 2007-03-06  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61066         (asinl): Declare also if HAVE_DECL_ASINL is set.
61067         (atanl): Declare also if HAVE_DECL_ATANL is set.
61068         (ceill): Declare also if HAVE_DECL_CEILL is set.
61069         (cosl): Declare also if HAVE_DECL_COSL is set.
61070         (expl): Declare also if HAVE_DECL_EXPL is set.
61071         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61072         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61073         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61074         (logl): Declare also if HAVE_DECL_LOGL is set.
61075         (sinl): Declare also if HAVE_DECL_SINL is set.
61076         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61077         (tanl): Declare also if HAVE_DECL_TANL is set.
61078         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61081         declaration of frexpl, ldexpl.
61082         * modules/printf-frexpl (Depends-on): Add math.
61083         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61084
61085 2007-03-05  Bruno Haible  <bruno@clisp.org>
61086
61087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61088         frexpl and ldexpl are declared.
61089         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61090
61091 2007-03-05  Bruno Haible  <bruno@clisp.org>
61092
61093         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61094         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61095
61096 2007-03-05  Bruno Haible  <bruno@clisp.org>
61097
61098         * lib/stdio_.h: Include <stddef.h>.
61099
61100 2007-03-05  Bruno Haible  <bruno@clisp.org>
61101
61102         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61103
61104 2007-03-05  Bruno Haible  <bruno@clisp.org>
61105
61106         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61107         NetBSD 4, from Ralf Wildenhues.
61108
61109 2007-03-04  Bruno Haible  <bruno@clisp.org>
61110
61111         * lib/vasprintf.h: Update #if logic for the case when the functions
61112         exist but are overridden.
61113
61114 2007-03-04  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61117         implementations: glibc-2.4 and MacOS X 10.3.
61118         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61119         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61120         * tests/test-vasprintf-posix.c (test_function): Likewise.
61121
61122 2007-03-04  Bruno Haible  <bruno@clisp.org>
61123
61124         * modules/vasprintf-posix-tests: New file.
61125         * tests/test-vasprintf-posix.c: New file.
61126
61127         * modules/vasprintf-posix: New file.
61128         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61129         defined.
61130         * m4/vasprintf-posix.m4: New file.
61131         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61132         gl_FUNC_VASPRINTF.
61133         (gl_FUNC_VASPRINTF): Invoke it.
61134         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61135         here.
61136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61137
61138 2007-03-04  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61141         REPLACE_GETTIMEOFDAY.
61142         * modules/sys_time (Makefile.am): Likewise.
61143         * m4/sys_time_h.m4: Likewise.
61144         * m4/gettimeofday.m4: Likewise.
61145
61146 2007-03-04  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/vasnprintf-posix-tests: New file.
61149         * tests/test-vasnprintf-posix.c: New file.
61150
61151         * modules/vasnprintf-posix: New file.
61152         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61153         printf-frexpl.h.
61154         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61155         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61156         REPLACE_VASNPRINTF is defined.
61157         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61158         gl_FUNC_VASNPRINTF.
61159         (gl_FUNC_VASNPRINTF): Invoke it.
61160         * m4/vasnprintf-posix.m4: New file.
61161         * m4/printf.m4: New file.
61162
61163 2007-03-04  Bruno Haible  <bruno@clisp.org>
61164
61165         Compile progreloc.c only if --enable-relocatable is specified.
61166         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61167         if --enable-relocatable was specified.
61168         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61169         lib_SOURCES.
61170
61171 2007-03-04  Jim Meyering  <jim@meyering.net>
61172
61173         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61174         Use it consistently, rather than enumerating errno constants.
61175
61176 2007-03-04  Bruno Haible  <bruno@clisp.org>
61177
61178         * modules/xvasprintf-tests: New file.
61179         * tests/test-xvasprintf.c: New file.
61180
61181         * modules/vasprintf-tests: New file.
61182         * tests/test-vasprintf.c: New file.
61183
61184         * modules/vasnprintf-tests: New file.
61185         * tests/test-vasnprintf.c: New file.
61186
61187         * modules/vsnprintf-tests: New file.
61188         * tests/test-vsnprintf.c: New file.
61189
61190         * modules/snprintf-tests: New file.
61191         * tests/test-snprintf.c: New file.
61192
61193 2007-03-04  Bruno Haible  <bruno@clisp.org>
61194
61195         Compile relocatable.c only if --enable-relocatable is specified.
61196         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61197         gl_RELOCATABLE_LIBRARY.
61198         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61199         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61200         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61201         gl_RELOCATABLE_LIBRARY.
61202         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61203         (Makefile.am): Remove lib_SOURCES.
61204         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61205         gl_RELOCATABLE_LIBRARY.
61206         (Makefile.am): Remove lib_SOURCES.
61207         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61208         always.
61209         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61210         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61211
61212 2007-03-04  Bruno Haible  <bruno@clisp.org>
61213
61214         * modules/argmatch-tests: New file.
61215         * tests/test-argmatch.c: New file.
61216
61217         * tests/test-allocsa.c (main): Halve the number of loop runs.
61218
61219         * modules/alloca-opt-tests: New file.
61220         * tests/test-alloca-opt.c: New file.
61221
61222 2007-03-04  Jim Meyering  <jim@meyering.net>
61223
61224         Work around difference between Linux ACLs and Solaris 10 ZFS.
61225         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61226         for EINVAL.
61227
61228 2007-03-03  Bruno Haible  <bruno@clisp.org>
61229
61230         * modules/relocatable-prog (Depends-on): Add back progreloc's
61231         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61232
61233 2007-03-03  Bruno Haible  <bruno@clisp.org>
61234
61235         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61236         * modules/relocatable-lib: New file.
61237
61238 2007-03-03  Bruno Haible  <bruno@clisp.org>
61239
61240         * modules/relocatable-prog: Renamed from modules/relocatable.
61241         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61242
61243 2007-03-03  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61246         m4/relocatable-lib.m4.
61247         (Depends-on): Remove 'relocatable'.
61248         (configure.ac): Add gl_RELOCATABLE_NOP.
61249
61250 2007-03-03  Bruno Haible  <bruno@clisp.org>
61251
61252         * modules/relocatable-prog-wrapper: New file.
61253         * modules/relocatable (Depends-on): Add it. Remove all other
61254         dependencies except progname.
61255         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61256
61257         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61258         (gl_FUNC_STRERROR): Nop.
61259         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61260
61261         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61262         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61263
61264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61265         (gl_FUNC_READLINK): Update.
61266
61267         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61268
61269 2007-03-03  Bruno Haible  <bruno@clisp.org>
61270
61271         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61272         * modules/xreadlink (Depends-on): Add unistd.
61273         * modules/xreadlink-with-size (Depends-on): Likewise.
61274
61275 2007-03-03  Bruno Haible  <bruno@clisp.org>
61276
61277         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61278         extracted from gt_FUNC_SETENV.
61279         (gt_FUNC_SETENV): Remove macro.
61280         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61281         remove gt_FUNC_SETENV.
61282
61283 2007-03-03  Bruno Haible  <bruno@clisp.org>
61284
61285         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61286         ENABLE_RELOCATABLE here.
61287         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61288
61289 2007-03-03  Bruno Haible  <bruno@clisp.org>
61290
61291         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61292         * tests/test-rbtreehash_list.c: Include progname.h.
61293         (main): Call set_program_name.
61294
61295         * modules/rbtree-oset-tests (Depends-on): Add progname.
61296         * tests/test-rbtree_oset.c: Include progname.h.
61297         (main): Call set_program_name.
61298
61299         * modules/rbtree-list-tests (Depends-on): Add progname.
61300         * tests/test-rbtree_list.c: Include progname.h.
61301         (main): Call set_program_name.
61302
61303         * modules/linked-list-tests (Depends-on): Add progname.
61304         * tests/test-linked_list.c: Include progname.h.
61305         (main): Call set_program_name.
61306
61307 2007-03-03  Bruno Haible  <bruno@clisp.org>
61308
61309         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61310         All uses of __restrict changed to _Restrict_.
61311         * lib/glob_.h (__restrict): Remove macro.
61312
61313 2007-03-02  Bruno Haible  <bruno@clisp.org>
61314
61315         * modules/gettext (configure.ac): Require gettext infrastructure
61316         from version 0.16.1.
61317
61318 2007-03-02  Bruno Haible  <bruno@clisp.org>
61319
61320         * modules/linkedhash-list-tests (Depends-on): Add progname.
61321         * tests/test-linkedhash_list.c: Include progname.h.
61322         (main): Call set_program_name.
61323
61324         * modules/carray-list-tests (Depends-on): Add progname.
61325         * tests/test-carray_list.c: Include progname.h.
61326         (main): Call set_program_name.
61327
61328         * modules/avltreehash-list-tests (Depends-on): Add progname.
61329         * tests/test-avltreehash_list.c: Include progname.h.
61330         (main): Call set_program_name.
61331
61332         * modules/avltree-oset-tests (Depends-on): Add progname.
61333         * tests/test-avltree_oset.c: Include progname.h.
61334         (main): Call set_program_name.
61335
61336         * modules/avltree-list-tests (Depends-on): Add progname.
61337         * tests/test-avltree_list.c: Include progname.h.
61338         (main): Call set_program_name.
61339
61340         * modules/array-oset-tests (Depends-on): Add progname.
61341         * tests/test-array_oset.c: Include progname.h.
61342         (main): Call set_program_name.
61343
61344         * modules/array-list-tests (Depends-on): Add progname.
61345         * tests/test-array_list.c: Include progname.h.
61346         (main): Call set_program_name.
61347
61348         * modules/argp-tests (Depends-on): Add progname.
61349         * tests/test-argp.c: Include argp.h first. Include progname.h.
61350         (main): Call set_program_name.
61351
61352 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61353
61354         * doc/gnulib-tool.texi (Initial import): Reword description of
61355         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61356         limited effect even if defined after the first system include.
61357
61358 2007-03-01  Bruno Haible  <bruno@clisp.org>
61359
61360         * build-aux/config.libpath: Update to libtool-1.5.22.
61361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61362
61363 2007-03-01  Bruno Haible  <bruno@clisp.org>
61364
61365         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61366         foo_CFLAGS.
61367         Reported by Ralf Wildenhues.
61368
61369 2007-03-01  Bruno Haible  <bruno@clisp.org>
61370
61371         * build-aux/install-reloc: Remove object files left over by some
61372         compilers.
61373         Reported by Ralf Wildenhues.
61374
61375 2007-03-01  Bruno Haible  <bruno@clisp.org>
61376
61377         * build-aux/install-reloc: Break long lines.
61378
61379 2007-03-01  Bruno Haible  <bruno@clisp.org>
61380
61381         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61382         Reported by Ralf Wildenhues.
61383
61384 2007-03-01  Bruno Haible  <bruno@clisp.org>
61385
61386         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61387         include ordering constraints.
61388
61389 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61390
61391         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61393         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61394         as another example.
61395         * lib/time_.h: Fix misspelling.
61396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61397         Require gl_HEADER_TIME_H_DEFAULTS.
61398         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61399         * m4/time_r.m4 (gl_TIME_R): Likewise.
61400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61401
61402 2007-03-01  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61405         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61406
61407 2007-03-01  Jim Meyering  <jim@meyering.net>
61408
61409         * modules/xreadlink (Maintainer): Add my name.
61410         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61411
61412 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61413             Bruno Haible  <bruno@clisp.org>
61414
61415         * build-aux/install-reloc: Compile also c-ctype.c.
61416         * build-aux/relocatable.sh.in: New file.
61417         * doc/relocatable.texi: New file.
61418         * doc/relocatable-maint.texi: New file.
61419         * doc/gnulib.texi: Include relocatable-maint.texi.
61420         * lib/progreloc.c: Include unistd.h unconditionally.
61421         * lib/relocwrapper.c: Include unistd.h unconditionally.
61422         Include c-ctype.h.
61423         (add_dotbin): Use c_tolower.
61424         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61425         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61426         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61427         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61428         to m4/relocatable-lib.m4.
61429         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61430         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61431         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61432         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61433         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61434         * modules/relocatable: New file.
61435         * modules/relocatable-lib: New file.
61436         * modules/relocatable-script: New file.
61437
61438 2007-02-28  Bruno Haible  <bruno@clisp.org>
61439
61440         Import --enable-relocatable infrastructure.
61441         * build-aux/config.libpath: New file, from GNU gettext.
61442         * build-aux/install-reloc: New file, from GNU gettext.
61443         * build-aux/reloc-ldflags: New file, from GNU gettext.
61444         * lib/relocatable.h: New file, from GNU gettext.
61445         * lib/relocatable.c: New file, from GNU gettext.
61446         * lib/relocwrapper.c: New file, from GNU gettext.
61447         * m4/relocatable.m4: New file, from GNU gettext.
61448
61449 2007-02-28  Bruno Haible  <bruno@clisp.org>
61450
61451         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61452
61453         * modules/xreadlink: New file, from GNU gettext with modifications.
61454         * lib/xreadlink.c: New file, from GNU gettext.
61455         * lib/xreadlink.h: Add comments.
61456         (xreadlink): New declaration.
61457
61458         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61459         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61460         lib/xreadlink-with-size.c.
61461         (configure.ac): Remove gl_XREADLINK invocation.
61462         (Makefile.am): Augment lib_SOURCES.
61463         * m4/xreadlink.m4: Remove file.
61464         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61465         (xreadlink_with_size): Renamed from xreadink.
61466         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61467         * modules/canonicalize (Depends-on): Replace xreadlink with
61468         xreadlink-with-size.
61469         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61470
61471 2007-02-25  Jim Meyering  <jim@meyering.net>
61472
61473         * build-aux/announce-gen: When complaining about excess arguments,
61474         list them.
61475
61476 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61477
61478         * README: Document signed integer overflow situation more
61479         accurately.
61480
61481 2007-02-25  Bruno Haible  <bruno@clisp.org>
61482
61483         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61484         'a' or 'A' conversion.
61485
61486 2007-02-25  Bruno Haible  <bruno@clisp.org>
61487
61488         * modules/filename: Renamed from modules/pathname.
61489         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61490         lib/concatpath.c with lib/concat-filename.c.
61491         (Makefile.am): Update.
61492         (Include): Replace pathname.h with filename.h.
61493         * lib/filename.h: Renamed from lib/pathname.h.
61494         (concatenated_filename): Renamed from concatenated_pathname.
61495         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61496         (concatenated_filename): Renamed from concatenated_pathname.
61497         * lib/findprog.c: Include filename.h instead of pathname.h.
61498         (find_in_path): Update.
61499         * lib/javacomp.c: Include filename.h instead of pathname.h.
61500         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61501         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61502         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61503         is_oldgcj_14_13_usable, is_javac_usable): Update.
61504         * lib/javaexec.c: Include filename.h instead of pathname.h.
61505         (execute_java_class): Update.
61506         * modules/findprog: Update.
61507         * modules/javacomp: Update.
61508         * modules/javaexec: Update.
61509         * MODULES.html.sh (File system functions): Add 'filename', remove
61510         'pathname'.
61511
61512 2007-02-25  Bruno Haible  <bruno@clisp.org>
61513
61514         * modules/printf-frexpl-tests: New file.
61515         * tests/test-printf-frexpl.c: New file.
61516
61517         * modules/printf-frexpl: New file.
61518         * lib/printf-frexpl.h: New file.
61519         * lib/printf-frexpl.c: New file.
61520         * m4/printf-frexpl.m4: New file.
61521
61522 2007-02-25  Bruno Haible  <bruno@clisp.org>
61523
61524         * modules/printf-frexp-tests: New file.
61525         * tests/test-printf-frexp.c: New file.
61526
61527         * modules/printf-frexp: New file.
61528         * lib/printf-frexp.h: New file.
61529         * lib/printf-frexp.c: New file.
61530         * m4/printf-frexp.m4: New file.
61531
61532 2007-02-25  Bruno Haible  <bruno@clisp.org>
61533
61534         Assume automake >= 1.10 for the tests.
61535         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61536         * modules/arctwo-tests: Likewise.
61537         * modules/argp-tests: Likewise.
61538         * modules/avltree-list-tests: Likewise.
61539         * modules/avltree-oset-tests: Likewise.
61540         * modules/avltreehash-list-tests: Likewise.
61541         * modules/carray-list-tests: Likewise.
61542         * modules/crc-tests: Likewise.
61543         * modules/des-tests: Likewise.
61544         * modules/gc-arcfour-tests: Likewise.
61545         * modules/gc-arctwo-tests: Likewise.
61546         * modules/gc-des-tests: Likewise.
61547         * modules/gc-hmac-md5-tests: Likewise.
61548         * modules/gc-hmac-sha1-tests: Likewise.
61549         * modules/gc-md2-tests: Likewise.
61550         * modules/gc-md4-tests: Likewise.
61551         * modules/gc-md5-tests: Likewise.
61552         * modules/gc-pbkdf2-sha1-tests: Likewise.
61553         * modules/gc-rijndael-tests: Likewise.
61554         * modules/gc-sha1-tests: Likewise.
61555         * modules/gc-tests: Likewise.
61556         * modules/getaddrinfo-tests: Likewise.
61557         * modules/hmac-md5-tests: Likewise.
61558         * modules/hmac-sha1-tests: Likewise.
61559         * modules/linked-list-tests: Likewise.
61560         * modules/linkedhash-list-tests: Likewise.
61561         * modules/lock-tests: Likewise.
61562         * modules/md2-tests: Likewise.
61563         * modules/md4-tests: Likewise.
61564         * modules/md5-tests: Likewise.
61565         * modules/rbtree-list-tests: Likewise.
61566         * modules/rbtree-oset-tests: Likewise.
61567         * modules/rbtreehash-list-tests: Likewise.
61568         * modules/read-file-tests: Likewise.
61569         * modules/rijndael-tests: Likewise.
61570         * modules/stdint-tests: Likewise.
61571         * modules/tls-tests: Likewise.
61572
61573 2007-02-24  Bruno Haible  <bruno@clisp.org>
61574
61575         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61576         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61577         function; instead check whether isnan with a double argument links.
61578         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61579         function; instead check whether isnan with a 'long double' argument
61580         links.
61581         Reported by Eric Blake <ebb9@byu.net>.
61582
61583 2007-02-24  Bruno Haible  <bruno@clisp.org>
61584
61585         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61586         defined.
61587         * lib/isnanl.c: Remove all code. Just include isnan.c.
61588         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61589
61590 2007-02-25  Jim Meyering  <jim@meyering.net>
61591
61592         Avoid conflicting types for 'unsetenv' on FreeBSD.
61593         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61594         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61595         in stdlib.h.
61596
61597 2007-02-24  Bruno Haible  <bruno@clisp.org>
61598
61599         * modules/isnanl-nolibm-tests: New file.
61600         * tests/test-isnanl.c: New file.
61601
61602         * modules/isnanl-nolibm: New file.
61603         * lib/isnanl.h: New file.
61604         * lib/isnanl.c: New file.
61605         * m4/isnanl.m4: New file.
61606
61607 2007-02-24  Bruno Haible  <bruno@clisp.org>
61608
61609         * modules/isnan-nolibm-tests: New file.
61610         * tests/test-isnan.c: New file.
61611
61612         * modules/isnan-nolibm: New file.
61613         * lib/isnan.h: New file.
61614         * lib/isnan.c: New file.
61615         * m4/isnan.m4: New file.
61616
61617 2007-02-24  Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61620         assume that an exponent fits in 20 bits.
61621
61622 2007-02-24  Jim Meyering  <jim@meyering.net>
61623
61624         * m4/regex.m4: Update the description of the configure-time option,
61625         --without-included-regex, to state accurately what the defaults are,
61626         and perhaps to give people an idea why using this option is risky.
61627
61628 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61629
61630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61631         loops on small arguments.  This attempts to avoid the problem
61632         Bruno Haible reported for AIX 4.3.2 in
61633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61634
61635 2007-02-23  Bruno Haible  <bruno@clisp.org>
61636
61637         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61638         Needed for help2man.
61639
61640 2007-02-23  Karl Berry  <karl@gnu.org>
61641
61642         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61643         exists, foo.h should be cvs-ignored, not committed.
61644
61645 2007-02-23  Eric Blake  <ebb9@byu.net>
61646
61647         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61648         * lib/stat-time.h (includes): Likewise.
61649         * lib/utimecmp.c (includes): Likewise.
61650         * lib/utimens.h (includes): Likewise.
61651         * lib/getdate.y (includes): Also include "timespec.h" for use
61652         internal to the module.
61653         * modules/utimens (Depends-on): Revert yesterday's patch.
61654         * modules/nanosleep (Depends-on): Add missing dependency.
61655
61656 2007-02-22  Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/glob.c: Don't include getlogin_r.h.
61659
61660 2007-02-22  Jim Meyering  <jim@meyering.net>
61661
61662         * modules/utimens (Depends-on): Add timespec, required for
61663         utimens.h's inclusion of timespec.h.
61664
61665 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61668         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61669         Schwab in
61670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61671         I'll try to think of a better way to fix the Solaris problem.
61672
61673         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61674         like glibc; on Solaris 10, it fails with errno == EINVAL.
61675         POSIX says the behavior is unspecified if the first argument is NULL,
61676         so play it safe and never pass NULL to the system getcwd.
61677
61678 2007-02-21  Jim Meyering  <jim@meyering.net>
61679
61680         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61681         of gettimeofday.  It would conflict with the one now always
61682         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61683         an IRIX 6.5 build failure.
61684
61685 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61686
61687         Minor fixups to port to Solaris 10 with Sun C 5.8.
61688         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61689         * modules/getcwd (Depends-on): Add dirfd.
61690         * lib/putenv.c (putenv): #undef it.
61691         (rpl_putenv): New decl.
61692         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61693
61694 2007-02-20  Bruno Haible  <bruno@clisp.org>
61695
61696         * modules/stdio-tests: New file.
61697         * tests/test-stdio.c: New file.
61698
61699         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61700         (Depends-on): Add stdio.
61701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61702         (Include): Use <stdio.h> instead of vsnprintf.h.
61703         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61704         HAVE_DECL_VSNPRINTF.
61705         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61706
61707         * modules/snprintf (Files): Remove lib/snprintf.h.
61708         (Depends-on): Add stdio.
61709         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61710         (Include): Use <stdio.h> instead of snprintf.h.
61711         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61712         HAVE_DECL_SNPRINTF.
61713         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61714         * lib/getaddrinfo.c: Likewise.
61715
61716         * modules/stdio: New file.
61717         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61718         * lib/snprintf.h: Remove file.
61719         * lib/vsnprintf.h: Remove file.
61720         * lib/.cppi-disable: Remove snprintf.h.
61721         * m4/stdio_h.m4: New file.
61722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61723
61724 2007-02-20  Jim Meyering  <jim@meyering.net>
61725
61726         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61727         used by e.g., mingw.  From Bruno Haible.
61728
61729 2007-02-19  Bruno Haible  <bruno@clisp.org>
61730
61731         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61732         warnings.
61733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61734
61735 2007-02-19  Bruno Haible  <bruno@clisp.org>
61736
61737         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61738         from mingw users.
61739
61740 2007-02-19  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61743         warnings.
61744         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61745
61746 2007-02-19  Jim Meyering  <jim@meyering.net>
61747
61748         Don't use FD after a successful "fdopendir (fd)".
61749         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61750         Reset it by calling dirfd on the just-obtained DIR*.
61751
61752         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61753         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61754
61755 2007-02-18  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/readlink.c: Include <unistd.h>.
61758         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61759         HAVE_READLINK.
61760         * modules/readlink (Depends-on): Add unistd.
61761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61762         (Include): Add <unistd.h>.
61763
61764         * lib/getlogin_r.h: Remove file.
61765         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61766         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61767         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61768         HAVE_DECL_GETLOGIN_R.
61769         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61771         (Include): Use <unistd.h> instead of getlogin_r.h.
61772
61773         * lib/getcwd.h: Remove file.
61774         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61775         * lib/xgetcwd.c: Likewise.
61776         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61777         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61778         * modules/getcwd (Files): Remove lib/getcwd.h.
61779         (Depends-on): Add unistd.
61780         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61781         (Include): Use <unistd.h> instad of getcwd.h.
61782
61783         * lib/ftruncate.c: Include <unistd.h> first.
61784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61785         Set HAVE_FTRUNCATE.
61786         * modules/ftruncate (Depends-on): Add unistd.
61787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61788
61789         * lib/fchdir.c: Include <unistd.h> first.
61790         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61792         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61793         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61794         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61795
61796         * lib/dup2.c: Include <unistd.h> first.
61797         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61798         HAVE_DUP2.
61799         * modules/dup2 (Depends-on): Add unistd.
61800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61801
61802         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61803         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61804         REPLACE_CHOWN. Don't define chown as a macro here.
61805         * modules/chown (Depends-on): Add unistd.
61806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61807
61808         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61809         Add definition for GL_LINK_WARNING.
61810         (chown, dup2): New declarations.
61811         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61812         link warning.
61813         (ftruncate): New declaration.
61814         (getcwd): New declaration, taken from old getcwd.h.
61815         (getlogin_r): New declaration, taken from old getlogin_r.h.
61816         (readlink): New declaration.
61817         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61818         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61819         (gl_PREREQ_UNISTD): Remove macro.
61820         (gl_UNISTD_MODULE_INDICATOR): New macro.
61821         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61822         many new variables. Don't set UNISTD_H.
61823         * modules/unistd (Description): Change.
61824         (Depends-on): Add link-warning.
61825         (configure.ac): Update.
61826         (Makefile.am): Create unistd.h always. Substitute many new variables
61827         into it.
61828
61829 2007-02-18  Bruno Haible  <bruno@clisp.org>
61830
61831         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61832         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61833         HAVE_GETSUBOPT.
61834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61835         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61836         * lib/getsubopt.h: Remove file.
61837         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61838         (Depends-on): Add stdlib.
61839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61840         (Includes): Use <stdlib.h> instead of getsubopt.h.
61841         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61842         Set HAVE_GETSUBOPT.
61843         * lib/getsubopt.c: Don't include getsubopt.h.
61844
61845 2007-02-18  Bruno Haible  <bruno@clisp.org>
61846
61847         * modules/fchdir (Depends-on): Add dup2.
61848
61849 2007-02-18  Bruno Haible  <bruno@clisp.org>
61850
61851         * lib/stdlib_.h: Handle glibc's special invocation convention
61852         specially.
61853
61854 2007-02-18  Bruno Haible  <bruno@clisp.org>
61855
61856         * modules/stdlib-tests: New file.
61857         * tests/test-stdlib.c: New file.
61858
61859         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61860         (Depends-on): Add stdlib.
61861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61862         (Includes): Use <stdlib.h> instead of mkstemp.h.
61863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61864         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61865         * lib/mkstemp.c: Don't include mkstemp.h.
61866         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61867         * lib/stdlib--.h: Don't include mkstemp.h.
61868
61869         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61870         (Depends-on): Add stdlib.
61871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61872         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61873         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61874         HAVE_MKDTEMP.
61875         * lib/mkdtemp.c: Don't include mkdtemp.h.
61876         * lib/clean-temp.c: Don't include mkdtemp.h.
61877
61878         * modules/exit (Files): Remove lib/exit.h.
61879         (Depends-on): Add stdlib.
61880         (Makefile.am): Remove lib_SOURCES.
61881         (Include): Use <stdlib.h> instead of exit.h.
61882         * lib/argmatch.c: Don't include exit.h.
61883         * lib/execute.c: Likewise.
61884         * lib/pagealign_alloc.c: Likewise.
61885         * lib/pipe.c: Likewise.
61886         * lib/wait-process.c: Likewise.
61887         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61888         * lib/exitfail.c: Likewise.
61889         * lib/savewd.c: Likewise.
61890         * lib/xsetenv.c: Likewise.
61891
61892         * modules/stdlib: New file.
61893         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61894         and extra comments about mkstemp().
61895         * lib/exit.h: Remove file.
61896         * lib/mkdtemp.h: Remove file.
61897         * lib/mkstemp.h: Remove file.
61898         * m4/stdlib_h.m4: New file.
61899         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61900
61901 2007-02-18  Bruno Haible  <bruno@clisp.org>
61902
61903         * modules/math-tests: New file.
61904         * tests/test-math.c: New file.
61905
61906         * modules/math: New file.
61907         * modules/mathl (Files): Remove lib/mathl.h.
61908         (Depends-on): Add math.
61909         (Makefile.am): Don't mention mathl.h.
61910         (Include): Use <math.h> instead of mathl.h.
61911         * lib/math_.h: New file.
61912         * lib/mathl.h: Remove file.
61913         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61914         mathl.h.
61915         * lib/asinl.c: Likewise.
61916         * lib/atanl.c: Likewise.
61917         * lib/ceill.c: Likewise.
61918         * lib/cosl.c: Likewise.
61919         * lib/expl.c: Likewise.
61920         * lib/floorl.c: Likewise.
61921         * lib/frexpl.c: Likewise.
61922         * lib/ldexpl.c: Likewise.
61923         * lib/logl.c: Likewise.
61924         * lib/sincosl.c: Likewise.
61925         * lib/sinl.c: Likewise.
61926         * lib/sqrtl.c: Likewise.
61927         * lib/tanl.c: Likewise.
61928         * lib/trigl.c: Likewise.
61929         * m4/math_h.m4: New file.
61930         * MODULES.html.sh (Mathematics): Add math.
61931
61932 2007-02-17  Bruno Haible  <bruno@clisp.org>
61933
61934         * modules/wctype-tests: New file.
61935         * tests/test-wctype.c: New file.
61936
61937         * modules/wchar-tests: New file.
61938         * tests/test-wchar.c: New file.
61939
61940         * modules/unistd-tests: New file.
61941         * tests/test-unistd.c: New file.
61942
61943         * modules/time-tests: New file.
61944         * tests/test-time.c: New file.
61945
61946         * modules/sysexits-tests: New file.
61947         * tests/test-sysexits.c: New file.
61948
61949         * modules/sys_time-tests: New file.
61950         * tests/test-sys_time.c: New file.
61951
61952         * modules/sys_stat-tests: New file.
61953         * tests/test-sys_stat.c: New file.
61954
61955         * modules/sys_socket-tests: New file.
61956         * tests/test-sys_socket.c: New file.
61957
61958         * modules/sys_select-tests: New file.
61959         * tests/test-sys_select.c: New file.
61960
61961         * modules/string-tests: New file.
61962         * tests/test-string.c: New file.
61963
61964         * modules/stdbool-tests: New file.
61965         * tests/test-stdbool.c: New file.
61966
61967         * modules/netinet_in-tests: New file.
61968         * tests/test-netinet_in.c: New file.
61969
61970         * modules/inttypes-tests: New file.
61971         * tests/test-inttypes.c: New file.
61972
61973         * modules/fcntl-tests: New file.
61974         * tests/test-fcntl.c: New file.
61975
61976         * modules/byteswap-tests: New file.
61977         * tests/test-byteswap.c: New file.
61978
61979         * modules/arpa_inet-tests: New file.
61980         * tests/test-arpa_inet.c: New file.
61981
61982 2007-02-17  Bruno Haible  <bruno@clisp.org>
61983
61984         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61985         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61986         if the corresponding module is not enabled. Emit link warnings if
61987         the function is used nevertheless.
61988         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61989         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61990         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61991         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61992         * modules/inttypes (Depends-on): Add link-warning.
61993         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61994         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61995         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61996         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61997         * modules/imaxdiv (configure.ac): Likewise.
61998         * modules/strtoimax (configure.ac): Likewise.
61999         * modules/strtoumax (configure.ac): Likewise.
62000
62001 2007-02-17  Bruno Haible  <bruno@clisp.org>
62002
62003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62004         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62005         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62006         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62007
62008 2007-02-17  Bruno Haible  <bruno@clisp.org>
62009
62010         * modules/link-warning: New file.
62011         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62012         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62013         * modules/string (Depends-on): Add link-warning.
62014         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62015         string.h.
62016         * MODULES.html.sh (Support for building libraries and executables): Add
62017         link-warning.
62018
62019 2007-02-17  Bruno Haible  <bruno@clisp.org>
62020
62021         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62022         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62023         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62024         long lines.
62025
62026 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62027             Bruno Haible  <bruno@clisp.org>
62028
62029         * modules/tmpfile: New file.
62030         * lib/tmpfile.c: New file.
62031         * m4/tmpfile.m4: New file.
62032         * MODULES.html.sh (func_all_modules): New section "Input/output".
62033
62034 2007-02-15  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62037         (supports_delete_on_close): New function.
62038         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62039
62040 2007-02-14  Bruno Haible  <bruno@clisp.org>
62041
62042         * modules/mbspcasecmp-tests: New file.
62043         * tests/test-mbspcasecmp.sh: New file.
62044         * tests/test-mbspcasecmp.c: New file.
62045
62046         New module mbspcasecmp.
62047         * modules/mbspcasecmp: New file.
62048         * lib/mbspcasecmp.c: New file.
62049         * lib/string_.h (strncasecmp): Change warning message.
62050         (mbspcasecmp): New declaration.
62051         * m4/mbspcasecmp.m4: New file.
62052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62053         GNULIB_MBSPCASECMP.
62054         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62055         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62056
62057 2007-02-14  Bruno Haible  <bruno@clisp.org>
62058
62059         * modules/mbsncasecmp-tests: New file.
62060         * tests/test-mbsncasecmp.sh: New file.
62061         * tests/test-mbsncasecmp.c: New file.
62062
62063         New module mbsncasecmp.
62064         * modules/mbsncasecmp: New file.
62065         * lib/mbsncasecmp.c: New file.
62066         * lib/string_.h (mbsncasecmp): New declaration.
62067         * m4/mbsncasecmp.m4: New file.
62068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62069         GNULIB_MBSNCASECMP.
62070         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62071         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62072
62073 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62074
62075         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62076         Verify that it doesn't overlap with our flags.
62077         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62078         do not have the desired effect in multibyte locales; instead, use
62079         mbscasecmp.
62080         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62081         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62082         we don't require GNU fnmatch ourselves (if our users require it, they
62083         should do so explicitly).
62084
62085         Fix regex code so it doesn't rely on strcasecmp.
62086         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62087         Otherwise, include gnulib's langinfo.h.
62088         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62089         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62090         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62091         * modules/regex (FILES): Remove m4/codeset.m4.
62092         (Depends-on): Add localcharset.  Remove strcase.
62093
62094 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62095
62096         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62097         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62098
62099 2007-02-13  Bruno Haible  <bruno@clisp.org>
62100
62101         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62103
62104 2007-02-12  Bruno Haible  <bruno@clisp.org>
62105
62106         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62107         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62108         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62109         time warning rather than a link error.
62110
62111 2007-02-12  Bruno Haible  <bruno@clisp.org>
62112
62113         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62114         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62116
62117 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62120         args, not 2.
62121
62122 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62123
62124         New module 'time', so that apps can include <time.h> as per
62125         POSIX and GNU instead of separate include files like time_r.h
62126         and timegm.h.  This implementation tries out a simpler approach
62127         for replacing decls in standard include files (as compared to
62128         the string module), somewhat as an experiment.
62129
62130         * config/srclist.txt: Comment out mktime.c for now.
62131         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62132         since it doesn't apply any more.  Use generic wording instead.
62133         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62134         'time'.
62135         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62136         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62137         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62138         Don't include <sys/types.h>; no longer needed since we assume C89.
62139         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62140         * lib/strftime.c: Likewise.
62141         * lib/time_r.c: Likewise.
62142         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62143         * lib/nanosleep.c: Include <time.h> first, to check interface.
62144         * lib/strptime.c: Likewise.
62145         * lib/time_r.c: Likewise.
62146         * lib/timegm.c: Likewise.
62147         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62148         needed.
62149         * lib/timegm.c: Don't include timegm.h; no longer needed.
62150         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62151         time.h now handles any problems in that area.
62152         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62153         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62154         that time.h defines struct timespec.
62155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62156         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62157         handles that.
62158         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62159         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62160         needed.  Set REPLACE_LOCALTIME.
62161         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62162         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62163         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62164         nanosleep; time_h.m4 now does that.  Don't require
62165         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62166         module handles this now.
62167         * modules/getdate (Depends-on): Remove timespec.  Add time.
62168         * modules/nanosleep (Depends-on): Likewise.
62169         * modules/stat-time (Depends-on): Likewise.
62170         * modules/nanosleep (Include): Include time.h, not timespec.h.
62171         * modules/strptime (Files): Remove lib/strptime.h.
62172         (Depends-on): Add extensions, time.
62173         (Include): Include time.h, not strptime.h.
62174         * modules/time_r (Files): Remove lib/time_r.h.
62175         (Depends-on): Add time.
62176         (Include): Include time.h, not time_r.h.
62177         * modules/timegm: Likewise.
62178         * modules/timespec (Description): Now does timespec-related decls
62179         of our own, instead of struct timespec itself.
62180         (Depends-on): Add time; remove extensions.
62181         (Maintainer): Add self.
62182         * modules/utimecmp (Depends-on): Add time; remove timespec.
62183         * modules/utimens (Depends-on): Likewise.
62184         * modules/xnanosleep (Depends-on): Likewise.
62185
62186 2007-02-11  Bruno Haible  <bruno@clisp.org>
62187
62188         * lib/c-strstr.c: Include allocsa.h.
62189         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62190         * lib/c-strcasestr.c: Include allocsa.h.
62191         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62192         * lib/strcasestr.c: Include allocsa.h.
62193         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62194         * lib/mbsstr.c: Include allocsa.h.
62195         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62196         allocsa/freesa instead of malloc/free.
62197         * lib/mbscasestr.c: Include allocsa.h.
62198         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62199         allocsa/freesa instead of malloc/free.
62200         * modules/c-strstr (Depends-on): Add allocsa.
62201         * modules/c-strcasestr (Depends-on): Likewise.
62202         * modules/strcasestr (Depends-on): Likewise.
62203         * modules/mbsstr (Depends-on): Likewise.
62204         * modules/mbscasestr (Depends-on): Likewise.
62205
62206 2007-02-11  Bruno Haible  <bruno@clisp.org>
62207
62208         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62209
62210         * modules/mbsspn-tests: New file.
62211         * tests/test-mbsspn.sh: New file.
62212         * tests/test-mbsspn.c: New file.
62213
62214 2007-02-11  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62217
62218         * modules/mbspbrk-tests: New file.
62219         * tests/test-mbspbrk.sh: New file.
62220         * tests/test-mbspbrk.c: New file.
62221
62222 2007-02-11  Bruno Haible  <bruno@clisp.org>
62223
62224         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62225         unneeded cast.
62226
62227         * modules/mbscspn-tests: New file.
62228         * tests/test-mbscspn.sh: New file.
62229         * tests/test-mbscspn.c: New file.
62230
62231 2007-02-11  Bruno Haible  <bruno@clisp.org>
62232
62233         * modules/mbscasecmp-tests: New file.
62234         * tests/test-mbscasecmp.sh: New file.
62235         * tests/test-mbscasecmp.c: New file.
62236
62237 2007-02-11  Bruno Haible  <bruno@clisp.org>
62238
62239         Ensure O(n) worst-case complexity of mbscasestr.
62240         * lib/mbscasestr.c: Include stdbool.h.
62241         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62242         functions.
62243         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62244         the bookkeeping indicates that it's worth it.
62245         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62246
62247         * modules/mbscasestr-tests: New file.
62248         * tests/test-mbscasestr1.c: New file.
62249         * tests/test-mbscasestr2.sh: New file.
62250         * tests/test-mbscasestr2.c: New file.
62251         * tests/test-mbscasestr3.sh: New file.
62252         * tests/test-mbscasestr3.c: New file.
62253         * tests/test-mbscasestr4.sh: New file.
62254         * tests/test-mbscasestr4.c: New file.
62255         * m4/locale-tr.m4: New file.
62256
62257 2007-02-11  Bruno Haible  <bruno@clisp.org>
62258
62259         Ensure O(n) worst-case complexity of mbsstr.
62260         * lib/mbsstr.c: Include stdbool.h.
62261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62262         functions.
62263         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62264         bookkeeping indicates that it's worth it.
62265         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62266
62267         * modules/mbsstr-tests: New file.
62268         * tests/test-mbsstr1.c: New file.
62269         * tests/test-mbsstr2.sh: New file.
62270         * tests/test-mbsstr2.c: New file.
62271         * tests/test-mbsstr3.sh: New file.
62272         * tests/test-mbsstr3.c: New file.
62273         * m4/locale-fr.m4: New file.
62274
62275 2007-02-11  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/mbsrchr.c (mbsrchr): Fix bug.
62278
62279         * modules/mbsrchr-tests: New file.
62280         * tests/test-mbsrchr.sh: New file.
62281         * tests/test-mbsrchr.c: New file.
62282
62283 2007-02-11  Bruno Haible  <bruno@clisp.org>
62284
62285         * lib/mbschr.c (mbschr): Fix bug.
62286
62287         * modules/mbschr-tests: New file.
62288         * tests/test-mbschr.sh: New file.
62289         * tests/test-mbschr.c: New file.
62290         * m4/locale-zh.m4: New file.
62291
62292 2007-02-11  Bruno Haible  <bruno@clisp.org>
62293
62294         Support for copying multibyte string iterators.
62295         * lib/mbiter.h: Include <string.h>.
62296         (mbiter_multi_copy): New function.
62297         (mbi_copy): New macro.
62298         * lib/mbuiter.h: Include <string.h>.
62299         (mbuiter_multi_copy): New function.
62300         (mbui_copy): New macro.
62301
62302 2007-02-11  Bruno Haible  <bruno@clisp.org>
62303
62304         New module mbslen.
62305         * modules/mbslen: New file.
62306         * lib/mbslen.c: New file.
62307         * lib/string_.h (mbslen): New declaration.
62308         * m4/mbslen.m4: New file.
62309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62310         GNULIB_MBSLEN.
62311         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62312         * MODULES.html.sh (Internationalization functions): Add mbslen.
62313
62314 2007-02-11  Bruno Haible  <bruno@clisp.org>
62315
62316         Ensure O(n) worst-case complexity of strcasestr substitute.
62317         * lib/strcasestr.c: Include stdbool.h.
62318         (knuth_morris_pratt): New function.
62319         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62320         bookkeeping indicates that it's worth it.
62321         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62322
62323         * modules/strcasestr-tests: New file.
62324         * tests/test-strcasestr.c: New file.
62325
62326 2007-02-11  Bruno Haible  <bruno@clisp.org>
62327
62328         Ensure O(n) worst-case complexity of c_strcasestr.
62329         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62330         (knuth_morris_pratt): New function.
62331         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62332         the bookkeeping indicates that it's worth it.
62333         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62334
62335         * modules/c-strcasestr-tests: New file.
62336         * tests/test-c-strcasestr.c: New file.
62337
62338 2007-02-11  Bruno Haible  <bruno@clisp.org>
62339
62340         Ensure O(n) worst-case complexity of c_strstr.
62341         * lib/c-strstr.c: Include stdbool.h, string.h.
62342         (knuth_morris_pratt): New function.
62343         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62344         bookkeeping indicates that it's worth it.
62345         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62346
62347         * lib/c-strstr.c: Complete rewrite for maintainability.
62348
62349         * modules/c-strstr-tests: New file.
62350         * tests/test-c-strstr.c: New file.
62351
62352 2007-02-11  Bruno Haible  <bruno@clisp.org>
62353
62354         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62355         5.2.1 and earlier, whereby \055 was treated just like the range
62356         delimiter '-'.
62357         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62358
62359 2007-02-08  Bruno Haible  <bruno@clisp.org>
62360
62361         * modules/regex (Depends-on): Add stdbool.
62362         Reported by Dalibor Topic <robilad@kaffe.org>.
62363
62364 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62365
62366         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62367         Prefer returning from main to exiting from it.
62368         Remove unnecessary parens after sizeof.
62369
62370 2007-02-05  Bruno Haible  <bruno@clisp.org>
62371
62372         New module mbssep.
62373         * modules/mbssep: New file.
62374         * lib/mbssep.c: New file.
62375         * lib/string_.h (strsep): Add a conditional link warning.
62376         (mbssep): New declaration.
62377         * m4/mbssep.m4: New file.
62378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62379         GNULIB_MBSSEP.
62380         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62381         * MODULES.html.sh (Internationalization functions): Add mbssep.
62382
62383 2007-02-05  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62386         Optimize search in case of 1 delimiter.
62387
62388 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62389
62390         * lib/acl.h: Include sys/types.h before sys/acl.h.
62391
62392 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62393
62394         Merge upstream fix for glibc bugzilla #3957:
62395
62396         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62397
62398         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62399         bit for RE_HAT_LISTS_NOT_NEWLINE.
62400         (build_charclass_op): Remove bogus comment.
62401
62402 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62403
62404         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62405
62406 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62407
62408         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62409         * lib/memmem.c [!defined _LIBC]: Include config.h.
62410
62411 2007-02-04  Bruno Haible  <bruno@clisp.org>
62412
62413         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62414         warning message.
62415
62416 2007-02-04  Bruno Haible  <bruno@clisp.org>
62417
62418         New module mbstok_r.
62419         * modules/mbstok_r: New file.
62420         * lib/mbstok_r.c: New file.
62421         * lib/string_.h (strtok_r): Change argument names to match the
62422         comments. Add a conditional link warning.
62423         (mbstok_r): New declaration.
62424         * m4/mbstok_r.m4: New file.
62425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62426         GNULIB_MBSTOK_R.
62427         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62428         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62429
62430 2007-02-04  Bruno Haible  <bruno@clisp.org>
62431
62432         New module mbsspn.
62433         * modules/mbsspn: New file.
62434         * lib/mbsspn.c: New file.
62435         * lib/string_.h (strspn): Add a conditional link warning.
62436         (mbsspn): New declaration.
62437         * m4/mbsspn.m4: New file.
62438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62439         GNULIB_MBSSPN.
62440         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62441         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62442
62443 2007-02-04  Bruno Haible  <bruno@clisp.org>
62444
62445         New module mbspbrk.
62446         * modules/mbspbrk: New file.
62447         * lib/mbspbrk.c: New file.
62448         * lib/string_.h (strpbrk): Add a conditional link warning.
62449         (mbspbrk): New declaration.
62450         * m4/mbspbrk.m4: New file.
62451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62452         GNULIB_MBSPBRK.
62453         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62454         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62455
62456 2007-02-04  Bruno Haible  <bruno@clisp.org>
62457
62458         New module mbscspn.
62459         * modules/mbscspn: New file.
62460         * lib/mbscspn.c: New file.
62461         * lib/string_.h (strcspn): Add a conditional link warning.
62462         (mbscspn): New declaration.
62463         * m4/mbscspn.m4: New file.
62464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62465         GNULIB_MBSCSPN.
62466         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62467         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62468
62469 2007-02-04  Bruno Haible  <bruno@clisp.org>
62470
62471         New module mbscasestr, reduced goal of strcasestr.
62472         * modules/mbscasestr: New file.
62473         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62474         (mbscasestr): Renamed from strcasestr.
62475         * lib/strcasestr.c: Don't include mbuiter.h.
62476         (strcasestr): Remove support for multibyte locales.
62477         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62478         Change the conditional link warning.
62479         (mbscasestr): New declaration.
62480         * m4/mbscasestr.m4: New file.
62481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62482         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62483         REPLACE_STRCASESTR.
62484         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62486         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62488         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62489         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62490         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62491         (Depends-on): Remove mbuiter.
62492         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62493
62494 2007-02-04  Bruno Haible  <bruno@clisp.org>
62495
62496         Simplify handling of strncasecmp.
62497         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62498         the conditional link warning.
62499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62500         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62501         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62502         * modules/strcase (configure.ac): Don't invoke
62503         gl_STRING_MODULE_INDICATOR.
62504         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62505
62506 2007-02-04  Bruno Haible  <bruno@clisp.org>
62507
62508         New module mbscasecmp, reduced goal of strcasecmp.
62509         * modules/mbscasecmp: New file.
62510         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62511         (mbscasecmp): Renamed from strcasecmp.
62512         * lib/strcasecmp.c: Don't include mbuiter.h.
62513         (strcasecmp): Remove support for multibyte locales.
62514         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62515         Change the conditional link warning.
62516         (mbscasecmp): New declaration.
62517         * m4/mbscasecmp.m4: New file.
62518         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62519         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62520         REPLACE_STRCASECMP.
62521         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62523         GNULIB_MBSCASECMP.
62524         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62525         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62526         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62527         (Depends-on): Remove mbuiter.
62528         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62529
62530 2007-02-04  Bruno Haible  <bruno@clisp.org>
62531
62532         New module mbsstr. Remove module strstr.
62533         * modules/mbsstr: New file.
62534         * modules/strstr: Remove file.
62535         * lib/mbsstr.c: Renamed from lib/strstr.c.
62536         (mbsstr): Renamed from strstr.
62537         * lib/string_.h (strstr): Remove declaration. Change the conditional
62538         link warning.
62539         (mbsstr): New declaration.
62540         * m4/mbsstr.m4: New file.
62541         * m4/strstr.m4: Remove file.
62542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62543         REPLACE_STRSTR.
62544         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62545         Don't initialize GNULIB_STRSTR.
62546         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62547         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62548         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62549         (Support for systems lacking ANSI C 89): Remove strstr.
62550
62551 2007-02-04  Bruno Haible  <bruno@clisp.org>
62552
62553         New module mbsrchr.
62554         * modules/mbsrchr: New file.
62555         * lib/mbsrchr.c: New file.
62556         * lib/string_.h (strrchr): Add a conditional link warning.
62557         (mbsrchr): New declaration.
62558         * m4/mbsrchr.m4: New file.
62559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62560         GNULIB_MBSRCHR.
62561         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62562         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62563
62564 2007-02-04  Bruno Haible  <bruno@clisp.org>
62565
62566         New module mbschr.
62567         * modules/mbschr: New file.
62568         * lib/mbschr.c: New file.
62569         * lib/string_.h (strchr): Add a conditional link warning.
62570         (mbschr): New declaration.
62571         * m4/mbschr.m4: New file.
62572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62573         GNULIB_MBSCHR.
62574         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62575         * MODULES.html.sh (Internationalization functions): Add mbschr.
62576
62577 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62578
62579         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62580
62581         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62582
62583 2007-02-04  Bruno Haible  <bruno@clisp.org>
62584
62585         New module description section 'configure.ac-early'.
62586         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62587         (func_get_autoconf_early_snippet): New function.
62588         (func_import, func_create_testdir): Use it. Remove special cases for
62589         modules 'extensions' and 'lock'.
62590         * modules/extensions (configure.ac-early): Require
62591         gl_USE_SYSTEM_EXTENSIONS.
62592         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62593
62594 2007-02-04  Bruno Haible  <bruno@clisp.org>
62595
62596         Make use of gcj-4.3's -fsource and -ftarget option.
62597         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62598         and if so try the options -fsource and -ftarget.
62599         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62600         source_version, ftarget_option, target_version arguments.
62601         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62602         (is_envjavac_oldgcj_14_14_usable): Renamed from
62603         is_envjavac_gcj_14_14_usable.
62604         (is_envjavac_oldgcj_14_13_usable): Renamed from
62605         is_envjavac_gcj_14_13_usable.
62606         (is_gcj_present): Update.
62607         (is_gcj_43, is_gcj43_usable): New functions.
62608         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62609         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62610         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62611         try the options -fsource and -ftarget.
62612
62613 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62614
62615         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62616         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62617         larger value.
62618
62619 2007-02-03  Jim Meyering  <jim@meyering.net>
62620
62621         Give tools a better chance to allocate space for very large buffers.
62622         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62623
62624         Make pwd and readlink work also when run with an unreadable parent dir
62625         on systems with openat support.
62626         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62627         provided getcwd function, even when we have openat support.
62628         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62629
62630 2007-02-02  Bruno Haible  <bruno@clisp.org>
62631
62632         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62633         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62634         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62635         portability problems if one of these functions is only used on specific
62636         platforms.
62637         Reported by Paul Eggert.
62638
62639 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62640
62641         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62642         is causing more trouble than it's curing.
62643         * lib/regex_internal.h (__mempcpy): Remove.
62644         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62645         (and make the code a tad smaller to boot).
62646         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62647
62648 2007-02-02  Jim Meyering  <jim@meyering.net>
62649
62650         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62651         section, not in the Makefile.am: one.
62652
62653 2007-02-02  Eric Blake  <ebb9@byu.net>
62654
62655         * lib/strchrnul.c: Always include config.h first.
62656
62657         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62658         gnulib strstr is not necessary here.
62659
62660 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62661
62662         * m4/socklen.m4: Fix typo.
62663
62664 2007-02-02  Eric Blake  <ebb9@byu.net>
62665
62666         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62667         * modules/netinet_in (Makefile.am): Likewise.
62668
62669 2007-02-01  Bruno Haible  <bruno@clisp.org>
62670
62671         * lib/string_.h (GL_LINK_WARNING): New macro.
62672         (strcasecmp, strstr, strcasestr): If provided by the system,
62673         conditionally define as a macro that leads to a warning instead of to
62674         an error.
62675         (strncasecmp): Conditionally define as a macro that leads to a warning.
62676
62677 2007-02-01  Karl Berry  <karl@gnu.org>
62678
62679         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62680
62681 2007-02-01  Bruno Haible  <bruno@clisp.org>
62682
62683         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62684         renamings.
62685
62686 2007-02-01  Eric Blake  <ebb9@byu.net>
62687
62688         * modules/regex (Depends-on): Revert dependence on mempcpy.
62689         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62690         module's definition of mempcpy.
62691         Reported by Paul Eggert.
62692
62693 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62694
62695         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62696         the symbol XYZ before redefining it.  This fixes a problem with
62697         programs that don't use XYZ, when compiled on systems that define
62698         XYZ to something else.
62699
62700 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62701
62702         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62703         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62704         writeable to group or other and (2) is intended to have a special
62705         mode bit that is set or cleared.  In such a case, the directory
62706         should be neither group- nor other-writeable until the special
62707         mode bits are right.
62708
62709 2007-01-31  Eric Blake  <ebb9@byu.net>
62710
62711         * modules/mountlist (Depends-on): Add strstr.
62712
62713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62714         bug.
62715         * modules/string (Makefile.am): Remove redundant replacement.
62716         * modules/regex (Depends-on): Add mempcpy.
62717
62718 2007-01-31  Bruno Haible  <bruno@clisp.org>
62719
62720         New module description field 'Link'.
62721         * gnulib-tool (func_usage): Document --extract-link-directive.
62722         (sed_extract_prog): Recognize 'Link' directive.
62723         (func_get_link_directive): New function.
62724         (func_import): Show summary of link directives.
62725         Handle --extract-link-directive option.
62726         * modules/acl (Link): New section.
62727         * modules/clock-time (Link): New section.
62728         * modules/euidaccess (Link): New section.
62729         * modules/gettext (Link): New section.
62730         * modules/iconv (Link): New section.
62731         * modules/lock (Link): New section.
62732         * modules/nanosleep (Link): New section.
62733         * modules/readline (Link): New section.
62734
62735 2007-01-27  Bruno Haible  <bruno@clisp.org>
62736
62737         Enforce the use of gnulib modules for unportable <string.h> functions.
62738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62739         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62740         (gl_HEADER_STRING_H_BODY): Require it.
62741         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62742         the symbol XYZ to one that gives a link error.
62743         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62744         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62745         * modules/mempcpy (configure.ac): Likewise.
62746         * modules/memrchr (configure.ac): Likewise.
62747         * modules/stpcpy (configure.ac): Likewise.
62748         * modules/stpncpy (configure.ac): Likewise.
62749         * modules/strcase (configure.ac): Likewise.
62750         * modules/strcasestr (configure.ac): Likewise.
62751         * modules/strchrnul (configure.ac): Likewise.
62752         * modules/strdup (configure.ac): Likewise.
62753         * modules/strndup (configure.ac): Likewise.
62754         * modules/strnlen (configure.ac): Likewise.
62755         * modules/strpbrk (configure.ac): Likewise.
62756         * modules/strsep (configure.ac): Likewise.
62757         * modules/strstr (configure.ac): Likewise.
62758         * modules/strtok_r (configure.ac): Likewise.
62759
62760 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62761
62762         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62763
62764 2007-01-30  Jim Meyering  <jim@meyering.net>
62765
62766         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62767
62768 2007-01-29  Bruno Haible  <bruno@clisp.org>
62769
62770         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62771         * lib/execute.c: Likewise.
62772         * lib/pipe.c: Likewise.
62773         * lib/printf-args.h: Likewise.
62774         * lib/printf-args.c: Likewise.
62775         * lib/printf-parse.c: Likewise.
62776         * lib/vasnprintf.c: Likewise.
62777
62778 2007-01-29  Eric Blake  <ebb9@byu.net>
62779
62780         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62781         declaration.
62782
62783 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62784
62785         * lib/strptime.h (strptime): Use 'restrict' for args where
62786         POSIX requires this.
62787         * lib/strptime.c (strptime): Likewise.
62788         Change license notice from LGPL to GPL, since gnulib-tool will
62789         change this as needed.
62790         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62791         defined.
62792         Include "strptime.h" first, to check interface.
62793         Do not #undef _LIBC and _NL_CURRENT.
62794         Do not include <stdlib.h>; no longer needed.
62795         Include "time_r.h" and declare ptime_locale_status
62796         only if _LIBC is not defined.
62797         (__P): Remove unused macro.
62798         (match_string): Bring back glibc version, but use it only if _LIBC
62799         is defined.
62800         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62801         Remove unnecessary assertion and abort() call.
62802         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62803         * m4/strptime.m4: Fix serial number comment.
62804         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62805         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62806         (Depends-on): Add time_r.
62807
62808 2007-01-29  Bruno Haible  <bruno@clisp.org>
62809
62810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62811         strptime.
62812         * modules/strptime (Depends-on): Add stdbool.
62813         * lib/strptime.h: Include <time.h> always. Add comments.
62814
62815 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62816
62817         * modules/strptime: New file.
62818         * lib/strptime.h: New file.
62819         * lib/strptime.c: New file.
62820         * m4/strptime.m4: New file.
62821
62822 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62823
62824         * MODULES.html.sh: New module mpsort.
62825         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62826
62827         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62828         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62830         All uses changed.
62831         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62832         All uses changed.
62833         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62834         to _Restrict_.
62835         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62836         the parameter matches the prototype.
62837
62838 2007-01-28  Jim Meyering  <jim@meyering.net>
62839
62840         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62841         sys/time.h here, reverting that part of the previous patch:
62842         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62843
62844 2007-01-28  Bruno Haible  <bruno@clisp.org>
62845
62846         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62847         value of $(SYS_TIME_H).
62848         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62849         remove it conditionally, too. [added by Jim Meyering]
62850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62852         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62853         GETTIMEOFDAY_REPLACEMENT to 1.
62854
62855 2007-01-28  Bruno Haible  <bruno@clisp.org>
62856
62857         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62858         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62860         Set UNISTD_H instead of UNISTD_H2.
62861         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62862
62863 2007-01-28  Bruno Haible  <bruno@clisp.org>
62864
62865         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62866         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62867
62868 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62869
62870         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62871         (func_create_testdir): Ensure C locale for `grep' and `tr'
62872         character ranges.
62873         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62874         ACLOCAL_AMFLAGS parsing state machine.
62875
62876 2007-01-27  Bruno Haible  <bruno@clisp.org>
62877
62878         * modules/unistr/base: Update.
62879
62880 2007-01-27  Bruno Haible  <bruno@clisp.org>
62881
62882         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62883         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62884         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62885         modules/unistr/u32-mbtouc.
62886         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62887         * lib/unistr.h: Update.
62888         * lib/linebreak.c: Update.
62889         * modules/unistr/u32-mbtouc: Renamed from
62890         modules/unistr/u32-mbtouc-safe.
62891         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62892         * lib/unistr.h: Update.
62893         * lib/unistr/u32-to-u8.c: Update.
62894         * lib/unistr/u32-to-u16.c: Update.
62895
62896 2007-01-27  Bruno Haible  <bruno@clisp.org>
62897
62898         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62899         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62900         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62901         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62902         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62903         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62904         modules/unistr/u16-mbtouc.
62905         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62906         * lib/unistr.h: Update.
62907         * lib/linebreak.c: Update.
62908         * modules/linebreak: Update.
62909         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62910         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62911         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62912         * modules/unistr/u16-mbtouc: Renamed from
62913         modules/unistr/u16-mbtouc-safe.
62914         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62915         * lib/unistr.h: Update.
62916         * lib/unistr/u16-to-u8.c: Update.
62917         * modules/unistr/u16-to-u8: Update.
62918         * lib/unistr/u16-to-u32.c: Update.
62919         * modules/unistr/u16-to-u32: Update.
62920
62921 2007-01-27  Bruno Haible  <bruno@clisp.org>
62922
62923         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62924         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62925         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62926         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62927         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62928         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62929         modules/unistr/u8-mbtouc.
62930         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62931         * lib/unistr.h: Update.
62932         * lib/striconveh.c: Update.
62933         * modules/striconveh: Update.
62934         * lib/linebreak.c: Update.
62935         * modules/linebreak: Update.
62936         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62937         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62938         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62939         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62940         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62941         * lib/unistr.h: Update.
62942         * lib/striconveh.c: Update.
62943         * modules/striconveh: Update.
62944         * lib/unistr/u8-to-u16.c: Update.
62945         * modules/unistr/u8-to-u16: Update.
62946         * lib/unistr/u8-to-u32.c: Update.
62947         * modules/unistr/u8-to-u32: Update.
62948
62949 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62950
62951         Sync from Libtool.
62952         * lib/argz.c: Do not include strings.h nor memory.h, include
62953         string.h unconditionally.  Patch by Simon Josefsson.
62954
62955 2007-01-27  Bruno Haible  <bruno@clisp.org>
62956
62957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62958         from gl_HEADER_STRING_H_BODY.
62959         (gl_HEADER_STRING_H_BODY): Require it.
62960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62963         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62965         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62968         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62972         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62973         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62975
62976 2007-01-27  Bruno Haible  <bruno@clisp.org>
62977
62978         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62979         check_PROGRAMS into noinst_PROGRAMS.
62980         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62981         check_PROGRAMS in this case.
62982         (func_import): Set for_test to false.
62983         (func_create_testdir): Set for_test to true.
62984
62985 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62986             Bruno Haible  <bruno@clisp.org>
62987
62988         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62989         (Depends-on): Add string.
62990         (Includes): Use <string.h> instead of strcasestr.h.
62991         * modules/string (Makefile.am): Also substitute the value of
62992         REPLACE_STRCASESTR.
62993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62994         assume strcasestr is declared in <string.h> not <strings.h>. Also
62995         set REPLACE_STRCASESTR.
62996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62997         REPLACE_STRCASESTR.
62998         * lib/strcasestr.h: Remove file.
62999         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63000         * lib/string_.h (strcasestr): New declaration.
63001
63002 2007-01-27  Bruno Haible  <bruno@clisp.org>
63003
63004         * lib/string_.h: Use 'extern'.
63005
63006 2007-01-27  Jim Meyering  <jim@meyering.net>
63007
63008         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63009         of set-but-not-used local, "q".
63010
63011         * lib/mempcpy.c: Include <config.h> before <string.h>.
63012         This fixes a compilation error on HP-UX, due to the system's
63013         "restrict"-using mempcpy prototype.
63014
63015 2007-01-26  Bruno Haible  <bruno@clisp.org>
63016
63017         Small optimization.
63018         * lib/javacomp.c: Include c-strstr.h.
63019          (is_envjavac_gcj): Use c_strstr instead of strstr.
63020         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63021
63022 2007-01-26  Bruno Haible  <bruno@clisp.org>
63023
63024         * MODULES.html.sh (Unicode string functions): Add the new modules.
63025
63026         * modules/uniconv/u32-strconv-to-locale: New file.
63027         * lib/uniconv/u32-strconv-to-locale.c: New file.
63028
63029         * modules/uniconv/u16-strconv-to-locale: New file.
63030         * lib/uniconv/u16-strconv-to-locale.c: New file.
63031
63032         * modules/uniconv/u8-strconv-to-locale: New file.
63033         * lib/uniconv/u8-strconv-to-locale.c: New file.
63034
63035         * modules/uniconv/u32-strconv-from-locale: New file.
63036         * lib/uniconv/u32-strconv-from-locale.c: New file.
63037
63038         * modules/uniconv/u16-strconv-from-locale: New file.
63039         * lib/uniconv/u16-strconv-from-locale.c: New file.
63040
63041         * modules/uniconv/u8-strconv-from-locale: New file.
63042         * lib/uniconv/u8-strconv-from-locale.c: New file.
63043
63044         * modules/uniconv/u32-strconv-to-enc: New file.
63045         * lib/uniconv/u32-strconv-to-enc.c: New file.
63046         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63047         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63048
63049         * modules/uniconv/u16-strconv-to-enc: New file.
63050         * lib/uniconv/u16-strconv-to-enc.c: New file.
63051         * lib/uniconv/u-strconv-to-enc.h: New file.
63052         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63053         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63054
63055         * modules/uniconv/u8-strconv-to-enc: New file.
63056         * lib/uniconv/u8-strconv-to-enc.c: New file.
63057         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63058         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63059
63060         * modules/uniconv/u32-strconv-from-enc: New file.
63061         * lib/uniconv/u32-strconv-from-enc.c: New file.
63062         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63063         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63064
63065         * modules/uniconv/u16-strconv-from-enc: New file.
63066         * lib/uniconv/u16-strconv-from-enc.c: New file.
63067         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63068         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63069
63070         * modules/uniconv/u8-strconv-from-enc: New file.
63071         * lib/uniconv/u8-strconv-from-enc.c: New file.
63072         * lib/uniconv/u-strconv-from-enc.h: New file.
63073         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63074         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63075
63076         * modules/uniconv/u32-conv-from-enc: New file.
63077         * lib/uniconv/u32-conv-from-enc.c: New file.
63078         * modules/uniconv/u32-conv-from-enc-tests: New file.
63079         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63080
63081         * modules/uniconv/u16-conv-from-enc: New file.
63082         * lib/uniconv/u16-conv-from-enc.c: New file.
63083         * lib/uniconv/u-conv-from-enc.h: New file.
63084         * modules/uniconv/u16-conv-from-enc-tests: New file.
63085         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63086
63087         * modules/uniconv/u8-conv-from-enc: New file.
63088         * lib/uniconv/u8-conv-from-enc.c: New file.
63089         * modules/uniconv/u8-conv-from-enc-tests: New file.
63090         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63091
63092         * modules/uniconv/base: New file.
63093         * lib/uniconv.h: New file.
63094
63095 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63096
63097         * doc/gnulib-tool.texi (Initial import): Update to match current
63098         behavior with strdup module.
63099         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63100         * lib/memmem.h: Remove; all uses removed.  This is now done
63101         by <string.h>.
63102         * lib/mempcpy.h: Likewise.
63103         * lib/memrchr.h: Likewise.
63104         * lib/stpcpy.h: Likewise.
63105         * lib/stpncpy.h: Likewise.
63106         * lib/strcase.h: Likewise.
63107         * lib/strchrnul.h: Likewise.
63108         * lib/strdup.h: Likewise.
63109         * lib/strndup.h: Likewise.
63110         * lib/strnlen.h: Likewise.
63111         * lib/strpbrk.h: Likewise.
63112         * lib/strsep.h: Likewise.
63113         * lib/strstr.h: Likewise.
63114         * lib/strtok_r.h: Likewise.
63115         * lib/string_.h: New file.
63116         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63117         Rely on <string.h> instead.
63118         * lib/canon-host.c: Likewise.
63119         * lib/chdir-long.c: Likewise.
63120         * lib/concatpath.c: Likewise.
63121         * lib/exclude.c: Likewise.
63122         * lib/fchdir.c: Likewise.
63123         * lib/getaddrinfo.c: Likewise.
63124         * lib/getcwd.c: Likewise.
63125         * lib/getsubopt.c: Likewise.
63126         * lib/glob.c: Likewise.
63127         * lib/hard-locale.c: Likewise.
63128         * lib/iconvme.c: Likewise.
63129         * lib/javacomp.c: Likewise.
63130         * lib/mempcpy.c: Likewise.
63131         * lib/memrchr.c: Likewise.
63132         * lib/regex_internal.h: Likewise.
63133         * lib/stpncpy.c: Likewise.
63134         * lib/strcasecmp.c: Likewise.
63135         * lib/strchrnul.c: Likewise.
63136         * lib/strdup.c: Likewise.
63137         * lib/striconv.c: Likewise.
63138         * lib/striconveh.c: Likewise.
63139         * lib/striconveha.c: Likewise.
63140         * lib/strncasecmp.c: Likewise.
63141         * lib/strndup.c: Likewise.
63142         * lib/strnlen.c: Likewise.
63143         * lib/strsep.c: Likewise.
63144         * lib/strstr.c: Likewise.
63145         * lib/strtok_r.c: Likewise.
63146         * lib/userspec.c: Likewise.
63147         * lib/w32spawn.h: Likewise.
63148         * lib/xstrndup.c: Likewise.
63149         * lib/mountlist.c (strstr): Remove decl.
63150         * m4/string_h.m4: New file.
63151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63155         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63156         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63157         Set REPLACE_STRCASECMP if necessary.
63158         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63159         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63160         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63162         HAVE_DECL_STRDUP if necessary.
63163         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63164         since gl_FUNC_STRNDUP does that now.
63165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63166         Check for decl here...
63167         (gl_PREREQ_STRNLEN): ... not here.
63168         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63169         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63170         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63172         necessary.
63173         * modules/string: New file.
63174         * modules/memmem (Files): Remove special-purpose include file.
63175         (Depends-on): Add string.
63176         (Include): Include <string.h>, not the removed file.
63177         * modules/mempcpy: Likewise.
63178         * modules/memrchr: Likewise.
63179         * modules/stpcpy: Likewise.
63180         * modules/stpncpy: Likewise.
63181         * modules/strcase: Likewise.
63182         * modules/strchrnul: Likewise.
63183         * modules/strdup: Likewise.
63184         * modules/strndup: Likewise.
63185         * modules/strnlen: Likewise.
63186         * modules/strpbrk: Likewise.
63187         * modules/strsep: Likewise.
63188         * modules/strstr: Likewise.
63189         * modules/strtok_r: Likewise.
63190         * tests/test-dirname.c: Don't include "strdup.h", since
63191         <string.h> now suffices.
63192         * tests/test-memmem.c: Don't include "memmem.h", since
63193         <string.h> now suffices.
63194
63195 2007-01-25  Bruno Haible  <bruno@clisp.org>
63196
63197         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63198         *resultp is 0.
63199
63200         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63201         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63202         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63203         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63204
63205         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63206         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63207         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63208         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63209         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63210         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63211
63212 2007-01-24  Bruno Haible  <bruno@clisp.org>
63213
63214         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63216         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63217         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63218         gl_FUNC_FTS_CORE.
63219         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63220         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63222         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63223         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63224         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63225         gl_FUNC_FCHOWNAT.
63226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63227         gl_FUNC_STRFTIME.
63228         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63229         Reported by Ralf Wildenhues.
63230
63231 2007-01-24  Bruno Haible  <bruno@clisp.org>
63232
63233         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63234         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63235         gl_GETADDRINFO.
63236         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63237         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63238         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63239
63240 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63241
63242         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63243         Don't use 'exit'; just return from 'main'.
63244         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63245
63246         * lib/fnmatch_.h: Readjust white space and comments to match
63247         glibc, to avoid spurious diffs.
63248
63249 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63250
63251         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63252         2004-12-01 change by Jakub Jelinek, since this code won't compile
63253         if !LIBC.  Problem reported by Bob Proulx.
63254
63255 2007-01-23  Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/striconveh.c: Include c-strcaseeq.h.
63258         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63259         * modules/striconveh (Depends-on): Add c-strcaseeq.
63260
63261 2007-01-23  Bruno Haible  <bruno@clisp.org>
63262
63263         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63264
63265         * modules/c-strcaseeq: New file.
63266         * lib/c-strcaseeq.h: New file.
63267
63268         * modules/streq: New file.
63269         * lib/streq.h: New file.
63270
63271 2007-01-23  Bruno Haible  <bruno@clisp.org>
63272
63273         * modules/striconveha-tests: New file.
63274         * tests/test-striconveha.c: New file.
63275
63276         * lib/striconveha.h: Include <stdbool.h>.
63277         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63278         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63279         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63280         (mem_iconveha): New function.
63281         (str_iconveha_notranslit): Renamed from str_iconveha.
63282         (str_iconveha): New function.
63283         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63284         c-strcase.
63285
63286 2007-01-23  Bruno Haible  <bruno@clisp.org>
63287
63288         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63289         encodings without forgiving before trying any encoding with handler.
63290         (str_iconveha): Try all encodings without forgiving before trying any
63291         encoding with handler.
63292
63293 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63294
63295         Import the following changes from libc.
63296
63297         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63298
63299         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63300
63301         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63302
63303         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63304         normal_bracket label.
63305
63306         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63307
63308         [BZ #361]
63309         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63310         to normal_bracket after fetching the next character.
63311
63312 2007-01-22  Bruno Haible  <bruno@clisp.org>
63313
63314         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63315         argument.
63316         * lib/striconveh.c (iconv_carefully_1): New function.
63317         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63318         argument.
63319         (str_cd_iconveh): Update.
63320         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63321         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63322         * tests/test-striconveh.c (MAGIC): New macro.
63323         (new_offsets): New function.
63324         (main): Test call with and without offsets.
63325
63326 2007-01-22  Bruno Haible  <bruno@clisp.org>
63327
63328         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63329         * modules/sys_select (Makefile.am): Likewise.
63330         * modules/sys_socket (Makefile.am): Likewise.
63331         * modules/sys_time (Makefile.am): Likewise.
63332
63333 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63334
63335         * modules/gettimeofday (License): Change from GPL to LGPL, since
63336         gettimeofday is a library function.
63337
63338 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63339
63340         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63341
63342 2007-01-21  Bruno Haible  <bruno@clisp.org>
63343
63344         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63345
63346 2007-01-21  Bruno Haible  <bruno@clisp.org>
63347
63348         * modules/striconveha: New file.
63349         * lib/striconveha.h: New file.
63350         * lib/striconveha.c: New file.
63351         * MODULES.html.sh (Internationalization functions): Add striconveha.
63352         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63353         string.
63354         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63355
63356 2007-01-21  Bruno Haible  <bruno@clisp.org>
63357
63358         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63359         * lib/striconveh.c (str_iconveh): Likewise.
63360
63361 2007-01-21  Bruno Haible  <bruno@clisp.org>
63362
63363         * lib/striconveh.h (mem_iconveh): New declaration.
63364         * lib/striconveh.c (mem_iconveh): New function.
63365         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63366
63367 2007-01-21  Bruno Haible  <bruno@clisp.org>
63368
63369         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63370
63371         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63372         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63373         original result buffer.
63374         (str_cd_iconveh): Update.
63375         * tests/test-striconveh.c (main): Update.
63376
63377         * lib/striconv.h (mem_cd_iconv): Change specification.
63378         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63379         result buffer.
63380         (str_cd_iconv): Update.
63381         * tests/test-striconv.c (main): Update.
63382
63383 2007-01-21  Bruno Haible  <bruno@clisp.org>
63384
63385         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63386
63387 2007-01-20  Jim Meyering  <jim@meyering.net>
63388
63389         * lib/userspec.c (parse_with_separator): If a user or group string
63390         starts with "+", skip the corresponding name-to-ID look-up, since
63391         such a look-up must fail: user and group names may not include "+".
63392
63393 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63396         since we now assume the sys_time module.
63397         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63398         check for sys/time.h; no longer needed.
63399         * modules/poll (Depends-on): Depend on sys_time.
63400
63401 2007-01-18  Bruno Haible  <bruno@clisp.org>
63402
63403         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63404         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63405
63406         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63407         gettimeofday.
63408
63409         * tests/test-gettimeofday.c: Include <time.h>.
63410         (dummy): Remove variable.
63411
63412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63413         gl_HEADER_SYS_TIME_H.
63414         (gl_HEADER_SYS_TIME_H): New macro.
63415
63416         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63417         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63419         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63420         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63422         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63423         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63424         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63425         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63426         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63427
63428         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63429         last change; it caused a compilation error when cross-compiling to
63430         Cygwin.
63431
63432 2007-01-18  Jim Meyering  <jim@meyering.net>
63433
63434         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63435         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63436         than the race-prone "test -d sys || mkdir sys".
63437         (configure.ac): Use AC_PROG_MKDIR_P.
63438         * modules/sys_select: Likewise.
63439         * modules/sys_socket: Likewise.
63440         * modules/sys_time: Likewise.
63441
63442 2007-01-18  Eric Blake  <ebb9@byu.net>
63443
63444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63445         replace gettimeofday.
63446         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63447         name, to avoid infinite recursion.
63448
63449 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63450
63451         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63452         module sys_time.
63453         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63454         assume timespec.h defines struct timeval.
63455         * lib/settime.c: Likewise.
63456         * lib/utimens.c: Likewise.
63457         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63458         since we now assume the gettimeofday module.
63459         * lib/tempname.c (__gen_tempname): Likewise.
63460         * lib/gettimeofday.h: Remove.
63461         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63462         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63463         Include <time.h>, for 'time()'.
63464         (localtime_buffer_addr): Also use this workaround if
63465         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63466         to simplify the uses.  All uses changed.
63467         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63468         that #undef is inside {}, and 'const' follows type name consistently.
63469         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63470         (gettimeofday): Do not use the maximum possible value for
63471         tv->tv_usec, since that might break usages other than ls.c.
63472         Instead, we'll leave ls.c alone.  This undoes today's patch
63473         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63474         we've never observed the problem but might as well keep the
63475         canary.
63476         * lib/nanosleep.c: Include timespec.h first, for interface check.
63477         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63478         now assume the sys_time module.
63479         * lib/tempname.c: Likewise.
63480         * lib/timespec.h: Likewise.
63481         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63482         needed.
63483         * lib/strftime.c: Likewise.
63484         * lib/timespec.h: Likewise.
63485         * lib/posixtm.c: Include posixtm.h first, for interface check.
63486         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63487         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63488         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63489         * lib/sys_time_.h: New file.
63490         * lib/timespec.h (struct timespec): Use long int, not long.
63491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63492         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63493         Remove obsolescent call to AC_HEADER_TIME.
63494         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63497         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63498         Likewise.
63499         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63500         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63501         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63502         into the sys_time module.  Check for gettimeofday just once.
63503         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63504         for gettimeofday signature to just check the signature.  Merely
63505         compile it, since linking doesn't test signature.  Improve test for
63506         whether gettimeofday.o is actually needed.
63507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63508         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63509         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63510         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63511         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63512         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63513         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63514         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63515         than worrying about sys/time.h.
63516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63517         Don't bother worrying about TIME_WITH_SYS_TIME.
63518         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63519         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63520         * m4/sys_time_h.m4: New file.
63521         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63522         Don't include sys/time.h.  Return from main rather than exiting.
63523         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63524         all uses changed.
63525         * modules/gethrxtime (Depends-on): Add sys_time.
63526         * modules/gettime (Depends-on): Likewise.
63527         * modules/gettimeofday (Depends-on): Likewise.
63528         * modules/nanosleep (Depends-on): Likewise.
63529         * modules/settime (Depends-on): Likewise.
63530         * modules/tempname (Depends-on): Likewise.
63531         * modules/utimens (Depends-on): Likewise.
63532         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63533         (Include): Change back to <sys/time.h>.
63534         (Maintainer): Add self.
63535         * modules/sys_time: New file.
63536         * modules/tempname (Depends-on): Add gettimeofday.
63537         * tests/test-gettimeofday.c: Include <sys/time.h>
63538         rather than gettimeofday.h.
63539
63540 2007-01-17  Bruno Haible  <bruno@clisp.org>
63541
63542         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63543         the license default to GPL.
63544         (func_create_testdir): Don't complain if a module is LGPL and its
63545         tests module depends on GPLed modules.
63546
63547 2007-01-17  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/gettimeofday.c (gettimeofday): Add code for the case
63550         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63551         maximum possible value for tv->tv_usec, rather than the minimum one.
63552
63553 2005-10-08  Martin Lambers  <marlam@marlam.de>
63554 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63555 2007-01-16  Bruno Haible  <bruno@clisp.org>
63556
63557         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63558         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63559         gl_FUNC_GETTIMEOFDAY.
63560         (Include): Add gettimeofday.h.
63561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63562         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63563         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63564         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63565         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63566         * lib/gettimeofday.h: New file.
63567         * lib/gettimeofday.c: Include <sys/timeb.h>.
63568         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63569         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63570         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63571         fall back on time().
63572
63573         * tests/test-gettimeofday.c: New file.
63574         * modules/gettimeofday-tests: New file.
63575
63576 2007-01-16  Eric Blake  <ebb9@byu.net>
63577
63578         * modules/fnmatch (Depends-on): Depend on wchar.
63579         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63580         * m4/fnmatch.m4: Likewise.
63581         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63582         * m4/mbchar.m4: Likewise.
63583         * modules/mbswidth (Depends-on): Depend on wchar.
63584         * lib/mbswidth.c: Assume <wchar.h>.
63585         * m4/mbswidth.m4: Likewise.
63586         * modules/quotearg (Depends-on): Depend on wchar.
63587         * lib/quotearg.c: Assume <wchar.h>.
63588         * m4/quotearg.m4: Likewise.
63589         * modules/regex (Depends-on): Depend on wchar.
63590         * lib/regex_internal.h: Assume <wchar.h>.
63591         * m4/regex.m4: Likewise.
63592         * modules/stdint (Depends-on): Depend on wchar.
63593         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63594         * m4/stdint.m4: Likewise.
63595         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63596         * modules/strftime (Depends-on): Depend on wchar.
63597         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63598         * modules/strtol (Depends-on): Depend on wchar.
63599         * lib/strtol.c: Assume <wchar.h>.
63600         * modules/wcwidth (Depends-on): Depend on wchar.
63601         * lib/wcwidth.h: Assume <wchar.h>.
63602         * m4/wcwidth.m4: Likewise.
63603
63604 2007-01-16  Bruno Haible  <bruno@clisp.org>
63605
63606         * modules/csharpexec-script: New, created from...
63607         * modules/csharpexec: ... this.
63608
63609 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63610
63611         * modules/javaexec-script: New, created from...
63612         * modules/javaexec: ... this.
63613
63614 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63615
63616         * modules/poll (Dependencies): Add sys_select.
63617
63618 2007-01-15  Jim Meyering  <jim@meyering.net>
63619
63620         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63621         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63622         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63623         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63624
63625 2007-01-15  Bruno Haible  <bruno@clisp.org>
63626
63627         * modules/striconveh: New file.
63628         * lib/striconveh.h: New file.
63629         * lib/striconveh.c: New file.
63630         * MODULES.html.sh (Internationalization functions): Add striconveh.
63631
63632         * modules/striconveh-tests: New file.
63633         * tests/test-striconveh.c: New file.
63634
63635 2007-01-15  Bruno Haible  <bruno@clisp.org>
63636
63637         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63638         not from GNU libiconv or GNU libc.
63639
63640 2007-01-15  Bruno Haible  <bruno@clisp.org>
63641
63642         * doc/gnulib-intro.texi (Copyright): Explain the different license
63643         terms for module descriptions, autoconf macros, tests, documentation.
63644
63645 2007-01-14  Bruno Haible  <bruno@clisp.org>
63646
63647         * modules/striconv-tests: New file.
63648         * tests/test-striconv.c: New file.
63649
63650 2007-01-14  Bruno Haible  <bruno@clisp.org>
63651
63652         * modules/iconv-tests: New file.
63653         * tests/test-iconv.c: New file.
63654
63655 2007-01-14  Bruno Haible  <bruno@clisp.org>
63656
63657         * gnulib-tool (func_get_license): For test modules, use the license of
63658         the main module.
63659
63660 2007-01-14  Bruno Haible  <bruno@clisp.org>
63661
63662         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63663         if iconv is found to exist.
63664
63665 2007-01-14  Bruno Haible  <bruno@clisp.org>
63666
63667         * modules/c-ctype-tests: New file.
63668         * tests/test-c-ctype.c: New file.
63669
63670 2007-01-14  Bruno Haible  <bruno@clisp.org>
63671
63672         * modules/binary-io-tests: New file.
63673         * tests/test-binary-io.sh: New file.
63674         * tests/test-binary-io.c: New file.
63675
63676 2007-01-14  Bruno Haible  <bruno@clisp.org>
63677
63678         * modules/array-oset-tests: New file.
63679         * tests/test-array_oset.c: New file.
63680
63681 2007-01-14  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/array-list-tests: New file.
63684         * tests/test-array_list.c: New file.
63685
63686 2007-01-14  Bruno Haible  <bruno@clisp.org>
63687
63688         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63689         and make.
63690         Reported by Simon Josefsson in
63691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63692
63693 2007-01-14  Bruno Haible  <bruno@clisp.org>
63694
63695         * modules/allocsa-tests: New file.
63696         * tests/test-allocsa.c: New file.
63697
63698 2007-01-14  Bruno Haible  <bruno@clisp.org>
63699
63700         * modules/fchdir (Depends-on): Add absolute-header.
63701         * modules/unistd (Depends-on): Likewise.
63702
63703 2006-12-30  Bruno Haible  <bruno@clisp.org>
63704
63705         * modules/fchdir: New file.
63706         * modules/unistd (Files): Add lib/unistd_.h.
63707         (Makefile.am): Generate unistd.h from unistd_.h.
63708         * lib/fchdir.c: New file.
63709         * lib/dirent_.h: New file.
63710         * lib/unistd_.h: New file.
63711         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63712         * m4/fchdir.m4: New file.
63713         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63714         (gl_HEADER_UNISTD): Invoke it.
63715         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63716         function.
63717         * lib/backupfile.c (opendir, closedir): Undefine.
63718         * lib/chown.c (open, close): Undefine.
63719         * lib/clean-temp.c (open, close): Undefine.
63720         * lib/copy-file.c (open, close): Undefine.
63721         * lib/execute.c (open, close): Undefine.
63722         * lib/fsusage.c (open, close): Undefine.
63723         * lib/gc-gnulib.c (open, close): Undefine.
63724         * lib/getcwd.c (opendir, closedir): Undefine.
63725         * lib/glob.c (opendir, closedir): Undefine.
63726         * lib/javacomp.c (open, close): Undefine.
63727         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63728         * lib/openat-proc.c (open, close): Undefine.
63729         * lib/pagealign_alloc.c (open, close): Undefine.
63730         * lib/pipe.c (open, close): Undefine.
63731         * lib/progreloc.c (open, close): Undefine.
63732         * lib/savedir.c (opendir, closedir): Undefine.
63733         * lib/utime.c (open, close): Undefine.
63734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63735
63736 2007-01-10  Bruno Haible  <bruno@clisp.org>
63737
63738         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63739
63740 2007-01-12  Eric Blake  <ebb9@byu.net>
63741
63742         Provide a robust <wchar.h>.  Further simplifications are now
63743         possible in other modules, but not included here.
63744         * modules/wchar: New module.
63745         * m4/wchar.m4: New file.
63746         * lib/wchar_.h: Likewise.
63747         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63748         of the new module.
63749         * MODULES.html.sh (Extended multibyte and wide character utilities):
63750         New section.
63751
63752 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63753
63754         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63755         to a reasonable default for memory allocation.
63756         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63757         file system that reports garbage st_size values for symlinks.
63758         Problem reported by Liyang Hu.
63759
63760 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63761
63762         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63763         Emacs .#* auto-save files).
63764
63765 2007-01-11  Bruno Haible  <bruno@clisp.org>
63766
63767         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63768         directory.
63769
63770 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63771
63772         Use @...@ consistently in lib/wctype_.h.
63773         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63774         on it being set to 1 or 0.
63775         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63776         go back to AC_SUBSTing it.
63777         * modules/wctype (Makefile.am): Undo previous change.
63778
63779 2007-01-10  Eric Blake  <ebb9@byu.net>
63780
63781         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63782         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63783         * modules/wctype (Makefile.am): Likewise.
63784         Reported by Chris McGuire.
63785
63786 2007-01-10  Jim Meyering  <jim@meyering.net>
63787
63788         fts.c: a small readability/maintainability improvement
63789         * lib/fts.c (fts_read): Make this code slightly more readable and
63790         maintainable by hoisting the "sp->fts_cur = p" assignments to
63791         immediately follow the statements that set P.  Derived from
63792         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63793
63794 2007-01-10  Eric Blake  <ebb9@byu.net>
63795
63796         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63797         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63799         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63800         Reported by Chris McGuire.
63801
63802 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63803
63804         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63805         in sed script.
63806
63807 2007-01-09  Bruno Haible  <bruno@clisp.org>
63808
63809         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63810         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63811         variables.
63812         (func_module): Use them.
63813
63814 2007-01-09  Bruno Haible  <bruno@clisp.org>
63815
63816         * modules/unistr/base: New file.
63817         * lib/unistr.h: New file.
63818
63819         * modules/unistr/u8-to-u16: New file.
63820         * lib/unistr/u8-to-u16.c: New file.
63821
63822         * modules/unistr/u8-to-u32: New file.
63823         * lib/unistr/u8-to-u32.c: New file.
63824
63825         * modules/unistr/u16-to-u8: New file.
63826         * lib/unistr/u16-to-u8.c: New file.
63827
63828         * modules/unistr/u16-to-u32: New file.
63829         * lib/unistr/u16-to-u32.c: New file.
63830
63831         * modules/unistr/u32-to-u8: New file.
63832         * lib/unistr/u32-to-u8.c: New file.
63833
63834         * modules/unistr/u32-to-u16: New file.
63835         * lib/unistr/u32-to-u16.c: New file.
63836
63837         * modules/unistr/u8-check: New file.
63838         * modules/unistr/u16-check: New file.
63839         * modules/unistr/u32-check: New file.
63840         * lib/unistr/u8-check.c: New file.
63841         * lib/unistr/u16-check.c: New file.
63842         * lib/unistr/u32-check.c: New file.
63843
63844         * modules/unistr/u8-chr: New file.
63845         * modules/unistr/u16-chr: New file.
63846         * modules/unistr/u32-chr: New file.
63847         * lib/unistr/u8-chr.c: New file.
63848         * lib/unistr/u16-chr.c: New file.
63849         * lib/unistr/u32-chr.c: New file.
63850
63851         * modules/unistr/u8-cmp: New file.
63852         * modules/unistr/u16-cmp: New file.
63853         * modules/unistr/u32-cmp: New file.
63854         * lib/unistr/u8-cmp.c: New file.
63855         * lib/unistr/u16-cmp.c: New file.
63856         * lib/unistr/u32-cmp.c: New file.
63857
63858         * modules/unistr/u8-cpy: New file.
63859         * modules/unistr/u16-cpy: New file.
63860         * modules/unistr/u32-cpy: New file.
63861         * lib/unistr/u8-cpy.c: New file.
63862         * lib/unistr/u16-cpy.c: New file.
63863         * lib/unistr/u32-cpy.c: New file.
63864         * lib/unistr/u-cpy.h: New file.
63865
63866         * modules/unistr/u8-cpy-alloc: New file.
63867         * modules/unistr/u16-cpy-alloc: New file.
63868         * modules/unistr/u32-cpy-alloc: New file.
63869         * lib/unistr/u8-cpy-alloc.c: New file.
63870         * lib/unistr/u16-cpy-alloc.c: New file.
63871         * lib/unistr/u32-cpy-alloc.c: New file.
63872         * lib/unistr/u-cpy-alloc.h: New file.
63873
63874         * modules/unistr/u8-endswith: New file.
63875         * modules/unistr/u16-endswith: New file.
63876         * modules/unistr/u32-endswith: New file.
63877         * lib/unistr/u8-endswith.c: New file.
63878         * lib/unistr/u16-endswith.c: New file.
63879         * lib/unistr/u32-endswith.c: New file.
63880         * lib/unistr/u-endswith.h: New file.
63881
63882         * modules/unistr/u8-mblen: New file.
63883         * modules/unistr/u16-mblen: New file.
63884         * modules/unistr/u32-mblen: New file.
63885         * lib/unistr/u8-mblen.c: New file.
63886         * lib/unistr/u16-mblen.c: New file.
63887         * lib/unistr/u32-mblen.c: New file.
63888
63889         * modules/unistr/u8-mbtouc: New file.
63890         * modules/unistr/u16-mbtouc: New file.
63891         * modules/unistr/u32-mbtouc: New file.
63892         * lib/unistr/u8-mbtouc.c: New file.
63893         * lib/unistr/u16-mbtouc.c: New file.
63894         * lib/unistr/u32-mbtouc.c: New file.
63895
63896         * modules/unistr/u8-mbtouc-safe: New file.
63897         * modules/unistr/u16-mbtouc-safe: New file.
63898         * modules/unistr/u32-mbtouc-safe: New file.
63899         * lib/unistr/u8-mbtouc-safe.c: New file.
63900         * lib/unistr/u16-mbtouc-safe.c: New file.
63901         * lib/unistr/u32-mbtouc-safe.c: New file.
63902
63903         * modules/unistr/u8-move: New file.
63904         * modules/unistr/u16-move: New file.
63905         * modules/unistr/u32-move: New file.
63906         * lib/unistr/u8-move.c: New file.
63907         * lib/unistr/u16-move.c: New file.
63908         * lib/unistr/u32-move.c: New file.
63909         * lib/unistr/u-move.h: New file.
63910
63911         * modules/unistr/u8-next: New file.
63912         * modules/unistr/u16-next: New file.
63913         * modules/unistr/u32-next: New file.
63914         * lib/unistr/u8-next.c: New file.
63915         * lib/unistr/u16-next.c: New file.
63916         * lib/unistr/u32-next.c: New file.
63917
63918         * modules/unistr/u8-prev: New file.
63919         * modules/unistr/u16-prev: New file.
63920         * modules/unistr/u32-prev: New file.
63921         * lib/unistr/u8-prev.c: New file.
63922         * lib/unistr/u16-prev.c: New file.
63923         * lib/unistr/u32-prev.c: New file.
63924
63925         * modules/unistr/u8-set: New file.
63926         * modules/unistr/u16-set: New file.
63927         * modules/unistr/u32-set: New file.
63928         * lib/unistr/u8-set.c: New file.
63929         * lib/unistr/u16-set.c: New file.
63930         * lib/unistr/u32-set.c: New file.
63931         * lib/unistr/u-set.h: New file.
63932
63933         * modules/unistr/u8-startswith: New file.
63934         * modules/unistr/u16-startswith: New file.
63935         * modules/unistr/u32-startswith: New file.
63936         * lib/unistr/u8-startswith.c: New file.
63937         * lib/unistr/u16-startswith.c: New file.
63938         * lib/unistr/u32-startswith.c: New file.
63939         * lib/unistr/u-startswith.h: New file.
63940
63941         * modules/unistr/u8-stpcpy: New file.
63942         * modules/unistr/u16-stpcpy: New file.
63943         * modules/unistr/u32-stpcpy: New file.
63944         * lib/unistr/u8-stpcpy.c: New file.
63945         * lib/unistr/u16-stpcpy.c: New file.
63946         * lib/unistr/u32-stpcpy.c: New file.
63947         * lib/unistr/u-stpcpy.h: New file.
63948
63949         * modules/unistr/u8-stpncpy: New file.
63950         * modules/unistr/u16-stpncpy: New file.
63951         * modules/unistr/u32-stpncpy: New file.
63952         * lib/unistr/u8-stpncpy.c: New file.
63953         * lib/unistr/u16-stpncpy.c: New file.
63954         * lib/unistr/u32-stpncpy.c: New file.
63955         * lib/unistr/u-stpncpy.h: New file.
63956
63957         * modules/unistr/u8-strcat: New file.
63958         * modules/unistr/u16-strcat: New file.
63959         * modules/unistr/u32-strcat: New file.
63960         * lib/unistr/u8-strcat.c: New file.
63961         * lib/unistr/u16-strcat.c: New file.
63962         * lib/unistr/u32-strcat.c: New file.
63963         * lib/unistr/u-strcat.h: New file.
63964
63965         * modules/unistr/u8-strchr: New file.
63966         * modules/unistr/u16-strchr: New file.
63967         * modules/unistr/u32-strchr: New file.
63968         * lib/unistr/u8-strchr.c: New file.
63969         * lib/unistr/u16-strchr.c: New file.
63970         * lib/unistr/u32-strchr.c: New file.
63971
63972         * modules/unistr/u8-strcmp: New file.
63973         * modules/unistr/u16-strcmp: New file.
63974         * modules/unistr/u32-strcmp: New file.
63975         * lib/unistr/u8-strcmp.c: New file.
63976         * lib/unistr/u16-strcmp.c: New file.
63977         * lib/unistr/u32-strcmp.c: New file.
63978
63979         * modules/unistr/u8-strcpy: New file.
63980         * modules/unistr/u16-strcpy: New file.
63981         * modules/unistr/u32-strcpy: New file.
63982         * lib/unistr/u8-strcpy.c: New file.
63983         * lib/unistr/u16-strcpy.c: New file.
63984         * lib/unistr/u32-strcpy.c: New file.
63985         * lib/unistr/u-strcpy.h: New file.
63986
63987         * modules/unistr/u8-strcspn: New file.
63988         * modules/unistr/u16-strcspn: New file.
63989         * modules/unistr/u32-strcspn: New file.
63990         * lib/unistr/u8-strcspn.c: New file.
63991         * lib/unistr/u16-strcspn.c: New file.
63992         * lib/unistr/u32-strcspn.c: New file.
63993         * lib/unistr/u-strcspn.h: New file.
63994
63995         * modules/unistr/u8-strdup: New file.
63996         * modules/unistr/u16-strdup: New file.
63997         * modules/unistr/u32-strdup: New file.
63998         * lib/unistr/u8-strdup.c: New file.
63999         * lib/unistr/u16-strdup.c: New file.
64000         * lib/unistr/u32-strdup.c: New file.
64001         * lib/unistr/u-strdup.h: New file.
64002
64003         * modules/unistr/u8-strlen: New file.
64004         * modules/unistr/u16-strlen: New file.
64005         * modules/unistr/u32-strlen: New file.
64006         * lib/unistr/u8-strlen.c: New file.
64007         * lib/unistr/u16-strlen.c: New file.
64008         * lib/unistr/u32-strlen.c: New file.
64009         * lib/unistr/u-strlen.h: New file.
64010
64011         * modules/unistr/u8-strmblen: New file.
64012         * modules/unistr/u16-strmblen: New file.
64013         * modules/unistr/u32-strmblen: New file.
64014         * lib/unistr/u8-strmblen.c: New file.
64015         * lib/unistr/u16-strmblen.c: New file.
64016         * lib/unistr/u32-strmblen.c: New file.
64017
64018         * modules/unistr/u8-strmbtouc: New file.
64019         * modules/unistr/u16-strmbtouc: New file.
64020         * modules/unistr/u32-strmbtouc: New file.
64021         * lib/unistr/u8-strmbtouc.c: New file.
64022         * lib/unistr/u16-strmbtouc.c: New file.
64023         * lib/unistr/u32-strmbtouc.c: New file.
64024
64025         * modules/unistr/u8-strncat: New file.
64026         * modules/unistr/u16-strncat: New file.
64027         * modules/unistr/u32-strncat: New file.
64028         * lib/unistr/u8-strncat.c: New file.
64029         * lib/unistr/u16-strncat.c: New file.
64030         * lib/unistr/u32-strncat.c: New file.
64031         * lib/unistr/u-strncat.h: New file.
64032
64033         * modules/unistr/u8-strncmp: New file.
64034         * modules/unistr/u16-strncmp: New file.
64035         * modules/unistr/u32-strncmp: New file.
64036         * lib/unistr/u8-strncmp.c: New file.
64037         * lib/unistr/u16-strncmp.c: New file.
64038         * lib/unistr/u32-strncmp.c: New file.
64039
64040         * modules/unistr/u8-strncpy: New file.
64041         * modules/unistr/u16-strncpy: New file.
64042         * modules/unistr/u32-strncpy: New file.
64043         * lib/unistr/u8-strncpy.c: New file.
64044         * lib/unistr/u16-strncpy.c: New file.
64045         * lib/unistr/u32-strncpy.c: New file.
64046         * lib/unistr/u-strncpy.h: New file.
64047
64048         * modules/unistr/u8-strnlen: New file.
64049         * modules/unistr/u16-strnlen: New file.
64050         * modules/unistr/u32-strnlen: New file.
64051         * lib/unistr/u8-strnlen.c: New file.
64052         * lib/unistr/u16-strnlen.c: New file.
64053         * lib/unistr/u32-strnlen.c: New file.
64054         * lib/unistr/u-strnlen.h: New file.
64055
64056         * modules/unistr/u8-strpbrk: New file.
64057         * modules/unistr/u16-strpbrk: New file.
64058         * modules/unistr/u32-strpbrk: New file.
64059         * lib/unistr/u8-strpbrk.c: New file.
64060         * lib/unistr/u16-strpbrk.c: New file.
64061         * lib/unistr/u32-strpbrk.c: New file.
64062         * lib/unistr/u-strpbrk.h: New file.
64063
64064         * modules/unistr/u8-strrchr: New file.
64065         * modules/unistr/u16-strrchr: New file.
64066         * modules/unistr/u32-strrchr: New file.
64067         * lib/unistr/u8-strrchr.c: New file.
64068         * lib/unistr/u16-strrchr.c: New file.
64069         * lib/unistr/u32-strrchr.c: New file.
64070
64071         * modules/unistr/u8-strspn: New file.
64072         * modules/unistr/u16-strspn: New file.
64073         * modules/unistr/u32-strspn: New file.
64074         * lib/unistr/u8-strspn.c: New file.
64075         * lib/unistr/u16-strspn.c: New file.
64076         * lib/unistr/u32-strspn.c: New file.
64077         * lib/unistr/u-strspn.h: New file.
64078
64079         * modules/unistr/u8-strstr: New file.
64080         * modules/unistr/u16-strstr: New file.
64081         * modules/unistr/u32-strstr: New file.
64082         * lib/unistr/u8-strstr.c: New file.
64083         * lib/unistr/u16-strstr.c: New file.
64084         * lib/unistr/u32-strstr.c: New file.
64085         * lib/unistr/u-strstr.h: New file.
64086
64087         * modules/unistr/u8-strtok: New file.
64088         * modules/unistr/u16-strtok: New file.
64089         * modules/unistr/u32-strtok: New file.
64090         * lib/unistr/u8-strtok.c: New file.
64091         * lib/unistr/u16-strtok.c: New file.
64092         * lib/unistr/u32-strtok.c: New file.
64093         * lib/unistr/u-strtok.h: New file.
64094
64095         * modules/unistr/u8-uctomb: New file.
64096         * modules/unistr/u16-uctomb: New file.
64097         * modules/unistr/u32-uctomb: New file.
64098         * lib/unistr/u8-uctomb.c: New file.
64099         * lib/unistr/u16-uctomb.c: New file.
64100         * lib/unistr/u32-uctomb.c: New file.
64101
64102         * MODULES.html.sh (Unicode string functions): Add the new modules.
64103
64104 2007-01-08  Bruno Haible  <bruno@clisp.org>
64105
64106         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64107         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64108         subdirectories.
64109
64110 2007-01-08  Karl Berry  <karl@gnu.org>
64111
64112         * doc/error.texi: mention that main() fns must set program_name
64113         when progname is used.
64114
64115 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64118         WCTYPE_H is empty, for the benefit of builds from non-distclean
64119         directories.  Problem reported by Eric Blake in
64120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64121
64122 2007-01-08  Bruno Haible  <bruno@clisp.org>
64123
64124         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64125         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64126         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64127         PROVIDE_CANONICALIZE_FILENAME_MODE.
64128         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64129
64130 2007-01-08  Bruno Haible  <bruno@clisp.org>
64131
64132         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64133         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64134         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64135         * lib/fts.c: Likewise.
64136         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64137
64138 2006-12-25  Bruno Haible  <bruno@clisp.org>
64139
64140         * modules/utf8-ucs4-safe: New file.
64141         * lib/utf8-ucs4-safe.h: New file.
64142         * lib/unistr/utf8-ucs4-safe.c: New file.
64143
64144         * modules/utf16-ucs4-safe: New file.
64145         * lib/utf16-ucs4-safe.h: New file.
64146         * lib/unistr/utf16-ucs4-safe.c: New file.
64147
64148         * MODULES.html.sh (Unicode string functions): Add the new modules.
64149
64150 2007-01-08  Bruno Haible  <bruno@clisp.org>
64151
64152         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64153         (Depends-on): Add unitypes.
64154         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64155         (u8_mbtouc_aux): Move out to separate file.
64156         (u8_mbtouc): Use ucs4_t, uint8_t types.
64157         * lib/unistr/utf8-ucs4.c: New file.
64158
64159         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64160         (Depends-on): Add unitypes.
64161         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64162         (u16_mbtouc_aux): Move out to separate file.
64163         (u16_mbtouc): Use ucs4_t, uint16_t types.
64164         * lib/unistr/utf16-ucs4.c: New file.
64165
64166         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64167         (Depends-on): Add unitypes.
64168         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64169         (u8_uctomb_aux): Move out to separate file.
64170         (u8_uctomb): Use ucs4_t, uint8_t types.
64171         * lib/unistr/ucs4-utf8.c: New file.
64172
64173         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64174         (Depends-on): Add unitypes.
64175         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64176         (u16_uctomb_aux): Move out to separate file.
64177         (u16_uctomb): Use ucs4_t, uint16_t types.
64178         * lib/unistr/ucs4-utf16.c: New file.
64179
64180 2006-12-25  Bruno Haible  <bruno@clisp.org>
64181
64182         * modules/unitypes: New file.
64183         * lib/unitypes.h: New file.
64184         * MODULES.html.sh (func_all_modules): New section "Unicode string
64185         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64186         this section. Add unitypes.
64187
64188 2007-01-08  Bruno Haible  <bruno@clisp.org>
64189
64190         Avoid variable names that conflict with those from libtool.
64191         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64192         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64193         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64194         library_names_spec to acl_library_names_spec, hardcode_* to
64195         acl_hardcode_*.
64196         Reported by Ralf Wildenhues.
64197
64198 2007-01-08  Bruno Haible  <bruno@clisp.org>
64199
64200         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64201         definition.
64202         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64203         definition.
64204         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64205         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64206         definition.
64207         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64208         definition.
64209         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64210         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64211         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64212         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64213         definition.
64214         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64215         definition.
64216         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64217         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64218         GC_USE_<algorithm>.
64219         * lib/gc-libgcrypt.c: Likewise.
64220         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64221         * modules/gc-arctwo (configure.ac): Likewise.
64222         * modules/gc-des (configure.ac): Likewise.
64223         * modules/gc-hmac-md5 (configure.ac): Likewise.
64224         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64225         * modules/gc-md2 (configure.ac): Likewise.
64226         * modules/gc-md4 (configure.ac): Likewise.
64227         * modules/gc-md5 (configure.ac): Likewise.
64228         * modules/gc-random (configure.ac): Likewise.
64229         * modules/gc-rijndael (configure.ac): Likewise.
64230         * modules/gc-sha1 (configure.ac): Likewise.
64231
64232 2007-01-08  Bruno Haible  <bruno@clisp.org>
64233
64234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64235         macro definition.
64236         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64237         definition.
64238         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64239         definition.
64240         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64241         * modules/fcntl-safer (configure.ac): Likewise.
64242         * modules/fopen-safer (configure.ac): Likewise.
64243         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64244         GNULIB_FWRITEERROR macro definition.
64245
64246 2007-01-08  Bruno Haible  <bruno@clisp.org>
64247
64248         * m4/gnulib-common.m4: New file.
64249         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64250         (func_get_filelist): Add m4/gnulib-common.m4.
64251
64252 2007-01-08  Bruno Haible  <bruno@clisp.org>
64253
64254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64255         command.
64256
64257 2007-01-08  Jim Meyering  <jim@meyering.net>
64258
64259         Use a more robust test for a "can't happen" condition.
64260         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64261         narrowed the st_size value.  Presuming the "can't happen" condition
64262         is true, that narrowing could conceivably convert an invalid st_size
64263         value into a valid one.  Instead, use a change based on Matthew
64264         Woehlke's original patch.
64265
64266         Slight readability improvement: use an assert-like macro
64267         in place of literal "abort ()" uses.
64268         * lib/fts.c (fts_assert): Define.
64269         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64270         Use this macro instead of a bare 'abort'.
64271
64272 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64273
64274         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64275         simply work around them.
64276         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64277         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64278         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64279         declaring.
64280         Don't bother to define as macros, since the standard doesn't require it.
64281         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64282         longer worry about IRIX 5.3.
64283         (HAVE_WCTYPE_CTMP_BUG): Remove.
64284
64285 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64286
64287         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64288         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64289         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64290         Problems reported by Georg Schwarz for IRIX 5.3.
64291
64292         * gnulib-tool (autoconf_minversion): Take the maximum version number
64293         found, not the minimum.  Problem reported by James Youngman.
64294
64295 2007-01-03  Karl Berry  <karl@gnu.org>
64296
64297         * doc/error.texi: new file, explaining interaction with progname.
64298         * doc/gnulib.texi: include it.  Update copyright.
64299
64300 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64301
64302         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64303         AC_CANONICAL_HOST, to improve autobuild outputs.
64304
64305 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64306             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64307
64308         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64309         sockets, server sockets, and other file descriptors.  Count errors
64310         to compute the return value.  Reorder the code a bit to be easier
64311         to follow.  Don't set event bits that were not requested (except
64312         POLLERR and POLLHUP).
64313
64314 2007-01-01  Bruno Haible  <bruno@clisp.org>
64315
64316         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64317
64318 2007-01-03  Jim Meyering  <jim@meyering.net>
64319
64320         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64321
64322 2007-01-02  Bruno Haible  <bruno@clisp.org>
64323
64324         * modules/settime (Include): Require timespec.h.
64325         * modules/nanosleep (Include): Likewise.
64326
64327 2007-01-01  Bruno Haible  <bruno@clisp.org>
64328
64329         * gnulib-tool (func_emit_copyright_notice): Bump year.
64330         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64331
64332 2007-01-01  Bruno Haible  <bruno@clisp.org>
64333
64334         Improve support for OpenBSD.
64335         * build-aux/config.rpath (libname_spec): Export.
64336         (library_names_spec): New variable. Export.
64337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64338         library_names_spec from the config.rpath output. Locate shared library
64339         through the name pattern in library_names_spec.
64340
64341 2007-01-01  Eric Blake  <ebb9@byu.net>
64342
64343         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64344
64345 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64346
64347         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64348         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64349         assume the C locale, and avoid an "eval" that could cause trouble.
64350         Problem with SORT reported by Bob Proulx.
64351
64352         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64353         Define.  Trivial patch from Henning Nielsen Lund, originally
64354         sent to bug-grep@gnu.org today.
64355
64356 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64359         struct stat.  Problem reported by Henning Nielsen Lund.
64360         * lib/acl.c: Include acl.h first, to check interface.  Don't
64361         bother to include sys/types.h and sys/stat.h again.
64362
64363 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64364
64365         Import the following change from libc; problem reported by
64366         Sven Verdoolaege.
64367
64368         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64369
64370         [BZ #1373]
64371         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64372
64373 2006-12-28  Jim Meyering  <jim@meyering.net>
64374
64375         * build-aux/announce-gen: Do not assume that the package
64376         builds any of tar.gz, tar.bz2, and .xdelta files.
64377         Suggestion from Simon Josefsson.
64378
64379 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64380
64381         * modules/announce-gen: New file.
64382
64383 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64384
64385         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64386         handles its gotchas now.
64387         * lib/mbswidth.c: Likewise.
64388         * lib/wcwidth.h: Likewise.
64389         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64390         and iswcntrl; the wctype module does this stuff now.
64391         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64393         * modules/mbchar (Depends-on): Add wctype.
64394         * modules/mbswidth (Depends-on): Likewise.
64395         * modules/wcwidth (Depends-on): Likewise.
64396
64397 2006-12-27  Eric Blake  <ebb9@byu.net>
64398
64399         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64400         module uses more than what <wctype.h> is required to provide.
64401
64402 2006-12-26  Eric Blake  <ebb9@byu.net>
64403
64404         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64405
64406 2006-12-26  Eric Blake  <ebb9@byu.net>
64407
64408         * modules/absolute-header: New module.
64409         * modules/fcntl (Depends-on): Depend on it.
64410         * modules/inttypes (Depends-on): Likewise.
64411         * modules/stdint (Depends-on): Likewise.
64412         * modules/sys_stat (Depends-on): Likewise.
64413         * modules/wctype (Depends-on): Likewise.
64414         * MODULES.html.sh (Support for building libraries and
64415         executables): Document it.
64416
64417 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64418
64419         * gnulib-tool (SED): Remove, undoing previous change.
64420         The problem was that it broke coreutils on Solaris, because
64421         "sed --posix" leaked into a makefile.
64422         (sed): New alias, if 'alias' and GNU sed.
64423
64424 2006-12-24  Jim Meyering  <jim@meyering.net>
64425
64426         Work around an fchownat bug in glibc-2.4:
64427         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64428         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64429         in spite of the -P option.
64430         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64431         New macros.
64432         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64433         * modules/openat (Files): Add lib/fchownat.c.
64434         * lib/openat.c (fchownat): Don't define here.  Move to...
64435         * lib/fchownat.c: ...this new file.
64436
64437 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64438
64439         Fix bug reported by Bruno Haible in
64440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64441         where quotearg.c didn't compile on Mac OS X 10.2 because it
64442         lacks <wchar.h> and wint_t.
64443         * lib/wctype_.h (__wctype_wint_t): New type.
64444         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64445         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64446         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64447         Arg is now of type __wctype_wint_t, not wint_t.
64448         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64449         substitute HAVE_WINT_T.
64450         * modules/wctype (Files): Add m4/wint_t.m4.
64451         (wctype.h): Substitute HAVE_WINT_T.
64452
64453 2006-12-23  Bruno Haible  <bruno@clisp.org>
64454
64455         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64456
64457 2006-12-23  Bruno Haible  <bruno@clisp.org>
64458
64459         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64460         S_ISLNK.
64461         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64462         mingw.
64463
64464 2006-12-22  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/copy-file.c: Include acl.h.
64467         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64468         Close the file descriptors only after being done with copy_acl.
64469         * modules/copy-file (Depends-on): Add acl.
64470
64471 2006-12-22  Bruno Haible  <bruno@clisp.org>
64472
64473         * gnulib-tool (SED): New variable.
64474         Use $SED instead of sed everywhere.
64475
64476 2006-12-22  Bruno Haible  <bruno@clisp.org>
64477
64478         * modules/no-c++: New file.
64479         * m4/no-c++.m4: New file.
64480         * MODULES.html.sh (Support for building libraries and executables):
64481         Add no-c++.
64482
64483 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64484
64485         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64486         Include <limits.h>, and use its INT_MAX to rewrite the
64487         j loop so that it does not overflow 'int'.  Problem reported by
64488         Ralf Wildenhues in
64489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64490         Play it safe by shifting left by 1 rather than multiplying by 2,
64491         as GCC is less likely to optimize this away when the value
64492         is signed (when it assumes overflow leads to undefined behavior).
64493         Also, don't assume time_t uses two's complement.
64494
64495 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64496
64497         * MODULES.html.sh: New module wctype.
64498         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64499         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64500         <wctype.h>, since the new wctype module should fix this.
64501         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64502         the wctype module should arrange for it.
64503         * lib/regex_internal.h: Likewise.
64504         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64505         since the wctype module should handle this now.
64506         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64507         * modules/fnmatch (Depends-on): Add wctype.
64508         * modules/quotearg (Depends-on): Likewise.
64509         * modules/regex (Depends-on): Likewise.
64510
64511 2006-12-19  Bruno Haible  <bruno@clisp.org>
64512
64513         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64514         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64515
64516 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64517
64518         * modules/savewd (Depends-on): Fix dependency on fcntl.
64519
64520 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64521
64522         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64523         conforms to C99, rather than relying on the user's environment
64524         setting of STDINT_H.
64525
64526 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64527         and Eric Blake  <ebb9@byu.net>
64528
64529         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64530         This is more consistent with the other defines here.
64531         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64532         Port to z/OS.  Problem reported by Paul Gilmartin.
64533         Change local vars to use gl_ prefix rather than ac_.
64534         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64535         with other defines.
64536         * modules/double-slash-root: New module.
64537         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64538         (Depends-on): Add double-slash-root.
64539         * MODULES.html.sh (File system functions): Mention new module.
64540
64541 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64542
64543         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64544         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64545         This is for the benefit of gzip, which doesn't do i18n.
64546
64547 2006-12-12  Jim Meyering  <jim@meyering.net>
64548
64549         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64550         Reported by Andreas Schwab <schwab@suse.de>.
64551
64552 2006-12-12  Bruno Haible  <bruno@clisp.org>
64553
64554         Merge these changes.
64555         2006-09-05  Bruno Haible  <bruno@clisp.org>
64556         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64557         iconv_alloc succeeded.
64558         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64559         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64560         test for " && dest " at the end - dest is always != NULL there. Call
64561         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64562         with 2xNULL arguments, also to flush the state storage. Handle the
64563         IRIX iconv behaviour. Realloc the final result, to throw away unused
64564         memory.
64565
64566 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64567
64568         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64569         and fchmodat unconditionally, since glibc 2.4 has them.
64570         Problem reported by Arkadiusz Miskiewicz.
64571
64572 2006-12-10  Bruno Haible  <bruno@clisp.org>
64573
64574         * gnulib-tool (func_import): Show the include files only for those
64575         modules that are copied and specified.
64576         Reported by Karl Berry.
64577
64578 2006-12-08  Jim Meyering  <jim@meyering.net>
64579
64580         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64581         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64582
64583         * build-aux/announce-gen: Add two new options, both optional:
64584         --bootstrap-tools=TOOL_LIST
64585               a comma-separated list of tools, e.g.,
64586               autoconf,automake,bison,gnulib
64587         --gnulib-snapshot-date=DATE
64588               if gnulib is in the bootstrap tool list,
64589               then report this as the snapshot date.
64590               If not specified, use the current date/time.
64591               If you specify a date here, be sure it's UTC.
64592
64593 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64594
64595         * tests/test-argp-2.sh: Fix test to match actual output.
64596         (func_compare): Fix sed script to be portable.
64597
64598 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64601         workaround for this case.  It is not autoconfigured now; offhand
64602         it's hard to see how to autoconfigure it.
64603
64604 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64607         a directory that is about to be chowned.  Such a directory's
64608         initial file permissions should permit the owner only and this
64609         should not be changed until after the chown, since the group and
64610         other bits would be incorrect if they granted permission before
64611         the chown.
64612
64613         Fix porting problem for iswctype reported by Georg Schwarz in:
64614         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64615         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64616         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64619
64620 2006-12-03  Jim Meyering  <jim@meyering.net>
64621
64622         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64623         p->fts_statp may not yet be defined.
64624         (fts_read): Instead, set it in the caller, once p->fts_statp is
64625         sure to be defined, and corresponds to a top-level directory.
64626         This bug made du -x fail.  Here's the coreutils test case:
64627         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64628         Reported by Mike Frysinger.
64629
64630 2006-12-01  Jim Meyering  <jim@meyering.net>
64631
64632         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64633         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64634         Reported by Simon Josefsson.
64635
64636 2006-11-30  Jim Meyering  <jim@meyering.net>
64637
64638         * m4/warning.m4: Use the all-permissive copyright notice
64639         recommended by RMS (rather than LGPL).
64640         * m4/vararrays.m4: Likewise.
64641         * m4/flexmember.m4: Likewise.
64642
64643 2006-11-29  Bruno Haible  <bruno@clisp.org>
64644
64645         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64646         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64647         using +=.
64648         Reported by Simon Josefsson <simon@josefsson.org>.
64649
64650 2006-11-28  James Youngman <jay@gnu.org>
64651
64652         * README: Advise users that they might find the bug-gnulib@gnu.org
64653         and autotools-announce@gnu.org mailing lists useful.
64654
64655 2006-11-28  Bruno Haible  <bruno@clisp.org>
64656
64657         * m4/ptrdiff_max.m4: Remove file.
64658
64659 2006-11-21  Bruno Haible  <bruno@clisp.org>
64660
64661         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64662         _AC_COMPUTE_INT.
64663         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64664         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64665         _AC_COMPUTE_INT.
64666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64667         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64668         _AC_COMPUTE_INT.
64669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64670
64671 2006-11-28  Jim Meyering  <jim@meyering.net>
64672
64673         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64674         warning from "gcc -Wshadow" about shadowing the builtin.
64675
64676 2006-11-27  Bruno Haible  <bruno@clisp.org>
64677
64678         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64679         _AC_COMPUTE_INT.
64680         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64681
64682 2006-11-27  Bruno Haible  <bruno@clisp.org>
64683             Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64686
64687 2006-11-26  Bruno Haible  <bruno@clisp.org>
64688
64689         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64690         noinst_LTLIBRARIES.
64691
64692 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64693             Bruno Haible  <bruno@clisp.org>
64694
64695         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64696         if compiling with "gcc -ansi".
64697
64698 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64699
64700         Fix some incompatibilities with gcc -ansi -pedantic.
64701         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64702         if compiling pedantically with GCC, unless it's C99 or later.
64703         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64704         it mishandles gcc -ansi -pedantic as well.
64705         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64706         if gcc -pedantic.
64707         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64708         initializers for struct if -pedantic, unless it's C99 or later.
64709
64710 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64711
64712         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64713         Don't close an fd more than once. Identical atimes indicate
64714         success, not failure.
64715
64716 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64717
64718         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64719
64720 2006-11-23  Jim Meyering  <jim@meyering.net>
64721
64722         * build-aux/announce-gen: New file.  From coreutils.
64723
64724 2006-11-22  Jim Meyering  <jim@meyering.net>
64725
64726         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64727         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64728         (fts_read): Use a temporary to narrow the overused st_size member
64729         before using it in a switch statement.  Reported by Matthew Woehlke.
64730
64731         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64732         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64733
64734 2006-11-20  Bruno Haible  <bruno@clisp.org>
64735
64736         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64737         changequote instead of pairs of brackets.
64738         Reported by Andreas Schwab <schwab@suse.de>.
64739
64740 2006-11-21  Jim Meyering  <jim@meyering.net>
64741
64742         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64743         so as to remain compatible with older compilers.
64744         Patch from Michael Deutschmann.
64745
64746 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         * MODULES.html.sh (File system functions): Add openat.
64749
64750         * lib/openat.h (rpl_fstatat): New macro, if
64751         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64752         (fstatat): Define to rpl_fstatat under the same conditions,
64753         unless COMPILING_FSTATAT.
64754         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64755         seems to have the bug.
64756         * lib/fstatat.c: New file.
64757         * modules/openat (Files): Add it.
64758
64759 2006-11-20  Bruno Haible  <bruno@clisp.org>
64760
64761         * Makefile: New file.
64762
64763 2006-11-20  Jim Meyering  <jim@meyering.net>
64764
64765         The beginnings of syntax-related checks for gnulib.
64766         * lib/Makefile: New file.
64767         * lib/t-idcache: New script.  Ensure that the two halves of
64768         idcache.c stay in sync.
64769
64770         * lib/idcache.c: Adjust comments in user- and group- portions to
64771         be more accurate, and to be consistent with one another.
64772
64773 2006-11-20  Jim Meyering  <jim@meyering.net>
64774
64775         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64776         continue using the flexible array member (thus, this module performs
64777         half as many malloc calls), with the addition that...
64778         (getgroup, getuser): Consistently record a non-match via an empty
64779         "name" string, and map an empty string match to a NULL return value.
64780         * modules/idcache (Depends-on): Re-add flexmember.
64781
64782         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64783         (getuidbyname, getgroup, getgidbyname): Likewise.
64784
64785         Use cleaner syntax: NULL rather than 0.
64786         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64787
64788 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64789
64790         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64791         It mishandled the case where the group was missing.
64792         Problem reported by Greg Schafer.
64793         * modules/idcache: Likewise.
64794
64795 2006-11-18  Jim Meyering  <jim@meyering.net>
64796
64797         * check-module (%exempt_header): Add exception for some
64798         conditionally-included headers.
64799
64800         * modules/i-ring (Depends-on): Add verify.
64801         (License): Change to LGPL.
64802
64803 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64806         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64807         and inttostr.h.  Use snprintf rather than uinttostr, so that
64808         LGPLed code doesn't depend on GPLed.
64809
64810 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64811
64812         * modules/inline (License): Change from GPL to LGPL.
64813
64814 2006-11-17  Jim Meyering  <jim@meyering.net>
64815
64816         * modules/d-type (License): Switch to LGPL.
64817
64818 2006-11-15  Bruno Haible  <bruno@clisp.org>
64819
64820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64821
64822 2006-11-15  Eric Blake  <ebb9@byu.net>
64823
64824         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64825         the module dependency.
64826
64827 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64828             Bruno Haible  <bruno@clisp.org>
64829
64830         * gnulib-tool (func_create_testdir): Add license consistency check.
64831
64832 2006-11-15  Eric Blake  <ebb9@byu.net>
64833
64834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64835         random "(cached)" in configure output.
64836
64837 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64838
64839         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64840         test for conforming inttypes.h is both announced and cached.
64841
64842         * MODULES.html.sh (seen_modules, seen_files): New variables.
64843         (func_module): Rewrite to use a few less gnulib-tool and sed
64844         invocations.  Avoid a couple of quadratic algorithms for ...
64845         (missed_modules, missed_files): ... these, with ...
64846         (func_append, func_tmpdir): ... these new functions, from
64847         gnulib-tool.  Analogously, install traps for cleanup.
64848
64849         * tests/test-gc.c (main): Remove unused variables.
64850         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64851
64852 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         * modules/inttostr (License): Change to LGPL.
64855
64856 2006-11-14  Eric Blake  <ebb9@byu.net>
64857
64858         * modules/tempname (License): Change to LGPL.
64859
64860 2006-11-14  Eric Blake  <ebb9@byu.net>
64861
64862         * doc/functions.texi (Function Portability): *printf functions on
64863         Cygwin now understand all POSIX size specifiers.
64864
64865 2006-11-14  Bruno Haible  <bruno@clisp.org>
64866
64867         * modules/c-ctype (License): Change to LGPL.
64868
64869 2006-11-12  Bruno Haible  <bruno@clisp.org>
64870
64871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64872         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64873         for GNOME libraries, for which the include files are installed in
64874         subdirectories of $prefix/include.
64875
64876 2006-11-12  Bruno Haible  <bruno@clisp.org>
64877
64878         * m4/lib-link.m4: Require at least autoconf-2.54.
64879         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64880         name to underscores for the --with option.
64881
64882 2006-11-13  Bruno Haible  <bruno@clisp.org>
64883
64884         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64885         the tests directory.
64886         Reported by Ralf Wildenhues.
64887
64888 2006-11-13  Bruno Haible  <bruno@clisp.org>
64889
64890         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64891         (func_emit_initmacro_end): Undo the override here.
64892         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64893         Works around the famous automake error in coreutils.
64894
64895 2006-11-13  Eric Blake  <ebb9@byu.net>
64896
64897         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64898         element, not its node.
64899
64900 2006-11-12  Bruno Haible  <bruno@clisp.org>
64901
64902         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64903         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64904
64905 2006-11-12  Bruno Haible  <bruno@clisp.org>
64906
64907         * gnulib-tool: New option --local-symlink.
64908         (func_usage): Document it.
64909         (lsymbolic): New variable.
64910         (func_import, func_create_testdir): If --symlink was not specified,
64911         test whether --local-symlink was specified and the file comes from
64912         the local_gnulib_dir.
64913
64914 2006-11-12  Bruno Haible  <bruno@clisp.org>
64915
64916         * gnulib-tool (func_ln): New function.
64917         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64918
64919 2006-11-12  Bruno Haible  <bruno@clisp.org>
64920
64921         Finish support for source files in subdirectories.
64922         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64923         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64924         AUTOMAKE_OPTIONS.
64925         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64926
64927 2006-11-12  Bruno Haible  <bruno@clisp.org>
64928
64929         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64930         EXTRA_lib_SOURCES augmentation.
64931         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64932
64933 2006-11-12  Jim Meyering  <jim@meyering.net>
64934
64935         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64936         file descriptors.  This also averts a failure on systems with
64937         native openat support when a traversed directory lacks "x" access.
64938         * lib/fts_.h: Include "i-ring.h"
64939         (struct FTS) [fts_fd_ring]: New member.
64940         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64941         (FCHDIR): Add parentheses.
64942         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64943         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64944         When descending, rather than simply closing the previous
64945         fts_cwd_fd value, push that file descriptor onto the ring.
64946         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64947         (fts_open): Initialize the new fd_ring member.
64948         (fts_close): Clear the ring.
64949         (fts_safe_changedir): When possible, use our new fd_ring to skip
64950         the diropen and fstat and dev/ino comparison that would normally
64951         accompany a virtual `chdir ("..")'.
64952
64953         * modules/fts (Depends-on): Add i-ring.
64954         * modules/i-ring: New module.
64955         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64956         * m4/i-ring.m4: New file.
64957
64958 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64959
64960         * gnulib-tool (func_create_testdir): Fix replacement of
64961         `build-aux' in configure.ac.  Run autotools in gltests
64962         subdirectory.
64963         (func_create_testdir, func_create_megatestdir, test): There is
64964         no need for '--force' in most autotool invocations in a new
64965         tree.  Actually fail the whole test if any of the tools, or the
64966         configure or make stages fail.
64967
64968         Sync from Automake.
64969         * build-aux/gnupload: Revert last change.  Add pointer to upload
64970         instructions of the GNU Maintenance Instructions.
64971         Suggestion by Karl Berry.
64972
64973 2006-11-10  Jim Meyering  <jim@meyering.net>
64974
64975         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64976
64977 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64978
64979         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64980         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64981         (bind_textdomain_codeset) [! ENABLE_NLS]:
64982         Evaluate all the arguments.  That way, callers get compatible behavior
64983         if the arguments have side effects.  Also, it avoids some GCC
64984         diagnostics in some cases; Joel E. Denny reported problems when Bison
64985         was configured with --enable-gcc-warnigs.
64986
64987 2006-11-10  Jim Meyering  <jim@meyering.net>
64988
64989         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64990         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64991         account.
64992
64993 2006-11-10  Jim Meyering  <jim@meyering.net>
64994
64995         * modules/inline: New file/module.
64996         * modules/xalloc (Files): Remove m4/inline.m4.
64997         (Depends-on): Add inline, instead.
64998         * modules/oset: Likewise.
64999         * modules/list: Likewise.
65000
65001 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65004         Problem reported by Matthew Woehlke.
65005
65006 2006-11-09  Bruno Haible  <bruno@clisp.org>
65007
65008         * lib/tempname.c (gen_tempname): Remove variant that invokes
65009         __gen_tempname.
65010         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65011         __gen_tempname.
65012
65013 2006-11-08  Bruno Haible  <bruno@clisp.org>
65014
65015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65016         to 'yes' instead of 'cross-compiling'.
65017
65018 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         * lib/quotearg.h (quotearg_free): New decl.
65021         * lib/quotearg.c (quotearg_free): New function.
65022         (slot0, nslots, slotvec0, slotvec):
65023         Now file-scope so that quotearg_free can get at them.
65024
65025 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65026
65027         Sync from Automake.
65028         * build-aux/gnupload: Add missing 'gnu' to example URL.
65029         Report by Karl Berry.
65030
65031 2006-11-08  Bruno Haible  <bruno@clisp.org>
65032
65033         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65034         Suggested by Paul Eggert.
65035
65036 2006-11-08  Jim Meyering  <jim@meyering.net>
65037
65038         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65039         It's already included if !_LIBC.
65040         (fts_safe_changedir): Add a comment.
65041
65042 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65043
65044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65045         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65046         Matthew Woehlke.
65047
65048         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65049         definitions up, to avoid colliding with change below.
65050         (static_inline) [HAVE_INLINE]: New macro.
65051         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65052         Provide extern decls when !HAVE_INLINE.  Do not define unless
65053         static_inline is defined, either by us or by xmalloc.c.  Use
65054         static_inline rather than static inline.
65055         (XCALLOC): Optimize sizeof(T) = 1 case.
65056         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65057
65058 2006-11-07  Bruno Haible  <bruno@clisp.org>
65059
65060         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65061         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65062         AC_C_INLINE.
65063         * modules/xalloc (Files): Add m4/inline.m4.
65064
65065 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65066
65067         * README: Fix typo.
65068         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65069         (Miscellanous Notes): ...from this.
65070
65071 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65072
65073         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65074         Mention that offsetof should be used instead of sizeof.
65075         From Bruno Haible.
65076
65077 2006-11-07  Bruno Haible  <bruno@clisp.org>
65078
65079         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65080
65081 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65082
65083         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65084         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65085         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65086         (gl_tree_add_before, gl_tree_add_after):
65087         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65088         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65089         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65090         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65091         (gl_linked_add_after, gl_linked_add_at): Likewise.
65092         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65093         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65094         (gl_tree_add_before, gl_tree_add_after): Likewise.
65095         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65096         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65097         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65098
65099 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65100
65101         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65102
65103 2006-11-06  Bruno Haible  <bruno@clisp.org>
65104
65105         * m4/inline.m4: New file.
65106         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65107         * modules/list (Files): Add m4/inline.m4.
65108         * modules/oset (Files): Likewise.
65109
65110 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * lib/idcache.c: Include <stddef.h>, for offsetof.
65113         (struct userid.name): Change from char * to a flexible array member.
65114         All uses changed.
65115         * modules/idcache (Depends-on): Add flexmember.
65116
65117         * MODULES.html.sh (Core language properties): New module flexmember.
65118         * modules/flexmember, m4/flexmember.m4: New files.
65119
65120         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65121         inline functions that are identical with the old xnmalloc_inline,
65122         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65123         that we can avoid some unnecessary integer multiplications and
65124         divisions in the common case where the element size is known at
65125         compile time.
65126         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65127         needed.
65128         (xnboundedmalloc): Remove.
65129         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65130         arguments, for consistency with rest of this header.
65131         (xcharalloc): Rewrite using XNMALLOC.
65132         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65133         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65134         versions have been moved to lib/xalloc.h and renamed to be the
65135         non-*_inline versions.
65136         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65137         and xnrealloc functions, since those functions are now inline and
65138         now call us.
65139         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65140         renaming described above.
65141         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65142         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65143         captures the dependency in AC_C_INLINE.
65144
65145         New module canonicalize-lgpl, proposed by Charles Wilson in
65146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65147         with a few small changes afterwards.
65148         * MODULES.html.sh (File system functions): New module
65149         canonicalize-lgpl.
65150         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65151         and canonicalize_file_name.
65152         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65153         * modules/canonicalize-lgpl: New files.
65154
65155 2006-11-05  Bruno Haible  <bruno@clisp.org>
65156
65157         * gnulib-tool (func_import, func_create_testdir): Create directories
65158         also for files in subdirectories of lib/.
65159
65160 2006-11-05  Bruno Haible  <bruno@clisp.org>
65161
65162         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65163         ANSI C compliant.
65164
65165 2006-11-03  Bruno Haible  <bruno@clisp.org>
65166
65167         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65169         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65170         (xnboundedmalloc): New inline function.
65171         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65172         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65173         xmalloc.
65174         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65175         xmalloc.
65176         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65177         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65178         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65179         xmalloc.
65180         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65181         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65182         xmalloc.
65183         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65185         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65186         xmalloc.
65187         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65188         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65189         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65190         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65191         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65192         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65193         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65194
65195 2006-11-03  Bruno Haible  <bruno@clisp.org>
65196
65197         * lib/c-ctype.h [C++]: Define functions without name mangling.
65198         * lib/fwriteerror.h [C++]: Likewise.
65199         * lib/gcd.h [C++]: Likewise.
65200         * lib/linebreak.h [C++]: Likewise.
65201
65202 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65203
65204         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65205         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65206         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65208         Check for functions and headers just once.
65209         Check for declaration of canonicalize_file_name.
65210         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65211
65212 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65213
65214         * gnulib-tool (func_import): Fix typo in actioncmd.
65215
65216 2006-11-02  Bruno Haible  <bruno@clisp.org>
65217
65218         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65219         newline sequence in the Makefile.am snippet as a space, like "make"
65220         does.
65221         Reported by Roger Persson <perrog@gmail.com>.
65222
65223 2006-11-01  Bruno Haible  <bruno@clisp.org>
65224
65225         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65226         already declared in <string.h>.
65227         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65228
65229 2006-11-01  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65232         * lib/strcase.h: Include <string.h>.
65233         (strcasecmp): Define to rpl_strcasecmp here.
65234
65235 2006-11-01  Bruno Haible  <bruno@clisp.org>
65236
65237         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65238
65239 2006-11-01  Eric Blake  <ebb9@byu.net>
65240
65241         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65242
65243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65244
65245 2006-10-29  Bruno Haible  <bruno@clisp.org>
65246
65247         Make it compile in C++ mode.
65248         * lib/full-write.c (full_rw): Add a cast.
65249
65250 2006-11-01  Bruno Haible  <bruno@clisp.org>
65251
65252         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65253         be POSIX compliant.
65254         Reported by Roger Persson <perrog@gmail.com>.
65255
65256 2006-11-01  Eric Blake  <ebb9@byu.net>
65257
65258         * lib/getopt_.h: Fix comments.
65259
65260 2006-10-31  Eric Blake  <ebb9@byu.net>
65261
65262         * modules/tmpdir (Depends-on): Add sys_stat.
65263         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65264         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65265         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65266         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65267         tempname.
65268
65269 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65270
65271         Avoid some C++ diagnostics reported by Bruno Haible.
65272         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65273         xmalloc.
65274         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65275         (struct slotvec): Move to top level.
65276         (quotearg_n_options): Rewrite to avoid xmalloc.
65277         * lib/xalloc.h (xcharalloc): New function.
65278         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65279         [defined __cplusplus]: Add function template that provides result
65280         type propagation.  This part of the change is from Bruno Haible.
65281
65282 2006-10-29  Bruno Haible  <bruno@clisp.org>
65283
65284         Make it compile in C++ mode.
65285         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65286         * lib/strnlen1.c (strnlen1): Cast memchr result.
65287         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65288         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65289         (create_temp_dir): Rename local variable 'template'.
65290         (compile_csharp_using_sscli): Add cast.
65291         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65292         * lib/findprog.c (find_in_path): Likewise.
65293         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65294         * lib/wait-process.c (register_slave_subprocess): Likewise.
65295
65296 2006-10-22  Bruno Haible  <bruno@clisp.org>
65297
65298         * modules/tsearch: New file.
65299         * lib/tsearch.h: New file.
65300         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65301         * m4/tsearch.m4: New file.
65302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65303
65304 2006-10-29  Eric Blake  <ebb9@byu.net>
65305
65306         * lib/arcfour.c: Assume config.h.
65307         * lib/arctwo.c: Likewise.
65308         * lib/base64.c: Likewise.
65309         * lib/check-version.c: Likewise.
65310         * lib/crc.c: Likewise.
65311         * lib/des.c: Likewise.
65312         * lib/gc-gnulib.c: Likewise.
65313         * lib/gc-libgcrypt.c: Likewise.
65314         * lib/gc-pbkdf2-sha1.c: Likewise.
65315         * lib/getaddrinfo.c: Likewise.
65316         * lib/getdelim.c: Likewise.
65317         * lib/getline.c: Likewise.
65318         * lib/hmac-md5.c: Likewise.
65319         * lib/hmac-sha1.c: Likewise.
65320         * lib/iconvme.c: Likewise.
65321         * lib/md2.c: Likewise.
65322         * lib/md4.c: Likewise.
65323         * lib/memxor.c: Likewise.
65324         * lib/read-file.c: Likewise.
65325         * lib/readline.c: Likewise.
65326         * lib/rijndael-alg-fst.c: Likewise.
65327         * lib/rijndael-api-fst.c: Likewise.
65328         * lib/xgetdomainname.c: Likewise.
65329
65330 2006-10-28  Eric Blake  <ebb9@byu.net>
65331
65332         * lib/xstrndup.c: Assume config.h.
65333
65334 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65335
65336         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65337         stat-macros.h is now for our own macros, whereas stat_h is for
65338         macros in the <sys/stat.h> name space.
65339         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65340         (STAT_MACROS_H): Remove.
65341         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65342         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65343         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65344         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65345         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65346         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65347         Move these macros to ...
65348         * lib/stat_.h: here.  Don't include stat-macros.h.
65349         * lib/canonicalize.c: Don't include stat-macros.h.
65350         * lib/chown.c: Likewise.
65351         * lib/euidaccess.c: Likewise.
65352         * lib/file-type.c: Likewise.
65353         * lib/filemode.c: Likewise.
65354         * lib/glob.c: Likewise.
65355         * lib/isapipe.c: Likewise.
65356         * lib/lchown.c: Likewise.
65357         * lib/lstat.c: Likewise.
65358         * lib/mkdir-p.c: Likewise.
65359         * lib/rmdir.c: Likewise.
65360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65361         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65362         unless mkdir isn't declared, to speed up 'configure'.
65363         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65364         would define all the S_* symbols.
65365         * modules/canonicalize (Depends-on):
65366         Depend on sys_stat, not stat-macros.
65367         * modules/chown: Likewise.
65368         * modules/euidaccess: Likewise.
65369         * modules/filemode: Likewise.
65370         * modules/file-type: Likewise.
65371         * modules/glob: Likewise.
65372         * modules/isapipe: Likewise.
65373         * modules/lchown: Likewise.
65374         * modules/lstat: Likewise.
65375         * modules/mkancesdirs: Likewise.
65376         * modules/rmdir: Likewise.
65377         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65378         * modules/modechange: Likewise.
65379         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65380         (configure.ac): Remove gl_STAT_MACROS.
65381         * modules/sys_stat (Depends-on): Remove stat-macros.
65382
65383 2006-10-27  Bruno Haible  <bruno@clisp.org>
65384
65385         * m4/signed.m4: Remove file.
65386         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65387         invocation.
65388         * modules/vasnprintf (Files): Remove m4/signed.m4.
65389
65390 2006-10-27  Bruno Haible  <bruno@clisp.org>
65391
65392         Update to GNU gettext 0.16.
65393         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65394         m4/inttypes-h.m4, m4/signed.m4.
65395         * m4/gettext.m4: Update to GNU gettext 0.16.
65396         * m4/intl.m4: New file, from GNU gettext.
65397         * m4/intldir.m4: New file, from GNU gettext.
65398         * config/srclist.txt: Update
65399
65400 2006-10-27  Eric Blake  <ebb9@byu.net>
65401
65402         * MODULES.html.sh: Document tempname.
65403         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65404         dependencies.
65405         (Files): Move lib/tempname.c...
65406         * modules/tempname: ...to this new module.
65407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65408         (gl_PREREQ_TEMPNAME): Move...
65409         * m4/tempname.m4: ...to this new file.
65410         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65411         * modules/sys_stat (Depends-on): Add stat-macros.
65412         * lib/stat_.h (includes): Pick up stat macros.
65413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65414         if stat macros are broken.
65415         * lib/tempname.c (includes): No need to include "stat-macros.h".
65416         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65417         (direxists, __path_search) [!_LIBC]: Don't compile these in
65418         gnulib; the tmpdir module covers that.
65419         * lib/tempname.h: New file.
65420
65421 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * COPYING: Explain how gnulib-tool converts licence headers.
65424         Almost all wording by Eric Blake.
65425
65426 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * lib/mbchar.h (is_basic_table): Make read-only.
65429         * lib/mbchar.c (is_basic_table): Likewise.
65430         Reported by John Darrington.
65431
65432 2006-10-25  Bruno Haible  <bruno@clisp.org>
65433
65434         * lib/progname.h (set_program_name): Undefine before defining.
65435
65436 2006-10-25  Bruno Haible  <bruno@clisp.org>
65437
65438         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65439         false for non-gcc C++ compilers.
65440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65441
65442 2006-10-24  Bruno Haible  <bruno@clisp.org>
65443
65444         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65445         iconv implementations like Irix iconv.
65446
65447 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         * modules/vararrays: New file.
65450         * m4/vararrays.m4: New file, taken from diffutils.
65451         * MODULES.html.sh: New module vararrays.
65452
65453 2006-10-24  Karl Berry  <karl@gnu.org>
65454
65455         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65456         Don't call GNU Unix.
65457
65458 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65459
65460         * users.txt: Add Libtool.
65461
65462         Sync from Libtool:
65463
65464         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65467         to gnulib's policy of including config.h unconditionally.
65468
65469 2006-10-24  Bruno Haible  <bruno@clisp.org>
65470
65471         * modules/wcwidth (Files): Add m4/wint_t.m4.
65472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65473         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65474
65475 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65476
65477         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65478         to pacify GCC with some -W flags enabled.  Problem reported by
65479         Bruno Haible.
65480
65481 2006-10-24  Jim Meyering  <jim@meyering.net>
65482
65483         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65484         Reported by Karl Berry.
65485
65486 2006-10-23  Bruno Haible  <bruno@clisp.org>
65487
65488         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65489
65490 2006-10-24  Bruno Haible  <bruno@clisp.org>
65491
65492         * lib/gl_list.h: Use C comment style, not C++ comment style.
65493
65494 2006-10-23  Eric Blake  <ebb9@byu.net>
65495
65496         * lib/getaddrinfo.c (includes): Add missing include.
65497
65498 2006-10-23  Bruno Haible  <bruno@clisp.org>
65499             Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         Ability to rename obstack_free.
65502         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65503         obstack_free.
65504         (obstack_free): Invoke the __obstack_free macro.
65505         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65506
65507 2006-10-23  Bruno Haible  <bruno@clisp.org>
65508             Paul Eggert  <eggert@cs.ucla.edu>
65509
65510         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65511         __argc, __argv from the declaration. (They are defined as macros on
65512         mingw.)
65513
65514 2006-10-22  Bruno Haible  <bruno@clisp.org>
65515
65516         * doc/gnulib-intro.texi: New file.
65517         * doc/gnulib.texi: Include it.
65518
65519 2006-10-21  Bruno Haible  <bruno@clisp.org>
65520
65521         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65522         "Introduction", "Miscellanous Notes", "Particular Modules".
65523
65524 2006-10-21  Bruno Haible  <bruno@clisp.org>
65525
65526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65527         Change mostlyclean-local rule to avoid sh syntax error from bash
65528         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65529
65530 2006-10-23  Jim Meyering  <jim@meyering.net>
65531
65532         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65533         in place of snprintf.
65534
65535         * modules/inttostr (Files): Add lib/uinttostr.c.
65536         * lib/uinttostr.c (inttostr): New file/function.
65537         * lib/inttostr.h (uinttostr): Declare.
65538         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65539         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65540         Add uinttostr.
65541         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65542
65543 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65544
65545         * lib/canonicalize.c (ELOOP): Define if not already defined.
65546         Problem reported by Bruno Haible in
65547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65548
65549 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65552         Problem reported by Perry Smith and Ville Laurikari.
65553
65554         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65555         uses.
65556
65557 2006-10-19  Bruno Haible  <bruno@clisp.org>
65558
65559         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65560         for mingw.
65561
65562 2006-10-19  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65565         Needed for mingw.
65566
65567 2006-10-19  Bruno Haible  <bruno@clisp.org>
65568
65569         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65570
65571 2006-10-19  Bruno Haible  <bruno@clisp.org>
65572
65573         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65574         it.
65575
65576 2006-10-19  Bruno Haible  <bruno@clisp.org>
65577
65578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65579         invocation.
65580
65581 2006-10-19  Bruno Haible  <bruno@clisp.org>
65582
65583         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65584         mountlist by default.
65585
65586 2006-10-16  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/c-strstr.c: Include c-strstr.h.
65589
65590 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65591
65592         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65593         in a slash.
65594
65595 2006-10-18  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/lock.h [C++]: Wrap definitions in extern "C".
65598
65599 2006-10-18  Bruno Haible  <bruno@clisp.org>
65600
65601         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65602         gl_LIBOBJS list.
65603
65604 2006-10-18  Bruno Haible  <bruno@clisp.org>
65605
65606         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65607
65608 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * lib/xstrtol.h: Include gettext.h.
65611         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65612         Problem reported by Eric Blake.
65613         * modules/xstrtol (Depends-on): Add gettext-h.
65614
65615 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65616
65617         * lib/strftime.c (advance): New macro.
65618         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65619         incomplete type, so you can't add 0 to it.  Problem and patch
65620         reported by Eelco Dolstra for dietlibc.
65621
65622 2006-10-18  Jim Meyering  <jim@meyering.net>
65623
65624         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65625         type for a local, and rename it: s/up/user_proc/.
65626
65627 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65628
65629         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65630         READ_UTMP_USER_PROCESS.
65631         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65632
65633 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65634
65635         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65636         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65637
65638 2006-10-17  Eric Blake  <ebb9@byu.net>
65639
65640         * lib/sigprocmask.c (sigprocmask): Fix typo.
65641
65642         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65643
65644         * modules/clean-temp (Makefile.am): Don't add to make output...
65645         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65646         config.h.
65647
65648 2006-10-17  Bruno Haible  <bruno@clisp.org>
65649
65650         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65651         differently if DEFAULT_TEXT_DOMAIN is set.
65652
65653 2006-10-16  Bruno Haible  <bruno@clisp.org>
65654
65655         * lib/clean-temp.c: Include fwriteerror.h.
65656
65657 2006-10-16  Bruno Haible  <bruno@clisp.org>
65658
65659         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65660
65661 2006-10-16  Bruno Haible  <bruno@clisp.org>
65662
65663         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65664         * lib/sigprocmask.h: Include <sys/types.h>.
65665         (sigset_t): Use the system's definition if present.
65666
65667 2006-10-17  Eric Blake  <ebb9@byu.net>
65668
65669         * lib/xvasprintf.c (includes): Assume config.h.
65670         * lib/xasprintf.c (includes): Likewise.
65671
65672 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65675         at least as wide as intmax_t.
65676
65677 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65678
65679         (Imported from Automake.)
65680         * build-aux/gnupload: Update to version 1.1 of directive file.
65681
65682 2006-10-16  Eric Blake  <ebb9@byu.net>
65683
65684         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65685         match Automake 1.10a.
65686
65687 2006-10-14  Bruno Haible  <bruno@clisp.org>
65688
65689         * modules/sigprocmask: New file.
65690         * lib/sigprocmask.h: New file.
65691         * lib/sigprocmask.c: New file.
65692         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65693         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65694         request sigprocmask.o.
65695         (gl_PREREQ_SIGPROCMASK): New macro.
65696         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65697         (Depends-on): Add sigprocmask.
65698         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65699         gt_SIGNALBLOCKING. Test for 'raise' only once.
65700         * lib/fatal-signal.c: Include sigprocmask.h.
65701         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65702         unblock_fatal_signals): Define always.
65703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65704         sigprocmask.
65705
65706 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         Sync from Automake.
65709         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65710         which incorrectly sets the mode of an existing destination
65711         directory.  In some cases the unpatched install-sh could do the
65712         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65713         system.  We hope this is rare in practice, but it's clearly worth
65714         fixing.  Problem reported by Alex Unleashed in
65715         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65716         Also, don't bother to check for -m bugs unless we're using -m;
65717         suggested by Stepan Kasal.
65718
65719 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65720
65721         Sync from Automake.
65722         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65723         `-c' flag, so they appear at the same position as in %FASTDEP%
65724         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65725         which ignores unknown options only after the first non-option.
65726         Bug report against M4 by Nelson H. F. Beebe.
65727
65728 2006-10-13  Jim Meyering  <jim@meyering.net>
65729
65730         Fix a bug in yesterday's change.
65731         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65732         p->fts_statp->st_dev would be used uninitialized.
65733         Ensures that we always call fts_stat on the very first entry.
65734         Miklos Szeredi reported that find -xdev stopped working.
65735
65736 2006-10-12  Bruno Haible  <bruno@clisp.org>
65737
65738         * gnulib-tool (func_get_automake_snippet): Append an automatically
65739         computed EXTRA_DIST augmentation.
65740         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65741         * modules/alloca-opt (Makefile.am): Likewise.
65742         * modules/allocsa (Makefile.am): Likewise.
65743         * modules/arcfour (Makefile.am): Likewise.
65744         * modules/arctwo (Makefile.am): Likewise.
65745         * modules/argmatch (Makefile.am): Likewise.
65746         * modules/argz (Makefile.am): Likewise.
65747         * modules/atexit (Makefile.am): Likewise.
65748         * modules/backupfile (Makefile.am): Likewise.
65749         * modules/byteswap (Makefile.am): Likewise.
65750         * modules/c-strtod (Makefile.am): Likewise.
65751         * modules/c-strtold (Makefile.am): Likewise.
65752         * modules/calloc (Makefile.am): Likewise.
65753         * modules/canon-host (Makefile.am): Likewise.
65754         * modules/canonicalize (Makefile.am): Likewise.
65755         * modules/chdir-long (Makefile.am): Likewise.
65756         * modules/chdir-safer (Makefile.am): Likewise.
65757         * modules/check-version (Makefile.am): Likewise.
65758         * modules/chown (Makefile.am): Likewise.
65759         * modules/cloexec (Makefile.am): Likewise.
65760         * modules/close-stream (Makefile.am): Likewise.
65761         * modules/closeout (Makefile.am): Likewise.
65762         * modules/crc (Makefile.am): Likewise.
65763         * modules/csharpexec (Makefile.am): Likewise.
65764         * modules/cycle-check (Makefile.am): Likewise.
65765         * modules/des (Makefile.am): Likewise.
65766         * modules/dev-ino (Makefile.am): Likewise.
65767         * modules/dirfd (Makefile.am): Likewise.
65768         * modules/dirname (Makefile.am): Likewise.
65769         * modules/dup2 (Makefile.am): Likewise.
65770         * modules/eealloc (Makefile.am): Likewise.
65771         * modules/error (Makefile.am): Likewise.
65772         * modules/euidaccess (Makefile.am): Likewise.
65773         * modules/exclude (Makefile.am): Likewise.
65774         * modules/exitfail (Makefile.am): Likewise.
65775         * modules/fcntl-safer (Makefile.am): Likewise.
65776         * modules/fcntl (Makefile.am): Likewise.
65777         * modules/file-type (Makefile.am): Likewise.
65778         * modules/fileblocks (Makefile.am): Likewise.
65779         * modules/filemode (Makefile.am): Likewise.
65780         * modules/filenamecat (Makefile.am): Likewise.
65781         * modules/fnmatch (Makefile.am): Likewise.
65782         * modules/fopen-safer (Makefile.am): Likewise.
65783         * modules/fpending (Makefile.am): Likewise.
65784         * modules/fprintftime (Makefile.am): Likewise.
65785         * modules/free (Makefile.am): Likewise.
65786         * modules/fsusage (Makefile.am): Likewise.
65787         * modules/ftruncate (Makefile.am): Likewise.
65788         * modules/fts (Makefile.am): Likewise.
65789         * modules/gc-arcfour (Makefile.am): Likewise.
65790         * modules/gc-des (Makefile.am): Likewise.
65791         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65792         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65793         * modules/gc-md4 (Makefile.am): Likewise.
65794         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65795         * modules/gc-sha1 (Makefile.am): Likewise.
65796         * modules/gc (Makefile.am): Likewise.
65797         * modules/getaddrinfo (Makefile.am): Likewise.
65798         * modules/getcwd (Makefile.am): Likewise.
65799         * modules/getdelim (Makefile.am): Likewise.
65800         * modules/getdomainname (Makefile.am): Likewise.
65801         * modules/getgroups (Makefile.am): Likewise.
65802         * modules/gethostname (Makefile.am): Likewise.
65803         * modules/gethrxtime (Makefile.am): Likewise.
65804         * modules/getline (Makefile.am): Likewise.
65805         * modules/getloadavg (Makefile.am): Likewise.
65806         * modules/getlogin_r (Makefile.am): Likewise.
65807         * modules/getndelim2 (Makefile.am): Likewise.
65808         * modules/getopt (Makefile.am): Likewise.
65809         * modules/getpagesize (Makefile.am): Likewise.
65810         * modules/getpass-gnu (Makefile.am): Likewise.
65811         * modules/getpass (Makefile.am): Likewise.
65812         * modules/getsubopt (Makefile.am): Likewise.
65813         * modules/gettime (Makefile.am): Likewise.
65814         * modules/gettimeofday (Makefile.am): Likewise.
65815         * modules/getugroups (Makefile.am): Likewise.
65816         * modules/getusershell (Makefile.am): Likewise.
65817         * modules/glob (Makefile.am): Likewise.
65818         * modules/group-member (Makefile.am): Likewise.
65819         * modules/hard-locale (Makefile.am): Likewise.
65820         * modules/hash (Makefile.am): Likewise.
65821         * modules/hmac-md5 (Makefile.am): Likewise.
65822         * modules/hmac-sha1 (Makefile.am): Likewise.
65823         * modules/human (Makefile.am): Likewise.
65824         * modules/idcache (Makefile.am): Likewise.
65825         * modules/imaxabs (Makefile.am): Likewise.
65826         * modules/imaxdiv (Makefile.am): Likewise.
65827         * modules/inet_ntop (Makefile.am): Likewise.
65828         * modules/inet_pton (Makefile.am): Likewise.
65829         * modules/intprops (Makefile.am): Likewise.
65830         * modules/inttostr (Makefile.am): Likewise.
65831         * modules/inttypes (Makefile.am): Likewise.
65832         * modules/isapipe (Makefile.am): Likewise.
65833         * modules/javaversion (Makefile.am): Likewise.
65834         * modules/lchmod (Makefile.am): Likewise.
65835         * modules/lchown (Makefile.am): Likewise.
65836         * modules/localcharset (Makefile.am): Likewise.
65837         * modules/long-options (Makefile.am): Likewise.
65838         * modules/lstat (Makefile.am): Likewise.
65839         * modules/malloc (Makefile.am): Likewise.
65840         * modules/mathl (Makefile.am): Likewise.
65841         * modules/mbchar (Makefile.am): Likewise.
65842         * modules/md2 (Makefile.am): Likewise.
65843         * modules/md4 (Makefile.am): Likewise.
65844         * modules/md5 (Makefile.am): Likewise.
65845         * modules/memcasecmp (Makefile.am): Likewise.
65846         * modules/memchr (Makefile.am): Likewise.
65847         * modules/memcmp (Makefile.am): Likewise.
65848         * modules/memcoll (Makefile.am): Likewise.
65849         * modules/memcpy (Makefile.am): Likewise.
65850         * modules/memmem (Makefile.am): Likewise.
65851         * modules/memmove (Makefile.am): Likewise.
65852         * modules/mempcpy (Makefile.am): Likewise.
65853         * modules/memrchr (Makefile.am): Likewise.
65854         * modules/memset (Makefile.am): Likewise.
65855         * modules/memxor (Makefile.am): Likewise.
65856         * modules/mkancesdirs (Makefile.am): Likewise.
65857         * modules/mkdir-p (Makefile.am): Likewise.
65858         * modules/mkdir (Makefile.am): Likewise.
65859         * modules/mkdtemp (Makefile.am): Likewise.
65860         * modules/mkstemp (Makefile.am): Likewise.
65861         * modules/mktime (Makefile.am): Likewise.
65862         * modules/modechange (Makefile.am): Likewise.
65863         * modules/mountlist (Makefile.am): Likewise.
65864         * modules/nanosleep (Makefile.am): Likewise.
65865         * modules/obstack (Makefile.am): Likewise.
65866         * modules/openat (Makefile.am): Likewise.
65867         * modules/pagealign_alloc (Makefile.am): Likewise.
65868         * modules/pathmax (Makefile.am): Likewise.
65869         * modules/physmem (Makefile.am): Likewise.
65870         * modules/poll (Makefile.am): Likewise.
65871         * modules/posixtm (Makefile.am): Likewise.
65872         * modules/posixver (Makefile.am): Likewise.
65873         * modules/putenv (Makefile.am): Likewise.
65874         * modules/quote (Makefile.am): Likewise.
65875         * modules/quotearg (Makefile.am): Likewise.
65876         * modules/raise (Makefile.am): Likewise.
65877         * modules/read-file (Makefile.am): Likewise.
65878         * modules/readline (Makefile.am): Likewise.
65879         * modules/readlink (Makefile.am): Likewise.
65880         * modules/readtokens (Makefile.am): Likewise.
65881         * modules/readutmp (Makefile.am): Likewise.
65882         * modules/realloc (Makefile.am): Likewise.
65883         * modules/regex (Makefile.am): Likewise.
65884         * modules/rename-dest-slash (Makefile.am): Likewise.
65885         * modules/rename (Makefile.am): Likewise.
65886         * modules/rijndael (Makefile.am): Likewise.
65887         * modules/rmdir (Makefile.am): Likewise.
65888         * modules/rpmatch (Makefile.am): Likewise.
65889         * modules/safe-read (Makefile.am): Likewise.
65890         * modules/safe-write (Makefile.am): Likewise.
65891         * modules/same-inode (Makefile.am): Likewise.
65892         * modules/same (Makefile.am): Likewise.
65893         * modules/save-cwd (Makefile.am): Likewise.
65894         * modules/savedir (Makefile.am): Likewise.
65895         * modules/setenv (Makefile.am): Likewise.
65896         * modules/settime (Makefile.am): Likewise.
65897         * modules/sha1 (Makefile.am): Likewise.
65898         * modules/sig2str (Makefile.am): Likewise.
65899         * modules/snprintf (Makefile.am): Likewise.
65900         * modules/stat-macros (Makefile.am): Likewise.
65901         * modules/stat-time (Makefile.am): Likewise.
65902         * modules/stdbool (Makefile.am): Likewise.
65903         * modules/stdint (Makefile.am): Likewise.
65904         * modules/stdlib-safer (Makefile.am): Likewise.
65905         * modules/stpcpy (Makefile.am): Likewise.
65906         * modules/stpncpy (Makefile.am): Likewise.
65907         * modules/strcase (Makefile.am): Likewise.
65908         * modules/strcasestr (Makefile.am): Likewise.
65909         * modules/strchrnul (Makefile.am): Likewise.
65910         * modules/strcspn (Makefile.am): Likewise.
65911         * modules/strdup (Makefile.am): Likewise.
65912         * modules/strerror (Makefile.am): Likewise.
65913         * modules/strftime (Makefile.am): Likewise.
65914         * modules/strndup (Makefile.am): Likewise.
65915         * modules/strnlen (Makefile.am): Likewise.
65916         * modules/strpbrk (Makefile.am): Likewise.
65917         * modules/strsep (Makefile.am): Likewise.
65918         * modules/strstr (Makefile.am): Likewise.
65919         * modules/strtod (Makefile.am): Likewise.
65920         * modules/strtoimax (Makefile.am): Likewise.
65921         * modules/strtok_r (Makefile.am): Likewise.
65922         * modules/strtol (Makefile.am): Likewise.
65923         * modules/strtoll (Makefile.am): Likewise.
65924         * modules/strtoul (Makefile.am): Likewise.
65925         * modules/strtoull (Makefile.am): Likewise.
65926         * modules/strtoumax (Makefile.am): Likewise.
65927         * modules/strverscmp (Makefile.am): Likewise.
65928         * modules/sys_socket (Makefile.am): Likewise.
65929         * modules/sys_stat (Makefile.am): Likewise.
65930         * modules/sysexits (Makefile.am): Likewise.
65931         * modules/time_r (Makefile.am): Likewise.
65932         * modules/timegm (Makefile.am): Likewise.
65933         * modules/timespec (Makefile.am): Likewise.
65934         * modules/tmpfile-safer (Makefile.am): Likewise.
65935         * modules/trim (Makefile.am): Likewise.
65936         * modules/unistd-safer (Makefile.am): Likewise.
65937         * modules/unlinkdir (Makefile.am): Likewise.
65938         * modules/unlocked-io (Makefile.am): Likewise.
65939         * modules/userspec (Makefile.am): Likewise.
65940         * modules/utime (Makefile.am): Likewise.
65941         * modules/utimecmp (Makefile.am): Likewise.
65942         * modules/utimens (Makefile.am): Likewise.
65943         * modules/vasnprintf (Makefile.am): Likewise.
65944         * modules/vasprintf (Makefile.am): Likewise.
65945         * modules/vsnprintf (Makefile.am): Likewise.
65946         * modules/xalloc (Makefile.am): Likewise.
65947         * modules/xgetcwd (Makefile.am): Likewise.
65948         * modules/xnanosleep (Makefile.am): Likewise.
65949         * modules/xreadlink (Makefile.am): Likewise.
65950         * modules/xstrtod (Makefile.am): Likewise.
65951         * modules/xstrtol (Makefile.am): Likewise.
65952         * modules/xstrtold (Makefile.am): Likewise.
65953         * modules/yesno (Makefile.am): Likewise.
65954         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65955
65956 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65957
65958         * modules/error (Makefile.am): Distribute files through
65959         EXTRA_DIST, not lib_SOURCES.
65960
65961 2006-10-12  Eric Blake  <ebb9@byu.net>
65962
65963         * modules/error (Makefile.am): Distribute files in /lib.
65964         * modules/obstack (Makefile.am): Likewise.
65965
65966 2006-10-12  Bruno Haible  <bruno@clisp.org>
65967
65968         * modules/acl (Makefile.am): Distribute all files in lib/ through
65969         EXTRA_DIST.
65970         * modules/arcfour (Makefile.am): Likewise.
65971         * modules/arctwo (Makefile.am): Likewise.
65972         * modules/argmatch (Makefile.am): Likewise.
65973         * modules/argz (Makefile.am): Likewise.
65974         * modules/atexit (Makefile.am): Likewise.
65975         * modules/backupfile (Makefile.am): Likewise.
65976         * modules/c-strtod (Makefile.am): Likewise.
65977         * modules/c-strtold (Makefile.am): Likewise.
65978         * modules/calloc (Makefile.am): Likewise.
65979         * modules/canon-host (Makefile.am): Likewise.
65980         * modules/canonicalize (Makefile.am): Likewise.
65981         * modules/chdir-long (Makefile.am): Likewise.
65982         * modules/chdir-safer (Makefile.am): Likewise.
65983         * modules/check-version (Makefile.am): Likewise.
65984         * modules/chown (Makefile.am): Likewise.
65985         * modules/cloexec (Makefile.am): Likewise.
65986         * modules/close-stream (Makefile.am): Likewise.
65987         * modules/closeout (Makefile.am): Likewise.
65988         * modules/crc (Makefile.am): Likewise.
65989         * modules/cycle-check (Makefile.am): Likewise.
65990         * modules/des (Makefile.am): Likewise.
65991         * modules/dirfd (Makefile.am): Likewise.
65992         * modules/dirname (Makefile.am): Likewise.
65993         * modules/dup2 (Makefile.am): Likewise.
65994         * modules/euidaccess (Makefile.am): Likewise.
65995         * modules/exclude (Makefile.am): Likewise.
65996         * modules/exitfail (Makefile.am): Likewise.
65997         * modules/fcntl-safer (Makefile.am): Likewise.
65998         * modules/file-type (Makefile.am): Likewise.
65999         * modules/fileblocks (Makefile.am): Likewise.
66000         * modules/filemode (Makefile.am): Likewise.
66001         * modules/filenamecat (Makefile.am): Likewise.
66002         * modules/fnmatch (Makefile.am): Likewise.
66003         * modules/fopen-safer (Makefile.am): Likewise.
66004         * modules/fpending (Makefile.am): Likewise.
66005         * modules/fprintftime (Makefile.am): Likewise.
66006         * modules/free (Makefile.am): Likewise.
66007         * modules/fsusage (Makefile.am): Likewise.
66008         * modules/ftruncate (Makefile.am): Likewise.
66009         * modules/fts (Makefile.am): Likewise.
66010         * modules/gc (Makefile.am): Likewise.
66011         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66012         * modules/getaddrinfo (Makefile.am): Likewise.
66013         * modules/getcwd (Makefile.am): Likewise.
66014         * modules/getdelim (Makefile.am): Likewise.
66015         * modules/getdomainname (Makefile.am): Likewise.
66016         * modules/getgroups (Makefile.am): Likewise.
66017         * modules/gethostname (Makefile.am): Likewise.
66018         * modules/gethrxtime (Makefile.am): Likewise.
66019         * modules/getline (Makefile.am): Likewise.
66020         * modules/getloadavg (Makefile.am): Likewise.
66021         * modules/getlogin_r (Makefile.am): Likewise.
66022         * modules/getopt (Makefile.am): Likewise.
66023         * modules/getpass (Makefile.am): Likewise.
66024         * modules/getpass-gnu (Makefile.am): Likewise.
66025         * modules/getsubopt (Makefile.am): Likewise.
66026         * modules/gettime (Makefile.am): Likewise.
66027         * modules/gettimeofday (Makefile.am): Likewise.
66028         * modules/getugroups (Makefile.am): Likewise.
66029         * modules/getusershell (Makefile.am): Likewise.
66030         * modules/glob (Makefile.am): Likewise.
66031         * modules/group-member (Makefile.am): Likewise.
66032         * modules/hard-locale (Makefile.am): Likewise.
66033         * modules/hash (Makefile.am): Likewise.
66034         * modules/hmac-md5 (Makefile.am): Likewise.
66035         * modules/hmac-sha1 (Makefile.am): Likewise.
66036         * modules/human (Makefile.am): Likewise.
66037         * modules/idcache (Makefile.am): Likewise.
66038         * modules/imaxabs (Makefile.am): Likewise.
66039         * modules/imaxdiv (Makefile.am): Likewise.
66040         * modules/inet_ntop (Makefile.am): Likewise.
66041         * modules/inet_pton (Makefile.am): Likewise.
66042         * modules/inttostr (Makefile.am): Likewise.
66043         * modules/isapipe (Makefile.am): Likewise.
66044         * modules/lchown (Makefile.am): Likewise.
66045         * modules/long-options (Makefile.am): Likewise.
66046         * modules/lstat (Makefile.am): Likewise.
66047         * modules/malloc (Makefile.am): Likewise.
66048         * modules/mathl (Makefile.am): Likewise.
66049         * modules/mbchar (Makefile.am): Likewise.
66050         * modules/md2 (Makefile.am): Likewise.
66051         * modules/md4 (Makefile.am): Likewise.
66052         * modules/md5 (Makefile.am): Likewise.
66053         * modules/memcasecmp (Makefile.am): Likewise.
66054         * modules/memchr (Makefile.am): Likewise.
66055         * modules/memcmp (Makefile.am): Likewise.
66056         * modules/memcoll (Makefile.am): Likewise.
66057         * modules/memcpy (Makefile.am): Likewise.
66058         * modules/memmem (Makefile.am): Likewise.
66059         * modules/memmove (Makefile.am): Likewise.
66060         * modules/mempcpy (Makefile.am): Likewise.
66061         * modules/memrchr (Makefile.am): Likewise.
66062         * modules/memset (Makefile.am): Likewise.
66063         * modules/memxor (Makefile.am): Likewise.
66064         * modules/mkancesdirs (Makefile.am): Likewise.
66065         * modules/mkdir (Makefile.am): Likewise.
66066         * modules/mkdir-p (Makefile.am): Likewise.
66067         * modules/mkdtemp (Makefile.am): Likewise.
66068         * modules/mkstemp (Makefile.am): Likewise.
66069         * modules/mktime (Makefile.am): Likewise.
66070         * modules/modechange (Makefile.am): Likewise.
66071         * modules/mountlist (Makefile.am): Likewise.
66072         * modules/nanosleep (Makefile.am): Likewise.
66073         * modules/openat (Makefile.am): Likewise.
66074         * modules/pagealign_alloc (Makefile.am): Likewise.
66075         * modules/physmem (Makefile.am): Likewise.
66076         * modules/poll (Makefile.am): Likewise.
66077         * modules/posixtm (Makefile.am): Likewise.
66078         * modules/posixver (Makefile.am): Likewise.
66079         * modules/putenv (Makefile.am): Likewise.
66080         * modules/quote (Makefile.am): Likewise.
66081         * modules/quotearg (Makefile.am): Likewise.
66082         * modules/raise (Makefile.am): Likewise.
66083         * modules/read-file (Makefile.am): Likewise.
66084         * modules/readline (Makefile.am): Likewise.
66085         * modules/readlink (Makefile.am): Likewise.
66086         * modules/readtokens (Makefile.am): Likewise.
66087         * modules/readutmp (Makefile.am): Likewise.
66088         * modules/realloc (Makefile.am): Likewise.
66089         * modules/regex (Makefile.am): Likewise.
66090         * modules/rename (Makefile.am): Likewise.
66091         * modules/rename-dest-slash (Makefile.am): Likewise.
66092         * modules/rijndael (Makefile.am): Likewise.
66093         * modules/rmdir (Makefile.am): Likewise.
66094         * modules/rpmatch (Makefile.am): Likewise.
66095         * modules/safe-read (Makefile.am): Likewise.
66096         * modules/safe-write (Makefile.am): Likewise.
66097         * modules/same (Makefile.am): Likewise.
66098         * modules/save-cwd (Makefile.am): Likewise.
66099         * modules/savedir (Makefile.am): Likewise.
66100         * modules/setenv (Makefile.am): Likewise.
66101         * modules/settime (Makefile.am): Likewise.
66102         * modules/sha1 (Makefile.am): Likewise.
66103         * modules/sig2str (Makefile.am): Likewise.
66104         * modules/snprintf (Makefile.am): Likewise.
66105         * modules/stdlib-safer (Makefile.am): Likewise.
66106         * modules/stpcpy (Makefile.am): Likewise.
66107         * modules/stpncpy (Makefile.am): Likewise.
66108         * modules/strcase (Makefile.am): Likewise.
66109         * modules/strcasestr (Makefile.am): Likewise.
66110         * modules/strchrnul (Makefile.am): Likewise.
66111         * modules/strcspn (Makefile.am): Likewise.
66112         * modules/strdup (Makefile.am): Likewise.
66113         * modules/strerror (Makefile.am): Likewise.
66114         * modules/strftime (Makefile.am): Likewise.
66115         * modules/strndup (Makefile.am): Likewise.
66116         * modules/strnlen (Makefile.am): Likewise.
66117         * modules/strpbrk (Makefile.am): Likewise.
66118         * modules/strsep (Makefile.am): Likewise.
66119         * modules/strstr (Makefile.am): Likewise.
66120         * modules/strtod (Makefile.am): Likewise.
66121         * modules/strtoimax (Makefile.am): Likewise.
66122         * modules/strtok_r (Makefile.am): Likewise.
66123         * modules/strtol (Makefile.am): Likewise.
66124         * modules/strtoll (Makefile.am): Likewise.
66125         * modules/strtoul (Makefile.am): Likewise.
66126         * modules/strtoull (Makefile.am): Likewise.
66127         * modules/strtoumax (Makefile.am): Likewise.
66128         * modules/strverscmp (Makefile.am): Likewise.
66129         * modules/time_r (Makefile.am): Likewise.
66130         * modules/timegm (Makefile.am): Likewise.
66131         * modules/tmpfile-safer (Makefile.am): Likewise.
66132         * modules/unistd-safer (Makefile.am): Likewise.
66133         * modules/unlinkdir (Makefile.am): Likewise.
66134         * modules/userspec (Makefile.am): Likewise.
66135         * modules/utime (Makefile.am): Likewise.
66136         * modules/utimecmp (Makefile.am): Likewise.
66137         * modules/utimens (Makefile.am): Likewise.
66138         * modules/vasnprintf (Makefile.am): Likewise.
66139         * modules/vasprintf (Makefile.am): Likewise.
66140         * modules/vsnprintf (Makefile.am): Likewise.
66141         * modules/xalloc (Makefile.am): Likewise.
66142         * modules/xgetcwd (Makefile.am): Likewise.
66143         * modules/xnanosleep (Makefile.am): Likewise.
66144         * modules/xreadlink (Makefile.am): Likewise.
66145         * modules/xstrtod (Makefile.am): Likewise.
66146         * modules/xstrtol (Makefile.am): Likewise.
66147         * modules/xstrtold (Makefile.am): Likewise.
66148         * modules/yesno (Makefile.am): Likewise.
66149
66150 2006-10-12  Jim Meyering  <jim@meyering.net>
66151
66152         * m4/getloadavg.m4: Revert the change below.
66153
66154         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66155         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66156         fail with a symlink, which is what coreutils' ./bootstrap now
66157         creates by default.
66158
66159 2006-10-12  Bruno Haible  <bruno@clisp.org>
66160
66161         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66162         mingw.
66163         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66164         MSVC and mingw explicitly.
66165
66166 2006-10-11  Simon Josefsson  <jas@extundo.com>
66167             Bruno Haible  <bruno@clisp.org>
66168
66169         Add support for multiple gnulib-tool invocations in the scope of a
66170         single configure.ac file.
66171         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66172         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66173         with the same contents as the _LIBADD variable.
66174         (func_emit_initmacro_start, func_emit_initmacro_end,
66175         func_emit_initmacro_done): New functions.
66176         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66177         gl_LIBOBJS and gl_LTLIBOBJS.
66178
66179 2006-10-11  Bruno Haible  <bruno@clisp.org>
66180
66181         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66182         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66183         autoreconf. Instead, invoke autopoint explicitly but move back the
66184         *.m4 files from gnulib.
66185
66186 2006-10-11  Bruno Haible  <bruno@clisp.org>
66187
66188         * gnulib-tool (func_usage): Make module names after --create-testdir
66189         optional.
66190         (func_create_testdir): If no module was specified, use nearly all
66191         modules.
66192
66193 2006-10-12  Jim Meyering  <jim@meyering.net>
66194
66195         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66196         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66197         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66198         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66199         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66200         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66201         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66202         (fts_set_stat_required): New function.
66203         (fts_open): Defer the calls to fts_stat, if possible or requested.
66204         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66205         into fts_stat itself.
66206         (fts_read): Perform any required (deferred) fts_stat call.
66207         (fts_build): Likewise, for the directory we're about to open and read.
66208         In the readdir loop, carefully decide whether each entry will require
66209         an eventual call to fts_stat, using dirent.d_type info if available.
66210         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66211         a command line argument into this function.  Update all callers.
66212         Map a return value of FTS_DOT to FTS_D for a command line argument.
66213         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66214         Thanks to Miklos Szeredi for his tenacity and for the initial
66215         bug report about "find" failing on a FUSE-based file system.
66216
66217         * lib/fts.c (fts_open): Use consistent indentation.
66218
66219 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66220
66221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66222         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66223         reported by Jim Meyering.  All uses of cache variables renamed
66224         to match Autoconf's.
66225         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66226         the other one.
66227
66228         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66229         Fix misspelling in diagnostic.
66230
66231 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66234         defined.  Problem reported by Matthew Woehlke.
66235
66236         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66237         Add support for Tandem NonStop R series.
66238         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66239         Use new macro.
66240
66241         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66242         (has_trailing_slash): Omit size arg; all callers changed.
66243         Omit 'inline', since it doesn't help performance and we'd
66244         need to configure it.
66245         Don't count //, ///, etc. as having a trailing slash.
66246         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66247         (rpl_rename_dest_slash): On failure, use rename's errno rather
66248         than (in some cases) an incorrect or junk errno.
66249         Simplify code by removing need to compute length; this does
66250         cause it to make two passes instead of one over the file name,
66251         but it's worth it.
66252
66253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66254         change, since Autoconf's version may no longer be appropriate now
66255         that we are using CVS Autoconf's version.  Add support for Tandem.
66256
66257 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66258             Bruno Haible  <bruno@clisp.org>
66259
66260         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66261         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66262         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66263         gl_AC_TYPE_LONG_LONG.
66264
66265         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66266         instead of HAVE_LONG_LONG.
66267         * lib/printf-args.c (printf_fetchargs): Likewise.
66268         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66269         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66271         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66272         gl_AC_TYPE_LONG_LONG.
66273
66274 2006-10-11  Bruno Haible  <bruno@clisp.org>
66275
66276         * m4/longlong.m4: Add comments.
66277         * m4/ulonglong.m4: Likewise.
66278
66279 2006-10-10  Bruno Haible  <bruno@clisp.org>
66280
66281         Make it possible to #define stpcpy, strdup to aliases.
66282         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66283         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66284
66285 2006-10-10  Bruno Haible  <bruno@clisp.org>
66286
66287         Make it possible to #define gcd to an alias.
66288         * lib/gcd.c: Include config.h.
66289
66290 2006-10-10  Bruno Haible  <bruno@clisp.org>
66291
66292         Make it possible to #define c_isascii to an alias.
66293         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66294         defined. Undefine the macros before defining them, to avoid gcc
66295         warnings.
66296         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66297         define NO_C_CTYPE_MACROS early.
66298
66299 2006-10-10  Bruno Haible  <bruno@clisp.org>
66300
66301         Make it possible to #define set_program_name to an alias.
66302         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66303         ENABLE_RELOCATABLE early.
66304
66305 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66306
66307         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66308         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66309         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66310         More generally, don't assume that 64-bit signed int is available
66311         if unsigned int is, and vice versa.
66312         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66313         unsigned symbols, not on their signed counterparts.
66314         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66315         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66316         (UINT64_C, UINTMAX_C):
66317         Likewise.
66318         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66319         unsigned counterparts.
66320         (Have_long_long, Unsigned): New macros.
66321         (Int): Renamed from INT.
66322         (strtoimax): Use the new macros.
66323         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66324         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66325         * modules/inttypes (inttypes.h): Substitute
66326         HAVE_UNSIGNED_LONG_LONG_INT.
66327         * modules/stdint (stdint.h): Likewise.
66328         (Files): Add m4/ulonglong.m4.
66329
66330 2006-10-10  Bruno Haible  <bruno@clisp.org>
66331
66332         Fix a gcc -Wshadow warning.
66333         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66334         to 'bucket'.
66335         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66336         gl_linked_indexof_from_to): Likewise.
66337         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66338         Likewise.
66339         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66340         Likewise.
66341         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66342         Reported by Eric Blake.
66343
66344 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66347         for NetBSD.  Problem reported by Bruno Haible.
66348
66349 2006-10-09  Jim Meyering  <jim@meyering.net>
66350
66351         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66352         Patch from Bruno Haible.
66353
66354 2006-10-09  Jim Meyering  <jim@meyering.net>
66355
66356         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66357         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66358         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66359
66360 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66361
66362         Don't include <config.h> twice; this doesn't work in some cases,
66363         e.g., when config.h has "#define intmax_t long long int" and
66364         we include <config.h>, <inttypes.h>, <config.h> in that order.
66365         Problem reported by Matthew Woehlke in:
66366         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66367         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66368         * lib/fts-cycle.c: Don't include config.h.
66369         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66370         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66371         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66372         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66373         inttypes.h.
66374         * lib/xstrtoumax.c: Likewise.
66375         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66376         __strtol and the like, so that this module is more like its siblings.
66377         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66378         Remove; no longer needed now that we assume gnulib inttypes.h.
66379
66380 2006-10-08  Bruno Haible  <bruno@clisp.org>
66381
66382         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66383         option.
66384
66385 2006-10-07  Jim Meyering  <jim@meyering.net>
66386
66387         * modules/inttypes (inttypes.h): Revert what seems to have been
66388         an inadvertent part of today's change: use "|", not "/" in the
66389         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66390
66391 2006-10-07  Bruno Haible  <bruno@clisp.org>
66392
66393         * modules/sublist: New file.
66394
66395 2006-10-07  Bruno Haible  <bruno@clisp.org>
66396
66397         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66398         * modules/argz (argz.h): Likewise.
66399         * modules/arpa_inet (arpa/inet.h): Likewise.
66400         * modules/byteswap (byteswap.h): Likewise.
66401         * modules/configmake (configmake.h): Likewise.
66402         * modules/fcntl (fcntl.h): Likewise.
66403         * modules/fnmatch (fnmatch.h): Likewise.
66404         * modules/getopt (getopt.h): Likewise.
66405         * modules/glob (glob.h): Likewise.
66406         * modules/inttypes (inttypes.h): Likewise.
66407         * modules/netinet_in (netinet/in.h): Likewise.
66408         * modules/poll (poll.h): Likewise.
66409         * modules/stdbool (stdbool.h): Likewise.
66410         * modules/stdint (stdint.h): Likewise.
66411         * modules/sys_select (sys/select.h): Likewise.
66412         * modules/sys_socket (sys/socket.h): Likewise.
66413         * modules/sys_stat (sys/stat.h): Likewise.
66414         * modules/sysexits (sysexits.h): Likewise.
66415         * modules/unistd (unistd.h): Likewise.
66416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66417         Add a "DO NOT EDIT" comment to the generated file.
66418         (func_import): Likewise for gnulib-comp.m4.
66419
66420 2006-10-07  Bruno Haible  <bruno@clisp.org>
66421
66422         * lib/gl_sublist.h: New file.
66423         * lib/gl_sublist.c: New file.
66424
66425 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66426
66427         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66428         name (relative to the original working directory) and the file
66429         name component (relative to the temporary working directory).  All
66430         callers changed.
66431         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66432         * lib/mkdir-p.c (make_dir_parents): Likewise.
66433         * lib/mkdir-p.h (make_dir_parents): Likewise.
66434
66435 2006-10-06  Eric Blake  <ebb9@byu.net>
66436
66437         Define several macros for use by the clean-temp module.
66438         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66441
66442         * lib/clean-temp.h (close_stream_temp): New declaration.
66443         * lib/clean-temp.c (includes): Pull in headers according to what
66444         other modules are in use.
66445         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66446
66447 2006-10-06  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66450         instead of fopen, fwriteerror.
66451
66452 2006-10-06  Bruno Haible  <bruno@clisp.org>
66453
66454         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66455         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66456         int.
66457         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66458         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66459         Return an error indicator.
66460         Suggested by Eric Blake.
66461
66462 2006-10-06  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66465         Reported by Eric Blake.
66466
66467 2006-10-06  Bruno Haible  <bruno@clisp.org>
66468
66469         * modules/closeout (Description): Mention stderr too.
66470
66471 2006-10-06  Bruno Haible  <bruno@clisp.org>
66472         and Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * lib/closeout.c (close_stdout): Also close stderr.
66475         * lib/closeout.h: Update comment.
66476
66477 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66480         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66481         * lib/dirchownmod.c: Include lchown.h.
66482         * lib/lchown.c: Don't include files that lchown.h now includes.
66483         Don't declare chown, since lchown.h now does that.
66484         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66485         (lchown): Define to rpl_chown if lchown is declared but
66486         does not exist.  Declare using a prototype if lchown is not
66487         declared.  Add a copyright notice.
66488         * lib/mkstemp.h: Include <unistd.h>.
66489         * lib/openat.c: Include lchown.h.
66490
66491         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66492         we now test for that separately.
66493         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66494         rather than O_NOFOLLOW, when testing whether it's possible to
66495         avoid a race condition reliably.
66496         * lib/savewd.c (savewd_chdir): Likewise.
66497
66498         Remove macros that are no longer needed now that stdint.h is
66499         reliable.
66500         * lib/fsusage.c (UINTMAX_MAX): Remove.
66501         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66502         * lib/utimecmp.c (SIZE_MAX): Remove.
66503
66504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66505
66506         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66507         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66508         O_NOATIME works.
66509
66510 2006-10-05  Bruno Haible  <bruno@clisp.org>
66511
66512         * lib/gl_list.h (gl_sortedlist_search_from_to,
66513         gl_sortedlist_indexof_from_to): New declarations.
66514         (gl_list_implementation): New fields sortedlist_search_from_to,
66515         sortedlist_indexof_from_to.
66516         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66517         inline functions.
66518         * lib/gl_list.c (gl_sortedlist_search_from_to,
66519         gl_sortedlist_indexof_from_to): New functions.
66520         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66521         function.
66522         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66523         (gl_array_sortedlist_search_from_to): New function.
66524         (gl_array_list_implementation): Update.
66525         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66526         function.
66527         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66528         (gl_carray_sortedlist_search_from_to): New function.
66529         (gl_carray_list_implementation): Update.
66530         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66531         gl_linked_sortedlist_indexof_from_to): New functions.
66532         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66533         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66534         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66535         gl_tree_sortedlist_indexof_from_to): New functions.
66536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66537         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66538         Update.
66539         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66540         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66541         Update.
66542
66543 2006-10-05  Bruno Haible  <bruno@clisp.org>
66544
66545         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66546         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66547         (struct gl_list_implementation): Add fields search_from_to,
66548         indexof_from_to. Remove fields search, indexof.
66549         (gl_list_search): Use the search_from_to method.
66550         (gl_list_search_from, gl_list_search_from_to): New functions.
66551         (gl_list_indexof): Use the indexof_from_to method.
66552         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66553         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66554         (gl_list_search_from, gl_list_search_from_to): New functions.
66555         (gl_list_indexof): Use the indexof_from_to method.
66556         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66557         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66558         gl_array_indexof. Add start_index, end_index arguments.
66559         (gl_array_search_from_to): Renamed from gl_array_search. Add
66560         start_index, end_index arguments.
66561         (gl_array_remove, gl_array_list_implementation): Update.
66562         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66563         gl_carray_indexof. Add start_index, end_index arguments.
66564         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66565         start_index, end_index arguments.
66566         (gl_carray_remove, gl_carray_list_implementation): Update.
66567         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66568         gl_linked_search. Add start_index, end_index arguments.
66569         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66570         start_index, end_index arguments.
66571         (gl_linked_remove): Update.
66572         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66573         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66574         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66575         field to 'size_t'.
66576         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66577         gl_tree_search. Add start_index, end_index arguments.
66578         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66579         start_index, end_index arguments.
66580         (gl_tree_remove): Update.
66581         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66582         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66583         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66584         function.
66585         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66586         gl_tree_search. Add start_index, end_index arguments.
66587         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66588         start_index, end_index arguments.
66589         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66590         Update.
66591         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66592
66593 2006-10-05  Bruno Haible  <bruno@clisp.org>
66594
66595         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66596
66597         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66598         fwriteerror_temp): New declarations.
66599         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66600         (descriptors): New variable.
66601         (cleanup): First, close the descriptors.
66602         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66603         fclose_temp, fwriteerror_temp): New functions.
66604
66605 2006-10-04  Jim Meyering  <jim@meyering.net>
66606
66607         * lib/fts.c (fts_open): Tiny comment change.
66608
66609 2006-10-04  Bruno Haible  <bruno@clisp.org>
66610
66611         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66612         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66613         gl_LOCK_BODY.
66614         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66615         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66616         gl_LOCK_EARLY_BODY.
66617         (gl_LOCK): Require gl_LOCK_BODY.
66618
66619 2006-10-04  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66622         (gl_oset_search_atleast): New declaration.
66623         (struct gl_oset_implementation): Add field 'search_atleast'.
66624         (gl_oset_search_atleast): New inline function.
66625         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66626         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66627         (gl_array_oset_implementation): Update.
66628         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66629         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66630         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66631
66632 2006-10-04  Bruno Haible  <bruno@clisp.org>
66633
66634         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66635
66636 2006-10-03  Bruno Haible  <bruno@clisp.org>
66637
66638         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66639         from gl_avltreehash_list_implementation.
66640
66641 2006-10-03  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/gl_oset.c (gl_oset_add): Fix return type.
66644
66645 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66646
66647         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66648
66649 2006-10-02  Eric Blake  <ebb9@byu.net>
66650
66651         * modules/strnlen (Depends-on): Add extensions.
66652
66653 2006-10-02  Eric Blake  <ebb9@byu.net>
66654
66655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66656         definition in 2.60+.
66657
66658 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66659
66660         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66661         checks.
66662
66663 2006-10-02  Bruno Haible  <bruno@clisp.org>
66664
66665         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66666         to the AUTOMAKE_OPTIONS.
66667         Reported by Jim Meyering.
66668
66669 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         Work around bug in Solaris 10 /proc file system:
66672         /proc/self/fd/NNN/.. isn't the parent directory of
66673         the directory whose file descriptor is NNN.  This needs to
66674         be worked around at run time, not compile time, since a
66675         program might be built on Solaris 8, where things work, and
66676         run on Solaris 10.
66677         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66678         to use the following interface instead:
66679         (OPENAT_BUFFER_SIZE): New macro.
66680         (openat_proc_name): New function.
66681         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66682         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66683         Likewise.
66684         * lib/openat-proc.c: New file.
66685         * modules/openat (Files): Add lib/openat-proc.c.
66686         (Depends-on): Add same-inode, stdbool.
66687         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66688
66689 2006-09-29  Bruno Haible  <bruno@clisp.org>
66690
66691         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66692         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66693         argument. Set stdout_closed before testing for ferror, not after.
66694         (fwriteerror, fwriteerror_no_ebadf): New functions.
66695
66696 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66697
66698         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66699
66700 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66701
66702         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66703         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66704
66705 2006-09-28  Jim Meyering  <jim@meyering.net>
66706
66707         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66708         Include <unistd.h>.
66709
66710 2006-09-28  Bruno Haible  <bruno@clisp.org>
66711
66712         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66713         * modules/linkedhash-list (Depends-on): Likewise.
66714         * modules/rbtreehash-list (Depends-on): Likewise.
66715
66716 2006-09-28  Bruno Haible  <bruno@clisp.org>
66717
66718         * lib/strndup.h: Simplify the redefinition of strndup.
66719         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66721
66722 2006-09-28  Bruno Haible  <bruno@clisp.org>
66723
66724         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66725         * lib/gl_linkedhash_list.c: Likewise.
66726         * lib/gl_rbtreehash_list.c: Likewise.
66727
66728 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66731         getaddrinfo.
66732
66733         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66734         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66735         it causes <stdio_ext.h> to cause a compile-time error.
66736         Problem reported by Nelson H. F. Beebe.
66737         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66738         of HAVE_DECL___PENDING.
66739
66740         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66742         declaration.
66743
66744 2006-09-27  Jim Meyering  <jim@meyering.net>
66745
66746         This file could end up with a definition for a function
66747         named __strndup, rather than rpl_strndup on a system with
66748         incomplete weak_alias support.
66749         * lib/strndup.c (strndup): Rename from __strndup.
66750         Remove #defines that used to map __strndup to strndup.
66751         Don't use K&R prototypes.
66752         Remove LIBC-related code, since this file is not sync'd with glibc.
66753         * lib/strndup.h: Revamp, accordingly.
66754         * m4/strndup.m4: Modernize.
66755
66756 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66757
66758         * modules/savewd (Depends-on): Add 'raise'.
66759         * lib/savewd.c: Include <signal.h>, for 'raise'.
66760
66761 2006-09-26  Jim Meyering  <jim@meyering.net>
66762
66763         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66764         when we detect Darwin 8.7.0's acl_get_file bug.
66765         Rearrange to perform the new (below) run-test while $LIBS
66766         contains any acl-related library.  Set USE_ACL at the end.
66767         (gl_ACL_GET_FILE): New function.
66768
66769 2006-09-26  Eric Blake  <ebb9@byu.net>
66770
66771         * lib/verror.c: Include <config.h> unconditionally.
66772
66773 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66774
66775         * modules/clock-time (Maintainer): Add self.
66776         * modules/getlogin_r (Depends-on): Add extensions.
66777
66778 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66779
66780         * modules/clock-time: New module.
66781         * modules/nanosleep (Depends-on): Add clock-time.
66782         * modules/gethrxtime (Depends-on): Likewise.
66783         * modules/gettime (Depends-on): Likewise.
66784         * modules/settime (Depends-on): Likewise.
66785
66786         * modules/fts-lgpl: Depend on openat.
66787         * modules/mkancesdirs: Depend on savewd.
66788         * modules/mkdir-p: Likewise.
66789
66790 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66791
66792         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66793
66794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66795         `gl_have_arbitrary_file_name_length_limit' to
66796         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66797         actually works between configure runs.
66798
66799 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66800             Bruno Haible  <bruno@clisp.org>
66801
66802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66803
66804 2006-09-25  Jim Meyering  <jim@meyering.net>
66805
66806         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66807         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66808
66809 2006-09-25  Eric Blake  <ebb9@byu.net>
66810
66811         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66812         exec's in 2006-09-18 patch when shuffling fds.
66813
66814 2006-09-25  Bruno Haible  <bruno@clisp.org>
66815
66816         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66817         Reported by Jim Meyering.
66818
66819 2006-09-24  Jim Meyering  <jim@meyering.net>
66820
66821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66822         compare a pointer against a literal "0".  That caused failures with
66823         at least HP-UX's hpcc.
66824
66825 2006-09-22  Simon Josefsson  <jas@extundo.com>
66826
66827         * modules/gc-sha1:
66828         * modules/gc-md4:
66829         * modules/gc-hmac-sha1:
66830         * modules/gc-hmac-md5:
66831         * modules/gc-des:
66832         * modules/gc-arcfour: Distribute more files.
66833
66834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66835
66836         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66837         (gl_linked_iterator_from_to): Initialize struct completely.
66838         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66839         (gl_tree_iterator_from_to): Likewise
66840         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66841         * lib/gl_array_list.c [lint] (gl_array_iterator)
66842         (gl_array_iterator_from_to): Likewise.
66843         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66844         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66845         (gl_carray_iterator_from_to): Likewise.
66846
66847         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66848         * lib/md4.c (md4_process_block): Remove unused variable.
66849         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66850         parentheses for clarity.
66851
66852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66853
66854         * modules/bison-i18n (Depends-on): Add gettext.
66855
66856 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66857
66858         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66860         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66861         also add missing comma that caused broken test.
66862         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66863         stdlib.h, for `abort'.
66864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66865         variables.
66866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66867         include unistd.h if present, for `rmdir'.
66868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66869         variables.
66870         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66871         in the process include standard headers for prototypes.
66872         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66873         gets declared on GNU/Linux.
66874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66875         unistd.h, for `rmdir'.
66876         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66877
66878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66879         always true.
66880         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66881
66882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66883
66884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66885
66886         * gnulib-tool (func_version): Create output all at once.  This
66887         may help avoid triggering unnecessary SIGPIPEs, and at any
66888         rate it doesn't hurt.
66889
66890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66891             Bruno Haible  <bruno@clisp.org>
66892
66893         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66894         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66895         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66896
66897         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66898         (gl_FUNC_VASPRINTF): Invoke it.
66899
66900 2006-09-22  Bruno Haible  <bruno@clisp.org>
66901
66902         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66903         getloadavg.c as first argument.
66904
66905 2006-09-22  Bruno Haible  <bruno@clisp.org>
66906
66907         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66908         at the beginning of the gl_INIT macro.
66909         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66910         gl_GETLOADAVG.
66911
66912 2006-09-22  Bruno Haible  <bruno@clisp.org>
66913
66914         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66915         module.
66916         Suggested by Ralf Wildenhues.
66917
66918 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         Import this patch from libc:
66921
66922         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66923
66924         * lib/regex_internal.c (re_string_reconstruct): Handle
66925         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66926         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66927         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66928         re_string_context_at.
66929
66930         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66931         now requires it.
66932         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66933         gl_REGEX now does it for us.
66934         (gl_REGEX): Add test taken from
66935         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66936
66937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66938         Check that large offsets work.  Modernize Autoconf usages.
66939         Prefer "yes" to mean a good thing rather than a bad.
66940         Don't put "#define mkstemp" in config.h, as this might interfere
66941         with standard system headers that "#define mkstemp mkstemp64".
66942
66943         * modules/mkstemp (Depends-on): Add extensions, so that
66944         mkstemp is visible on some platforms.
66945         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66946         (Include): Change to "mkstemp.h" from <stdlib.h>.
66947         (Files): Add mkstemp.h.
66948
66949         * lib/mkstemp.h: New file, since some standard headers
66950         #define mkstemp.
66951         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66952         Include "mkstemp.h".
66953         Make the _LIBC code resemble glibc original more,
66954         e.g., use K&R style.
66955         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66956         (mkstemp): Remove, since mkstemp.h does this for us.
66957         * lib/stdlib--.h: Include mkstemp.h.
66958
66959         Import this patch from libc:
66960
66961         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66962
66963         * lib/tempname.c (__gen_tempname): Change attempts_min
66964         into a macro.  Use preprocessor to decide how to initialize
66965         attempts [Coverity CID 67].
66966
66967 2006-09-20  Bruno Haible  <bruno@clisp.org>
66968
66969         * lib/mkdtemp.c: Import from libc.
66970         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66971                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66972                 attempts_min into a macro.  Use preprocessor to decide how to
66973                 initialize attempts [Coverity CID 67].
66974         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66975                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66976                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66977
66978 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66979
66980         * gnulib-tool (func_exit): New function, to allow to pass the
66981         exit status portably through the trap.  Use everywhere.
66982         (--help, --version): Signal a write error.
66983         (trap): catch SIGPIPE, for write errors.
66984         Exit at the end of the trap, with the correct exit status.
66985
66986 2006-09-19  Karl Berry  <karl@gnu.org>
66987
66988         * doc/gnulib.texi: note about the license texinfo files.
66989
66990 2006-09-19  Eric Blake  <ebb9@byu.net>
66991
66992         * gnulib-tool: Avoid space-tab.
66993
66994 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66997         that prevented coreutils 6.1 from building.  Problem reported
66998         by Petter Reinholdtsen.
66999
67000 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67001
67002         * gnulib-tool (avoidlist): Fix typo that broke options like
67003         --avoid=lock that are used by coreutils bootstrap.
67004
67005 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67006
67007         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67008         more systematically.
67009
67010 2006-09-18  Jim Meyering  <jim@meyering.net>
67011
67012         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67013
67014 2006-09-18  Bruno Haible  <bruno@clisp.org>
67015
67016         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67017
67018 2006-09-18  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67021         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67022         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67023         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67024         * m4/gettext.m4: Require autoconf >= 2.52.
67025         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67026         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67027         of gl_cv_header_inttypes_h.
67028
67029 2006-09-18  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/javaversion.c: Include configmake.h.
67032
67033 2006-09-18  Bruno Haible  <bruno@clisp.org>
67034
67035         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67036         avoid that the while loops be executed in a subshell.
67037
67038 2006-09-18  Bruno Haible  <bruno@clisp.org>
67039
67040         * MODULES.html.sh (func_module): Break long lines.
67041         Suggested by Bruce Korb <bkorb@gnu.org>.
67042
67043 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67044
67045         Speed up by a factor of 1.12.
67046         * gnulib-tool (nl): New variable.
67047         (func_import): Rewrite include directive extraction to only read each
67048         directive once.
67049
67050 2006-09-17  Bruno Haible  <bruno@clisp.org>
67051
67052         * modules/javaversion (Makefile.am): Remove DEFS setting.
67053         (Depends-on): Add configmake, for PKGDATADIR definition.
67054
67055 2006-09-17  Bruno Haible  <bruno@clisp.org>
67056
67057         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67058
67059 2006-09-17  Bruno Haible  <bruno@clisp.org>
67060
67061         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67062         (func_modules_transitive_closure, func_modules_add_dummy,
67063         func_modules_to_filelist, func_import, func_create_testdir,
67064         func_create_megatestdir, ...): Use it wherever possible.
67065         Suggested by Ralf Wildenhues.
67066
67067 2006-09-16  Karl Berry  <karl@gnu.org>
67068
67069         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67070         to avoid sectioning errors.
67071         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67072         [ifinfo]: blank line after @center-ed titles.
67073         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67074         Spell FSF address consistently with others.
67075         (These changes approved by rms.)
67076
67077 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67078
67079         Speed up by a factor of 1.61.
67080         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67081         already checked module names again.
67082
67083 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67084
67085         Speed up by a factor of 1.13.
67086         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67087         for new_files, and the input to func_add_or_update.
67088
67089 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67090
67091         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67092         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67093
67094 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67095
67096         * modules/mkancesdirs (Depends-on): Add fcntl.
67097         * modules/savewd: New file.
67098         * MODULES.html.sh (File system functions): Add savewd.
67099
67100         * modules/configmake (Makefile.am): Add support for the
67101         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67102
67103 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * m4/savewd.m4: New file.
67106
67107 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67110         (dirchownmod): New arg FD.  All callers changed.
67111         Use FD rather than opening the directory ourself, as opening is
67112         now the caller's responsibility.
67113         * lib/dirchownmod.h: Likewise.
67114         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67115         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67116         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67117         (test_dir): Remove.
67118         (mkancesdirs): Return length of prefix of FILE that has already
67119         been made, or -2 if there is a child doing the work.  Redo
67120         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67121         ".", and treat ".." specially since it might stray back into
67122         already-created areas.  Use a subprocess if necessary.  New arg
67123         WD; all users changed.  MAKE_DIR function should now return 1
67124         if it creates a directory that is not readable.  Return -2 if
67125         a child process is spun off.
67126         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67127         Adjust signature to match code.
67128         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67129         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67130         all users changed.
67131         * lib/savewd.c, lib/savewd.h: New files.
67132
67133 2006-09-15  Jim Meyering  <jim@meyering.net>
67134
67135         * modules/rename-dest-slash: New module.
67136         * MODULES.html.sh (posix_compat): Add it here.
67137
67138         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67139
67140 2006-09-15  Jim Meyering  <jim@meyering.net>
67141
67142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67143         file.
67144
67145         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67146
67147 2006-09-15  Jim Meyering  <jim@meyering.net>
67148
67149         * lib/rename-dest-slash.c (has_trailing_slash): Use
67150         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67151         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67152         test before testing whether SRC is a directory.
67153         Suggestions from Bruno Haible.
67154
67155         Avoid a warning about an unused variable.
67156         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67157         into the #ifdef block where it's used.
67158
67159         * lib/rename-dest-slash.c: New file.
67160
67161 2006-09-14  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/allocsa.c: Include <config.h> unconditionally.
67164         * lib/asnprintf.c: Likewise.
67165         * lib/asprintf.c: Likewise.
67166         * lib/c-strcasecmp.c: Likewise.
67167         * lib/c-strcasestr.c: Likewise.
67168         * lib/c-strncasecmp.c: Likewise.
67169         * lib/c-strstr.c: Likewise.
67170         * lib/classpath.c: Likewise.
67171         * lib/clean-temp.c: Likewise.
67172         * lib/concatpath.c: Likewise.
67173         * lib/copy-file.c: Likewise.
67174         * lib/csharpcomp.c: Likewise.
67175         * lib/csharpexec.c: Likewise.
67176         * lib/execute.c: Likewise.
67177         * lib/fatal-signal.c: Likewise.
67178         * lib/findprog.c: Likewise.
67179         * lib/fwriteerror.c: Likewise.
67180         * lib/gl_array_list.c: Likewise.
67181         * lib/gl_array_oset.c: Likewise.
67182         * lib/gl_avltree_list.c: Likewise.
67183         * lib/gl_avltree_oset.c: Likewise.
67184         * lib/gl_avltreehash_list.c: Likewise.
67185         * lib/gl_carray_list.c: Likewise.
67186         * lib/gl_linked_list.c: Likewise.
67187         * lib/gl_linkedhash_list.c: Likewise.
67188         * lib/gl_list.c: Likewise.
67189         * lib/gl_oset.c: Likewise.
67190         * lib/gl_rbtree_list.c: Likewise.
67191         * lib/gl_rbtree_oset.c: Likewise.
67192         * lib/gl_rbtreehash_list.c: Likewise.
67193         * lib/imaxabs.c: Likewise.
67194         * lib/imaxdiv.c: Likewise.
67195         * lib/javacomp.c: Likewise.
67196         * lib/javaexec.c: Likewise.
67197         * lib/javaversion.c: Likewise.
67198         * lib/linebreak.c: Likewise.
67199         * lib/localcharset.c: Likewise.
67200         * lib/lock.c: Likewise.
67201         * lib/mbchar.c: Likewise.
67202         * lib/mbswidth.c: Likewise.
67203         * lib/mkdtemp.c: Likewise.
67204         * lib/pipe.c: Likewise.
67205         * lib/printf-args.c: Likewise.
67206         * lib/printf-parse.c: Likewise.
67207         * lib/progname.c: Likewise.
67208         * lib/progreloc.c: Likewise.
67209         * lib/readlink.c: Likewise.
67210         * lib/sh-quote.c: Likewise.
67211         * lib/stpcpy.c: Likewise.
67212         * lib/stpncpy.c: Likewise.
67213         * lib/strcasecmp.c: Likewise.
67214         * lib/strcasestr.c: Likewise.
67215         * lib/strcspn.c: Likewise.
67216         * lib/striconv.c: Likewise.
67217         * lib/strncasecmp.c: Likewise.
67218         * lib/strnlen1.c: Likewise.
67219         * lib/strstr.c: Likewise.
67220         * lib/strtok_r.c: Likewise.
67221         * lib/tls.c: Likewise.
67222         * lib/tmpdir.c: Likewise.
67223         * lib/unicodeio.c: Likewise.
67224         * lib/unsetenv.c: Likewise.
67225         * lib/vasnprintf.c: Likewise.
67226         * lib/vasprintf.c: Likewise.
67227         * lib/wait-process.c: Likewise.
67228         * lib/xallocsa.c: Likewise.
67229         * lib/xsetenv.c: Likewise.
67230         * lib/xstriconv.c: Likewise.
67231
67232 2006-09-13  Simon Josefsson  <jas@extundo.com>
67233
67234         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67235         that internally, suggested by Ralf Wildenhues
67236         <Ralf.Wildenhues@gmx.de>.
67237
67238 2006-09-13  Simon Josefsson  <jas@extundo.com>
67239
67240         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67241         @LIBOBJS@.
67242         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67243
67244 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67245
67246         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67247         longer worry about uses that don't define HAVE_CONFIG_H.
67248         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67249         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67250         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67251         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67252         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67253         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67254         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67255         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67256         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67257         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67258         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67259         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67260         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67261         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67262         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67263         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67264         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67265         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67266         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67267         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67268         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67269         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67270         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67271         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67272         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67273         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67274         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67275         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67276         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67277         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67278         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67279         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67280         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67281         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67282         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67283         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67284         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67285         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67286         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67287         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67288         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67289         Likewise.
67290
67291 2006-09-13  Eric Blake  <ebb9@byu.net>
67292
67293         * lib/getopt.c: Fix typo in last commit.
67294
67295 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67296
67297         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67298         dgettext.
67299
67300 2006-09-12  Jim Meyering  <jim@meyering.net>
67301
67302         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67303         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67304         Reported by Nelson H. F. Beebe.
67305
67306 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67307
67308         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67309         program_invocation_name and program_invocation_short_name are
67310         initialized.
67311         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67312         and program_invocation_short_name to argp.h, so they are visible
67313         to user programs.
67314         * lib/argp.h: Likewise
67315
67316 2006-09-10  Bruno Haible  <bruno@clisp.org>
67317
67318         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67319         m4/inttypes_h.m4, m4/uintmax_t.m4.
67320
67321 2006-09-10  Bruno Haible  <bruno@clisp.org>
67322
67323         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67324         gl_AC_TYPE_UINTMAX_T.
67325
67326 2006-09-10  Bruno Haible  <bruno@clisp.org>
67327
67328         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67329
67330 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67331
67332         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67333         convention.  Text proposed by Bruno Haible.
67334         (struct argp_option): Document the use of N_() wrappers.
67335
67336         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67337         '\v', and translate the two parts separately, instead of feeding
67338         the whole string to gettext.  This allows to exclude
67339         '\v' from the strings visible to the translator by writing doc
67340         strings as N_("..") "\v" N_("..").
67341
67342 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * config/srclist.txt: Undo latest change; the bug was fixed.
67345
67346 2006-09-09  Bruno Haible  <bruno@clisp.org>
67347
67348         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67349         assignments if building a library without libtool.
67350         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67351         in func_emit_lib_Makefile_am.
67352         (func_import): When building a static library libfoo.a, arrange to
67353         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67354         (func_create_testdir): Likewise.
67355         * modules/gc (configure.ac, Makefile.am): If building statically,
67356         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67357         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67358         * modules/striconv (configure.ac, Makefile.am): Likewise.
67359         Based on a suggestion by Ralf Wildenhues.
67360
67361 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67362
67363         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67364         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67365         Also:
67366
67367         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67368         Add year_2050_test to catch glibc bug 2821
67369         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67370
67371         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67372         Prefer #ifdef to #if.
67373
67374         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67375         Return from 'main' instead of calling 'exit'.
67376
67377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67378
67379         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67380         returned the maximum time_t value rather than (time_t) -1.
67381         Problem originally reported by William Bardwell
67382         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67383
67384         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67385         Moved to here ...
67386         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67387         ... from here.
67388
67389 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67390
67391         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67392         2821 is fixed.
67393
67394 2006-09-08  Jim Meyering  <jim@meyering.net>
67395
67396         Don't make generated files read-only.  That would bother too many
67397         people.  However, do retain the ability to work when targets are
67398         read-only: remove the destination and temporary files before writing
67399         them (when generated via sed or echo), or by using the -f option for
67400         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67401         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67402         * modules/byteswap, modules/configmake, modules/fcntl:
67403         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67404         * modules/localcharset, modules/netinet_in, modules/poll:
67405         * modules/stdbool, modules/stdint, modules/sys_select:
67406         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67407
67408 2006-09-08  Jim Meyering  <jim@meyering.net>
67409
67410         Avoid new build failure on FreeBSD 6.0.
67411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67412         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67413         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67414
67415 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67416
67417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67418
67419 2006-09-07  Jim Meyering  <jim@meyering.net>
67420
67421         Fix global typo in last change: use chmod u-w, not chmod u-x.
67422         Spotted by Paul Eggert and Bruce Korb.
67423         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67424         * modules/byteswap, modules/configmake, modules/fcntl:
67425         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67426         * modules/localcharset, modules/netinet_in, modules/poll:
67427         * modules/stdbool, modules/stdint, modules/sys_select:
67428         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67429
67430 2006-09-06  Jim Meyering  <jim@meyering.net>
67431
67432         Make generated files be read-only.
67433         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67434         Ensure that each generated file is now read-only.
67435         * modules/argz: Likewise.
67436         * modules/arpa_inet: Likewise.
67437         * modules/byteswap: Likewise.
67438         * modules/configmake: Likewise.
67439         * modules/fcntl: Likewise.
67440         * modules/fnmatch: Likewise.
67441         * modules/getopt: Likewise.
67442         * modules/glob: Likewise.
67443         * modules/inttypes: Likewise.
67444         * modules/netinet_in: Likewise.
67445         * modules/poll: Likewise.
67446         * modules/stdbool: Likewise.
67447         * modules/stdint: Likewise.
67448         * modules/sys_select: Likewise.
67449         * modules/sys_socket: Likewise.
67450         * modules/sys_stat: Likewise.
67451         * modules/sysexits: Likewise.
67452         * modules/localcharset: Same as above, but continue using temporary
67453         file named "t-$@" (why different?) rather than the "$@-t" used
67454         everywhere else.
67455
67456         * modules/sysexits (Makefile.am): Replace literal occurrences
67457         of "sysexit.h" more readable, and more consistent, "$@".
67458
67459 2006-09-06  Bruno Haible  <bruno@clisp.org>
67460
67461         * modules/striconv: New file.
67462         * modules/xstriconv: New file.
67463         * MODULES.html.sh (Internationalization functions): Add striconv,
67464         xstriconv.
67465
67466 2006-09-06  Bruno Haible  <bruno@clisp.org>
67467
67468         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67469         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67470         not using libtool correctly.
67471
67472 2006-09-06  Bruno Haible  <bruno@clisp.org>
67473
67474         * lib/striconv.h: New file.
67475         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67476         iconvstring.c.
67477         * lib/xstriconv.h: New file.
67478         * lib/xstriconv.c: New file.
67479
67480 2006-09-06  Bruno Haible  <bruno@clisp.org>
67481
67482         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67483         lib_..._LDFLAGS.
67484
67485 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67486
67487         * lib/argz_.h: Sync from Libtool.
67488
67489         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67490                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67491
67492         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67493
67494 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67495
67496         * modules/trim: New file.
67497
67498 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67499
67500         * lib/trim.h: New file.
67501         * lib/trim.c: New file.
67502
67503 2006-09-05  Bruno Haible  <bruno@clisp.org>
67504
67505         * MODULES.html.sh (String handling): Add trim.
67506
67507 2006-09-04  Karl Berry  <karl@gnu.org>
67508
67509         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67510         until next release.
67511
67512 2006-09-03  Bruno Haible  <bruno@clisp.org>
67513
67514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67515         correctly.
67516
67517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67520         not gl_GETLOADAVG.  Omit unneeded semicolons.
67521         Problems reported by Ralf Wildenhues in
67522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67523         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67524         at the end, which is the usual gnulib style.
67525
67526         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67527         of doing all the work ourselves.
67528         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67529         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67530
67531 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67534         Problem reported by Ralf Wildenhues in
67535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67536
67537         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67538         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67539
67540 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67543         yesterday's patch by changing test -n to test -z.
67544
67545 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67548         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67549         the former is now obsolescent.
67550
67551         * modules/chdir-long (Depends-on): Add fcntl.
67552
67553 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67556         obsolescent, and programs should use gnulib instead.
67557         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67558         but with prefixes changed.
67559
67560 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67561
67562         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67563         or stdbool.h, because they might not exist while configuring.
67564
67565         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67566         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67567         does that for us.
67568         (O_DIRECTORY): Remove.
67569
67570 2006-08-31  Eric Blake  <ebb9@byu.net>
67571
67572         * gnulib-tool: Don't let emacs change spaces to TAB.
67573
67574 2006-08-31  Bruno Haible  <bruno@clisp.org>
67575
67576         * gnulib-tool: When calling func_import more than once, do it in a
67577         subshell.
67578         Reported by Eric Blake <ebb9@byu.net>.
67579
67580 2006-08-31  Bruno Haible  <bruno@clisp.org>
67581
67582         * gnulib-tool (nl): Remove variable.
67583         (sed_transform_lib_file): Use more robust test for config-h module.
67584         (func_import): Fix typo in 2006-08-25 patch.
67585
67586 2006-08-31  Bruno Haible  <bruno@clisp.org>
67587
67588         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67589         specified, augment Makefile.am variables instead of assigning them.
67590
67591 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         Work around a bug in both the Linux and SunOS 64-bit kernels:
67594         nanosleep mishandles sleeps for longer than 2**31 seconds.
67595         Problem reported by Frank v Waveren in
67596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67598         Check for nanosleep bug.
67599         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67600
67601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         Work around a bug in both the Linux and SunOS 64-bit kernels:
67604         nanosleep mishandles sleeps for longer than 2**31 seconds.
67605         Problem reported by Frank v Waveren in
67606         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67607         * lib/nanosleep.c (BILLION): New constant.
67608         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67609         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67610         implementation.
67611
67612 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * modules/nanosleep (Depends-on): Add gettime.
67615
67616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67617         and Simon Josefsson  <jas@extundo.com>
67618         and Oskar Liljeblad  <oskar@osk.mine.nu>
67619
67620         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67621         * gnulib-tool (func_import): New license type 'unmodifiable license
67622         text'.
67623         * modules/fdl: Use it.  Longer description.
67624         * module/gpl, module/lgpl: New files.
67625
67626 2006-08-30  Jim Meyering  <jim@meyering.net>
67627
67628         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67629         shadowing the parameter.
67630
67631 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67632
67633         Sync from Libtool:
67634
67635         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67636
67637         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67638         sharing with gnulib.  Report by Eric Blake.
67639
67640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * modules/isapipe: New file.
67643         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67644
67645 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * modules/configmake (Makefile.am): Add a comment, and omit
67648         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67649         by Bruno Haible.
67650
67651 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * m4/isapipe.m4: New file.
67654
67655 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         * lib/isapipe.c, lib/isapipe.h: New files.
67658
67659 2006-08-29  Jim Meyering  <jim@meyering.net>
67660
67661         * modules/configmake (Makefile.am): Make configmake.h depend on
67662         Makefile.  Otherwise, a stale configmake.h could hang around.
67663
67664 2006-08-29  Eric Blake  <ebb9@byu.net>
67665
67666         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67667         resolution of upstream bug 3044.
67668
67669 2006-08-29  Bruno Haible  <bruno@clisp.org>
67670
67671         * modules/localcharset (Depends-on): Add configmake.
67672         (Makefile.am): Remove setting of LIBDIR through DEFS.
67673
67674 2006-08-29  Bruno Haible  <bruno@clisp.org>
67675
67676         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67677         defined.
67678
67679 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * modules/fcntl: New file.
67682         * modules/chdir-safer (Depends-on): Add fcntl.
67683         * modules/fts: Likewise.
67684         * modules/mkdir-p: Likewise.
67685
67686         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67687         This undoes the most recent change, since we're now addressing the
67688         problem in a different way.
67689
67690         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67691         into output, since the output might be called Makefile.am even
67692         if $makefile_name is something different.
67693         (func_import): Use $makefile_am rather than
67694         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67695         empty.
67696
67697         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67698
67699 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67702         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67703         recent change to stdint.m4, since we're now addressing the problem in a
67704         different way.
67705
67706 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67707
67708         * m4/fcntl_h.m4: New file.
67709
67710 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         * lib/fcntl_.h: New file.
67713         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67714         the fcntl module.
67715         * lib/dirchownmod.c: Likewise.
67716         * lib/fts.c: Likewise.
67717
67718         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67719         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67720         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67721         just before including <inttypes.h>, to avoid circular inclusion.
67722
67723 2006-08-28  Jim Meyering  <jim@meyering.net>
67724
67725         * doc/visibility.texi: Actually read and correct the grammar of the
67726         sentence affected by yesterday's change.
67727
67728 2006-08-28  Eric Blake  <ebb9@byu.net>
67729
67730         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67731         needs wrapper.
67732
67733 2006-08-28  Eric Blake  <ebb9@byu.net>
67734
67735         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67736
67737 2006-08-28  Eric Blake  <ebb9@byu.net>
67738
67739         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67740
67741 2006-08-28  Bruno Haible  <bruno@clisp.org>
67742
67743         * modules/c-strstr: New file, from GNU gettext.
67744         * MODULES.html.sh (String handling): Add c-strstr.
67745
67746 2006-08-28  Bruno Haible  <bruno@clisp.org>
67747
67748         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67749         macros.
67750         Reported by Eric Blake.
67751
67752 2006-08-28  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67755         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67756         * lib/vasprintf.c: Include errno.h, limits.h.
67757         (EOVERFLOW): New fallback definition.
67758         (vasprintf): Test here whether the string length is > INT_MAX.
67759         * lib/vsnprintf.c: Include errno.h, limits.h.
67760         (EOVERFLOW): New fallback definition.
67761         (vsnprintf): Fix bug when generated string was too long for the buffer.
67762         Test here whether the string length is > INT_MAX.
67763
67764 2006-08-28  Bruno Haible  <bruno@clisp.org>
67765
67766         * lib/inttypes_.h (SCNX*): Remove definitions.
67767         Reported by Eric Blake.
67768
67769 2006-08-28  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/c-strstr.h: New file, from GNU gettext.
67772         * lib/c-strstr.c: New file, from GNU gettext.
67773
67774 2006-08-28  Bruno Haible  <bruno@clisp.org>
67775
67776         * gnulib-tool: Reorder some statements.
67777
67778 2006-08-28  Bruno Haible  <bruno@clisp.org>
67779
67780         * gnulib-tool: New option --makefile-name.
67781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67782         $makefile_name.
67783         (func_import): Write $makefile_name to the cache file, and read it from
67784         there unless explicitly specified. Use $makefile_name as file name
67785         instead of Makefile.am. Adjust the recommendations accordingly.
67786
67787 2006-08-28  Bruno Haible  <bruno@clisp.org>
67788
67789         * gnulib-tool (func_verify_module): Check against misapplying patch.
67790
67791 2006-08-28  Bruno Haible  <bruno@clisp.org>
67792
67793         * gnulib-tool (func_relativize, func_relconcat): New functions.
67794         Give an error if --local-dir is given with --update.
67795         Remove trailing slashes from $local_gnulib_dir.
67796         (func_import): Store the relativized $local_gnulib_dir in
67797         gnulib-cache.m4, and read it from there if not specified explicitly.
67798
67799 2006-08-28  Bruno Haible  <bruno@clisp.org>
67800
67801         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67802         is the current directory. Respect also $local_gnulib_dir.
67803
67804 2006-08-28  Bruno Haible  <bruno@clisp.org>
67805             Simon Josefsson  <jas@extundo.com>
67806
67807         BeOS portability.
67808         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67809
67810 2006-08-27  Jim Meyering  <jim@meyering.net>
67811
67812         * doc/visibility.texi: Remove duplicate word: "pointer".
67813
67814 2006-08-26  Bruno Haible  <bruno@clisp.org>
67815
67816         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67817         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67818         (Makefile.am): Create inttypes.h from inttypes_.h.
67819         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67820
67821         * modules/imaxabs: New file.
67822
67823         * modules/imaxdiv: New file.
67824
67825 2006-08-26  Bruno Haible  <bruno@clisp.org>
67826
67827         * m4/inttypes.m4: New file.
67828         * m4/_inttypes_h.m4: Remove file.
67829         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67830         PRI_MACROS_BROKEN.
67831         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67832
67833         * m4/imaxabs.m4: New file.
67834
67835         * m4/imaxdiv.m4: New file.
67836
67837 2006-08-26  Bruno Haible  <bruno@clisp.org>
67838
67839         * lib/inttypes_.h: New file.
67840         * lib/inttypes.h: Remove file.
67841         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67842
67843         * lib/imaxabs.c: New file.
67844
67845         * lib/imaxdiv.c: New file.
67846
67847 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         New config-h module, so that "make" output needn't be cluttered
67850         by -DHAVE_CONFIG_H.
67851         * MODULES.html.sh (Support for building libraries and executables):
67852         Add config-h.
67853         * modules/config-h: New file.
67854         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67855         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67856         the config-h module is used.
67857
67858         New configmake module, so that "make" output needn't be cluttered
67859         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67860         * MODULES.html.sh (Support for building libraries and executables):
67861         Add configmake.
67862         * modules/configmake: New file.
67863
67864 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * m4/config-h.m4: New file.
67867
67868 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * config/srclist.txt: Add elisp-comp.
67871
67872 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * MODULES.html.sh (Support for building libraries and executables):
67875         Add elisp-comp.
67876         * build-aux/elisp-comp: New file.
67877         * modules/elisp-comp: New file.
67878
67879 2006-08-24  Bruno Haible  <bruno@clisp.org>
67880
67881         * gnulib-tool (func_create_testdir): Use non-default values of
67882         sourcebase and m4base.
67883
67884 2006-08-24  Bruno Haible  <bruno@clisp.org>
67885
67886         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67887         HTML structure.
67888
67889 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * modules/openat (Depends-on): Add lchown.
67892
67893 2006-08-23  Bruno Haible  <bruno@clisp.org>
67894
67895         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67896         of gl_LOCK_EARLY instead of gl_LOCK.
67897
67898 2006-08-23  Bruno Haible  <bruno@clisp.org>
67899
67900         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67901         on OSF/1 to no.
67902         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67903
67904 2006-08-23  Bruno Haible  <bruno@clisp.org>
67905
67906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67907         as unusable.
67908
67909         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67910         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67911         (gl_LOCK): New macro.
67912
67913 2006-08-22  Simon Josefsson  <jas@extundo.com>
67914
67915         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67916         to md5 module.
67917
67918 2006-08-22  Simon Josefsson  <jas@extundo.com>
67919
67920         * MODULES.html.sh: Add "Support for maintaining and release
67921         projects".
67922
67923         * build-aux/gnupload: New file, from coreutils.
67924
67925 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67926
67927         Avoid the need for AC_LIBSOURCES in m4 macros.
67928         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67929         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67930         * modules/check-version (EXTRA_DIST): Add check-version.h.
67931         * modules/crc (EXTRA_DIST): Add crc.h.
67932         * modules/des (EXTRA_DIST): Add des.h.
67933         * modules/gc (EXTRA_DIST): Add gc.h.
67934         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67935         * modules/getline (EXTRA_DIST): Add getline.h.
67936         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67937         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67938         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67939         * modules/md2 (EXTRA_DIST): Add md2.h.
67940         * modules/md4 (EXTRA_DIST): Add md4.h.
67941         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67942         * modules/read-file (EXTRA_DIST): Add read-file.h.
67943         * modules/readline (EXTRA_DIST): Add readline.h.
67944         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67945         rijndael-api-fst.h.
67946
67947 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * m4/rijndael.m4 (gl_ARCFOUR):
67950         * m4/arctwo.m4 (gl_ARCTWO):
67951         * m4/check-version.m4 (gl_CHECK_VERSION):
67952         * m4/crc.m4 (gl_CRC):
67953         * m4/des.m4 (gl_DES):
67954         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67955         * m4/gc.m4 (gl_GC):
67956         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67957         * m4/getline.m4 (gl_FUNC_GETLINE):
67958         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67959         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67960         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67961         * m4/md2.m4 (gl_MD2):
67962         * m4/md4.m4 (gl_MD4):
67963         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67964         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67965         * m4/readline.m4 (gl_FUNC_READLINE):
67966         * m4/rijndael.m4 (gl_RIJNDAEL):
67967         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67968         to get the necessary .h files and whatnot.
67969
67970 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67973         gnulib rather than the other way around.
67974         * config/srclistvars.sh (COREUTILS): Remove.
67975
67976 2006-08-22  Jim Meyering  <jim@meyering.net>
67977
67978         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67979
67980         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67981
67982 2006-08-22  Eric Blake  <ebb9@byu.net>
67983
67984         * modules/regexprops-generic: New file.
67985         * MODULES.html.sh (Support for building documentation): List it.
67986
67987 2006-08-22  Eric Blake  <ebb9@byu.net>
67988
67989         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67990         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67992         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67993
67994 2006-08-22  Bruno Haible  <bruno@clisp.org>
67995
67996         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67997         and lib_LTLIBRARIES like the other lib_* variables.
67998
67999 2006-08-22  Bruno Haible  <bruno@clisp.org>
68000
68001         * build-aux/x-to-1.in: New file, from GNU gettext.
68002
68003 2006-08-22  Bruno Haible  <bruno@clisp.org>
68004
68005         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68006         <utmpx.h> exists.
68007
68008 2006-08-22  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68011         <utmpx.h> exists.
68012
68013 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68014
68015         BeOS portability.
68016         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68017         exist.
68018         Problem reported by Bruno Haible.
68019
68020 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         Avoid the need for AC_LIBSOURCES in m4 macros.
68023         * modules/acl (EXTRA_DIST): Add acl.h.
68024         * modules/argmatch (Files): Add m4/argmatch.m4.
68025         (configure.ac): Add gl_ARGMATCH.
68026         (EXTRA_DIST): Renamed from lib_SOURCES, for
68027         consistency with the other modules.  Remove argmatch.c.
68028         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68029         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68030         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68031         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68032         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68033         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68034         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68035         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68036         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68037         * modules/closeout (EXTRA_DIST): Add closeout.h.
68038         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68039         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68040         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68041         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68042         dirname.h; remove basename.c and stripslash.c.
68043         * modules/exclude (EXTRA_DIST): Add exclude.h.
68044         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68045         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68046         * modules/file-type (EXTRA_DIST): Add file-type.h.
68047         * modules/filemode (EXTRA_DIST): Add filemode.h.
68048         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68049         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68050         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68051         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68052         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68053         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68054         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68055         * modules/getdate (EXTRA_DIST): Add getdate.c.
68056         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68057         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68058         * modules/getpass (EXTRA_DIST): Add getpass.h.
68059         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68060         * modules/group-member (EXTRA_DIST): Add group-member.h.
68061         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68062         * modules/hash (EXTRA_DIST): Add hash.h.
68063         * modules/human (EXTRA_DIST): Add human.h.
68064         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68065         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68066         * modules/lchown (EXTRA_DIST): Add lchown.h.
68067         * modules/long-options (EXTRA_DIST): Add long-options.h.
68068         * modules/lstat (EXTRA_DIST): Add lstat.h.
68069         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68070         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68071         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68072         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68073         * modules/memxor (EXTRA_DIST): Add memxor.h.
68074         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68075         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68076         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68077         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68078         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68079         * modules/physmem (EXTRA_DIST): Add physmem.h.
68080         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68081         * modules/posixver (EXTRA_DIST): Add posixver.h.
68082         * modules/quote (EXTRA_DIST): Add quote.h.
68083         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68084         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68085         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68086         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68087         regex_internal.h regexec.c.
68088         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68089         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68090         * modules/same (EXTRA_DIST): Add same.h.
68091         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68092         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68093         * modules/savedir (EXTRA_DIST): Add savedir.h.
68094         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68095         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68096         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68097         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68098         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68099         * modules/strdup (EXTRA_DIST): Add strdup.h.
68100         * modules/strftime (EXTRA_DIST): Add strftime.h.
68101         * modules/strndup (EXTRA_DIST): Add strndup.h.
68102         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68103         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68104         * modules/time_r (EXTRA_DIST): Add time_r.h.
68105         * modules/timespec (EXTRA_DIST): Add timespec.h.
68106         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68107         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68108         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68109         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68110         * modules/userspec (EXTRA_DIST): Add userspec.h.
68111         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68112         * modules/utimens (EXTRA_DIST): Add utimens.h.
68113         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68114         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68115         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68116         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68117         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68118         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68119         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68120         * modules/yesno (EXTRA_DIST): Add yesno.h.
68121
68122 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68123
68124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68125
68126         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68127         * m4/dev-ino.m4, same-inode.m4: Remove.
68128
68129         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68130         * m4/acl.m4 (AC_FUNC_ACL):
68131         * m4/backupfile.m4 (gl_BACKUPFILE):
68132         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68133         * m4/canon-host.m4 (gl_CANON_HOST):
68134         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68136         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68137         * m4/cloexec.m4 (gl_CLOEXEC):
68138         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68139         * m4/closeout.m4 (gl_CLOSEOUT):
68140         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68141         * m4/dirname.m4 (gl_DIRNAME):
68142         * m4/exclude.m4 (gl_EXCLUDE):
68143         * m4/exitfail.m4 (gl_EXITFAIL):
68144         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68145         * m4/file-type.m4 (gl_FILE_TYPE):
68146         * m4/filemode.m4 (gl_FILEMODE):
68147         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68148         * m4/fpending.m4 (gl_FUNC_FPENDING):
68149         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68150         * m4/fts.m4 (gl_FUNC_FTS):
68151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68152         * m4/getdate.m4 (gl_GETDATE):
68153         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68154         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68155         * m4/getpass.m4 (gl_FUNC_GETPASS):
68156         * m4/gettime.m4 (gl_GETTIME):
68157         * m4/getugroups.m4 (gl_GETUGROUPS):
68158         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68159         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68160         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68161         * m4/hash.m4 (gl_HASH):
68162         * m4/idcache.m4 (gl_IDCACHE):
68163         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68164         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68165         * m4/long-options.m4 (gl_LONG_OPTIONS):
68166         * m4/lstat.m4 (gl_FUNC_LSTAT):
68167         * m4/md5.m4 (gl_MD5):
68168         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68169         * m4/memcoll.m4 (gl_MEMCOLL):
68170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68172         * m4/memxor.m4 (gl_MEMXOR):
68173         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68175         * m4/modechange.m4 (gl_MODECHANGE):
68176         * m4/mountlist.m4 (gl_MOUNTLIST):
68177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68178         * m4/openat.m4 (gl_FUNC_OPENAT):
68179         * m4/pathmax.m4 (gl_PATHMAX):
68180         * m4/physmem.m4 (gl_PHYSMEM):
68181         * m4/posixtm.m4 (gl_POSIXTM):
68182         * m4/posixver.m4 (gl_POSIXVER):
68183         * m4/quote.m4 (gl_QUOTE):
68184         * m4/quotearg.m4 (gl_QUOTEARG):
68185         * m4/readtokens.m4 (gl_READTOKENS):
68186         * m4/readutmp.m4 (gl_READUTMP):
68187         * m4/regex.m4 (gl_REGEX):
68188         * m4/safe-read.m4 (gl_SAFE_READ):
68189         * m4/safe-write.m4 (gl_SAFE_WRITE):
68190         * m4/same.m4 (gl_SAME):
68191         * m4/save-cwd.m4 (gl_SAVE_CWD):
68192         * m4/savedir.m4 (gl_SAVEDIR):
68193         * m4/settime.m4 (gl_SETTIME):
68194         * m4/sha1.m4 (gl_SHA1):
68195         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68196         * m4/stat-macros.m4 (gl_STAT_MACROS):
68197         * m4/stat-time.m4 (gl_STAT_TIME):
68198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68199         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68200         * m4/strdup.m4 (gl_FUNC_STRDUP):
68201         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68202         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68203         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68204         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68205         * m4/time_r.m4 (gl_TIME_R):
68206         * m4/timespec.m4 (gl_TIMESPEC):
68207         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68208         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68209         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68210         * m4/userspec.m4 (gl_USERSPEC):
68211         * m4/utimecmp.m4 (gl_UTIMECMP):
68212         * m4/utimens.m4 (gl_UTIMENS):
68213         * m4/xalloc.m4 (gl_XALLOC):
68214         * m4/xgetcwd.m4 (gl_XGETCWD):
68215         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68216         * m4/xreadlink.m4 (gl_XREADLINK):
68217         * m4/xstrtod.m4 (gl_XSTRTOD):
68218         * m4/yesno.m4 (gl_YESNO):
68219         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68220         to get the necessary .h files and whatnot.
68221
68222 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68223             Bruno Haible  <bruno@clisp.org>
68224
68225         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68226         /bin/sh understanding of '!' conditional negation.
68227
68228 2006-08-21  Jim Meyering  <jim@meyering.net>
68229
68230         * modules/openat (Depends-on): Really alphabetize.
68231
68232         * modules/acl (Depends-on): Add error and quote.
68233
68234         * check-module (find_included_lib_files): Add at-func.c to the
68235         ok-to-include-more-than-once white list.
68236
68237         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68238
68239 2006-08-21  Bruno Haible  <bruno@clisp.org>
68240
68241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68242         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68243         Reported by Martin Lambers <marlam@marlam.de>.
68244
68245 2006-08-21  Bruno Haible  <bruno@clisp.org>
68246
68247         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68248         specify an installation location, don't emit a noinst_LIBRARIES or
68249         noinst_LTLIBRARIES assignment.
68250
68251 2006-08-21  Bruno Haible  <bruno@clisp.org>
68252
68253         BeOS portability.
68254         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68255         BeOS has mbrtowc() but no <wctype.h>.
68256
68257 2006-08-21  Bruno Haible  <bruno@clisp.org>
68258
68259         BeOS portability.
68260         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68261         exist.
68262
68263 2006-08-21  Bruno Haible  <bruno@clisp.org>
68264
68265         BeOS portability.
68266         * lib/mbchar.h: Include <wctype.h> only if it exists.
68267
68268 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         Remove files that are no longer needed by their respective modules.
68271         * m4/obstack.m4: Remove.
68272         * m4/strerror_r.m4: Remove.
68273         * m4/uint32_t.m4: Remove.
68274         * m4/uintptr_t.m4: Remove.
68275         * m4/ullong_max.m4: Remove.
68276         * m4/xstrtoimax.m4: Remove.
68277         * m4/xstrtoumax.m4: Remove.
68278
68279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68280         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68281         dependencies now capture this.
68282
68283         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68284         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68285         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68286         * m4/human.m4 (gl_HUMAN): Likewise.
68287         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68288         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68289
68290         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68291
68292         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68293         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68294         stdint.
68295         * m4/human.m4 (gl_HUMAN): Likewise.
68296         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68297         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68298         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68299         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68300         * m4/xstrtol (gl_XSTRTOL): Likewise.
68301
68302         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68303         AC_TYPE_LONG_LONG_INT.
68304         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68305         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68306         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68307         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68308
68309         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68310         on stdbool.
68311
68312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68313         (gl_PREREQ_XSTRTOUL): Remove.
68314
68315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68316
68317         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68318         mode.
68319
68320 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         Add and change modules to make it easier for coreutils to use
68323         gnulib-tool.
68324         * modules/backupfile (Files): Remove m4/d-ino.m4.
68325         (Depends-on): Add d-ino.
68326         * modules/cycle-check (Depends-on): Add stdint.
68327         (lib_SOURCES): Add cycle-check.h.
68328         * modules/d-ino: New module.
68329         * modules/d-type: New module.
68330         * modules/error (Files): Remove m4/strerror_r.m4.
68331         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68332         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68333         m4/inttypes_h.m4, m4/uintmax_t.m4.
68334         (Depends-on): Add stdint.
68335         (lib_SOURCES): Add fsusage.h.
68336         * modules/getcwd (Files): Remove d-ino.m4.
68337         (Depends-on): Add d-ino.
68338         * modules/getndelim2 (Depends-on): Add stdint.
68339         * modules/glob (Files): Remove m4/d-type.m4.
68340         (Depends-on): Add d-type.
68341         * modules/host-os: New module.
68342         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68343         m4/inttypes_h.m4, m4/uintmax_t.m4.
68344         * Depends-on: Add stdint.
68345         (lib_SOURCES): Add human.h.
68346         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68347         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68348         m4/uintmax_t.m4, m4/ulonglong.m4.
68349         (Depends-on): Add stdint.
68350         (EXTRA_DIST): Add inttostr.h.
68351         * modules/lchmod: New module.
68352         * modules/link-follow: New module.
68353         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68354         (Depends-on): Add lchmod.
68355         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68356         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68357         (Depends-on): Add stdint.
68358         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68359         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68360         (Depends-on): Add stdint.
68361         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68362         * modules/perl: New module.
68363         * modules/regex (Depends-on): Add stdint.
68364         * modules/rmdir-errno: New module.
68365         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68366         m4/intmax_t.m4.
68367         (Depends-on): Add stdint.
68368         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68369         m4/uintmax_t.m4.
68370         (Depends-on): Add stdint.
68371         * modules/unlink-busy: New module.
68372         * modules/utimecmp (Depends-on): Add stdint.
68373         * modules/uptime: New module.
68374         * modules/winsz-ioctl: New module.
68375         * modules/winsz-termios: New module.
68376         * modules/xnanosleep (Depends-on): Add nanosleep.
68377         * modules/ullong_max: Remove.
68378         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68379         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68380         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68382         (Depends-on): Add inttypes.
68383         (lib_SOURCES): Add xstrtol.h.
68384         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68385         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68386         * MODULES.html.sh: Move 'assert' into the assert section.
68387         Move 'dummy' into the linking section.
68388         Remove ullong_max.
68389         Add section for compatibility checks for POSIX:2001 functions,
68390         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68391         winsz-ioctl, and winsz-termios into it.
68392         Add lchmod.
68393         Add top-level Misc section and put host-os, perl, and uptime
68394         into it.
68395
68396 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68399         now assume the stdint module.  Do not include inttypes.h.
68400         * lib/fsusage.h: Likewise.
68401         * lib/getndelim2.c: Likewise.
68402         * lib/human.h: Likewise.
68403         * lib/inttostr.h: Likewise.
68404         * lib/obstack.c: Likewise.
68405         * lib/regex_internal.h: Likewise.
68406         * lib/tempname.c: Likewise.
68407         * lib/utimecmp.c: Likewise.
68408         * lib/xstrtol.h: Likewise.
68409
68410         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68411
68412         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68413         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68414         * lib/xtime.h: Likewise.
68415
68416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * modules/openat (Files): Add lib/fchmodat.c.
68419         Fixes problem reported by Jay Youngman.
68420
68421 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68424         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68425
68426 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68427             Bruno Haible  <bruno@clisp.org>
68428
68429         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68430         and is a script that invokes bison. Tighten the code. Add comments.
68431
68432 2006-08-18  Jim Meyering  <jim@meyering.net>
68433
68434         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68435         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68436         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68437         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68438
68439 2006-08-18  Bruno Haible  <bruno@clisp.org>
68440
68441         * modules/bison-i18n: New file.
68442         * MODULES.html.sh (Internationalization functions): Add it.
68443
68444 2006-08-18  Bruno Haible  <bruno@clisp.org>
68445
68446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68447         sys/statvfs.h. When getmntinfo was found, check its declaration and
68448         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68449
68450 2006-08-18  Bruno Haible  <bruno@clisp.org>
68451
68452         * m4/bison-i18n.m4: New file, from bison.
68453
68454 2006-08-18  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68457         (ME_DUMMY): Treat "kernfs" as a dummy.
68458         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68459
68460 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         Update from coreutils.
68463
68464         2006-08-15  Jim Meyering  <jim@meyering.net>
68465
68466         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68467
68468         2006-01-17  Jim Meyering  <jim@meyering.net>
68469
68470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68471
68472         2006-01-11  Jim Meyering  <jim@meyering.net>
68473
68474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68475         Check for the lchmod function.
68476
68477 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         Update from coreutils.
68480
68481         * lib/__fpending.h: Add copyright notice.
68482         * lib/fprintftime.h: Likewise.
68483         * lib/savedir.c: Use (C) in copyright notice.
68484         * lib/savedir.h: Likewise.
68485
68486         2006-08-15  Jim Meyering  <jim@meyering.net>
68487
68488         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68489         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68490         in support of the EXPECTED_ERRNO macro.
68491         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68492         definitions.  Instead, define the appropriate symbols and include
68493         "at-func.c".
68494         * lib/mkdirat.c (mkdirat): Likewise.
68495         * lib/fchmodat.c (fchmodat): Likewise.
68496         (ENOSYS): Remove definition.
68497         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68498         it.  Don't include "unistd--.h" -- it wasn't ever used.
68499
68500         2006-01-17  Jim Meyering  <jim@meyering.net>
68501
68502         Rewrite fts.c not to change the current working directory,
68503         by using openat, fstatat, fdopendir, etc..
68504
68505         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68506         (HAVE_OPENAT_SUPPORT): Define.
68507         [_LIBC] (fchdir): Don't undef or define; no longer used.
68508         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68509         Now, this `function' always succeeds, and consumes its file descriptor
68510         parameter -- so callers must not close such FDs.  Update callers.
68511         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68512         (diropen): Add parameter, SP.  Adjust all callers.
68513         Implement using diropen_fd, rather than open.
68514         (fts_open): Initialize new member, fts_cwd_fd.
68515         Remove fts_rft-setting code.
68516         (fts_close): Close fts_cwd_fd, if necessary.
68517         (__opendir2): Define in terms of opendir or opendirat,
68518         depending on whether the FST_NOCHDIR flag is set.
68519         (fts_build): Since fts_safe_changedir consumes its FD, and since
68520         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68521         and close the dup'd file descriptor upon failure.
68522         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68523         (fts_safe_changedir): Tweak semantics to reflect that this function
68524         now calls cwd_advance_fd and hence consumes its FD argument.
68525         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68526         [struct FTS] (fts_rft): Remove now-unused member.
68527         [struct FTS] (fts_cycle.state): Improve comment.
68528
68529         * lib/openat.c (openat_needs_fchdir): New function.
68530         * lib/openat.h (openat_needs_fchdir): Declare it.
68531
68532 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68535         Problem and fix reported by Pádraig Brady in
68536         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68537
68538 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68541
68542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * lib/memcoll.c (memcoll): Optimize for the common case where the
68545         arguments are bytewise equal.
68546
68547 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68548
68549         * doc/regexprops-generic.texi: Add a copyright notice.
68550
68551 2006-08-15  Bruno Haible  <bruno@clisp.org>
68552
68553         * modules/tmpdir (License): Change to LGPL.
68554
68555 2006-08-15  Bruno Haible  <bruno@clisp.org>
68556
68557         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68558         module.
68559
68560 2006-08-14  Simon Josefsson  <jas@extundo.com>
68561
68562         * config/srclist.txt: Add gnupload.
68563
68564 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         Change copyright notice from LGPL 2 to GPL 2, since that's the
68567         standard form used in the gnulib repository.
68568         * tests/test-lock.c: Likewise.
68569         * tests/test-stdint.c: Likewise.
68570         * tests/test-tls.c: Likewise.
68571
68572         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68573         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68574         Add copyright notice.
68575
68576         * check-module: Add copyright notice.  Output a copyright
68577         notice if "--version" is specified.
68578         * modules/COPYING: New file.
68579         * tests/test-getaddrinfo.c: Add copyright notice.
68580         * tests/test-verify.c: Likewise.
68581
68582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         Change copyright notice from LGPL 2 to GPL 2, since that's the
68585         standard form used in the gnulib repository.
68586         * lib/lock.c: LGPL -> GPL.
68587         * lib/lock.h: Likewise.
68588         * lib/strnlen1.c: Likewise.
68589         * lib/strnlen1.h: Likewise.
68590         * lib/tls.c: Likewise.
68591         * lib/tls.h: Likewise.
68592         * lib/tmpdir.c: Likewise.
68593
68594         * lib/TODO: Remove; this belongs only in coreutils.
68595
68596 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         Add copyright notices to long-enough files that lack them, since
68599         otherwise the files aren't clearly free.  Use the same notice that
68600         getdate.texi already uses.
68601         * doc/alloca-opt.texi: Add copyright notice.
68602         * doc/alloca.texi: Likewise.
68603         * doc/ctime.texi: Likewise.
68604         * doc/functions.texi: Likewise.
68605         * doc/gcd.texi: Likewise.
68606         * doc/gnulib-tool.texi: Likewise.
68607         * doc/inet_ntoa.texi: Likewise.
68608         * doc/visibility.texi: Likewise.
68609
68610         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68611         * doc/quote.texi: Add copyright notice.
68612
68613         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68614         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68615         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68616         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68617         is now obsolete, and give a pointer to the Sun list.
68618         Add copyright notice.
68619
68620 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * config/srclistvars.sh: Add copyright notice.
68623
68624 2006-08-14  Eric Blake  <ebb9@byu.net>
68625
68626         Import the following change from libc:
68627
68628         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68629
68630         Upstream bug 2997.
68631         * lib/misc/error.c: Add space between program name and message if file
68632         name is missing.
68633
68634 2006-08-12  Karl Berry  <karl@gnu.org>
68635
68636         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68637         remove, these originate in gnulib now.
68638
68639 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68640
68641         * doc/Makefile (standards.info standards.html standards.dvi):
68642         Also depend on make-stds.texi.
68643
68644 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68647         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68648
68649         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68650         in wchar_t.  Problem reported by Eric Blake.
68651
68652         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68653         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68654         Also, help the compiler to keep LEN in a register.
68655
68656 2006-08-11  Eric Blake  <ebb9@byu.net>
68657
68658         * users.txt: Sort.  Add tar.
68659
68660 2006-08-11  Bruno Haible  <bruno@clisp.org>
68661
68662         * users.txt: New file.
68663
68664 2006-08-11  Bruno Haible  <bruno@clisp.org>
68665
68666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68667         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68668
68669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * modules/snprintf (Depends-on): Remove minmax.
68672         (Maintainer): Add self and Bruno.
68673
68674 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68677         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68678         (EOVERFLOW): Define if the system does not.
68679         Do not include "minmax.h"; it wasn't used.
68680         (snprintf): Don't assume size_t promotes to an unsigned type.
68681         Fix bug when generated string was too long for the buffer: the
68682         buffer's contents are supposed to be the initial prefix of the
68683         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68684         exceeds INT_MAX; do the check ourselves.
68685
68686         Import the following changes from libc:
68687
68688         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68689
68690         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68691         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68692         set wc to the byte which couldn't be converted.
68693         (re_string_reconstruct): Don't clear valid_raw_len before calling
68694         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68695         tip_context using re_string_context_at.
68696
68697         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68698
68699         * lib/posix/regex.h: g++ still cannot handled [restrict].
68700
68701         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68702
68703         * lib/posix/regex.h: Remove special handling for VMS.
68704
68705 2006-08-10  Jim Meyering  <jim@meyering.net>
68706
68707         * modules/same-inode: New module.
68708         * modules/dev-ino: New module.
68709         * modules/cycle-check: Depend on these modules, rather than simply
68710         including their .h files.
68711         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68712         required via m4/cycle-check.m4.
68713         * modules/same: Depend on new same-inode module, rather than
68714         including same-inode.h.
68715         * modules/chdir-safer: New file.
68716
68717         * modules/chown (Depends-on): Add stat-macros.
68718
68719 2006-08-10  Jim Meyering  <jim@meyering.net>
68720
68721         * m4/cycle-check.m4: New file.
68722         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68723         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68724
68725 2006-08-10  Eric Blake  <ebb9@byu.net>
68726
68727         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68728         in from original proposal.
68729
68730 2006-08-10  Eric Blake  <ebb9@byu.net>
68731         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68732
68733         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68734         namespace.
68735
68736 2006-08-10  Bruno Haible  <bruno@clisp.org>
68737
68738         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68739         as well.
68740
68741 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         Sync from coreutils.
68744
68745         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68746
68747         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68748         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68749
68750 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68751
68752         * modules/restrict: Remove; no longer needed now that we assume
68753         Autoconf 2.59 or later.
68754         * MODULES.html.sh: Remove 'restrict'.
68755         * modules/argp (Depends-on): Remove 'restrict'.
68756         * modules/base64 (Depends-on): Likewise.
68757         * modules/gc (Depends-on): Likewise.
68758         * modules/getaddrinfo (Depends-on): Likewise.
68759         * modules/glob (Depends-on): Likewise.
68760         * modules/inet_ntop (Depends-on): Likewise.
68761         * modules/inet_pton (Depends-on): Likewise.
68762         * modules/memxor (Depends-on): Likewise.
68763         * modules/regex (Depends-on): Likewise.
68764         * modules/strtok_r (Depends-on): Likewise.
68765         * modules/time_r (Depends-on): Likewise.
68766
68767 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68768
68769         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68770         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68771         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68772         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68773         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68774         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68775         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68776         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68777
68778         Merge from coreutils.
68779         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68780         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68782         * m4/time_r.m4 (gl_TIME_R): Likewise.
68783
68784 2006-08-09  Karl Berry  <karl@gnu.org>
68785
68786         * config/srclist.txt: no more gettext-tools, per Bruno.
68787
68788 2006-08-08  Eric Blake  <ebb9@byu.net>
68789
68790         * modules/verror: New module.
68791         * MODULES.html.sh: Document it.
68792
68793 2006-08-08  Eric Blake  <ebb9@byu.net>
68794
68795         * lib/verror.h, lib/verror.c: New files.
68796
68797 2006-08-08  Eric Blake  <ebb9@byu.net>
68798
68799         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68800         verror_at_line output complies with GNU Coding Standards even when
68801         file is NULL.
68802
68803 2006-08-07  Bruno Haible  <bruno@clisp.org>
68804
68805         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68806         versions of AIX.
68807         Reported by Ralf Wildenhues.
68808
68809 2006-08-07  Bruno Haible  <bruno@clisp.org>
68810
68811         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68812         in an AC_DEFUN. Needed so that the autoconf snippets can use
68813         AC_REQUIRE.
68814
68815 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68816
68817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68818         Initialize pkgdata_DATA.
68819         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68820         overriding it.
68821
68822 2006-08-06  Eric Blake  <ebb9@byu.net>
68823
68824         * lib/error.h: Fold in some upstream changes from glibc.
68825         * lib/error.c: Likewise.
68826
68827 2006-08-04  Bruno Haible  <bruno@clisp.org>
68828
68829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68830         Make the mostlyclean-local rule depend on mostlyclean-generic.
68831         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68832
68833 2006-07-31  Bruno Haible  <bruno@clisp.org>
68834
68835         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68836         <stdlib.h>, <string.h>.
68837
68838 2006-07-30  Bruno Haible  <bruno@clisp.org>
68839
68840         * modules/readlink (License): Change to LGPL.
68841
68842 2006-07-30  Bruno Haible  <bruno@clisp.org>
68843
68844         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68845         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68846         set PKGDATADIR to point to it.
68847
68848 2006-07-30  Bruno Haible  <bruno@clisp.org>
68849
68850         * modules/csharpexec (configure.ac): Comment out macro invocation.
68851         * modules/javaexec (configure.ac): Likewise.
68852         * modules/javacomp-script (configure.ac): Likewise.
68853
68854         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68855
68856 2006-07-30  Bruno Haible  <bruno@clisp.org>
68857
68858         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68859         linked-list.
68860
68861 2006-07-30  Bruno Haible  <bruno@clisp.org>
68862
68863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68864
68865 2006-07-30  Bruno Haible  <bruno@clisp.org>
68866
68867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68868         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68869         get removed.
68870
68871 2006-07-29  Bruno Haible  <bruno@clisp.org>
68872
68873         Make it possible for gnulib-tool to work with locally modified or
68874         augmented gnulib repositories.
68875         * gnulib-tool (func_usage): Document --local-dir option.
68876         (local_gnulib_dir): New variable.
68877         Handle --local-dir option.
68878         (func_lookup_file): New function.
68879         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68880         (func_get_description, func_get_filelist, func_get_description,
68881         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68882         func_get_automake_snippet, func_get_include_directive,
68883         func_get_license, func_get_maintainer): Use func_lookup_file.
68884         (func_import, func_create_testdir): Use func_lookup_file.
68885
68886 2006-07-29  Bruno Haible  <bruno@clisp.org>
68887
68888         * modules/setenv (Depends-on): Add unistd.
68889
68890 2006-07-29  Bruno Haible  <bruno@clisp.org>
68891
68892         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68893
68894 2006-07-29  Bruno Haible  <bruno@clisp.org>
68895
68896         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68897
68898 2006-07-29  Bruno Haible  <bruno@clisp.org>
68899
68900         * gnulib-tool (import, update): If there is no Makefile.am, look at
68901         aclocal.m4, instead of bailing out.
68902
68903 2006-07-29  Bruno Haible  <bruno@clisp.org>
68904
68905         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68906         Categorize the options by when they are useful.
68907
68908 2006-07-29  Bruno Haible  <bruno@clisp.org>
68909
68910         * gnulib-tool (func_usage): Document option --no-libtool.
68911         Handle option --no-libtool.
68912         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68913         for changed semantics of $libtool variable.
68914         (func_import): Likewise. If libtool is not used, show this through
68915         an option --no-libtool.
68916         (func_create_testdir): Update.
68917
68918 2006-07-29  Bruno Haible  <bruno@clisp.org>
68919
68920         * gnulib-tool (func_import): Extend error message about missing
68921         --doc-base.
68922
68923 2006-07-29  Bruno Haible  <bruno@clisp.org>
68924
68925         * gnulib-tool (func_import): Don't create the $docbase directory if
68926         there is no file to store there.
68927
68928 2006-07-29  Bruno Haible  <bruno@clisp.org>
68929
68930         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68931         relevant, look for configure.ac there, not in the current directory.
68932         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68933
68934 2006-07-29  Bruno Haible  <bruno@clisp.org>
68935
68936         * gnulib-tool (SORT): New variable.
68937         (func_usage): Undocument --assume-autoconf option.
68938         Remove --assume-autoconf option handling.
68939         (autoconf_minversion): Determine from the contents of configure.ac.
68940         (func_import): Remove autoconf_minversion handling.
68941         Suggested by Eric Blake.
68942
68943 2006-07-29  Bruno Haible  <bruno@clisp.org>
68944
68945         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68946
68947 2006-07-29  Bruno Haible  <bruno@clisp.org>
68948
68949         * config/srclist.txt (*setenv.[ch]): Remove rules.
68950
68951 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68952
68953         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68954
68955 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68956
68957         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68958         arpa/inet.h.
68959
68960 2006-07-28  Simon Josefsson  <jas@extundo.com>
68961
68962         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68963         * modules/inet_pton (Depends-on): Likewise.
68964
68965 2006-07-28  Simon Josefsson  <jas@extundo.com>
68966
68967         * m4/netinet_in_h.m4: New file.
68968
68969 2006-07-28  Simon Josefsson  <jas@extundo.com>
68970
68971         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68972         #include's.
68973
68974 2006-07-28  Simon Josefsson  <jas@extundo.com>
68975
68976         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68977         #include's.
68978
68979 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68980
68981         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68982         setgid on directories only if they set these bits.
68983         * lib/modechange.h: Remove obsolete comment about masks.
68984
68985 2006-07-28  Eric Blake  <ebb9@byu.net>
68986
68987         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68988         macro expansion.
68989
68990 2006-07-28  Bruno Haible  <bruno@clisp.org>
68991
68992         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68993
68994 2006-07-28  Bruno Haible  <bruno@clisp.org>
68995
68996         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68997
68998 2006-07-28  Bruno Haible  <bruno@clisp.org>
68999
69000         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69001         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69002         Define fallbacks.
69003         Avoids link error on FreeBSD 4.x.
69004         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69005
69006         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69007         encoding.
69008         * lib/mbswidth.c (iswcntrl): Likewise.
69009
69010 2006-07-27  Bruno Haible  <bruno@clisp.org>
69011
69012         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69013         test.
69014
69015 2006-07-27  Bruno Haible  <bruno@clisp.org>
69016
69017         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69018         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69019         defined.
69020
69021 2006-07-26  Eric Blake  <ebb9@byu.net>
69022
69023         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69024
69025 2006-07-26  Eric Blake  <ebb9@byu.net>
69026
69027         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69028         like mingw that lack mkstemp.
69029         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69030         avoid compilation warning on mingw.
69031
69032 2006-07-26  Bruno Haible  <bruno@clisp.org>
69033
69034         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69035         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69036         INT_FAST*_MIN, INTPTR_MIN.
69037
69038 2006-07-25  Bruno Haible  <bruno@clisp.org>
69039
69040         * modules/version-etc (Depends-on): Add stdarg.
69041
69042 2006-07-25  Bruno Haible  <bruno@clisp.org>
69043
69044         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69045         complex commands.
69046
69047 2006-07-25  Bruno Haible  <bruno@clisp.org>
69048
69049         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69050         defined in <stdarg.h> or config.h.
69051
69052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69055         (gl_STDIO_SAFER): Remove.
69056
69057 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69058
69059         * MODULES.html.sh (File stream based Input/Output):
69060         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69061         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69062         * modules/fopen-safer, modules/tmpfile-safer: New files.
69063         * modules/stdio-safer: Remove.
69064
69065 2006-07-24  Bruno Haible  <bruno@clisp.org>
69066
69067         * modules/tmpdir: New file.
69068         * MODULES.html.sh (File system functions): Add it.
69069
69070 2006-07-24  Bruno Haible  <bruno@clisp.org>
69071
69072         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69073         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69074
69075 2006-07-24  Bruno Haible  <bruno@clisp.org>
69076
69077         * modules/clean-temp: New file.
69078
69079 2006-07-24  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/tmpdir.m4: New file, from GNU gettext.
69082
69083 2006-07-24  Bruno Haible  <bruno@clisp.org>
69084
69085         * lib/tmpdir.h: New file, from GNU gettext.
69086         * lib/tmpdir.c: New file, from GNU gettext.
69087
69088 2006-07-24  Bruno Haible  <bruno@clisp.org>
69089
69090         * lib/clean-temp.h: New file, from GNU gettext.
69091         * lib/clean-temp.c: New file, from GNU gettext.
69092
69093 2006-07-23  Eric Blake  <ebb9@byu.net>
69094
69095         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69096         (Depends-on): Add binary-io.
69097
69098 2006-07-23  Eric Blake  <ebb9@byu.net>
69099
69100         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69101
69102 2006-07-23  Eric Blake  <ebb9@byu.net>
69103
69104         * lib/tmpfile-safer.c: New file.
69105         * lib/stdio-safer.h (fopen_safer): Add prototype.
69106         * lib/stdio--.h (tmpfile): Make safer.
69107
69108 2006-07-23  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69111         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69112         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69113         gl_linked_remove_at): Use it.
69114
69115 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69116         and Simon Josefsson <jas@extundo.com>
69117
69118         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69119
69120         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69121
69122 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         * modules/close-stream: New file.
69125         * modules/closeout (Description): Make it clear that it exits
69126         with a diagnostic on error.
69127         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69128         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69129
69130 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69131
69132         * m4/close-stream.m4: New file.
69133
69134 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * lib/close-stream.c, lib/close-stream.h: New files.
69137
69138 2006-07-22  Bruno Haible  <bruno@clisp.org>
69139
69140         Merge from GNU gettext 0.15.
69141
69142         2006-05-01  Bruno Haible  <bruno@clisp.org>
69143
69144                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69145
69146         2006-07-22  Bruno Haible  <bruno@clisp.org>
69147
69148                 * modules/javaversion: New file.
69149                 * MODULES.html.sh (Java): Add javaversion.
69150
69151         2006-03-12  Bruno Haible  <bruno@clisp.org>
69152
69153                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69154
69155         2005-12-04  Bruno Haible  <bruno@clisp.org>
69156
69157                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69158                 (untested).
69159
69160         2006-06-21  Bruno Haible  <bruno@clisp.org>
69161
69162                 Avoid warnings from recent versions of mcs.
69163                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69164                 -o, -L, -r any more. Use options documented since mcs-1.0
69165                 instead. Similarly for -g.
69166
69167         2005-12-04  Bruno Haible  <bruno@clisp.org>
69168
69169                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69170                 .resources, not .resource.
69171
69172         2005-07-09  Bruno Haible  <bruno@clisp.org>
69173
69174                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69175                 add a .dll suffix.
69176                 Reported by Mark Junker <mjscod@gmx.de>.
69177
69178         2006-07-22  Bruno Haible  <bruno@clisp.org>
69179
69180                 * modules/gettext: Upgrade to gettext-0.15.
69181                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69182                 m4/visibility.m4.
69183                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69184
69185 2006-07-22  Bruno Haible  <bruno@clisp.org>
69186
69187         Merge from GNU gettext 0.15.
69188
69189         2006-03-25  Bruno Haible  <bruno@clisp.org>
69190
69191                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69192
69193         2006-07-21  Bruno Haible  <bruno@clisp.org>
69194
69195                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69196                 "1.1".
69197
69198         2006-05-09  Bruno Haible  <bruno@clisp.org>
69199
69200                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69201                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69202                 for the conftestver execution.
69203
69204         2006-05-01  Bruno Haible  <bruno@clisp.org>
69205
69206                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69207                 optional target-version argument. Verify that the compiler
69208                 groks source of the specified source-version, or add -source
69209                 option as necessary. Verify that the compiler produces
69210                 bytecode in the specified target-version, or add -target and
69211                 -source options as necessary. Make the result of the test
69212                 available as variable CONF_JAVAC. Also log error output in
69213                 config.log.
69214
69215         2006-03-11  Bruno Haible  <bruno@clisp.org>
69216
69217                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69218
69219         2006-05-09  Bruno Haible  <bruno@clisp.org>
69220
69221                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69222                 CLASSPATH_SEPARATOR to a semicolon.
69223
69224         2006-03-12  Bruno Haible  <bruno@clisp.org>
69225
69226                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69227                 available as variable CONF_JAVA, for subsequent autoconf
69228                 tests. Also log error output in config.log.
69229
69230         2006-07-19  Bruno Haible  <bruno@clisp.org>
69231
69232                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69233                 that getline works on glibc2 systems. Needed to avoid trouble
69234                 in relocatable.c.
69235                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69236
69237         2005-12-04  Bruno Haible  <bruno@clisp.org>
69238
69239                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69240                 launcher (untested).
69241
69242         2005-12-04  Bruno Haible  <bruno@clisp.org>
69243
69244                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69245
69246         2006-07-22  Bruno Haible  <bruno@clisp.org>
69247
69248                 * gettext.m4: Update from GNU gettext-0.15.
69249                 * nls.m4: Likewise.
69250                 * po.m4: Likewise.
69251                 * inttypes-pri.m4: Likewise.
69252                 * inttypes-h.m4: Renamed from inttypes.m4.
69253                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69254
69255 2006-07-22  Bruno Haible  <bruno@clisp.org>
69256
69257         Merge from GNU gettext 0.15.
69258
69259         2005-07-05  Bruno Haible  <bruno@clisp.org>
69260
69261                 * printf-args.c (printf_fetchargs): Work around broken
69262                 definition of wint_t on mingw.
69263
69264         2005-02-12  Bruno Haible  <bruno@clisp.org>
69265
69266                 * xallocsa.h: Add extern "C" for C++.
69267
69268         2006-05-17  Bruno Haible  <bruno@clisp.org>
69269
69270                 Cygwin portability.
69271                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69272
69273         2006-04-30  Bruno Haible  <bruno@clisp.org>
69274
69275                 * progreloc.c: Include <mach-o/dyld.h> if available.
69276                 (find_executable): Use _NSGetExecutablePath when possible.
69277
69278         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69279
69280                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69281                 function.
69282
69283         2005-12-29  Bruno Haible  <bruno@clisp.org>
69284
69285                 * progreloc.c (set_program_name_and_installdir): Fix
69286                 compilation error.
69287
69288         2005-12-04  Bruno Haible  <bruno@clisp.org>
69289
69290                 Cygwin portability.
69291                 * progreloc.c: Include <windows.h> also on Cygwin.
69292                 (find_executable): Add support for Cygwin.
69293                 (set_program_name_and_installdir): Handle also platforms with
69294                 nonempty EXEEXT.
69295
69296         2006-07-11  Bruno Haible  <bruno@clisp.org>
69297
69298                 * javacomp.c: Fix a comment.
69299                 Reported by Jim Meyering.
69300
69301         2006-04-30  Bruno Haible  <bruno@clisp.org>
69302
69303                 * javacomp.h (compile_java_class): Add source_version,
69304                 target_version arguments.
69305                 * javacomp.c: Rewritten to choose only a compiler that
69306                 respects the specified source_version and target_version.
69307
69308         2006-06-27  Bruno Haible  <bruno@clisp.org>
69309
69310                 Assume correct S_ISDIR macro.
69311                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69312
69313         2006-07-22  Bruno Haible  <bruno@clisp.org>
69314
69315                 * javaversion.h: New file, from GNU gettext.
69316                 * javaversion.c: New file, from GNU gettext.
69317                 * javaversion.java: New file, from GNU gettext.
69318                 * javaversion.class: New file, from GNU gettext.
69319
69320         2006-05-17  Bruno Haible  <bruno@clisp.org>
69321
69322                 Cygwin portability.
69323                 * javaexec.c (execute_java_class): Test for jview program
69324                 also on Cygwin.
69325
69326         2006-04-09  Bruno Haible  <bruno@clisp.org>
69327
69328                 * fatal-signal.c: Don't include string.h.
69329                 (at_fatal_signal): Use a copying loop instead of memcpy.
69330
69331         2005-12-04  Bruno Haible  <bruno@clisp.org>
69332
69333                 * csharpexec.c: Add support for 'clix' launcher (untested).
69334                 (execute_csharp_using_sscli): New function.
69335                 (execute_csharp_program): Call it.
69336
69337         2006-06-21  Bruno Haible  <bruno@clisp.org>
69338
69339                 Avoid warnings from recent versions of mcs.
69340                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69341                 -o, -L, -r any more. Use options documented since mcs-1.0
69342                 instead. Similarly for -g.
69343
69344         2005-07-09  Bruno Haible  <bruno@clisp.org>
69345
69346                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69347                 add a .dll suffix.
69348                 Reported by Mark Junker <mjscod@gmx.de>.
69349
69350         2006-06-17  Bruno Haible  <bruno@clisp.org>
69351
69352                 * config.charset: Update for NetBSD 3.0.
69353
69354         2006-05-17  Bruno Haible  <bruno@clisp.org>
69355
69356                 Cygwin portability.
69357                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69358
69359         2006-05-16  Bruno Haible  <bruno@clisp.org>
69360
69361                 * localcharset.c [CYGWIN]: Include <windows.h>.
69362                 (get_charset_aliases): For Cygwin, return the same CPxxx
69363                 aliases list as under WIN32.
69364                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69365                 the environment variables. Fall back to GetACP().
69366
69367         2006-04-05  Bruno Haible  <bruno@clisp.org>
69368
69369                 * config.charset: Update Juan Manuel Guerrero's address.
69370
69371         2005-02-12  Bruno Haible  <bruno@clisp.org>
69372
69373                 * allocsa.h: Add extern "C" for C++.
69374
69375         2005-02-10  Bruno Haible  <bruno@clisp.org>
69376
69377                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69378                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69379
69380         2006-07-22  Bruno Haible  <bruno@clisp.org>
69381
69382                 * gettext.h: Update to GNU gettext-0.15.
69383
69384 2006-07-22  Bruno Haible  <bruno@clisp.org>
69385
69386         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69387         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69388         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69389
69390 2006-07-21  Eric Blake  <ebb9@byu.net>
69391
69392         * modules/stdlib-safer: New file.
69393         * MODULES.html.sh (File stream based Input/Output): Add
69394         stdlib-safer.
69395
69396 2006-07-21  Eric Blake  <ebb9@byu.net>
69397
69398         * lib/stdlib-safer.h: New file from coreutils, required by
69399         stdlib--.h.
69400
69401 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69404
69405 2006-07-20  Bruno Haible  <bruno@clisp.org>
69406
69407         * gnulib-tool: Recognize new option --assume-autoconf.
69408         (autoconf_minversion): New variable.
69409         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69410
69411 2006-07-20  Bruno Haible  <bruno@clisp.org>
69412
69413         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69414
69415 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69416
69417         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69418         Reindent and repaginate.
69419
69420 2006-07-19  Derek Price  <derek@ximbiot.com>
69421
69422         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69423         Correct grammar.
69424
69425 2006-07-17  Bruno Haible  <bruno@clisp.org>
69426
69427         * modules/list: New file.
69428         * modules/array-list: New file.
69429         * modules/carray-list, modules/carray-list-tests: New files.
69430         * modules/linked-list, modules/linked-list-tests: New files.
69431         * modules/avltree-list, modules/avltree-list-tests: New files.
69432         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69433         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69434         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69435         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69436         * modules/oset: New file.
69437         * modules/array-oset: New file.
69438         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69439         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69440         * tests/test-carray_list.c: New file.
69441         * tests/test-linked_list.c: New file.
69442         * tests/test-avltree_list.c: New file.
69443         * tests/test-rbtree_list.c: New file.
69444         * tests/test-linkedhash_list.c: New file.
69445         * tests/test-avltreehash_list.c: New file.
69446         * tests/test-rbtreehash_list.c: New file.
69447         * tests/test-avltree_oset.c: New file.
69448         * tests/test-rbtree_oset.c: New file.
69449         * MODULES.html.sh (Container data structures): New section.
69450
69451 2006-07-17  Bruno Haible  <bruno@clisp.org>
69452
69453         * m4/gl_list.m4: New file.
69454
69455 2006-07-17  Bruno Haible  <bruno@clisp.org>
69456
69457         * lib/gl_list.h: New file.
69458         * lib/gl_list.c: New file.
69459         * lib/gl_array_list.h: New file.
69460         * lib/gl_array_list.c: New file.
69461         * lib/gl_carray_list.h: New file.
69462         * lib/gl_carray_list.c: New file.
69463         * lib/gl_linked_list.h: New file.
69464         * lib/gl_linked_list.c: New file.
69465         * lib/gl_anylinked_list1.h: New file.
69466         * lib/gl_anylinked_list2.h: New file.
69467         * lib/gl_avltree_list.h: New file.
69468         * lib/gl_avltree_list.c: New file.
69469         * lib/gl_anyavltree_list1.h: New file.
69470         * lib/gl_anyavltree_list2.h: New file.
69471         * lib/gl_rbtree_list.h: New file.
69472         * lib/gl_rbtree_list.c: New file.
69473         * lib/gl_anyrbtree_list1.h: New file.
69474         * lib/gl_anyrbtree_list2.h: New file.
69475         * lib/gl_anytree_list1.h: New file.
69476         * lib/gl_anytree_list2.h: New file.
69477         * lib/gl_linkedhash_list.h: New file.
69478         * lib/gl_linkedhash_list.c: New file.
69479         * lib/gl_anyhash_list1.h: New file.
69480         * lib/gl_anyhash_list2.h: New file.
69481         * lib/gl_avltreehash_list.h: New file.
69482         * lib/gl_avltreehash_list.c: New file.
69483         * lib/gl_rbtreehash_list.h: New file.
69484         * lib/gl_rbtreehash_list.c: New file.
69485         * lib/gl_anytreehash_list1.h: New file.
69486         * lib/gl_anytreehash_list2.h: New file.
69487
69488         * lib/gl_oset.h: New file.
69489         * lib/gl_oset.c: New file.
69490         * lib/gl_array_oset.h: New file.
69491         * lib/gl_array_oset.c: New file.
69492         * lib/gl_avltree_oset.h: New file.
69493         * lib/gl_avltree_oset.c: New file.
69494         * lib/gl_rbtree_oset.h: New file.
69495         * lib/gl_rbtree_oset.c: New file.
69496         * lib/gl_anytree_oset.h: New file.
69497
69498 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69499
69500         * m4/mkancesdirs.m4: New file.
69501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69502         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69503         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69504         it.
69505
69506 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69509         * lib/mkancesdirs.h: New files.
69510         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69511         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69512         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69513         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69514         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69515         callers changed.  Revamp internals significantly, by not
69516         attempting to create directories that are temporarily more
69517         permissive than the final results.  Do not attempt to use
69518         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69519         This removes some race conditions, fixes some bugs, and simplifies
69520         things.  Use new dirchownmod function to do owner and mode changes.
69521         * lib/mkdir-p.h: Likewise.
69522         * lib/modechange.c (octal_to_mode): New function.
69523         (struct mode_change): New member mentioned.
69524         (make_node_op_equals): New arg mentioned.  All callers changed.
69525         (mode_compile): Keep track of which mode bits the user has explicitly
69526         mentioned.
69527         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69528         New arg PMODE_BITS, to keep track of which mode bits the user
69529         mentioned; it treats S_ISUID and S_ISGID speciall.
69530         All callers changed.
69531         * lib/modechange.h: Likewise.
69532
69533 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69534
69535         * MODULES.html.sh: Add mkancestors.
69536         * modules/mkancesdirs: New module.
69537         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69538         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69539         The chdir-safer and afs files are now orphans; I'll remove them
69540         unless someone speaks up.
69541         Add lib/dirchownmod.c, lib/dirchownmod.h.
69542         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69543         Add lchown, mkancesdirs.
69544         (Maintainer): Add self.
69545
69546 2006-07-15  Karl Berry  <karl@gnu.org>
69547
69548         * gnulib-tool: help message wording/arrangement.
69549
69550 2006-07-14  Simon Josefsson  <jas@extundo.com>
69551
69552         * doc/gnulib.texi (Libtool and Windows): New section.
69553
69554 2006-07-12  Simon Josefsson  <jas@extundo.com>
69555
69556         * modules/gendocs (License): Fix license, approved by Karl.
69557
69558 2006-07-12  Eric Blake  <ebb9@byu.net>
69559
69560         * MODULES.html.sh: Add gendocs.
69561
69562 2006-07-11  Eric Blake  <ebb9@byu.net>
69563
69564         * modules/fdl: New module, to install doc/fdl.texi.
69565         * MODULES.html.sh: Add new section for documentation modules.
69566         * gnulib-tool: Avoid space-tab.
69567         (--doc-base): New option, to manage files from doc.
69568
69569 2006-07-11  Eric Blake  <ebb9@byu.net>
69570
69571         * m4/absolute-header.m4: Fix comments to match recent change.
69572
69573 2006-07-11  Eric Blake  <ebb9@byu.net>
69574
69575         * gnulib-tool: List --doc-base before --tests-base.
69576
69577 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69578
69579         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69580
69581 2006-07-11  Bruno Haible  <bruno@clisp.org>
69582
69583         * README: Mention where to put documentation.
69584
69585 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69586
69587         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69588
69589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69592         to stdint.m4.
69593
69594 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69595
69596         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69597         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69598         "no/such/file/stdint.h" when there is no such file, so that
69599         the resulting C code can be parsed by dodgy compilers.
69600         Problems reported by Bob Proulx.
69601
69602 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69603
69604         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69605         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69606         macros into the GNU _D_EXACT_NAMLEN.
69607         * lib/savedir.c:  Likewise.
69608         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69609
69610 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69611         and Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69614         * m4/savedir.m4:
69615         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69616         macros into the GNU _D_EXACT_NAMLEN.
69617
69618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69619
69620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69621         around the absolute name, to work around a problem with the HP-UX
69622         11.23 native C compiler, reported by Bob Proulx.
69623
69624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69625
69626         * doc/maintain.texi, make-stds.texi: Sync from
69627         <http://savannah.gnu.org/projects/gnustandards>.
69628
69629 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69632
69633 2006-07-09  Jim Meyering  <jim@meyering.net>
69634
69635         * m4/glob.m4: Remove a doubled word in a comment.
69636
69637 2006-07-09  Jim Meyering  <jim@meyering.net>
69638
69639         * lib/argp-pv.c: Remove a doubled word in a comment.
69640         * lib/check-version.c (check_version): Likewise.
69641         * lib/javacomp.c (compile_java_class): Likewise.
69642
69643 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69646         for the benefit of people using Autoconf 2.60.  If you want to
69647         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69648         (or m4/onceonly.m4, if pre-2.57) manually.
69649
69650 2006-07-08  Jim Meyering  <jim@meyering.net>
69651
69652         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69653         comment.
69654         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69655         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69656         comment.
69657
69658 2006-07-08  Jim Meyering  <jim@meyering.net>
69659
69660         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69661
69662 2006-07-07  Simon Josefsson  <jas@extundo.com>
69663
69664         * tests/test-crc.c: Change expected crc value, the test vector
69665         were probably computed using the old broken crc.c?
69666
69667 2006-07-06  Simon Josefsson  <jas@extundo.com>
69668
69669         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69670         now the canonical place for the M4 file).
69671
69672         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69673         from the sys_socket dependency now.
69674
69675         * modules/inet_pton (Files): Ditto.
69676
69677         * modules/inet_ntop (Files): Ditto.
69678
69679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69680
69681         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69682         not gl_PREREQ_GETUSERSHELL.
69683
69684 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69685
69686         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69687         with only one argument, for Autoconf 2.60.
69688         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69689         expand to nothing, so add a shell command to avoid syntax error.
69690         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69691
69692 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69693
69694         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69695
69696 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69699         no longer needed.  Check for isblank decl.
69700         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69701         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69702         of existence.
69703
69704 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         * lib/getloadavg.c: Use __VMS, not VMS.
69707         * lib/getopt.c: Likewise.
69708         * lib/getpagesize.h: Likewise.
69709         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69710         and probably does not work.
69711
69712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69713
69714         * lib/.cppi-disable: Add wcwidth.
69715         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69716         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69717         (ISGRAPH): Remove.  All uses changed to isgraph.
69718         (FOLD) [!defined _LIBC]: Remove special case.
69719         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69720         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69721         HAVE_ISBLANK.
69722         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69723         case.
69724
69725 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69726
69727         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69728         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69729         brackets.  Other minor changes to suppress some compiler
69730         warnings.
69731
69732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69733         and Paul Eggert  <eggert@cs.ucla.edu>
69734
69735         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69736         of invoking obsolescent AC_HEADER_DIRENT macro.
69737         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69738         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69741         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69742         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69743         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69744         * m4/readdir.m4: Remove; no longer needed.
69745
69746 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69747         and Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69750         Don't worry about this obsolete case any more.
69751         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69752         directories.
69753         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69754         worry about this obsolete case any more.
69755         * lib/fts.c: Likewise.
69756         * lib/getcwd.c: Likewise.
69757         * lib/glob.h: Likewise.
69758         * lib/savedir.c: Likewise.
69759
69760 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69761
69762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69763         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69765         needed.
69766         All uses removed.
69767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69768         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69769         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69770         needed.
69771         * m4/getdate.m4 (gl_GETDATE): Likewise.
69772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69773         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69776         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69778         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69779         needed.
69780
69781 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69782
69783         * lib/memcasecmp.c: Include <limits.h>.
69784         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69785         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69786         Don't assume isdigit succeeds only on '0' through '9'.
69787
69788 2006-07-05  Eric Blake  <ebb9@byu.net>
69789
69790         * modules/getaddrinfo (Depends-on): Add snprintf.
69791
69792 2006-07-05  Eric Blake  <ebb9@byu.net>
69793
69794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69795         to avoid 'header present but could not be compiled' on cygwin.
69796
69797 2006-07-05  Eric Blake  <ebb9@byu.net>
69798
69799         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69800         missing from netdb.h.
69801         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69802
69803 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69804
69805         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69806         no longer needed.
69807         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69808         * m4/getdate.m4 (gl_GETDATE): Likewise.
69809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69810         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69811         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69814
69815 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69816
69817         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69818         All uses of is_space replaced by isspace.
69819         * lib/exit.h: Don't talk about STDC_HEADERS.
69820         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69821         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69822         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69823         replaced by isprint etc.
69824         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69825         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69826         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69827         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69828         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69829         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69830
69831 2006-07-05  Bruno Haible  <bruno@clisp.org>
69832
69833         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69834         the function exists, before testing against AIX.
69835         Reported by Martin Lambers <marlam@marlam.de>.
69836
69837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69840         From Mark D. Baushke.
69841
69842 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69845         to the absolute name, not just one, to bypass Sun C 5.8's
69846         "warning: #include of /usr/include/... may be non-portable".
69847
69848 2006-07-04  Eric Blake  <ebb9@byu.net>
69849
69850         * modules/dirname-tests: New test module.
69851         * tests/test-dirname.c: New file, replacing dirname.c
69852         TEST_DIRNAME section that was recently deleted.
69853
69854 2006-07-04  Bruno Haible  <bruno@clisp.org>
69855
69856         Assume ANSI C header files and <ctype.h> functions.
69857         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69858         (mbsnwidth): Use isprint, iscntrl instead.
69859
69860 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         Merge from coreutils.
69863         * MODULES.html.sh: Add xstrtold.
69864         * modules/xstrtold: New file.
69865         * modules/cycle-check (Files): Add lib/same-inode.h.
69866         * modules/dirname (Files): Add m4/double-slash-root.m4.
69867         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69868         * modules/mkdir-p (Files): Add lib/same-inode.h.
69869         * modules/same (Files): Add lib/same-inode.h.
69870
69871 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69872
69873         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69874         This is to keep the terminology clean; POSIX talks about
69875         "absolute pathnames", not "full pathnames", but the GNU
69876         Coding Standards say to use "path" for something else;
69877         so use "absolute" to keep both sides happy.
69878         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69879         Set gl_absolute_header, not gl_full_header_path.
69880         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69881         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69882         All uses changed.
69883
69884         Merge from coreutils.
69885
69886         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69889         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69890         want to require the building of c-strtod.o.
69891         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69892         needs -lm directly.
69893         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69894
69895         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69898         --as-needed option if available.  Problem reported by Albert Chin in
69899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69900         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69901         cc merely issues a bunch of annoying warnings for --as-needed
69902         (this problem was reported by Bob Proulx).  Also, try linking with
69903         -lm to detect a bug in binutils 2.16 (this problem was reported
69904         by Ralf Wildenhues).
69905
69906         2006-06-18  Jim Meyering  <jim@meyering.net>
69907
69908         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69909         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69910         macro.
69911         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69912         also check for glibc-2.4's abort-inducing bug.
69913
69914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69915         Low-probability clean-up should be to use rmdir to get rid of
69916         the just-created directory, not unlink.
69917
69918         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69919         configure fail, and request a bug report to inform us about it.
69920         Add a comment that, barring reports to the contrary, in 2007 we'll
69921         assume ftruncate is universally available.
69922
69923         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69926
69927         2006-03-12  Jim Meyering  <jim@meyering.net>
69928
69929         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69931         * m4/same.m4 (gl_SAME): Likewise.
69932         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69933
69934         2006-03-11  Eric Blake  <ebb9@byu.net>
69935
69936         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69937         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69938         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69939         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69940
69941 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69944         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69945         reported by Mark D. Baushke, one in
69946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69947
69948         Merge from coreutils.
69949
69950         * lib/.cppi-disable: Add stdint_.h.
69951         * lib/.cvsignore: Add stdint.h.
69952
69953         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69954
69955         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69956         both double and long double versions.
69957         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69958         * lib/xstrtold.c: New file.
69959         * lib/xstrtod.h (xstrtold): New decl.
69960
69961         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69962
69963         * lib/filemode.c (setst): Remove.
69964         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69965         (arguably) clearer, and the generated code is a bit smaller on my
69966         Debian GNU/Linux stable x86 host.
69967
69968         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69971         Assume that filemode.h includes sys/types.h and sys/stat.h.
69972         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69973         (ftypelet): Reorder to put common cases first, for efficiency.
69974         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69975         to do 'M'.
69976         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69977         of 10, for compatibility with FreeBSD.  All callers changed.
69978         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69979         types that can't be deduced solely from st_mode.  First arg is now a
69980         const pointer.
69981         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69982         (strmode): Renamed from mode_string.
69983         (filemodestring): New decl.
69984         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69985         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69986         needed.
69987         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69988
69989         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69992         fsusage.h now does that.  Include fsusage.h first, to test interface.
69993         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69994         at most one method (the old code could have generated decls that
69995         didn't conform to C89, not that this was ever exercised).
69996         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69997
69998         2006-03-19  Jim Meyering  <jim@meyering.net>
69999
70000         Work even in a chroot where d_ino values for entries in "/"
70001         don't match the stat.st_ino values for the same names.
70002         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70003         number, iterate through all entries again, using lstat instead.
70004         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70005         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70006
70007         * lib/getcwd.c (__getcwd): Clarify a comment.
70008         Use memcpy in place of a call to strcpy.
70009
70010         2006-03-12  Jim Meyering  <jim@meyering.net>
70011
70012         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70013         matches that of the current directory (which we're about to chdir ".."
70014         out of), then save the dev-ino of the parent, instead.
70015
70016         * lib/same-inode.h (SAME_INODE): New file/macro.
70017         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70018         Include "same-inode.h", instead.
70019         * lib/same.c: Likewise.
70020         * lib/cycle-check.h: Include "same-inode.h".
70021         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70022         * lib/cycle-check.c (SAME_INODE): Remove definition.
70023         * lib/root-dev-ino.h: Include "same-inode.h".
70024
70025         2006-03-11  Eric Blake  <ebb9@byu.net>
70026
70027         * lib/same.c (same_name): s/base_name/last_component/
70028         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70029         * lib/filenamecat.c (file_name_concat): Likewise.
70030
70031         2006-03-11  Eric Blake  <ebb9@byu.net>,
70032                     Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70035         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70036         drive prefix.
70037         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70038         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70039         (last_component): New method.
70040         * lib/dirname.c (dir_len): Determine when drive letters need a
70041         subsequent slash.  Preserve // when it is special.
70042         (dir_name): Don't append dot when drive letter is absolute.
70043         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70044         * lib/basename.c (base_name): New semantics - malloc the result.
70045         Preserve // when it is special.  Preserve relative files that look
70046         like drive letters.
70047         (base_len): Preserve // when it is special.
70048         (last_component): New method, similar to old base_name semantics.
70049         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70050         base_name.  Strip redundant slashes from ///.
70051
70052 2006-07-03  Jim Meyering  <jim@meyering.net>
70053
70054         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70055         macro is used before the first cycle_check call.
70056
70057 2006-07-03  Eric Blake  <ebb9@byu.net>
70058
70059         * modules/dirname (Depends-on): Add xstrndup.
70060
70061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70064         test cases, so that config.log is a bit easier to follow.
70065
70066 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70069         both are 64 bits, since this seems to be the tradition, and this
70070         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70071         we ever run into a host that prefers long long to long in this
70072         case, we'll need another configure-time test.  Problem reported by
70073         Jim Meyering.
70074
70075 2006-07-02  Eric Blake  <ebb9@byu.net>
70076
70077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70078
70079 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * modules/inttypes (Depends-on): No longer depends on stdint.
70082         * modules/stdint (Description): Say more about assumptions.
70083         Say that the fast types might differ.  Say macros are used.
70084         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70085         (Makefile.am): Revise list of substituted symbols to match
70086         new stdint.m4.
70087         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70088         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70089         * tests/test-stdint.c (verify_same_types)
70090         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70091         the code conforms to C99/C89.
70092         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70093         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70094
70095 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70098         but fix a bug, by requiring at least 64 bits.
70099         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70100         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70101         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70102         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70103
70104         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70105         changes.  Make 2.59 a prerequisite.  Check and substitute for
70106         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70107         inttypes.h.  Do not use special include files; just use the
70108         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70109         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70110         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70111         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70112         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70113         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70114         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70115         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70116         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70117         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70118         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70119         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70120         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70121         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70122         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70123         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70124         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70125         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70126         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70127         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70128         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70129         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70130         not check for things that C99 does not require, e.g., int8_t.  If
70131         a test isn't needed unless <stdint.h> isn't working, and is
70132         unlikely to be needed for any other reason, then don't do it
70133         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70134         size_t, since we assume C89 freestanding at least.  Do not check
70135         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70136         the right thing even if the types are not defined.  Instead use:
70137         (gl_STDINT_TYPE_PROPERTIES): New macro.
70138         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70139         testing whether <sys/types.h> clashes, as Autoconf does this for
70140         us now.  All uses removed.
70141         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70142         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70143         (gl_CHECK_TYPE_SAME):
70144         Remove; no longer needed.
70145         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70146         exists, since we'll return 0 anyway in that case.
70147         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70148
70149 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70152         possible collision with system files.
70153         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70154         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70155         WCHAR_MIN and WCHAR_MAX in this case.
70156         (<stddef.h>): Do not include; no longer needed.
70157         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70158         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70159         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70160         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70161         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70162         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70163         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70164         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70165         !defined(__c99))]: Include in this case too, since it's harmless
70166         now.
70167         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70168         dangerous to do so.
70169         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70170         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70171         (_STDINT_MIN, _STDINT_MAX): New macros.
70172         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70173         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70174         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70175         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70176         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70177         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70178         macros, not typedefs; this simplifies things quite a bit.
70179         Use long int for all types narrower than int64_t.
70180         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70181         Define in terms of long long int or int64_t or long int,
70182         not int64_t or int32_t.  This saves some compile-time testing.
70183         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70184         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70185         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70186         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70187         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70188         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70189         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70190         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70191         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70192         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70193         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70194         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70195         undef any previous version and define our own version, for
70196         simplicity and consistency with the new macros for types.
70197         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70198         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70199         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70200         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70201         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70202         @WINT_T_SUFFIX@ to keep things simple here.
70203         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70204         Simplify by assuming typical 8/16/32/64 host, since we're
70205         already doing that elsewhere anyway.
70206         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70207         and assume long long int is 64 bits if available.  This
70208         speeds up 'configure'.
70209
70210 2006-07-01  Eric Blake  <ebb9@byu.net>
70211
70212         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70213         Reported by Andreas Buening.
70214
70215 2006-07-01  Eric Blake  <ebb9@byu.net>
70216
70217         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70218
70219 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70220
70221         * lib/getaddrinfo.c: fixed typo
70222
70223 2006-06-29  Jim Meyering  <jim@meyering.net>
70224
70225         * modules/strftime (Maintainer): Add my name, since with the
70226         FPRINTFTIME changes strftime.c has forked from glibc.
70227
70228 2006-06-29  Eric Blake  <ebb9@byu.net>
70229
70230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70231
70232 2006-06-29  Eric Blake  <ebb9@byu.net>
70233
70234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70235
70236 2006-06-29  Eric Blake  <ebb9@byu.net>
70237
70238         * lib/stat_.h: New file.
70239
70240 2006-06-29  Eric Blake  <ebb9@byu.net>
70241
70242         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70243         unused static function.
70244
70245 2006-06-29  Eric Blake  <ebb9@byu.net>
70246
70247         * doc/functions.texi (Function Portability): Document missing lstat
70248         on mingw.
70249
70250 2006-06-29  Eric Blake  <ebb9@byu.net>
70251
70252         * MODULES.html.sh: Add sys_stat.
70253         * modules/sys_stat: New module.
70254         * modules/mkstemp (Depends-on): Add sys_stat.
70255
70256 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70257
70258         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70259
70260 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70261
70262         * m4/c-bs-a.m4: Removed.
70263
70264 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70265
70266         * lib/strftime.c: Assume strftime() exists.
70267
70268 2006-06-29  Derek Price  <derek@ximbiot.com>
70269
70270         * modules/c-bs-a: Removed - \a is C89.
70271         * MODULES.html.sh: Remove c-bs-a.
70272
70273 2006-06-29  Bruno Haible  <bruno@clisp.org>
70274
70275         * modules/wcwidth (License): Change to LGPL.
70276
70277 2006-06-28  Simon Josefsson  <jas@extundo.com>
70278
70279         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70280         on _WIN32.
70281
70282         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70283         getnameinfo.
70284
70285 2006-06-28  Simon Josefsson  <jas@extundo.com>
70286
70287         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70288
70289 2006-06-28  Simon Josefsson  <jas@extundo.com>
70290
70291         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70292         functions there.  It will succeed on Windows XP, but on Windows
70293         2000 and (presumably) earlier, it will fail, and use the internal
70294         re-implementation.
70295         (use_win32_p): New function.
70296         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70297         Support AI_NUMERICSERV to disable getservbyname.
70298         (getnameinfo): New function, only supports
70299         NI_NUMERICHOST|NI_NUMERICSERV for now.
70300
70301         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70302         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70303         getnameinfo.
70304
70305 2006-06-28  Eric Blake  <ebb9@byu.net>
70306
70307         * modules/wcwidth: New file.
70308         * modules/mbchar (Depends-on): Add wcwidth.
70309         * modules/mbswidth (Depends-on): Add wcwidth.
70310         * MODULES.html.sh: Add wcwidth.
70311
70312 2006-06-28  Eric Blake  <ebb9@byu.net>
70313
70314         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70316
70317 2006-06-28  Eric Blake  <ebb9@byu.net>
70318
70319         * lib/xvasprintf.h: Fix comments.
70320
70321 2006-06-28  Eric Blake  <ebb9@byu.net>
70322
70323         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70324         * lib/mbswidth.c (wcwidth): Move from here...
70325         * lib/wcwidth.h: ...to this new file.
70326
70327 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70328
70329         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70330
70331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70332         it's obsolete.
70333         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70334
70335 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70336
70337         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70338         Autoconf 2.60 says this stuff was obsolete.
70339
70340 2006-06-28  Bruno Haible  <bruno@clisp.org>
70341
70342         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70343
70344 2006-06-28  Bruno Haible  <bruno@clisp.org>
70345
70346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70347         gt_TYPE_WCHAR_T.
70348
70349 2006-06-28  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70352         declaration for wcwidth.
70353         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70354
70355 2006-06-28  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70358         (mkdir): Define using _mkdir.
70359
70360 2006-06-28  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/getaddrinfo.h: Fix POSIX URL.
70363         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70364         _WIN32.
70365         (use_win32_p): Make static.
70366         (getaddrinfo): Reject service name if it is empty or does not consist
70367         solely of decimal digits, or if its value is > 65535.
70368         (getnameinfo): Remove useless casts.
70369
70370 2006-06-27  Simon Josefsson  <jas@extundo.com>
70371
70372         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70373         Eggert and Martin Lambers.
70374
70375 2006-06-27  Simon Josefsson  <jas@extundo.com>
70376
70377         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70378         Eggert and Martin Lambers.
70379
70380 2006-06-27  Bruno Haible  <bruno@clisp.org>
70381
70382         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70383         result to 0, not to empty.
70384         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70385
70386 2006-06-27  Bruno Haible  <bruno@clisp.org>
70387
70388         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70389
70390 2006-06-26  Simon Josefsson  <jas@extundo.com>
70391
70392         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70393         present.
70394
70395 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70396
70397         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70398         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70400
70401 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70402
70403         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70404
70405 2006-06-26  Bruno Haible  <bruno@clisp.org>
70406
70407         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70408
70409 2006-06-26  Bruno Haible  <bruno@clisp.org>
70410
70411         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70412
70413 2006-06-26  Bruno Haible  <bruno@clisp.org>
70414
70415         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70416         SGI C compiler in pre-C99 mode.
70417         Suggested by Mark D. Baushke and Larry Jones.
70418
70419 2006-06-26  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70422         WCHAR_MAX.
70423         Reported by Mark D. Baushke and Larry Jones.
70424
70425 2006-06-26  Bruno Haible  <bruno@clisp.org>
70426
70427         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70428         in pre-C99 mode.
70429         Suggested by Mark D. Baushke and Larry Jones.
70430
70431 2006-06-23  Simon Josefsson  <jas@extundo.com>
70432             Bruno Haible  <bruno@clisp.org>
70433
70434         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70435         Emit mostlyclean-local rule.
70436         (func_emit_tests_Makefile_am): Likewise.
70437         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70438
70439 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70440
70441         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70442
70443 2006-06-23  Bruno Haible  <bruno@clisp.org>
70444
70445         * tests/test-stdint.c: Update to match ISO C 99 Technical
70446         Corrigendum 1.
70447
70448 2006-06-23  Bruno Haible  <bruno@clisp.org>
70449
70450         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70451
70452 2006-06-23  Bruno Haible  <bruno@clisp.org>
70453
70454         * lib/stdint_.h: Treat IRIX like OpenBSD.
70455
70456 2006-06-23  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70459         ISO C 99 Technical Corrigendum 1.
70460
70461 2006-06-22  Simon Josefsson  <jas@extundo.com>
70462
70463         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70464         MinGW.
70465
70466 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70469         needed.  Some compiler complained about some of them.  Problem reported
70470         by Larry Jones in
70471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70472
70473 2006-06-21  Simon Josefsson  <jas@extundo.com>
70474
70475         * tests/test-getaddrinfo.c: New file.
70476
70477         * modules/getaddrinfo-tests: New file.
70478
70479         * MODULES.html.sh: Add inet_pton.
70480
70481         * modules/inet_pton: New file.
70482
70483 2006-06-21  Simon Josefsson  <jas@extundo.com>
70484
70485         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70486         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70487         of using the (limited) gnulib implementation on Windows XP.
70488
70489         * m4/inet_pton.m4: New file.
70490
70491 2006-06-21  Simon Josefsson  <jas@extundo.com>
70492
70493         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70494         variable.
70495
70496         * lib/socket_.h: Don't define WINVER.
70497
70498         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70499         slightly modified to work in gnulib.
70500
70501 2006-06-21  Simon Josefsson  <jas@extundo.com>
70502
70503         * doc/gnulib.texi (Windows sockets): Add.
70504
70505 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70506
70507         * lib/read-file.c (fread_file): Start with buffer allocation of
70508         0 bytes rather than 1 byte; this simplifies the code.
70509         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70510         code to free buffer and save/restore errno.
70511         (internal_read_file): Remove unused local.
70512
70513 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70516         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70517         Problem reported by Denis Excoffier in
70518         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70519
70520 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70521
70522         * modules/sys_socket, modules/socklen: Include sys/types since
70523         FreeBSD 4.x's sys/socket.h needs it.
70524
70525 2006-06-19  Simon Josefsson  <jas@extundo.com>
70526
70527         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70528
70529 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70530
70531         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70532
70533 2006-06-19  Bruno Haible  <bruno@clisp.org>
70534
70535         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70536         and FULL_PATH_INTTYPES_H in angle brackets.
70537         Reported by Mark D. Baushke <mdb@gnu.org>.
70538
70539 2006-06-17  Eric Blake  <ebb9@byu.net>
70540
70541         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70542         errno.
70543
70544 2006-06-17  Bruno Haible  <bruno@clisp.org>
70545
70546         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70547         <sys/inttypes.h>.
70548
70549 2006-06-17  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70552         whether errno is declared. Assume <errno.h> declares errno.
70553
70554 2006-06-17  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70557
70558 2006-06-17  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70561         problem on Solaris 2.5.1.
70562
70563 2006-06-16  Eric Blake  <ebb9@byu.net>
70564
70565         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70566         * lib/unicodeio.c [!defined errno]: Likewise.
70567         * lib/strtol.c [!defined errno]: Likewise.
70568         * lib/strtod.c [!defined errno]: Likewise.
70569
70570 2006-06-15  Eric Blake  <ebb9@byu.net>
70571
70572         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70573
70574 2006-06-15  Eric Blake  <ebb9@byu.net>
70575
70576         * config/srclist.txt (ssize_t.m4): Lose sync.
70577
70578 2006-06-15  Bruno Haible  <bruno@clisp.org>
70579
70580         * modules/stdint (Files): Include m4/full-header-path.m4,
70581         m4/size_max.m4, m4/wchar_t.m4.
70582         (Makefile.am): Many more substitutions.
70583         * modules/stdint-tests: New file.
70584         * tests/test-stdint.c: New file.
70585
70586 2006-06-15  Bruno Haible  <bruno@clisp.org>
70587
70588         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70589         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70590         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70591         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70592         gl_CHECK_TYPE_SAME): New macros.
70593
70594 2006-06-15  Bruno Haible  <bruno@clisp.org>
70595
70596         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70597
70598 2006-06-15  Bruno Haible  <bruno@clisp.org>
70599
70600         * lib/stdint_.h: Rewritten to be fully auto-configured.
70601         Fixes bug on HP-UX/IA64.
70602
70603 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * lib/getdate.y (__attribute__): Don't define if already defined.
70606         Problem reported by Larry Jones.
70607         * lib/utimens.c (__attribute__): Likewise.
70608
70609 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70612         reported by Andreas Schwab.
70613
70614 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70615             Bruno Haible  <bruno@clisp.org>
70616
70617         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70618         check for the declaration of strnlen and a run test that exposes the
70619         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70620         rpl_strndup.
70621
70622 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70623             Bruno Haible  <bruno@clisp.org>
70624
70625         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70626
70627 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70628
70629         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70630         compile test, for Tru64 4.0D.
70631
70632 2006-05-28  Karl Berry  <karl@gnu.org>
70633
70634         * config/srclist.txt (printf-args.c): lose sync.
70635
70636 2006-05-26  Martin Lambers  <marlam@marlam.de>
70637
70638         * lib/getpass.c: Updates the test for the native W32 API, and adds
70639         missing includes, thus fixing compilation warnings.
70640
70641 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70642
70643         * lib/exclude.c (exclude_fnmatch): New function.
70644         (excluded_file_name): Call exclude_fnmatch.
70645         * lib/exclude.h (excluded_file_name): New prototype
70646
70647 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70648
70649         * lib/tempname.c (small_open, large_open): New macros.
70650         (__open, __open64) [!_LIBC]: Remove.
70651         (__gen_tempname): Use small_open and large_open instead of __open
70652         and __open64.  This fixes a portability bug on HP-UX 11.11i
70653         reported by Simon Wing-Tang in
70654         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70655
70656 2006-05-24  Bruno Haible  <bruno@clisp.org>
70657
70658         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70659         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70660         Reported by Thorsten Maerz <torte@netztorte.de> via
70661         Aaron Stone <aaron@serendipity.cx>.
70662
70663 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70664
70665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70666         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70667         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70668         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70669         not really conditional on the cache.
70670         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70671
70672 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70673
70674         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70675         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70676         (my_usleep): Don't mishandle maximum value.
70677
70678 2006-05-19  Jim Meyering  <jim@meyering.net>
70679
70680         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70681
70682 2006-05-17  Bruno Haible  <bruno@clisp.org>
70683
70684         Cygwin portability.
70685         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70686
70687 2006-05-17  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/stdint_.h: Fix recognition of Cygwin.
70690
70691 2006-05-15  Bruno Haible  <bruno@clisp.org>
70692
70693         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70694         on libtool patch by Ralf Wildenhues.
70695
70696 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70699         test for C99 conformance; (bool) 0.5 is an integer constant
70700         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70701         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70702
70703 2006-05-11  Simon Josefsson  <jas@extundo.com>
70704
70705         * m4/xvasprintf.m4: Fix obvious typo.
70706
70707 2006-05-11  Jim Meyering  <jim@meyering.net>
70708
70709         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70710         James Lemley.
70711
70712 2006-05-10  Simon Josefsson  <jas@extundo.com>
70713
70714         * lib/md4.c: Typo fix, update copyright years.
70715         (K1, K2): Don't use L because it turn computations into 64-bit on
70716         64-bit platforms.
70717
70718 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70719
70720         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70721         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70722         unwanted sign propagation, e.g., on hosts with 64-bit int.
70723         There still are some problems with reeelly weird theoretical hosts
70724         (e.g., 33-bit int) but it's not worth worrying about now.
70725         * lib/sha1.c (rol): Likewise.
70726         (K1, K2, K3, K4): Remove unnecessary L suffix.
70727
70728 2006-05-10  Bruno Haible  <bruno@clisp.org>
70729
70730         * lib/des.c: Cast to avoid warnings.
70731
70732 2006-05-09  Bruno Haible  <bruno@clisp.org>
70733
70734         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70735         (Depends-on): Depend also on xsize, stdarg.
70736         (configure.ac): Add gl_XVASPRINTF.
70737
70738 2006-05-09  Bruno Haible  <bruno@clisp.org>
70739
70740         * m4/xvasprintf.m4: New file.
70741
70742 2006-05-09  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70745         (EOVERFLOW): Define fallback value.
70746         (xstrcat): New function.
70747         (xvasprintf): Recognize the special case of a string concatenation.
70748
70749 2006-05-08  Eric Blake  <ebb9@byu.net>
70750
70751         * gnulib-tool (func_version): Base copyright year on CVS date.
70752         (func_emit_copyright_notice): New function.
70753         (func_emit_lib_Makefile_am): Use it.
70754         (func_emit_tests_Makefile_am): Likewise.
70755         (func_import): Likewise.
70756
70757 2006-05-08  Bruno Haible  <bruno@clisp.org>
70758
70759         * modules/stdarg: New file.
70760         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70761
70762 2006-05-08  Bruno Haible  <bruno@clisp.org>
70763
70764         * m4/stdarg.m4: New file, from GNU gettext.
70765
70766 2006-05-08  Bruno Haible  <bruno@clisp.org>
70767
70768         * config/srclist.txt (build-aux/config.rpath): different from latest
70769         release.
70770
70771 2006-05-08  Bruno Haible  <bruno@clisp.org>
70772
70773         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70774
70775 2006-05-05  Jim Meyering  <jim@meyering.net>
70776
70777         * m4/warning.m4: New file, derived from bison's file by the same name.
70778
70779 2006-05-03  Bruno Haible  <bruno@clisp.org>
70780
70781         * lib/stdint_.h: Shorter URL.
70782         * lib/inttypes.h: Likewise.
70783
70784 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70785
70786         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70787
70788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * lib/verify.h: Document the internals better.  Most of this change
70791         was written by Bruno Haible.
70792
70793 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * doc/verify.texi: New file, partly based on a proposal by
70796         Bruno Haible.
70797
70798 2006-05-02  Bruno Haible  <bruno@clisp.org>
70799
70800         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70801         test from here...
70802         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70803
70804 2006-04-29  Bruno Haible  <bruno@clisp.org>
70805
70806         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70807         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70808
70809 2006-04-29  Bruno Haible  <bruno@clisp.org>
70810
70811         * gnulib-tool: Make --update option actually work.
70812
70813 2006-04-29  Bruno Haible  <bruno@clisp.org>
70814
70815         * doc/gcd.texi: New file.
70816         * doc/gnulib.texi: Include it.
70817
70818 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70819
70820         * lib/getdate.y (get_date): When adding relative date, start with the
70821         initial time, not with the result of the first mktime call.
70822
70823 2006-04-25  Bruno Haible  <bruno@clisp.org>
70824
70825         * gnulib-tool (func_import): Output the include directives in three
70826         blocks, sorted separately.
70827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70828
70829 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70830
70831         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70832         to define main with arguments, for C++.  Reported by Eric Blake.
70833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70834         Prefer 'int main ()' to 'int main (void)', for C++.
70835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70837         for 'main', for C99 and C++.
70838
70839 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70840
70841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70842         Don't assume that exit status -1 is valid.
70843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70845         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70846         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70847         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70848         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70849         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70850         functions can be used without declaring them, or that you can
70851         exit with status -1.
70852         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70853
70854 2006-04-24  Karl Berry  <karl@gnu.org>
70855
70856         * config/srclist.txt (longdouble.m4): sync lost.
70857
70858 2006-04-24  Eric Blake  <ebb9@byu.net>
70859
70860         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70861
70862 2006-04-24  Bruno Haible  <bruno@clisp.org>
70863
70864         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70865         poll() implementation in AIX.
70866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70867
70868 2006-04-24  Bruno Haible  <bruno@clisp.org>
70869
70870         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70871         assigned exactly once.
70872
70873 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70874             Bruno Haible  <bruno@clisp.org>
70875
70876         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70877         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70878         for AM_CPPFLAGS.
70879
70880 2006-04-23  Bruno Haible  <bruno@clisp.org>
70881
70882         * modules/copy-file: Depend on unistd.
70883         * modules/execute: Likewise.
70884         * modules/fatal-signal: Likewise.
70885         * modules/findprog: Likewise.
70886         * modules/mkdtemp : Likewise.
70887         * modules/pipe: Likewise.
70888         * modules/wait-process: Likewise.
70889
70890 2006-04-23  Bruno Haible  <bruno@clisp.org>
70891
70892         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70893         condition was already detected.
70894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70895
70896 2006-04-23  Bruno Haible  <bruno@clisp.org>
70897
70898         * lib/copy-file.c: Include <unistd.h> unconditionally.
70899         * lib/execute.c: Likewise.
70900         * lib/fatal-signal.c: Likewise.
70901         * lib/findprog.c: Likewise.
70902         * lib/mkdtemp.c: Likewise.
70903         * lib/pipe.h: Likewise.
70904         * lib/pipe.c: Likewise.
70905         * lib/wait-process.h: Likewise.
70906
70907 2006-04-23  Bruno Haible  <bruno@clisp.org>
70908
70909         * gnulib-tool (func_usage): Fix --import description. Document
70910         --update.
70911         (func_import): Create temporary file in a temporary directory, if
70912         --dry-run is specified. Silence errors from 'grep' when there are no
70913         m4 files in $m4dir.
70914         (func_create_testdir): Silence errors from 'grep' when there are no
70915         m4 files in $m4dir.
70916         Reported by Karl Berry <karl@freefriends.org>.
70917
70918 2006-04-20  Bruno Haible  <bruno@clisp.org>
70919
70920         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70921         one argument, so that the code will be portable to Autoconf 2.60.
70922         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70923         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70924         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70925
70926 2006-04-19  Derek Price  <derek@ximbiot.com>
70927             Eric Blake  <ebb9@byu.net>
70928
70929         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70930         rather than "/full/path.h".  Update comment to match.  Shorten &
70931         generalize m4_translit call via AS_TR_CPP.
70932
70933 2006-04-19  Derek Price  <derek@ximbiot.com>
70934             Eric Blake  <ebb9@byu.net>
70935
70936         * lib/inttypes.h: Correct grammar in comment.
70937
70938 2006-04-18  Derek Price  <derek@ximbiot.com>
70939             Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         * modules/inttypes: New file.
70942         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70943
70944 2006-04-18  Derek Price  <derek@ximbiot.com>
70945             Paul Eggert  <eggert@cs.ucla.edu>
70946
70947         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70948         New files.
70949
70950 2006-04-18  Derek Price  <derek@ximbiot.com>
70951             Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * lib/inttypes.h: New file.
70954         * lib/strtoimax.c: Assume <inttypes.h>.
70955
70956 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70959         isn't mounted.  Problem reported by Kir Kolyshkin.
70960
70961 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70964         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70965         Derek R. Price.
70966         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70967         implementation.
70968
70969 2006-04-12  Eric Blake  <ebb9@byu.net>
70970
70971         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70972         is now done automatically by the corresponding Autoconf macro.
70973
70974 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70977         time_r.h.
70978
70979 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         Merge regex changes from libc, removing some of our
70982         POSIX-conformance changes that were rejected and redoing them in a
70983         less-intrusive way.
70984
70985         * lib/regcomp.c (re_compile_internal, init_dfa):
70986         Length arg is now size_t, not Idx.  All uses changed.
70987         (peek_token): Forward decl now says internal_function.
70988         (__re_error_msgid, __re_error_msgid_idx):
70989         Now static rather than extern with attribute_hidden.
70990         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70991         For some reason libc prefers K&R style defns for external functions.
70992         (regerror) [!defined _LIBC]: Likewise.
70993         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70994         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70995         (build_range_exp, build_collating_symbol):
70996         Use K&R-style defn.
70997         (re_compile_fastmap): Use '\0' to memset, not 0.
70998         (utf8_sb_map): Make the calculations more obvious.
70999         (init_dfa, parse_bracket_exp, build_charclass_op):
71000         Call calloc and cast result, as glibc does.
71001         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71002         (build_range_exp, build_collating_symbol):
71003         Now internal functions.
71004
71005         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71006
71007         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71008         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71009         Don't depend on VMS; depend on __VMS instead, for POSIX
71010         namespace cleanness.
71011         (regoff_t): Define to ssize_t, not long int.
71012
71013         Remove the REG_ macros named below.  Instead, make the old names
71014         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71015         __USE_GNU_REGEX.
71016         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71017         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71018         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71019         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71020         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71021         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71022         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71023         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71024         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71025         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71026         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71027         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71028         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71029         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71030         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71031         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71032         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71033         (REG_NREGS):
71034         Remove.  All uses replaced by the old RE_* names.
71035         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71036         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71037         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71038         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71039         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71040         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71041         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71042         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71043         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71044         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71045         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71046         Don't bother having these macros be independent of each others'
71047         values, since they no longer exist in the POSIX name space.
71048
71049         Rename the following member names back to their old names,
71050         unless !__USE_GNU_REGEX.  All uses changed back.
71051         (buffer): Renamed from re_buffer.
71052         (allocated): Renamed from re_allocated.
71053         (used): Renamed from re_used.
71054         (syntax): Renamed from re_syntax.
71055         (fastmap): Renamed from re_fastmap.
71056         (translate): Renamed from re_translate.
71057         (can_be_null): Renamed from re_can_be_null.
71058         (regs_allocated): Renamed from re_regs_allocated.
71059         (fastmap_accurate): Renamed from re_fastmap_accurate.
71060         (no_sub): Renamed from re_no_sub.
71061         (not_bol): Renamed from re_not_bol.
71062         (not_eol): Renamed from re_not_eol.
71063         (newline_anchor): Renamed from re_newline_anchor.
71064         (num_regs): Renamed from rm_num_regs.
71065         (start): Renamed from rm_start.
71066         (end): Renamed from rm_end.
71067
71068         (free_state): Move up a bit.
71069
71070         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71071         #define to be empty.
71072         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71073         when that is what is intended.
71074         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71075         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71076         (MAX): New macro.
71077         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71078         All uses changed back to re_malloc, etc.  It's now the caller's
71079         responsibility to check for overflow; all callers changed.
71080         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71081         (re_x2nrealloc): Remove.
71082         (free_state): Remove decl.
71083
71084         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71085         (re_set_registers, re_exec):
71086         Use K&R-style defn.
71087
71088         2006-01-31  Roland McGrath  <roland@redhat.com>
71089
71090         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71091         Reported by Mike Frysinger <vapier@gentoo.org>.
71092
71093         2006-01-15  Andreas Jaeger  <aj@suse.de>
71094
71095         [BZ #1950]
71096         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71097         build_wcs_upper_buffer change.
71098         (build_wcs_upper_buffer): Change return type.
71099
71100         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71101
71102         * lib/regex_internal.h: Include <stdint.h> if available.
71103
71104         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71105
71106         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71107
71108         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71109
71110         * lib/regcomp.c: Adjust for changed secondary hash function.
71111
71112         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71113
71114         * lib/regex.h: Pretty printing.
71115         Clean up namespace a bit.
71116
71117         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71118
71119         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71120         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71121
71122         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71123                     Ulrich Drepper  <drepper@redhat.com>
71124
71125         [BZ #1302]
71126         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71127         changed.
71128         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71129
71130         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71131
71132         [BZ #281]
71133         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71134         * lib/regcomp.c: Remove unnecessary uses of
71135         unsigned RE_TRANSLATE_TYPE.
71136         * lib/regex_internal.h: Likewise.
71137         * lib/regex_internal.c: Likewise.
71138         * lib/regexec.c: Likewise.
71139         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71140
71141         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71142
71143         * lib/regexec.c (find_recover_state): Remove unnecessary
71144         initialization.
71145         (transit_state_bkref): Make DFA a const pointer.
71146         (get_subexp): Likewise.
71147         (check_arrival): Likewise.
71148         (update_cur_sifted_state): Likewise.
71149         (re_search_internal): Likewise.
71150         (prune_impossible_nodes): Likewise.
71151         (acquire_init_state_context): Likewise.
71152         (proceed_next_node): Likewise.
71153         (set_regs): Likewise.
71154         (free_fail_stack_return): Likewise.
71155         (check_arrival_expand_ecl): Mark DFA parameter as const.
71156         (check_arrival_expand_ecl_sub): Likewise.
71157         (check_subexp_limits): Likewise.
71158         (sub_epsilon_src_nodes):  Likewise.
71159         (add_epsilon_src_nodes):  Likewise.
71160         (merge_state_array): Likewise.
71161         (update_regs): Likewise.
71162         (build_trtable): Likewise.
71163         (sift_states_backward): Mark MCTX parameter as const.
71164         (build_sifted_states): Likewise.
71165         (update_cur_sifted_state): Likewise.
71166         (sift_states_mkref): Likewise.
71167         (check_arrival_expand_ecl): Mark eclosure as const.
71168         (check_dst_limits_calc_pos_1): Likewise.
71169         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71170         pointer.
71171
71172         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71173
71174         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71175         (transit_state_sb): Likewise.
71176         (transit_state_mb): Likewise.
71177         (sift_states_iter_mb): Likewise.
71178         (check_arrival_add_next_nodes): Likewise.
71179         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71180         [_LIBC] (re_search_2_stub): Use mempcpy.
71181
71182         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71183         mbrtowc for very simple UTF-8 case.
71184
71185         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71186         a pointer-to-const.
71187         (re_acquire_state_context): Likewise.
71188         * lib/regex_internal.h: Adjust prototypes.
71189
71190         * lib/regex.c: Prevent using C++ compilers.
71191
71192         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71193         (re_acquire_state_context): Likewise.
71194
71195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * modules/regex (Depends-on): Add ssize_t.
71198
71199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71202         translation table.
71203
71204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71205
71206         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71207
71208 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71209             Bruno Haible  <bruno@clisp.org>
71210
71211         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71212         <sys/types.h> and <inttypes.h>.
71213
71214 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71215
71216         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71217         `__error_t_defined', so argp.h will not typedef the former.
71218
71219 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71220
71221         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71222         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71223         glibc names.  Even if glibc is changed to conform to POSIX, the
71224         traditional names will be available anyway, since regex depends on
71225         the extensions module.  Also, fix a longstanding typo in the
71226         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71227         reported by Emanuele Giaquinta.  Also, change sense of cached
71228         variable, so that the message makes sense.
71229
71230 2006-03-24  Simon Josefsson  <jas@extundo.com>
71231
71232         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71233         including some doc fixes.
71234         (base64_encode_alloc): Fix +1 bug on allocation failures.
71235
71236 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71237
71238         * lib/base64.c (base64_encode): Do not read past end of array with
71239         unsanitized input on systems with CHAR_BIT > 8.
71240
71241 2006-03-24  Eric Blake  <ebb9@byu.net>
71242
71243         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71244
71245 2006-03-22  Karl Berry  <karl@gnu.org>
71246
71247         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71248         * config/srclistvars.sh (COREUTILS): new var.
71249
71250 2006-03-17  Jim Meyering  <jim@meyering.net>
71251
71252         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71253         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71254
71255 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71258         no longer needs it.  Instead, check that regoff_t is as least
71259         as wide as ptrdiff_t.
71260
71261         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71262         so that our regex.h stays compatible with the installed regex.
71263         This is helpful for installers who configure --without-included-regex.
71264         Problem reported by Emanuele Giaquinta.
71265
71266 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71267
71268         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71269         Typedef to long int, not to off_, as POSIX will likely change
71270         in that direction.
71271
71272 2006-03-15  Eric Blake  <ebb9@byu.net>
71273
71274         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71275
71276 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71277
71278         * lib/argp-help.c (validate_uparams): Fix typo
71279         * lib/argp-parse.c (argp_default_options): Consistently begin help
71280         messages with a lowercase letter.
71281
71282 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71285         overrun buffers and shouldn't be used (much as gets shouldn't be
71286         used).
71287         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71288
71289 2006-03-08  Simon Josefsson  <jas@extundo.com>
71290
71291         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71292         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71293
71294 2006-03-08  Simon Josefsson  <jas@extundo.com>
71295
71296         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71297         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71298
71299 2006-03-08  Simon Josefsson  <jas@extundo.com>
71300
71301         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71302         signal that configure disabled the device.
71303
71304 2006-03-08  Simon Josefsson  <jas@extundo.com>
71305
71306         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71307         languages.
71308
71309 2006-03-07  Simon Josefsson  <jas@extundo.com>
71310
71311         * modules/getopt (Depends-on): Add unistd.
71312
71313         * modules/unistd: New file.
71314
71315 2006-03-07  Simon Josefsson  <jas@extundo.com>
71316
71317         * modules/gc-random: New file.
71318
71319 2006-03-07  Simon Josefsson  <jas@extundo.com>
71320
71321         * m4/unistd_h.m4: New file.
71322
71323 2006-03-07  Simon Josefsson  <jas@extundo.com>
71324
71325         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71326         test to be side-effect free by storing the result in the cache
71327         variable gl_cv_lib_readline, and moving the assignment of
71328         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71329         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71330
71331 2006-03-07  Simon Josefsson  <jas@extundo.com>
71332
71333         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71334         error on missing devices (the functions will return an error).
71335
71336         * m4/gc.m4: Move random stuff to gc-random.m4
71337
71338 2006-03-07  Simon Josefsson  <jas@extundo.com>
71339
71340         * lib/unistd_.h: New file.
71341
71342 2006-03-07  Simon Josefsson  <jas@extundo.com>
71343
71344         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71345
71346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71349         Problem reported by Juan Manuel Guerrero.
71350
71351 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71354         the unistd module.
71355         * lib/getlogin_r.c: Likewise.
71356         * lib/getlogin_r.h: Likewise.
71357         * lib/glob.c: Likewise.
71358         * lib/pagealign_alloc.c: Likewise.
71359         * lib/unistd_.h: Remove; no longer needed.
71360
71361 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71362
71363         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71364         Add unistd.
71365         * modules/c-stack (Depends-on): Add unistd.
71366         * modules/getlogin_r: Likewise.
71367         * modules/glob: Likewise.
71368         * modules/pagealign_alloc: Likewise.
71369         * modules/unistd (Files): Remove lib/unistd_.h.
71370         (EXTRA_DIST): Remove.
71371         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71372         need unistd_.h.
71373         (MOSTLYCLEANFILES): Remove unistd.h-t.
71374
71375 2006-03-03  Simon Josefsson  <jas@extundo.com>
71376
71377         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71378
71379 2006-03-03  Simon Josefsson  <jas@extundo.com>
71380
71381         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71382         libidn and bison.
71383
71384 2006-03-03  Simon Josefsson  <jas@extundo.com>
71385
71386         * build-aux/maint.mk: Add indent target.
71387
71388 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71389
71390         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71391         our replacement poll.h in any case, to avoid a differing
71392         declaration from a system header.  Seen on AIX.
71393
71394 2006-03-01  Simon Josefsson  <jas@extundo.com>
71395
71396         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71397         <kasal@ucw.cz>.
71398
71399 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71400
71401         * modules/gettime (Depends-on): Add extensions module.
71402         * modules/nanosleep (Depends-on): Likewise.
71403         * modules/settime (Depends-on): Likewise.
71404
71405 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71408         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71409         pedantically.
71410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71411         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71412
71413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71414         not "==".  Reported by Ralf Wildenhues.
71415
71416 2006-03-01  Karl Berry  <karl@gnu.org>
71417
71418         * doc/Copyright/request-*: new files, synced from gnuorg.
71419
71420 2006-03-01  Karl Berry  <karl@gnu.org>
71421
71422         * config/srclist.txt (Copyright/*): new entries.
71423
71424 2006-02-28  Simon Josefsson  <jas@extundo.com>
71425
71426         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71427
71428 2006-02-27  Simon Josefsson  <jas@extundo.com>
71429
71430         * lib/base64.h: Indent #define's.  From Jim Meyering
71431         <jim@meyering.net>.
71432
71433 2006-02-27  Jim Meyering  <jim@meyering.net>
71434
71435         Revert the change of 2006-02-24, so these files can continue
71436         to be sync'd from gettext.
71437         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71438         of `config.h'.
71439
71440 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71441
71442         * modules/intprops: New file.
71443         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71444         Add intprops.
71445         * modules/getloadavg (Files): Remove lib/intprops.h.
71446         (Depends-on): Add intprops.
71447         * modules/human: Likewise.
71448         * modules/inttostr: Likewise.
71449         * modules/openat: Likewise.
71450         * modules/sig2str: Likewise.
71451         * modules/userspec: Likewise.
71452         * modules/utimecmp: Likewise.
71453         * modules/xnanosleep: Likewise.
71454         * modules/xstrtol: Likewise.
71455
71456 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71457
71458         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71459         * modules/lock-tests (TESTS): Use $(EXEEXT).
71460         * modules/tls-tests: Likewise.
71461         * modules/argp-tests: Likewise.
71462         (check_PROGRAMS): New var, replacing...
71463         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71464
71465 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71466
71467         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71468         `config.h'.
71469
71470 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71471
71472         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71473
71474 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71475
71476         Sync from coreutils.
71477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71478         gl_CHDIR_SAFER.
71479
71480 2006-02-22  Jim Meyering  <jim@meyering.net>
71481
71482         Sync from coreutils.
71483         * m4/chdir-safer.m4: New file.
71484
71485 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71486
71487         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71488         AT_FDCWD exceeds INT_MAX.
71489         * lib/openat.h (AT_FDCWD): Likewise.
71490
71491 2006-02-17  Eric Blake  <address@hidden>
71492
71493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71494
71495 2006-02-16  Simon Josefsson  <jas@extundo.com>
71496
71497         * modules/getaddrinfo (Depends-on): Add sys_socket.
71498
71499 2006-02-15  Simon Josefsson  <jas@extundo.com>
71500
71501         * build-aux/maint.mk: Add dsyntax-check rule.
71502
71503 2006-02-15  Eric Blake  <ebb9@byu.net>
71504
71505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71506         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71507         'present but cannot compile' warnings on cygwin.
71508         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71509         use ws2tcpip.h if sys/socket.h works.
71510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71511         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71512
71513 2006-02-14  Simon Josefsson  <jas@extundo.com>
71514
71515         * modules/maintainer-makefile (Files): Rename.
71516
71517         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71518         and (the local) Makefile.cfg to maint-cfg.mk.
71519
71520         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71521         to the latter.
71522
71523         * modules/maintainer-makefile: New module.
71524
71525         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71526         severaly stripped to make it possible to build it up from scratch
71527         with reliable tests.
71528
71529         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71530         fixes to permit overriding the default actions when configure and
71531         makefile are not available.
71532
71533 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         Sync from coreutils.
71536         * modules/lstat (Depends-on): Don't depend on xalloc.
71537         (License): Change from GPL to LGPL, since this is now simply a
71538         replacement for a libc function.
71539
71540 2006-02-14  Jim Meyering  <jim@meyering.net>
71541
71542         Sync from coreutils.
71543
71544         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71545         failure on deficient systems, and simplify gnulib lgpl dependencies.
71546         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71547         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71548
71549         * lib/xalloc-die.c: Remove unused definition of N_.
71550
71551 2006-02-14  Jim Meyering  <jim@meyering.net>
71552
71553         Sync from coreutils.
71554         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71555         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71556         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71557         double-quote uses of that variable, to accommodate the rare case in
71558         which getmntent is available in none of the libraries checked.  This
71559         happens at least on FreeBSD 5.0.
71560
71561 2006-02-13  Simon Josefsson  <jas@extundo.com>
71562
71563         * gnulib-tool (Usage): Fix --import, from
71564         karl@freefriends.org (Karl Berry).
71565
71566 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71567
71568         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71569
71570 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71571
71572         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71573         "autoupdate" on 2005-12-12.
71574
71575 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71576
71577         * modules/closeout (Depends-on): Remove atexit.
71578
71579 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71582         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71583
71584 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71587         __EXTENSIONS__ if this causes compilation to fail.  Problem
71588         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71589         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71590
71591 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71592
71593         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71594         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71596         All uses changed.
71597
71598 2006-01-26  Simon Josefsson  <jas@extundo.com>
71599
71600         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71601         prototype is visible on mingw32.
71602
71603         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71604         for mingw32.
71605
71606         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71607         mingw32).
71608
71609 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71610
71611         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71612         attempt to open for write; this always fails, at least on POSIX
71613         hosts.  This reinstates the 2006-01-09 change, which was
71614         inadvertently removed.
71615
71616 2006-01-26  Bruno Haible  <bruno@clisp.org>
71617
71618         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71619         Reported by Paul Eggert.
71620
71621 2006-01-26  Bruno Haible  <bruno@clisp.org>
71622             Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * lib/stdbool_.h (_Bool)
71625         [(! (defined __cplusplus || defined __BEOS__)
71626           && !defined __GNUC__
71627           && !(defined __HP_cc || defined __xlc__
71628                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71629                || defined __sgi))]:
71630         #define to signed char in these cases too; this simplifies
71631         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71632         etc., separately) and makes it more conservative.
71633
71634 2006-01-25  Simon Josefsson  <jas@extundo.com>
71635
71636         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71637         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71638         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71639
71640 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71641
71642         * lib/argp-namefrob.h: Bugfix. Remove stray #
71643
71644 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71647         so that we test the test.
71648         Check for yet another HP-UX cc bug involving *bool |= bool.
71649
71650 2006-01-25  Karl Berry  <karl@gnu.org>
71651
71652         * config/srclist.txt (vasnprintf.c): sync lost.
71653
71654 2006-01-25  Jim Meyering  <jim@meyering.net>
71655
71656         Sync from the stable (b5) branch of coreutils:
71657
71658         * lib/fts.c (fts_children): Don't let close() clobber errno from
71659         failed fchdir().
71660
71661         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71662         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71663         a dangling symlink.  That can also happen at least for ELOOP.
71664         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71665         FYI, this bug predates the inclusion of fts.c in coreutils.
71666
71667         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71668         in their own block, so pre-c99 compilers don't object.
71669
71670         Avoid the double-free (first in fts_read, second in fts_close) that
71671         would occur when an `active' directory is made inaccessible (e.g.,
71672         via chmod a-x) during a traversal.
71673         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71674         before returning.  Reproduce this failure by
71675         mkdir -p a/b; cd a; chmod a-x . b
71676         Reported by Stavros Passas.
71677
71678 2006-01-25  Jim Meyering  <jim@meyering.net>
71679
71680         * lib/fileblocks.c: Remove more useless parentheses.
71681         * lib/readutmp.h: Likewise.
71682
71683 2006-01-25  Bruno Haible  <bruno@clisp.org>
71684
71685         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71686         warnings.
71687         Reported by Paul Eggert.
71688
71689 2006-01-25  Bruno Haible  <bruno@clisp.org>
71690
71691         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71692         rid of a trap command. For Solaris sh.
71693         Reported by Mark D. Baushke <mdb@gnu.org>.
71694
71695 2006-01-24  Simon Josefsson  <jas@extundo.com>
71696
71697         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71698         Bruno.
71699
71700 2006-01-24  Karl Berry  <karl@gnu.org>
71701
71702         * config/srclist.txt (argp-namefrob.h): sync lost.
71703
71704 2006-01-24  Jim Meyering  <jim@meyering.net>
71705
71706         * modules/openat (Files): Add lib/intprops.h.
71707         From Mark D. Baushke.
71708
71709 2006-01-24  Jim Meyering  <jim@meyering.net>
71710
71711         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71712         Reported by Mark D. Baushke.
71713
71714 2006-01-24  Jim Meyering  <jim@meyering.net>
71715
71716         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71717
71718 2006-01-24  Bruno Haible  <bruno@clisp.org>
71719
71720         * modules/strnlen (Maintainer): Change from glibc to all.
71721
71722 2006-01-24  Bruno Haible  <bruno@clisp.org>
71723
71724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71725         Patch by Paul Eggert.
71726
71727 2006-01-24  Bruno Haible  <bruno@clisp.org>
71728
71729         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71730         already has it.
71731         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71732         2005-11-26.
71733
71734         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71735         'signed char' to avoid problems with the built-in _Bool type.
71736         Reported by Paul Eggert on 2005-11-26.
71737
71738 2006-01-24  Bruno Haible  <bruno@clisp.org>
71739
71740         * gnulib-tool (func_import): Avoid constructing complicated sed
71741         expressions inside backquote.
71742         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71743
71744 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71745
71746         These changes imported from libc.
71747         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71748         test and two separate function calls.
71749         * lib/strndup.c (__strndup): Add libc_hidden_def.
71750
71751 2006-01-23  Simon Josefsson  <jas@extundo.com>
71752
71753         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71754         Remove the test_*_SOURCES variable: automake infers it by default.
71755         * modules/tls-tests: Likewise.
71756
71757 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         Work around porting bugs reported by Dieter in
71760         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71761         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71762         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71763         Include "getopt.h" first, to check interface.
71764         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71765         !HAVE_DECL_GETENV.
71766         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71767         (__strndup): Revert to K&R-style function dfns, the glibc style.
71768         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71769         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71770         Include strnlen.h first, to get prototype properly.
71771         (strnlen): Renamed from __strnlen.
71772         Remove weak alias.
71773
71774 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71777
71778 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71779
71780         * config/srclist.txt: Adjust to reflect glibc reorganization.
71781         This affects only comments.
71782
71783 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71784
71785          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71786          Reported by Bruce Korb <bkorb@gnu.org>.
71787
71788 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71789
71790         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71791         to pacify gcc -Wswitch-default.
71792
71793 2006-01-22  Bruno Haible  <bruno@clisp.org>
71794
71795         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71796         temporary buffer for sprintf, take into account the precision also
71797         for 'd', 'i', 'u', 'o', 'x', 'X'.
71798
71799 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71800
71801         * modules/argp-tests: New module
71802         * tests/test-argp.c: New file
71803         * tests/test-argp-2.sh: New file
71804
71805 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71806
71807         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71808         (__argp_base_name): Removed
71809         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71810         typo.
71811         (__argp_base_name): Provide macro definition or extern declaration
71812         depending on the configuration
71813
71814 2006-01-20  Simon Josefsson  <jas@extundo.com>
71815
71816         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71817
71818 2006-01-20  Simon Josefsson  <jas@extundo.com>
71819
71820         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71821
71822 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71825         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71826         Suggested by Bruno Haible.
71827
71828 2006-01-20  Karl Berry  <karl@gnu.org>
71829
71830         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71831         until changes propagate, I guess.
71832
71833 2006-01-19  Simon Josefsson  <jas@extundo.com>
71834
71835         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71836
71837 2006-01-19  Simon Josefsson  <jas@extundo.com>
71838
71839         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71840
71841 2006-01-19  Simon Josefsson  <jas@extundo.com>
71842
71843         * gnulib-tool: Set check_PROGRAMS.
71844
71845         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71846         modules/des-tests, modules/gc-arcfour-tests,
71847         modules/gc-arctwo-tests, modules/gc-des-tests,
71848         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71849         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71850         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71851         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71852         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71853         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71854         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71855         test_*_SOURCES.
71856
71857 2006-01-18  Simon Josefsson  <jas@extundo.com>
71858
71859         * modules/socklen (Depends-on): Depend on sys_socket.
71860
71861 2006-01-18  Simon Josefsson  <jas@extundo.com>
71862
71863         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71864         modules/des-tests, modules/gc-arcfour-tests,
71865         modules/gc-arctwo-tests, modules/gc-des-tests,
71866         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71867         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71868         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71869         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71870         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71871         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71872         $(EXEEXT) to automake TESTS variable, for mingw32.
71873
71874 2006-01-17  Simon Josefsson  <jas@extundo.com>
71875
71876         * modules/socklen (Include): Need sys/socket.h.
71877
71878 2006-01-17  Bruno Haible  <bruno@clisp.org>
71879
71880         * modules/ssize_t (Include): Add <sys/types.h>.
71881
71882 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71885         it's not portable and it doesn't work with cross-compiles.
71886         Problem reported by Bruno Haible.  Fix missing-$ typo in
71887         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71888         -zignore from being used with Sun's C compiler.
71889
71890 2006-01-12  Simon Josefsson  <jas@extundo.com>
71891
71892         * lib/base64.c: Fix warning, reported by Bruno Haible
71893         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71894
71895 2006-01-12  Bruno Haible  <bruno@clisp.org>
71896
71897         * modules/ldd: New file.
71898         * build-aux/ldd.sh.in: New file.
71899         * MODULES.html.sh (Support for building libraries and executables): Add
71900         ldd.
71901
71902 2006-01-12  Bruno Haible  <bruno@clisp.org>
71903
71904         * m4/ldd.m4: New file.
71905
71906 2006-01-12  Bruno Haible  <bruno@clisp.org>
71907
71908         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71909         endless loop while replacing $auxdir with build-aux.
71910
71911 2006-01-11  Simon Josefsson  <jas@extundo.com>
71912
71913         * lib/stdint_.h (SIZE_MAX): Add missing (.
71914
71915 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71916
71917         Sync from coreutils.
71918         * lib/md5.c: Fix commentary typos.
71919         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71920         * lib/md5.h (__attribute__): Remove; unused.
71921         * lib/sha1.c: Fix commentary to match md5 better.
71922         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71923         so that we don't need to worry about alignment.  All uses changed.
71924         This merges the 2005-10-28 md5 change into sha1.
71925
71926 2006-01-11  Jim Meyering  <jim@meyering.net>
71927
71928         Sync from coreutils.
71929         * lib/md5.c (OP): Fix spacing.
71930
71931 2006-01-11  Bruno Haible  <bruno@clisp.org>
71932
71933         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71934         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71935         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71936
71937 2006-01-11  Bruno Haible  <bruno@clisp.org>
71938
71939         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71940         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71941         the "early" section as well.
71942
71943 2006-01-11  Bruno Haible  <bruno@clisp.org>
71944
71945         Avoid "ar: no archive members specified" error on MacOS X.
71946         * gnulib-tool (func_modules_add_dummy): New function.
71947         (func_import, func_create_testdir): Invoke it.
71948
71949 2006-01-11  Bruno Haible  <bruno@clisp.org>
71950
71951         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71952         with $auxdir in AC_CONFIG_FILES statements.
71953
71954 2006-01-11  Bruno Haible  <bruno@clisp.org>
71955
71956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71957         Initialize also noinst_HEADERS to empty.
71958
71959 2006-01-11  Bruno Haible  <bruno@clisp.org>
71960
71961         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71962         variables.
71963         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71964         autoreconf.
71965
71966 2006-01-11  Bruno Haible  <bruno@clisp.org>
71967
71968         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71969         overridable by the user.
71970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71971
71972 2006-01-10  Simon Josefsson  <jas@extundo.com>
71973
71974         * modules/sys_socket: New file.
71975
71976 2006-01-10  Simon Josefsson  <jas@extundo.com>
71977
71978         * m4/sys_socket_h.m4: New file.
71979
71980 2006-01-10  Simon Josefsson  <jas@extundo.com>
71981
71982         * lib/socket_.h: New file.
71983
71984 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71985
71986         * modules/readutmp (Maintainer): Add myself.
71987
71988 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71991         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71992         People who are still concerned with buggy memcmp implementations
71993         can invoke gl_FUNC_MEMCMP themselves.
71994
71995 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71996
71997         * lib/regex_internal.h (BITSET_WORD_BITS):
71998         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71999         preprocessor mishandles large unsigned values as if they were signed.
72000         Problem reported by Claudio Fontana in
72001         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72002
72003 2006-01-10  Jim Meyering  <jim@meyering.net>
72004
72005         Avoid the double-free (first in fts_read, second in fts_close) that
72006         would occur when an `active' directory is made inaccessible (e.g.,
72007         via chmod a-x) during a traversal.
72008         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72009         before returning.  Reproduce this failure by
72010         mkdir -p a/b; cd a; chmod a-x . b
72011         Reported by Stavros Passas.
72012
72013         Sync from coreutils.
72014         * lib/sha1.c: Tweak grammar in a comment.
72015
72016 2006-01-10  Jim Meyering  <jim@meyering.net>
72017
72018         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72019         Patch by Joerg Sonnenberger.
72020
72021 2006-01-10  Bruno Haible  <bruno@clisp.org>
72022
72023         * modules/readutmp: Depend on module free.
72024         * modules/strtok_r: Depend on module restrict.
72025
72026 2006-01-10  Bruno Haible  <bruno@clisp.org>
72027
72028         * modules/gettext (configure.ac): Add an invocation of
72029         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72030
72031 2006-01-10  Bruno Haible  <bruno@clisp.org>
72032
72033         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72034         Reported by Werner Lemberg <wl@gnu.org>.
72035
72036 2006-01-10  Bruno Haible  <bruno@clisp.org>
72037
72038         * lib/localcharset.c: Update from GNU gettext.
72039
72040 2006-01-10  Bruno Haible  <bruno@clisp.org>
72041
72042         * lib/argp.h (__const): Remove macro. Use const instead.
72043         * lib/argp-fmtstream.h (__const): Likewise.
72044         * lib/glob_.h (__const): Remove macro.
72045         * lib/glob-libc.h: Use const instead of __const.
72046
72047 2006-01-10  Bruno Haible  <bruno@clisp.org>
72048
72049         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72050         variable.
72051         Needed to avoid an automake error regarding the 'gettext' module.
72052
72053 2006-01-09  Simon Josefsson  <jas@extundo.com>
72054
72055         * modules/inet_ntop (Depends-on): Add restrict.
72056
72057 2006-01-09  Simon Josefsson  <jas@extundo.com>
72058
72059         * modules/gc-rijndael-tests (License): Put under LGPL.
72060
72061         * modules/gc-des-tests (License): Likewise.
72062
72063         * modules/gc-arcfour-tests (License): Likewise.
72064
72065         * modules/gc-arctwo-tests (License): Likewise.
72066
72067         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72068
72069         * modules/gc-hmac-sha1-tests (Files): Likewise.
72070
72071         * modules/gc-hmac-md5-tests (License): Likewise.
72072
72073         * modules/gc-sha1-tests (License): Likewise.
72074
72075         * modules/gc-md5-tests (License): Likewise.
72076
72077         * modules/gc-md4-tests (License): Likewise.
72078
72079         * modules/gc-md2-tests (License): Likewise.
72080
72081         * modules/gc-tests (License): Likewise.
72082
72083         * modules/des-tests (License): Likewise.
72084
72085         * modules/md4-tests (License): Likewise.
72086
72087         * modules/md2-tests (License): Likewise.
72088
72089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72090
72091         Sync from coreutils:
72092
72093         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72094         * modules/lib-ignore: New file.
72095         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72096         chdir-safer.m4, lchmod.m4.
72097         * modules/openat: Add mkdirat.c, openat-priv.h.
72098
72099 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         Sync from coreutils.
72102         * m4/lib-ignore.m4: New file.
72103         * m4/lchmod.m4: New file.
72104
72105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         Sync from coreutils.
72108         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72109         for write access: POSIX says that must fail.
72110         * lib/fts.c (diropen): Likewise.
72111         * lib/save-cwd.c (save_cwd): Likewise.
72112         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72113         well, for minor improvements on hosts that lack O_DIRECTORY.
72114         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72115         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72116         Fall back on chown if open failed with EACCES.
72117
72118         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72119         Report an error at compile-time if only a 1-second nominal clock
72120         resolution is found.
72121
72122         * lib/lchmod.h: New file.
72123         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72124         (make_dir_parents): Use lchown rather than chown, and
72125         lchmod rather than chmod.
72126
72127         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72128         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72129         "proc" reported by n0dalus.
72130
72131         * lib/mountlist.c: Include <limits.h>.
72132         (dev_from_mount_options)
72133         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72134         New function.  It no longer assumes "dev=" has the System V meaning
72135         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72136         (read_file_system_list)
72137         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72138         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72139         dev= in that case.
72140
72141         * lib/posixtm.h (PDS_PRE_2000): New macro.
72142         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72143         allow_century.  All usages changed.  Reject dates outside the range
72144         1969-1999 if PDS_PRE_2000 is used.
72145
72146 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         Sync from coreutils.
72149         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72150         (Time of day items): Mention the possibility of leap seconds.
72151         Problem reported by Dr. David Alan Gilbert.
72152
72153 2006-01-09  Jim Meyering  <jim@meyering.net>
72154
72155         Sync from coreutils.
72156
72157         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72158
72159         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72160
72161         * lib/modechange.c (mode_compile): Reject an invalid mode string
72162         that starts with an octal digit.  From Andreas Gruenbacher.
72163
72164         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72165         and dup to open_safer and dup_safer, respectively.
72166         (openat_permissive): Fix typo in comment.
72167
72168         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72169         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72170         (_): Remove; no longer needed.
72171         (openat): Renamed from rpl_openat; no need for rpl_openat
72172         since openat.h renames openat for us.
72173         Replace most of the body with a call to openat_permissive,
72174         to avoid duplicate code.
72175         Port to (probably hypothetical) environments were mode_t is
72176         wider than int.
72177         (openat_permissive): Require mode arg, so that we can check
72178         types better.  Put it just after flags.  Change cwd failure
72179         indicator from pointer-to-bool to pointer-to-errno-value.
72180         All callers changed.
72181         Invoke openat_save_fail and/or openat_restore_fail if
72182         cwd_errno is null, so that openat can call us.
72183         (openat_permissive, fdopendir, fstatat, unlinkat):
72184         Simplify errno handling to avoid some duplicate code,
72185         as it's OK to set errno on success.
72186         * lib/openat.h: Revamp code so that function macros depend on
72187         __OPENAT_PREFIX only, not also on AT_FDCWD.
72188         (openat_ro): Remove.  Caller changed to use openat_permissive.
72189         (openat_permissive): Now a macro, if not a function.
72190         (openat_restore_fail, openat_save_fail): Now always functions,
72191         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72192
72193         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72194         and openat.c.
72195         * lib/mkdirat.c: Include openat-priv.h.
72196         Remove definitions of macros defined therein.
72197         * lib/openat.c: Likewise.
72198
72199         * lib/mkdirat.c (mkdirat): New file and function.
72200         * lib/openat.h (mkdirat): Declare.
72201
72202         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72203
72204         * lib/openat.h (openat_permissive): Declare.
72205         (openat_ro): Define.
72206
72207         * lib/openat.c (EXPECTED_ERRNO): New macro.
72208         (openat_permissive): New function -- used in remove.c rewrite.
72209         (all functions): Set errno just before returning, only if there
72210         was an actual failure.
72211         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72212
72213         Emulate openat-family functions using Linux's procfs, if possible.
72214         Idea and some code based on Ulrich Drepper's glibc changes.
72215
72216         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72217         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72218         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72219         before falling back on save_cwd and restore_cwd.
72220         (fdopendir, fstatat, unlinkat): Likewise.
72221
72222         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72223         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72224
72225         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72226         as second argument to va_arg.  Otherwise, some versions of gcc
72227         warn that `if this code is reached, the program will abort'.
72228
72229 2006-01-09  Jim Meyering  <jim@meyering.net>
72230
72231         Sync from coreutils.
72232         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72233         Require openat-priv.h.
72234
72235 2006-01-09  Bruno Haible  <bruno@clisp.org>
72236
72237         * modules/strnlen (Include): Use strnlen.h.
72238
72239 2006-01-09  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72242
72243 2006-01-09  Bruno Haible  <bruno@clisp.org>
72244
72245         * lib/sysexit_.h (EX_OK): New macro.
72246         Suggested by Martin Lambers <marlam@marlam.de>.
72247
72248 2006-01-09  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72251         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72252
72253 2006-01-09  Bruno Haible  <bruno@clisp.org>
72254
72255         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72256         numbers.
72257
72258 2006-01-09  Bruno Haible  <bruno@clisp.org>
72259
72260         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72261         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72262         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72263         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72264
72265 2006-01-09  Bruno Haible  <bruno@clisp.org>
72266
72267         * build-aux/javacomp.sh.in: New file, moved from lib/.
72268         * modules/javacomp-script (Files): Update.
72269         (configure.ac): Add AC_CONFIG_FILES invocation.
72270         (EXTRA_DIST): Remove variable.
72271
72272         * build-aux/javaexec.sh.in: New file, moved from lib/.
72273         * modules/javaexec (Files): Update.
72274         (configure.ac): Add AC_CONFIG_FILES invocation.
72275         (EXTRA_DIST): Remove javaexec.sh.in.
72276
72277         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72278         * modules/csharpcomp-script (Files): Update.
72279         (configure.ac): Add AC_CONFIG_FILES invocation.
72280         (EXTRA_DIST): Remove variable.
72281
72282         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72283         * modules/csharpexec (Files): Update.
72284         (configure.ac): Add AC_CONFIG_FILES invocation.
72285         (EXTRA_DIST): Remove csharpexec.sh.in.
72286
72287 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72288
72289         Sync from coreutils.
72290
72291         Add POSIX ACL support
72292         * lib/acl.h (copy_acl, set_acl): Add declarations.
72293         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72294         systems other than Linux.
72295         (chmod_or_fchmod): New function: use fchmod when possible,
72296         and chmod otherwise.
72297         (file_has_acl): Add a POSIX ACL implementation, with a
72298         Linux-specific subcase.
72299         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72300         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72301         acls are unsupported.
72302         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72303         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72304         are unsupported.
72305
72306 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72307
72308         Sync from coreutils.
72309         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72310
72311 2006-01-07  Bruno Haible  <bruno@clisp.org>
72312
72313         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72314         gl_EARLY.
72315
72316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72319         Problem reported for Mingw by Mark Junker.
72320
72321 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * README: Gnulib normally doesn't generate a tarball.
72324
72325 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72326
72327         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72328         long int, not int, for nanosecond counts, so that people who are
72329         used to POSIX struct timespec won't be surprised.  Reported by Jim
72330         Meyering.
72331
72332 2005-12-28  Bruno Haible  <bruno@clisp.org>
72333
72334         * build-aux/config.rpath: Update from GNU gettext.
72335
72336 2005-12-16  Jim Meyering  <jim@meyering.net>
72337
72338         * modules/fprintftime: New module.
72339         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72340
72341 2005-12-16  Jim Meyering  <jim@meyering.net>
72342
72343         * m4/fprintftime.m4: New file.
72344
72345 2005-12-16  Jim Meyering  <jim@meyering.net>
72346
72347         * lib/fprintftime.c, lib/fprintftime.h: New files.
72348
72349 2005-12-15  Simon Josefsson  <jas@extundo.com>
72350
72351         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72352         new m4/socklen.m4.
72353
72354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72355
72356         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72357         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72358
72359 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72360
72361         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72362         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72363         struct uparams is valid. Fall back to the default values if it is
72364         not.
72365
72366 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72367
72368         * modules/argp (Files): Add argp-pin.c
72369         (Depends-on): dirname
72370         (lib_SOURCES): Add argp-pin.c
72371
72372 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72373
72374         * m4/argp.m4:  Check if program_invocation_name and
72375         program_invocation_short_name are declared and define appropriate
72376         macros if they are not.
72377
72378 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72379
72380         * lib/argp-help.c (__argp_base_name): New function
72381         (__argp_short_program_name): Rewrite using __argp_base_name
72382         * lib/argp-namefrob.h: Define program_invocation_name and
72383         program_invocation_short_name if requested
72384         (__argp_base_name): Add prototype
72385         * lib/argp-parse.c (argp_def): Use gettext wrappers
72386         (argp_default_parser): Use __argp_base_name
72387         * lib/argp-pin.c: New file. Defines program_invocation_name and
72388         program_invocation_short_name on systems that lack them.
72389
72390 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72393         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72394         porting problem reported by Georg Schwarz in
72395         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72396
72397 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72400         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72401         porting problem reported by Georg Schwarz in
72402         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72403
72404 2005-12-05  Bruno Haible  <bruno@clisp.org>
72405
72406         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72407         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72408         Reported by Mark Junker <mjscod@gmx.de>.
72409
72410 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72411
72412         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72413         Use implementation from Albert Chin, with some
72414         comments/corrections by Stepan Kasal and myself.
72415
72416 2005-12-02  Bruno Haible  <bruno@clisp.org>
72417
72418         * gnulib-tool (func_import): Accept GPLed build tool modules when
72419         --lgpl is given.
72420         * modules/csharpcomp-script: New file.
72421         * modules/csharpcomp: Depend on it.
72422         * modules/javacomp-script: New file.
72423         * modules/javacomp: Depend on it.
72424         Suggested by Simon Josefsson.
72425
72426 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72429         statement, to work around an HP-UX 10.20 compiler bug reported by
72430         Peter O'Gorman.
72431
72432 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * modules/savedir (Depends-on): Add openat.
72435
72436 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72439         (uintmax_t) [defined uintmax_t]: Do not declare.
72440         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72441         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72442         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72443         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72444         sake of portability to weird hosts that C allows (though we don't
72445         know of any practical examples).
72446
72447         * lib/savedir.h (fdsavedir): New decl.
72448         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72449         contains most of the former guts of savedir.
72450         (savedir): Use savedirstream.
72451         Include "openat.h".
72452
72453 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72454
72455         * modules/obstack (Files): Add m4/ulonglong.m4.
72456         Problem reported by Davide Angelocola.
72457
72458 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72459
72460         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72461         coreutils no longer futzes with rounding modes.
72462
72463 2005-11-14  Jim Meyering  <jim@meyering.net>
72464
72465         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72466         replacement of mkstemp.
72467
72468 2005-11-10  Simon Josefsson  <jas@extundo.com>
72469
72470         * lib/readline.c: Remove EOL.
72471
72472 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * modules/gethrxtime (Depends-on): Add gettime.
72475
72476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72479         or gettimeofday; no longer needed.
72480
72481 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72484         time business.
72485         (gethrxtime) [! (HAVE_NANOUPTIME
72486         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72487         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72488         our own approximation.
72489
72490 2005-11-08  Eric Blake  <ebb9@byu.net>
72491
72492         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72493
72494 2005-11-08  Eric Blake  <ebb9@byu.net>
72495
72496         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72497
72498 2005-11-04  Bruno Haible  <bruno@clisp.org>
72499
72500         * gnulib-tool: Implement --update mode.
72501
72502 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         Fix porting problem reported by Theodoros V. Kalamatianos.
72505         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72506         Don't assume that futimes failing means we must fail.
72507
72508 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72511         variables to suggest the intended function of the PATH_MAX check.
72512
72513 2005-10-30  Kean Johnston  <jkj@sco.com>
72514
72515         Trivial changes to support SCO systems.
72516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72517         as PATH_MAX.
72518         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72519         where __ptr is null when no I/O is pending.
72520
72521 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72524         leave errno alone.  Problem reported by Dmitry V. Levin.
72525
72526 2005-10-28  Simon Josefsson  <jas@extundo.com>
72527
72528         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72529         Test more.
72530
72531         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72532
72533         * modules/md2, modules/md2-tests: New files.
72534
72535 2005-10-28  Simon Josefsson  <jas@extundo.com>
72536
72537         * m4/inet_ntop.m4: More tests.
72538
72539         * m4/gc-md2.m4, md2.m4: New file.
72540
72541 2005-10-28  Simon Josefsson  <jas@extundo.com>
72542
72543         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72544         "restrict" keywords, as per POSIX.  Protect the function
72545         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72546         Don't use K&R prototypes.  Check the sprintf return values.
72547         Re-define EAFNOSUPPORT if not present.  Indent.
72548
72549         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72550         suggested by Bruno Haible <bruno@clisp.org>.
72551
72552         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72553
72554         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72555
72556         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72557         libgcrypt).
72558
72559         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72560
72561         * lib/md2.h, lib/md2.c: New files.
72562
72563 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72564
72565         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72566         errno alone.  Problem reported by Frederic Jolliton.
72567
72568 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72569
72570         * modules/verify (License): Change from GPL to LGPL.  This is a
72571         tiny module and there are apparently near-equivalents that are
72572         under the BSD license.
72573
72574 2005-10-24  Simon Josefsson  <jas@extundo.com>
72575
72576         * modules/sha1: Relicense to LGPL.
72577
72578 2005-10-24  Simon Josefsson  <jas@extundo.com>
72579
72580         * lib/md4.h: Shrink buffer size, now that we changed the type.
72581
72582 2005-10-23  Simon Josefsson  <jas@extundo.com>
72583
72584         * gnulib-tool (func_import): Fix --tests-base.
72585
72586 2005-10-22  Simon Josefsson  <jas@extundo.com>
72587
72588         * modules/arcfour (Depends-on): Need stdint.
72589
72590 2005-10-22  Simon Josefsson  <jas@extundo.com>
72591
72592         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72593         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72594
72595 2005-10-22  Simon Josefsson  <jas@extundo.com>
72596
72597         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72598         suggested by Bruno Haible <bruno@clisp.org>.
72599
72600 2005-10-22  Simon Josefsson  <jas@extundo.com>
72601
72602         * lib/crc.h: Include stddef.h, for size_t.
72603
72604 2005-10-22  Simon Josefsson  <jas@extundo.com>
72605
72606         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72607         arcfour_context struct (simplify test vector testing in GNU
72608         Shishi).
72609
72610 2005-10-21  Simon Josefsson  <jas@extundo.com>
72611
72612         * modules/des, modules/des-tests: New files.
72613
72614         * modules/gc-des, modules/gc-des-tests: New files.
72615
72616         * tests/test-des.c, tests/test-gc-des.c: New file.
72617
72618 2005-10-21  Simon Josefsson  <jas@extundo.com>
72619
72620         * modules/arctwo, modules/arctwo-tests: New files.
72621
72622         * tests/test-arctwo.c: New file.
72623
72624         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72625
72626         * tests/test-gc-arctwo.c: New file.
72627
72628 2005-10-21  Simon Josefsson  <jas@extundo.com>
72629
72630         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72631         Bruno Haible <bruno@clisp.org>.
72632
72633         * m4/gc-des.m4: New file.
72634
72635 2005-10-21  Simon Josefsson  <jas@extundo.com>
72636
72637         * m4/arctwo.m4: New file.
72638
72639         * m4/gc-arctwo.m4: New file.
72640
72641 2005-10-21  Simon Josefsson  <jas@extundo.com>
72642
72643         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72644         block.
72645
72646 2005-10-21  Simon Josefsson  <jas@extundo.com>
72647
72648         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72649         <bruno@clisp.org>.
72650
72651         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72652
72653         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72654         Bruno Haible <bruno@clisp.org>.
72655
72656         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72657         <bruno@clisp.org>.
72658
72659 2005-10-21  Simon Josefsson  <jas@extundo.com>
72660
72661         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72662
72663 2005-10-21  Simon Josefsson  <jas@extundo.com>
72664
72665         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72666
72667 2005-10-21  Simon Josefsson  <jas@extundo.com>
72668
72669         * lib/des.h, lib/des.c: New files.
72670
72671         * lib/gc-gnulib.c: Support DES.c
72672
72673 2005-10-21  Simon Josefsson  <jas@extundo.com>
72674
72675         * lib/arctwo.h, lib/arctwo.c: New files.
72676
72677         * lib/gc-gnulib.c: Support ARCTWO.
72678
72679 2005-10-21  Simon Josefsson  <jas@extundo.com>
72680
72681         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72682         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72683
72684 2005-10-21  Simon Josefsson  <jas@extundo.com>
72685
72686         * gnulib-tool (func_import, func_create_testdir): Define automake
72687         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72688         Makefile.am snippet),
72689         suggested by Bruno Haible <bruno@clisp.org>.
72690
72691         * modules/gc (Makefile.am): Use it.
72692
72693 2005-10-21  Bruno Haible  <bruno@clisp.org>
72694
72695         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72696         patch.
72697
72698 2005-10-19  Simon Josefsson  <jas@extundo.com>
72699
72700         * tests/test-gc-rijndael.c: New file.
72701
72702         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72703
72704 2005-10-19  Simon Josefsson  <jas@extundo.com>
72705
72706         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72707         interface too.
72708
72709 2005-10-19  Simon Josefsson  <jas@extundo.com>
72710
72711         * tests/test-gc-arcfour.c: New file.
72712
72713         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72714
72715 2005-10-19  Simon Josefsson  <jas@extundo.com>
72716
72717         * modules/gc-md4, modules/gc-md4-tests: New file.
72718
72719         * tests/test-gc-md4.c: New file.
72720
72721 2005-10-19  Simon Josefsson  <jas@extundo.com>
72722
72723         * m4/gc-md4.m4: New file.
72724
72725 2005-10-19  Simon Josefsson  <jas@extundo.com>
72726
72727         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72728         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72729         <kasal@ucw.cz>.
72730
72731 2005-10-19  Simon Josefsson  <jas@extundo.com>
72732
72733         * m4/gc-arcfour.m4: New file.
72734
72735         * m4/gc-rijndael.m4: New file.
72736
72737 2005-10-19  Simon Josefsson  <jas@extundo.com>
72738
72739         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72740
72741 2005-10-19  Simon Josefsson  <jas@extundo.com>
72742
72743         * lib/gc-gnulib.c: Support ARCFOUR.
72744
72745 2005-10-19  Simon Josefsson  <jas@extundo.com>
72746
72747         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72748         support.
72749
72750         * lib/gc.h: Add ECB enum type.
72751
72752         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72753
72754 2005-10-18  Simon Josefsson  <jas@extundo.com>
72755
72756         * tests/test-md5.c: New file.
72757
72758         * modules/md5-tests: New file.
72759
72760 2005-10-18  Simon Josefsson  <jas@extundo.com>
72761
72762         * tests/test-md4.c: New file.
72763
72764         * modules/md4, modules/md4-tests: New files.
72765
72766 2005-10-18  Simon Josefsson  <jas@extundo.com>
72767
72768         * m4/md4.m4: New file.
72769
72770 2005-10-18  Simon Josefsson  <jas@extundo.com>
72771
72772         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72773
72774 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72775
72776         * gnulib-tool (func_create_testdir): Omit the second check whether
72777         BUILT_SOURCES in nonempty.
72778
72779 2005-10-17  Simon Josefsson  <jas@extundo.com>
72780
72781         * tests/test-rijndael.c: New file.
72782
72783 2005-10-17  Simon Josefsson  <jas@extundo.com>
72784
72785         * modules/sha1: Depend on stdint instead of md5.
72786
72787         * modules/md5: Depend on stdint, remove uint32_t.
72788
72789 2005-10-17  Simon Josefsson  <jas@extundo.com>
72790
72791         * modules/gc-sha1-tests: New file.
72792
72793         * tests/test-gc-sha1.c: New file.
72794
72795 2005-10-17  Simon Josefsson  <jas@extundo.com>
72796
72797         * m4/md5.m4: Remove call to uint32_t.m4.
72798
72799 2005-10-17  Simon Josefsson  <jas@extundo.com>
72800
72801         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72802
72803         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72804         md5.h.
72805
72806         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72807
72808         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72809
72810 2005-10-17  Simon Josefsson  <jas@extundo.com>
72811
72812         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72813
72814 2005-10-17  Simon Josefsson  <jas@extundo.com>
72815
72816         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72817
72818 2005-10-17  Simon Josefsson  <jas@extundo.com>
72819
72820         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72821
72822         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72823
72824 2005-10-17  Bruno Haible  <bruno@clisp.org>
72825
72826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72827         that it can also be used in a test.
72828
72829 2005-10-16  Bruno Haible  <bruno@clisp.org>
72830
72831         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72832         TESTS_ENVIRONMENT, so that individual tests can augment it.
72833
72834         * gnulib-tool (func_create_testdir): Use an intermediate target for
72835         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72836         macros, like $(ALLOCA_H), which cannot be passed through the command
72837         line.
72838
72839 2005-10-15  Simon Josefsson  <jas@extundo.com>
72840
72841         * modules/rijndael-tests: New file.
72842
72843         * modules/rijndael: New file.
72844
72845 2005-10-15  Simon Josefsson  <jas@extundo.com>
72846
72847         * m4/rijndael.m4: New file.
72848
72849 2005-10-15  Simon Josefsson  <jas@extundo.com>
72850
72851         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72852
72853         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72854
72855 2005-10-14  Simon Josefsson  <jas@extundo.com>
72856
72857         * tests/test-arcfour.c: New file.
72858
72859         * modules/arcfour, modules/arcfour-tests: New files.
72860
72861 2005-10-14  Simon Josefsson  <jas@extundo.com>
72862
72863         * m4/arcfour.m4: New file.
72864
72865 2005-10-14  Simon Josefsson  <jas@extundo.com>
72866
72867         * lib/arcfour.h, lib/arcfour.c: New files.
72868
72869 2005-10-14  Roland McGrath  <roland@redhat.com>
72870
72871         Import from libc.  [BZ #1331]
72872         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72873         macro argument.
72874         Reported by Matej Vela <vela@debian.org>.
72875
72876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72879         include <wchar.h>; no longer needed.
72880
72881 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72884
72885 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72886         and  Ulrich Drepper  <drepper@redhat.com>
72887
72888         Import from libc.
72889         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72890         instead of inline stream orientation test and two separate
72891         function calls.  Pay no attention to USE_IN_LIBIO.
72892
72893 2005-10-13  Simon Josefsson  <jas@extundo.com>
72894
72895         * modules/gc-hmac-md5-tests: New file.
72896
72897         * tests/test-gc-hmac-sha1.c: New file.
72898
72899         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72900
72901         * modules/gc-hmac-md5-tests: New file.
72902
72903         * tests/test-gc-md5.c: New file.
72904
72905         * modules/gc-md5-tests: New file.
72906
72907 2005-10-13  Simon Josefsson  <jas@extundo.com>
72908
72909         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72910         Move memory allocation outside of loop.
72911
72912 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72915         intermediate directory is in a read-only file system.  Problem
72916         reported by Eric Blake.
72917
72918 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72919
72920         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72921
72922 2005-10-12  Simon Josefsson  <jas@extundo.com>
72923
72924         * tests/test-hmac-sha1.c: New file.
72925
72926         * modules/hmac-sha1-tests: New file.
72927
72928         * modules/hmac-sha1: New file.
72929
72930 2005-10-12  Simon Josefsson  <jas@extundo.com>
72931
72932         * modules/gc-sha1: New file.
72933
72934 2005-10-12  Simon Josefsson  <jas@extundo.com>
72935
72936         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72937
72938         * tests/test-gc-pbkdf2-sha1.c: New file.
72939
72940 2005-10-12  Simon Josefsson  <jas@extundo.com>
72941
72942         * modules/gc-md5, modules/gc-hmac-md5: New files.
72943
72944         * modules/gc (Files): Remove md5, memxor and hmac files.
72945
72946 2005-10-12  Simon Josefsson  <jas@extundo.com>
72947
72948         * m4/gc-pbkdf2-sha1.m4: New file.
72949
72950         * m4/gc-hmac-sha1.m4: New file.
72951
72952         * m4/gc-sha1: New file.
72953
72954         * m4/hmac-sha1.m4: New file.
72955
72956 2005-10-12  Simon Josefsson  <jas@extundo.com>
72957
72958         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72959
72960         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72961
72962 2005-10-12  Simon Josefsson  <jas@extundo.com>
72963
72964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72965         suggested by Bruno Haible <bruno@clisp.org>.
72966
72967 2005-10-12  Simon Josefsson  <jas@extundo.com>
72968
72969         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72970
72971 2005-10-12  Simon Josefsson  <jas@extundo.com>
72972
72973         * lib/gc-pbkdf2-sha1.c: New file.
72974
72975         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72976
72977 2005-10-12  Simon Josefsson  <jas@extundo.com>
72978
72979         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72980
72981         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72982
72983 2005-10-12  Simon Josefsson  <jas@extundo.com>
72984
72985         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72986         GC_USE_HMAC_MD5, respectively.
72987
72988         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72989         (gc_md5): Fix typo.
72990
72991         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72992
72993         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72994
72995         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72996
72997 2005-10-12  Bruno Haible  <bruno@clisp.org>
72998
72999         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73000         Reported by Stepan Kasal <kasal@ucw.cz>.
73001
73002 2005-10-11  Simon Josefsson  <jas@extundo.com>
73003
73004         * tests/test-crc.c: New file.
73005
73006         * modules/crc, modules/crc-tests: New files.
73007
73008 2005-10-11  Simon Josefsson  <jas@extundo.com>
73009
73010         * m4/crc.m4: New file.
73011
73012 2005-10-11  Simon Josefsson  <jas@extundo.com>
73013
73014         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73015
73016         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73017
73018         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73019
73020 2005-10-11  Simon Josefsson  <jas@extundo.com>
73021
73022         * lib/crc.h, lib/crc.c: New files.
73023
73024         * lib/gc.h (gc_hash_buffer): Add doc.
73025
73026 2005-10-11  Bruno Haible  <bruno@clisp.org>
73027
73028         * modules/c-strcasestr: New file.
73029         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73030
73031 2005-10-11  Bruno Haible  <bruno@clisp.org>
73032
73033         * modules/c-strcase: New file.
73034         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73035
73036 2005-10-11  Bruno Haible  <bruno@clisp.org>
73037
73038         * lib/strcasecmp.c: Include limits.h.
73039         (strcasecmp): Avoid integer overflow on exotic platforms.
73040         * lib/strncasecmp.c: Include limits.h.
73041         (strncasecmp): Avoid integer overflow on exotic platforms.
73042         Reported by Paul Eggert.
73043
73044 2005-10-11  Bruno Haible  <bruno@clisp.org>
73045
73046         * lib/c-strcasestr.h: New file, from GNU gettext.
73047         * lib/c-strcasestr.c: New file, from GNU gettext.
73048
73049 2005-10-11  Bruno Haible  <bruno@clisp.org>
73050
73051         * lib/c-strcase.h: New file, from GNU gettext.
73052         * lib/c-strcasecmp.c: New file, from GNU gettext.
73053         * lib/c-strncasecmp.c: New file, from GNU gettext.
73054
73055 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73056
73057         * modules/mempcpy (License): GPL -> LGPL.
73058         * modules/strchrnul (License): Likewise.
73059         * modules/sysexits (License): Likewise.
73060
73061 2005-10-08  Simon Josefsson  <jas@extundo.com>
73062
73063         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73064
73065 2005-10-07  Simon Josefsson  <jas@extundo.com>
73066
73067         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73068
73069 2005-10-06  Simon Josefsson  <jas@extundo.com>
73070
73071         * tests/test-hmac-md5.c: New file.
73072
73073         * modules/hmac-md5-tests: New file.
73074
73075         * modules/hmac-md5: New file.
73076
73077 2005-10-06  Simon Josefsson  <jas@extundo.com>
73078
73079         * m4/hmac-md5.m4: New file.
73080
73081         * m4/memxor.m4: Require gl_C_RESTRICT.
73082
73083 2005-10-06  Simon Josefsson  <jas@extundo.com>
73084
73085         * lib/memxor.c (memxor): Avoid casts and warnings.
73086
73087 2005-10-06  Simon Josefsson  <jas@extundo.com>
73088
73089         * lib/hmac-md5.c: New file.
73090
73091         * lib/hmac.h: New file.
73092
73093 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73094
73095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73096         promotes to int, not unsigned int, to catch the AIX 5.3
73097         compiler bug.
73098
73099 2005-10-05  Simon Josefsson  <jas@extundo.com>
73100
73101         * modules/memxor: New file.
73102
73103         * modules/iconv (Files): Move config.rpath to havelib, it is used
73104         there.
73105
73106         * modules/havelib (Files): Add config.rpath.
73107
73108 2005-10-05  Simon Josefsson  <jas@extundo.com>
73109
73110         * m4/memxor.m4: New file.
73111
73112 2005-10-05  Simon Josefsson  <jas@extundo.com>
73113
73114         * lib/memxor.c (memxor): Fix compiler error.
73115
73116         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73117         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73118
73119         * lib/memxor.h, lib/memxor.c: New files.
73120
73121         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73122         we assume all systems have it, suggested by Jim Meyering
73123         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73124         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73125         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73126         same reasons.
73127
73128 2005-10-05  Simon Josefsson  <jas@extundo.com>
73129
73130         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73131
73132 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73135         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73136         needed, since the source code now assumes these .h files.
73137
73138 2005-10-05  Derek Price  <derek@ximbiot.com>
73139
73140         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73141
73142 2005-10-05  Bruno Haible  <bruno@clisp.org>
73143
73144         * modules/stdint (License): Change to LGPL.
73145
73146 2005-10-04  Simon Josefsson  <jas@extundo.com>
73147
73148         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73149         D. Baushke" <mdb@gnu.org>.
73150
73151 2005-10-04  Bruno Haible  <bruno@clisp.org>
73152
73153         * lib/verify.h (verify_true): Provide alternative definition for C++.
73154
73155 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73158         (SSIZE_MAX): New macro, if not already defined.
73159         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73160         than 2 GiB.
73161
73162 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         Sync from coreutils.
73165         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73166         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73167         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73168         ULLONG_MAX doesn't work with 2.7.2.1.
73169
73170 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73171
73172         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73173         From Ben Pfaff.
73174
73175         * modules/exclude (Depends-on): Depend on verify.
73176         * modules/strtoimax (Depends-on): Likewise.
73177         * modules/utimecmp (Depends-on): Likewise.
73178
73179 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73180
73181         * lib/exclude.c: Include verify.h.
73182         (verify): Remove.  All callers changed to use verify.h's version.
73183         * lib/strtoimax.c: Likewise.
73184         * lib/utimecmp.c: Likewis.e
73185
73186         Sync from coreutils.
73187         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73188         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73189         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73190         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73191         bother returning ENOSYS if settimeofday or stime fails; just let
73192         them return whatever errno they want to return.
73193         * lib/utimens.c: Include unistd.h, for dup2.
73194         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73195         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73196
73197 2005-10-02  Jim Meyering  <jim@meyering.net>
73198
73199         Sync from coreutils.
73200         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73201         from glibc-2.2.5 that fails for read-only files.
73202
73203 2005-10-02  Jim Meyering  <jim@meyering.net>
73204
73205         Sync from coreutils.
73206         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73207         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73208         `#if HAVE_CONFIG_H'.
73209         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73210         Remove AT_FDCWD test.
73211         Do not consume the fd unless successful.
73212         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73213         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73214         block, so that we don't even try to compile it if settimeofday is
73215         available.  This works around a compilation failure on OSF1 V5.1,
73216         due to stime requiring a `long int*' while tv_sec is `int'.
73217
73218 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73219
73220         Sync from coreutils.
73221         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73222         against `yes', rather than just testing for nonempty.
73223
73224 2005-10-01  Simon Josefsson  <jas@extundo.com>
73225
73226         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73227         and Darwin.
73228
73229         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73230         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73231         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73232         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73233         Check if struct addrinfo is declared.
73234
73235 2005-10-01  Simon Josefsson  <jas@extundo.com>
73236
73237         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73238         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73239         AI_* and EAI_* definitions.  Protect function declarations.
73240
73241 2005-10-01  Jim Meyering  <jim@meyering.net>
73242
73243         Sync from coreutils.
73244
73245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73246         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73247         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73249         in the inet and nsl libraries.  Required on Solaris 5.7.
73250
73251 2005-10-01  Jim Meyering  <jim@meyering.net>
73252
73253         Sync from coreutils.
73254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73255         in the inet and nsl libraries.  Required on Solaris 5.7.
73256
73257 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73258
73259         * lib/getdelim.c (getdelim): Remove unused variables.
73260
73261 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73264         so that the code works even with ancient cpp.  Portability problem
73265         with GCC 2.7.2.1 reported by Thomas M.Ott.
73266
73267 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * modules/regex (Depends-on): Add strcase.
73270
73271         * modules/gethostname (Licence): Change from GPL to LGPL, since
73272         gethostname.c is a trivial implementation of a standard library
73273         function.
73274         * modules/poll (License): Change from GPL to LGPL, since it's
73275         derived from LGPL code.
73276
73277 2005-09-27  Jim Meyering  <jim@meyering.net>
73278
73279         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73280         HAVE_CONFIG_H.
73281
73282         * lib/intprops.h (signed_type_or_expr__): Define.
73283         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73284         for unsigned types.
73285
73286 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73287
73288         * lib/verify.h (verify_expr): Remove, replacing with:
73289         (verify_true): New macro that returns true instead of void.
73290         (verify_type__): Remove.
73291         (verify): Use verify_true rather than verify_type__.
73292
73293 2005-09-26  Bruno Haible  <bruno@clisp.org>
73294
73295         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73296         is necessary.
73297         (lib_SOURCES): Remove mbchar.c.
73298         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73299         (Files): Add m4/mbrtowc.m4.
73300         * modules/mbiter: Likewise.
73301         * modules/mbuiter: Likewise.
73302
73303 2005-09-26  Bruno Haible  <bruno@clisp.org>
73304
73305         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73306         compile mbchar.c if they are not both present.
73307         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73308         * m4/mbiter.m4 (gl_MBITER): Likewise.
73309         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73310         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73311         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73312
73313 2005-09-25  Jim Meyering  <jim@meyering.net>
73314
73315         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73316         also uses socklen_t.
73317
73318 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73319
73320         * lib/utimens.c (ENOSYS): Define if not already defined.
73321         (futimens): Support having a null PATH if the file descriptor
73322         is nonnegative.
73323
73324         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73325         Remove.
73326         (__attribute): Define to empty unless GCC 3.1 or later.
73327         This works around a core dump on OpenBSD 3.4, which has GCC
73328         2.95.3, which dumps core when given __attribute__(()).  It also
73329         simplifies other tests, since we really don't want to bother with
73330         worrying about which ancient version of GCC supported what.
73331         Original problem reported by Yoann Vandoorselaere, with part of
73332         the fix suggested by Derek Price.
73333
73334 2005-09-24  Jim Meyering  <jim@meyering.net>
73335
73336         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73337         so we can once again use a positive bitfield width of 1 -- now we
73338         don't have to explain why we were using a bitfield width of 2.
73339
73340 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73343         and similarly for the other external symbols.  Problem reported
73344         by James Gallager.
73345
73346         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73347         bug reported by Jim Meyering.
73348
73349         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73351         not needed, since socklen is a prerequisite module.
73352
73353 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73356         Problem reported by Eric Blake.
73357         (getaddrinfo): Initialize se so that it's not garbage.
73358         Redo internal storage allocation so that it doesn't make unportable
73359         assumptions about alignment.
73360         Fix a memory leak.
73361
73362         * lib/utimens.c (futimens): Use futimesat if available.
73363         Prefer it to futimes since it doesn't have the futimes bug.
73364
73365         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73366         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73367         Instead, declare a function that returns a pointer to an array,
73368         and use verify_type__ to declare the size of the array.
73369         Problem and germ of a solution reported by Bruno Haible.
73370         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73371         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73372
73373 2005-09-23  Jim Meyering  <jim@meyering.net>
73374
73375         Sync from coreutils.
73376         Correct build failure (socklen_t not defined) on at least
73377         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73379
73380 2005-09-23  Jim Meyering  <jim@meyering.net>
73381
73382         * modules/getaddrinfo (Depends-on): Add socklen.
73383
73384 2005-09-23  Bruno Haible  <bruno@clisp.org>
73385
73386         * tests/test-verify.c: New file.
73387
73388 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         Sync from coreutils.
73391
73392         * modules/argmatch (Depends-on): Add verify.
73393         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73394         unistd-safer.
73395         * modules/save-cwd (Depends-on): Likewise.
73396
73397         * modules/openat (Files): Add lib/openat-die.c.
73398         (Depends-on): Remove error, exitfail.
73399         Add dirname.
73400
73401         * modules/verify: New file.
73402         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73403         with "verify" module.
73404
73405 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         Sync from coreutils.
73408
73409         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73410         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73411         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73412         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73413         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73414         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73415         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73416         Don't bother checking for string.h, stdlib.h, unistd.h.
73417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73418         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73419         module's job.
73420         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73421         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73422
73423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73424         (gl_GETDATE): Use it.
73425
73426         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73427
73428 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73429
73430         Sync from coreutils.
73431
73432         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73433         stat-time.h.
73434         * lib/argmatch.h: Include verify.h
73435         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73436         (ARGMATCH_ASSERT): Remove; unused.
73437         * lib/canonicalize.c: Assume STDC_HEADERS.
73438         * lib/exclude.c: Include "strcase.h".
73439         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73440         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73441         and stdio-safer.h.
73442         (getusershell): Call fopen, not fopen_safer.
73443         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73444         Do not include unistd-safer.h.
73445         (save_cwd): Don't call fd_safer; no longer needed
73446         now that we include fcntl--.h.
73447
73448         * lib/getdate.y (relative_time): New type.
73449         (RELATIVE_TIME_0): New constant.
73450         (parser_control): Use relative_time instead of doing it ourselves.
73451         (%union): Add new relative_time rel member.
73452         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73453         Now typeless.
73454         (relunit, relunit_snumber): Now of type rel.
73455         (zone, rel, relunit, get_date): Adjust to above changes.
73456
73457         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73458         Do not include unistd-safer.h.
73459         (getloadavg): Don't call fd_safer; no longer needed
73460         now that we include fcntl--.h.
73461
73462         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73463         (make_dir_parents): Treat ENOSYS like EEXIST.
73464
73465         Improve quality of diagnostics on restore_cwd failure.
73466         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73467         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73468         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73469         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73470         each time through the loop.  Do not diagnose restore_cwd failure;
73471         that is the caller's job (and perhaps the caller does not care).
73472
73473         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73474         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73475         If the file already exists but is not a directory, don't bother
73476         to try to make its parents.
73477         Close potential file descriptor leak if we can't chdir("/") (!).
73478         Don't always return true if chdir($PWD) fails; return true only
73479         if the requested action was done successfully (except for the
73480         chdir($PWD)).
73481         Don't log final directory unless we actually made it.
73482         Refactor to avoid duplicate code to fix up permissions.
73483         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73484
73485         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73486         to make it a bit faster and (I hope) clearer.
73487         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73488         Fix bug in formats like %2N.
73489
73490         * lib/verify.h: New file.
73491
73492 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73493
73494         Sync from coreutils.
73495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73496
73497 2005-09-22  Jim Meyering  <jim@meyering.net>
73498
73499         Sync from coreutils.
73500
73501         * m4/lstat.m4 (gl_FUNC_LSTAT):
73502         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73503         Remove obsolete comment.
73504         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73505         * m4/xstrtod.m4: Likewise.
73506
73507         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73508
73509 2005-09-22  Jim Meyering  <jim@meyering.net>
73510
73511         Sync from coreutils.
73512
73513         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73514
73515         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73516         the .tm_year member, since otherwise gcc-4.0 would now warn about
73517         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73518
73519         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73520         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73521
73522         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73523         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73524         when run in a time zone for which daylight savings time is in effect
73525         for the starting date.
73526
73527         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73528         stop us from restricting permissions of just-created absolute-named
73529         directories.
73530         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73531         to restore initial working directory.
73532         * lib/mkdir-p.c (make_dir_parents): New parameter:
73533         different_working_dir, to tell caller if/when we change the working
73534         directory and are unable to return to the initial one.
73535         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73536         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73537         `return false'.  This fixes a bug introduced on 2004-07-30.
73538
73539         * lib/openat.c (fdopendir): Be sure to close the supplied
73540         file descriptor before returning.  This makes our replacement
73541         implementation a little closer to Solaris's, where fdopendir
73542         ties the file descriptor to the returned DIR* pointer.
73543         * lib/openat.c (unlinkat): New function.
73544         * lib/openat.h (unlinkat): Add prototype.
73545         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73546         (openat_restore_fail): Rename from openat_restore_die.
73547         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73548
73549         Provide an alternative to exiting immediately upon save_cwd or
73550         restore_cwd failure.  Now, an application can arrange e.g.,
73551         to perform a longjump in that case.
73552         * lib/openat.c: Include dirname.h.
73553         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73554         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73555         and openat_restore_die rather than calling error directly.
73556         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73557
73558         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73559         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73560         define.
73561
73562         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73563         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73564                             int utc, int nanoseconds);
73565         Background:
73566         date should not have to allocate a megabyte of virtual memory to
73567         handle a format argument like +%1048575T.  When implemented with
73568         strftime, it must allocate such a buffer, use strftime to fill it
73569         in, print it, then free it.
73570         With fprintftime, it simply prints everything and exits.
73571         With no need for memory allocation, that's one fewer way to fail.
73572         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73573         optional field width, not before, so we accept %9:z, not %:9z.
73574         (my_strftime): Be sure to use L_('x') for literals.
73575
73576         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73577         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73578         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73579         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73580         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73581         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73582         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73583         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73584         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73585         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73586         * lib/xgethostname.c, lib/xreadlink.c:
73587         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73588
73589         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73590         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73591         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73592         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73593         and don't include <sys/file.h>).
73594
73595 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73596
73597         Sync from coreutils.
73598
73599         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73600         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73601         [!LDAV_DONE]: Avoid unused variable warning.
73602
73603 2005-09-21  Bruno Haible  <bruno@clisp.org>
73604
73605         * lib/unicodeio.h (unicode_to_mb): New declaration.
73606
73607 2005-09-20  Derek Price  <derek@ximbiot.com>
73608
73609         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73610         getaddrinfo.h.
73611
73612 2005-09-20  Bruno Haible  <bruno@clisp.org>
73613
73614         * gnulib-tool: Remove trailing slashes from the values specified for
73615         --source-base, --m4-base, --tests-base, --aux-dir.
73616         Suggested by Simon Josefsson <jas@extundo.com>.
73617
73618 2005-09-20  Bruno Haible  <bruno@clisp.org>
73619
73620         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73621         func_modules_to_filelist, func_import, func_create_testdir): Make all
73622         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73623         change when gnulib-tool is invoked in a different locale.
73624
73625 2005-09-19  Simon Josefsson  <jas@extundo.com>
73626
73627         * m4/socklen.m4: Fix typo.
73628
73629 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73630
73631         Use a consistent style for including <config.h>.
73632         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73633         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73634         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73635         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73636         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73637         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73638         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73639         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73640         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73641         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73642         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73643         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73644         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73645         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73646         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73647         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73648         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73649         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73650         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73651         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73652         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73653         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73654         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73655         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73656         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73657         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73658         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73659         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73660         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73661         lib/xstrtoumax.c, lib/yesno.c:
73662         Standardize inclusion of config.h.
73663         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73664         lib/inttostr.h:  Removed inclusion of config.h from header files.
73665         * lib/inttostr.c:  Adjusted in-tree users.
73666         * lib/timespec.h: Remove superfluous warning to include config.h.
73667         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73668         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73669         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73670         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73671         config.h with HAVE_CONFIG_H.
73672
73673 2005-09-19  Jim Meyering  <jim@meyering.net>
73674
73675         * modules/pathmax (License): Change to LGPL.
73676
73677 2005-09-19  Derek Price  <derek@ximbiot.com>
73678
73679         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73680
73681 2005-09-19  Bruno Haible  <bruno@clisp.org>
73682
73683         * gnulib-tool (import): Provide default for --tests-base.
73684
73685 2005-09-19  Bruno Haible  <bruno@clisp.org>
73686
73687         * doc/quote.texi: New file, extracted from gnulib.texi.
73688         * doc/ctime.texi: New file, extracted from gnulib.texi.
73689         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73690         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73691         * doc/gnulib.texi: Include them.
73692
73693 2005-09-18  Bruno Haible  <bruno@clisp.org>
73694
73695         Portability fix.
73696         * gnulib-tool (func_readlink): New function.
73697         (func_ln_if_changed): Use it.
73698
73699 2005-09-18  Bruno Haible  <bruno@clisp.org>
73700
73701         * gnulib-tool: Support --with-tests also with --import.
73702         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73703         (func_import): Use variables $testsbase and $inctests. Emit a
73704         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73705         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73706         SUBDIRS += $testsdir.
73707         (func_create_testdir): Update.
73708
73709 2005-09-18  Bruno Haible  <bruno@clisp.org>
73710
73711         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73712         instead of $dry_run.
73713         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73714         (func_ln_if_changed): Don't handle dry-run here.
73715         (func_import): In dry-run mode, detect more precisely which actions
73716         would be performed, and don't use "...ing" verbs.
73717
73718 2005-09-18  Bruno Haible  <bruno@clisp.org>
73719
73720         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73721         (func_import): Use join on two temporary files instead of three nested
73722         loops, in order to determine which files are new or old.
73723
73724 2005-09-18  Bruno Haible  <bruno@clisp.org>
73725
73726         * gnulib-tool (func_import): Comment out code that spits out the
73727         new files with --dry-run.
73728
73729 2005-09-18  Bruno Haible  <bruno@clisp.org>
73730
73731         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73732
73733 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73734
73735         * lib/stat-time.h: New file.
73736         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73737         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73738         in a different way.
73739         (timespec_cmp): New function.
73740         * lib/utimecmp.c: Include stat-time.h.
73741         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73742         members exist, not on the obsolescent ST_MTIM_NSEC.
73743         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73744
73745 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73746
73747         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73748
73749 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73750
73751         * MODULES.html.sh (File system functions): Add stat-time.
73752         * modules/stat-time: New file.
73753         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73754         is now done in a different way, by the stat-time module.
73755         * modules/utimecmp (Depends-on): Add stat-time.
73756
73757 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73758
73759         * m4/st_mtim.m4: Remove.  Superseded by...
73760         * m4/stat-time.m4: New file.
73761         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73762         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73763
73764 2005-09-15  Derek Price  <derek@ximbiot.com>
73765
73766         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73767
73768 2005-09-15  Derek Price  <derek@ximbiot.com>
73769
73770         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73771         * lib/regex_internal.c: Ditto, using this...
73772         (__GNUC_PREREQ): ...new macro.
73773         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73774         using...
73775         (__GNUC_PREREQ): ...this new macro.
73776
73777         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73778
73779 2005-09-15  Derek Price  <derek@ximbiot.com>
73780             Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73783         changes, consolidating in...
73784         * lib/regex_internal.h: ...this file.
73785
73786 2005-09-13  Jim Meyering  <jim@meyering.net>
73787
73788         * lib/canon-host.c: Filter through gnu indent and reword comments
73789         slightly.
73790         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73791
73792 2005-09-13  Derek Price  <derek@ximbiot.com>
73793
73794         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73795         failure.
73796         Reported by Jim Meyering  <jim@meyering.net>.
73797
73798 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73799
73800         * lib/base64.c: Typo.
73801         (base64_encode): Put b64str in initialized data section.
73802
73803 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         Merge glibc and coreutils changes into gnulib, plus a few
73806         extra fixes.
73807         * lib/md5.c: Use #error rather than a string.
73808         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73809         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73810         (__attribute__): Define to empty for non recent-GCC.
73811         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73812         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73813         Renamed from their non-__ counterparts, with new macros replacing
73814         them if not _LIBC.  Add __THROW attribute.
73815         (rol): Remove.
73816         (struct md5_ctx): Align buffer if using GCC.
73817         * lib/sha1.h (struct sha1_ctx): Likewise.
73818         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73819         The old name was backwards.
73820         (NOTSWAP): Remove; not used.
73821         (rol): New macro, moved here from md5.h.
73822         (sha1_process_block): Remove a FIXME that doesn't make sense.
73823
73824 2005-09-12  Derek Price  <derek@ximbiot.com>
73825
73826         Return usable errors from canon-host.
73827         * lib/canon-host.h: New file.
73828         * lib/canon-host.c (canon_host): Wrap...
73829         (canon_host_r): ...this new function, which now relies exclusively on
73830         getaddrinfo.
73831         (ch_strerror): New function.
73832         (last_cherror): New global.
73833         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73834         interface.
73835         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73836         void *.
73837         (freeaddrinfo): Free ai->ai_canonname when set.
73838
73839 2005-09-12  Derek Price  <derek@ximbiot.com>
73840
73841         Make canon-host require getaddrinfo.
73842         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73843         AC_LIBSOURCE canon-host.h.  Call...
73844         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73845         gl_GETADDRINFO.
73846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73847
73848 2005-09-12  Derek Price  <derek@ximbiot.com>
73849
73850         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73851         LGPL.
73852         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73853
73854 2005-09-12  Derek Price  <derek@ximbiot.com>
73855
73856         * lib/gai_strerror.c: Include config.h when available.  Include
73857         getaddrinfo.h before other headers to test interface.
73858         Reported by Larry Jones <lawrence.jones@ugs.com>.
73859
73860 2005-09-12  Derek Price  <derek@ximbiot.com>
73861             Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * modules/glob (Files): Add glob-libc.h.
73864
73865 2005-09-12  Derek Price  <derek@ximbiot.com>
73866             Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73869         glob_.h, glob-libc.h.
73870         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73871
73872 2005-09-12  Derek Price  <derek@ximbiot.com>
73873             Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73876         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73877         protecting things that should be done only in gnulib contexts.
73878         * lib/glob_.h: New file, containing only the glob things needed for
73879         gnulib.
73880         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73881         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73882         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73883         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73884         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73885         and to respect the namespace rules better.
73886
73887 2005-09-08  Simon Josefsson  <jas@extundo.com>
73888
73889         * modules/socklen: New file.
73890
73891 2005-09-08  Simon Josefsson  <jas@extundo.com>
73892
73893         * m4/socklen.m4: New file.
73894
73895 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         * modules/utimens (Files): Add m4/utimbuf.m4, since
73898         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73899         Reported by Sergey Poznyakoff.
73900
73901 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73902
73903         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73904         definitions, since that's the preferred style in glibc.
73905         Fix a minor spacing issue, and update copyright notice to match
73906         glibc's.
73907
73908 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73911
73912 2005-09-06  Simon Josefsson  <jas@extundo.com>
73913
73914         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73915         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73916
73917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73920         warning.
73921
73922 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         * config/srclist.txt: Add glibc bug 1302.
73925
73926 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73927
73928         Change bitset word type from unsigned int to unsigned long int,
73929         as this has better performance on typical 64-bit hosts.
73930         Port bitset code to hosts with unusual word sizes.
73931         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73932         (build_collating_symbol):
73933         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73934         argument is a bitset.  This is merely a style issue, but it makes
73935         it clearer that an entire array is expected.
73936         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73937         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73938         Port to the case where bitset_word is not the same as unsigned int.
73939         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73940         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73941         Likewise.
73942         * lib/regexec.c (check_dst_limits_calc_pos_1,
73943         check_subexp_matching_top):
73944         (build_trtable, group_nodes_into_DFAstates):
73945         Likewise.
73946         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73947         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73948         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73949         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73950         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73951         * lib/regcomp.c (optimize_subexps, lower_subexp):
73952         Work even if bitset_word has holes in its bitwise representation.
73953         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73954         * lib/regexec.c (check_dst_limits_calc_pos_1,
73955         check_subexp_matching_top):
73956         Likewise.
73957         * lib/regex_internal.c (re_string_reconstruct):
73958         Don't assume UCHAR_MAX == 255.
73959         * lib/regex_internal.h (bitset_set_all): Likewise.
73960         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73961         All uses changed.
73962         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73963         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73964         All uses changed.
73965         (BITSET_WORD_MAX): New macro.
73966         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73967         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73968         (bitset_empty, bitset_copy):
73969         Prefer sizeof (bitset) to multiplying it out ourselves.
73970         (bitset_not_merge): Remove; unused.
73971         (bitset_contain): Return bool, not unsigned int with one bit on.
73972         All callers changed.
73973         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73974         alignment than re_node_set; do this by defining a new internal
73975         type struct dests_alloc and using it to allocate memory.
73976
73977 2005-09-05  Bruno Haible  <bruno@clisp.org>
73978
73979         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73980         links.
73981
73982 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73983
73984         * modules/size_max (Makefile.am): Add size_max.h
73985
73986 2005-09-04  Derek Price  <derek@ximbiot.com>
73987
73988         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73989
73990 2005-09-03  Simon Josefsson  <jas@extundo.com>
73991
73992         * gnulib-tool: Fix typo.
73993
73994 2005-09-03  Simon Josefsson  <jas@extundo.com>
73995
73996         * config/srclist.txt: Add glibc bug 1293.
73997
73998 2005-09-03  Derek Price  <derek@ximbiot.com>
73999
74000         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74001         From Larry Jones <lawrence.jones@ugs.com>.
74002
74003 2005-09-02  Simon Josefsson  <jas@extundo.com>
74004
74005         * modules/socklen: New file.
74006
74007 2005-09-02  Simon Josefsson  <jas@extundo.com>
74008
74009         * modules/havelib: New module.
74010
74011         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74012         Use havelib.
74013
74014 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         Check for arithmetic overflow when calculating sizes, to prevent
74017         some buffer-overflow issues.  These patches are conservative, in the
74018         sense that when I couldn't determine whether an overflow was possible,
74019         I inserted a run-time check.
74020         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74021         macros.
74022         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74023         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74024         (re_xnrealloc, re_x2nrealloc): New inline functions.
74025         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74026         parse_bracket_exp):
74027         (build_equiv_class, build_charclass): Check for arithmetic overflow
74028         in size expression calculations.
74029         * lib/regex_internal.c (re_string_realloc_buffers):
74030         (build_wcs_upper_buffer, re_node_set_add_intersect):
74031         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74032         (re_dfa_add_node, register_state): Likewise.
74033         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74034         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74035         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74036         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74037
74038 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74039
74040         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74041         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74042
74043 2005-09-02  Bruno Haible  <bruno@clisp.org>
74044
74045         Support for lib vs. lib64 distinction on biarch platforms.
74046         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74047         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74049
74050 2005-09-02  Bruno Haible  <bruno@clisp.org>
74051
74052         * gnulib-tool (import): In the other first-use case, provide defaults
74053         as well.
74054
74055 2005-09-02  Bruno Haible  <bruno@clisp.org>
74056
74057         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74058         patches not yet found in the latest gettext release.
74059
74060 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74063         to avoid a collision with bits/local_lim.h in glibc.
74064         All uses changed.  Problem reported by Dmitry V. Levin in
74065         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74066
74067         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74068         bugs in int versus size_t comparisons.
74069         (re_string_context_at): Fix bug where the code assumed that
74070         Idx is signed.
74071
74072         Use bool where appropriate.
74073         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74074         All callers changed.
74075         (calc_eclosure_iter): Likewise, for ROOT arg.
74076         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74077         (build_charclass_op): Likewise, for NON_MATCH arg.
74078         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74079         (re_string_construct_common): Likewise, for ICASE arg.
74080         * lib/regexec.c (re_search_2_stub, re_search_stub):
74081         Likewise, for RET_LEN arg.
74082         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74083         (set_regs): Likewise, for FL_BACKTRACK arg.
74084         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74085         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74086         (calc_eclosure_iter, parse_bracket_exp):
74087         Use bool for internal variables that are booleans.
74088         * lib/regexec.c (re_search_internal, check_matching,
74089         proceed_next_node):
74090         (set_regs, build_sifted_states, sift_states_bkref):
74091         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74092         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74093         (find_collation_sequence_value):
74094         Likewise.
74095         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74096         (re_node_set_compare):
74097         Return bool, not int. All callers changed.
74098         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74099         (build_trtable, check_node_accept): Likewise.
74100         * lib/regex_internal.h: Include stdbool.h.
74101
74102         Fix bugs uncovered when converting to bool.
74103         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74104         failure instead of charging ahead blindly.
74105         * lib/regex_internal.c (register_state): Likewise.
74106         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74107         for freeing internal storage.
74108         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74109         bitset pieces used as boolean, to avoid undefined behavior
74110         on hosts that do int overflow checking.
74111
74112 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         * config/srclist.txt: Add glibc bugs 1285-1287.
74115
74116 2005-09-01  Jim Meyering  <jim@meyering.net>
74117
74118         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74119         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74120         Require gl_STAT_MACROS, too.
74121
74122 2005-09-01  Bruno Haible  <bruno@clisp.org>
74123
74124         * gnulib-tool (import): In the first-use case, provide defaults.
74125
74126 2005-09-01  Bruno Haible  <bruno@clisp.org>
74127
74128         * gnulib-tool (func_import): Remove the .tmp files.
74129
74130 2005-09-01  Bruno Haible  <bruno@clisp.org>
74131
74132         * gnulib-tool (func_import): Fix handling of symbolic links.
74133
74134 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74135
74136         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74137         old glibc regex code mishandles strings longer than 2**31 bytes.
74138         This patch fixes this when the regex code is used in gnulib
74139         (i.e., outside glibc).
74140
74141         This patch should not affect the use of the regex code inside
74142         glibc.  No doubt this problem also needs to be handled for glibc
74143         as well, but the result will be an incompatible change to the
74144         glibc ABI, and the old ABI will have to be supported too.  That
74145         can be the the subject for another patch.
74146
74147         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74148         governing whether the rest of this patch is active.  By default,
74149         the macro is disabled and the patch has no effect.
74150         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74151         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74152         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74153         (re_match_2, re_set_registers): Use the new types.
74154         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74155         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74156         New macros.
74157         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74158         (re_string_context_at, bin_tree_t, re_dfastate_t):
74159         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74160         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74161         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74162         (re_string_char_size_at, re_string_wchar_at):
74163         (re_string_elem_size_at):
74164         Use the new types and macros to port to 64-bit hosts.
74165         Use unsigned types for internal values, so that the code
74166         mostly works even for arrays larger than SSIZE_MAX.
74167         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74168         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74169         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74170         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74171         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74172         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74173         (calc_inveclosure, parse_dup_op, build_range_exp):
74174         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74175         (fetch_number, create_token_tree, mark_opt_subexp):
74176         Likewise.
74177         * lib/regex_internal.c (re_string_construct_common,
74178         create_ci_newstate):
74179         (create_cd_newstate, re_string_allocate, re_string_construct):
74180         (re_string_realloc_buffers, build_wcs_upper_buffer):
74181         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74182         (re_string_reconstruct, re_string_peek_byte_case):
74183         (re_string_fetch_byte_case, re_string_context_at):
74184         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74185         (re_node_set_init_copy, re_node_set_add_intersect):
74186         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74187         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74188         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74189         (re_acquire_state, re_acquire_state_context, register_state):
74190         Likewise.
74191         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74192         search_cur_bkref_entry):
74193         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74194         (re_search_internal, re_search_2_stub, re_search_stub)
74195         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74196         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74197         (update_cur_sifted_state, check_dst_limits):
74198         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74199         (check_subexp_limits, sift_states_bkref, merge_state_array):
74200         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74201         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74202         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74203         (expand_bkref_cache, check_node_accept_bytes):
74204         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74205         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74206         (acquire_init_state_context, check_halt_node_context):
74207         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74208         (sift_states_backward, clean_state_log_if_needed):
74209         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74210         (find_recover_state, transit_state_sb, transit_state_mb):
74211         (transit_state_bkref, build_trtable, match_ctx_clean):
74212         Likewise.
74213         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74214         to work around an assumption that REG_MISSING is negative.
74215
74216         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74217         (seek_collating_symbol_entry) [defined _LIBC]:
74218         (lookup_collation_sequence_value) [defined _LIBC]:
74219         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74220         Use prototypes rather than old-style function definitions.
74221         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74222         (transit_state_sb) [0]:
74223         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74224
74225         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74226         rm_eo.
74227
74228         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74229         (optimize_subexps, lower_subexp):
74230         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74231         since the signed shift might overflow.  Use 1u<<31 instead.
74232         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74233         Likewise.
74234         * lib/regexec.c (check_dst_limits_calc_pos_1,
74235         check_subexp_matching_top): Likewise.
74236
74237         * lib/regcomp.c (optimize_subexps, lower_subexp):
74238         Use CHAR_BIT rather than 8, for clarity.
74239         * lib/regexec.c (check_dst_limits_calc_pos_1):
74240         (check_subexp_matching_top): Likewise.
74241         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74242         have to worry about portability issues when shifting it left.
74243         Remove no-longer-needed test for table_size > 0.
74244         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74245         in a word, as the resulting behavior is undefined.
74246         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74247         in one case, a <= should have been an <, and in another case the
74248         whole test was missing.
74249         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74250         the standard name CHAR_BIT.
74251         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74252         this is not true on one's complement and signed-magnitude hosts.
74253
74254         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74255         next_last_offset.
74256         (struct re_dfa_t): Remove unused member states_alloc.
74257         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74258
74259 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74262         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74263         and large-file glibc and in 32-bit large-file Solaris.
74264
74265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74268         lengths fit in regoff_t; this isn't true if regoff_t is the same
74269         width as size_t.
74270         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74271         (= START + RANGE) instead of RANGE.  This avoids overflow
74272         problems when regoff_t is the same width as size_t.
74273         All callers changed.
74274         (re_search_2_stub): Check for overflow when adding the
74275         sizes of the two strings.
74276         (re_search_stub): Check for overflow when adding START
74277         to RANGE; if it occurs, substitute the extreme value.
74278
74279 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74280
74281         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74282
74283 2005-08-31  Jim Meyering  <jim@meyering.net>
74284
74285         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74286         a pointer-to-const.
74287         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74288         (register_state): Likewise.
74289         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74290         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74291         (group_nodes_into_DFAstates): Likewise.
74292
74293 2005-08-31  Jim Meyering  <jim@meyering.net>
74294
74295         * check-module: Add a FIXME comment.
74296
74297 2005-08-31  Eric Blake  <ebb9@byu.net>
74298
74299         * modules/unistd-safer (Files): Add unistd--.h.
74300         * modules/stdio-safer (Files): Add stdio--.h.
74301
74302 2005-08-31  Derek Price  <derek@ximbiot.com>
74303
74304         * lib/getdelim.c (getdelim): Return EOF on EOF.
74305         Reported by Larry Jones <lawrence.jones@ugs.com>.
74306
74307 2005-08-31  Bruno Haible  <bruno@clisp.org>
74308
74309         Avoid unnecessary diffs in the generated lib/Makefile.am.
74310         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74311         the generated files.
74312         (func_import): Don't set cmd.
74313
74314 2005-08-31  Bruno Haible  <bruno@clisp.org>
74315
74316         * lib/strstr.c: Include <stddef.h>, for NULL.
74317         * lib/strcasestr.c: Likewise.
74318         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74319
74320 2005-08-31  Bruno Haible  <bruno@clisp.org>
74321
74322         * gnulib-tool: New option --macro-prefix.
74323         (func_import): Use macro_prefix.
74324         (import): Handle option --macro-prefix.
74325
74326 2005-08-31  Bruno Haible  <bruno@clisp.org>
74327
74328         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74329         Also use new variables cached_lgpl, cached_libtool.
74330
74331 2005-08-31  Bruno Haible  <bruno@clisp.org>
74332
74333         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74334         always instantiating them.
74335
74336 2005-08-31  Bruno Haible  <bruno@clisp.org>
74337
74338         * gnulib-tool (func_import): Read the previous cached settings
74339         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74340         earlier added by gnulib but are now dropped. Warn when a gnulib file
74341         overwrites a non-gnulib file.
74342
74343 2005-08-31  Bruno Haible  <bruno@clisp.org>
74344
74345         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74346         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74347         projects that don't keep autogenerated files in CVS. Put into
74348         actioncmd only the specified modules, not the transitive closure.
74349
74350 2005-08-31  Bruno Haible  <bruno@clisp.org>
74351
74352         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74353         Create directories that shall be filled.
74354         (import): Don't look for gl_* macros in configure.ac. Recurse across
74355         all directories containing a gnulib-cache.m4 files, if meaningful.
74356
74357 2005-08-31  Bruno Haible  <bruno@clisp.org>
74358
74359         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74360         (import): Set seen_libtool when we see gl_LIBTOOL.
74361
74362 2005-08-31  Bruno Haible  <bruno@clisp.org>
74363
74364         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74365         declaration macro definitions from generated gnulib.m4.
74366
74367 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74368
74369         * lib/iconvme.h: Add prototype for iconv_alloc.
74370
74371 2005-08-29  Simon Josefsson  <jas@extundo.com>
74372
74373         * lib/iconvme.c: Fix errno.
74374
74375 2005-08-29  Bruno Haible  <bruno@clisp.org>
74376
74377         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74378         that it works when the directory contains spaces.
74379
74380 2005-08-29  Bruno Haible  <bruno@clisp.org>
74381
74382         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74383
74384 2005-08-29  Bruno Haible  <bruno@clisp.org>
74385
74386         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74387         Emit more advice.
74388
74389 2005-08-29  Bruno Haible  <bruno@clisp.org>
74390         and Stepan Kasal  <kasal@ucw.cz>
74391
74392         * check-module: If more parameters are given, check each of them
74393         separately; add more exceptions, as noted by Jim Meyering.
74394         (check_module): New procedure.
74395         (%exempt_header): Now contains all exceptions.
74396
74397 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74398
74399         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74400
74401 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74402
74403         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74404
74405 2005-08-28  Bruno Haible  <bruno@clisp.org>
74406
74407         * m4/gnulib-tool.m4: New file.
74408
74409 2005-08-27  Jim Meyering  <jim@meyering.net>
74410
74411         * modules/unistd-safer (Files): Add pipe-safer.c.
74412         * modules/fcntl-safer (Files): Add creat-safer.c.
74413
74414 2005-08-27  Jim Meyering  <jim@meyering.net>
74415
74416         * m4/stdlib-safer.m4: New file.  From coreutils.
74417         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74419         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74421         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74422
74423 2005-08-27  Jim Meyering  <jim@meyering.net>
74424
74425         * lib/fopen-safer.c: Merge minor changes from coreutils.
74426         * lib/dup-safer.c: Likewise.
74427         * lib/fd-safer.c: Likewise.
74428
74429         Merge from coreutils.
74430         * lib/stdio--.h: New file.
74431         * lib/stdlib--.h: New file.
74432         * lib/mkstemp-safer.c: New file.
74433
74434         GNU tar needs these.
74435         * lib/pipe-safer.c: New file.
74436         * lib/creat-safer.c: New file.
74437         * lib/fcntl--.h (creat): Define to creat_safer.
74438         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74439         * lib/unistd--.h (pipe): Define to pipe_safer.
74440         * lib/unistd-safer.h: Declare pipe_safer.
74441
74442 2005-08-26  Simon Josefsson  <jas@extundo.com>
74443
74444         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74445         Haible <bruno@clisp.org>.
74446
74447 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * lib/regex_internal.h: Remove all references to
74450         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74451         or better.
74452         (bitset_not, bitset_merge, bitset_not_merge):
74453         (bitset_mask, re_string_allocate, re_string_construct):
74454         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74455         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74456         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74457         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74458         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74459         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74460         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74461         (re_acquire_state_context):
74462         Remove unnecessary forward decls.
74463         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74464         Put __attribute at function definition,
74465         now that the function decl has been removed.
74466         * lib/regex_internal.c (re_string_peek_byte_case):
74467         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74468         Likewise.
74469
74470 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74471
74472         * m4/regex.m4: Add AC_PREREQ(2.50).
74473         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74474
74475 2005-08-25  Simon Josefsson  <jas@extundo.com>
74476
74477         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74478         __fsetlocking.
74479
74480 2005-08-25  Simon Josefsson  <jas@extundo.com>
74481
74482         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74483         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74484         GLIBC specific code.
74485
74486 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74487
74488         Make regex safe for g++.  This fixes one real bug (an "err"
74489         that should have been "*err").  g++ problem reported by
74490         Sam Steingold.
74491         * lib/regex_internal.h (re_calloc): New macro, consistent with
74492         re_malloc etc.  All callers of calloc changed to use re_calloc.
74493         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74494         not int.  All callers changed.
74495         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74496         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74497         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74498         (find_recover_state): Change "err" to "*err"; this fixes what
74499         appears to be a real bug.
74500         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74501         versus int.
74502
74503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * modules/regex (Depends-on): Add malloc, since the code
74506         assumes that !malloc(0) means failure.
74507
74508 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74509
74510         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74511
74512         alloca modernization/simplification for regex.
74513         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74514         needs to be at the start of the file, and can be moved into
74515         regex_internal.h and simplified.
74516         * lib/regex_internal.h: Include <alloca.h>.
74517         (__libc_use_alloca) [!defined _LIBC]: New macro.
74518         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74519         now works outside glibc.
74520
74521 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         * config/srclist.txt: Add glibc bugs 1241, 1245.
74524
74525 2005-08-25  Jim Meyering  <jim@meyering.net>
74526
74527         * lib/open-safer.c: Include <config.h>.
74528         Otherwise, we'd lose LARGEFILE support in any file using
74529         e.g. "fcntl--.h"
74530
74531 2005-08-25  Bruno Haible  <bruno@clisp.org>
74532
74533         * m4/minmax.m4: Require autoconf 2.52.
74534         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74535         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74536         alternatives of translit over the alphabet.
74537         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74538
74539 2005-08-24  Simon Josefsson  <jas@extundo.com>
74540
74541         * tests/test-getpass.c: New file.
74542
74543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74544
74545         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74546         for GNU regex features.
74547
74548 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74551         * lib/regex.h (regerror): Likewise.
74552
74553         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74554         requires this.  (The code never needed it.)
74555
74556         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74557         All uses of recently-renamed identifiers changed to use the new,
74558         POSIX-compliant names.  The code will build and run just fine
74559         without these changes, but it's better to eat our own dog food
74560         and use the standard-conforming names.
74561
74562         * lib/regex.h: Fix a multitude of POSIX name space violations.
74563         These changes have an effect only for programs that define
74564         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74565         do not change anything for programs compiled in the normal way.
74566         Also, there is no effect on the ABI.
74567
74568         (_REGEX_SOURCE): New macro.
74569         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74570         defined and _GNU_SOURCE is not; this fixes a name space violation.
74571
74572         Rename the following macros to obey POSIX requirements.
74573         The old names are still visible as macros if _REGEX_SOURCE is defined.
74574         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74575         RE_BACKSLASH_ESCAPE_IN_LISTS.
74576         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74577         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74578         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74579         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74580         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74581         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74582         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74583         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74584         (REG_INTERVALS): renamed from RE_INTERVALS.
74585         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74586         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74587         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74588         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74589         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74590         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74591         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74592         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74593         RE_UNMATCHED_RIGHT_PAREN_ORD.
74594         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74595         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74596         (REG_DEBUG): renamed from RE_DEBUG.
74597         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74598         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74599         unusual, since we can't clash with the POSIX REG_ICASE.
74600         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74601         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74602         (REG_NO_SUB): renamed from RE_NO_SUB.
74603         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74604         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74605         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74606         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74607         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74608         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74609         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74610         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74611         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74612         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74613         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74614         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74615         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74616         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74617         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74618         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74619         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74620         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74621         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74622         (REG_FIXED): Renamed from REGS_FIXED.
74623         (REG_NREGS): Renamed from RE_NREGS.
74624
74625         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74626         of other REG_* macros, since POSIX says the user is allowed to
74627         #undef these macros selectively.
74628
74629         (reg_errcode_t): Update comment stating what other tables need
74630         to be consistent.
74631
74632         Rename the following enum values to obey POSIX requirements.
74633         The old names are still visible as macros.
74634         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74635         is not defined, since GNU is supposed to be a superset of POSIX as
74636         much as possible, and since we want reg_errcode_t to be a signed
74637         type for implementation consistency.
74638         (_REG_NOERROR): Renamed from REG_NOERROR.
74639         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74640         (_REG_BADPAT): Renamed from REG_BADPAT.
74641         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74642         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74643         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74644         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74645         (_REG_EBRACK): Renamed from REG_EBRACK.
74646         (_REG_EPAREN): Renamed from REG_EPAREN.
74647         (_REG_EBRACE): Renamed from REG_EBRACE.
74648         (_REG_BADBR): Renamed from REG_BADBR.
74649         (_REG_ERANGE): Renamed from REG_ERANGE.
74650         (_REG_ESPACE): Renamed from REG_ESPACE.
74651         (_REG_BADRPT): Renamed from REG_BADRPT.
74652         (_REG_EEND): Renamed from REG_EEND.
74653         (_REG_ESIZE): Renamed from REG_ESIZE.
74654         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74655         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74656         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74657         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74658         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74659
74660         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74661         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74662         changed.  But support the old name if the new one is not defined
74663         and if _REGEX_SOURCE.
74664
74665         Change the following member names in struct re_pattern_buffer.
74666         The old names are still supported if !_REGEX_SOURCE.
74667         The new names are always supported, regardless of _REGEX_SOURCE.
74668         (re_buffer): Renamed from buffer.
74669         (re_allocated): Renamed from allocated.
74670         (re_used): Renamed from used.
74671         (re_syntax): Renamed from syntax.
74672         (re_fastmap): Renamed from fastmap.
74673         (re_translate): Renamed from translate.
74674         (re_can_be_null): Renamed from can_be_null.
74675         (re_regs_allocated): Renamed from regs_allocated.
74676         (re_fastmap_accurate): Renamed from fastmap_accurate.
74677         (re_no_sub): Renamed from no_sub.
74678         (re_not_bol): Renamed from not_bol.
74679         (re_not_eol): Renamed from not_eol.
74680         (re_newline_anchor): Renamed from newline_anchor.
74681
74682         Change the following member names in struct re_registers.
74683         The old names are still supported if !_REGEX_SOURCE.
74684         The new names are always supported, regardless of _REGEX_SOURCE.
74685         (rm_num_regs): Renamed from num_regs.
74686         (rm_start): Renamed from start.
74687         (rm_end): Renamed from end.
74688
74689         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74690         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74691         Prepend __ to parameter names.
74692
74693         Undo yesterday's changes.
74694
74695 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74696
74697         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74698         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74699         lib/regex.c.
74700
74701 2005-08-24  Jim Meyering  <jim@meyering.net>
74702
74703         Sync from coreutils.
74704         * m4/fcntl-safer.m4: New file.
74705
74706         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74707         and object files for this module.
74708
74709 2005-08-24  Jim Meyering  <jim@meyering.net>
74710
74711         Sync from coreutils.
74712         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74713
74714 2005-08-24  Jim Meyering  <jim@meyering.net>
74715
74716         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74717         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74718
74719 2005-08-24  Jim Meyering  <jim@meyering.net>
74720
74721         * modules/fcntl-safer: New module.
74722         * modules/fts (Depends-on): Add fcntl-safer.
74723         * MODULES.html.sh (File descriptor based Input/Output):
74724         Add fcntl-safer.
74725
74726 2005-08-24  Bruno Haible  <bruno@clisp.org>
74727
74728         Support for unit test modules.
74729         * modules/README: Mention tests modules.
74730         * modules/TEMPLATE-TESTS: New file.
74731         * gnulib-tool: New options --extract-tests-module, --with-tests and
74732         --tests-base (unused for the moment).
74733         (testsbase, inctests): New variables.
74734         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74735         (func_verify_module): Exclude TEMPLATE-TESTS.
74736         (func_verify_nontests_module, func_verify_tests_module): New functions.
74737         (func_get_dependencies): Add implicit dependency for tests modules.
74738         (func_get_tests_module): New function.
74739         (func_modules_transitive_closure): When --with-tests was specified,
74740         include the unit tests as well, unless explicitly avoided.
74741         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74742         (func_emit_tests_Makefile_am): New function.
74743         (func_create_testdir): When --with-tests was specified, emit a
74744         tests/ directory.
74745         * MODULES.html.sh (Future developments): Update.
74746
74747 2005-08-24  Bruno Haible  <bruno@clisp.org>
74748
74749         * modules/tls-tests: New file.
74750         * tests/test-tls.c: New file, from GNU gettext.
74751
74752 2005-08-24  Bruno Haible  <bruno@clisp.org>
74753
74754         * modules/lock-tests: New file.
74755         * tests/test-lock.c: New file, from GNU gettext.
74756
74757 2005-08-24  Bruno Haible  <bruno@clisp.org>
74758
74759         * lib/lock.h: Add multiple inclusion guard.
74760         * lib/tls.h: Add multiple inclusion guard.
74761
74762 2005-08-24  Bruno Haible  <bruno@clisp.org>
74763
74764         * gnulib-tool: Add support for the --aux-dir option to
74765         --create-testdir, --create-megatestdir, --test, --megatest.
74766         (func_create_testdir, func_create_megatestdir): Optionally emit a
74767         AC_CONFIG_AUX_DIR directive.
74768         (create-testdir, create-megatestdir, test, megatest): Provide a
74769         default value for $auxdir.
74770
74771 2005-08-24  Bruno Haible  <bruno@clisp.org>
74772
74773         * gnulib-tool (import): Use compound statement instead of subshell
74774         where possible.
74775
74776 2005-08-24  Bruno Haible  <bruno@clisp.org>
74777
74778         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74779
74780 2005-08-24  Bruno Haible  <bruno@clisp.org>
74781
74782         * gnulib-tool (func_version): Update.
74783
74784 2005-08-24  Bruno Haible  <bruno@clisp.org>
74785
74786         * gnulib-tool (func_import, func_create_testdir,
74787         func_create_megatestdir): Quote all autoconf macro arguments.
74788
74789 2005-08-24  Bruno Haible  <bruno@clisp.org>
74790
74791         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74792         option --force, because --force causes the aclocal.m4 of each
74793         subdirectory to be newer than the corresponding config.h.in.
74794
74795 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74798         All contents moved to gl_REGEX.
74799         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74800         assume that it does.
74801
74802 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * lib/regex.h (REG_NOSYS)
74805         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74806         Define, since POSIX requires it as of 2001.
74807         (_REG_ENOSYS)
74808         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74809         New private symbol, used to keep the enum signed in all cases.
74810         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74811         Youngman in
74812         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74813
74814         * lib/regex_internal.c (re_string_skip_chars, register_state):
74815         (calc_state_hash):
74816         Remove forward decls; no longer needed now that we use prototypes.
74817         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74818         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74819         (clean_state_log_if_needed): Likewise.
74820
74821 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * config/srclist.txt: Add glibc bugs 1231-1233.
74824
74825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         Fix problems reported by Sam Steingold in
74828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74829         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74830         assumed that reg_errcode_t is a signed type, which is not
74831         necessarily true if _XOPEN_SOURCE is not defined.
74832         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74833         since some compilers warn about it otherwise.
74834
74835 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74838         (init_word_char, create_initial_state, duplicate_node_closure):
74839         (fetch_token, peek_token_bracket, build_range_exp):
74840         (build_collating_symbol): Remove forward decls; no longer needed
74841         now that we use prototypes.
74842
74843         * lib/regcomp.c:
74844         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74845         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74846         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74847         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74848         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74849         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74850         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74851         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74852         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74853         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74854         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74855         (build_charclass, build_charclass_op, fetch_number, create_tree):
74856         (create_token_tree, mark_opt_subexp, duplicate_tree):
74857         Use prototypes rather than old-style definitions.
74858
74859         * lib/regex_internal.c:
74860         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74861         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74862         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74863         (re_string_reconstruct, re_string_peek_byte_case):
74864         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74865         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74866         (re_node_set_init_copy, re_node_set_add_intersect):
74867         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74868         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74869         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74870         (re_acquire_state, re_acquire_state_context, register_state):
74871         (create_ci_newstate, create_cd_newstate, free_state):
74872         Likewise.
74873         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74874         re_search_2):
74875         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74876         (re_search_internal, prune_impossible_nodes):
74877         (acquire_init_state_context, check_matching, static):
74878         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74879         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74880         (update_regs, sift_states_backward, build_sifted_states):
74881         (clean_state_log_if_needed, merge_state_array):
74882         (update_cur_sifted_state, add_epsilon_src_nodes):
74883         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74884         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74885         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74886         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74887         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74888         (check_arrival, check_arrival_add_next_nodes):
74889         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74890         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74891         (check_node_accept_bytes, check_node_accept, extend_buffers):
74892         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74893         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74894         (sift_ctx_init):
74895         Likewise.
74896
74897         * lib/regex_internal.h:
74898         (re_string_allocate, re_string_construct, re_string_reconstruct):
74899         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74900         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74901         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74902         (re_string_context_at, re_string_peek_byte_case):
74903         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74904         is defined, since we now use prototypes always.
74905
74906         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74907         C89 or better.  All uses removed.
74908
74909 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74910
74911         * config/srclist.txt: Add glibc bugs 1220-1227.
74912
74913 2005-08-20  Jim Meyering  <jim@meyering.net>
74914
74915         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74916         of unused local, dfa.
74917
74918 2005-08-20  Bruno Haible  <bruno@clisp.org>
74919
74920         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74921
74922 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74925         (re_node_set_insert_last, re_dfa_add_node):
74926         Rename local variables to avoid GCC shadowing warnings.
74927
74928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74929
74930         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74931         [defined lint]: Suppress bogus uninitialized-variable warnings.
74932
74933         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74934         and let the caller return REG_ESPACE if out of space.  This
74935         removes an uninitialied-variable warning with GCC 4.0.1, and also
74936         avoids taking the address of a local variable.  All callers
74937         changed.
74938
74939 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74942         $LIBCSRC/posix/regexec.c.
74943         Add glibc bug 1217 for regcomp.c.
74944
74945 2005-08-19  Jim Meyering  <jim@meyering.net>
74946
74947         * lib/regexec.c (proceed_next_node): Redo local variables to
74948         avoid GCC shadowing warnings.
74949
74950 2005-08-18  Bruno Haible  <bruno@clisp.org>
74951
74952         * lib/strstr.c (strstr): Fix return value in multibyte case.
74953         * lib/strcasestr.c (strcasestr): Likewise.
74954
74955 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74958
74959 2005-08-17  Jim Meyering  <jim@meyering.net>
74960
74961         Make the %s format (seconds since the epoch) work for a negative
74962         number and when used with a zero-padded field width, e.g. %015s.
74963
74964         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74965         label so that it precedes the code to set `digits'.  Otherwise,
74966         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74967         print `00-22'.  Now, it prints `-0022', as it should.
74968
74969 2005-08-17  Bruno Haible  <bruno@clisp.org>
74970
74971         * modules/strstr (Files): Add m4/mbrtowc.m4.
74972         (Depends-on): Add mbuiter.
74973
74974 2005-08-17  Bruno Haible  <bruno@clisp.org>
74975
74976         * modules/strcasestr: New file.
74977         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74978         strcasestr.
74979
74980 2005-08-17  Bruno Haible  <bruno@clisp.org>
74981
74982         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74983
74984 2005-08-17  Bruno Haible  <bruno@clisp.org>
74985
74986         * modules/mbuiter: New file.
74987         * MODULES.html.sh (Extended multibyte and wide character utilities):
74988         Add mbuiter.
74989
74990 2005-08-17  Bruno Haible  <bruno@clisp.org>
74991
74992         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74993         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74994
74995 2005-08-17  Bruno Haible  <bruno@clisp.org>
74996
74997         * m4/strcasestr.m4: New file.
74998
74999 2005-08-17  Bruno Haible  <bruno@clisp.org>
75000
75001         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75002         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75003
75004 2005-08-17  Bruno Haible  <bruno@clisp.org>
75005
75006         * lib/strcasestr.h: New file.
75007         * lib/strcasestr.c: New file.
75008
75009 2005-08-17  Bruno Haible  <bruno@clisp.org>
75010
75011         * lib/strcasecmp.c: Use mbuiter.h.
75012
75013 2005-08-17  Bruno Haible  <bruno@clisp.org>
75014
75015         * lib/mbuiter.h: New file.
75016
75017 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75020         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75021         and gl_GETOPT are both invoked via different paths (as happens
75022         with GNU tar CVS because it uses both argp and getopt), the former
75023         wins.
75024
75025 2005-08-16  Bruno Haible  <bruno@clisp.org>
75026
75027         * modules/tls: New file.
75028         * MODULES.html.sh (Multithreading): Add tls.
75029
75030 2005-08-16  Bruno Haible  <bruno@clisp.org>
75031
75032         * modules/strnlen1: New file.
75033         * MODULES.html.sh (String handling): Add strnlen1.
75034
75035 2005-08-16  Bruno Haible  <bruno@clisp.org>
75036
75037         * modules/strcase (Files): Add m4/mbrtowc.m4.
75038         (Depends-on): Add strnlen1, mbchar.
75039
75040 2005-08-16  Bruno Haible  <bruno@clisp.org>
75041
75042         * modules/mbiter: New file.
75043         * MODULES.html.sh (Extended multibyte and wide character utilities):
75044         Add mbiter.
75045
75046 2005-08-16  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/mbfile: New file.
75049         * MODULES.html.sh (Extended multibyte and wide character utilities):
75050         Add mbfile.
75051
75052 2005-08-16  Bruno Haible  <bruno@clisp.org>
75053
75054         * modules/mbchar: New file.
75055         * MODULES.html.sh (Extended multibyte and wide character utilities):
75056         New section.
75057
75058 2005-08-16  Bruno Haible  <bruno@clisp.org>
75059
75060         * m4/tls.m4: New file, from GNU gettext.
75061
75062 2005-08-16  Bruno Haible  <bruno@clisp.org>
75063
75064         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75065         always.
75066         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75067
75068 2005-08-16  Bruno Haible  <bruno@clisp.org>
75069
75070         * m4/mbiter.m4: New file.
75071
75072 2005-08-16  Bruno Haible  <bruno@clisp.org>
75073
75074         * m4/mbfile.m4: New file.
75075
75076 2005-08-16  Bruno Haible  <bruno@clisp.org>
75077
75078         * m4/mbchar.m4: New file.
75079
75080 2005-08-16  Bruno Haible  <bruno@clisp.org>
75081
75082         * lib/tls.h: New file, from GNU gettext.
75083         * lib/tls.c: New file, from GNU gettext.
75084
75085 2005-08-16  Bruno Haible  <bruno@clisp.org>
75086
75087         * lib/strnlen1.h: New file.
75088         * lib/strnlen1.c: New file.
75089
75090 2005-08-16  Bruno Haible  <bruno@clisp.org>
75091
75092         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75093         (mbi_init): Update.
75094         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75095         NUL byte, not after it.
75096
75097 2005-08-16  Bruno Haible  <bruno@clisp.org>
75098
75099         * lib/strcase.h (strcasecmp): Add note in comments.
75100         * lib/strncasecmp.c: Use code from strcasecmp.c.
75101         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75102         (strcasecmp): Work correctly in multibyte locales.
75103
75104 2005-08-16  Bruno Haible  <bruno@clisp.org>
75105
75106         * lib/mbiter.h: New file.
75107
75108 2005-08-16  Bruno Haible  <bruno@clisp.org>
75109
75110         * lib/mbfile.h: New file.
75111
75112 2005-08-16  Bruno Haible  <bruno@clisp.org>
75113
75114         * lib/mbchar.h: New file.
75115         * lib/mbchar.c: New file.
75116
75117 2005-08-16  Bruno Haible  <bruno@clisp.org>
75118
75119         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75120         the valid ones. Makes the comparison operations transitive:
75121         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75122         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75123
75124 2005-08-15  Simon Josefsson  <jas@extundo.com>
75125
75126         * modules/ssize_t (License): Change to 'unlimited'.
75127
75128         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75129
75130 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75133         Add comments for each pending glibc patch.
75134
75135 2005-08-15  Bruno Haible  <bruno@clisp.org>
75136
75137         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75138         __cplusplus is defined.
75139
75140 2005-08-14  Jim Meyering  <jim@meyering.net>
75141
75142         Sync from coreutils.
75143
75144         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75145         Use the hash-table-based cycle-detection code not just when
75146         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75147         Reported by James Youngman in
75148         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75149         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75150         FTS_TIGHT_CYCLE_CHECK.
75151         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75152         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75153         once again.
75154         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75155         * lib/fts.c (fd_safer): Remove decl.
75156         Include fcntl--.h rather than unistd-safer.h
75157         (fts_safe_changedir): Don't call fd_safer; no longer needed
75158         now that we include fcntl--.h.
75159
75160 2005-08-12  Simon Josefsson  <jas@extundo.com>
75161
75162         * modules/getndelim2: Use ssize_t module.
75163         * modules/getnline: Likewise.
75164         * modules/safe-read: Likewise.
75165         * modules/xreadlink: Likewise.
75166
75167         * modules/ssize_t: New file.
75168
75169 2005-08-12  Simon Josefsson  <jas@extundo.com>
75170
75171         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75172
75173 2005-08-12  Simon Josefsson  <jas@extundo.com>
75174
75175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75176         ssize_t.
75177
75178 2005-08-12  Simon Josefsson  <jas@extundo.com>
75179
75180         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75181         readline, getdelim and check_version.
75182         (Support for systems lacking ISO C 99: Sizes of integer types):
75183         Add size_max.
75184
75185 2005-08-12  Bruno Haible  <bruno@clisp.org>
75186
75187         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75188
75189 2005-08-11  Simon Josefsson  <jas@extundo.com>
75190
75191         * modules/readline: New file.
75192
75193         * modules/strnlen (Files): Add strnlen.h.
75194
75195 2005-08-11  Simon Josefsson  <jas@extundo.com>
75196
75197         * m4/readline.m4: New file.
75198
75199 2005-08-11  Simon Josefsson  <jas@extundo.com>
75200
75201         * lib/readline.h, readline.c: New file.
75202
75203 2005-08-11  Simon Josefsson  <jas@extundo.com>
75204
75205         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75206         gl_AVOID.
75207
75208 2005-08-11  Bruno Haible  <bruno@clisp.org>
75209
75210         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75211
75212 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75213
75214         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75215
75216 2005-08-10  Simon Josefsson  <jas@extundo.com>
75217
75218         * tests/test-iconvme.c: New file.
75219
75220 2005-08-10  Simon Josefsson  <jas@extundo.com>
75221
75222         * m4/strnlen.m4: New file.
75223
75224         * m4/strndup.m4: Don't check for strnlen declaration, done in
75225         strnlen.m4.
75226
75227 2005-08-10  Simon Josefsson  <jas@extundo.com>
75228
75229         * lib/strndup.c: Use strnlen.h.
75230
75231         * lib/strnlen.h: New file.
75232
75233 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75234
75235         * README: Typos.
75236
75237 2005-08-02  Simon Josefsson  <jas@extundo.com>
75238
75239         * modules/readline: New file.
75240
75241 2005-08-02  Simon Josefsson  <jas@extundo.com>
75242
75243         * modules/getdelim: New file.
75244
75245         * modules/getline: Rewrite, don't use getndelim2.
75246
75247 2005-08-02  Simon Josefsson  <jas@extundo.com>
75248
75249         * m4/getline.m4: Separate out getdelim stuff into separate module.
75250
75251         * m4/getdelim.m4: New file.
75252
75253 2005-08-02  Simon Josefsson  <jas@extundo.com>
75254
75255         * lib/getline.h, getline.c: Rewrite.
75256
75257         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75258
75259 2005-07-31  Bruno Haible  <bruno@clisp.org>
75260
75261         * lib/lock.h (gl_lock_initializer): New macro.
75262         (gl_lock_define_initialized): Use it.
75263         (gl_rwlock_initializer): New macro.
75264         (gl_rwlock_define_initialized): Use it.
75265         (gl_recursive_lock_initializer): New macro.
75266         (gl_recursive_lock_define_initialized): Use it.
75267
75268 2005-07-30  Karl Berry  <karl@gnu.org>
75269
75270         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75271         Report from Ben Pfaff, regarding getopt.
75272
75273 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75274
75275         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75276         normal way.
75277         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75278         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75279         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75280         (gl_GETOPT): Use the new macros.  Most of the implementation
75281         is moved to the new macros.  This is for programs like Emacs
75282         that don't want all the functionality of gl_GETOPT.
75283
75284 2005-07-26  Bruno Haible  <bruno@clisp.org>
75285
75286         * m4/lock.m4: Update from GNU gettext.
75287
75288 2005-07-26  Bruno Haible  <bruno@clisp.org>
75289
75290         * lib/lock.h: Update from GNU gettext.
75291         * lib/lock.c: Update from GNU gettext.
75292
75293 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75294
75295         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75296         obsolescent AC_TRY_RUN.  Include the default includes files, for
75297         'exit'.
75298
75299 2005-07-24  Bruno Haible  <bruno@clisp.org>
75300
75301         * modules/visibility: New file.
75302         * MODULES.html.sh (Misc): Add visibility.
75303
75304 2005-07-24  Bruno Haible  <bruno@clisp.org>
75305
75306         * m4/visibility.m4: New file.
75307
75308 2005-07-24  Bruno Haible  <bruno@clisp.org>
75309
75310         * doc/visibility.texi: New file.
75311
75312 2005-07-22  Bruno Haible  <bruno@clisp.org>
75313
75314         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75315         $(ALLOCA_H), redundant through BUILT_SOURCES.
75316         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75317         redundant through BUILT_SOURCES.
75318         * modules/byteswap (Makefile.am): Remove explicit dependency on
75319         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75320         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75321         $(FNMATCH_H), redundant through BUILT_SOURCES.
75322         * modules/getopt (Makefile.am): Remove explicit dependency on
75323         $(GETOPT_H), redundant through BUILT_SOURCES.
75324         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75325         redundant through BUILT_SOURCES.
75326         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75327         redundant through BUILT_SOURCES.
75328         * modules/stdbool (Makefile.am): Remove explicit dependency on
75329         $(STDBOOL_H), redundant through BUILT_SOURCES.
75330         * modules/stdint (Makefile.am): Remove explicit dependency on
75331         $(STDINT_H), redundant through BUILT_SOURCES.
75332         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75333         Remove explicit dependency on $(SYSEXITS_H).
75334         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75335
75336 2005-07-18  Simon Josefsson  <jas@extundo.com>
75337
75338         * lib/check-version.c (check_version): Accept identical versions too.
75339
75340 2005-07-18  Bruno Haible  <bruno@clisp.org>
75341
75342         * modules/lock: New file.
75343         * MODULES.html.sh (Multithreading): New section.
75344
75345 2005-07-18  Bruno Haible  <bruno@clisp.org>
75346
75347         * m4/lock.m4: New file, from GNU gettext.
75348
75349 2005-07-18  Bruno Haible  <bruno@clisp.org>
75350
75351         * lib/lock.h: New file, from GNU gettext.
75352         * lib/lock.c: New file, from GNU gettext.
75353
75354 2005-07-18  Bruno Haible  <bruno@clisp.org>
75355
75356         * lib/lock.h (gl_once_t): New type.
75357         (gl_once_define, gl_once): New macros.
75358         * lib/lock.c (fresh_once): New variable.
75359         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75360         functions.
75361
75362 2005-07-16  Simon Josefsson  <jas@extundo.com>
75363
75364         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75365         workaround, suggested by Bruno.
75366
75367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * modules/xalloc (Depends-on): Add xalloc-die.
75370         * modules/xvasprintf (Depends-on): Add xalloc-die.
75371
75372 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75375         with a minor change.
75376
75377 2005-07-15  Bruno Haible  <bruno@clisp.org>
75378
75379         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75380         When using lib/poll.c, define poll as rpl_poll.
75381
75382 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75383
75384         * modules/argp (Depends-on): Remove unlocked-io.
75385
75386 2005-07-14  Derek Price  <derek@ximbiot.com>
75387
75388         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75389         for glob symlink bug.
75390
75391 2005-07-14  Bruno Haible  <bruno@clisp.org>
75392
75393         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75394         Instead, test for *_unlocked function declarations directly.
75395
75396 2005-07-11  Simon Josefsson  <jas@extundo.com>
75397
75398         * modules/size_max: New file.
75399
75400         * modules/xsize: Depend on size_max module for size_max.m4.
75401
75402 2005-07-11  Simon Josefsson  <jas@extundo.com>
75403
75404         * lib/size_max.h: New file.
75405
75406 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75407
75408         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75409         copyright symbol and the year.
75410         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75411         (version_etc_va): Use parameterized copyright notice.
75412         Reword to conform to the current GNU coding standards.
75413
75414 2005-07-11  Karl Berry  <karl@gnu.org>
75415
75416         * doc/gnulib.texi (Quoting): new node.
75417         (Initial import): more info, from Patrice.
75418
75419 2005-07-11  Bruno Haible  <bruno@clisp.org>
75420
75421         * gnulib-tool (func_usage): Document option --avoid.
75422         (Command line options): Handle --avoid.
75423         (func_acceptable): New function.
75424         (func_modules_transitive_closure): Use it.
75425
75426 2005-07-11  Bruno Haible  <bruno@clisp.org>
75427
75428         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75429         Reported by Jim Meyering.
75430
75431 2005-07-10  Bruno Haible  <bruno@clisp.org>
75432
75433         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75434         Needed when size_t is smaller than 'unsigned int'.
75435         Reported by Paul Eggert.
75436
75437 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75438
75439         * modules/argp (Depends-on): Add unlocked-io
75440
75441 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75442
75443         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75444         block of defines.
75445
75446 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75449         fix now.
75450
75451 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75452         and Paul Eggert  <eggert@cs.ucla.edu>
75453
75454         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75455         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75456
75457 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * modules/regex (Files): Add lib/regex_internal.c,
75460         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75461         (Depends-on): Add extensions.
75462         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75463
75464 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75467         pathconf.
75468         * m4/same.m4 (gl_SAME): Likewise.
75469         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75470
75471         * m4/regex.m4: Adjust to new libc regex implementation.
75472         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75473         all the .c and .h parts of (the new) regex.
75474         Quote the m4 stuff better.
75475         Check for RE_ICASE bug of old gnulib.
75476         Check for REG_STARTEND of recent libc.
75477         Rename local variables from jm_* to gl_*.
75478         Quote operand of "test -f".
75479         Say "recent enough" version of libc, not "version 2".
75480         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75481         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75482         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75483         Remove check for btowc, isascii.
75484         Require AM_LANGINFO_CODESET.
75485
75486 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         * lib/regex.c, regex.h: Sync from libc.
75489         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75490         * lib/regexec.c:
75491         New files, synced from libc, except that regex_internal.h
75492         currently has a small porting fix.
75493
75494 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75497         regex_internal.c, regexec.c.
75498         Add regex_internal.h too, but as a comment, since the libc version
75499         is currently broken in gnulib mode.
75500
75501 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         Support programs like Emacs that use gnulib but not gettext.
75504         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75505         * modules/gettext-h: New file.
75506         * modules/gettext (Files): Remove lib/gettext.h.
75507         (Depends-on): Add gettext-h.
75508         (Makefile.am): Remove lib_SOURCES.
75509         * modules/argmatch, modules/c-stack, modules/closeout:
75510         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75511         * modules/execute, modules/file-type, modules/getaddrinfo:
75512         * modules/getopt, modules/human, modules/javacomp:
75513         * modules/javaexec, modules/mkdir-p, modules/obstack:
75514         * modules/openat, modules/pagealign_alloc, modules/pipe:
75515         * modules/quotearg, modules/regex, modules/rpmatch:
75516         * modules/unicodeio, modules/userspec, modules/version-etc:
75517         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75518         * modules/xsetenv:
75519         Depend on gettext-h, not gettext.
75520
75521 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * gnulib-tool (func_import): Add support for 'public domain' license.
75524         * modules/alloca, modules/atexit, modules/memmove:
75525         Now public domain, not GPL.
75526         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75527         * modules/realloc, modules/strerror, modules/strtod:
75528         Now LGPL, not GPL.
75529
75530 2005-07-05  Bruno Haible  <bruno@clisp.org>
75531
75532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75533         autoconf CVS. Needed for mingw.
75534
75535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         Remove the dependency of the strftime module on the tzset module.
75538         * modules/strftime (Depends-on): Remove dependency on tzset.
75539
75540 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75541
75542         Remove the dependency of the strftime module on the tzset module.
75543         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75544         gl_FUNC_TZSET_CLOBBER.
75545
75546 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75547
75548         Remove the dependency of the strftime module on the tzset module.
75549         * lib/strftime.c (my_strftime)
75550         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75551         Copy the input structure, to work around some of the bug with
75552         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75553         Solaris releases, you should also use the tzset module, but we won't
75554         require it as a dependency any more since we don't want LGPLed code
75555         to depend on GPLed code.
75556
75557 2005-07-02  Jim Meyering  <jim@meyering.net>
75558
75559         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75560         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75561         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75562         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75563
75564 2005-07-02  Jim Meyering  <jim@meyering.net>
75565
75566         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75567
75568 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75571         declares only 'struct timespec;' (!).
75572
75573 2005-07-01  Jim Meyering  <jim@meyering.net>
75574
75575         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75576         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75577         * lib/save-cwd.c, tempname.c:
75578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75579         and don't include <sys/file.h>).
75580
75581 2005-06-29  Jim Meyering  <jim@meyering.net>
75582
75583         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75584         type name.  Use the variable name instead.
75585         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75586         Likewise.
75587
75588 2005-06-28  Simon Josefsson  <jas@extundo.com>
75589
75590         * modules/check-version (Files): Add check-version.m4.
75591
75592 2005-06-28  Simon Josefsson  <jas@extundo.com>
75593
75594         * m4/check-version.m4: New file, suggested by Jim Meyering
75595         <jim@meyering.net>.
75596
75597 2005-06-28  Simon Josefsson  <jas@extundo.com>
75598
75599         * lib/check-version.h, lib/check-version.c: New files.
75600
75601 2005-06-28  Simon Josefsson  <jas@extundo.com>
75602
75603         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75604         collision with global variable.  Better indentation.  Don't
75605         increment buffer pointer beyond buffer end.  Based on comments
75606         from Paul Eggert <eggert@cs.ucla.edu>.
75607
75608         * lib/base64.h: Indent.
75609
75610 2005-06-28  Simon Josefsson  <jas@extundo.com>
75611
75612         * doc/gnulib.texi (Library version handling): New section.
75613
75614 2005-06-28  Jim Meyering  <jim@meyering.net>
75615
75616         * check-module (find_included_lib_files): Hard-code another
75617         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75618         but modules/fts-lgpl (correctly) does not list those files.
75619
75620         * modules/canonicalize (Files): Add lib/pathmax.h.
75621
75622 2005-06-25  Simon Josefsson  <jas@extundo.com>
75623
75624         * modules/check-version: New file.
75625
75626 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75629         initializer of struct addrinfo, as an indication that we don't
75630         care how many members the structure has.
75631
75632 2005-06-24  Derek Price  <derek@ximbiot.com>
75633         and Bruno Haible  <bruno@clisp.org>
75634
75635         Remove stat module & update lstat.
75636         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75638         * m4/stat.m4: Remove this file.
75639
75640 2005-06-24  Derek Price  <derek@ximbiot.com>
75641         and Bruno Haible  <bruno@clisp.org>
75642
75643         Remove stat module & update lstat.
75644         * lib/stat.c: Remove this file...
75645         (slash_aware_lstat): ...moving this content and its support...
75646         * lib/lstat.c (rpl_lstat): ...into here.
75647         * lib/lstat.h: New file.
75648
75649 2005-06-24  Derek Price  <derek@ximbiot.com>
75650         and Bruno Haible  <bruno@clisp.org>
75651
75652         Remove stat module & update lstat.
75653         * config/srclist.txt (libc sources): Remove stat.
75654
75655 2005-06-24  Derek Price  <derek@ximbiot.com>
75656         and Bruno Haible  <bruno@clisp.org>
75657
75658         Remove stat module & update lstat.
75659         * MODULES.html.sh (stat): Remove.
75660         * MODULES.html: Regenerated.
75661         * modules/lstat (Description): Correct function name.
75662         (Files): Add "lstat.h".
75663         (Depends-on): Remove stat, add xalloc, stat-macros.
75664         * modules/stat: Remove this file.
75665         (Include): Add "lstat.h", remove <sys/stat.h>.
75666
75667 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75670         (ranged_convert): Don't save conversion in a temporary struct.
75671         This causes a warning with GCC 4.0.0, and anyway in the typical
75672         case it's not worth the extra 100 bytes or so of code.
75673         (ranged_convert, __mktime_internal): When calling a function via a
75674         pointer P, use P () rather than (*P) (), as we now assume C89 or
75675         better.
75676
75677 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75680         "who -r" failed to give output.  Problem reported by Tim Waugh.
75681
75682         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75683         (xcalloc): Use it to avoid needless tests.
75684         Problem reported by Jim Meyering.
75685
75686 2005-06-20  Derek Price  <derek@ximbiot.com>
75687
75688         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75689         unnecessary for Autoconfs > 2.59c.
75690
75691 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75692
75693         * lib/argp.h (__option_is_short): Check upper limit of
75694         __key. Isprint() requires its argument to have the value
75695         of an unsigned char or EOF.
75696
75697 2005-06-16  Jim Meyering  <jim@meyering.net>
75698
75699         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75700         when either N or S is zero.
75701
75702 2005-06-16  Derek Price  <derek@ximbiot.com>
75703
75704         * m4/bison.m4: Declare YACC & YFLAGS precious.
75705
75706 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75709         multibyte string or pattern, fall back on unibyte matching.
75710         Problem reported by James Youngman.
75711
75712 2005-06-08  Bruno Haible  <bruno@clisp.org>
75713
75714         * modules/csharpcomp: New file.
75715         * MODULES.html.sh (C#): Add csharpcomp.
75716
75717 2005-06-08  Bruno Haible  <bruno@clisp.org>
75718
75719         * m4/csharpcomp.m4: New file, from GNU gettext.
75720
75721 2005-06-08  Bruno Haible  <bruno@clisp.org>
75722
75723         * lib/csharpcomp.h: New file, from GNU gettext.
75724         * lib/csharpcomp.c: New file, from GNU gettext.
75725         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75726
75727 2005-06-08  Bruno Haible  <bruno@clisp.org>
75728
75729         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75730         warning on mingw.
75731
75732 2005-06-07  Derek Price  <derek@ximbiot.com>
75733
75734         Sync from CVS.
75735         * lib/glob_.h: Indent nested #ifdef.
75736
75737 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75738
75739         Sync from coreutils.
75740         Use "file name" when talking about file names, instead of "filename"
75741         or "path", as per the GNU coding standards.
75742         * lib/mkdir-p.c: Renamed from makepath.c.
75743         (make_dir_parents): Renamed from make_path.  All callers changed.
75744         * lib/mkdir-p.h: Likewise.  All includers changed.
75745         * lib/filenamecat.c: Renamed from path-concat.c.
75746         (file_name_concat): Renamed from path_concat.  All callers changed.
75747         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75748         * lib/filenamecat.h: Likewise.  All includers changed.
75749         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75750         in comments or local variable names.
75751         * lib/basename.c: Likewise.
75752         * lib/canonicalize.c, canonicalize.h: Likewise.
75753         * lib/dirname.c, dirname.h: Likewise.
75754         * lib/euidaccess.c: Likewise.
75755         * lib/exclude.c: Likewise
75756         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75757         * lib/fsusage.c, fsuage.h: Likewise.
75758         * lib/fts.c, fts_.h: Likewise.
75759         * lib/getcwd.c: Likewise.
75760         * lib/getloadavg.c: Likewise.
75761         * lib/mkstemp.c: Likewise.
75762         * lib/mountlist.c, mountlist.h: Likewise.
75763         * lib/openat.c, openat.h: Likewise.
75764         * lib/readlink-stub.c: Likewise.
75765         * lib/readutmp.c, readutmp.h: Likewise.
75766         * lib/rename.c: Likewise.
75767         * lib/rmdir.c: Likewise.
75768         * lib/same.c: Likewise.
75769         * lib/savedir.c: Likewise.
75770         * lib/stripslash.c: Likewise.
75771         * lib/tempname.c: Likewise.
75772         * lib/xreadlink.c: Likewise.
75773         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75774         All uses changed.
75775         * lib/exclude.h: Likewise.
75776
75777         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75778         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75779         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75781         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75782         files have been getting away with it for years (MORE/BSD 4.3
75783         is extinct now).
75784         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75785         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75786
75787         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75788         Define to 256, not 255, as per modern POSIX.
75789
75790 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75791
75792         Sync from coreutils.
75793         Use "file name" when talking about file names, instead of "filename"
75794         or "path", as per the GNU coding standards.
75795         * MODULES.html.sh: mkdir-p renamed from makepath.
75796         filenamecat renamed from path-concat.
75797         * modules/filenamecat: Renamed from modules/path-concat.
75798         (Files): filenamecat.h and filenamecat.c renamed from
75799         path-concat.h and path-concat.c.
75800         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75801         (Include): filenamecat.h, not path-concat.h.
75802         * modules/mkdir-p: Renamed from modules/makepath.
75803         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75804         makepath.c.
75805         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75806         (Include): mkdir-p.h, not makepath.h.
75807
75808 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         Sync from coreutils.
75811         * m4/mkdir-p.m4: Renamed from makepath.m4.
75812         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75813         Rename files from makepath.c to mkdir-p.c, and from
75814         makepath.h to mkdir-p.h.
75815         * m4/filenamecat.m4: Renamed from path-concat.m4.
75816         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75817         Rename files from path-concat.c to filenamecat.c,
75818         and from path-concat.h to filenamecat.h.
75819         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75820         "file name" in local variables or comments.
75821         * m4/rename.m4: Likewise.
75822
75823 2005-06-01  Bruno Haible  <bruno@clisp.org>
75824
75825         * modules/csharpexec: New file.
75826         * MODULES.html.sh (C#): New section.
75827
75828 2005-06-01  Bruno Haible  <bruno@clisp.org>
75829
75830         * m4/csharp.m4: New file, from GNU gettext.
75831         * m4/csharpexec.m4: New file, from GNU gettext.
75832
75833 2005-06-01  Bruno Haible  <bruno@clisp.org>
75834
75835         * lib/csharpexec.h: New file, from GNU gettext.
75836         * lib/csharpexec.c: New file, from GNU gettext.
75837         * lib/csharpexec.sh.in: New file, from GNU gettext.
75838
75839 2005-05-31  Derek Price  <derek@ximbiot.com>
75840             Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         Sync from cvs.
75843         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75844
75845 2005-05-31  Derek Price  <derek@ximbiot.com>
75846             Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         Sync from cvs.
75849         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75850
75851 2005-05-29  Derek Price  <derek@ximbiot.com>
75852
75853         * config/srclist.txt (glob_.h, glob.c): Add these files.
75854
75855 2005-05-29  Derek Price  <derek@ximbiot.com>
75856
75857         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75858         * modules/glob: New file.
75859         * modules/getlogin_r: Add link to POSIX spec in description.
75860
75861 2005-05-29  Derek Price  <derek@ximbiot.com>
75862             Paul Eggert  <eggert@cs.ucla.edu>
75863
75864         * m4/glob.m4: New file.
75865
75866 2005-05-29  Derek Price  <derek@ximbiot.com>
75867             Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * lib/glob_.h, lib/glob.c: New files.
75870
75871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75874         * modules/fts-lgpl (Depends-on): Remove gettext.
75875
75876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75879         and don't require gt_INTTYPES_PRI.
75880
75881 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75882
75883         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75884
75885         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75886         the configuration hassle isn't worth it.
75887         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75888         (LONGEST_MODIFIER, PRIuMAX): Remove.
75889
75890 2005-05-27  Bruno Haible  <bruno@clisp.org>
75891
75892         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75893
75894 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75897         _POSIX_PTHREAD_SEMANTICS for Solaris.
75898
75899 2005-05-25  Derek Price  <derek@ximbiot.com>
75900
75901         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75902
75903 2005-05-25  Derek Price  <derek@ximbiot.com>
75904             Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75907         * lib/getlogin_r.c, getlogin_r.h: New files.
75908
75909 2005-05-25  Bruno Haible  <bruno@clisp.org>
75910             Derek Price  <derek@ximbiot.com>
75911
75912         * lib/getlogin_r.h: Simplify API documentation.
75913
75914 2005-05-23  Derek Price  <derek@ximbiot.com>
75915
75916         * modules/minmax (Files): Add m4/minmax.m4.
75917         (configure.ac): Add gl_MINMAX.
75918
75919 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75922         so that unistd-safer.h (GPL'ed code) need not be included.
75923
75924 2005-05-22  Bruno Haible  <bruno@clisp.org>
75925
75926         * m4/minmax.m4: New file.
75927         Based on a patch by Derek Price <derek@ximbiot.com>.
75928
75929 2005-05-22  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75932         (INT64_MIN): Fix definition.
75933         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75934
75935         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75936         NEED_SIGNED_INT_TYPES.
75937
75938         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75939         HAVE_SYSTEM_INTTYPES.
75940
75941 2005-05-22  Bruno Haible  <bruno@clisp.org>
75942
75943         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75944         Also include <sys/param.h> if it defines MIN, MAX.
75945         Based on a patch by Derek Price <derek@ximbiot.com>.
75946
75947 2005-05-21  Jim Meyering  <jim@meyering.net>
75948
75949         * modules/fts (Files): Add m4/inttypes-pri.m4.
75950         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75951
75952 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         New fts module.
75955         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75956         (setup_dir, free_dir): New functions.
75957         (enter_dir, leave_dir): Define trivial
75958         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75959         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75960         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75961         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75962         Move to fts-cycle.c.
75963         (fts_open): Use setup_dir.
75964         (fts_close): Use free_dir.
75965         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75966         This adds a label and some gotos, but the alternatives were messier.
75967         Check for memory allocation failure when entering a dir.
75968         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75969         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75970         (FTS): New member fts_cycle, that is a union that contains the
75971         old active_dir_ht and cycle_state.  All uses changed to mention
75972         fts_cycle.ht and fts_cycle.state.
75973         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75974         fts.c, with the following changes:
75975         (setup_dir, free_dir): New functions.
75976         (enter_dir): Now returns bool.  Return true if successful, false
75977         if memory exhausted.  All callers changed.
75978         Do not bother partly cleaning up on
75979         memory allocation failure; that is free_dir's job.
75980         However, free ad if hash_insert fails, to avoid memory leak.
75981         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75982         fts->fts_options to see which union member to use.
75983
75984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75987         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75988
75989 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75992
75993 2005-05-20  Jim Meyering  <jim@meyering.net>
75994
75995         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75996         Now a macro, to pacify GCC.
75997
75998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75999
76000         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76001         of -1.
76002
76003 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76004
76005         * lib/chown.c (rpl_chown): Return -1 on failure.
76006
76007 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76008
76009         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76010         Don't check for stddef.h.
76011         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76012         don't use its results.
76013         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76014         since we include them unconditionally.  Don't require
76015         AM_STDBOOL_H, since stdbool is a prerequisite.
76016         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76017         since we assume C89 or better.
76018         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76019         as we don't use their results.
76020         Don't check for fchdir, memmove, memset, strrchr, as we use
76021         them unconditionally.
76022         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76023         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76024
76025 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76026
76027         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76028         Include <stddef.h> unconditionally, since we assume C89 now.
76029         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76030         * lib/fts.c: Include fts_.h first, to check interface.
76031         Do not include intprops.h; no longer needed.
76032         Include cycle-check.h and hash.h, since fts_.h no longer does.
76033         Remove unnecessary casts of closedir to void.
76034         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76035         decide whether to decrement nlinks.
76036         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76037         (FTS): Use struct hash_table * instead of Hash_table, so that
76038         we no longer need to include hash.h here.
76039
76040 2005-05-18  Jim Meyering  <jim@meyering.net>
76041
76042         * modules/dirfd (License): Change to LGPL.  Most of the code
76043         is already in the public domain.
76044
76045 2005-05-18  Jim Meyering  <jim@meyering.net>
76046
76047         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76048         Reported by Yoann Vandoorselaere.
76049
76050 2005-05-17  Jim Meyering  <jim@meyering.net>
76051
76052         * m4/fts.m4: New file, from coreutils.
76053
76054 2005-05-17  Jim Meyering  <jim@meyering.net>
76055
76056         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76057
76058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         Sync from coreutils.
76061         * m4/unlinkdir.m4: New file.
76062
76063 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         Sync from coreutils.
76066         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76067         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76068         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76069         White space changes only.
76070         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76071         special.
76072         * lib/yesno.c: Include getline.h, not ctype.h.
76073         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76074         Use getline to remove arbitrary restriction on response length.
76075
76076 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * config/srclist-update: Spell out "Street" in FSF postal
76079         mail address; this is the style the FSF seems to prefer.
76080
76081         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76082         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76083         this updates FSF postal mail address.
76084
76085         Sync from coreutils.
76086         * modules/unlinkdir: New file.
76087         * modules/yesno (Depends-on): Add getline.
76088         * MODULES.html.sh (File system functions): Add unlinkdir.
76089
76090 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76093         lib/strsep.h:
76094         Change the initial comment to refer to GPL, not LGPL.
76095         gnulib-tool will change it to LGPL as needed.
76096
76097         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76098         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76099         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76100         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76101         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76102         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76103         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76104         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76105         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76106         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76107         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76108         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76109         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76110         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76111         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76112         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76113         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76114         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76115         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76116         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76117         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76118         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76119         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76120         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76121         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76122         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76123         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76124         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76125         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76126         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76127         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76128         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76129         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76130         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76131         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76132         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76133         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76134         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76135         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76136         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76137         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76138         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76139         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76140         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76141         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76142         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76143         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76144         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76145         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76146         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76147         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76148         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76149         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76150         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76151         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76152         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76153         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76154         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76155         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76156         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76157         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76158         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76159         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76160         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76161         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76162         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76163         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76164         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76165         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76166         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76167         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76168         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76169         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76170         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76171         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76172         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76173         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76174         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76175         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76176         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76177         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76178         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76179         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76180         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76181         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76182         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76183         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76184         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76185         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76186         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76187         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76188         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76189         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76190         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76191         lib/yesno.c, lib/yesno.h:
76192         Update FSF postal mail address.
76193
76194 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76195
76196         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76197         tests/test-memmem.c, tests/test-stpncpy.c:
76198         Update FSF postal mail address.
76199
76200 2005-05-13  Bruno Haible  <bruno@clisp.org>
76201
76202         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76203         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76204         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76205         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76206         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76207         Add support for 64-bit integers in the MSVC compiler.
76208
76209 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76210
76211         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76212
76213 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76214
76215         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76216
76217 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76218
76219         * doc/getdate.texi (General date syntax): Don't say that date
76220         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76221         Problem reported by Nic Ferrier.
76222
76223 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76224
76225         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76226         specified in ai_socktype. Fix invalid ai_protocol
76227         check. ai_protocol is usually set to 0 or depending on
76228         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76229         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76230         ai_socktype / ai_protocol in the returned addrinfo structure.
76231
76232 2005-05-10  Simon Josefsson  <jas@extundo.com>
76233
76234         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76235         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76236
76237 2005-05-10  Karl Berry  <karl@gnu.org>
76238
76239         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76240         (from http://www.gnu.org/licenses).
76241         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76242         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76243         fdl.texi suffices.
76244
76245 2005-05-10  Karl Berry  <karl@gnu.org>
76246
76247         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76248         (COPYING.DOC): remove.
76249
76250         * config/srclist-update: new FSF address.
76251
76252 2005-05-10  Derek Price  <derek@ximbiot.com>
76253
76254         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76255         possible.
76256
76257 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76258             Bruno Haible  <bruno@clisp.org>
76259
76260         * modules/inet_ntop: New file.
76261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76262         inet_ntop.
76263
76264 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76265             Bruno Haible  <bruno@clisp.org>
76266
76267         * m4/inet_ntop.m4: New file.
76268
76269 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76270             Bruno Haible  <bruno@clisp.org>
76271
76272         * lib/inet_ntop.h: New file.
76273         * lib/inet_ntop.c: New file, from glibc with modifications.
76274
76275 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76276
76277         * modules/time_r (License): Change to LGPL.
76278         * modules/extensions (License): Change to LGPL.  Actually,
76279         the license is more permissive than that, but currently gnulib-tool
76280         doesn't know how to handle more-permissive licenses.
76281
76282         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76283         Problem reported by Dave Love.
76284
76285 2005-05-08  Jim Meyering  <jim@meyering.net>
76286
76287         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76288         blank.
76289
76290 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         * modules/argmatch (Depends-on): Add stdbool.
76293         * modules/backupfile (Depends-on): Likewise.
76294         * modules/chdir-long (Depends-on): Likewise.
76295         * modules/closeout (Depends-on): Likewise.
76296         * modules/cycle-check (Depends-on): Likewise.
76297         * modules/dirname (Depends-on): Likewise.
76298         * modules/fnmatch (Depends-on): Likewise.
76299         * modules/fsusage (Depends-on): Likewise.
76300         * modules/fwriteerror (Depends-on): Likewise.
76301         * modules/getcwd (Depends-on): Likewise.
76302         * modules/getloadavg (Depends-on): Likewise.
76303         * modules/hard-locale (Depends-on): Likewise.
76304         * modules/makepath (Depends-on): Likewise.
76305         * modules/mountlist (Depends-on): Likewise.
76306         * modules/nanosleep (Depends-on): Likewise.
76307         * modules/posixtm (Depends-on): Likewise.
76308         * modules/quotearg (Depends-on): Likewise.
76309         * modules/readtokens (Depends-on): Likewise.
76310         * modules/readtokens0 (Depends-on): Likewise.
76311         * modules/readutmp (Depends-on): Likewise.
76312         * modules/save-cwd (Depends-on): Likewise.
76313         * modules/strftime (Depends-on): Likewise.
76314         * modules/userspec (Depends-on): Likewise.
76315         * modules/utimecmp (Depends-on): Likewise.
76316         * modules/xgetcwd (Depends-on): Likewise.
76317         * modules/xnanosleep (Depends-on): Likewise.
76318         * modules/xstrtod (Depends-on): Likewise.
76319         * modules/yesno (Depends-on): Likewise.
76320
76321 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76324         needless checks.
76325
76326 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         Merge from coreutils.  Among other things,
76329         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76330         * lib/fd-safer.c: New file.
76331         * lib/fcntl-safer.h, open-safer.c: Remove.
76332         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76333         * lib/dup-safer.c: Include unistd-safer.h first.
76334         Don't include errno.h.
76335         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76336         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76337         * lib/file-type.c: Rely on file-type.h change.
76338         * lib/getloadavg.c: Include unistd-safer.h.
76339         (getloadavg): Use safer open.
76340         * lib/getusershell.c: Include "stdio-safer.h".
76341         (getusershell): Use safer fopen.
76342         * lib/long-options.c (long_options): Use NULL rather than 0.
76343         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76344         'free'.
76345         * lib/modechange.c: Likewise.
76346         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76347         (MODE_DONE): New constant.
76348         (struct mode_change): Remove 'next' member.
76349         (make_node_op_equals): New function; like the old one of the
76350         same name, except it allocates an array.
76351         (mode_compile, mode_create_from_ref): Use it.
76352         (mode_compile): Allocate result as an array, not a linked list.
76353         Parse octal string ourself, so that we catch mistakes like "+0".
76354         (mode_adjust): Arg is an array, not a linked list.
76355         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76356         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76357         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76358         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76359         Remove.  This is now stat-macros.h's job.
76360         (talloc): Remove.  All callers replaced by xalloc, so that
76361         our invokers don't have to worry about reporting memory failures.
76362         (make_node_op_equals): Remove.
76363         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76364         New constants.
76365         (struct mode_change): Moved here from modechange.h.
76366         (mode_append_entry): Remove.
76367         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76368         apps to have incorrect behavior.  Use simpler algorithm for head
76369         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76370         Detect more invalid usages rather than having somewhat-random behavior.
76371         Don't insert an "a=" action, as that leads to incorrect behavior.
76372         (mode_compile, mode_create_from_ref): Return NULL on error instead
76373         of an enum, since now there's only one way to have an error.  All
76374         callers changed.
76375         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76376         at the correct time.  Simplify calculation of "+u" and its ilk.
76377         Don't mishandle "+X".
76378         (mode_free): Remove "register" and localize decls.
76379         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76380         (struct mode_change): Move to modechange.c; callers don't
76381         need to see this stuff.
76382         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76383         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76384         (mode_change, mode_adjust): Reflect the new signatures noted above.
76385         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76386         that might redefine system include files.
76387         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76388         (my_usleep): Use NULL rather than (void *) 0.
76389         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76390         Use siginterrupt to specify that system calls should be interrupted.
76391         (rpl_nanosleep): Move initialization of suspended closer to call of
76392         my_usleep.
76393         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76394         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76395         (desirable_utmp_entry): New function.
76396         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76397         using x2nrealloc, to simplify logic.
76398         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76399         size calculation.  Do not assume utmp file is a regular file.
76400         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76401         (READ_UTMP_CHECK_PIDS): New constant.
76402         * lib/save-cwd.c: Include unistd-safer.h.
76403         (save_cwd): Use fd_safer.
76404         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76405         [!_LIBC] Include "stat-macros.h" instead.
76406         * lib/unistd-safer.h (fd_safer): New decl.
76407
76408 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * modules/getloadavg (Depends-on): Add unistd-safer.
76411         * modules/getusershell (Depends-on): Add stdio-safer.
76412         * modules/lstat (Depends-on): Remove xalloc.
76413         * modules/mkstemp (Depends-on): Add stat-macros.
76414         * modules/modechange (Depends-on): Remove xstrtol.
76415         Add stat-macros, xalloc.
76416         * modules/save-cwd (Depends-on): Add unistd-safer.
76417         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76418         * modules/unistd-safer (Files): Add lib/fd-safer.c
76419         (Makefile.am): Remove lib_SOURCES.
76420
76421         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76422         Remove fcntl-safer; unistd-safer supersedes it.
76423
76424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76427         AC_HEADER_STAT.
76428         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76429         (gl_PREREQ_CHOWN): Remove.
76430         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76431         it.  Don't require AC_HEADER_STAT.
76432         (gl_PREREQ_LSTAT): Remove.
76433         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76434         Don't require AC_HEADER_STAT.
76435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76436         (gl_PREREQ_RMDIR): Remove.
76437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76438         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76439         the stat-macros module a prerequisite.
76440         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76441         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76442         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76443         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76444         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76445         variable names.
76446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76447         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76448         variable prefixes.
76449         * m4/fcntl-safer.m4: Remove.
76450         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76452         Invoke gl_PREREQ_FD_SAFER.
76453         (gl_PREREQ_FD_SAFER): New macro.
76454         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76455         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76456         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76457         Remove duplicate call to AC_LIBOBJ(readutmp).
76458         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76459
76460         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76461         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76462
76463 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * MODULES.html.sh (Misc): Add byteswap.
76466
76467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76468
76469         * modules/getcwd (Depends-on): Add extensions.
76470         * modules/openat (Depends-on): Likewise.
76471
76472 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76473
76474         * modules/byteswap: New file.
76475
76476 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76477
76478         * m4/byteswap.m4: New file.
76479
76480 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76481
76482         * lib/byteswap_.h: New file.
76483
76484 2005-04-25  Karl Berry  <karl@gnu.org>
76485
76486         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76487
76488 2005-04-25  Albert Chin  <china@thewrittenword.com>
76489
76490         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76491         Toolkit C bug.
76492
76493 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76494
76495         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76496         (func_ln_if_changed): Remove forcibly for no error message
76497         in case file does not exist.
76498
76499 2005-04-19  Simon Josefsson  <jas@extundo.com>
76500
76501         * gnulib-tool (Options): Make --symlink mean --symbolic.
76502
76503 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76504
76505         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76506
76507 2005-04-16  Simon Josefsson  <jas@extundo.com>
76508
76509         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76510
76511 2005-04-15  Simon Josefsson  <jas@extundo.com>
76512
76513         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76514
76515 2005-04-15  Simon Josefsson  <jas@extundo.com>
76516
76517         * gnulib-tool: Rename --symlink to --symbolic.
76518
76519 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76520
76521         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76522         symbolic links to files instead of copying/moving.  Add --aux-dir,
76523         specifying directory relative --dir where auxiliary build tools
76524         are placed.
76525
76526 2005-04-14  Bruno Haible  <bruno@clisp.org>
76527
76528         * modules/allocsa (License): Change to LGPL.
76529         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76530
76531 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76532
76533         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76534         that "UTC +1 second" continues to work.  Problem reported
76535         by Dmitry V. Levin.
76536         (relunit_snumber): New rule.
76537         (relunit): Use it.
76538
76539 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * lib/getdate.y (universal_time_zone_table): New constant.
76542         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76543         universal_time_zone_table.
76544         (lookup_zone): Prefer universal_time_zone_table to
76545         local_time_zone_table, so that "GMT" time stamps are allowed in
76546         London during the summer.  Problem reported by Ian Abbott.
76547
76548 2005-04-12  Jim Meyering  <jim@meyering.net>
76549
76550         * lib/human.c (humblock): Set *options even when returning due to
76551         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76552         warning from gcc-4.
76553
76554 2005-04-09  Jim Meyering  <jim@meyering.net>
76555
76556         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76557         -Wuninitialized: initialize tm0.tm_year.
76558
76559 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76562         count, since there's no maximum.  All uses changed.
76563         Add member dsts_seen.
76564         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76565         not being INT_MAX.
76566         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76567         Use pc_rels_seen to decide whther a date is absolute.
76568
76569         * lib/getdate.y (number): Don't overwrite year.
76570         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76571         check.
76572
76573 2005-04-02  Simon Josefsson  <jas@extundo.com>
76574
76575         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76576         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76577
76578 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76579
76580         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76581         where no absolute path name can be longer than PATH_MAX.
76582
76583 2005-03-27  Jim Meyering  <jim@meyering.net>
76584
76585         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76586
76587 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76590         "one's complement" -> "ones' complement" in comment, as per Knuth.
76591         "value of type" -> "type or expression" in comment.
76592         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76593
76594 2005-03-26  Jim Meyering  <jim@meyering.net>
76595
76596         Comment nits.
76597         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76598         Correct typos: s/or/of/.
76599
76600 2005-03-26  Jim Meyering  <jim@meyering.net>
76601
76602         * modules/check-include-files: Move to ../ and rename to...
76603         * check-module: ...this.
76604
76605 2005-03-25  Jim Meyering  <jim@meyering.net>
76606
76607         * modules/xvasprintf (Files): Add xalloc.h.
76608
76609 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         * modules/gettext (Files): config/config.rpath ->
76612         build-aux/config.rpath
76613         * modules/iconv (Files): Likewise.
76614         Problem reported by Oskar Liljeblad.
76615
76616 2005-03-23  Jim Meyering  <jim@meyering.net>
76617
76618         * modules/check-include-files: New script to check for
76619         missing dependencies, multiple includes, etc.
76620
76621         * modules/c-strtold (Depends-on): Add xalloc.
76622         * modules/c-strtod (Depends-on): Add xalloc.
76623         * modules/hash (Depends-on): Add xalloc.
76624         (Files): Remove lib/xalloc.h.
76625
76626         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76627         * modules/userspec (Files): Add lib/inttostr.h.
76628
76629 2005-03-23  Jim Meyering  <jim@meyering.net>
76630
76631         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76632
76633 2005-03-22  Jim Meyering  <jim@meyering.net>
76634
76635         * modules/stat-macros: New module.
76636         * modules/canonicalize, modules/euidaccess, modules/file-type,
76637         * modules/filemode, modules/lchown, modules/makepath,
76638         * modules/rmdir, modules/stat: Depend on new stat-macros module
76639         rather than listing lib/stat-macros.h manually.
76640         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76641
76642 2005-03-22  Jim Meyering  <jim@meyering.net>
76643
76644         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76645
76646 2005-03-22  Bruno Haible  <bruno@clisp.org>
76647
76648         * config/srclist.txt: Replace target directory 'config' with
76649         'build-aux'.
76650         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76651         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76652         ../build-aux/.
76653
76654 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * modules/chdir-long (Depends-on): Add mempcpy.
76657
76658         * modules/acl, modules/backupfile, modules/c-strtod,
76659         modules/c-strtold, modules/canon-host, modules/canonicalize,
76660         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76661         modules/exclude, modules/exitfail, modules/file-type,
76662         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76663         modules/getdate, modules/getline, modules/getpagesize,
76664         modules/getpass, modules/getugroups, modules/group-member,
76665         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76666         modules/inttostr, modules/long-options, modules/makepath,
76667         modules/md5, modules/memcasecmp, modules/memcoll,
76668         modules/modechange, modules/mountlist, modules/path-concat,
76669         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76670         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76671         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76672         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76673         modules/strftime, modules/strndup, modules/strverscmp,
76674         modules/timespec, modules/unlocked-io, modules/userspec,
76675         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76676         modules/yesno:
76677         Remove lib_SOURCES line from Makefile.am section, as this is now
76678         done automatically by the corresponding Autoconf macro.
76679
76680 2005-03-21  Jim Meyering  <jim@meyering.net>
76681
76682         Changes imported from coreutils.
76683
76684         * lib/cycle-check.c: Don't include xalloc.h.
76685
76686         * lib/path-concat.c: Don't include assert.h.
76687         (path_concat): Remove assertion that would have triggered
76688         for ABASE starting with more than one slash.
76689         Reported by Andreas Schwab.
76690
76691         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76692         properly when ABASE is an absolute file name.
76693         Correct the description of this function.
76694         Include <assert.h>.
76695         Add an assertion and a test driver.
76696         This fixes a bug introduced on 2004-07-02.
76697         Andreas Schwab reported the resulting failure of cp --parents:
76698         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76699
76700 2005-03-21  Jim Meyering  <jim@meyering.net>
76701
76702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76704
76705 2005-03-21  Jim Meyering  <jim@meyering.net>
76706         and  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76709         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76710         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76711         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76712         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76713         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76714         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76715         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76716         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76717         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76718         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76719         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76720         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76721         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76722         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76723         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76724         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76725         for these modules.
76726
76727 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76730         (which shouldn't happen), generate nothing instead of returning 0
76731         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76732
76733 2005-03-16  Bruno Haible  <bruno@clisp.org>
76734
76735         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76736         HAVE_LONGLONG_64BIT.
76737
76738 2005-03-16  Bruno Haible  <bruno@clisp.org>
76739
76740         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76741         HAVE_LONGLONG_64BIT.
76742
76743 2005-03-16  Bruno Haible  <bruno@clisp.org>
76744
76745         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76746         HAVE_LONGLONG_64BIT.
76747
76748 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76751         reliably distinguish strftime failure from empty output on POSIX
76752         hosts.
76753
76754 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76757         (iconv_string): Don't guess a size-zero buffer, as that might cause
76758         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76759         result would be 'too large', where 'too large' is (heuristically)
76760         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76761         overflow concerns.  This will prevent some unwanted malloc failures
76762         when the inputs are very large.
76763
76764 2005-03-15  Karl Berry  <karl@gnu.org>
76765
76766         * config/srclist.txt (config.rpath): from gettext.
76767         * config/config.rpath: update.
76768
76769 2005-03-15  Bruno Haible  <bruno@clisp.org>
76770
76771         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76772         to 'negate'.
76773
76774         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76775         variable.
76776
76777         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76778         results.
76779
76780 2005-03-14  Simon Josefsson  <jas@extundo.com>
76781
76782         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76783         <fx@gnu.org>.
76784
76785 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76786
76787         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76788         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76789         intprops.h.
76790         * lib/strtol.c: Likewise.
76791
76792 2005-03-14  Jim Meyering  <jim@meyering.net>
76793
76794         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76795         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76796         to be nonzero so that we (and caller) can detect the difference
76797         between a valid zero-length expansion and an error return, even
76798         when the underlying strftime fails before writing anything into
76799         that location.
76800
76801 2005-03-14  Bruno Haible  <bruno@clisp.org>
76802
76803         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76804         Update from GNU gettext 0.14.3.
76805
76806 2005-03-10  Jim Meyering  <jim@meyering.net>
76807
76808         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76809
76810 2005-03-10  Jim Meyering  <jim@meyering.net>
76811
76812         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76813         so that this module works on systems without fchdir.
76814
76815 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         Factor int-properties macros into a single file, except for
76818         glibc-related files.
76819         * lib/intprops.h: New file.
76820         * lib/getloadavg.c: Include it instead of limits.h.
76821         (INT_STRLEN_BOUND): Remove.
76822         * lib/human.c: Include intprops.h.
76823         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76824         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76825         302/1000.
76826         * lib/inttostr.h: Include intprops.h instead of limits.h.
76827         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76828         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76829         for consistency with intprops.h.
76830         (time_t_is_integer, twos_complement_arithmetic): Use them.
76831         * lib/sig2str.h: Include <signal.h>, intprops.h.
76832         (INT_STRLEN_BOUND): Remove.
76833         * lib/strftime.c (TYPE_SIGNED): Remove.
76834         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76835         * lib/strtol.c: Adjust comments to match intprops.h.
76836         * lib/userspec.c: Include intprops.h.
76837         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76838         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76839         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76840         instead of rolling our own expressions.
76841         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76842
76843         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76844         instead of int.
76845         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76846         the right thing even if adding 1900 would overflow.  Similarly
76847         for tm_mon + 1 and tm_yday + 1.
76848         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76849         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76850         (DO_SIGNED_NUMBER): New macro.
76851         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76852
76853 2005-03-07  Bruno Haible  <bruno@clisp.org>
76854
76855         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76856
76857 2005-03-07  Bruno Haible  <bruno@clisp.org>
76858
76859         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76860
76861 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76862
76863         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76864         (func_import): Only replace files via --import when they have actually
76865         changed.
76866
76867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76868
76869         * m4/mmap-anon.m4: New file.
76870         * m4/pagealign_alloc.m4: New file.
76871
76872 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76873             Bruno Haible  <bruno@clisp.org>
76874
76875         * modules/pagealign_alloc: New file.
76876         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76877
76878 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76879             Bruno Haible  <bruno@clisp.org>
76880
76881         * lib/pagealign_alloc.h: New file.
76882         * lib/pagealign_alloc.c: New file.
76883
76884 2005-03-03  Bruno Haible  <bruno@clisp.org>
76885
76886         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76887         Use an all-permissive copyright notice, recommended by RMS.
76888
76889 2005-03-02  Bruno Haible  <bruno@clisp.org>
76890
76891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76892         of AIX, the replacement has to be done only after <string.h> is
76893         included, therefore not in config.h. stpncpy.h does the replacement,
76894         and stpncpy.c uses it.
76895
76896 2005-03-02  Bruno Haible  <bruno@clisp.org>
76897
76898         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76899         stpncpy.c uses it.
76900
76901 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76902
76903         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76904         The workaround isn't strictly needed for POSIX conformance, and
76905         it's too much of a pain to configure and maintain.  We'll ask
76906         people to fix their kernels instead.
76907         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76908         (NANOSLEEP_BUG_WORKAROUND): Remove.
76909         (xnanosleep): Remove the workaround.
76910
76911 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76912
76913         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76914         Reported by Derek Price.
76915         (Include): Add "timespec.h".
76916
76917         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76918
76919 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76922         to detect nanosleep bug.
76923
76924 2005-03-01  Bruno Haible  <bruno@clisp.org>
76925
76926         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76927
76928 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * modules/gethrxtime: New file.
76931         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76932         (Depends-on): Add gethrxtime.
76933         (configure.ac): Add gl_XNANOSLEEP.
76934         (Makefile.am): Remove lib_SOURCES line.
76935
76936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76939         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76940
76941 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76944         * lib/timespec.h (gettime): Return void, since it always
76945         succeeds now.  All uses changed.
76946         * lib/gettime.c (gettime): Likewise.
76947         [HAVE_NANOTIME]: Prefer nanotime.
76948         Assume gettimeofday succeeds, as POSIX requires.
76949         Assime time () succeeds, since other code already does.
76950         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76951         (timespec_subtract): Remove.
76952         (NANOSLEEP_BUG_WORKAROUND): New constant.
76953         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76954         things considerably.  Use it only on GNU/Linux hosts, since the
76955         workaround shouldn't be needed elsewhere.
76956
76957 2005-02-24  Bruno Haible  <bruno@clisp.org>
76958
76959         * modules/gettext (Files): Add m4/glibc2.m4.
76960
76961 2005-02-24  Bruno Haible  <bruno@clisp.org>
76962
76963         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76964         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76965         * m4/progtest.m4:
76966         Update from GNU gettext 0.14.2.
76967         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76968
76969 2005-02-24  Bruno Haible  <bruno@clisp.org>
76970
76971         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76972         * lib/config.charset: Update from GNU gettext 0.14.2.
76973
76974 2005-02-24  Bruno Haible  <bruno@clisp.org>
76975
76976         * lib/gettext.h: Update from GNU gettext 0.14.2.
76977
76978 2005-02-23  Simon Josefsson  <jas@extundo.com>
76979
76980         * m4/iconvme.m4: New file.
76981
76982 2005-02-23  Jim Meyering  <jim@meyering.net>
76983
76984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76985         change.
76986         Thanks to Bruno Haible for catching it.
76987
76988 2005-02-22  Simon Josefsson  <jas@extundo.com>
76989
76990         * modules/iconvme: New file.
76991
76992         * MODULES.html.sh: Add iconvme.
76993
76994 2005-02-22  Simon Josefsson  <jas@extundo.com>
76995
76996         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76997
76998 2005-02-22  Simon Josefsson  <jas@extundo.com>
76999
77000         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77001
77002 2005-02-22  Jim Meyering  <jim@meyering.net>
77003
77004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77005         s/ifndef/ifdef/.
77006
77007 2005-02-20  Neil Conway  <neilc@samurai.com>
77008
77009         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77010         returned by OSX/Darwin if the specified buffer is not large
77011         enough for the hostname.
77012
77013 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77014
77015         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77016         pass it to _help, otherwise the latter coredumps trying to
77017         dereference state.root_argp.
77018
77019 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77020
77021         * modules/chdir-long (Depends-on): Add memrchr.
77022         * modules/memrchr (Files): Add lib/memrchr.h.
77023         (Include): "memrchr.h".
77024
77025 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77028
77029 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77030
77031         * lib/memrchr.h: New file.
77032         * lib/chdir-long.c: Include it.
77033         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77034         Don't bother including stddef.h.
77035
77036 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77037
77038         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77039         inclusion.
77040         Include <sys/types.h>, for dev_t.
77041         (ME_DUMMY, ME_REMOTE): Move from here....
77042         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77043         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77044         Dmitry V. Levin.
77045         Include mountlist.h first, to test the interface.
77046
77047 2005-01-29  Bruno Haible  <bruno@clisp.org>
77048
77049         * lib/progname.c (program_name): Initialize.
77050         Needed when linking statically on MacOS X.
77051
77052 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         Sync from coreutils.
77055         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77056         (Depends-on): Add c-strtod.
77057         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77058
77059 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         Sync from coreutils.
77062         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77063
77064         Remove files that are specific to coreutils.
77065         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77066
77067 2005-01-28  Bruno Haible  <bruno@clisp.org>
77068
77069         * modules/javacomp: New file.
77070         * MODULES.html.sh (Java): Add javacomp.
77071
77072 2005-01-28  Bruno Haible  <bruno@clisp.org>
77073
77074         * m4/javacomp.m4: New file, from GNU gettext.
77075
77076 2005-01-28  Bruno Haible  <bruno@clisp.org>
77077
77078         * lib/javacomp.sh.in: New file, from GNU gettext.
77079         * lib/javacomp.h: New file, from GNU gettext.
77080         * lib/javacomp.c: New file, from GNU gettext.
77081
77082 2005-01-26  Simon Josefsson  <jas@extundo.com>
77083
77084         * lib/gai_strerror.c: Use GPL in header.
77085
77086 2005-01-26  Bruno Haible  <bruno@clisp.org>
77087
77088         * modules/javaexec: New file.
77089         * MODULES.html.sh (Java): Add javaexec.
77090
77091 2005-01-26  Bruno Haible  <bruno@clisp.org>
77092
77093         * m4/javaexec.m4: New file, from GNU gettext.
77094
77095 2005-01-26  Bruno Haible  <bruno@clisp.org>
77096
77097         * lib/javaexec.sh.in: New file, from GNU gettext.
77098         * lib/javaexec.h: New file, from GNU gettext.
77099         * lib/javaexec.c: New file, from GNU gettext.
77100
77101 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77102
77103         * modules/lchown (Depends-on): Remove lchown.h
77104
77105 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77106
77107         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77108         must be defined if the header file was not found, in order
77109         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77110
77111 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77112
77113         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77114         initializers for struct pentry_state.
77115         (__argp_error): Check return value of __asprintf
77116         (__argp_failure): Translate error message
77117
77118         * lib/argp-parse.c: Removed braces around the expansion of N_()
77119
77120 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77123         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77124         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77125         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77126         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77127         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77128         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77129         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77130         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77131         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77132         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77133         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77134         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77135         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77136         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77137         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77138         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77139         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77140         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77141         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77142         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77143         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77144         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77145         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77146         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77147         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77148         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77149         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77150         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77151         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77152         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77153         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77154         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77155         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77156         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77157         Use an all-permissive copyright notice, recommended by RMS.
77158
77159 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         * modules/chdir-long (Depends-on): Remove mempcpy.
77162
77163 2005-01-21  Jim Meyering  <jim@meyering.net>
77164
77165         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77166         same value as for Solaris 9.
77167
77168         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77169         component length.  This included changing the parameter to be
77170         of type `char *' rather than `char const *'.
77171         * lib/chdir-long.h (chdir_long): Update prototype.
77172
77173         * lib/openat.c (fdopendir, fstatat): New functions.
77174         * lib/openat.h: Include headers required for use of DIR and struct
77175         stat.
77176         [AT_SYMLINK_NOFOLLOW]: Define.
77177         (fdopendir, fstatat): Add prototypes.
77178
77179 2005-01-21  Bruno Haible  <bruno@clisp.org>
77180
77181         * modules/classpath: New file.
77182         * MODULES.html.sh (Java): Add classpath.
77183
77184 2005-01-21  Bruno Haible  <bruno@clisp.org>
77185
77186         * lib/classpath.h: New file, from GNU gettext.
77187         * lib/classpath.c: New file, from GNU gettext.
77188
77189 2005-01-20  Simon Josefsson  <jas@extundo.com>
77190
77191         * modules/version-etc-fsf: New file.
77192
77193 2005-01-20  Simon Josefsson  <jas@extundo.com>
77194
77195         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77196         * lib/version-etc.c: Remove version_etc_copyright.
77197         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77198         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77199
77200 2005-01-20  Simon Josefsson  <jas@extundo.com>
77201
77202         * lib/base64.h (isbase64): Add.
77203
77204         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77205         using a unsigned prototype, don't inline.
77206         (base64_decode): Use it.
77207
77208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77209
77210         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77211         it.
77212
77213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77214
77215         * lib/save-cwd.c (save_cwd): Remove code to support the case
77216         where fchdir is missing or flaky.
77217
77218 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77219
77220         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77221
77222 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77225         AC_LIBSOURCES now does this.
77226         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77227         with new ullong_max module.
77228
77229 2005-01-19  Bruno Haible  <bruno@clisp.org>
77230
77231         * modules/sh-quote: New file.
77232         * MODULES.html.sh (Executing programs): Add sh-quote.
77233
77234 2005-01-19  Bruno Haible  <bruno@clisp.org>
77235
77236         * lib/sh-quote.h: New file, from GNU gettext.
77237         * lib/sh-quote.c: New file, from GNU gettext.
77238
77239 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77240
77241         Merge from coreutils.
77242         * m4/ullong_max.m4: New file.
77243         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77244         (gl_MACROS): Assume localeconv exists.
77245
77246 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77247
77248         Merge changes from coreutils, as described below in several
77249         changelogs dated today.
77250
77251         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77252         (O_DIRECTORY): Remove; not needed here, since "." must be
77253         a directory.  All uses removed.
77254         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77255         universal on Suns, and we also need to test for IRIX.
77256         Revamp code to use 'if' rather than '#if'.
77257         Avoid unnecessary comparison of cwd->desc to 0.
77258
77259         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77260         for known valid error numbers rather than observed invalid ones.
77261
77262 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * modules/ullong_max: New file.
77265
77266         * modules/chdir-long, modules/openat: New files.
77267         * modules/save-cwd (Depends-on): Depend on chdir-long.
77268         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77269
77270 2005-01-18  Jim Meyering  <jim@meyering.net>
77271
77272         Merge from coreutils.
77273         * m4/chdir-long.m4, m4/openat.m4: New files.
77274         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77275         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77276         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77277         is sane and DOES follow symlinks.  Besides, testing 20 different
77278         systems found no broken chown implementations.
77279         Prompted by a change in rsync's copy of this macro.
77280         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77281
77282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77283
77284         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77285         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77286         NULL-means-set-to-current-time semantics.
77287         Remove temporary file immediately, rather than waiting
77288         for configure's at-exit trap code to do it.
77289
77290 2005-01-18  Jim Meyering  <jim@meyering.net>
77291
77292         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77293
77294         * lib/utimens.c (futimens): Account for the fact that futimes
77295         can also fail with errno == ENOSYS or errno == ENOENT.
77296         Patch from Dmitry V. Levin.
77297
77298         Change the name of the robust chdir function from chdir to chdir_long.
77299         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77300         (restore_cwd): Use chdir_long, not chdir.
77301         * lib/chdir-long.c: Renamed from chdir.c.
77302         * lib/chdir-long.h: Renamed from chdir.h.
77303         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77304         Hurd.
77305
77306 2005-01-18  Bruno Haible  <bruno@clisp.org>
77307
77308         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77309         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77310         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77311         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77312         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77313         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77314         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77315         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77316         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77317         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77318         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77319         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77320         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77321         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77322         Use an all-permissive copyright notice, recommended by RMS.
77323
77324 2005-01-18  Bob Proulx  <bob@proulx.com>
77325
77326         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77327         simplify offsetof() macro construct to avoid compile failure with
77328         native HP-UX 11.0 ANSI C compiler.
77329
77330 2005-01-17  Bruno Haible  <bruno@clisp.org>
77331
77332         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77333         redundant because stpncpy.m4 takes care of it.
77334
77335 2005-01-17  Bruno Haible  <bruno@clisp.org>
77336
77337         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77338
77339 2005-01-17  Bruno Haible  <bruno@clisp.org>
77340
77341         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77342         used.
77343
77344 2005-01-17  Bruno Haible  <bruno@clisp.org>
77345
77346         * lib/fwriteerror.h (fwriteerror): Change specification to include
77347         fclose.
77348         * lib/fwriteerror.c: Include <stdbool.h>.
77349         (fwriteerror): At the end, close the file stream. Record whether
77350         stdout was already closed.
77351
77352 2005-01-17  Bruno Haible  <bruno@clisp.org>
77353
77354         * lib/execute.c (environ): Declare if needed.
77355         * lib/pipe.c (environ): Likewise.
77356         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77357
77358 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77359
77360         * modules/argp: Depend on vsnprintf
77361
77362 2005-01-10  Jim Meyering  <jim@meyering.net>
77363
77364         * modules/closeout (Depends-on): Add atexit.
77365
77366 2005-01-06  Bruno Haible  <bruno@clisp.org>
77367
77368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77369
77370 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77373         definitions to be after all include files, to avoid collisions.
77374         Problem reported by Bob Proulx.
77375
77376 2005-01-04  Jim Meyering  <jim@meyering.net>
77377
77378         Changes imported from coreutils.
77379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77380         as the mkstemp template, use a temporary directory and an
77381         8.3-friendly template to avoid trouble on systems like DJGPP.
77382         Reported by Juan M. Guerrero via Stepan Kasal.
77383         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77384         close. Remove the temporary directory right away, rather than waiting
77385         for configure's at-exit trap code to do it.
77386         Suggestion from Stepan Kasal.
77387
77388 2005-01-01  Simon Josefsson  <jas@extundo.com>
77389
77390         * gnulib-tool: Print #include directives when --import'ing.
77391
77392 2004-12-28  Simon Josefsson  <jas@extundo.com>
77393
77394         * tests/test-base64.c: Include required header files.  Remove
77395         unused variables.
77396
77397 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77398
77399         * modules/error (Depends-on): Remove gettext.
77400
77401 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77402
77403         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77404         not needed.  This removes a dependency on the gettext module.
77405         [defined _LIBC]: Do not include <libintl.h>; not needed.
77406
77407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77410         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77411
77412 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77413
77414         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77415         HAVE_DECL_STRTOLD.
77416
77417 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77418
77419         * modules/getdate (Depends-on): Remove alloca-opt.
77420
77421 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77424
77425 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * lib/argp-parse.c: Include <stddef.h>.
77428         (alignof, alignto): New macros.
77429         (parser_init): Don't assume that void * is aligned sufficiently
77430         for struct option.
77431
77432         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77433         need to extend the stack.
77434         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77435         large.
77436
77437 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77438
77439         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77440
77441 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77442
77443         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77444         (2004-10-24) change.  Apparently this was a false alarm.
77445
77446         * modules/getdate: Depend on alloca-opt, not alloca.
77447
77448 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77451         Remove now-obsolete comment about AIX.
77452         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77453         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77454         (YYMAXDEPTH): New macro.
77455
77456 2004-12-18  Simon Josefsson  <jas@extundo.com>
77457
77458         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77459
77460 2004-12-18  Bruno Haible  <bruno@clisp.org>
77461
77462         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77463
77464 2004-12-18  Bruno Haible  <bruno@clisp.org>
77465
77466         * lib/fatal-signal.c (fatal_signals): Make non-const.
77467         (init_fatal_signals): New function.
77468         (uninstall_handlers, install_handlers): Ignore signals that were set to
77469         SIG_IGN.
77470         (at_fatal_signal): Call init_fatal_signals.
77471         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77472         SIG_IGN.
77473         Reported by Paul Eggert.
77474
77475 2004-12-18  Bruno Haible  <bruno@clisp.org>
77476
77477         * doc/alloca.texi: New file.
77478         * doc/alloca-opt.texi: New file.
77479
77480 2004-12-17  Jim Meyering  <jim@meyering.net>
77481
77482         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77483         Otherwise, install-sh could exit with improper exit status when
77484         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77485
77486 2004-12-16  Simon Josefsson  <jas@extundo.com>
77487
77488         * tests/test-base64.c: Add license.
77489
77490 2004-12-15  Stepan Kasal  <address@hidden>
77491
77492         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77493
77494 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77495
77496         * modules/getcwd (Files): Add m4/d-ino.m4.
77497         Suggested by Mark D. Baushke.
77498
77499 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * lib/getdate.y (textint): New member "negative".
77502         (time_zone_hhmm): New function.
77503         Expect 14 shift-reduce conflicts, not 13.
77504         (o_colon_minutes): New rule.
77505         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77506         (yylex): Set the "negative" member of signed numbers.
77507
77508 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * doc/getdate.texi (Time of day items, Time zone items):
77511         Describe new formats +00:00, UTC+00:00.
77512
77513 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77516         spurious "-l"s.  Problem reported by Stepan Kasal.
77517
77518 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77519
77520         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77521         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77522
77523 2004-12-04  Simon Josefsson  <jas@extundo.com>
77524
77525         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77526         Vandoorselaere <yoann@prelude-ids.org>.
77527
77528 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         Changes imported from coreutils.
77531         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77532         exist.
77533         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77534
77535 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         Changes imported from coreutils.
77538         * lib/hard-locale.c: Assume <locale.h> exists.
77539         Include "strdup.h".
77540         (GLIBC_VERSION): New macro.
77541         (hard_locale): Assume setlocale exists.
77542         Rewrite to avoid #ifdef.
77543         Use strdup rather than malloc + strcpy.
77544         * lib/human.c: Assume <locale.h> exists.
77545         (human_readable): Assume localeconv exists.
77546
77547 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77548
77549         * modules/hard-locale (Depends-on): Add strdup.
77550
77551 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77552
77553         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77554         convert T2, not T.  (Imported from libc.)
77555
77556 2004-11-30  Simon Josefsson  <jas@extundo.com>
77557
77558         * modules/restrict (License): Change to LGPL.
77559
77560 2004-11-30  Simon Josefsson  <jas@extundo.com>
77561
77562         * m4/restrict.m4: Add copyright and copying conditions.
77563
77564 2004-11-30  Simon Josefsson  <jas@extundo.com>
77565
77566         * m4/base64.m4: New file.
77567
77568 2004-11-30  Simon Josefsson  <jas@extundo.com>
77569
77570         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77571         base64.
77572
77573         * tests/test-base64.c: New file.
77574
77575         * modules/base64: New file.
77576
77577 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77578
77579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77580         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77581
77582         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77583
77584 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77585
77586         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77587         (__getcwd.c): Don't restore errno; glibc doesn't.
77588         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77589         first, falling back to our code only if its results look suspicious.
77590         Ensure that the resulting buffer is only as large as necessary.
77591
77592         * lib/readutmp.c: Include readutmp.h first.
77593         Include <errno.h>, since readutmp.h no longer does that.
77594         * lib/readutmp.h: Don't include <errno.h>,
77595         <sys/param.h>, <time.h>; not needed to establish interface.
77596         (errno): Remove decl.
77597         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77598         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77599         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77600
77601 2004-11-28  Simon Josefsson  <jas@extundo.com>
77602
77603         * lib/base64.h, base64.c: New file.
77604
77605 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77608
77609 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77610
77611         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77612         (Depends-on): Remove pathmax, same.  Add mempcpy.
77613         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77614         (Makefile.am): Append getcwd.h to lib_SOURCES.
77615         (Include): Add getcwd.h.
77616         (Maintainer): Change from Jim Meyering to "all, glibc",
77617         since getdate now uses intended-for-glibc code.
77618         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77619         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77620
77621 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77622
77623         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77624         HP's ANSI C compiler.
77625         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77626         Declaring int functions causes warnings on some modern systems and
77627         shouldn't be needed to compile on ancient ones.
77628         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77629         defined.
77630
77631         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77632         with the following changes.
77633         (__set_errno): Parenthesize properly.
77634         Include <stdbool.h>.
77635         (MIN, MAX, MATCHING_INO): New macros.
77636         (__getcwd): Define with prototype, not K&R form.
77637         Use heuristics to allocate default buffer on stack if possible.
77638         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77639         behavior, and to avoid the PATH_MAX limit when computing
77640         ../../../../...
77641         Use MATCHING_INO to compare inode number to file.
77642         Check for arithmetic overflow in size calculations.
77643         Fix bug in reallocation of dot array that caused getcwd to fail
77644         on directories nested deeper than 75.
77645         Be more careful about saving errno on error.
77646         Do not use realloc; use only free+malloc, as this is a bit
77647         more flexible and avoids a needless copy operation.
77648         Do not inspect st_dev and st_ino for symbolic links; POSIX
77649         doesn't specify the latter.
77650         Check for closedir errors.
77651         Avoid needless casts.
77652         Use "#ifdef weak_alias" around weak_alias, to be like other
77653         glibc code.
77654         The following changes to getcwd.c have effect only when used in
77655         gnulib; they have no effect inside glibc proper.
77656         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77657         as alloca isn't used.
77658         (alloca, __alloca): Likewise.
77659         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77660         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77661         unconditionally, as gnulib assumes C89 or better.
77662         Do not include <sys/param.h>.
77663         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77664         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77665         better.
77666         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77667         Include <dirent.h> in a way that is compatible with modern Autoconf.
77668         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77669         New macros, if not already defined.
77670         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77671         Use "_LIBC", not "defined _LIBC", for consistency.
77672         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77673         a mempcpy module.
77674         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77675         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77676         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77677         credit only to Jim Meyering and adjust the copyright dates.
77678         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77679         <stdlib.h>, <unistd.h>, "pathmax.h".
77680         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77681         (INITIAL_BUFFER_SIZE): Remove.
77682         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77683
77684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77687         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77688         Use the _ONCE methods, for efficiency.
77689         Check for fcntl.h.  In test program, include <errno.h>
77690         and <fcntl.h> if available.  Remove old K&R cruft from
77691         test program.  Check for common errors in GNU/Linux,
77692         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77693         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77695         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77696         name accordingly.
77697         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77698         accommodate new getcwd.c.
77699         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77700         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77701         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77702         that's all we need now.
77703
77704 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77705
77706         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77707         argp-parse.c depends on getopt internals, that means we should
77708         always use our getopt, to be on the safe side.
77709         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77710         order not to spoil the result of an eventual previous invocation
77711         of gl_GETOPT_SUBSTITUTE.
77712
77713 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77714
77715         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77716         redefinition warnings. To avoid them, include the defines
77717         in `#if !defined __need_getopt ... #endif'. The only place
77718         where __getopt_argv_const is used is in definitions
77719         of getopt_long and getopt_long_only below, which are as well
77720         protected by `#ifndef __need_getopt'.
77721         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77722         __need_getopt after including <stdio.h> and <unistd.h> These
77723         headers might have defined it.
77724
77725 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77726
77727         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77728
77729 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77732         (futimens): New function, which uses futimes if available.
77733         (futimens, utimens): Support timespec==NULL, with same semantics
77734         as utime and utimens.
77735         * lib/utimens.h (futimens): New decl.
77736
77737 2004-11-23  Jim Meyering  <jim@meyering.net>
77738
77739         * lib/getopt_.h: Remove trailing blanks.
77740
77741 2004-11-23  Jim Meyering  <jim@meyering.net>
77742
77743         * lib/__fpending.c: Add comment.
77744
77745 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * modules/canonicalize (Depends-on): Add xreadlink.
77748         Problem reported by James Youngman.
77749
77750 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77753         New macros.
77754         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77755         optopt): Use them instead of invoking ## directly; otherwise, the
77756         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77757
77758 2004-11-19  Bruno Haible  <bruno@clisp.org>
77759
77760         * lib/strtok_r.c: Move comments from here...
77761         * lib/strtok_r.h: ... to here.
77762
77763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77766         implementations that mishandle size_t overflow.
77767
77768 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77771         might fail.  Problem reported by Yoann Vandoorselaere.
77772         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77773         implementations that mishandle size_t overflow.
77774
77775 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         * modules/canon-host (Depends-on): Add strdup.
77778
77779 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77782
77783 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77784
77785         * lib/canon-host.c: Include "strdup.h".
77786         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77787         Use strdup instead of malloc/strcpy to duplicate strings.
77788
77789         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77790         (human_space_before_unit): New constant.
77791         * lib/human.c (human_readable): Support it.
77792
77793         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77794         (xgetcwd): Set errno correctly when failing.
77795         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77796         the failure is actually due to a PATH_MAX problem.
77797
77798         Further getopt changes to make it more likely that glibc will
77799         buy the changes back.
77800         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77801         (getopt): Use it, so to preserve glibc semantic
77802         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77803         when compiling for libc.
77804         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77805         (getopt_long, getopt_long_only): Use it.
77806
77807         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77808         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77809         (getopt): Argv is now char * const *, as per standard.
77810         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77811         not char *__getopt_argv_const *.
77812         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77813         _getopt_long_only_r): Likewise.
77814         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77815         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77816         _getopt_long_r, _getopt_long_only_r): Likewise.
77817         * lib/getopt_.h (__getopt_argv_const): Remove.
77818         (getopt): Argv is now char * const *, as per standard.
77819
77820         * lib/getdate.y (tORDINAL): New token.
77821         (day, relunit): Allow it for relative times.
77822         (relative_time_table): Use tORDINAL for ordinals.
77823
77824 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77825
77826         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77827         Document that "second" isn't allowed as an ordinal number.
77828
77829 2004-11-16  Jim Meyering  <jim@meyering.net>
77830
77831         * modules/closeout (Depends-on): Add fpending.
77832
77833 2004-11-15  Jim Meyering  <jim@meyering.net>
77834
77835         * lib/closeout.c: Include "__fpending.h" once again.
77836         Include <stdbool.h>.
77837         (close_stdout): Don't fail just because stdout was closed initially,
77838         since some programs don't write to stdout in the normal course of
77839         operation (other than --version and --help), and we don't want this
77840         function to make e.g. `touch file >&-' fail.
77841         But do fail if it was closed and someone has tried to write to it.
77842         E.g., `printf foo >&-' must fail.
77843
77844 2004-11-13  Jim Meyering  <jim@meyering.net>
77845
77846         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77847
77848 2004-11-12  Simon Josefsson  <jas@extundo.com>
77849
77850         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77851         small doc fix is still pending.
77852
77853 2004-11-11  Simon Josefsson  <jas@extundo.com>
77854
77855         * modules/strtok_r: New file.
77856
77857         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77858         strtok_r.
77859
77860 2004-11-11  Simon Josefsson  <jas@extundo.com>
77861
77862         * m4/strtok_r.m4: New file.
77863
77864         * m4/getopt.m4: Replace opterr.
77865
77866 2004-11-11  Simon Josefsson  <jas@extundo.com>
77867
77868         * lib/strtok_r.h, strtok_r.c: New file.
77869
77870 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77871
77872         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77873         of replacing opterr, getopt, etc.  This should handle the
77874         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77875
77876 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77879         we can stop lying to compilers about the constness of argv when we
77880         are compiled outside glibc.
77881         (getopt, getopt_long, getopt_long_only): Use it.
77882         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77883         _getopt_internal, getopt): Likewise.
77884         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77885         _getopt_long_only_r): Likewise.
77886         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77887         _getopt_long_r, _getopt_long_only_r): Likewise.
77888
77889         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77890         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77891         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77892         the other external symbols.
77893         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77894         declaration, since the above renaming now works around collisions.
77895
77896 2004-11-11  Jim Meyering  <jim@meyering.net>
77897
77898         * lib/linebreak.c: Remove trailing blanks.
77899         * lib/alloca_.h: Likewise.
77900         * lib/acosl.c: Likewise.
77901         * lib/euidaccess.c: Likewise.
77902         * lib/allocsa.h: Likewise.
77903
77904 2004-11-10  Simon Josefsson  <jas@extundo.com>
77905
77906         * m4/getaddrinfo.m4: New file.
77907
77908 2004-11-10  Simon Josefsson  <jas@extundo.com>
77909
77910         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77911
77912 2004-11-10  Simon Josefsson  <jas@extundo.com>
77913
77914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77915         getaddrinfo.
77916
77917         * modules/getaddrinfo: New file.
77918
77919 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77922
77923 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77924
77925         * lib/mktime.c (SHR): New macro, which is a portable
77926         substitute for >> that should work even on Crays.
77927         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77928         Problem reported by Mark D. Baushke in
77929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77930         * lib/getdate.y (SHR): Likewise.
77931         (tm_diff): Use it.
77932         * lib/strftime.c (SHR): Likewise.
77933         (tm_diff): Use it.
77934         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77935         quote_these_too, so that right shifts are well defined.  All uses
77936         changed.
77937
77938 2004-11-10  Jim Meyering  <jim@meyering.net>
77939
77940         Ensure that no close failure goes unreported.
77941         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77942         return early when it seems there's nothing to flush.
77943         Don't include __fpending.h.
77944
77945 2004-11-10  Jim Meyering  <jim@meyering.net>
77946
77947         * modules/closeout (Depends-on): Remove fpending.
77948
77949 2004-11-10  Jim Meyering  <jim@meyering.net>
77950
77951         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77952
77953 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77956         gl_FUNC_STRFTIME.
77957         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77958         and AC_REQUIRE when possible, to avoid duplicate checks.
77959         Check for <wchar.h>.
77960
77961 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77964
77965 2004-11-09  Bruno Haible  <bruno@clisp.org>
77966
77967         * m4/sockpfaf.m4: New file.
77968
77969 2004-11-05  Bruno Haible  <bruno@clisp.org>
77970
77971         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77972         Reported by Mark D. Baushke <mdb@cvshome.org>.
77973
77974 2004-11-04  Bruno Haible  <bruno@clisp.org>
77975
77976         2004-09-11  Bruno Haible  <bruno@clisp.org>
77977                 * allocsa.valgrind: New file.
77978         2004-02-06  Bruno Haible  <bruno@clisp.org>
77979                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77980                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77981                 Reported by Christopher Seip <chris.seip@hp.com>.
77982
77983 2004-11-04  Bruno Haible  <bruno@clisp.org>
77984
77985         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77986         (Makefile.am): Distribute it.
77987
77988 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77991         with errno == ERANGE if the buffer is too small.
77992         Problem reported by Mark D. Baushke.
77993
77994 2004-11-03  Albert Chin  <china@thewrittenword.com>
77995             Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77998         equivalent, substitute $ac_type for equivalent type rather than
77999         blindly using uint32_t *always* which won't work if uint32_t is not
78000         available.  Define _UINT32_T to work around typedef of uint32_t if
78001         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78002         2.5.1.
78003
78004 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78005
78006         * m4/jm-macros.m4: Sync from coreutils.
78007         (gl_MACROS): Check for mbrlen, for pathchk.
78008         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78009
78010 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * lib/xreadlink.c (MAXSIZE): New macro.
78013         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78014         size does not exceed MAXSIZE.  Avoid cast.
78015         As suggested by Mark D. Baushke in
78016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78017         if readlink fails with buffer size just under MAXSIZE, try again
78018         with MAXSIZE.
78019
78020 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78023
78024 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78025         and  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78028         (get_date): Overparenthesize to avoid GCC warning.
78029
78030 2004-11-02  Bruno Haible  <bruno@clisp.org>
78031
78032         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78033         returns void.
78034
78035 2004-11-02  Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78038         function returns void.
78039
78040 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78043         fflush_unlocked, flockfile, funlockfile, funlockfile,
78044         fputs_unlocked, putc_unlocked.
78045
78046 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78047
78048         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78049         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78050         already declared.
78051
78052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * modules/getdate (Files): Add doc/getdate.texi.
78055         (Depends-on): Add setenv, xalloc.
78056
78057 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * lib/getdate.y: Add support for TZ="foo" within a date string.
78060         Fix some bugs near time_t boundaries.  Reject dates with
78061         out-of-range components, e.g., "Sept 31".
78062         Include <stdlib.h>, "setenv.h", "xalloc.h".
78063         (ISDIGIT_LOCALE): Remove; unused.
78064         Note that the TZ and time functions used here are not reentrant.
78065         (mktime_ok, get_tz): New functions.
78066         (TZBUFSIZE): New constant.
78067         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78068         This requires that we sometimes generate our own TZ="XXX..." setting.
78069
78070 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78071
78072         * doc/getdate.texi: New file, from coreutils with modifications for
78073         the new TZ parsing.
78074
78075 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78076
78077         * lib/mktime.c (not_equal_tm): Remove redundant check.
78078
78079 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         * modules/regex (lib_SOURCES): Add regex.c.
78082         Reported by James Youngman in
78083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78084
78085 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         * lib/getdate.y: Use Bison 1.875 features, and some minor
78088         code cleanups.  This change does not affect semantics.
78089         Don't include <stdlib.h>; no longer needed.
78090         Don't include unlocked-io.h; only the "#if TEST" code uses
78091         stdio, and performance isn't crucial there.
78092         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78093         Bison 1.875 features as described below.
78094         All uses of "PC." replaced by "pc->".
78095         (YYSTYPE): Add a forward declaration.
78096         (yylex, yyerror): Use full prototypes in forward decls.
78097         Use "%pure-parser" rather than obsolescent "%pure_parser".
78098         Use %parse-param and %lex-param instead of obsolescent
78099         YYPARSE_PARAM and YYLEX_PARAM.
78100         (meridian_table, month_and_day_table, time_units_table,
78101         relative_time_table, time_zone_table, military_table,
78102         lookup_zone, lookup_word, get_date):
78103         Use NULL instead of 0 where appropriate.
78104         (to_hour): Avoid abort (), to avoid a dependency on
78105         stdlib.h.
78106         (yyerror, yylex): Now accepts parser_control * arg.
78107         (main) [TEST]: Use '\0' rather than 0 for char.
78108
78109 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78112
78113 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78114
78115         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78116         It's now the caller's responsibility to handle the case where
78117         !HAVE_GETPAGESIZE && !defined getpagesize.
78118
78119         * lib/mktime.c (leapyear): Arg is long int, not int.
78120
78121 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78124
78125 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78126
78127         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78128         missing.  Problem reported by James Youngman.
78129
78130 2004-10-16  Simon Josefsson  <jas@extundo.com>
78131
78132         * gnulib-tool: Fix comments.  Fix parse problem.
78133         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78134
78135 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78138         implementation of getopt_long.  Problem reported by Alexander Taler in:
78139         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78140
78141 2004-10-15  Bruno Haible  <bruno@clisp.org>
78142
78143         * gnulib-tool: Untabify. Initialize supplied_libname.
78144         (func_usage): More homogenous output.
78145         (func_modules_transitive_closure, func_modules_to_filelist,
78146         func_emit_lib_Makefile_am): New functions.
78147         (func_import): New function, extracted from big case statement. Use
78148         func_get_license, func_modules_transitive_closure,
78149         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78150         opt_lgpl. Don't use test -a, as it's not portable.
78151         (func_create_testdir): Use func_modules_transitive_closure,
78152         func_modules_to_filelist, func_emit_lib_Makefile_am.
78153
78154 2004-10-15  Bruno Haible  <bruno@clisp.org>
78155
78156         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78157
78158 2004-10-15  Bruno Haible  <bruno@clisp.org>
78159
78160         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78161         the portions belonging to each module.
78162         Suggested by Derek Robert Price <derek@ximbiot.com>.
78163
78164 2004-10-12  Simon Josefsson  <jas@extundo.com>
78165
78166         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78167         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78168         to real functions.
78169
78170 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78171
78172         * modules/vsnprintf: New file.
78173
78174 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78175
78176         * m4/vsnprintf.m4: New file.
78177
78178 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78179
78180         * lib/vsnprintf.h: New file.
78181         * lib/vsnprintf.c: New file.
78182
78183 2004-10-11  Bruno Haible  <bruno@clisp.org>
78184
78185         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78186         vsnprintf.
78187
78188 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78189
78190         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78191
78192 2004-10-07  Bruno Haible  <bruno@clisp.org>
78193
78194         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78195         fits into the provided buffer.
78196
78197 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78198
78199         * lib/diacrit.c, diacrit.h: Add GPL notice.
78200
78201         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78202         notice.
78203         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78204         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78205         This avoids a potential constant-folding bug.
78206
78207 2004-10-05  Bruno Haible  <bruno@clisp.org>
78208
78209         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78210         for the declaration of strsep.
78211
78212 2004-10-05  Bruno Haible  <bruno@clisp.org>
78213
78214         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78215
78216 2004-10-04  Simon Josefsson  <jas@extundo.com>
78217
78218         * modules/memmem: New file.
78219         * tests/test-memmem.c: New file.
78220         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78221
78222 2004-10-04  Simon Josefsson  <jas@extundo.com>
78223
78224         * m4/memmem.m4: New file.
78225
78226 2004-10-04  Simon Josefsson  <jas@extundo.com>
78227
78228         * lib/memmem.h: New file.
78229         * lib/memmem.c: New file, taken from glibc.
78230
78231 2004-10-04  Simon Josefsson  <jas@extundo.com>
78232
78233         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78234         '#ifdef USE_UNLOCKED_IO'.
78235
78236 2004-10-04  Simon Josefsson  <jas@extundo.com>
78237
78238         * config/srclist.txt: Add memmem from glibc.
78239
78240 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78241
78242         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78243
78244         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78245         modules/exclude, modules/getdate, modules/getline,
78246         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78247         modules/getusershell, modules/linebuffer, modules/md5,
78248         modules/mountlist, modules/posixtm, modules/readtokens,
78249         modules/readutmp, modules/regex, modules/sha1,
78250         modules/version-etc, modules/yesno:
78251         Remove dependency on unlocked-io.
78252
78253 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78256
78257         * m4/unlocked-io.m4: Add copyright notice.
78258         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78259
78260 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78263         * lib/xmalloc.c (xmemdup): Likewise.
78264         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78265         XFREE): Remove these long-obsolescent macros.
78266         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78267         * lib/xstrdup.c: Remove.
78268
78269         * lib/regex.c (re_comp): Cast gettext return value to char *,
78270         Problem reported by Martin Neitzel via Mark D. Baushke.
78271
78272 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78275         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78276         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78277         regex.c, sha1.c, version-etc.c, yesno.c:
78278         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78279         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78280         the includer's responsibility.
78281
78282         Sync from coreutils.
78283
78284         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78285         points to the start of a string, as the C Standard says the
78286         resulting behavior is undefined.
78287
78288         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78289         simple -> simple_backups, numbered_existing ->
78290         numbered_existing_backups, numbered -> numbered_backups
78291         to avoid shadowing problems.  All uses changed.
78292         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78293         * lib/backupfile.c (check_extension, numbered_backup):
78294         Rename locals to avoid shadowing 'basename'.
78295         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78296         once.
78297
78298         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78299         * lib/.cvsignore: Add getopt.h.
78300
78301 2004-10-04  Bruno Haible  <bruno@clisp.org>
78302
78303         * modules/README: New file.
78304         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78305         not a module.
78306
78307 2004-10-02  Jim Meyering  <jim@meyering.net>
78308
78309         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78310
78311 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78312
78313         * modules/strsep: New file.
78314
78315 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78316
78317         * m4/strsep.m4: New file.
78318
78319 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78320
78321         * lib/strsep.h: New file.
78322         * lib/strsep.c: New file.
78323
78324 2004-10-01  Simon Josefsson  <jas@extundo.com>
78325
78326         * lib/snprintf.c (snprintf): Handle size==0.
78327
78328 2004-10-01  Simon Josefsson  <jas@extundo.com>
78329             Bruno Haible  <bruno@clisp.org>
78330
78331         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78332         (snprintf): Declare 'args'.
78333
78334 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * lib/snprintf.c: Remove comments as to why each header is needed.
78337
78338 2004-10-01  Bruno Haible  <bruno@clisp.org>
78339
78340         * MODULES.html.sh: Add strsep.
78341
78342 2004-09-30  Simon Josefsson  <jas@extundo.com>
78343
78344         * modules/snprintf: New file.
78345
78346 2004-09-30  Simon Josefsson  <jas@extundo.com>
78347
78348         * m4/snprintf.m4: New file.
78349
78350 2004-09-30  Simon Josefsson  <jas@extundo.com>
78351
78352         * lib/snprintf.h, lib/snprintf.c: New files.
78353
78354 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78355
78356         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78357         (hol_entry_help): Never translate an empty string.
78358         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78359         * lib/argp.h (OPTION_NO_TRANS): New option.
78360
78361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78362
78363         * modules/argp (Maintainer): Replace Simon Josefsson
78364         by Sergey Poznyakoff.
78365
78366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78367
78368         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78369         changes merged back into glibc.
78370
78371 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78372
78373         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78374
78375 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78376
78377         * lib/xvasprintf.c: Include xalloc.h.
78378         (xvasprintf): Use xalloc_die, not xmalloc_die.
78379
78380 2004-09-29  Bruno Haible  <bruno@clisp.org>
78381
78382         * modules/alloca-opt: New file, derived from modules/alloca.
78383         * modules/allocsa: Depend on alloca-opt instead of alloca.
78384         * modules/setenv: Likewise.
78385         * modules/vasnprintf: Likewise.
78386         * MODULES.html.sh: Add alloca-opt.
78387
78388 2004-09-28  Simon Josefsson  <jas@extundo.com>
78389
78390         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78391         LGPL, and to replace license template from GPL to LGPL.
78392
78393 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * modules/dummy: Change license to LGPL.
78396
78397 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78400
78401 2004-09-24  Simon Josefsson  <jas@extundo.com>
78402
78403         * modules/minmax (License): Change from GPL to LGPL.
78404
78405 2004-09-23  Simon Josefsson  <jas@extundo.com>
78406
78407         * gnulib-tool (--import): Typo.
78408
78409 2004-09-23  Simon Josefsson  <jas@extundo.com>
78410
78411         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78412
78413 2004-09-22  Bruno Haible  <bruno@clisp.org>
78414
78415         * modules/*: Add 'License' field.
78416         * gnulib-tool: Accept --extract-license option.
78417         (func_get_license): New function.
78418
78419 2004-09-21  Bruno Haible  <bruno@clisp.org>
78420
78421         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78422         Reported by Simon Josefsson.
78423
78424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78427         gl_AC_TYPE_LONG_LONG.
78428
78429 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78432
78433 2004-09-18  Simon Josefsson  <jas@extundo.com>
78434         and  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78437         calls with autoreconf.  Define GL_LIB.
78438
78439 2004-09-14  Karl Berry  <karl@gnu.org>
78440
78441         * config/srclist.txt: unsync setenv.c, sigh.
78442
78443 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78446         Problem reported by Bruno Haible in:
78447         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78448
78449 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78450
78451         * config/srclist.txt: Comment out argp-pvh.c.
78452
78453 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78456         in case some system header has #define'd it.  Problem reported by
78457         Soeren D. Schulze in
78458         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78459
78460 2004-09-09  Karl Berry  <karl@gnu.org>
78461
78462         * regex.[ch]: delete from the root.  These were supposed to be
78463                 synced with emacs cvs, but this has not happened for about
78464                 a year, and anyway nothing else uses emacs regex.[ch].
78465                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78466                 lib/regex[.ch] is untouched.
78467
78468 2004-09-09  Bruno Haible  <bruno@clisp.org>
78469
78470         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78471
78472 2004-09-09  Bruno Haible  <bruno@clisp.org>
78473
78474         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78475         modifications.
78476         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78477
78478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78479
78480         * modules/xvasprintf: New file.
78481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78482
78483 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78484
78485         * lib/xvasprintf.h: New file.
78486         * lib/xvasprintf.c: New file.
78487         * lib/xasprintf.c: New file.
78488
78489 2004-09-08  Bruno Haible  <bruno@clisp.org>
78490
78491         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78492
78493 2004-09-08  Bruno Haible  <bruno@clisp.org>
78494
78495         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78496         length is > INT_MAX.
78497         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78498         more.
78499
78500 2004-09-08  Bruno Haible  <bruno@clisp.org>
78501
78502         * lib/stdint_.h: New file, taken from GNU clisp.
78503
78504 2004-09-08  Bruno Haible  <bruno@clisp.org>
78505             Oskar Liljeblad  <oskar@osk.mine.nu>
78506
78507         * modules/stdint: New file.
78508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78509
78510 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         Import from coreutils.
78513         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78514         strings on unbounded length.  alloca's performance benefits aren't
78515         that important here.
78516         (V_STRDUP): Remove.
78517         (parse_with_separator): New function, with most of the internals
78518         of the old parse_user_spec.  Allow user to omit both user and group,
78519         for compatibility with FreeBSD.
78520         Clone only the user name, not the entire spec.
78521         Do not set *uid, *gid unless entirely successful.
78522         Avoid memory leak in some failing cases.
78523         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78524         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78525         (parse_user_spec): Rewrite to use parse_with_separator.
78526
78527 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78528
78529         * modules/userspec: Don't depend on alloca.
78530
78531 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78532
78533         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78534
78535 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78536
78537         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78538         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78539         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78540
78541 2004-08-16  Simon Josefsson  <jas@extundo.com>
78542
78543         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78544         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78545         Add --dry-run for --import.
78546         Let user provided command line parameters override configure.ac
78547         settings.
78548
78549 2004-08-12  Simon Josefsson  <jas@extundo.com>
78550
78551         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78552         as discussed with Paul Eggert in threads rooted at
78553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78554         and
78555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78556         Before, the test was empty, and relied on ELIDE_CODE in source
78557         code.)
78558         (gl_PREREQ_GETOPT): New macro.
78559         (gl_GETOPT): Use them.
78560
78561 2004-08-12  Simon Josefsson  <jas@extundo.com>
78562
78563         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78564         * lib/getopt_.h: Renamed from getopt.h.
78565
78566 2004-08-12  Simon Josefsson  <jas@extundo.com>
78567
78568         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78569         Change default library name from libfoo to libgnu.
78570         Now, if you have a configure.ac that says:
78571                 gl_SOURCE_BASE(gl)
78572                 gl_M4_BASE(gl/m4)
78573                 gl_MODULES(error getopt etcetera)
78574                 gl_INIT
78575         you can import all you need by running:
78576                 ../gnulib/gnulib-tool --import
78577
78578         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78579         (Makefile.am): Rewrite, use logic from argz.
78580         (Include): Use <getopt.h> instead of "getopt.h".
78581
78582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * modules/argp (Files): Add m4/unlocked-io.m4.
78585         (Depends-on): Add extensions.
78586
78587 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78588
78589         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78590         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78591         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78592         Check for program_invocation_name, program_invocation_short_name,
78593         flockfile, funlockfile, features.h, _getopt_long_only_r.
78594
78595 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78596
78597         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78598         its complicated substitute.
78599         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78600         and program_invocation_name.
78601         (__argp_basename) [!_LIBC]: Remove; the only use was
78602         replaced by its body.
78603         (__argp_short_program_name): Change condition from
78604         !defined __argp_short_program_name to
78605         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78606         to match argp-namefrob.h.
78607         (__argp_failure): Don't assume strerror_r returns char *.
78608         * lib/argp-parse.c (N_): Define unconditionally.
78609         (argp_default_options): Fill out initializers with 0 to avoid
78610         gcc warnings.
78611
78612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78615         getopt1.c.
78616
78617 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         Merge from coreutils.
78620
78621         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78622
78623         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78624         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78625
78626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78627
78628         Merge from coreutils.
78629
78630         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78631         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78632         for Reliant Unix 5.43.
78633
78634         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78635         (union fooround): Use uintmax_t, not long int.
78636         The rest is a merge from libc:
78637         [defined _LIBC]: Include <shlib-compat.h>.
78638         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78639
78640         * lib/settime.c (settime): Recode to avoid warning with
78641         Sun Forte C 6U2.
78642
78643         * lib/strverscmp.c: Convert to UTF-8.
78644
78645 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78646
78647         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78648         m4/uintmax_t.m4.
78649
78650 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * modules/xalloc-die: New file.
78653         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78654
78655         * modules/md5 (Files): Add m4/uint32_t.m4.
78656         * modules/sha1: Renamed from modules/sha.
78657         (Files):
78658         Rename lib/sha.h to lib/sha1.h.
78659         Rename lib/sha.c to lib/sha1.c.
78660         Rename m4/sha.m4 to m4/sha1.m4.
78661         (lib_SOURCES): Likewise.
78662         (configure.ac): Rename gl_SHA to gl_SHA1.
78663         (Include): sha.h -> sha1.h.
78664
78665 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78668         * m4/sha1.m4: Renamed from sha.m4.
78669         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78670
78671 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         * lib/obstack.h (obstack_empty_p):
78674         Don't assume that chunk->contents is suitably aligned.
78675         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78676         Likewise. Problem reported by Benno in
78677         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78678
78679         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78680         readable.  This could be improved further but it'd take some work.
78681
78682 2004-08-08  Simon Josefsson  <jas@extundo.com>
78683
78684         * modules/xgethostname (Depends-on): Remove exit and error (not
78685         used).
78686
78687         * modules/getpass-gnu: Add getpass.h.
78688         (Depends-on): Add stdbool.
78689         * modules/getpass: Add getpass.h.
78690
78691 2004-08-08  Simon Josefsson  <jas@extundo.com>
78692
78693         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78694         Check getpass declaration.
78695
78696 2004-08-08  Simon Josefsson  <jas@extundo.com>
78697
78698         * lib/xgethostname.c: Don't include error.h (not used).
78699
78700         * lib/getpass.h: Add.
78701         * lib/getpass.c: Include getpass.h first.
78702
78703 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * lib/xalloc-die.c: New file.
78706         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78707         All uses removed.
78708         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78709         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78710         xalloc-die.c.
78711         (_, N_, xalloc_die): Move to xalloc-die.c.
78712         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78713         so that we needn't mess with xalloc_msg_memory_exhausted.
78714
78715         * lib/sha1.h: Renamed from sha.h.
78716         (SHA1_H): Renamed from _SHA_H.
78717         (sha1_ctx): Renamed from sha_ctx.
78718         (sha1_init_ctx): Renamed from sha_init_ctx.
78719         (sha1_process_block): Renamed from sha_process_block.
78720         (sha1_process_bytes): Renamed from sha_process_bytes.
78721         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78722         (sha1_read_ctx): Renamed from sha_read_ctx.
78723         (sha1_stream): Renamed from sha_stream.
78724         (sha1_buffer): Renamed from sha_buffer.
78725         * lib/sha1.c: Likewise; renamed from sha.c.
78726         Do not include <sys/types.h>.
78727         Include <stddef.h> rather than <stdlib.h>.
78728
78729 2004-08-08  Bruno Haible  <bruno@clisp.org>
78730
78731         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78732         FILESYSTEM_PREFIX_LEN.
78733         * lib/progreloc.c: Likewise.
78734         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78735
78736 2004-08-06  Simon Josefsson  <jas@extundo.com>
78737
78738         * modules/progname (Depends-on): Don't depend on stdbool.
78739
78740 2004-08-06  Simon Josefsson  <jas@extundo.com>
78741
78742         * modules/getsubopt: New file.
78743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78744         getsubopt.
78745
78746 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         More merge from coreutils.
78749
78750         * m4/utimens.m4, m4/utimecmp.m4: New files.
78751         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78752         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78753         prereq.m4, sha.m4: Import changes from coreutils.
78754
78755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78756
78757         More merge from coreutils.
78758         * modules/raise, modules/readtokens0, modules/utimens:
78759         * modules/utimecmp, module/xnanosleep: New files.
78760         * modules/strftime: Add lib/strftime.h.
78761         Change include from <time.h> to "strftime.h".
78762         * modules/yesno: Add lib/yesno.h.
78763         * modules/backupfile: Remove lib/addext.c.
78764         * modules/euidaccess: Add stat-macros.h.
78765         * modules/canonicalize, modules/euidaccess,
78766         modules/filemode, modules/lchown, modules/makepath,
78767         modules/rmdir, modules/stat: Likewise.
78768
78769 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         Merge from tar.
78772         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78773         SIZE_MAX is a valid preprocessor constant.
78774         (__argp_basename): Change from "#ifndef _LIBC"
78775         to "#ifndef __argp_short_program_name", so that
78776         we don't compile these functions for tar.
78777
78778         More merges from coreutils.
78779         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78780         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78781         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78782         * lib/addext.c: Remove; no longer needed.
78783         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78784         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78785         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78786         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78787         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78788         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78789         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78790         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78791         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78792         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78793         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78794         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78795         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78796         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78797         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78798         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78799         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78800         Import changes from coreutils.
78801
78802 2004-08-05  Simon Josefsson  <jas@extundo.com>
78803
78804         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78805
78806 2004-08-05  Simon Josefsson  <jas@extundo.com>
78807
78808         * m4/getsubopt.m4: New file.
78809
78810 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         Merge from coreutils.
78813
78814         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78815         * m4/getcwd-path-max.m4: New files.
78816
78817         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78818         FILESYSTEM_PREFIX_LEN ->
78819         FILE_SYSTEM_PREFIX_LEN.
78820         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78821         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78822         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78823         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78824
78825         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78826         prerequisite modules now handle the DOS stuff.
78827         Don't check for unistd.h.
78828
78829 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78830
78831         Merge from coreutils.
78832
78833         * lib/.gdb-history: Remove; this doesn't belong here.
78834
78835         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78836         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78837         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78838         * lib/getcwd.c: New files.
78839
78840         * lib/dirname.h: Include <stdbool.h>.
78841         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78842         for consistency with POSIX terminology.  All uses changed.
78843         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78844         (strip_trailing_slashes): Use bool for booleans.
78845         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78846
78847         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78848         sometimes returns a positive errno value even when it succeeds.
78849         (print_errno_message) [!LIBC]: Fall back on strerror if
78850         __strerror_r fails.
78851
78852         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78853         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78854         (longest_relative_suffix): New function.
78855         (path_concat): Use it.  Assume first argument is not NULL.
78856         Port to DOS.  Omit redundant separators.
78857         Report an error instead of returning NULL.
78858         Use mempcpy instead of memcpy.
78859         (xpath_concat): Remove: not declared or used.
78860
78861         * lib/same.h: Include <stdbool.h>
78862         (same_name): Return bool, not int.
78863         * lib/same.c (same_name): Likewise.
78864         (errno): Don't declare; we assume C89 or better now.
78865
78866         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78867         if not already defined.
78868
78869         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78870         * lib/dup-safer.c (errno): Likewise.
78871
78872 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78873
78874         Merge from coreutils.
78875         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78876         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78877         * modules/path-concat: Don't depend on strdup.
78878
78879 2004-08-03  Simon Josefsson  <jas@extundo.com>
78880
78881         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78882         * lib/progname.h: Don't include stdbool.h.
78883
78884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78887         * MODULES.html.sh (func_all_modules): Remove fatal.
78888
78889 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78890
78891         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78892
78893 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78894
78895         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78896         working.
78897
78898 2004-08-02  Simon Josefsson  <jas@extundo.com>
78899
78900         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78901         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78902         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78903
78904 2004-08-01  Simon Josefsson  <jas@extundo.com>
78905
78906         * lib/xgetdomainname.c: Include stdlib.h, for free().
78907
78908 2004-07-19  Bruno Haible  <bruno@clisp.org>
78909
78910         * MODULES.html.sh (func_all_modules): Add dummy.
78911
78912 2004-07-16  Simon Josefsson  <jas@extundo.com>
78913
78914         * modules/dummy: New file.
78915
78916 2004-07-16  Simon Josefsson  <jas@extundo.com>
78917
78918         * lib/dummy.c: New file.
78919
78920 2004-07-16  Bruno Haible  <bruno@clisp.org>
78921
78922         * lib/backupfile.h: Add extern "C" for C++.
78923         * lib/closeout.h: Likewise.
78924         * lib/copy-file.h: Likewise.
78925         * lib/findprog.h: Likewise.
78926         * lib/full-write.h: Likewise.
78927         * lib/pathname.h: Likewise.
78928         * lib/progname.h: Likewise.
78929         * lib/stpcpy.h: Likewise.
78930         * lib/stpncpy.h: Likewise.
78931         * lib/strcase.h: Likewise.
78932         * lib/strstr.h: Likewise.
78933         * lib/xalloc.h: Likewise.
78934
78935         * lib/mbswidth.h: Add extern "C" for C++.
78936         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78937
78938 2004-07-13  Robert Millan  <robertmh@gnu.org>
78939
78940         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78941
78942 2004-07-09  Simon Josefsson  <jas@extundo.com>
78943
78944         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78945         failed without this.)
78946
78947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * modules/chown (Files): Add lib/fchown-stub.c, since
78950         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78951
78952 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * lib/fchown-stub.c: New file.
78955
78956 2004-06-24  Jim Meyering  <jim@meyering.net>
78957
78958         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78959
78960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         * modules/argz: Omit "#include".
78963
78964         * MODULES.html.sh (func_all_modules): Add calloc, to match
78965         2004-06-01 addition of calloc module.
78966
78967 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * m4/argz.m4: New file, which is autoupdated from libtool.
78970
78971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78974         libtool.
78975
78976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * config/srclist-update: Don't insist on "USA." before the
78979         close-comment, as libtool omits the period and puts the */ on a
78980         separate line.
78981         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78982         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78983
78984 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78985
78986         * modules/argz: New file.
78987         * MODULES.html.sh (func_all_modules): Add argz.
78988
78989 2004-06-12  Jim Meyering  <jim@meyering.net>
78990         and  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * modules/hash (Files): Add lib/xalloc.h.
78993         * modules/pipe (Depends-on): Add wait-process.
78994         * modules/stat (Depends-on): Add xalloc.
78995         * modules/userspec (Files): Add lib/userspec.h.
78996         * modules/xstrto
78997
78998         Upgrade from gettext-0.13.
78999         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79000         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79001         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79002
79003 2004-06-10  Jim Meyering  <jim@meyering.net>
79004
79005         * lib/calloc.c: New file.
79006
79007 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * lib/getdate.y (yylex): Allow space between sign and number.
79010         Problem reported by Dan Jacobson.
79011
79012 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         Merge from coreutils CVS.
79015
79016         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79017         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79018         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79019         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79020         xstrtol.m4: Fix copyright date and/or serial number.
79021
79022         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79023         See if we need an fchown replacement.
79024         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79025         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79026         and use the replacement function if we detect either defect.
79027
79028         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79029         gl_UTIMECMP.
79030
79031 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79032         and  Jim Meyering  <jim@meyering.net>
79033
79034         Merge from coreutils CVS.
79035
79036         * lib/stat-macros.h: New file, with contents from file-type.h
79037         and coreutils' system.h.
79038         * lib/file-type.c: Include "stat-macros.h".
79039         * lib/file-type.h (file_type): Move all macro definitions to new file,
79040         stat-macros.h.
79041
79042         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79043         Wrap old code with this conditional.
79044         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79045         function that does not dereference symlinks.
79046         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79047
79048         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79049         dependency problems.
79050         (xreadlink): Accept new arg SIZE, for efficiency.
79051         All decls and uses changed.
79052         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79053
79054         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79055         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79056
79057         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79058         sysexits.h.
79059
79060 2004-06-01  Jim Meyering  <jim@meyering.net>
79061
79062         * m4/calloc.m4: New file.
79063
79064 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79067         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79068         Also, fix a typo in a diagnostic.
79069
79070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79073         or AC_FUNC_REALLOC.
79074
79075 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79078         macros to be defined.
79079         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79080         the allocator returns NULL because the requested size is zero.
79081
79082 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79085         var.  Add comment explaining why libc still defines it.  This
79086         merges the following patch from glibc:
79087         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79088
79089 2004-05-20  Andreas Schwab  <schwab@suse.de>
79090
79091         * m4/free.m4: Replace free if it not known to work, not the other
79092         way round.
79093
79094 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79097         present in glibc since revision 1.1 of this file.
79098         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79099         obstack_alignment_mask, obstack_alloc, obstack_base,
79100         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79101         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79102         obstack_grow0, obstack_init, obstack_int_grow,
79103         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79104         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79105         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79106         nonexistent functions.
79107
79108 2004-05-18  Karl Berry  <karl@gnu.org>
79109
79110         * config/srclist.txt: break link for vasnprintf.c.
79111
79112 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79113
79114         Port obstack to the AS/400, where pointers are 16 bytes wide and
79115         you cannot cast an integer to a valid pointer.  This patch is
79116         currently waiting to be integrated into glibc; see
79117         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79118
79119         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79120         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79121         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79122         (struct obstack): temp member is now a union of a pointer and
79123         an integer, instead of an integer.  All integer uses changed.
79124         This does not affect the physical layout of struct obstack,
79125         except on hosts (like the AS/400) where the size or alignment of
79126         void * is greater than that of ptrdiff_t.
79127         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79128         __STDC__)]: Store temporary in pointer member of union, not
79129         integer member.
79130         * lib/obstack.c: Include <stddef.h>, for offsetof.
79131         (struct fooalign): Remove; it doesn't need a name.
79132         (union fooround): Change double to long double, and add void *.
79133         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79134         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79135         not a macro.  Hence the values are always int; so remove all
79136         casts-to-int in uses.
79137
79138 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79141         we can get this patch merged into glibc.
79142
79143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79144             Paul Eggert  <eggert@cs.ucla.edu>
79145
79146         * m4/argp: Depend on alloca.
79147
79148 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79149             Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79152         freecoding.
79153
79154 2004-05-17  Bruno Haible  <bruno@clisp.org>
79155
79156         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79157         precision that consists of a '.' followed by an empty digit string.
79158         Patch by Tor Lillqvist <tml@iki.fi>.
79159
79160 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79161
79162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79163         for backward compatibility with older code.  We need our own
79164         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79165         it under some other name, and our alloca.h will define it.
79166
79167 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79168             Derek Price  <derek@ximbiot.com>
79169
79170         * lib/alloca.c: Include <alloca.h>, to get our interface.
79171         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79172         include <alloca.h> first.  Use C89 prototype for alloca; this
79173         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79174         Use #elif for simplicity, since we can assume C89 now.
79175         Don't try to source the system alloca.h since it will not be found
79176         and to prevent recursively including its replacement.
79177         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79178         * lib/regex.c: Likewise.
79179
79180 2004-05-16  Derek Price  <derek@ximbiot.com>
79181             Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         getline cleanup.  This changes the getndelim2 API: both order of
79184         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79185         no delimiter).
79186
79187         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79188         interface does that.
79189         (getline): Always use getdelim, so that we don't have two
79190         copies of this code.
79191         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79192         if available.
79193         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79194         (GETNDELIM2_MAXIMUM): New macro.
79195         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79196         instead of the old practice of delim2==0.  All callers changed.
79197         Return -1 on overflow, instead of returning junk.
79198         Do not set *linesize unless allocation succeeds.
79199         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79200         that we include sys/types.h.
79201         * lib/getnline.h: Likewise.
79202         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79203         (getndelim2): Reorder arguments.
79204         * lib/getnline.c (getnline, getndelim):
79205         Don't discard the NMAX argument.
79206         (getnline): Invoke getndelim, to avoid code duplication.
79207         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79208         of (size_t) -1 by callers of the getnline family.
79209
79210 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79211
79212         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79213         Check for gettimeofday.
79214         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79215         Check for settimeofday, stime.
79216
79217 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79218
79219         * lib/nanosleep.c (suspended): Change its type from int to
79220         sig_atomic_t volatile.
79221         (first_call): Make it private to rpl_nanosleep, and have it
79222         be zero initially as that's a bit faster.
79223         (my_usleep): Round up fractional times instead of truncating them,
79224         as this is the usual meaning for 'sleep'.
79225
79226         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79227         doesn't work.
79228         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79229         (ENOSYS): Define if not defined.
79230         (settime): Fall back on stime if it exists and settimeofday fails.
79231         But don't bother with fallbacks if a method fails with errno == EPERM.
79232
79233 2004-05-11  Jim Meyering  <jim@meyering.net>
79234
79235         Prior to this change, the save_cwd caller required read access to the
79236         current directory on most systems (ones with the fchdir function).
79237
79238         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79239         fails, try write-only, and finally, resort to using xgetcwd.
79240
79241 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79242
79243         * lib/obstack.c, obstack.h: Import changes from libc.
79244
79245 2004-04-28  Bruno Haible  <bruno@clisp.org>
79246
79247         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79248         also implicitly appends .exe to executables.
79249         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79250         accepts Windows pathnames.
79251         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79252         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79253         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79254         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79255         Reported by Derek Robert Price <derek@ximbiot.com>.
79256
79257 2004-04-21  Karl Berry  <karl@gnu.org>
79258
79259         * config/srclist.txt (localcharset.c): break sync.
79260
79261 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79262
79263         * m4/host-os.m4: Add a copyright notice.
79264
79265 2004-04-20  Jim Meyering  <jim@meyering.net>
79266
79267         Change UTILS_ to gl_ in AC_DEFINE'd names.
79268         Change utils_- and jm_-prefixed variables, too.
79269         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79270         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79272
79273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79274         Don't emit trailing blanks.
79275         Also rename jm_-prefixed variables to have gl_ prefix.
79276
79277         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79278         Also rename jm_-prefixed variables to have gl_ prefix.
79279
79280         * m4/jm-macros.m4: Reflect the renamings.
79281         * m4/prereq.m4: Likewise.
79282
79283 2004-04-20  Jim Meyering  <jim@meyering.net>
79284
79285         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79286         memory.
79287
79288 2004-04-20  Jim Meyering  <jim@meyering.net>
79289             Bruno Haible  <bruno@clisp.org>
79290
79291         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79292         memory when realloc fails.
79293
79294 2004-04-19  Jim Meyering  <jim@meyering.net>
79295
79296         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79297         now that readutmp.c may call `free (0)'.
79298
79299 2004-04-19  Bruno Haible  <bruno@clisp.org>
79300
79301         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79302         * m4/inttypes_h.m4: Likewise.
79303         * m4/stdint_h.m4: Likewise.
79304         * m4/intmax_t.m4: Likewise.
79305         * m4/uintmax_t.m4: Likewise.
79306
79307 2004-04-18  Jim Meyering  <jim@meyering.net>
79308
79309         * m4/prereq.m4: Don't forbid jm_ prefix.
79310
79311         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79312         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79313         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79314         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79315         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79316         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79317         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79318         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79319         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79320         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79321         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79322         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79323         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79324         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79325         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79326         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79327         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79328         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79329         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79330
79331 2004-04-18  Jim Meyering  <jim@meyering.net>
79332
79333         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79334         failure, don't leak memory and do call END_UTMP_ENT.
79335
79336 2004-04-16  Jim Meyering  <jim@meyering.net>
79337
79338         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79339         coreutils' stat program.
79340         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79341
79342 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79343
79344         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79345         C89.
79346         (CHAR_BIT): Remove, since we assume C89.
79347         Include <stdint.h> if available, as per current Autoconf CVS advice.
79348
79349 2004-03-31  Jim Meyering  <jim@meyering.net>
79350
79351         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79352         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79353         * m4/xalloc.m4: Likewise.
79354
79355 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79356
79357         Merge from coreutils.
79358
79359         * m4/inttostr.m4: New file.
79360         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79361         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79362         Require gl_CLOCK_TIME.
79363         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79364
79365 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79366
79367         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79368         not bool, to be more consistent with Unix conventions.
79369         Suggested by Bruno Haible.
79370
79371         Merge from coreutils.
79372
79373         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79374         * lib/umaxtostr.c: New files.
79375
79376         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79377         the usual <time.h> dance.
79378         (get_date): Change signature to support fractional time stamps.
79379         All callers changed.
79380         * lib/getdate.y: Include "getdate.h" first, as we can now
79381         assume C89 and don't need to worry about 'const'.
79382         Similarly, include "unlocked-io.h" near start, not in middle.
79383         Include <limits.h>.
79384         (textint.value): Use long int rather than int.
79385         (textint.digits): Use size_t rather than int.
79386         (BILLION, LOG10_BILLION): New constants.
79387         (parser_control): New member rel_ns.  Members day_ordinal,
79388         time_zone, month, day, hour, minutes, rel_year, rel_month,
79389         rel_day, rel_hour, rel_minutes, rel_seconds
79390         are now long int, not int.  Member seconds is now struct timespec,
79391         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79392         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79393         not int.
79394         (%union.intval): Now long int, not int.
79395         New member timespec.
79396         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79397         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79398         (spec): Now is a timespec or an item list.
79399         (timespec, items): New nonterminals.
79400         (time, rel, relunit, number, get_date):
79401         Add support for fractional seconds.
79402         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79403         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79404         (to_hour): First arg is now long int, not int.
79405         (to_year): Returns long int, not int.
79406         Don't treat year -70 like 70.
79407         (tm_diff): Returns long int, not int.
79408         (lookup_word): Use bool instead of int when appropriate.
79409         (yylex): Use size_t for count, not int.
79410         Detect overflow when parsing large integer constants.
79411         Add support for fractions.
79412         (get_date): Make pointers 'const' if possible.
79413         Use more-portable code to detect integer overflow.
79414         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79415         Don't use ctime; it's not reliable if the year has >4 digits.
79416
79417         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79418         This is for compatibility with BSD.
79419
79420         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79421         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79422         From coreutils' system.h.
79423
79424         * lib/userspec.c: Don't include "posixver.h".
79425         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79426         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79427         compatible extension.  Simplify code by removing a boolean int
79428         that was always nonzero if a string was nonnull.
79429
79430 2004-03-30  Jim Meyering  <jim@meyering.net>
79431
79432         Merge from coreutils.
79433
79434         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79435         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79436         on some systems one must include <grp.h> before it.
79437         Reported by Christian Krackowizer.
79438
79439 2004-03-30  Jim Meyering  <jim@meyering.net>
79440
79441         Merge from coreutils.
79442
79443         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79444
79445         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79446         an empty input stream.
79447
79448         * lib/readtokens.c: Include <stdbool.h>.
79449         (readtoken): Use `size_t' rather than int/long.
79450         All callers adjusted.
79451         Use `bool' rather than `int' where appropriate.
79452         Use memset rather than an explicit loop.
79453         Use x2nrealloc rather than xrealloc.
79454         Allow the use of `\0' as a delimiter.
79455         (readtokens): Likewise.
79456         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79457
79458 2004-03-30  Jim Meyering  <jim@meyering.net>
79459
79460         * m4/realloc.m4: Remove file, since now it does no more than
79461         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79462         the `configure.ac' section of module/realloc.
79463         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79464
79465 2004-03-30  Bruno Haible  <bruno@clisp.org>
79466
79467         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79468         nonnull.
79469
79470 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79471
79472         Merge changes to getloadavg.c from coreutils and Emacs.
79473
79474         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79475         Define to an expression, not to the empty string.
79476         Include cloexec.h and xalloc.h.
79477         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79478         Use set_cloexec_flag rather than rolling our own.
79479         * lib/cloexec.c, lib/cloexec.h: New files.
79480
79481 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79482
79483         * m4/cloexec.m4: New file.
79484
79485 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79486
79487         * lib/getopt.h: Sync with libc CVS.
79488
79489 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79490             Bruno Haible  <bruno@clisp.org>
79491
79492         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79493         mbswidth.
79494
79495 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79496             Bruno Haible  <bruno@clisp.org>
79497
79498         * lib/mbswidth.h: Include <wchar.h> only if
79499         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79500         <wchar.h>.
79501         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79502
79503 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79504
79505         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79506         Sync with libc CVS.
79507         * lib/getopt_int.h: New file, also synced from libc.
79508
79509 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79510
79511         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79512         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79513         Bring back getopt.c, getopt.h, getopt1.c.
79514
79515 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79516
79517         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79518         All uses changed.  Check for sa_sigaction member; this fixes
79519         a bug first reported by Jason Andrade in
79520         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79521
79522 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79523
79524         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79525         '#if' expressions.  Unlike the code it replaces, it does not
79526         depend on (defined _SC_PAGESIZE).  However, it does depend on
79527         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79528         first reported by Jason Andrade in
79529         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79530
79531 2004-02-25  Simon Josefsson  <jas@extundo.com>
79532
79533         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79534
79535 2004-02-25  Simon Josefsson  <jas@extundo.com>
79536
79537         * lib/strdup.h: New file.
79538         * lib/strdup.c: Include it.
79539         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79540         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79541
79542 2004-02-23  Karl Berry  <karl@gnu.org>
79543
79544         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79545         (from fencepost.gnu.org:/gd/gnuorg).
79546
79547 2004-02-23  Karl Berry  <karl@gnu.org>
79548
79549         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79550         * config/srclist.txt: add maintain/standards documents.
79551
79552 2004-02-18  Bruno Haible  <bruno@clisp.org>
79553
79554         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79555         Reported by Derek Robert Price <derek@ximbiot.com>.
79556
79557 2004-02-16  Karl Berry  <karl@gnu.org>
79558
79559         * config/mkinstalldirs, install-sh: update from automake.
79560
79561 2004-02-06  Karl Berry  <karl@gnu.org>
79562
79563         * m4/po.m4: update from gettext 0.14.1.
79564
79565 2004-02-06  Karl Berry  <karl@gnu.org>
79566
79567         * lib/config.charset: update from gettext 0.14.1.
79568
79569 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79570
79571         Add comments and code, prompted by suggestions from Bruno Haible
79572         for sh-quote.
79573         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79574         describing the enum quoting_style values.
79575         * lib/quotearg.c (quotearg_alloc): New function.
79576         (quotearg_buffer_restyled): Treat lone { and } as special.
79577         Treat = as special.  Work around bug with older shells
79578         that "see" a '\' that is really the 2nd byte of a multibyte char.
79579         Quote empty string with shell_quoting_style.
79580
79581 2004-02-03  Bruno Haible  <bruno@clisp.org>
79582
79583         * m4/pipe.m4: New file, from GNU gettext.
79584
79585 2004-02-03  Bruno Haible  <bruno@clisp.org>
79586
79587         * lib/pipe.h: New file, from GNU gettext.
79588         * lib/pipe.c: New file, from GNU gettext.
79589
79590 2004-01-27  Bruno Haible  <bruno@clisp.org>
79591
79592         * m4/execute.m4: New file, from GNU gettext.
79593
79594 2004-01-27  Bruno Haible  <bruno@clisp.org>
79595
79596         * lib/execute.h: New file, from GNU gettext.
79597         * lib/execute.c: New file, from GNU gettext.
79598         * lib/w32spawn.h: New file, from GNU gettext.
79599
79600 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79601
79602         Merge from diffutils.
79603
79604         * lib/file-type.c (file_type): Add typed memory objects.
79605         * lib/file-type.h (S_TYPEISTMO): New macro.
79606
79607         * lib/c-stack.h (c_stack_action): Remove argv argument.
79608         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79609         (die): Don't calculate message unless segv_action returns.
79610         (get_stack_location, min_address_from_argv, max_address_from_argv,
79611         volatile stack_base, volatile_stack_size): Remove.
79612         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79613         that every segmentation violation is a stack overflow.  (Ouch!)
79614         See Debian bug 136249 (still outstanding) for more info about why
79615         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79616
79617 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79618
79619         Exit-status fix from coreutils.
79620
79621         Use exit_failure consistently in place of EXIT_FAILURE,
79622         so that program exit statuses are consistent on failure.
79623
79624         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79625         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79626         * lib/argmatch.h: Comment fix to match the above.
79627         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79628         Now a macro referring to exit_failure, instead of a separate
79629         variable.  Include "exitfail.h" to get it.
79630         * lib/xstrtol.h: Include "exitfail.h".
79631         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79632
79633         * lib/long-options.c (parse_long_options): Use prototype
79634         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79635         for clarity.
79636
79637 2004-01-21  Jim Meyering  <jim@meyering.net>
79638
79639         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79640         so as not to conflict with a different-sized __mktime_internal
79641         function in GNU libc.
79642         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79643         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79644
79645 2004-01-20  Karl Berry  <karl@gnu.org>
79646
79647         * config/config.guess: update from config.
79648
79649         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79650
79651 2004-01-20  Bruno Haible  <bruno@clisp.org>
79652
79653         Safer stack allocation.
79654         * lib/setenv.c: Include allocsa.h.
79655         (alloca): Remove fallback definition.
79656         (freea): Remove macro.
79657         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79658         instead of freea.
79659
79660 2004-01-20  Bruno Haible  <bruno@clisp.org>
79661
79662         * m4/eealloc.m4: New file, from GNU gettext.
79663
79664 2004-01-20  Bruno Haible  <bruno@clisp.org>
79665
79666         * m4/allocsa.m4: New file, from GNU gettext.
79667
79668 2004-01-20  Bruno Haible  <bruno@clisp.org>
79669
79670         * lib/xallocsa.h: New file, from GNU gettext.
79671         * lib/xallocsa.c: New file, from GNU gettext.
79672
79673 2004-01-20  Bruno Haible  <bruno@clisp.org>
79674
79675         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79676
79677 2004-01-20  Bruno Haible  <bruno@clisp.org>
79678
79679         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79680         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79681         specially.
79682
79683 2004-01-20  Bruno Haible  <bruno@clisp.org>
79684
79685         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79686         patch.
79687
79688 2004-01-20  Bruno Haible  <bruno@clisp.org>
79689
79690         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79691
79692 2004-01-20  Bruno Haible  <bruno@clisp.org>
79693
79694         * lib/eealloc.h: New file.
79695
79696 2004-01-20  Bruno Haible  <bruno@clisp.org>
79697
79698         * lib/binary-io.h: Avoid warnings on Cygwin.
79699
79700 2004-01-20  Bruno Haible  <bruno@clisp.org>
79701
79702         * lib/allocsa.h: New file, from GNU gettext.
79703         * lib/allocsa.c: New file, from GNU gettext.
79704
79705 2004-01-18  Karl Berry  <karl@gnu.org>
79706
79707         * doc/gpl.texi, doc/lgpl.texi: new files.
79708
79709 2004-01-18  Karl Berry  <karl@gnu.org>
79710
79711         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79712         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79713
79714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79715
79716         Merge from coreutils.
79717
79718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79719         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79720         (gl_DEFAULT_POSIX2_VERSION): Move
79721         the documentation from 'configure' into 'config.hin',
79722         so that 'configure --help' isn't burdened by it and
79723         we don't have to worry about its formatting there.
79724         Reword the documentation so that it's more succinct
79725         and can be run together into a single paragraph.
79726         * m4/same.m4 (gl_SAME): Check for pathconf.
79727
79728 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79729
79730         Merge from coreutils.
79731
79732         * lib/posixver.c: Include posixver.h.
79733
79734         * lib/same.c: Include <stdbool.h>, <limits.h>.
79735         (_POSIX_NAME_MAX): Define if not defined.
79736         (MIN): New macro.
79737         (same_name): If file names are silently truncated, report
79738         that the file names are the same if they are the same after
79739         the silent truncation.
79740
79741         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79742         conversion function.
79743         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79744         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79745         longer needed.
79746
79747 2004-01-15  Jim Meyering  <jim@meyering.net>
79748
79749         Merge from coreutils.
79750
79751         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79752         if no library is required.
79753         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79754         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79755         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79756         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79757         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79758         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79759         value, $ac_cv_search_crypt, if it's "none required".
79760         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79761         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79762         not gl_FUNC_GETLOADAVG.
79763         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79764         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79765
79766 2004-01-15  Jim Meyering  <jim@meyering.net>
79767
79768         Merge from coreutils.
79769
79770         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79771         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79772         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79773
79774         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79775         optional configure-time default.
79776
79777         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79778
79779         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79780
79781 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79782
79783         Merge from coreutils.
79784
79785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79786         value, $ac_cv_search_nanosleep, if it's "none required".
79787
79788 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79789
79790         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79791         with like-named macro in fnmatch.c.
79792         (EXT): Use an internal constant instead.
79793
79794         Merge fnmatch patches from glibc.
79795         * lib/fnmatch.c (mbsinit): Remove define.
79796         Add libc_hidden_ver (__fnmatch, fnmatch).
79797         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79798         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79799
79800 2004-01-14  Karl Berry  <karl@gnu.org>
79801
79802         * config/install-sh: update from automake.
79803
79804 2004-01-13  Karl Berry  <karl@gnu.org>
79805
79806         * config/install-sh: update from automake.
79807
79808 2004-01-09  Karl Berry  <karl@gnu.org>
79809
79810         * config/install-sh: update from automake.
79811
79812 2004-01-05  Karl Berry  <karl@gnu.org>
79813
79814         * config/config.{sub,guess}: update from config.
79815
79816 2003-12-31  Karl Berry  <karl@gnu.org>
79817
79818         * config/depcomp: update from automake.
79819
79820 2003-12-14  Karl Berry  <karl@gnu.org>
79821
79822         * lib/config.charset: update from gettext-runtime.
79823
79824 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79825
79826         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79827         Bug reported by Alfred M. Szmidt.
79828
79829 2003-12-03  Bruno Haible  <bruno@clisp.org>
79830
79831         * m4/gettext.m4: Upgrade from gettext-0.13.
79832         * m4/po.m4: Upgrade from gettext-0.13.
79833         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79834         * m4/intmax.m4: New file, from gettext-0.13.
79835         * m4/printf-posix.m4: New file, from gettext-0.13.
79836
79837 2003-11-29  Karl Berry  <karl@gnu.org>
79838
79839         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79840
79841 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79842             Bruno Haible  <bruno@clisp.org>
79843
79844         * lib/printf-parse.h: Don't include sys/types.h.
79845         (ARG_NONE): New macro.
79846         (char_directive): Change type of *arg_index fields to size_t.
79847         * lib/printf-parse.c: Don't include sys/types.h.
79848         (SSIZE_MAX): Remove macro.
79849         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79850         Remove unnecessary overflow check.
79851         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79852         fields.
79853
79854 2003-11-25  Bruno Haible  <bruno@clisp.org>
79855
79856         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79857
79858 2003-11-25  Bruno Haible  <bruno@clisp.org>
79859
79860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79861         gt_TYPE_SSIZE_T.
79862
79863 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79864
79865         * modules/alloca: Remove dependency on xalloc.
79866
79867 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79868
79869         * lib/alloca.c: Remove dependency on xalloc module.
79870         (xalloc_die): Remove.
79871         (memory_full) [!defined emacs]: New macro.
79872         [!defined emacs]: Don't include xalloc.h.
79873         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79874         address arithmetic overflows.  Change datatypes a bit to avoid
79875         unnecessary casts.
79876
79877 2003-11-22  Jim Meyering  <jim@meyering.net>
79878
79879         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79880         s/size/size_t/.
79881
79882 2003-11-21  Karl Berry  <karl@gnu.org>
79883
79884         * config/config.{sub,guess}: update from config.
79885
79886 2003-11-18  Karl Berry  <karl@gnu.org>
79887
79888         * config/config.{sub,guess}: update from config.
79889
79890         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79891
79892 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79893
79894         * README: Mention that S+T cannot overflow if S is the size of
79895         an existing object and T is sufficiently small.
79896
79897 2003-11-17  Jim Meyering  <jim@meyering.net>
79898
79899         On systems without utime and without a utimes function capable of
79900         dealing with a NULL struct utimbuf* argument, this utime replacement
79901         could -- in unusual circumstances -- leak a file descriptor.
79902         * lib/utime.c: Include <unistd.h> and <errno.h>.
79903         (utime_null): Be sure to close `fd' and to preserve errno.
79904         Reported by Geoff Collyer via Arnold Robbins.
79905
79906 2003-11-17  Bruno Haible  <bruno@clisp.org>
79907
79908         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79909         (Depends-on): Add xsize.
79910
79911 2003-11-17  Bruno Haible  <bruno@clisp.org>
79912
79913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79914
79915 2003-11-17  Bruno Haible  <bruno@clisp.org>
79916
79917         * lib/vasnprintf.c (alloca): Remove fallback definition.
79918         (freea): Remove definition.
79919         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79920         Reported by Paul Eggert.
79921
79922 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79923             Bruno Haible  <bruno@clisp.org>
79924
79925         Protect against address arithmetic overflow.
79926         * lib/printf-args.h: Include stddef.h.
79927         (arguments): Change type of field 'count' to size_t.
79928         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79929         'unsigned int' where appropriate.
79930         * lib/printf-parse.h: Include sys/types.h.
79931         (char_directive): Change type of *arg_index fields to ssize_t.
79932         (char_directives): Change type of fields 'count', max_*_length to
79933         size_t.
79934         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79935         (SSIZE_MAX): Define fallback value.
79936         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79937         instead of 'int' where appropriate. Check a_allocated, d_allocated
79938         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79939         * lib/vasnprintf.c: Include xsize.h.
79940         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79941         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79942         overflow. Avoid wraparound when converting a width or precision from
79943         decimal to binary.
79944
79945 2003-11-16  Bruno Haible  <bruno@clisp.org>
79946
79947         Update from GNU gettext.
79948         * lib/printf-parse.c: Generalize to it can be compiled for wide
79949         strings.
79950         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79951         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79952         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79953         SNPRINTF): New macros.
79954         Don't include <alloca.h> if the file is used inside libintl.
79955         (local_wcslen): New function, for Solaris 2.5.1.
79956         (VASNPRINTF): Use it instead of wcslen.
79957
79958 2003-11-16  Bruno Haible  <bruno@clisp.org>
79959
79960         * lib/xsize.h (xmax): New function.
79961         (xsum, xsum3, xsum4): Declare as "pure" functions.
79962
79963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79964
79965         * modules/xalloc (Files): Undo latest change, since xalloc.h
79966         no longer needs SIZE_MAX or PTRDIFF_MAX.
79967
79968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79969
79970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79971         gl_PTRDIFF_MAX.
79972
79973 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79974
79975         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79976         "return", to pacify some unknown compiler.  Problem reported
79977         by Joerg Schilling.
79978
79979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79980
79981         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79982         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79983         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79984         heuristic is just as accurate as far as we know, and it removes a
79985         dependency on size_max.m4 and ptrdiff_max.m4.
79986
79987 2003-11-11  Bruno Haible  <bruno@clisp.org>
79988
79989         * modules/xsize (Files): Add m4/size_max.m4.
79990         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79991
79992 2003-11-11  Bruno Haible  <bruno@clisp.org>
79993
79994         * m4/size_max.m4: New file.
79995         * m4/ptrdiff_max.m4: New file.
79996         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79997         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79998         (gl_XALLOC): Invoke it.
79999
80000 2003-11-11  Bruno Haible  <bruno@clisp.org>
80001
80002         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80003         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80004         defined.
80005
80006 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80007
80008         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80009         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80010         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80011         From Bruno Haible.
80012         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80013         not (size_t) -1, since it's defined here.
80014
80015 2003-11-09  Karl Berry  <karl@gnu.org>
80016
80017         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80018
80019 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80020
80021         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80022         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80023         Reject sizes of exactly SIZE_MAX bytes.
80024         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80025         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80026
80027 2003-11-05  Bruno Haible  <bruno@clisp.org>
80028
80029         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80030         SIZE_MAX defined in <limits.h> on Solaris.
80031
80032 2003-11-04  Jim Meyering  <jim@meyering.net>
80033
80034         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80035         variable names, rather than @VAR@.
80036         * modules/poll: Likewise.
80037
80038 2003-11-04  Bruno Haible  <bruno@clisp.org>
80039
80040         * modules/xsize: New file.
80041         * modules/linebreak: Depend on xsize.
80042         * MODULES.html.sh (func_all_modules): Add xsize.
80043
80044 2003-11-04  Bruno Haible  <bruno@clisp.org>
80045
80046         * m4/xsize.m4: New file.
80047
80048 2003-11-04  Bruno Haible  <bruno@clisp.org>
80049
80050         * lib/xsize.h: New file.
80051         * lib/linebreak.c: Include xsize.h.
80052         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80053         argument for overflow.
80054         Suggested by Paul Eggert.
80055
80056 2003-11-03  Karl Berry  <karl@gnu.org>
80057
80058         * config/config.{guess,sub}: update from config.
80059
80060 2003-11-03  Jim Meyering  <jim@meyering.net>
80061
80062         * modules/userspec (lib_SOURCES): Add userspec.h.
80063         (Include): Add "userspec.h".
80064         Improve description.
80065
80066 2003-11-03  Jim Meyering  <jim@meyering.net>
80067
80068         * lib/userspec.c: Include "userspec.h".
80069         * lib/userspec.h: New file.
80070
80071 2003-11-03  Bruno Haible  <bruno@clisp.org>
80072
80073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80074
80075 2003-11-03  Bruno Haible  <bruno@clisp.org>
80076
80077         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80078         available, to avoid (extremely rare) race condition.
80079         Suggested by Paul Eggert.
80080
80081 2003-11-02  Karl Berry  <karl@gnu.org>
80082
80083         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80084
80085 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80086
80087         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80088         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80089         (read_filesystem_list): Set and use me_type_malloced.
80090         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80091         whatever the type happens to be), for brevity and consistency.
80092         Check for size calculation overflow on Alphas running OSF/1.
80093
80094 2003-10-31  Jim Meyering  <jim@meyering.net>
80095
80096         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80097
80098         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80099
80100 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80101             Bruno Haible  <bruno@clisp.org>
80102
80103         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80104         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80105
80106 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80109         netbsd*-gnu*.  Suggested by Robert Millan.
80110
80111 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80112
80113         * modules/group-member: Depend on stdbool.
80114
80115 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80116
80117         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80118
80119 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80120
80121         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80122         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80123         after the 'gnu' in these cases.  This fixes some bugs in the
80124         previous change, and is based on suggestions by Robert Millan.
80125
80126 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80127
80128         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80129         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80130         no longer needed.
80131         * lib/quotearg.c (quotearg_n_options): Use it.
80132         * lib/group-member.c: Include <stdbool.h>.
80133         (free_group_info): Arg is now const *; don't free arg.
80134         (get_group_info): Now returns bool and accepts struct group_info *,
80135         rather than returning a malloc'ed struct group_info *.
80136         All uses changed.  Check for overflow in internal size calculation.
80137
80138         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80139         rather than xmalloc/xrealloc.
80140         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80141         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80142         conformance bug: the old code used a pointer after freeing the
80143         storage that it addressed.
80144         * lib/hash.c (hash_initialize): Simplify the code by using
80145         xalloc_oversized rather than doing it by hand.
80146         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80147         the buffer preserved.  Use free and xmalloc instead.
80148         * lib/quotearg.c (quotearg_n_options): Likewise.
80149         Use a simpler test for size overflow.  Don't use xalloc_oversized
80150         because unsigned int might be wider than size_t (!); this suggests
80151         that we should switch from unsigned int to size_t for slot numbers.
80152
80153 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80154
80155         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80156         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80157         NetBSD kernels.  Requested by Richard Stallman.
80158
80159 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80160
80161         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80162         to allocate the returned structure.  Do not allocate a subarray,
80163         as x2nrealloc will do that.
80164         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80165         instead of xnrealloc.
80166         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80167
80168 2003-10-27  Bruno Haible  <bruno@clisp.org>
80169
80170         * lib/stdbool_.h: Better support for BeOS.
80171
80172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80173
80174         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80175         now uses inline.
80176
80177 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80178
80179         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80180         callers that want to do their own size-overflow checking.  Include
80181         <stdbool.h>, since xalloc_oversized returns bool.
80182         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80183         to use xalloc_oversized.
80184
80185         Add two functions x2realloc, x2nrealloc, for programs that grow
80186         arrays dynamically by doubling their sizes.
80187         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80188         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80189         New functions.
80190
80191         Port to C99 semantics for 'inline' of external functions.
80192         Bug reported by Bruno Haible.
80193         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80194         with the old contents of xnmalloc.
80195         (xnmalloc, xmalloc): Use it.
80196         (xnrealloc_inline): New static inline function,
80197         with the old contents of xnrealloc.
80198         (xnrealloc, xrealloc): Use it.
80199
80200         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80201         that.
80202
80203 2003-10-26  Karl Berry  <karl@gnu.org>
80204
80205         * config/srclist.txt (COPYING.DOC): no longer available from
80206         /gd/gnuorg; don't know where the ultimate source is.
80207
80208 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80209
80210         Fix several address-calculation bugs in the hash modules,
80211         plus some minor code cleanup.
80212
80213         * lib/hash.h: Include <stdbool.h>, for bool.
80214         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80215         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80216         hash_get_n_entries, hash_get_max_bucket_length,
80217         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80218         hash_rehash): Use size_t rather than unsigned.
80219         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80220         hash_get_n_buckets_used, hash_get_n_entries,
80221         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80222         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80223         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80224         Likewise.
80225         (SIZE_MAX): Define if not defined.
80226         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80227         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80228         hash_print):
80229         Use const * when possible.
80230         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80231         (check_tuning): Fix bug: if tuning parameters were very close to
80232         0 or 1, rounding errors could have caused subscript violations.
80233         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80234         (hash_initialize): Add 'fail:' label
80235         to free table and return NULL, and use it to simplify code.
80236         Use calloc rather than clearing the storage ourself.
80237         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80238         buffer size calculations.
80239         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80240         Include <stddef.h>, for size_t.
80241         * lib/hash-pjw.c (hash_pjw): Likewise.
80242         Switch to method described by Bruno Haible.
80243         Include <limits.h>, for CHAR_BIT.
80244         (SIZE_BITS): New macro.
80245
80246 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80247
80248         * m4/getline.m4 (AM_FUNC_GETLINE):
80249         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80250         hosts.  Problem reported by Derek Robert Price in
80251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80252         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80253         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80254
80255 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80256
80257         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80258         ceiling the allocation at NMAX bytes rather than silently
80259         discarding input bytes before NMAX is reached.  This makes
80260         a difference only if NMAX exceeds SIZE_MAX / 2.
80261
80262         * lib/obstack.c: Merge from glibc.
80263         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80264         Add libc_hidden_def (_obstack_newchunk).
80265         (_obstack_free) [! defined _LIBC]: Remove.
80266         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80267         a clone of the function body.
80268         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80269         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80270
80271         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80272         glibc.
80273         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80274         arg to memcpy.
80275
80276         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80277         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80278         Don't use lvalue casts, as GCC plans to remove support for them
80279         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80280         was also present in the non-GCC version, indicating that this
80281         code had always been buggy and had never been widely used.
80282         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80283         Use the fast variant of each macro, rather than copying the
80284         definiens of the fast variant; that way, we'll be more likely to
80285         catch future bugs in the fast variants.
80286
80287 2003-10-20  Bruno Haible  <bruno@clisp.org>
80288
80289         * modules/wait-process: New file.
80290         * MODULES.html.sh (func_all_modules): Add wait-process.
80291
80292 2003-10-20  Bruno Haible  <bruno@clisp.org>
80293
80294         * m4/wait-process.m4: New file.
80295
80296 2003-10-20  Bruno Haible  <bruno@clisp.org>
80297
80298         * lib/wait-process.h: New file, from GNU gettext.
80299         * lib/wait-process.c: New file, from GNU gettext.
80300
80301 2003-10-19  Jim Meyering  <jim@meyering.net>
80302
80303         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80304         HPUX 10.20.
80305
80306 2003-10-18  Karl Berry  <karl@gnu.org>
80307
80308         * config/config.guess: update from config.
80309
80310 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80311
80312         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80313         (getgroups): First arg is int, not size_t.
80314         Don't let 'free' mangle errno.
80315
80316 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80317
80318         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80319
80320 2003-10-16  Karl Berry  <karl@gnu.org>
80321
80322         * config/config.{guess,sub}: update from config.
80323
80324 2003-10-16  Jim Meyering  <jim@meyering.net>
80325
80326         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80327         memcpy.
80328
80329 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80330
80331         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80332         (SIZE_MAX): Remove.
80333         (new_exclude, add_exclude_file): Initial size no longer needs to
80334         be a power of 2.
80335         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80336         our own address arithmetic overflow checking.
80337
80338         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80339         (fnmatch): Do not alloca more than 2000 wide characters;
80340         instead, use malloc for large buffers.
80341         Check for address arithmetic overflow, and return -1
80342         with errno set to ENOMEM in that case.
80343         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80344         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80345         instead, return -1.  Check for address arithmetic overflow.
80346
80347 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80348
80349         Handle invalid suffixes and overflow independently, so that
80350         callers can treat them independently as needed.  Fix some bugs in
80351         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80352         suffix for a human-readable blocksize.  The major caller-visible
80353         change is the addition of a new
80354         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80355         that both overflow and suffix chars were found.
80356
80357         * lib/human.c (humblock): Don't check separately for invalid suffix
80358         char; that is xstrtoumax's job (now that its bug is fixed).
80359         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80360         INTMAX_MAX]: New macros.
80361         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80362         TYPE_MAXIMUM): New macros.
80363         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80364         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80365         if overflow occurs, as it's what __strtol does and it's more useful
80366         in practice.
80367         (__xstrtol): If __strtol reports some error other than ERANGE,
80368         reflect it to the caller as LONGINT_INVALID.  If it reports
80369         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80370         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80371         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80372         value.
80373         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80374         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80375         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80376         [defined UINTMAX_MAX]: New macros.
80377
80378 2003-10-14  Bruno Haible  <bruno@clisp.org>
80379
80380         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80381
80382 2003-10-14  Bruno Haible  <bruno@clisp.org>
80383
80384         * m4/sig_atomic_t: New file, from GNU gettext.
80385         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80386
80387 2003-10-14  Bruno Haible  <bruno@clisp.org>
80388
80389         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80390         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80391         Also use volatile where needed.
80392
80393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80394
80395         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80396         Change maintainer from Bruno Haible to 'all'.
80397
80398 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80399
80400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80401
80402 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80403
80404         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80405         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80406         and define in terms of the other primitives.
80407         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80408         (SIZE_MAX): Define if not already defined.
80409         (array_size_overflow): New function.
80410         (xalloc_die): Abort instead of exiting if 'error' returns.
80411         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80412         (xmalloc, xrealloc): Use them.
80413         (xcalloc): Check for address arithmetic overflow.
80414         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80415         a bit faster than strcpy.
80416
80417 2003-10-10  Simon Josefsson  <jas@extundo.com>
80418
80419         * modules/argp (Depends-on): Add restrict and strcase.
80420
80421 2003-10-10  Simon Josefsson  <jas@extundo.com>
80422
80423         * m4/argp.m4: Add AC_C_INLINE.
80424
80425 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80426
80427         Merge getpass from libc, plus a few fixes.
80428
80429         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80430         Include <stdbool.h>.
80431         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80432         __fsetlocking to empty.
80433         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80434         do include <bits/libc-lock.h>.
80435         Do not include <fcntl.h>; not needed.
80436         [_LIBC]: Include <wchar.h>.
80437         (NOTCANCEL_MODE): New macro.
80438         (flockfile, funlockfile) [_LIBC]: New macros.
80439         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80440         [!_LIBC]: New macros.
80441         (call_fclose): New function.
80442         (getpass): Use it.  Save tty stream separately; this simplifies the
80443         code and makes it more reliable if stdin happens to equal stdout.
80444         Invoke __fsetlocking on tty.
80445         Handle thread cancellation if needed.
80446         Namespace cleanup (use __tcgetattr, __getline).
80447         Use bool for Booleans.
80448         [USE_IN_LIBIO]: Handle wide streams.
80449         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80450         stream might go where.
80451
80452         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80453         doesn't have to include <stdio.h> before us.
80454         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80455         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80456         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80457         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80458         if not declared, so that we can use getpass.c code from libc without
80459         rewriting it.
80460         (flockfile, ftrylockfile, funlockfile): New macros.
80461
80462 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80463
80464         * modules/getpass: Depend on stdbool.
80465
80466 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80467
80468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80469
80470 2003-10-07  Karl Berry  <karl@gnu.org>
80471
80472         * config/config.{guess,sub}: update from config.
80473
80474 2003-10-06  Jim Meyering  <jim@meyering.net>
80475             Bruno Haible  <bruno@clisp.org>
80476
80477         This lets translators provide better translations for the
80478         "Written by ..." part of --version output.
80479         * lib/version-etc.h: Include stdarg.h.
80480         (version_etc_copyright): Declare as readonly.
80481         (version_etc): Make this function variadic with a NULL-terminated list
80482         of author name strings.
80483         (version_etc_va): New declaration.
80484         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80485         (version_etc_copyright): Declare as readonly.
80486         (version_etc_va): New function. Provide a different translatable string
80487         for each possible number of authors < 10. Abbreviate when there are 10
80488         authors or more.
80489         (version_etc): Make this function variadic. Call version_etc_va.
80490         Suggestion from Gary V. Vaughan.
80491
80492         * lib/long-options.h (parse_long_options): Change prototype: the
80493         authors string is moved to the end and becomes variadic.
80494         * lib/long-options.c: Include stdarg.h.
80495         (parse_long_options): Make this function variadic, too.
80496         Call version_etc_va, not version_etc.
80497
80498 2003-10-06  Bruno Haible  <bruno@clisp.org>
80499
80500         * modules/version-etc-2: Remove file.
80501         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80502
80503 2003-10-06  Bruno Haible  <bruno@clisp.org>
80504
80505         * modules/fatal-signal: New file.
80506         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80507
80508 2003-10-06  Bruno Haible  <bruno@clisp.org>
80509
80510         * m4/fatal-signal.m4: New file.
80511         * m4/signalblocking.m4: New file, from GNU gettext.
80512
80513 2003-10-06  Bruno Haible  <bruno@clisp.org>
80514
80515         * lib/version-etc-2.h: Remove file.
80516         * lib/version-etc-2.c: Remove file.
80517
80518 2003-10-06  Bruno Haible  <bruno@clisp.org>
80519
80520         * lib/fatal-signal.h: New file, from GNU gettext.
80521         * lib/fatal-signal.c: New file, from GNU gettext.
80522
80523 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80524
80525         * README: Rework advice for preventing empty .o files.
80526         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80527         not <sys/types.h>.
80528
80529 2003-10-04  Karl Berry  <karl@gnu.org>
80530
80531         * lib/argp*: update from libc.
80532
80533 2003-10-04  Karl Berry  <karl@gnu.org>
80534
80535         * config/config.{guess,sub}: update from config.
80536
80537 2003-10-02  Bruno Haible  <bruno@clisp.org>
80538
80539         * modules/lchown (Include): Add lchown.h.
80540         * modules/time_r (Include): Use "..." syntax.
80541         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80542
80543 2003-10-01  Simon Josefsson  <jas@extundo.com>
80544
80545         * MODULES.html.sh (func_all_modules): Move gethostname from section
80546         'based on' to section 'lacking' POSIX:2001.
80547
80548 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80549
80550         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80551         to output mode on the same stream.
80552
80553 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80554
80555         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80556         Fix arg typo in previous patch.
80557
80558 2003-09-28  Jim Meyering  <jim@meyering.net>
80559
80560         * lib/error.c: Correct cpp indentation.
80561
80562 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80563
80564         * modules/free: New file.
80565
80566 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80567
80568         * m4/free.m4: New file.
80569
80570 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80571
80572         * lib/minmax.h (MIN, MAX)
80573         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80574         Omit the special code that used __typeof__, since we worry that
80575         it could be more trouble than it's worth.  See:
80576         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80577         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80578
80579         * lib/free.c: New file.
80580
80581 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80582
80583         Trivial fixes to Makefile.am parts of module listings.
80584         * modules/strstr: Append strstr.h to lib_SOURCES.
80585         * modules/strcase: Likewise, for strcase.h.
80586
80587 2003-09-27  Karl Berry  <karl@gnu.org>
80588
80589         * config/mkinstalldirs: update from automake.
80590
80591 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80592
80593         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80594         (error_tail): Do not loop, reallocating temporary buffer, since
80595         the output cannot contain more wide characters than the input
80596         contains bytes, the size must be big enough already.  This avoids
80597         one potential size overflow calculation.  Check for size overflow
80598         when calculating temporary buffer size.  Free temporary buffer
80599         when done, if it was allocated with malloc; this plugs a memory
80600         leak.  Remove casts from void * to pointers, that are no longer
80601         needed now that we're assuming C89 or better.
80602
80603         Merge error changes from glibc.
80604
80605         * lib/error.c, error.h: Update copyright notice header to match glibc.
80606         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80607         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80608         Disable cancellation while printing error.
80609         * lib/error.h: Prepend __ to parameter names.
80610
80611 2003-09-26  Jim Meyering  <jim@meyering.net>
80612
80613         * lib/error.c (error_tail): Move some declarations
80614         into inner scope where the local variables are used.
80615
80616 2003-09-26  Bruno Haible  <bruno@clisp.org>
80617
80618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80619         stpncpy().
80620         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80621
80622 2003-09-26  Bruno Haible  <bruno@clisp.org>
80623
80624         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80625         (stpncpy): Define as alias for gnu_stpncpy.
80626         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80627
80628 2003-09-25  Simon Josefsson  <jas@extundo.com>
80629
80630         * lib/xgetdomainname.h: New file.
80631         * lib/xgetdomainname.c: New file.
80632
80633 2003-09-25  Simon Josefsson  <jas@extundo.com>
80634             Bruno Haible  <bruno@clisp.org>
80635
80636         * modules/getdomainname: New file.
80637         * modules/xgetdomainname: New file.
80638         * MODULES.html.sh (func_all_modules): Add getdomainname,
80639         xgetdomainname.
80640
80641 2003-09-25  Simon Josefsson  <jas@extundo.com>
80642             Bruno Haible  <bruno@clisp.org>
80643
80644         * m4/getdomainname.m4: New file.
80645
80646 2003-09-25  Simon Josefsson  <jas@extundo.com>
80647             Bruno Haible  <bruno@clisp.org>
80648
80649         * lib/getdomainname.h: New file.
80650         * lib/getdomainname.c: New file.
80651
80652 2003-09-25  Karl Berry  <karl@gnu.org>
80653
80654         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80655
80656 2003-09-25  Karl Berry  <karl@gnu.org>
80657
80658         * config/install-sh: update from automake.
80659
80660 2003-09-25  Bruno Haible  <bruno@clisp.org>
80661
80662         * modules/version-etc-2: New file, from modules/version-etc with
80663         modifications.
80664         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80665
80666 2003-09-25  Bruno Haible  <bruno@clisp.org>
80667
80668         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80669         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80670
80671 2003-09-24  Simon Josefsson  <jas@extundo.com>
80672
80673         * modules/xgethostname: Add xgethostname.h.
80674
80675 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80676
80677         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80678         the buffer associated with the argument.  Bug reported by
80679         Simon Josefsson.
80680
80681 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80682
80683         * README: Document assumptions that 'int' is at least 32 bits
80684         wide, that integer arithmetic is 2's complement without overflow,
80685         that there are no holes in integer values, that adding sizes of
80686         two nonoverlapping objects can't overflow, and that all-bits-zero
80687         yields scalar zero.  Fix spelling and capitalization typos.
80688
80689 2003-09-19  Karl Berry  <karl@gnu.org>
80690
80691         * lib/argp.h: update from libc.
80692
80693 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80694
80695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80696         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80697         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80698
80699 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80700
80701         * gnulib-tool: Use "test -h", not "test -L", for portability
80702         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80703         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80704         (sed_extract_prog): Issue s commands one-by-one, rather than
80705         using \| in one s command.
80706
80707 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80708
80709         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80710         input error, instead of returning NULL the next time we are called
80711         (and therefore losing track of errno).
80712
80713 2003-09-16  Bruno Haible  <bruno@clisp.org>
80714
80715         * gnulib-tool (func_create_testdir): Warn about duplicated
80716         dependencies.
80717
80718 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80719
80720         * modules/argmatch, modules/fatal, modules/obstack,
80721         modules/xalloc, modules/xgethostname: Sort dependencies by
80722         importance, not alphabetically.
80723
80724 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80725
80726         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80727         fails, so that the caller gets the proper errno.
80728
80729         * lib/readutmp.c (read_utmp): Likewise.
80730         Check for fstat error.  Close stream and free storage
80731         when failing.
80732
80733 2003-09-14  Karl Berry  <karl@gnu.org>
80734
80735         * config/srclist.txt (strdup.c): disable for c89 changes.
80736
80737 2003-09-14  Jim Meyering  <jim@meyering.net>
80738
80739         * lib/getloadavg.c: Correct cpp indentation.
80740         * lib/strdup.c: Likewise.
80741         * lib/vasnprintf.c: Likewise.
80742
80743 2003-09-14  Bruno Haible  <bruno@clisp.org>
80744
80745         * modules/fwriteerror: New file.
80746         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80747
80748 2003-09-14  Bruno Haible  <bruno@clisp.org>
80749
80750         * lib/fwriteerror.h: New file.
80751         * lib/fwriteerror.c: New file.
80752
80753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80754
80755         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80756         modules/xgethostname, modules/xalloc: Depend on exit.
80757
80758 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80759
80760         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80761
80762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80763         and AC_MINIX, too, so that their extensions are available.
80764
80765         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80766         This macro has been superseded by gl_BACKUPFILE.
80767
80768         More patches to assume C89 or better.
80769
80770         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80771
80772         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80773         unconditionally.
80774         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80775         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80776         Include <string.h>, <stdlib.h> unconditionally.
80777         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80778         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80779         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80780         headers or for string.h.
80781         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80782         or strtoul.
80783
80784         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80785         headers.
80786         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80787         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80788         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80789         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80792         memcpy, memset.
80793         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80794         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80795         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80796         strtol.
80797         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80798         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80800         strtoul.
80801
80802 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80803
80804         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80805         * lib/obstack.c [!defined _LIBC]: Likewise.
80806         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80807         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80808         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80809
80810         More changes to assume C89 or better.
80811
80812         * lib/error.c (error_tail): Assume vprintf.
80813
80814         * lib/argmatch.c (getenv): Remove decl.
80815         * lib/progreloc.c (get_full_program_name): Define via prototype.
80816         * lib/setenv.c (clearenv): Likewise.
80817         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80818         needed.
80819         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80820         (malloc, memcpy): Remove decls.
80821         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80822         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80823         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80824         (memcpy): Remove macro.
80825         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80826         (__P): Remove.  All uses removed.
80827         (PTR): Remove.  All uses changed to void *.
80828         (CHAR_BIT, NULL): Remove.
80829         (spaces, zeros, memset_space, memset_zero)
80830         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80831         Remove.
80832         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80833         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80834         Define with prototype.
80835         Remove now-unnecessary prototype decl.
80836         (extra_args_spec): Assume ANSI C.  All uses changed.
80837         (extra_args_spec_iso): Remove.
80838         (my_strftime, emacs_strftimeu): Define via prototype.
80839         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80840         unconditionally.
80841         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80842         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80843         (strtoul, strtol): Remove decls.
80844         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80845         LONG_MAX): Remove.
80846         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80847         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80848         (LOCALE_PARAM_PROTO): New macro.
80849         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80850         (INTERNAL (strtol), strtol): Define with a prototype.
80851         (PARAMS): Remove.  All uses removed.
80852         * lib/tempname.c: Include <string.h> unconditionally.
80853         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80854         * lib/xgethostname.c (main): Define with a prototype.
80855         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80856         Include <stdlib.h> unconditionally.
80857         (calloc, malloc, realloc, free): Remove decls.
80858         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80859         Include <stdlib.h> unconditionally.  Sort include file names.
80860         (strtod): Remove.
80861         (xstrtod): Define with a prototype.
80862         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80863         (strtol, strtoul): Remove decls.
80864
80865 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80866
80867         More patches to assume C89 or better.
80868         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80869         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80870         string.h, memchr, STDC_HEADERS.
80871
80872 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80873
80874         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80875         Include <stdlib.h>, <string.h> unconditionally.
80876         Remove now-unnecessary cast to char *.
80877         * lib/strnlen.c: Include <string.h> unconditionally.
80878         * lib/yesno.c (yesno): Define with a prototype.
80879
80880 2003-09-11  Bruno Haible  <bruno@clisp.org>
80881
80882         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80883
80884 2003-09-10  Jim Meyering  <jim@meyering.net>
80885
80886         * lib/error.c: Correct indentation of cpp directives.
80887
80888 2003-09-10  Bruno Haible  <bruno@clisp.org>
80889
80890         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80891         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80892         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80893         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80894         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80895         <stdlib.h> and <string.h> checks.
80896         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80897         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80898
80899 2003-09-10  Bruno Haible  <bruno@clisp.org>
80900
80901         * lib/strcspn.c: Include <string.h> unconditionally.
80902         * lib/strpbrk.c: Include <string.h> unconditionally.
80903         * lib/strstr.c: Include <string.h> unconditionally.
80904         * lib/unicodeio.c: Include <string.h> unconditionally.
80905         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80906         * lib/unsetenv.c: Likewise.
80907         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80908         * lib/yesno.c: Include <stdlib.h> unconditionally.
80909         (rpmatch): Add prototype.
80910
80911 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80912
80913         More patches to assume C89 or better.
80914         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80915         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80916         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80917         or for string.h.
80918         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80919         stdlib.h.
80920         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80921         C headers.
80922         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80923         string.h.
80924         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80925         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80926         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80927         or for string.h.
80928         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80929         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80930         C headers.
80931         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80932         memcpy.
80933         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80934         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80935         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80936         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80937         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80938         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80939         string.h, free.
80940         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80941         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80942         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80943         C headers, or for string.h.
80944         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80945         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80946         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80947         headers, memory.h, stdlib.h, string.h, strings.h.
80948         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80949         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80950         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80951         strchr.
80952         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80953         headers, memory.h, string.h.
80954         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80955         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80956         free.
80957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80958         headers.
80959         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80960         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80961         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80962         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80963         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80964
80965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80966
80967         More K&R removal.
80968
80969         * lib/acosl.c (main): Use a prototype.
80970         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80971         tanl.c: Likewise.
80972
80973         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80974
80975         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80976         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80977         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80978         with a prototype.
80979         * lib/getopt.c (const): Remove macro.
80980         Include <string.h> unconditionally.
80981         (my_index): Remove; all uses changed to strchr.
80982         (strlen): Remove decl.
80983         (exchange): Remove forward decl; no longer needed.
80984         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80985         Define with prototype.
80986         * lib/getopt1.c (const): Remove macro.
80987         (getopt_long, getopt_long_only, main): Define with prototype.
80988
80989         * lib/getugroups.c: Include <string.h> unconditionally.
80990
80991         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80992         (getusershell, setusershell, endusershell, readname, main):
80993         Define with prototypes.
80994
80995         * lib/group-member.c: Include group-member.h first.
80996         Include <stdlib.h> unconditionally.
80997
80998         * lib/hard-locale.c: Include hard-locale.h first.
80999         Include <stdlib.h>, <string.h> unconditionally.
81000
81001         * lib/hash.c (free, malloc): Remove decls.
81002         Include <stdlib.h> unconditionally.
81003
81004         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81005         (getenv): Do not declare.
81006
81007         * lib/idcache.c: Include <string.h> unconditionally.
81008
81009         * lib/long-options.c: Include long-options.h first, to test interface.
81010         Include <stdlib.h> unconditionally.
81011
81012         * lib/makepath.c: Include makepath.h first, to test interface.
81013         Include <stdlib.h> and <string.h> unconditionally.
81014
81015         * lib/linebuffer.c: Include <stdlib.h>.
81016         (free): Remove decl.
81017
81018         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81019         stddef.h. rpl_malloc returns void *, not char *.
81020         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81021         prototype.
81022
81023         * lib/md5.h: Include <limits.h> unconditionally.
81024         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81025         (__P): Remove; all uses removed.
81026         * lib/md5.c: Include "md5.h" first.
81027         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81028         md5_buffer, md5_process_bytes, md5_process_block):
81029         Define with prototypes.
81030         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81031         * lib/sha.c: Include "sha.h" first.
81032         Include <stdlib.h>, <string.h> unconditionally.
81033
81034         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81035         * lib/memcmp.c (__ptr_t): Likewise.
81036         * lib/memrchr.c (__ptr_t): Likewise.
81037         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81038         Include <string.h> unconditionally.
81039         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81040         * lib/memchr.c: Include <stdlib.h> unconditionally.
81041         * lib/memchr.c (LONG_MAX): Remove.
81042         * lib/memrchr.c (LONG_MAX): Likewise.
81043         * lib/memchr.c (__memchr): Define via a prototype.
81044         * lib/memrchr.c (__memrchr): Likewise.
81045         * lib/memcmp.c (__P): Remove, and remove all uses.
81046         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81047         Remove forward decls; no longer needed.
81048         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81049         Use types required by C89 in prototype.
81050
81051         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81052         * lib/savedir.c: Likewise.
81053         * lib/mkdir.c (free): Remove decl.
81054         * lib/rmdir.c (rmdir): Define with a prototype.
81055         * lib/savedir.c: Include savedir.h first, to test interface.
81056
81057         * lib/mktime.c (STDC_HEADERS): Remove.
81058         Include <stdlib.h>, <string.h> unconditionally.
81059
81060         * lib/modechange.c: Include <stdlib.h> unconditionally.
81061         (malloc): Remove decl.
81062
81063         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81064         (free): Remove decl.
81065
81066         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81067         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81068         (This type really should be intptr_t, but that's a C99ism.)
81069         (_obstack_memcpy): Remove: all uses changed to memcpy.
81070         Include <string.h> unconditionally.
81071         (struct obstack): Assume __STDC__ for types of members
81072         chunkfun, freefun, extra_arg.
81073         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81074         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81075         obstack_begin, obstack_specify_allocation,
81076         obstack_specify_allocation_with_arg, obstack_chunkfun,
81077         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81078         Remove unprototyped decls and the macros that use them.
81079         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81080         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81081         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81082         (defined __STDC__ && __STDC__)]:
81083         Remove nonprototyped code.
81084         Include <stdlib.h> unconditionally.
81085         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81086         _obstack_allocated_p, _obstack_free, obstack_free,
81087         _obstack_memory_used, print_and_abort):
81088         Define using prototypes.
81089         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81090         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81091         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81092         obstack_next_free, obstack_object_size, obstack_room) [0]:
81093         Remove unused, unprototyped code.
81094
81095         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81096
81097         * lib/physmem.c (physmem_total, physmem_available, main): Define
81098         with prototypes.
81099
81100         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81101         (main): Define with a prototype.
81102
81103         * lib/posixver.c (getenv): Remove decl.
81104
81105         * lib/putenv.c (malloc): Returns void *, not char *.
81106         Include <string.h> unconditionally.
81107         (strchr, memcpy, NULL): Do not define.
81108
81109         * lib/readtokens.c: Include readtokens.h first, to test interface.
81110         Include <stdlib.h>, <string.h> unconditionally.
81111         (init_tokenbuffer): Define with a prototype.
81112
81113         * lib/regex.c (PARAMS): Remove.  All uses removed.
81114         All uses of _RE_ARGS removed, too.
81115         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81116         unconditionally.
81117         (bzero): Assume memset exists.
81118         (memcmp, memcpy, NULL): Remove.
81119         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81120         char, or assignments to local vars of type signed char.
81121         (init_syntax_once, PREFIX(extract_number_and_incr),
81122         PREFIX(print_partial_compiled_pattern),
81123         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81124         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81125         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81126         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81127         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81128         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81129         wcs_compile_range, byte_compile_range, truncate_wchar,
81130         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81131         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81132         count_mbs_length, wcs_re_match_2_internal,
81133         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81134         PREFIX(alt_match_null_string_p),
81135         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81136         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81137         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81138         now-unnecessary declaration, if any.
81139         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81140         regcomp, regexec):
81141         Remove now-unnecessary casts among pointer types.
81142         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81143
81144         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81145         (free): Remove decl.
81146
81147         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81148
81149         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81150         (free): Remove decl.
81151
81152         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81153         * lib/xgetcwd.c: Likewise.
81154
81155         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81156         (free): Remove decl.
81157
81158         * lib/strchrnul.c (strchrnul): Define with a prototype.
81159         Fix bug: c_in was not converted to char before searching.
81160
81161         The following changes are not K&R related:
81162
81163         * lib/group-member.h: Include <sys/types.h>, so that this file is
81164         self-contained.
81165         * lib/makepath.h: Likewise.
81166
81167         * lib/getusershell.c (readname, default_index, line_size, readname):
81168         Use size_t, not int, for sizes.
81169         (readname): If the size overflows, report an error instead of
81170         looping forever.
81171
81172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81173
81174         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81175         libc.
81176
81177 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81178
81179         * README: New section: portability guidelines.
81180
81181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81182
81183         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81184         C89 spec.
81185
81186 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81187
81188         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81189
81190 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81191
81192         Assume C89 or better; remove K&R cruft.
81193         A few of these changes were first proposed by Derek Robert Price
81194         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81195
81196         * lib/addext.c: Include <string.h> unconditionally.
81197         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81198         Don't declare getenv or malloc.
81199
81200         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81201         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81202         (NULL): Remove.
81203         (find_stack_direction, alloca): Use prototypes.
81204
81205         * lib/atexit.c (atexit): Define using a prototype.
81206
81207         * lib/basename.c, dirname.c, stripslash.c:
81208         Include <string.h> unconditionally.
81209
81210         * lib/bcopy.c: Include <stddef.h>.
81211         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81212
81213         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81214
81215         * lib/error.h (error, error_at_line, error_print_progname)
81216         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81217         * lib/error.c: Include error.h first, to check interface.
81218         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81219         (VA_START): Remove; all uses changeed to va_start.
81220         (exit, strerror): Remove decls.
81221         (error_print_progname): Prototype uncondionally.
81222         Don't include <errno.h>; no longer needed.
81223         (private_strerror): Remove.
81224         (error_tail): Always define.
81225         (error, error_at_line): Assume C89 or better; always use prototypes.
81226         * lib/fatal.c: Include "fatal.h" first, to test interface.
81227         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81228         (VA_START): Remove; all uses changed to va_start.
81229         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81230         this case.
81231         (exit): Remove decl.
81232         (fatal): Prototype unconditionally.  Assume va_start works.
81233         Abort at end, to pacify gcc.
81234
81235         * lib/euidaccess.c (main): Define with a prototype.
81236
81237         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81238
81239         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81240
81241         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81242         prototypes.
81243         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81244         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81245         (getenv): Remove decl.
81246         (fnmatch): Define using a prototype.
81247         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81248         (FCT): Define using a prototype.
81249
81250         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81251
81252         * lib/gethostname.c: Include <stddef.h>.
81253         (gethostname): Define with prototype.  Length is size_t, not int.
81254
81255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81256
81257         Assume C89 or better; remove K&R cruft.
81258         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81259         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81260         string.h, getenv, malloc.
81261         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81262         headers.
81263         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81264         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81265         do not check for strerror.
81266         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81267         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81268         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81269         do not check for doprnt or vprintf.
81270         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81271         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81272
81273 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81274
81275         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81276         getversion.c should have been removed then, but was accidentally
81277         preserved.
81278
81279         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81280         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81281
81282 2003-09-08  Karl Berry  <karl@gnu.org>
81283
81284         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81285                 config, forget about prep.
81286
81287         * config/depcomp, missing: update from automake.
81288
81289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81290
81291         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81292         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81293
81294 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81295
81296         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81297         copy_tm_result.  Bug reported by Simon Josefsson in
81298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81299
81300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81301
81302         * m4/time_r.m4: New file.
81303         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81304         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81305         is. Check for timegm declaration.
81306         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81307         Do not check for gmtime_r.
81308         Replace mktime if __mktime_internal does not exist and if mktime
81309         hasn't been replaced already.
81310
81311 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81312
81313         * lib/time_r.c, lib/time_r.h: New files.
81314
81315         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81316         __localtime_r.
81317         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81318         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81319
81320         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81321         __gmtime_r.
81322         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81323         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81324         Include <time_r.h>.
81325
81326         * lib/timegm.c: Switch to glibc implementation, with the following
81327         changes:
81328         [defined HAVE_CONFIG_H]: Include <config.h>.
81329         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81330         (__mktime_internal) [!defined _LIBC]: New decl.
81331         (__gmtime_r) [!defined _LIBC]: New macro and function.
81332         (timegm): Use a prototype, since gnulib assumes C89.
81333         Do not bother declaring tmp to be const, as it's not really usefu.
81334         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81335         (timegm): Declare only if HAVE_DECL_TIMEGM.
81336
81337 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81338
81339         * MODULES.html.sh (func_all_modules): Add time_r.
81340         * modules/time_r: New file.
81341         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81342         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81343
81344 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81345
81346         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81347         Bug reported by Lute Kamstra in
81348         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81349
81350         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81351         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81352         course with correspondingly smaller numbers for tomorrow and
81353         yesterday.  From Tadayoshi Funaba.  Originally installed into
81354         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81355         coreutils merge?).
81356
81357 2003-08-31  Simon Josefsson  <jas@extundo.com>
81358
81359         * modules/timegm: New file.
81360         * MODULES.html.sh (func_all_modules): Add timegm.
81361
81362 2003-08-31  Simon Josefsson  <jas@extundo.com>
81363
81364         * m4/timegm.m4: New file.
81365
81366 2003-08-31  Simon Josefsson  <jas@extundo.com>
81367
81368         * lib/timegm.h: New file.
81369         * lib/timegm.c: New file.  Based on
81370         wget-1.8.2/src/http.c:mktime_from_utc.
81371
81372 2003-08-31  Karl Berry  <karl@gnu.org>
81373
81374         * lib/argp.h: update from libc.
81375
81376 2003-08-28  Bruno Haible  <bruno@clisp.org>
81377
81378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81379         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81380         followed by '#define fnmatch fnmatch_posix' gives an error.
81381
81382 2003-08-28  Bruno Haible  <bruno@clisp.org>
81383
81384         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81385         warning on QNX, which defines O_BINARY to 000000.
81386
81387 2003-08-27  Jim Meyering  <jim@meyering.net>
81388
81389         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81390         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81391         would fail after 32.  Reported by Danny Levinson.  Details here:
81392         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81393
81394 2003-08-24  Bruno Haible  <bruno@clisp.org>
81395
81396         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81397         MSVC7 <stdio.h> is included later.
81398
81399 2003-08-22  Simon Josefsson  <jas@extundo.com>
81400
81401         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81402
81403 2003-08-20  Karl Berry  <karl@gnu.org>
81404
81405         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81406
81407 2003-08-20  Bruno Haible  <bruno@clisp.org>
81408
81409         * modules/progname: New file.
81410         * MODULES.html.sh (func_all_modules): Add progname.
81411
81412 2003-08-20  Bruno Haible  <bruno@clisp.org>
81413
81414         * lib/progname.h: New file, from GNU gettext.
81415         * lib/progname.c: New file, from GNU gettext.
81416         * lib/progreloc.c: New file, from GNU gettext.
81417
81418 2003-08-19  Jim Meyering  <jim@meyering.net>
81419
81420         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81421         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81422
81423 2003-08-19  Bruno Haible  <bruno@clisp.org>
81424
81425         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81426         more.
81427
81428 2003-08-19  Bruno Haible  <bruno@clisp.org>
81429
81430         * lib/xstrdup.c: Assume <string.h> exists.
81431
81432 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81433
81434         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81435         in makefile rules.
81436
81437 2003-08-18  Jim Meyering  <jim@meyering.net>
81438
81439         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81440         * m4/lib-ld.m4: Likewise.
81441
81442 2003-08-18  Jim Meyering  <jim@meyering.net>
81443
81444         * lib/setenv.h: Indent nested cpp directive.
81445         * lib/vasnprintf.c: Remove trailing blanks.
81446
81447 2003-08-17  Simon Josefsson  <jas@extundo.com>
81448
81449         * modules/xstrndup: New file.
81450         * MODULES.html.sh (func_all_modules): Add xstrndup.
81451
81452 2003-08-17  Simon Josefsson  <jas@extundo.com>
81453
81454         * modules/argp: Fix autoconf macro name. Add more dependencies.
81455
81456 2003-08-17  Simon Josefsson  <jas@extundo.com>
81457
81458         * m4/xstrndup.m4: New file.
81459
81460 2003-08-17  Simon Josefsson  <jas@extundo.com>
81461
81462         * m4/argp.m4: New file.
81463
81464 2003-08-17  Simon Josefsson  <jas@extundo.com>
81465             Bruno Haible  <bruno@clisp.org>
81466
81467         * lib/xstrndup.h: New file.
81468         * lib/xstrndup.c: New file.
81469
81470 2003-08-17  Bruno Haible  <bruno@clisp.org>
81471
81472         * modules/strndup (Files, Include): Add lib/strndup.h.
81473
81474 2003-08-17  Bruno Haible  <bruno@clisp.org>
81475
81476         * modules/euidaccess (Files): Add lib/euidaccess.h.
81477
81478 2003-08-17  Bruno Haible  <bruno@clisp.org>
81479
81480         * lib/strndup.h: New file.
81481
81482 2003-08-17  Bruno Haible  <bruno@clisp.org>
81483
81484         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81485         like AC_GNU_SOURCE.
81486         * modules/extensions (configure.ac): Comment out the invocation of
81487         gl_USE_SYSTEM_EXTENSIONS.
81488
81489 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81490
81491         Merges from coreutils, etc.
81492         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81493         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81494         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81495         fixing a typo.
81496         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81497         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81498
81499 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81500
81501         Document merge from coreutils.
81502         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81503         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81504         * modules/utime: Add m4/utimes-null.m4.
81505
81506 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81507
81508         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81509         space, undoing this 2003-08-12 change:
81510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81511
81512 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81513
81514         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81515         strtoul.c from libc, undoing this 2003-08-12 change:
81516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81517
81518 2003-08-16  Jim Meyering  <jim@meyering.net>
81519
81520         Merges from coreutils.
81521         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81522         prefix.  Adjust cache variables similarly.  Create 500 rather than
81523         just 300 files, to exercise bug on Darwin6.5, too.
81524         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81525         $missing_dir.
81526         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81527         AM_SYS_POSIX_TERMIOS.
81528         Reported by mkc@mathdogs.com.
81529         Also change use of $am_cv_sys_posix_termios
81530         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81531         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81532         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81533         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81534         in /proc/mounts until it finds one with matching device number.  This
81535         is unnecessary when the FILE argument *is* a mount point.  No stat call
81536         is necessary in that case.  So, disable the statvfs-testing code on
81537         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81538         as RedHat bug# 84846.
81539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81540         to 1MB, so as not to render systems with no stack size limit (e.g.,
81541         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81542         Include <unistd.h>.  On some systems,
81543         it is required for the definition of _SC_PAGESIZE.
81544
81545 2003-08-16  Jim Meyering  <jim@meyering.net>
81546
81547         Merge from coreutils.
81548         * lib/xstrtoimax.c: #else #if -> #elif.
81549         * lib/xstrtoumax.c: Likewise.
81550
81551 2003-08-16  Jim Meyering  <jim@meyering.net>
81552
81553         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81554         * m4/utimes.m4: Removed.
81555         * m4/utimes-null.m4: Renamed from utimes.m4.
81556
81557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81558         to 1MB, so as not to render systems with no stack size limit (e.g.,
81559         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81560         Include <unistd.h>.  On some systems,
81561         it is required for the definition of _SC_PAGESIZE.
81562
81563 2003-08-16  Jim Meyering  <jim@meyering.net>
81564         and Paul Eggert  <eggert@cs.ucla.edu>
81565
81566         Merges from coreutils, etc.
81567
81568         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81569         using the latest version from cvs.  This avoids problems with #line
81570         directives using a vendor (Sun) compiler.
81571         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81572         Don't set GETGROUPS_LIB here; now it's
81573         done via getgroups.m4's wrapper function.
81574         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81575         rather than just in sh-util/configure.in, so that the
81576         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81577         same.
81578         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81579         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81580         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81581         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81582         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81583         Remove code that is now done by the newly-required macros.
81584         Append $(EXEEXT) to DF_PROG.
81585         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81586         Do not invoke or require the following here,
81587         since prereq.m4 or some gnulib .m4 now does this for us:
81588         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81589         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81590         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81591         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81592         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81593         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81594         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81595         AC_FUNC_OBSTACK.
81596         Do not replace the following functions, as this is now the job
81597         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81598         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81599         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81600         atexit getpass, strdup, getpagesize.
81601         Replace 'raise'.
81602         Do not check for the following functions, as this is now the job
81603         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81604         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81605         setregid.
81606         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81607         Check for sys/sysctl.h.
81608         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81609         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81610         of checking for ssize_t ourselves.
81611
81612         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81613         Require every macro that gnulib/modules/* suggests for us.
81614         (jm_PREREQ_ADDEXT): New macro.
81615         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81616         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81617
81618         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81619         (gl_PHYSMEM): Use it.
81620         Also check for `table' function.
81621         Check for new headers and functions.
81622         Add check for sys/sysmp.h.
81623         With suggestions from Kaveh Ghazi.
81624         Ignore headers that are present but cannot be compiled.  This
81625         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81626         C 5.4.
81627
81628 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81629
81630         Document merge from coreutils.
81631         * modules/userspec: Depend on posixver.
81632         * modules/strftime: Depend on tzset.
81633
81634 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81635
81636         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81637         rather than tab, after '#' in shell-script copyright notices.
81638         Suggested by Bruno Haible.
81639
81640 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81641
81642         * config/srclist-update: Use three spaces, rather than tab, after '#'
81643         in shell-script copyright notices.  Suggested by Bruno Haible.
81644         Remove unnecessary parenthesization in regular expression.
81645
81646 2003-08-15  Jim Meyering  <jim@meyering.net>
81647
81648         Merge from coreutils.
81649         * lib/xgethostname.c: Include <stdlib.h>.
81650         (xghostname): Don't exit for anything other than memory-related
81651         failure; just return NULL.
81652         * lib/userspec.c: Include "posixver.h".
81653         (parse_user_spec): Accept `.' as a separator only
81654         in pre-POSIX-200112 mode.
81655         * lib/strtoimax.c: Use #elif rather than #else #if.
81656         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81657         Remove function, now that we can rely on a working tzset function.
81658         [!_LIBC]: Ensure that the required autoconf test has been run.
81659         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81660         Use underlying_strftime for %r.
81661         * lib/sha.c: Merge in some clean-up and optimization changes from
81662         glibc.
81663         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81664         Ensure that it is a multiple of 64.
81665         Rearrange loop exit tests so as to avoid performing an
81666         additional fread after encountering an error or EOF.
81667         * lib/realloc.c: Update copyright date.
81668
81669 2003-08-15  Jim Meyering  <jim@meyering.net>
81670         and Paul Eggert  <eggert@twinsun.com>
81671
81672         Merge from coreutils.
81673         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81674         member but strut utmpx does not.  Needed for AIX 4.3.3.
81675         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81676
81677 2003-08-15  Jim Meyering  <jim@meyering.net>
81678         and Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         Merges from coreutils, etc.
81681         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81682         Require gl_FUNC_TZSET_CLOBBER.
81683         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81684         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81685         members.
81686
81687 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81688
81689         Help the merge from coreutils.
81690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81692         * m4/tzset.m4: Use it too.
81693
81694 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81695
81696         * modules/tzset: New file.
81697
81698 2003-08-14  Jim Meyering  <jim@meyering.net>
81699
81700         Merges from coreutils.
81701         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81702         variable names, rather than @FNMATCH_H@.
81703         * modules/alloca: Likewise for $(ALLOCA_H).
81704
81705         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81706         the three copies of the literal target, `fnmatch.h'.
81707         * modules/alloca (alloca.h): Likewise.
81708
81709 2003-08-14  Jim Meyering  <jim@meyering.net>
81710
81711         Merge from coreutils.
81712         * m4/tzset.m4: New file.
81713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81714         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81715         otherwise, AIX 5.1 systems would end up using the latter.
81716         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81717         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81718         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81719         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81720
81721 2003-08-14  Jim Meyering  <jim@meyering.net>
81722
81723         Merge from coreutils.
81724         * lib/obstack.h: Whitespace changes.
81725         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81726         and xcalloc return values.
81727         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81728         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81729         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81730         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81731         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81732         error from mntctl.
81733         Use mntctl's return value to drive the entry-processing loop, since
81734         we can't rely on the value of the vmt_length member in the last
81735         entry.  On some systems doing so could result in exhausting
81736         virtual memory.  Based in part on a patch from Mike Jetzer.
81737
81738 2003-08-14  Jim Meyering  <jim@meyering.net>
81739         and Paul Eggert  <eggert@twinsun.com>
81740
81741         Merges from coreutils, plus other fixes.
81742         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81743         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81744         for credits and details.  Thanks to Kaveh Ghazi for helping
81745         to keep these files in sync.
81746         (ARRAY_SIZE): Define it.
81747         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81748         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81749         (memcasecmp): Don't assume size_t fits in unsigned int.
81750         Remove casts and duplicate code.
81751         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81752         (memcpy): Remove definition.
81753         Merge in some clean-up and optimization changes from glibc.
81754         [BLOCKSIZE]: Move definition to top of file.
81755         Ensure that it is a multiple of 64.
81756         Rearrange loop exit tests so as to avoid performing an
81757         additional fread after encountering an error or EOF.
81758         * lib/md5.h (md5_uintptr): Define.
81759         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81760         return to the initial working directory.  Preserve errno
81761         for caller.
81762         * lib/idcache.c: Include "xalloc.h".
81763         (xmalloc, xrealloc): Remove decls.
81764         (getuser): Remove casts no longer required in C89.
81765         * lib/human.c: Include stdio.h, for sprintf.
81766         * lib/group-member.c: Include "xalloc.h".
81767         (xmalloc, xrealloc): Remove decls.
81768         (get_group_info): Remove casts no longer required in C89.
81769         * lib/getusershell.c (readname): Remove casts no longer required in
81770         C89.
81771         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81772         * lib/getline.c: Whitespace fix, from coreutils.
81773
81774 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81775
81776         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81777         Check for isascii.
81778
81779         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81780         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81781         Undo previous (whitespace-only) change.
81782
81783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81784
81785         * lib/exclude.c: Include <ctype.h>
81786         (IN_CTYPE_DOMAIN): New macro.
81787         (is_space): New fn.
81788         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81789         and empty lines.
81790
81791         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81792         Undo previous (whitespace-only) change.
81793
81794 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81795
81796         * config/srclist-update: Change update back to the old behavior,
81797         leaving whitespace alone.  Use one 'sed' command rather than a
81798         pipeline.
81799         (fixlicense): Now a variable, not a function.
81800         (remove_trailing_blanks): Remove.
81801         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81802         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81803         Undo previous (whitespace-only) change.
81804
81805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81806
81807         Merge from coreutils.
81808         * modules/euidaccess: Add lib_SOURCES, include for new
81809         file euidaccess.h
81810
81811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81812
81813         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81814         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81815         Normalize leading white space and remove trailing white space.
81816
81817         Merge from coreutils
81818         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81819
81820         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81821         0.12.1.  These files are now being upgraded automatically by
81822         ../config/srclist-update.
81823
81824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81825
81826         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81827         Normalize leading white space and remove trailing white space.
81828         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81829         notice, as per ../config/srclist-update.
81830
81831         Merge from coreutils.
81832         * lib/euidaccess.h: New file.
81833         * lib/euidaccess.c: Include it.
81834         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81835         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81836         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81837
81838 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81839
81840         * config/srclist-update: Add copyright notice.
81841         (remove_id_lines, remove_trailing_blanks): New constants.
81842         (fixfile): Use them to normalize spacing a bit in copied files.
81843         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81844         Normalize leading white space and remove trailing white space.
81845
81846         * config/texinfo.tex: Sync with texinfo.
81847
81848         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81849         strtoul.c from libc, to merge coreutils whitespace changes.
81850
81851         * config/srclist.txt: Get the following m4 files from gettext:
81852         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81853         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81854         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81855         wint_t.m4.
81856
81857 2003-08-12  Karl Berry  <karl@gnu.org>
81858
81859         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81860         been made.
81861
81862 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81863
81864         * modules/gnu-source, m4/gnu-source.m4:
81865         Remove; we're assuming Autoconf 2.54 or later now.
81866         Suggested by Bruno Haible.
81867         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81868
81869 2003-08-11  Bruno Haible  <bruno@clisp.org>
81870
81871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81872
81873 2003-08-11  Bruno Haible  <bruno@clisp.org>
81874
81875         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81876         (vasnprintf): Use it instead of wcslen.
81877
81878 2003-08-11  Bruno Haible  <bruno@clisp.org>
81879
81880         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81881         value to ensure that _Bool promotes to int. Use #define for _Bool when
81882         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81883
81884 2003-08-10  Karl Berry  <karl@gnu.org>
81885
81886         * lib/regex.h: update from libc (whitespace fix).
81887
81888 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81889
81890         Merge some files from coreutils.  These changes were
81891         originally made by Jim Meyering.
81892         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81893         many older Unixes require this.
81894         * lib/alloca.c (alloca): Remove cast to argument of free;
81895         no longer needed in C89.
81896         * lib/alloca_.h, regex.h: Fix white space to match
81897         what GNU indent does.
81898
81899 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81900
81901         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81902         apparently Emacs's Unicode mode got confused before my 2003-08-05
81903         checkin.
81904
81905 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81906
81907         * m4/extensions.m4: New file.
81908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81909         Require gl_USE_SYSTEM_EXTENSIONS.
81910         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81911         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81912
81913 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81914
81915         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81916         * modules/extensions, modules/gnu-source: New files.
81917         * modules/timespec, modules/unlocked-io: Depend on extensions.
81918
81919 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81920
81921         * modules/restrict: New file.
81922         * MODULES.html.sh (func_all_modules): Add restrict.
81923         * modules/regex: Depend on restrict.
81924
81925 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81926
81927         * m4/restrict.m4: New file.
81928         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81929
81930 2003-08-07  Bruno Haible  <bruno@clisp.org>
81931
81932         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81933         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81934
81935 2003-08-07  Bruno Haible  <bruno@clisp.org>
81936
81937         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81938         makes the module 'getndelim2' compatible with the module 'getline'.
81939
81940 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81941
81942         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81943         byte with "\201" to avoid glitches when editing that source file
81944         with multi-gnome-terminal.
81945
81946 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81947
81948         * lib/bumpalloc.h: Remove.
81949
81950 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81951
81952         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81953         * modules/bumpalloc: Remove.
81954
81955 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81956
81957         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81958         GNU coding style.
81959
81960         Merge from coreutils.
81961         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81962         1. From glibc.
81963         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81964         from Karl Berry, implemented by Jim Meyering.
81965         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81966         from Dmitry V. Levin.
81967         Remove anachronistic cast of xrealloc.
81968         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81969         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81970         type. Otherwise, it wouldn't compile with at least /bin/cc on
81971         ymp-cray-unicos9.0.2.X.
81972         Combine two mostly-identical uses of alloca into one.
81973         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81974
81975 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81976
81977         [From Emacs.]
81978
81979         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81980         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81981         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81982         obsolete NLIST_NAME_UNION.
81983         [__GNU__]: Undef BSD and FSCALE.
81984         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81985
81986 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81987
81988         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81989         an enum type, so that it's guaranteed to promote to int.  See:
81990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81991
81992 2003-08-03  Karl Berry  <karl@gnu.org>
81993
81994         * config/depcomp: update from automake.
81995
81996 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81997
81998         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81999         (strerror): Don't assume that a printable int fits in 14 bytes.
82000
82001 2003-07-31  Bruno Haible  <bruno@clisp.org>
82002
82003         * modules/getpass-gnu: New file.
82004         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82005
82006 2003-07-31  Bruno Haible  <bruno@clisp.org>
82007
82008         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82009
82010 2003-07-24  Karl Berry  <karl@gnu.org>
82011
82012         * config/missing: update from automake.
82013
82014 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82015             Bruno Haible  <bruno@clisp.org>
82016
82017         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82018         * lib/getline.c (getline, getdelim): Likewise.
82019         Remove _GNU_SOURCE define; now it's defined in config.h through
82020         m4/getline.m4.
82021
82022 2003-07-23  Karl Berry  <karl@gnu.org>
82023
82024         * config/config.sub: update from prep.
82025
82026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82027
82028         * modules/xalloc (Depends-on): Add exitfail.
82029         * modules/xmemcoll: Likewise.
82030
82031 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82032
82033         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82034         over-parenthesization in macros.
82035
82036         Sync with coreutils.
82037
82038         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82039         required by C99.
82040
82041         Use `exit_failure' for xalloc and xmemcoll instead of their own
82042         private exit-failure variables.
82043         * lib/xalloc.h (xalloc_exit_failure): Remove.
82044         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82045         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82046         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82047         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82048         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82049
82050 2003-07-20  Jim Meyering  <jim@meyering.net>
82051
82052         * modules/closeout (Depends-on): Add exitfail.
82053         Suggestion from Bruno Haible.
82054
82055 2003-07-19  Karl Berry  <karl@gnu.org>
82056
82057         * config/config.sub: update from prep.
82058
82059 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82060
82061         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82062         Remove.
82063         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82064         to test that it can stand by itself.  Include "exitfail.h".
82065         Clients should set exit_failure instead.
82066         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82067
82068 2003-07-18  Bruno Haible  <bruno@clisp.org>
82069
82070         * modules/getndelim2: New file.
82071         * modules/getline: Share files with module getndelim2.
82072         * modules/getnline: Depend on getndelim2 instead of sharing files with
82073         it. Add getnline.c to lib_SOURCES.
82074         * MODULES.html.sh (func_all_modules): Add getndelim2.
82075
82076 2003-07-18  Bruno Haible  <bruno@clisp.org>
82077
82078         * m4/getndelim2.m4: New file.
82079         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82080         invoke gl_PREREQ_GETNDELIM2.
82081         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82082         gl_PREREQ_GETNDELIM2.
82083         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82084         gl_GETNDELIM2.
82085
82086 2003-07-18  Bruno Haible  <bruno@clisp.org>
82087
82088         * lib/getndelim2.h: New file.
82089         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82090         getndelim2.h.
82091         (getndelim2): Make non-static. Change return type to ssize_t.
82092         * lib/getline.h: Change argument names.
82093         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82094         * lib/getnline.c: Include getndelim2.h.
82095
82096 2003-07-18  Andreas Schwab  <schwab@suse.de>
82097
82098         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82099
82100 2003-07-17  Karl Berry  <karl@gnu.org>
82101
82102         * config/config.sub: update from prep.
82103
82104 2003-07-17  Bruno Haible  <bruno@clisp.org>
82105
82106         * modules/getnline: New file.
82107         * modules/getline: Add lib/getndelim2.c to source file list.
82108         * MODULES.html.sh (func_all_modules): Add getnline.
82109
82110 2003-07-17  Bruno Haible  <bruno@clisp.org>
82111
82112         * m4/getnline.m4: New file.
82113
82114 2003-07-17  Bruno Haible  <bruno@clisp.org>
82115
82116         * m4/Makefile.am.in: Remove file.
82117         * m4/Makefile.am: Remove file.
82118         * m4/Makefile.in: Remove file.
82119
82120 2003-07-17  Bruno Haible  <bruno@clisp.org>
82121
82122         * lib/getnline.h: New file.
82123         * lib/getnline.c: New file.
82124         * lib/getndelim2.c: New file, extracted from getline.c.
82125         (getndelim2): Renamed from getdelim2, with added nmax argument.
82126         * lib/getline.c: Include getndelim2.c.
82127         (getdelim2): Moved out to getndelim2.c.
82128         (getline, getdelim): Update.
82129
82130 2003-07-17  Bruno Haible  <bruno@clisp.org>
82131
82132         * lib/Makefile.am: Remove file.
82133         * lib/Makefile.in: Remove file.
82134
82135 2003-07-17  Bruno Haible  <bruno@clisp.org>
82136
82137         * configure.in: Remove file.
82138         * Makefile.in: Remove file.
82139
82140 2003-07-17  Bruno Haible  <bruno@clisp.org>
82141
82142         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82143
82144 2003-07-16  Karl Berry  <karl@gnu.org>
82145
82146         * config/srclist-update: was running fixlicense twice, which caused
82147                 texinfo.tex to be nullified for some reason.  Simplify,
82148                 $gplsrc is no longer needed as far as I can see?
82149
82150 2003-07-16  Jim Meyering  <jim@meyering.net>
82151
82152         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82153
82154 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82155
82156         * config/srclist.txt: Get the following files from gettext-runtime/intl
82157         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82158         ref-del.sin.  From Bruno Haible.
82159         * config/srclist-update (fixfile): Change grep pattern again, since the
82160         previous fix didn't work (there was another trailing $).  Use
82161         '[$]' to escape the $s.
82162
82163 2003-07-15  Karl Berry  <karl@gnu.org>
82164
82165         * lib/vasnprintf.c: update from gettext.
82166
82167 2003-07-15  Karl Berry  <karl@gnu.org>
82168
82169         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82170         gets expanded when surrounded by '$'.
82171
82172 2003-07-15  Jim Meyering  <jim@meyering.net>
82173
82174         * modules/save-cwd: Don't depend on error.  From Derek Price.
82175
82176 2003-07-15  Jim Meyering  <jim@meyering.net>
82177
82178         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82179
82180 2003-07-14  Simon Josefsson  <jas@extundo.com>
82181
82182         * modules/mempcpy: New file.
82183         * MODULES.html.sh (func_all_modules): Add mempcpy.
82184
82185 2003-07-14  Simon Josefsson  <jas@extundo.com>
82186
82187         * m4/mempcpy.m4: New file.
82188
82189 2003-07-14  Simon Josefsson  <jas@extundo.com>
82190
82191         * lib/mempcpy.h: New file.
82192         * lib/mempcpy.c: New file.
82193
82194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82195
82196         * modules/getdate, modules/posixtm: Depend on mktime.
82197
82198 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82199
82200         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82201         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82202         unicodeio.c, unicodeio.h, unlocked-io.h:
82203         Switch from LGPL to GPL.
82204
82205 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82206
82207         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82208         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82209         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82210         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82211         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82212         updated automatically by ../config/srclist-update.  This changes
82213         their license from LPGL to GPL.
82214
82215 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82216
82217         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82218         assumed to refer to the root of the most recent stable gettext version.
82219         * config/srclistvars.sh: Add defaults for eggert.
82220         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82221         Match "This program" as well as "The program".  This is needed
82222         for gettext.
82223
82224 2003-07-14  Jim Meyering  <jim@meyering.net>
82225
82226         Don't emit diagnostics.  Let callers do that.
82227         * lib/save-cwd.c: Don't include "error.h".
82228         (save_cwd): Don't call error.  Ensure that errno is valid
82229         when returning nonzero.
82230
82231         * lib/save-cwd.h (restore_cwd): Update prototype.
82232         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82233         Simplify.  Don't call error upon failure.  Let callers do that.
82234         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82235         when auditing is enabled.  But don't bother updating the #if.
82236
82237 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82238
82239         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82240         it breaks C++ compilation.
82241         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82242
82243 2003-07-10  Simon Josefsson  <jas@extundo.com>
82244
82245         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82246
82247 2003-07-10  Jim Meyering  <jim@meyering.net>
82248
82249         * m4/clock_time.m4: Remove trailing blank.
82250         * m4/intmax_t.m4: Likewise.
82251
82252 2003-07-10  Jim Meyering  <jim@meyering.net>
82253
82254         * lib/vasnprintf.c: Remove trailing blanks.
82255         Make cpp indentation consistent.
82256
82257 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82258
82259         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82260         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82261         Switch from LGPL to GPL.
82262
82263 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82264
82265         * config/srclist.txt: Sort sublists.  Add
82266         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82267         that differ from gnulib for one reason or another; we'd like this list
82268         to be smaller but for now let's document what we have.
82269
82270 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82271
82272         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82273         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82274         and sweeter "eval x=$x".
82275         * config/srclist.txt: Get lib/argp* from glibc.
82276
82277 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82278
82279         * lib/mktime.c: Fix some boundary cases and remove need for floating
82280         point.
82281
82282         Issue a compile-time diagnostic if time_t is floating point, or if
82283         two's complement arithmetic is not in effect, or if arithmetic
82284         right shift does not propagate the sign.  These assumptions were
82285         all in the original code but they weren't checked.
82286
82287         (TIME_T_MIDPOINT, verify): New macros.
82288         (__isleap): Remove; it has integer overflow problems.
82289         (leapyear): New function, without those problems.
82290         (ydhms_tm_diff): Remove; splitting into two parts.
82291         (ydhms_diff): New function, containing the arithmetic part of
82292         the old ydhms_tm_diff function.  Issue a compile-time
82293         diagnostic if we are not using C99 integer division.
82294         Avoid casts when possible.
82295         (guess_time_tm): New function, containing the checking part of
82296         the old ydhms_tm_diff function.  Return the new value, rather than
82297         the difference between it and the old.  Accept a new argument T
82298         so that *T specifies the old value.  Check for overflow in the result.
82299
82300         (__mktime_internal): Use a time_t offset, not a long int offset.
82301         This undoes the 2003-06-04 change, which is no longer needed now
82302         that we have better overflow checking.
82303         (localtime_offset): Likewise.
82304
82305         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82306         and long are 64-bit but int is only 32-bit.
82307         (ydhms_diff): Use long int to store year1 and yday1.
82308         Issue a compile-time diagnostic if long int is not wide enough.
82309
82310         (__mktime_internal): Use long int to store adjusted year and yday.
82311         Use plain C rather than preprocessor commands, if that doesn't
82312         affect efficiency.
82313         Check for overflow (and try to repair) after each probe
82314         rather than checking only at the very end.  This avoids some bugs
82315         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82316         does not equal GMT offset at maximum time).
82317         Use integer to check for overflow rather than floating point; this
82318         is more portable to non-IEEE hosts, and is a tad faster.
82319         When we detect that we are oscillating between two values,
82320         don't check whether tm_isdst has the requested value, since
82321         we already know the answer.  When tm_isdst has the wrong value,
82322         use a different heuristic to find the right one, based on the
82323         extreme values actually observed in practice in tz2003a,
82324         rather than the (overly optimistic) "previous 3 calendar quarters".
82325
82326         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82327         "T const" to accommodate glibc style.
82328         (check_result): Use less-confusing report format.  "long" -> "long int.
82329         (main): Likewise.
82330         Don't loop if the iteration overflows time_t.
82331         Allow a negative step in the iteration.
82332
82333 2003-07-06  Karl Berry  <karl@gnu.org>
82334
82335         * config/depcomp: update from automake.
82336         * config/config.sub: update from prep.
82337
82338 2003-07-03  Karl Berry  <karl@gnu.org>
82339
82340         * config/config.guess: update from prep.
82341
82342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82343
82344         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82345         xreadlink.c now includes it unconditionally.
82346
82347 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82348
82349         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82350         having it depend on HAVE_SYS_TYPES_H.
82351
82352 2003-07-01  Bruno Haible  <bruno@clisp.org>
82353
82354         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82355         <sys/types.h> should be sufficient.
82356         Reported by Paul Eggert.
82357
82358 2003-06-26  Karl Berry  <karl@gnu.org>
82359
82360         * config/depcomp: update from automake.
82361
82362 2003-06-26  Bruno Haible  <bruno@clisp.org>
82363
82364         * modules/human: Depend on module stdbool.
82365
82366 2003-06-25  Bruno Haible  <bruno@clisp.org>
82367
82368         * modules/readlink: New file.
82369         * modules/xreadlink: Depend on it.
82370         * MODULES.html.sh (func_all_modules): Add readlink.
82371
82372 2003-06-25  Bruno Haible  <bruno@clisp.org>
82373
82374         * m4/readlink.m4: New file.
82375
82376 2003-06-25  Bruno Haible  <bruno@clisp.org>
82377
82378         * lib/readlink.c: New file.
82379
82380 2003-06-22  Karl Berry  <karl@gnu.org>
82381
82382         * config/srclist.txt: update mkinstalldirs from automake.
82383         * config/mkinstalldirs: update.
82384
82385 2003-06-22  Bruno Haible  <bruno@clisp.org>
82386
82387         Portability to mingw32.
82388         * m4/ssize_t.m4: New file, from GNU gettext.
82389         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82390         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82391
82392 2003-06-22  Bruno Haible  <bruno@clisp.org>
82393
82394         * modules/safe-read: Add m4/ssize_t.m4.
82395         * modules/xreadlink: Add m4/ssize_t.m4.
82396
82397 2003-06-20  Bruno Haible  <bruno@clisp.org>
82398
82399         Assume C89, so PARAMS isn't needed.
82400         * lib/unicodeio.h (PARAMS): Remove.
82401         * lib/unicodeio.c: Don't use PARAMS.
82402
82403 2003-06-18  Karl Berry  <karl@gnu.org>
82404
82405         * config/config.{guess,sub}: update from prep.
82406
82407 2003-06-18  Jim Meyering  <jim@meyering.net>
82408
82409         Merge changes from coreutils.
82410         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82411         Remove explicit declarations of xmalloc and realloc.
82412         Include xalloc.h.
82413         (read_utmp): Remove anachronistic cast of xmalloc.
82414
82415 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82416
82417         Assume C89, so PARAMS isn't needed.
82418         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82419         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82420         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82421         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82422         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82423         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82424         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82425         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82426         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82427         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82428         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82429         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82430         no longer needed. Anyway, config.h should always be included before any
82431         other file.
82432
82433 2003-06-11  Simon Josefsson  <jas@extundo.com>
82434
82435         * modules/sysexits: New file.
82436         * MODULES.html.sh (func_all_modules): Add sysexits.
82437
82438 2003-06-11  Simon Josefsson  <jas@extundo.com>
82439
82440         * lib/sysexit_.h: New file.
82441
82442 2003-06-11  Derek Price  <derek@ximbiot.com>
82443
82444         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82445         necessary.
82446
82447 2003-06-11  Bruno Haible  <bruno@clisp.org>
82448
82449         * m4/sysexits.m4: New file.
82450
82451 2003-06-10  Simon Josefsson  <jas@extundo.com>
82452
82453         * lib/argp.h: New file, from glibc.
82454         * lib/argp-ba.c: New file, from glibc.
82455         * lib/argp-eexst.c: New file, from glibc.
82456         * lib/argp-fmtstream.c: New file, from glibc.
82457         * lib/argp-fmtstream.h: New file, from glibc.
82458         * lib/argp-fs-xinl.c: New file, from glibc.
82459         * lib/argp-help.c: New file, from glibc.
82460         * lib/argp-namefrob.h: New file, from glibc.
82461         * lib/argp-parse.c: New file, from glibc.
82462         * lib/argp-pv.c: New file, from glibc.
82463         * lib/argp-pvh.c: New file, from glibc.
82464         * lib/argp-xinl.c: New file, from glibc.
82465
82466 2003-06-10  Simon Josefsson  <jas@extundo.com>
82467
82468         * modules/strchrnul: New file.
82469
82470 2003-06-10  Simon Josefsson  <jas@extundo.com>
82471
82472         * modules/argp: New file.
82473
82474 2003-06-10  Simon Josefsson  <jas@extundo.com>
82475
82476         * m4/strchrnul.m4: New file.
82477
82478 2003-06-10  Simon Josefsson  <jas@extundo.com>
82479
82480         * lib/strchrnul.h: New file.
82481         * lib/strchrnul.c: New file.
82482
82483 2003-06-10  Bruno Haible  <bruno@clisp.org>
82484
82485         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82486
82487 2003-06-07  Karl Berry  <karl@gnu.org>
82488
82489         * config/config.{guess,sub}: update from prep.
82490
82491 2003-06-07  Jim Meyering  <jim@meyering.net>
82492
82493         * modules/strtod: Use $(...) notation, not @...@ for
82494         AC_REPLACE'd variables.
82495         * modules/localcharset: Likewise.
82496
82497 2003-06-07  Jim Meyering  <jim@meyering.net>
82498
82499         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82500         in place of my name in the copyright comment.
82501         Remove definition and uses of __P.
82502
82503         From coreutils.
82504         * lib/stat.c: Don't declare xmalloc explicitly.
82505         Instead, include "xalloc.h".
82506         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82507         xrealloc, and xcalloc return values.
82508         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82509         Improve comment.
82510         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82511
82512 2003-06-07  Bruno Haible  <bruno@clisp.org>
82513
82514         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82515         avoid AC_CONFIG_LINKS.
82516         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82517         fnmatch.h, to avoid AC_CONFIG_LINKS.
82518         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82519
82520 2003-06-07  Bruno Haible  <bruno@clisp.org>
82521
82522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82523         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82524         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82525         directory.
82526         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82527         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82528         directory.
82529
82530 2003-06-06  Jim Meyering  <jim@meyering.net>
82531
82532         Merge from coreutils.
82533         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82534         Consolidate declarations and initializations of *_base* locals.
82535
82536         Merge from coreutils.
82537         This avoids a core dump on systems without GNU putenv,
82538         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82539         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82540         (unsetenv): New static function, from GNU libc.
82541         (rpl_putenv): Use it.
82542
82543         * lib/modechange.c: Remove trailing blanks.
82544
82545         Merge from coreutils.
82546         * lib/fsusage.c: Remove declaration of statfs.
82547         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82548
82549         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82550
82551 2003-06-06  Jim Meyering  <jim@meyering.net>
82552
82553         * lib/stdbool_.h: Renamed from stdbool.h.in.
82554
82555 2003-06-06  Jim Meyering  <jim@meyering.net>
82556             Bruno Haible  <bruno@clisp.org>
82557
82558         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82559         Adjust Makefile.am snippet not to redirect directly to target.
82560         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82561
82562 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82563
82564         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82565         mismatch, look in future quarters as well as past.  This fixes a
82566         bug when processing fall-backwards gaps immediately after a long
82567         period of daylight-saving time.
82568
82569         * lib/mktime.c: Assume freestanding C89 or better.
82570         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82571         (__P): Remove; not used.
82572         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82573         (mktime, not_equal_tm, print_tm, check_result,
82574         main): Use prototypes.  Use const * where appropriate.
82575         (main): Fix typo in testing code that uncovered by above changes.
82576         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82577
82578 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82579
82580         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82581         locale.h, localeconv.  This merges changes from coreutils.
82582
82583         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82584         It can be removed after the next Autoconf is released.
82585         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82586         needed.
82587
82588 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82589
82590         * lib/mktime.c: Fix Debian bug 177940
82591         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82592         (localtime_offset): Now long int, not time_t, because we want it
82593         to be guaranteed to be signed.  All uses changed.
82594         (__mktime_internal): If overflow would occur when adding offset,
82595         don't add it.
82596
82597         Merge 'human' changes from coreutils.  Rewrite to support
82598         locale-specific notations like thousands separators.
82599         * lib/human.c: Simplify authorship notice.
82600         Include human.h immediately after config.h.
82601         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82602         <limits.h>: Do not include, since human.h does.
82603         (SIZE_MAX, UINTMAX_MAX): New macros.
82604         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82605         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82606         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82607         (power_letter): Renamed from suffixes.
82608         (generate_suffix_backwards): Remove.
82609         (adjust_value): Now takes int style (because of human.h changes)
82610         and long double value (for greater precision on some platforms).
82611         (group_number): New function.
82612         (human_readable): Use it.  Use integer options, not enum.
82613         Put the options before the sizes in the arg list.
82614         Support all the new options.
82615         The old human_readable function has been removed;
82616         use inttostr.h instead.
82617         (human_readable, default_block_size, humblock):
82618         Use uintmax_t, not int, for block sizes.
82619         (human_readable_inexact, block_size_types): Remove.
82620         (block_size_opts): New constant.
82621         (human_options): Renamed from human_block_size, with new signature
82622         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82623         * lib/human.h: Add copyright and authorship notice.
82624         Include <limits.h> and <stdbool.h> unconditionally.
82625         (PARAMS): Remove.  All uses removed.
82626         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82627         (enum human_inexact_style): Remove tag; now a nameless enum.
82628         (human_floor, human_ceiling, human_round_to_even): Now have
82629         values 2, 0, 1 rather than -1, 1, 0.
82630         (human_group_digits, human_suppress_point_zero, human_autoscale,
82631         human_base_1024, human_SI, human_B): New constants.
82632         (human_readable_inexact, human_block_size): Remove.
82633         (human_readable): Size args are now uintmax_t, not int.
82634         (human_options): New decl.
82635
82636         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82637         unnecessary now that we assume C89 or better.  This change
82638         imported from coreutils.
82639
82640         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82641         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82642         in the 2003-05-30 sync from glibc.
82643
82644         .h files should stand alone, but we shouldn't include <sys/types.h>
82645         if we can get away with just <stddef.h>.
82646
82647         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82648         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82649         rather than <sys/types.h>, as we merely need size_t.
82650         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82651         to get size_t.
82652         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82653         Include <stdio.h>, to get FILE.
82654         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82655         memcasecmp.h has included <stddef.h> and all we need is size_t.
82656         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82657         our interface, instead of including <sys/types.h>
82658
82659 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82660
82661         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82662         now, as glibc mktime is buggy on non-glibc systems.
82663
82664 2003-06-03  Karl Berry  <karl@gnu.org>
82665
82666         * config/config.sub: update from prep.
82667
82668 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82669
82670         [from coreutils]
82671         Fix some minor time-related bugs with POSIX time arguments.
82672         Some valid time stamps were being rejected (notably -1, and
82673         time stamps before 1900 on 64-bit hosts).  And some invalid
82674         time stamps were being accepted, e.g. September 31.
82675
82676         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82677         that we can return (time_t) -1 successfully.
82678         * lib/posixtm.c: Likewise.
82679         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82680         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82681         (t): Remove static var.
82682         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82683         of static var.  All uses changed.
82684         (year): Do not reject years before 1900; they can occur with
82685         64-bit time_t.
82686         (posix_time_parse): Do not check for out-of-range components;
82687         that is now the caller's responsibility, since our checks were
82688         only approximations.
82689         (posixtime): Use mktime to check for out-of-range components,
82690         since it knows them exactly.
82691         If mktime returns (time_t) -1, check whether an error actually occurred
82692         by invoking localtime on -1.
82693         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82694         posixtime failures better.
82695         Improve the test data (in comments only).
82696
82697 2003-06-02  Karl Berry  <karl@gnu.org>
82698
82699         * config/mkinstalldirs (version): new variable.
82700         (--version): new option.
82701         (usage): improve message.
82702
82703 2003-05-30  Karl Berry  <karl@gnu.org>
82704
82705         * lib/mktime.c: update from libc.
82706
82707 2003-05-30  Bruno Haible  <bruno@clisp.org>
82708
82709         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82710         * config/config.rpath: Upgrade to gettext-0.12.1.
82711
82712 2003-05-30  Bruno Haible  <bruno@clisp.org>
82713
82714         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82715         * m4/nls.m4: New file, from gettext-0.12.1.
82716         * m4/po.m4: New file, from gettext-0.12.1.
82717         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82718
82719 2003-05-30  Bruno Haible  <bruno@clisp.org>
82720
82721         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82722         * lib/localcharset.h: Likewise.
82723         * lib/localcharset.c: Likewise.
82724
82725 2003-05-29  Karl Berry  <karl@gnu.org>
82726
82727         * config/config.rpath: update from gettext.
82728
82729 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82730
82731         Assume the headers required for C89 freestanding compilers.
82732         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82733         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82734         * m4/human.m4 (gl_HUMAN): Likewise.
82735         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82736         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82737         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82738         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82740         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82741
82742 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82743
82744         Assume the headers required for C89 freestanding compilers.
82745         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82746         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82747         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82748         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82749         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82750         define, since <limits.h> is guaranteed to do that.
82751         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82752         * lib/exclude.c: Include <stdbool.h> unconditionally.
82753         * lib/tempname.c: Include <stddef.h> unconditionally.
82754         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82755         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82756         <stddef.h> does that.
82757         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82758         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82759         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82760         needed.
82761         * lib/xstrtol.c: Likewise.
82762         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82763         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82764
82765         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82766         warnings on some platforms.
82767
82768         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82769         arbitrarily.
82770
82771 2003-05-26  Jim Meyering  <jim@meyering.net>
82772
82773         Merge in a change from coreutils:
82774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82775         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82776         that condition, rather than `-1' which is slightly misleading.
82777         Change the name of the cache variable to have the gl_ prefix.
82778         Prompted by a patch from Richard Dawe for DJGPP.
82779
82780 2003-05-24  Karl Berry  <karl@gnu.org>
82781
82782         * config/config.guess: update from prep.
82783
82784 2003-05-22  Karl Berry  <karl@gnu.org>
82785
82786         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82787
82788 2003-05-20  Karl Berry  <karl@gnu.org>
82789
82790         * config/config.guess: update from prep.
82791
82792 2003-05-18  Karl Berry  <karl@gnu.org>
82793
82794         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82795         might actually be set by the user.
82796
82797         * config/depcomp, install-sh, mdate-sh: update from automake.
82798
82799 2003-05-17  Bruno Haible  <bruno@clisp.org>
82800
82801         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82802         invalid expansion for AC_EGREP_CPP.
82803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82805         Suggested by Akim Demaille <akim@epita.fr> in
82806         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82807
82808 2003-05-12  Jim Meyering  <jim@meyering.net>
82809
82810         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82811         the space-padded-by-default conversion specifiers, %e, %k, %l.
82812
82813 2003-05-12  Bruno Haible  <bruno@clisp.org>
82814
82815         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82816         the string is longer than 4 KB.
82817
82818 2003-05-11  Karl Berry  <karl@gnu.org>
82819
82820         * config/config.{guess,sub}: update from prep.
82821
82822 2003-05-09  Bruno Haible  <bruno@clisp.org>
82823
82824         * modules/error: Add m4/strerror_r.m4 to file list.
82825
82826 2003-05-03  Bruno Haible  <bruno@clisp.org>
82827
82828         Upgrade to Unicode-4.0.
82829         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82830         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82831         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82832         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82833         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82834         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82835         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82836         Change width of U+E0100..U+E01EF from 1 to 0.
82837
82838 2003-04-25  Jim Meyering  <jim@meyering.net>
82839
82840         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82841         of type size_t, not int.
82842
82843 2003-04-25  Bruno Haible  <bruno@clisp.org>
82844
82845         * lib/copy-file.c: Include <stddef.h>, for size_t.
82846
82847 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82848
82849         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82850         code which expansion is under static control.  Patch imported from
82851         Akim Demaille's patch to Bison; see
82852         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82853
82854 2003-04-14  Bruno Haible  <bruno@clisp.org>
82855
82856         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82857
82858 2003-04-11  Jim Meyering  <jim@meyering.net>
82859
82860         Merge changes from Coreutils.
82861
82862         2003-03-22  Jim Meyering  <jim@meyering.net>
82863
82864         * lib/strftime.c (widen): Cast alloca return value to proper type.
82865
82866         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82867
82868         From GNU libc.
82869         * lib/strftime.c (my_strftime): Handle very large width
82870         specifications for numeric values correctly.  Improve checks for
82871         overflow.
82872
82873         2003-01-19  Jim Meyering  <jim@meyering.net>
82874
82875         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82876         definitions.
82877         (nl_get_alt_digit) [! defined my_strftime]: Define.
82878         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82879         _nl_get_alt_digit and _nl_get_walt_digit.
82880
82881         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82882         libc. These changes have no effect outside of _LIBC.
82883
82884 2003-04-10  Bruno Haible  <bruno@clisp.org>
82885
82886         * modules/findprog: New file.
82887         * MODULES.html.sh (func_all_modules): Add it.
82888
82889 2003-04-10  Bruno Haible  <bruno@clisp.org>
82890
82891         * m4/findprog.m4: New file.
82892         * m4/eaccess.m4: New file.
82893
82894 2003-04-10  Bruno Haible  <bruno@clisp.org>
82895
82896         * lib/findprog.h: New file, from GNU gettext.
82897         * lib/findprog.c: New file, from GNU gettext.
82898
82899 2003-04-05  Jim Meyering  <jim@meyering.net>
82900
82901         Merge changes from Coreutils.
82902
82903         * lib/exclude.h (PARAMS): Remove definition and uses.
82904         * lib/exclude.c: Remove uses of `PARAMS'.
82905
82906         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82907         Add test-cases for DOS filenames. Declare program_name.
82908         (main): Set up program_name.  Patch by Rich Dawe.
82909
82910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82911         error from mntctl.
82912         Use mntctl's return value to drive the entry-processing loop, since
82913         we can't rely on the value of the vmt_length member in the last
82914         entry.  On some systems doing so could result in exhausting
82915         virtual memory.  Based in part on a patch from Mike Jetzer.
82916
82917 2003-04-04  Bruno Haible  <bruno@clisp.org>
82918
82919         * modules/linebreak: New file.
82920         * MODULES.html.sh (func_all_modules): Add it.
82921
82922 2003-04-04  Bruno Haible  <bruno@clisp.org>
82923
82924         * m4/linebreak.m4: New file.
82925
82926 2003-04-04  Bruno Haible  <bruno@clisp.org>
82927
82928         * lib/linebreak.h: New file, from GNU gettext.
82929         * lib/linebreak.c: New file, from GNU gettext with slight
82930         modifications.
82931         * lib/lbrkprop.h: New file, from GNU gettext.
82932
82933 2003-04-03  Bruno Haible  <bruno@clisp.org>
82934
82935         * modules/utf8-ucs4: New file.
82936         * modules/utf16-ucs4: New file.
82937         * modules/ucs4-utf8: New file.
82938         * modules/ucs4-utf16: New file.
82939         * MODULES.html.sh (func_all_modules): Add them.
82940
82941 2003-04-03  Bruno Haible  <bruno@clisp.org>
82942
82943         * m4/utf-ucs4.m4: New file.
82944         * m4/ucs4-utf.m4: New file.
82945
82946 2003-04-03  Bruno Haible  <bruno@clisp.org>
82947
82948         * lib/utf8-ucs4.h: New file, from GNU gettext.
82949         * lib/utf16-ucs4.h: New file, from GNU gettext.
82950         * lib/ucs4-utf8.h: New file, from GNU gettext.
82951         * lib/ucs4-utf16.h: New file, from GNU gettext.
82952
82953 2003-04-02  Bruno Haible  <bruno@clisp.org>
82954
82955         * modules/binary-io: New file.
82956         * MODULES.html.sh (func_all_modules): Add it.
82957
82958 2003-04-02  Bruno Haible  <bruno@clisp.org>
82959
82960         * lib/binary-io.h: New file, from GNU gettext.
82961
82962 2003-04-01  Bruno Haible  <bruno@clisp.org>
82963
82964         * modules/pathname: New file.
82965         * MODULES.html.sh (func_all_modules): Add it.
82966
82967 2003-04-01  Bruno Haible  <bruno@clisp.org>
82968
82969         * lib/pathname.h: New file, from GNU gettext.
82970         * lib/concatpath.c: New file, from GNU gettext.
82971
82972 2003-03-30  Bruno Haible  <bruno@clisp.org>
82973
82974         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82975
82976 2003-03-30  Bruno Haible  <bruno@clisp.org>
82977
82978         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82979         function chown() doesn't exist.
82980
82981 2003-03-28  Bruno Haible  <bruno@clisp.org>
82982
82983         * modules/copy-file: New file.
82984         * MODULES.html.sh (func_all_modules): Add it.
82985
82986 2003-03-28  Bruno Haible  <bruno@clisp.org>
82987
82988         * m4/copy-file.m4: New file.
82989
82990 2003-03-28  Bruno Haible  <bruno@clisp.org>
82991
82992         * lib/copy-file.h: New file, from GNU gettext.
82993         * lib/copy-file.c: New file, from GNU gettext.
82994
82995 2003-03-18  Jim Meyering  <jim@meyering.net>
82996
82997         * lib/quote.c (quote_n): Fix typo in comment.
82998
82999 2003-03-18  Bruno Haible  <bruno@clisp.org>
83000
83001         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83002         checking.
83003         * m4/onceonly_2_57.m4: Likewise.
83004
83005 2003-03-17  Bruno Haible  <bruno@clisp.org>
83006
83007         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83008         (m4_quote): Remove macro.
83009         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83010
83011 2003-03-14  Jim Meyering  <jim@meyering.net>
83012
83013         Merge changes from Coreutils.
83014         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83015         to be const, in order to avoid warnings.
83016         (obstack_room): Likewise.
83017         (obstack_empty_p): Likewise.
83018
83019 2003-03-14  Bruno Haible  <bruno@clisp.org>
83020
83021         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83022         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83023
83024 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83025
83026         Merge changes from Bison.
83027         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83028         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83029         when compiling Bison 1.875's `bitset bset = obstack_alloc
83030         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83031         * lib/hash.c: Include <stdbool.h> unconditionally.
83032
83033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83034
83035         * m4/onceonly.m4 (m4_quote): New macro.
83036         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83037         Quote AC_FOREACH variable-expansions properly.
83038
83039 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83040
83041         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83042
83043 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83044
83045         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83046         Reported by Bruce Becker; see:
83047         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83048
83049 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83050             Bruno Haible  <bruno@clisp.org>
83051
83052         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83053         Reported by John Hughes, see
83054         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83055
83056 2003-02-20  Bruno Haible  <bruno@clisp.org>
83057
83058         * MODULES.html.sh (func_all_modules): Add poll.
83059
83060 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83061
83062         * modules/poll: New file.
83063
83064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83065
83066         * lib/poll_.h: New file.
83067         * lib/poll.c: New file.
83068
83069 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83070
83071         * m4/poll.m4: New file.
83072
83073 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83074
83075         * modules/mathl: New file.
83076
83077 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83078
83079         * lib/mathl.h: New file.
83080         * lib/acosl.c: New file.
83081         * lib/asinl.c: New file.
83082         * lib/atanl.c: New file.
83083         * lib/ceill.c: New file.
83084         * lib/cosl.c: New file.
83085         * lib/expl.c: New file.
83086         * lib/floorl.c: New file.
83087         * lib/frexpl.c: New file.
83088         * lib/ldexpl.c: New file.
83089         * lib/logl.c: New file.
83090         * lib/sincosl.c: New file.
83091         * lib/sinl.c: New file.
83092         * lib/sqrtl.c: New file.
83093         * lib/tanl.c: New file.
83094         * lib/trigl.c: New file.
83095         * lib/trigl.h: New file.
83096
83097 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83098
83099         * m4/mathl.m4: New file.
83100
83101 2003-02-18  Bruno Haible  <bruno@clisp.org>
83102
83103         * MODULES.html.sh (func_all_modules): Add mathl.
83104
83105 2003-02-17  Bruno Haible  <bruno@clisp.org>
83106
83107         * modules/mkdtemp: New module.
83108         * MODULES.html.sh (func_all_modules): Add it.
83109
83110 2003-02-17  Bruno Haible  <bruno@clisp.org>
83111
83112         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83113
83114 2003-02-17  Bruno Haible  <bruno@clisp.org>
83115
83116         * lib/mkdtemp.h: New file, from GNU gettext.
83117         * lib/mkdtemp.c: New file, from GNU gettext.
83118
83119 2003-02-02  Jim Meyering  <jim@meyering.net>
83120
83121         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83122         e.g. glibc-2.2.93.
83123
83124 2003-01-31  Bruno Haible  <bruno@clisp.org>
83125
83126         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83127         'rpl_rename'.
83128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83129         'rpl_strnlen'.
83130         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83131         'rpl_strtod'.
83132         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83133         'rpl_utime'.
83134
83135 2003-01-31  Bruno Haible  <bruno@clisp.org>
83136
83137         * lib/rename.c: #undef rename before defining rpl_rename.
83138         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83139
83140 2003-01-30  Bruno Haible  <bruno@clisp.org>
83141
83142         * modules/vasnprintf, modules/vasprintf: New modules.
83143         * MODULES.html.sh (func_all_modules): Add them.
83144
83145 2003-01-30  Bruno Haible  <bruno@clisp.org>
83146
83147         * m4/signed.m4: New file, from GNU gettext.
83148         * m4/longdouble.m4: New file, from GNU gettext.
83149         * m4/wchar_t.m4: New file, from GNU gettext.
83150         * m4/wint_t.m4: New file, from GNU gettext.
83151         * m4/vasnprintf.m4: New file.
83152         * m4/vasprintf.m4: New file.
83153
83154 2003-01-30  Bruno Haible  <bruno@clisp.org>
83155
83156         * lib/printf-args.h: New file, from GNU gettext.
83157         * lib/printf-args.c: New file, from GNU gettext.
83158         * lib/printf-parse.h: New file, from GNU gettext.
83159         * lib/printf-parse.c: New file, from GNU gettext.
83160         * lib/vasnprintf.h: New file, from GNU gettext.
83161         * lib/vasnprintf.c: New file, from GNU gettext.
83162         * lib/asnprintf.c: New file, from GNU gettext.
83163         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83164         * lib/vasprintf.c: New file, from GNU gettext.
83165         * lib/asprintf.c: New file, from GNU gettext.
83166
83167 2003-01-29  Bruno Haible  <bruno@clisp.org>
83168
83169         * modules/stpncpy: New module.
83170         * MODULES.html.sh (func_all_modules): Add it.
83171
83172 2003-01-29  Bruno Haible  <bruno@clisp.org>
83173
83174         * m4/stpncpy.m4: New file.
83175
83176 2003-01-29  Bruno Haible  <bruno@clisp.org>
83177
83178         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83179         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83180
83181 2003-01-28  Bruno Haible  <bruno@clisp.org>
83182
83183         * modules/c-ctype: New module.
83184         * MODULES.html.sh (func_all_modules): Add it.
83185
83186 2003-01-28  Bruno Haible  <bruno@clisp.org>
83187
83188         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83189         Paul Eggert.
83190         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83191         Paul Eggert.
83192
83193 2003-01-27  Bruno Haible  <bruno@clisp.org>
83194
83195         * modules/xsetenv: New module.
83196         * MODULES.html.sh (func_all_modules): Add it.
83197
83198 2003-01-27  Bruno Haible  <bruno@clisp.org>
83199
83200         * lib/xsetenv.h: New file, from GNU gettext.
83201         * lib/xsetenv.c: New file, from GNU gettext.
83202
83203 2003-01-23  Jim Meyering  <jim@meyering.net>
83204
83205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83206         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83207
83208 2003-01-23  Bruno Haible  <bruno@clisp.org>
83209
83210         * modules/minmax: New module.
83211         * MODULES.html.sh (func_all_modules): Add it.
83212
83213 2003-01-23  Bruno Haible  <bruno@clisp.org>
83214
83215         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83216         Eggert.
83217
83218 2003-01-22  Bruno Haible  <bruno@clisp.org>
83219
83220         * modules/exit: New module.
83221         * MODULES.html.sh (func_all_modules): Add it.
83222
83223 2003-01-22  Bruno Haible  <bruno@clisp.org>
83224
83225         * lib/exit.h: New file, from GNU gettext.
83226
83227 2003-01-19  Bruno Haible  <bruno@clisp.org>
83228
83229         * gnulib-tool: Recognize option --extract-maintainer.
83230         (func_get_maintainer): New function.
83231         * modules/*: Add Maintainer entry.
83232
83233 2003-01-16  Jim Meyering  <jim@meyering.net>
83234
83235         * m4/regex.m4: The `regex' struct is both input and output.
83236         Initialize it before each use.  Patch by Tim Waugh.
83237
83238 2003-01-16  Bruno Haible  <bruno@clisp.org>
83239
83240         * MODULES.html.sh: Add a table of contents. Add the module name as
83241         leftmost column. Add hyperlinks.
83242
83243 2003-01-15  Bruno Haible  <bruno@clisp.org>
83244
83245         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83246
83247 2003-01-15  Bruno Haible  <bruno@clisp.org>
83248
83249         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83250         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83251         suffix.
83252
83253 2003-01-15  Bruno Haible  <bruno@clisp.org>
83254
83255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83256
83257 2003-01-15  Bruno Haible  <bruno@clisp.org>
83258
83259         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83260         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83261
83262 2003-01-14  Jim Meyering  <jim@meyering.net>
83263
83264         * lib/same.c (same_name): Tweak a comment.
83265
83266 2003-01-14  Bruno Haible  <bruno@clisp.org>
83267
83268         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83269         when a string comparison is sufficient.
83270
83271 2003-01-14  Bruno Haible  <bruno@clisp.org>
83272
83273         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83274         'unsigned int'.
83275
83276 2003-01-14  Bruno Haible  <bruno@clisp.org>
83277
83278         * lib/hash-pjw.c: Add comment about low quality of this function.
83279
83280 2003-01-13  Bruno Haible  <bruno@clisp.org>
83281
83282         * modules/stpcpy: Distribute lib/stpcpy.h.
83283         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83284
83285 2003-01-13  Bruno Haible  <bruno@clisp.org>
83286
83287         * modules/*: Add a description.
83288         * modules/strpbrk: Fix Makefile.am snippet.
83289         * modules/strtoimax: Fix dependencies.
83290         * modules/strtoumax: Likewise.
83291
83292 2003-01-13  Bruno Haible  <bruno@clisp.org>
83293
83294         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83295         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83296         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83297
83298 2003-01-13  Bruno Haible  <bruno@clisp.org>
83299
83300         * gnulib-tool (func_create_testdir): Store config/* files in the main
83301         directory.
83302         * config.rpath: Move to ...
83303         * config/config.rpath: ... here.
83304         * modules/gettext: Contains config/config.rpath, not config.rpath.
83305         * modules/iconv: Likewise.
83306
83307 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83308
83309         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83310         to avoid collisions with libcurses and libreadline.
83311
83312         * m4/getstr.m4: Remove.
83313         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83314
83315 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83316
83317         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83318         to avoid collisions with libcurses and libreadline.
83319
83320         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83321         * lib/getstr.h, getstr.c: Remove.
83322         * lib/getline.c: Include "getline.h", to check interface.
83323         Move body of old getstr.c here: this defines MIN_CHUNK and
83324         declares getdelim2, which is renamed from getstr.
83325         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83326
83327         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83328         All uses changed.
83329         * lib/linebuffer.h: Likewise.
83330         (readline): Remove backward-compatibility macro.
83331
83332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83333
83334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83335         to avoid collisions with libcurses and libreadline.
83336         * getstr: Remove.
83337         * MODULES.html.sh: Remove getstr.
83338         * modules/getline: Depend on unlocked-io, not getstr.
83339
83340 2003-01-12  Jim Meyering  <jim@meyering.net>
83341
83342         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83343
83344 2003-01-10  Bruno Haible  <bruno@clisp.org>
83345
83346         * modules/alloca: Change Makefile.am requirements. Simplify Include
83347         requirements. Add lib/alloca_.h to file list.
83348
83349 2003-01-10  Bruno Haible  <bruno@clisp.org>
83350
83351         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83352
83353 2003-01-10  Bruno Haible  <bruno@clisp.org>
83354
83355         * lib/alloca_.h: New file.
83356         * lib/getdate.y: Unconditionally include alloca.h.
83357         * lib/makepath.c: Likewise.
83358         * lib/setenv.c: Likewise.
83359         * lib/userspec.c: Likewise.
83360
83361 2003-01-09  Karl Berry  <karl@gnu.org>
83362
83363         * MODULES.html.sh: include `dirname $0` in PATH, to find
83364         gnulib-tool.
83365
83366 2003-01-09  Bruno Haible  <bruno@clisp.org>
83367
83368         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83369         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83370
83371 2003-01-09  Bruno Haible  <bruno@clisp.org>
83372
83373         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83374
83375 2003-01-09  Bruno Haible  <bruno@clisp.org>
83376
83377         * lib/stdbool.h.in: New file.
83378
83379 2003-01-09  Bruno Haible  <bruno@clisp.org>
83380
83381         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83382         * MODULES.html.sh: Likewise.
83383
83384 2003-01-08  Jim Meyering  <jim@meyering.net>
83385
83386         * lib/full-write.c: Undefine and define-away `const' after inclusion
83387         of errno.h, not before.  Suggestion from Bruno Haible.
83388
83389 2003-01-08  Bruno Haible  <bruno@clisp.org>
83390
83391         * modules/full-read: Depend on full-write.
83392
83393 2003-01-08  Bruno Haible  <bruno@clisp.org>
83394
83395         * lib/safe-read.c: Include specification header first, to ensure its
83396         selfcontainedness.
83397         * lib/full-write.c: Likewise.
83398
83399 2003-01-07  Jim Meyering  <jim@meyering.net>
83400
83401         * lib/full-write.c: Rework so that it may serve to define full_read,
83402         too.
83403         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83404
83405 2003-01-07  Bruno Haible  <bruno@clisp.org>
83406
83407         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83408         <inttypes.h>.
83409         * lib/xstrtol.h: Likewise.
83410         * lib/xstrtoimax.c: Likewise.
83411         * lib/xstrtoumax.c: Likewise.
83412         * lib/human.h: Likewise.
83413
83414         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83415         on systems that have <inttypes.h> but not <stdint.h>.
83416
83417 2003-01-07  Bruno Haible  <bruno@clisp.org>
83418
83419         * MODULES.html.sh: Add copyright notice.
83420         (missed_files): Omit CVS directory entries.
83421         (func_module): Make it work with sed-3.02.
83422         * MODULES.txt: Remove file.
83423
83424 2003-01-06  Jim Meyering  <jim@meyering.net>
83425
83426         * lib/version-etc.c: Update year in translatable copyright string.
83427
83428 2003-01-03  Karl Berry  <karl@gnu.org>
83429
83430         * config/config.{guess,sub}: update from prep.
83431
83432 2003-01-02  Karl Berry  <karl@gnu.org>
83433
83434         * doc/COPYING.DOC: belatedly updated to 1.2.
83435
83436 2003-01-01  Karl Berry  <karl@gnu.org>
83437
83438         * gnulib-tool (func_verify_module): report module name $module in
83439         error message, not $1.
83440         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83441         be created, only if it doesn't exist.
83442         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83443
83444 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83445
83446         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83447
83448 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83449
83450         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83451         memcmp if strcoll doesn't work.
83452
83453 2002-12-31  Bruno Haible  <bruno@clisp.org>
83454
83455         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83456         nonempty.
83457
83458 2002-12-31  Bruno Haible  <bruno@clisp.org>
83459
83460         * lib/memcoll.c (STRCOLL): New macro.
83461         (memcoll): Use it.
83462
83463 2002-12-31  Bruno Haible  <bruno@clisp.org>
83464
83465         * lib/localcharset.h: New file.
83466         * lib/localcharset.c: Include it.
83467         * lib/unicodeio.c: Likewise.
83468
83469 2002-12-31  Bruno Haible  <bruno@clisp.org>
83470
83471         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83472         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83473
83474 2002-12-31  Bruno Haible  <bruno@clisp.org>
83475
83476         * lib/getline.h: Include <stddef.h>, for size_t.
83477
83478         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83479         * lib/unicodeio.c: Don't include <stddef.h>.
83480
83481 2002-12-31  Bruno Haible  <bruno@clisp.org>
83482
83483         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83484         HAVE_TM_ZONE.
83485
83486 2002-12-24  Karl Berry  <karl@gnu.org>
83487
83488         * config/config.guess: update from prep.
83489
83490 2002-12-24  Bruno Haible  <bruno@clisp.org>
83491
83492         General infrasructure.
83493         * m4/README: Rewritten.
83494         * m4/onceonly.m4: New file.
83495         * m4/onceonly_2_57.m4: New file.
83496
83497         Module atexit.
83498         * m4/atexit.m4: New file.
83499
83500         Module strtod.
83501         * m4/strtod.m4: New file.
83502
83503         Module strtol.
83504         * m4/strtol.m4: New file.
83505
83506         Module strtoul.
83507         * m4/strtoul.m4: New file.
83508
83509         Module memchr.
83510         * m4/memchr.m4: New file.
83511
83512         Module memcmp.
83513         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83514         (jm_FUNC_MEMCMP): Invoke it.
83515
83516         Module memcpy.
83517         * m4/memcpy.m4: New file.
83518
83519         Module memmove.
83520         * m4/memmove.m4: New file.
83521
83522         Module memset.
83523         * m4/memset.m4: New file.
83524
83525         Module strcspn.
83526         * m4/strcspn.m4: New file.
83527
83528         Module strpbrk.
83529         * m4/strpbrk.m4: New file.
83530
83531         Module strstr.
83532         * m4/strstr.m4: New file.
83533
83534         Module strerror.
83535         * m4/strerror.m4: New file.
83536
83537         Module mktime.
83538         * m4/mktime.m4: Renamed from jm-mktime.m4.
83539         (gl_PREREQ_MKTIME): New macro.
83540         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83541
83542         Module malloc.
83543         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83544         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83545         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83546
83547         Module realloc.
83548         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83549         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83550         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83551
83552         Module strftime.
83553         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83555         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83556         gl_TM_GMTOFF.
83557         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83558
83559         Module xalloc.
83560         * m4/xalloc.m4: New file.
83561
83562         Module alloca.
83563         * m4/alloca.m4: New file.
83564
83565         Module putenv.
83566         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83567         (jm_FUNC_PUTENV): Invoke it.
83568
83569         Module setenv.
83570         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83571         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83572         when invoked twice.
83573         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83574         gt_FUNC_SETENV.
83575
83576         Module memrchr.
83577         * m4/memrchr.m4: New file.
83578
83579         Module stpcpy.
83580         * m4/stpcpy.m4: New file.
83581
83582         Module strcase.
83583         * m4/strcase.m4: New file.
83584
83585         Module strdup.
83586         * m4/strdup.m4: New file.
83587
83588         Module strnlen.
83589         * m4/strnlen.m4: New file.
83590
83591         Module strndup.
83592         * m4/strndup.m4: New file.
83593
83594         Module xstrtod.
83595         * m4/xstrtod.m4: New file.
83596
83597         Module xstrtol.
83598         * m4/xstrtol.m4: New file.
83599
83600         Module getdate.
83601         * m4/getdate.m4: New file.
83602
83603         Module unlocked-io.
83604         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83605         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83606         * m4/jm-glibc-io.m4n: Remove file.
83607
83608         Module long-options.
83609         * m4/long-options.m4: New file.
83610
83611         Module md5.
83612         * m4/md5.m4: New file.
83613
83614         Module sha.
83615         * m4/sha.m4: New file.
83616
83617         Module getstr.
83618         * m4/getstr.m4: New file.
83619
83620         Module getline.
83621         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83622         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83623         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83624         simply getline. Infoke gl_PREREQ_GETLINE.
83625
83626         Module obstack.
83627         * m4/obstack.m4: New file.
83628
83629         Module hash.
83630         * m4/hash.m4: New file.
83631
83632         Module readtokens.
83633         * m4/readtokens.m4: New file.
83634
83635         Module strverscmp.
83636         * m4/strverscmp.m4: New file.
83637
83638         Module stdbool.
83639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83640         OSF/1.
83641
83642         Module strtoll.
83643         * m4/strtoll.m4: New file.
83644
83645         Module strtoull.
83646         * m4/strtoull.m4: New file.
83647
83648         Module strtoimax.
83649         * m4/strtoimax.m4: New file.
83650
83651         Module strtoumax.
83652         * m4/strtoumax.m4: New file.
83653
83654         Module xstrtoimax.
83655         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83656         jm_AC_PREREQ_XSTRTOIMAX.
83657         Moved the strtol prerequisites to strtol.m4.
83658         Moved the strtoll prerequisites to strtoll.m4.
83659         Moved the strtoimax prerequisites to strtoimax.m4.
83660
83661         Module xstrtoumax.
83662         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83663         jm_AC_PREREQ_XSTRTOUMAX.
83664         Moved the strtoul prerequisites to strtoul.m4.
83665         Moved the strtoull prerequisites to strtoull.m4.
83666         Moved the strtoumax prerequisites to strtoumax.m4.
83667
83668         Module chown.
83669         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83670         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83671
83672         Module dup2.
83673         * m4/dup2.m4: New file.
83674
83675         Module ftruncate.
83676         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83677         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83678
83679         Module getgroups.
83680         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83681         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83682
83683         Module gettimeofday.
83684         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83685         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83686         gl_PREREQ_GETTIMEOFDAY.
83687
83688         Module mkdir.
83689         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83690         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83691
83692         Module mkstemp.
83693         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83694         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83695         jm_AC_TYPE_UINTMAX_T.
83696         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83697
83698         Module stat.
83699         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83700         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83701
83702         Module lstat.
83703         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83704         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83705
83706         Module timespec.
83707         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83708         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83709         * m4/st_mtim.m4: Indentation.
83710
83711         Module nanosleep.
83712         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83713         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83714         gl_PREREQ_NANOSLEEP.
83715
83716         Module regex.
83717         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83718         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83719         (gl_REGEX): New macro.
83720
83721         Module rename.
83722         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83723         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83724
83725         Module rmdir.
83726         * m4/rmdir.m4: New file.
83727
83728         Module utime.
83729         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83730         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83731         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83732
83733         Module dirname.
83734         * m4/dirname.m4: New file.
83735
83736         Module getopt.
83737         * m4/getopt.m4: New file.
83738
83739         Module unistd-safer.
83740         * m4/unistd-safer.m4: New file.
83741
83742         Module fnmatch.
83743         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83744         declaration.
83745         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83746         (gl_FUNC_FNMATCH_POSIX): New macro.
83747         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83748         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83749         simply fnmatch.
83750
83751         Module exclude.
83752         * m4/exclude.m4: New file.
83753
83754         Module human.
83755         * m4/human.m4: New file.
83756
83757         Module acl.
83758         * m4/acl.m4: Nop.
83759
83760         Module backupfile.
83761         * m4/backupfile.m4: New file.
83762         * m4/d-ino.m4: Indentation.
83763
83764         Module fsusage.
83765         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83766         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83767         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83768
83769         Module dirfd.
83770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83771         requirements.
83772
83773         Module euidaccess.
83774         * m4/euidaccess.m4: New file.
83775
83776         Module file-type.
83777         * m4/file-type.m4: New file.
83778
83779         Module fileblocks.
83780         * m4/fileblocks.m4: New file.
83781
83782         Module filemode.
83783         * m4/filemode.m4: New file.
83784
83785         Module isdir.
83786         * m4/isdir.m4: New file.
83787
83788         Module lchown.
83789         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83790         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83791
83792         Module makepath.
83793         * m4/makepath.m4: New file.
83794
83795         Module modechange.
83796         * m4/modechange.m4: New file.
83797
83798         Module mountlist.
83799         * m4/mountlist.m4: New file.
83800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83801         Indentation.
83802
83803         Module path-concat.
83804         * m4/path-concat.m4: New file.
83805
83806         Module pathmax.
83807         * m4/pathmax.m4: New file.
83808
83809         Module same.
83810         * m4/same.m4: New file.
83811
83812         Module save-cwd.
83813         * m4/save-cwd.m4: New file.
83814
83815         Module savedir.
83816         * m4/savedir.m4: New file.
83817
83818         Module xgetcwd.
83819         * m4/xgetcwd.m4: New file.
83820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83821
83822         Module xreadlink.
83823         * m4/xreadlink.m4: New file.
83824
83825         Module safe-read.
83826         * m4/safe-read.m4: New file.
83827
83828         Module safe-write.
83829         * m4/safe-write.m4: New file.
83830
83831         Module closeout.
83832         * m4/closeout.m4: New file.
83833
83834         Module stdio-safer.
83835         * m4/stdio-safer.m4: New file.
83836
83837         Module getpass.
83838         * m4/getpass.m4: New file.
83839
83840         Module getugroups.
83841         * m4/getugroups.m4: New file.
83842
83843         Module group-member.
83844         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83845         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83846
83847         Module idcache.
83848         * m4/idcache.m4: New file.
83849
83850         Module userspec.
83851         * m4/userspec.m4: New file.
83852
83853         Module gettime.
83854         * m4/clock_time.m4: New file.
83855         * m4/gettime.m4: New file.
83856
83857         Module settime.
83858         * m4/settime.m4: New file.
83859
83860         Module posixtm.
83861         * m4/posixtm.m4: New file.
83862
83863         Module gethostname.
83864         * m4/gethostname.m4: New file.
83865
83866         Module canon-host.
83867         * m4/canon-host.m4: New file.
83868
83869         Module gettext.
83870         * m4/codeset.m4: New file, from gettext-0.11.5.
83871         * m4/gettext.m4: New file, from gettext-0.11.5.
83872         * m4/glibc21.m4: New file, from gettext-0.11.5.
83873         * m4/iconv.m4: New file, from gettext-0.11.5.
83874         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83875         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83876         * m4/inttypes.m4: New file, from gettext-0.11.5.
83877         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83878         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83879         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83880         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83881         * m4/lib-link.m4: New file, from gettext-0.11.5.
83882         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83883         * m4/progtest.m4: New file, from gettext-0.11.5.
83884         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83885         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83886         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83887
83888         Module localcharset.
83889         * m4/localcharset.m4: New file.
83890
83891         Module hard-locale.
83892         * m4/hard-locale.m4: New file.
83893
83894         Module mbswidth.
83895         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83896         onceonly macros.
83897         * m4/mbrtowc.m4: Add comment.
83898
83899         Module memcasecmp.
83900         * m4/memcasecmp.m4: New file.
83901
83902         Module memcoll.
83903         * m4/memcoll.m4: New file.
83904
83905         Module unicodeio.
83906         * m4/unicodeio.m4: New file.
83907
83908         Module rpmatch.
83909         * m4/rpmatch.m4: New file.
83910
83911         Module yesno.
83912         * m4/yesno.m4: New file.
83913
83914         Module exitfail.
83915         * m4/exitfail.m4: New file.
83916
83917         Module c-stack.
83918         * m4/c-stack.m4 (gl_C_STACK): New macro.
83919         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83920
83921         Module error.
83922         * m4/error.m4 (gl_ERROR): New macro.
83923         (jm_PREREQ_ERROR): Use onceonly macros.
83924
83925         Module fatal.
83926         * m4/fatal.m4: New file.
83927
83928         Module getloadavg.
83929         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83930         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83931
83932         Module getpagesize.
83933         * m4/getpagesize.m4: New file.
83934
83935         Module getusershell.
83936         * m4/getusershell.m4: New file.
83937
83938         Module physmem.
83939         * m4/physmem.m4: New file.
83940
83941         Module posixver.
83942         * m4/posixver.m4: New file.
83943
83944         Module quotearg.
83945         * m4/quotearg.m4: New file.
83946
83947         Module quote.
83948         * m4/quote.m4: New file.
83949
83950         Module readutmp.
83951         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83952
83953         Module sig2str.
83954         * m4/sig2str.m4: New file.
83955
83956         Other.
83957         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83958         ulonglong.m4.
83959         * m4/intmax_t.m4: New file.
83960         * m4/d-type.m4: Indentation.
83961         * m4/jm-macros.m4: Update.
83962         * m4/prereq.m4 (jm_PREREQ): Update.
83963         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83964         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83965         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83966         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83967         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83968         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83969         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83970         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83971         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83972         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83973         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83974         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83975         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83976         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83977         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83978         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83979         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83980         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83981         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83982
83983 2002-12-24  Bruno Haible  <bruno@clisp.org>
83984
83985         * MODULES.txt: Update according to m4/ changes.
83986
83987         Module gettext.
83988         * config.rpath: New file, from gettext-0.11.5.
83989
83990         * modules/*: New module descriptions.
83991         * gnulib-tool: New file.
83992         * MODULES.html.sh: New file.
83993
83994 2002-12-21  Karl Berry  <karl@gnu.org>
83995
83996         * doc/fdl.texi: update to version 1.2.
83997
83998 2002-12-19  Karl Berry  <karl@gnu.org>
83999
84000         * config/config.guess: update from prep.
84001
84002 2002-12-18  Bruno Haible  <bruno@clisp.org>
84003
84004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84005         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84006
84007 2002-12-17  Bruno Haible  <bruno@clisp.org>
84008
84009         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84010         stdlib.h, string.h.
84011
84012 2002-12-17  Bruno Haible  <bruno@clisp.org>
84013
84014         * lib/canon-host.c (strdup): Remove unused declaration.
84015
84016         * lib/fsusage.c: Include full_read.h.
84017         (get_fs_usage): Use full_read instead of safe_read.
84018
84019         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84020
84021 2002-12-12  Karl Berry  <karl@gnu.org>
84022
84023         * config/config.guess: update from prep.
84024
84025 2002-12-11  Bruno Haible  <bruno@clisp.org>
84026
84027         * m4/setenv.m4: New file, from gettext-0.11.5.
84028
84029 2002-12-11  Bruno Haible  <bruno@clisp.org>
84030
84031         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84032         not unsetenv().
84033         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84034         modifications:
84035
84036         2002-12-11  Bruno Haible  <bruno@clisp.org>
84037
84038                 * setenv.c (alloca): Fall back to malloc.
84039                 (freea): New macro.
84040                 (setenv): Use freea() to free memory allocated with alloca().
84041
84042         2002-11-13  Bruno Haible  <bruno@clisp.org>
84043
84044                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84045                 function declarations.
84046                 * unsetenv.c (unsetenv): Likewise.
84047
84048         2002-03-04  Bruno Haible  <bruno@clisp.org>
84049
84050                 Portability to AIX 4.3.3.
84051                 * unsetenv.c: New file, extracted from setenv.c.
84052                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84053
84054         2001-12-20  Bruno Haible  <bruno@clisp.org>
84055
84056                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84057                 use malloc instead. For SunOS 4.
84058
84059         2001-12-11  Bruno Haible  <bruno@clisp.org>
84060
84061                 * setenv.c: Declare alloca.
84062                 (compar_fn_t): New typedef.
84063                 (KNOWN_VALUE, STORE_VALUE): Use it.
84064
84065         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84066         setenv.h.
84067
84068 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84069
84070         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84071         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84072         Choose values that are less likely to collide with system fnmatch
84073         options.
84074         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84075         defined (e.g., a pure POSIX system).
84076         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84077         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84078
84079 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84080
84081         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84082         a pain in practice to deal with generated m4 files.  This change
84083         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84084
84085         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84086         and jm-glibc-io.m4, as they are no longer a special case.
84087         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84088         kludge and the auto-generation stuff.  Check only whether the
84089         functions are declared, not whether they exist, since older hosts
84090         that don't declare the functions can't use the optimization anyway.
84091
84092 2002-12-06  Jim Meyering  <jim@meyering.net>
84093
84094         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84095
84096         Merge in changes from libc's misc/error.c, in preparation
84097         for the merge of gnulib's changes back into libc.
84098
84099         * lib/error.c (_): Define only if not already defined.
84100         Move definition to follow all #include directives.
84101         Include unlocked-io.h only if !_LIBC.
84102         [_LIBC]: Include <libio/libioP.h>.
84103         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84104         (fflush): Tweak definition to use INTUSE.
84105         (putc): Define.
84106
84107 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84108
84109         * lib/alloca.c [defined emacs]: Include "lisp.h".
84110         (xalloc_die) [defined emacs]: New macro.
84111         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84112         [! defined emacs]: Include <xalloc.h>.
84113         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84114         (pointer): Typedef to POINTER_TYPE *.
84115         (malloc): Remove decl; we now always use xmalloc.
84116         (alloca): Use old-style definition, since Emacs needs this.
84117         Check for arithmetic overflow when computing combined size.
84118
84119 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84120
84121         Do not generate unlocked-io.h automatically, since it's easier to
84122         maintain it by hand.
84123
84124         * lib/unlocked-io.h: New file, from GNU diffutils,
84125         but with proper copyright notice and attribution.
84126         * lib/gen-uio: Remove.
84127         * lib/Makefile.am: Add copyright notice.
84128         (libfetish_a_SOURCES): Add unlocked-io.h.
84129         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84130         (DISTCLEANFILES, io_functions): Remove macros.
84131         (EXTRA_DIST): Remove gen_uio.
84132         (unlocked-io.h): Remove rule.
84133
84134 2002-12-04  Jim Meyering  <jim@meyering.net>
84135
84136         Reflect the fact that stat.c and lstat.c are no longer generated.
84137         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84138         (DISTCLEANFILES): Likewise.
84139         (EXTRA_DIST): Likewise.
84140         (all_local): Don't depend on stat.c or lstat.c.
84141         (stat.c, lstat.c): Remove rules.
84142         (EXTRA_DIST): Remove xstat.in.
84143
84144         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84145         * lib/stat.c: New file.  Contents mostly from xstat.in.
84146         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84147         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84148
84149         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84150         too.
84151         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84152
84153 2002-12-03  Jim Meyering  <jim@meyering.net>
84154
84155         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84156         but not semantics, to minimize the differences between these two files.
84157         (safe_read): Change comment to mention SAFE_READ_ERROR.
84158
84159         * lib/safe-read.c (IS_EINTR): Define.
84160         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84161
84162 2002-12-02  Jim Meyering  <jim@meyering.net>
84163
84164         * lib/safe-read.c (EINTR): Define.
84165         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84166         (INT_MAX): Provide fallback.
84167         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84168
84169         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84170
84171 2002-12-02  Bruno Haible  <bruno@clisp.org>
84172
84173         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84174         Define, taken from safe-read.c.
84175         (INT_MAX): Provide fallback.
84176         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84177         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84178
84179         * lib/safe-read.c (EINTR): Remove definition.
84180         (safe_read): Don't use EINTR if it is absent.
84181
84182 2002-12-01  Jim Meyering  <jim@meyering.net>
84183
84184         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84185         zero.
84186         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84187
84188 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84189
84190         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84191         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84192         with `if (! (value < limit)) abort ();', for readability.
84193
84194 2002-11-26  Karl Berry  <karl@gnu.org>
84195
84196         * lib/strdup.c: copy from libc again, with jim's ok.
84197         * lib/.cppi-disable: re-add strdup.c
84198
84199 2002-11-25  Karl Berry  <karl@gnu.org>
84200
84201         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84202         instead of "strtol.c".
84203
84204 2002-11-25  Karl Berry  <karl@gnu.org>
84205
84206         * config/install-sh: update from automake for variable quoting, $0 in
84207         error msgs, etc.
84208
84209         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84210         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84211         entry.
84212
84213 2002-11-25  Jim Meyering  <jim@meyering.net>
84214
84215         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84216
84217 2002-11-24  Karl Berry  <karl@gnu.org>
84218
84219         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84220         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84221
84222 2002-11-24  Jim Meyering  <jim@meyering.net>
84223
84224         Update from coreutils:
84225
84226         * lib/mktime.c: Merge in changes from libc.
84227
84228         Avoid a link-time failure on some Linux systems.
84229         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84230         (otherwise).
84231         (__mon_yday): Declare with the STATIC attribute.
84232         (__mktime_internal): Likewise.
84233         Based on a report from Greg Schafer.
84234
84235 2002-11-23  Jim Meyering  <jim@meyering.net>
84236
84237         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84238         Use `unsigned', not `int', as type of index.
84239
84240         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84241
84242         * lib/fsusage.c: Remove unneeded parentheses around operands of
84243         `defined'.
84244
84245 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84246
84247         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84248         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84249         so that we can be included first.
84250         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84251         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84252         No need to include stddef.h or sys/types.h any more.
84253         Surround local include files with "", not "<>".
84254         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84255         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84256         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84257         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84258         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84259         (ISPRINT): Remove; no longer needed now that we assume C89.
84260
84261         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84262         Preserve errno.
84263
84264         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84265         quotearg_char): Use SIZE_MAX rather than
84266         (size_t) -1 when we are talking about "infinity".
84267
84268         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84269
84270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84271
84272         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84273         hint that one should use `if (! x) abort ();' rather than `assert
84274         (x);', and anyway it's one less thing to worry about configuring.
84275         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84276         hash_rehash, hash_insert): Use abort rather than assert.
84277
84278 2002-11-22  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/safe-read.h: Assume C89. Add comments.
84281         (safe_read): Change return type to size_t.
84282         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84283         byte counts > SSIZE_MAX correctly.
84284         * lib/safe-write.h: New file.
84285         * lib/safe-write.c: New file.
84286         * lib/full-read.h: New file.
84287         * lib/full-read.c: New file.
84288         * lib/full-write.h: Assume C89. Add comments.
84289         * lib/full-write.c: Include safe-write.h.
84290         (full_write): Rewritten to use safe_write.
84291         Suggested by Jim Meyering and Paul Eggert.
84292
84293 2002-11-21  Jim Meyering  <jim@meyering.net>
84294
84295         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84296
84297         Merge in changes from the coreutils.
84298
84299         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84300         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84301         <stdint.h>.
84302         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84303         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84304         int.  Work more efficiently if X is the same width as uintmax_t.
84305         Do not compare X to -1, to avoid bogus compiler warning.
84306         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84307         Don't assume that f_frsize and f_bsize are the same type.
84308
84309         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84310         warning on FreeBSD.
84311
84312         * lib/makepath.c (make_path): Restore umask *before* creating the final
84313         component.
84314         (make_path): Minor reformatting.
84315
84316         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84317         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84318         HAVE_MALLOC/HAVE_REALLOC.
84319
84320         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84321         dummy ones.  At least on GNU/Linux systems, `auto' means something
84322         else.
84323         From Michael Stone.
84324
84325 2002-11-21  Bruno Haible  <bruno@clisp.org>
84326
84327         Remove case insensitive option matching.
84328         * lib/argmatch.h (argcasematch): Remove declaration.
84329         (ARGCASEMATCH): Remove macro.
84330         (__xargmatch_internal): Remove case_sensitive argument.
84331         (XARGMATCH): Update.
84332         (XARGCASEMATCH): Remove macro.
84333         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84334         case_sensitive argument.
84335         (argcasematch): Remove function.
84336         (__xargmatch_internal): Remove case_sensitive argument.
84337         (main): Use XARGMATCH instead of XARGCASEMATCH.
84338
84339         * lib/xmalloc.c: Change compile-time error message. Add comment about
84340         required autoconf version.
84341
84342 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84343
84344         Merge argmatch cleanups from Bison.  Assume C89.
84345
84346         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84347         Include stdlib.h, for EXIT_FAILURE.
84348         Always include <string.h>, since we assume C89.
84349         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84350         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84351         Include <stddef.h> instead, since it's all we need for size_t.
84352         (PARAMS): Remove.  All uses removed.
84353         (ARRAY_CARDINALITY): Do not bother to #undef.
84354         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84355         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84356         Remove unnecessary parentheses.
84357         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84358         Insert necessary parentheses.
84359         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84360         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84361
84362 2002-11-19  Bruno Haible  <bruno@clisp.org>
84363
84364         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84365         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84366
84367         * lib/mbswidth.h (PARAMS): Remove macro.
84368         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84369         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84370
84371         * lib/gcd.h (PARAMS): Remove macro.
84372         (gcd): Use ANSI C function declarations.
84373         * lib/gcd.c (gcd): Likewise.
84374
84375 2002-11-15  Bruno Haible  <bruno@clisp.org>
84376
84377         * lib/strcspn.c: Include <stddef.h>.
84378         (strcspn): Use ANSI C function declaration. Change return type to
84379         size_t. Use NULL.
84380         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84381         (strpbrk): Use NULL.
84382         * lib/strpbrk.h (PARAMS): Remove macro.
84383         (strpbrk): Use ANSI C function declaration.
84384         * lib/strstr.c: Don't include <sys/types.h>.
84385         * lib/strstr.h (PARAMS): Remove macro.
84386         (strstr): Use ANSI C function declarations.
84387
84388 2002-11-14  Karl Berry  <karl@gnu.org>
84389
84390         * config/mkinstalldirs: `do' on separate line, instead of
84391         `for var; do'.
84392
84393 2002-11-06  Bruno Haible  <bruno@clisp.org>
84394
84395         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84396         * lib/gcd.c (gcd): Likewise.
84397
84398 2002-11-05  Bruno Haible  <bruno@clisp.org>
84399
84400         * lib/gcd.h: New file, from gettext-0.11.5.
84401         * lib/gcd.c: New file, from gettext-0.11.5.
84402
84403 2002-11-05  Bruno Haible  <bruno@clisp.org>
84404
84405         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84406         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84407         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84408         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84409
84410         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84411         <libintl.h>.
84412         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84413         <libintl.h>.
84414
84415         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84416         * lib/human.c: Include gettext.h instead of <libintl.h>.
84417         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84418         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84419         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84420         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84421         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84422         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84423         (textdomain): Remove definition.
84424         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84425
84426         * lib/long-options.c: Remove include of <libintl.h> and definition of
84427         _.
84428         * lib/same.c: Remove include of <libintl.h> and definition of _.
84429
84430 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84431
84432         * lib/config.charset: A few additions for Solaris.
84433
84434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84435
84436         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84437         * lib/localcharset.c (locale_charset): Declare as extern "C".
84438
84439 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84440
84441         * lib/config.charset: msdos in uk_UA uses CP1125.
84442
84443 2002-11-04  Bruno Haible  <bruno@clisp.org>
84444
84445         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84446         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84447         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84448         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84449         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84450
84451 2002-11-04  Bruno Haible  <bruno@clisp.org>
84452
84453         * lib/localcharset.c (locale_charset): Don't return an empty string.
84454
84455 2002-11-04  Bruno Haible  <bruno@clisp.org>
84456
84457         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84458         aliases.
84459
84460 2002-11-04  Bruno Haible  <bruno@clisp.org>
84461
84462         * lib/config.charset: Update for newest glibc. Add canonical names
84463         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84464
84465 2002-11-04  Bruno Haible  <bruno@clisp.org>
84466
84467         * lib/config.charset: Add support for NetBSD.
84468
84469 2002-11-04  Bruno Haible  <bruno@clisp.org>
84470
84471         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84472
84473 2002-11-01  Bruno Haible  <bruno@clisp.org>
84474
84475         * configure.in: Add AC_CONFIG_AUX_DIR call.
84476         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84477         test/Makefile.
84478         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84479
84480 2002-09-28  Karl Berry  <karl@gnu.org>
84481
84482         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84483         installed automake until the next release, since changes have been
84484         made.
84485
84486 2002-09-25  Karl Berry  <karl@gnu.org>
84487
84488         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84489         * lib/getopt*: copy from libc/posix.
84490         * lib/gettext.h: copy from gettext.
84491         * lib/.cppi-disable: add strdup.c, gettext.h.
84492
84493 2002-09-25  Karl Berry  <karl@gnu.org>
84494
84495         * config/srclist.txt: enable gettext.h check.
84496         * config/config.{guess,sub}: update from prep.
84497         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84498                 from automake 1.6.3.
84499         See srclist*.
84500
84501 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84502
84503         * regex.c (PATFETCH): Remove the translating fetch.
84504         (PATFETCH_RAW): Rename to PATFETCH.
84505         (set_image_of_range): New fun.
84506         (SET_RANGE_TABLE_WORK_AREA): Use it.
84507         (regex_compile): Don't translate the pattern chars so eagerly.
84508         Only do it when inserting an `exactn' bytecode or when handling
84509         a char-range.
84510         (mutually_exclusive_p): Avoid empty statement.
84511
84512 2002-07-06  Jim Meyering  <meyering@lucent.com>
84513
84514         * m4/README: Don't mention Makefile.am.in.
84515         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84516
84517 2002-07-01  Jim Meyering  <meyering@lucent.com>
84518
84519         * lib/c-stack.c: Include sys/time.h.
84520         From Volker Borchert.
84521
84522 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84523
84524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84525
84526 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84527
84528         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84529         New macro.  Use it uniformly instead of
84530         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84531         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84532         reported by Vin Shelton.
84533
84534 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84535
84536         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84537         Do not assume SA_SIGINFO behavior.
84538         Bug reported by Jim Meyering on NetBSD 1.5.2.
84539
84540 2002-06-22  Jim Meyering  <meyering@lucent.com>
84541
84542         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84544
84545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84546         now that configure.ac uses AC_GNU_SOURCE.
84547         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84548         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84549
84550         Update to latest tools.  Suggestions from Paul Eggert.
84551         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84552         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84553         * m4/fnmatch.m4: Likewise.
84554         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84555         to AC_HEADER_STDBOOL
84556
84557 2002-06-22  Jim Meyering  <meyering@lucent.com>
84558
84559         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84560         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84561
84562 2002-06-22  Jim Meyering  <meyering@lucent.com>
84563
84564         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84565
84566         * lib/exitfail.c, exitfail.h: Likewise.
84567         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84568
84569         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84570         of fnmatch.h.
84571         (EXTRA_DIST): Add fnmatch_loop.c.
84572         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84573
84574         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84575         * lib/fnmatch.c: Update from diffutils-2.8.2.
84576         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84577         * lib/fnmatch.h: Remove file.
84578
84579 2002-06-21  Jim Meyering  <meyering@lucent.com>
84580
84581         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84582         * m4/mbrtowc.m4: Likewise.
84583
84584         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84585         * m4/mbswidth.m4: Reflect name change:
84586         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84588
84589         * m4/lib-link.m4: Update from gettext-0.11.2.
84590         * m4/gettext.m4: Likewise.
84591
84592         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84593         From Alfred M. Szmidt.
84594
84595 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84596
84597         * lib/file-type.h: Report an error if neither S_ISREG nor
84598         S_IFREG is defined, instead of using a test specific to glibc
84599         2.2.  This should be safe, since POSIX requires S_ISREG and
84600         Unix Version 7 had S_IFREG.  We don't need to check for
84601         <sys/types.h> since we don't use any symbols that it defines.
84602
84603 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84604
84605         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84606         $@-t, so that each temporary file name is unique and valid in the first
84607         8 characters, for operation under DOS.
84608
84609 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84610
84611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84612
84613 2002-06-15  Jim Meyering  <meyering@lucent.com>
84614
84615         Work even with DJGPP 2.03, which lacks support for symlinks.
84616         From Richard Dawe.
84617         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84618         is defined.
84619         * lib/lchown.c (S_ISLNK): Likewise.
84620
84621 2002-06-15  Jim Meyering  <meyering@lucent.com>
84622
84623         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84624         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84625         have been included before this file.
84626
84627 2002-06-14  Jim Meyering  <meyering@lucent.com>
84628
84629         * lib/file-type.h: Use the version from diffutils-2.8.2.
84630         * lib/file-type.c: Likewise.
84631
84632 2002-06-07  Jim Meyering  <meyering@lucent.com>
84633
84634         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84635         They're needed at least for NetBSD 1.5.2.
84636         ($statxfs_includes): Include those same headers.
84637         ($statxfs_includes): Include sys/vfs.h if available.
84638         ($statxfs_includes): Likewise for sys/statvfs.h.
84639         Check for the following members in both structs statfs and statvfs:
84640         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84641
84642 2002-06-01  Jim Meyering  <meyering@lucent.com>
84643
84644         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84645         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84646
84647 2002-05-28  Jim Meyering  <meyering@lucent.com>
84648
84649         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84650         Reported by Volker Borchert.
84651
84652 2002-05-27  Jim Meyering  <meyering@lucent.com>
84653
84654         Fix a problem seen only on nonconforming systems whereby ls.c's
84655         use of localtime, and then of gettimeofday would cause trouble:
84656         the localtime call used to initialize rpl_gettimeofday's save
84657         mechanism would clobber ls's current local time information so
84658         that in any long listing the first file would always be listed
84659         with date 1970-01-01.  Analysis by Volker Borchert.
84660
84661         * lib/gettimeofday.c (localtime): Undefine.
84662         (rpl_localtime): New function.
84663
84664 2002-05-27  Jim Meyering  <meyering@lucent.com>
84665
84666         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84667         localtime.
84668
84669         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84670         use the replacement function; it wouldn't resolve at link time.
84671         Reported by Volker Borchert.
84672
84673 2002-05-22  Jim Meyering  <meyering@lucent.com>
84674
84675         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84676         file-type.h.
84677         * lib/file-type.h: New file.
84678         * lib/file-type.c (file_type): New file/function.  Extracted from
84679         diffutils.
84680
84681 2002-04-30  Jim Meyering  <meyering@lucent.com>
84682
84683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84684
84685 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84686
84687         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84688
84689 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84690
84691         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84692         Do not check for alloca.h (no longer used) or stdbool.h (was never
84693         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84694
84695 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84696
84697         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84698
84699 2002-04-29  Jim Meyering  <meyering@lucent.com>
84700
84701         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84702         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84703         Use AC_FUNC_STRNLEN here instead.
84704
84705         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84706         With autoconf-2.53a, it's part of AC_PROG_CC.
84707
84708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84709
84710         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84712
84713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84714
84715         * lib/sig2str.h, lib/sig2str.c: New files.
84716         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84717
84718 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84719
84720         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84721         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84722         of 127, since 64 is the largest conceivable number for ancient
84723         nonstandard hosts.
84724         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84725
84726 2002-04-28  Jim Meyering  <meyering@lucent.com>
84727
84728         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84729
84730 2002-04-24  Jim Meyering  <meyering@lucent.com>
84731
84732         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84733         (jm_PREREQ): Use it.
84734
84735         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84736         mach/mach.h fcntl.h.
84737         Check for this function: setlocale.
84738
84739 2002-04-24  Jim Meyering  <meyering@lucent.com>
84740
84741         * lib/gettext.h: New file, from Gettext.
84742         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84743         (libfetish_a_SOURCES): Add gettext.h.
84744
84745 2002-04-16  Jim Meyering  <meyering@lucent.com>
84746
84747         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84748         ut_pid, ut_id, ut_exit.
84749
84750 2002-04-16  Jim Meyering  <meyering@lucent.com>
84751
84752         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84753         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84754         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84755
84756 2002-04-12  Jim Meyering  <meyering@lucent.com>
84757
84758         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84759         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84760         existence of the getmntinfo function.  Needed for Darwin 5.3.
84761
84762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84763         This is necessary at least on Darwin 5.3.
84764
84765         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84766         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84767         strnlen.o in the library, and that makes some versions of ranlib
84768         object.
84769
84770 2002-04-12  Jim Meyering  <meyering@lucent.com>
84771
84772         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84773
84774 2002-04-09  Jim Meyering  <meyering@lucent.com>
84775
84776         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84777         to be more precise.  Rather than saying we're checking whether the
84778         function `works', say what we're testing.
84779         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84780         Reported by Bruno Haible.
84781
84782 2002-03-10  Jim Meyering  <meyering@lucent.com>
84783
84784         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84785         Suggestion from Santiago Vila.
84786
84787 2002-03-08  Jim Meyering  <meyering@lucent.com>
84788
84789         * lib/rename.c: Mention that this wrapper is needed also on
84790         mips-dec-ultrix4.4 systems.
84791
84792 2002-03-02  Jim Meyering  <meyering@lucent.com>
84793
84794         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84795         not HAVE_CLOCK_SETTIME.
84796
84797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84798
84799         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84800         Check for clock_settime.
84801
84802 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84803
84804         * lib/nanosleep.h: Rename to....
84805         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84806
84807         * lib/gettime.c: New file.
84808         * lib/settime.c: New file.
84809         * lib/stime.c: Remove.
84810
84811         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84812         timespec.h.  Remove nanosleep.h.
84813
84814 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84815
84816         * m4/acl.m4: New file.
84817         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84818         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84819
84820 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84821
84822         * lib/acl.c, lib/acl.h: New files.
84823         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84824
84825 2002-02-24  Jim Meyering  <meyering@lucent.com>
84826
84827         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84828         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84829         cause trouble.  Reported by Nelson Beebe.
84830
84831 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84832
84833         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84834         compilers that don't know that xalloc_die never returns.
84835
84836 2002-02-20  Jim Meyering  <meyering@lucent.com>
84837
84838         * lib/getdate.c: Regenerate using bison-1.33.
84839
84840 2002-02-17  Jim Meyering  <meyering@lucent.com>
84841
84842         * config/config.guess (main): Don't use `head -1'; it's no longer
84843         portable. Use `sed 1q' instead.
84844
84845 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84846
84847         * m4/codeset.m4: Upgrade to gettext-0.11.
84848         * m4/gettext.m4: Upgrade to gettext-0.11.
84849         * m4/glibc21.m4: Upgrade to gettext-0.11.
84850         * m4/iconv.m4: Upgrade to gettext-0.11.
84851         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84852         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84853         * m4/lib-ld.m4: New file, from gettext-0.11.
84854         * m4/lib-link.m4: New file, from gettext-0.11.
84855         * m4/lib-prefix.m4: New file, from gettext-0.11.
84856         * m4/progtest.m4: Upgrade to gettext-0.11.
84857
84858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84859
84860         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84861         (jm_PREREQ): Use it.
84862
84863 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84864
84865         * lib/posixver.c, lib/posixver.h: New files.
84866         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84867
84868 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84869             Bruno Haible  <bruno@clisp.org>
84870
84871         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84872         (fwrite_success_callback): New declaration.
84873         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84874         print_unicode_char. Call failure callback instead of error.
84875         (fwrite_success_callback): New function.
84876         (exit_failure_callback): New function.
84877         (fallback_failure_callback): New function.
84878         (print_unicode_char): Call unicode_to_mb.
84879
84880 2002-01-26  Jim Meyering  <meyering@lucent.com>
84881
84882         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84883         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84884
84885 2002-01-26  Jim Meyering  <meyering@lucent.com>
84886
84887         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84888
84889 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84890
84891         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84892
84893 2002-01-22  Jim Meyering  <meyering@lucent.com>
84894
84895         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84896         Otherwise, some versions of automake would omit the rule that makes
84897         Makefile from Makefile.in.
84898
84899 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84900
84901         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84902         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84903         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84904         (memcoll): Set errno to zero if there is no error.
84905
84906         * lib/quotearg.c (quotearg_buffer_restyled):
84907         Fix bug with quoting buffers containing NUL when backslashing escapes.
84908         This bug was exposed by the other changes in this patch.
84909         (quotearg_n_options): New arg ARGSIZE.
84910         All callers changed.
84911         (quoting_options_from_style): New function.
84912         (quotearg_n_style): Use it.
84913         (quotearg_n_style_mem): New function.
84914
84915         * lib/quotearg.h (quotearg_n_style_mem): New function.
84916
84917 2002-01-19  Jim Meyering  <meyering@lucent.com>
84918
84919         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84920         Remove useless quotes: DF_PROG="df".
84921         * m4/strnlen.m4: New file.
84922
84923 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84924
84925         * lib/backupfile.c (ISDIGIT): Comment fix.
84926         * lib/getdate.y (ISDIGIT): Likewise.
84927         * lib/posixtm.c (ISDIGIT, year): Likewise.
84928         * lib/strverscmp.c (ISDIGIT): Likewise.
84929         * lib/userspec.c (ISDIGIT): Likewise.
84930
84931 2002-01-16  Jim Meyering  <meyering@lucent.com>
84932
84933         * lib/getdate.y: Add three semicolons, each just before a closing
84934         brace. Bison (as of version 1.31) no longer papers over that mistake.
84935
84936 2002-01-05  Jim Meyering  <meyering@lucent.com>
84937
84938         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84939
84940 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84941
84942         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84943         not silently exit merely because the output buffer happens to
84944         have nothing pending.
84945
84946 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84947
84948         See the big note in ../ChangeLog.
84949         * lib/human.c (suffixes): Prefer K to k for 1024.
84950         (generate_suffix_backwards): New function.
84951         (human_readable_inexact): Use it.
84952         * lib/xstrtol.c (__xstrtol): If there is no number but there
84953         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84954         Accept 'K' as well as 'k'.
84955
84956 2001-12-15  Jim Meyering  <meyering@lucent.com>
84957
84958         * lib/regex.h (__restrict_arr): Update from libc.
84959
84960         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84961         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84962         (STREQ): Define.
84963
84964 2001-12-14  Jim Meyering  <meyering@lucent.com>
84965
84966         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84967         Suggestion from Bruno Haible.
84968
84969 2001-12-10  Jim Meyering  <meyering@lucent.com>
84970
84971         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84972         xrealloc, Instead, include "xalloc.h".
84973         (initbuffer): Don't cast xmalloc return value to char*.
84974         (readline): Reword comment.
84975         Don't cast xrealloc return value to char*
84976         Return NULL, not 0.
84977
84978 2001-12-09  Jim Meyering  <meyering@lucent.com>
84979
84980         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84981         about `signed and unsigned type in conditional expression'.
84982         * lib/posixtm.c (posix_time_parse): Likewise.
84983
84984         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84985
84986         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84987         to avoid a pedantic warning.
84988
84989         * lib/getstr.c: Don't include assert.h.
84990         (getstr): Remove warning-evoking assertions.
84991         Return -1 if offset parameter is out of bounds.
84992         Change the type of a local from int to size_t.
84993
84994         * lib/strftime.c (my_strftime_localtime_r): Include this function
84995         definition in the `#if ! HAVE_TM_GMTOFF' block.
84996
84997         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84998         Include xalloc.h instead.
84999
85000 2001-12-02  Jim Meyering  <meyering@lucent.com>
85001
85002         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85003         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85004         included.
85005
85006         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85007         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85008
85009 2001-11-30  Akim Demaille  <akim@epita.fr>
85010
85011         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85012         before being defined.
85013
85014 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85015
85016         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85017         First arg is int, not unsigned.
85018         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85019         (SIZE_MAX, UINT_MAX): New macros.
85020         (quotearg_n_options): Abort if N is negative.
85021         Avoid overflow check on hosts where size_t is 64 bits and int
85022         is 32 bits, as overflow is impossible there.
85023         Fix off-by-one typo that caused unnecessary reallocation.
85024
85025 2001-11-27  Jim Meyering  <meyering@lucent.com>
85026
85027         * lib/tempname.c: Merge with version from libc.
85028         * lib/regex.c: Likewise.
85029
85030         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85031         systems for which STDC_HEADERS is 0, it was not included, resulting in
85032         a warning about an integer-to-pointer conversion problem with getenv.
85033         Reported by Volker Borchert.
85034
85035 2001-11-26  Jim Meyering  <meyering@lucent.com>
85036
85037         * lib/gtod.h: Remove file.
85038         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85039         * lib/gettimeofday.c: Don't include gtod.h.
85040         (GTOD_init): Remove function.
85041         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85042         Suggestion from Volker Borchert.
85043
85044 2001-11-23  Jim Meyering  <meyering@lucent.com>
85045
85046         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85047         it.
85048         * lib/hash.c (struct hash_table): Define it here instead.
85049
85050 2001-11-22  Jim Meyering  <meyering@lucent.com>
85051
85052         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85053
85054 2001-11-20  Jim Meyering  <meyering@lucent.com>
85055
85056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85057         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85058
85059 2001-11-19  Jim Meyering  <meyering@lucent.com>
85060
85061         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85062         directory.  Use "conftestXXXXXX" as the template.
85063         Suggestion from Paul Eggert.
85064
85065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85066         immediately, so the test doesn't mistakenly hit the max-open-files
85067         limit.
85068
85069 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85070
85071         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85072         (TEMPORARIES): New macro.
85073         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85074         removes an artificial limitation (e.g. HP-UX 10.20, where
85075         TMP_MAX is 17576).
85076
85077 2001-11-18  Jim Meyering  <meyering@lucent.com>
85078
85079         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85080
85081 2001-11-18  Jim Meyering  <meyering@lucent.com>
85082
85083         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85084         on SunOS 4.
85085
85086         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85087         files will be created before anything else.
85088
85089 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85090
85091         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85092         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85093
85094 2001-11-17  Jim Meyering  <meyering@lucent.com>
85095
85096         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85097         Prompted by a report from Bob Proulx.
85098
85099         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85100         Instead, require UTILS_FUNC_MKSTEMP.
85101
85102 2001-11-17  Jim Meyering  <meyering@lucent.com>
85103
85104         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85105         Now, that's done as part of AC_FUNC_STRTOD.
85106
85107 2001-11-17  Jim Meyering  <meyering@lucent.com>
85108
85109         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85110         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85111         rather than group writable.  Patch by Juan F. Codagnone.
85112
85113         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85114         xrealloc, Instead, include "xalloc.h".
85115
85116         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85117         Remove explicit declarations of xmalloc, xrealloc,
85118         and xstrdup.  Instead, include "xalloc.h".
85119
85120         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85121         unlocked-io.h.
85122         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85123         Likewise.
85124         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85125
85126         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85127         Reported by Padraig Brady.
85128
85129         * lib/mkstemp.c: #undef mkstemp.
85130         Include config.h.
85131         (rpl_mkstemp): Rename from mkstemp.
85132         Protoize.
85133
85134 2001-11-16  Jim Meyering  <meyering@lucent.com>
85135
85136         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85137         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85138         determine the amount of total physical memory, use pstat_getstatic.
85139         HPUX-11 doesn't define _SC_PHYS_PAGES.
85140         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85141         If sysconf couldn't be used to determine the amount of available
85142         physical memory, use both pstat_getstatic and pstat_getdynamic.
85143         Based on a patch from Bob Proulx.
85144
85145 2001-11-10  Jim Meyering  <meyering@lucent.com>
85146
85147         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85148         (jm_PREREQ): Use it.
85149
85150 2001-11-09  Jim Meyering  <meyering@lucent.com>
85151
85152         * m4/jm-macros.m4: Require autoconf-2.52f.
85153         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85154         Use these AC_-prefixed names, not the AM_-prefixed ones.
85155
85156         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85157
85158 2001-11-05  Jim Meyering  <meyering@lucent.com>
85159
85160         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85161
85162 2001-11-04  Jim Meyering  <meyering@lucent.com>
85163
85164         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85165         $DEFS.
85166
85167 2001-11-03  Jim Meyering  <meyering@lucent.com>
85168
85169         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85170         of AC_DEFUN.
85171
85172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85173         know the name of the variable in the macro definition.
85174
85175 2001-11-03  Jim Meyering  <meyering@lucent.com>
85176
85177         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85178         in argmatch_to_argument call.
85179
85180         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85181         argument.
85182
85183         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85184         e.g., a fault due to an attempt to free a NULL pointer.
85185
85186 2001-11-01  Jim Meyering  <meyering@lucent.com>
85187
85188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85189         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85190
85191 2001-11-01  Jim Meyering  <meyering@lucent.com>
85192
85193         * lib/dirfd.c, lib/dirfd.h: New files.
85194         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85195
85196         * lib/hash.c (hash_print) [TESTING]: Clean up.
85197
85198 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85199
85200         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85201         to avoid a warning if -Wall.
85202
85203 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85204
85205         * README: New file
85206         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85207         (per RMS's instructions, this is now the canonical source)
85208         * lgpl/, gpl/: New directories.
85209
85210 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85211
85212         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85213
85214 2001-10-21  Jim Meyering  <meyering@lucent.com>
85215
85216         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85217         this code would end up calling gettext even in packages built
85218         with --disable-nls.
85219         * lib/getopt.c (_): Likewise.
85220         * lib/regex.c (_): Likewise.
85221
85222 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85223
85224         * m4/error.m4 (jm_PREREQ_ERROR):
85225         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85226         AC_FUNC_STRERROR_R does that.
85227         Check for strerror declaration.
85228
85229         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85230         are supposed to have them these days.
85231         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85232         Merge changes from latest Autoconf CVS.
85233         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85234         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85235         POSIX decided to standardize on the int flavor of strerror_r.
85236
85237 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85238
85239         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85240         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85241         Use strerror_r that is only a macro, even if it is not a function.
85242         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85243         (private_strerror): Use prototypes, not old-style function definition.
85244         (print_errno_message): New function.
85245         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85246         char*-flavored one.
85247         (error_tail, error, error_at_line): Use it.
85248
85249 2001-10-11  Jim Meyering  <meyering@lucent.com>
85250
85251         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85252         and quote_n (1, ... to avoid clobbering a buffer.
85253
85254 2001-10-05  Jim Meyering  <meyering@lucent.com>
85255
85256         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85257         hash-pjw.h.
85258         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85259         * lib/hash-pjw.h: New file.
85260
85261 2001-09-30  Jim Meyering  <meyering@lucent.com>
85262
85263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85264         `struct fsstat' has the `f_fstypename' member.
85265         Use that to define FS_TYPE, which is now used to make
85266         the getfsstat link test tighter.
85267
85268 2001-09-30  Jim Meyering  <meyering@lucent.com>
85269
85270         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85271         Include <sys/ucred.h>, for Apple Darwin.
85272         Include sys/mount.h and sys/fs_types.h only if available.
85273         (FS_TYPE): Define.
85274         (read_filesystem_list): Use FS_TYPE.
85275
85276 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85277
85278         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85279         a boolean context.
85280
85281 2001-09-29  Jim Meyering  <meyering@lucent.com>
85282
85283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85284         [one-argument getmntent function]): Include stdio.h before mntent.h.
85285         SunOS 4.1.x needs it for the declaration of `FILE'.
85286         Patch by Volker Borchert.
85287
85288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85289         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85290         sys/fs_types.h, and make the link-test for getfsstat guard #include
85291         directives with appropriate #if HAVE_*_H tests so that we can
85292         detect getfsstat on Apple Darwin1.3.7 systems.
85293         Reported by Nelson Beebe.
85294         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85295
85296 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85297
85298         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85299         #defines strtoimax.  Also treat the other strto* functions
85300         like strtoimax.
85301
85302         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85303         Check for strtoul and strtoumax,
85304         as those declarations are made even in the signed case.
85305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85306         Likewise, for strtol and strtoimax.
85307
85308 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85309
85310         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85311         #defines strtoimax.  Also treat the other strto* functions
85312         like strtoimax.
85313
85314         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85315         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85316         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85317
85318 2001-09-26  Jim Meyering  <meyering@lucent.com>
85319
85320         Most macros in unlocked-io.h had the wrong number of arguments.
85321         * lib/gen-uio: New script.
85322         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85323         * lib/unlocked-io.hin: Remove file.
85324         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85325         rather than trying to embed it here.
85326         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85327         Reported by Padraig Brady.
85328
85329 2001-09-25  Volker Borchert  <bt@teknon.de>
85330
85331         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85332         `result'.
85333
85334 2001-09-24  Jim Meyering  <meyering@lucent.com>
85335
85336         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85337
85338 2001-09-23  Jim Meyering  <meyering@lucent.com>
85339
85340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85341         instead of the mere test for existence of mntent.h.  The latter
85342         would get a false-positive on AIX 3.4 systems.
85343         In the outer getmntent if-block, don't die if neither of the getmntent
85344         tests succeeds.  Instead, just fall through and continue with the
85345         remaining tests.
85346
85347 2001-09-23  Jim Meyering  <meyering@lucent.com>
85348
85349         * lib/mountlist.c: Remove useless parentheses in #if directives.
85350         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85351         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85352
85353 2001-09-22  Jim Meyering  <meyering@lucent.com>
85354
85355         * m4/gettext.m4: New file.  From gettext.
85356         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85357         * m4/progtest.m4: Likewise
85358         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85359         * m4/glibc21.m4: Likewise.
85360
85361         * m4/libintl.m4: Remove.  No longer used.
85362
85363 2001-09-22  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/localcharset.c: Update from latest gettext.
85366         * lib/config.charset: Likewise.
85367
85368 2001-09-20  Jim Meyering  <meyering@lucent.com>
85369
85370         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85371         strtoimax.
85372         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85373         strtoumax.
85374
85375 2001-09-20  Jim Meyering  <meyering@lucent.com>
85376
85377         * lib/xstrtol.c (strtoimax): Guard declaration with
85378         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85379         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85380         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85381         (strtoumax): Likewise, for completeness (it wasn't necessary).
85382
85383 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85384
85385         * lib/strtoimax.c (HAVE_LONG_LONG):
85386         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85387         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85388         to work around bug in IBM C compiler.
85389
85390 2001-09-17  Jim Meyering  <meyering@lucent.com>
85391
85392         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85393         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85394         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85395         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85396         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85397         whenever the right hand side need not be expanded by the shell.
85398
85399 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85400
85401         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85402         library.  It's not correct, as some older glibcs are buggy.
85403         fnmatch wasn't fixed until glibc 2.2.
85404
85405         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85406         special shell magic here.
85407
85408 2001-09-16  Jim Meyering  <meyering@lucent.com>
85409
85410         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85411         * m4/jm-macros.m4: Require it.
85412
85413 2001-09-16  Jim Meyering  <meyering@lucent.com>
85414
85415         * lib/mkdir.c: New file.
85416
85417 2001-09-15  Jim Meyering  <meyering@lucent.com>
85418
85419         * m4/jm-macros.m4: Check for help2man.
85420
85421 2001-09-11  Jim Meyering  <meyering@lucent.com>
85422
85423         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85424         The body, by Paul Eggert, was moved here from configure.in.
85425         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85426
85427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85428
85429         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85430         (jm_PREREQ): Use it.
85431
85432 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85433
85434         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85435         Use ssize_t, not int, to store result of readlink.
85436         Check for ssize_t overflow as well as size_t overflow,
85437         as POSIX says the result of readlink is implementation-defined
85438         when ssize_t overflows.
85439         Remove unnecessary cast to char*.
85440         Use free+malloc instead of realloc, as the storage doesn't need
85441         to be preserved and it's clearer and can be more efficient that way.
85442         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85443         * lib/xreadlink.h (xreadlink): Update prototype.
85444
85445 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85446
85447         * lib/xgetcwd.c: Revert some of the previous change; intead,
85448         fix the HAVE_GETCWD_NULL code to behave more like the
85449         !HAVE_GETCWD_NULL code used to.
85450
85451         Include "xalloc.h".
85452         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85453         invoke xalloc_die.
85454
85455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85456
85457         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85458         sys/param.h, as pathmax.h includes them.
85459
85460 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85461
85462         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85463         (jm_PREREQ_XGETCWD): New macro.
85464
85465         * m4/getcwd.m4: New file.
85466
85467 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85468
85469         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85470         like the HAVE_GETCWD_NULL code.
85471         Include pathmax.h if not HAVE_GETCWD.
85472         Do not include xalloc.h.
85473         (INITIAL_BUFFER_SIZE): New symbol.
85474         Do not use xmalloc / xrealloc, since the caller is responsible for
85475         handling errors.  Preserve errno around `free' during failure.
85476         Do not overrun buffer when using getwd.
85477
85478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85479
85480         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85481         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85482         getcwd (NULL, 0).
85483
85484 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85485
85486         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85487         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85488         spotted by Jim Meyering.
85489
85490 2001-09-03  Jim Meyering  <meyering@lucent.com>
85491
85492         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85493         failure.
85494
85495 2001-09-02  Jim Meyering  <meyering@lucent.com>
85496
85497         * lib/error.c: Update from GNU libc.
85498
85499 2001-09-01  Jim Meyering  <meyering@lucent.com>
85500
85501         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85502         Used by df.
85503
85504 2001-09-01  Jim Meyering  <meyering@lucent.com>
85505
85506         * lib/xreadlink.c: New file.
85507         * lib/xreadlink.h: New file.
85508         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85509         xreadlink.h.
85510
85511         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85512         doesn't conflict with sparc Solaris 7's definition in
85513         /usr/include/sys/int_types.h.
85514
85515         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85516         files.
85517         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85518         and strncasecmp as r-values.  Unixware didn't have declarations.
85519
85520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85521
85522         * lib/xstrtol.h: Add copyright notice.
85523         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85524         LONGINT_INVALID_SUFFIX_CHAR.
85525
85526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85527
85528         * lib/xstrtol.c (strtoimax): New decl.
85529
85530 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85531
85532         * lib/xgetcwd.c: Don't include pathmax.h.
85533         Include stdlib.h and unistd.h if available.
85534         Include xalloc.h.
85535         (xmalloc, xstrdup, free): Remove decls.
85536         (xgetcwd): Don't assume sizes fit in unsigned.
85537         Check for overflow when computing sizes.
85538         Simplify reallocation code.
85539
85540 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85541
85542         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85543         a directory's st_size can have an arbitrary value, so the old
85544         usage could waste an arbitrary amount of memory.  All uses
85545         changed.
85546         * lib/savedir.h: Update prototype.
85547
85548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85549
85550         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85551
85552         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85553         old strtoimax.c.
85554
85555         Also, make the following further changes to make this file's
85556         configuration more similar to that of strtol.c:
85557         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85558         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85559         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85560         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85561         changed to signed values.
85562
85563         And make the following changes as well:
85564         Fix copyright notice, as 1999 was missing.
85565         (verify): New macro.
85566         (strtoimax): Check sizes at compile-time, not run-time.
85567         Prefer strtol to strtoll if both work.
85568         (main): Remove; it was not that useful and was a pain to maintain.
85569
85570         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85571
85572 2001-08-31  Jim Meyering  <meyering@lucent.com>
85573
85574         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85575         Use an initial, malloc'd, buffer of length 128 rather than
85576         a statically allocated one of length 1024.
85577
85578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85579
85580         Simplify code, partly by assuming autoconf 2.52 semantics.
85581
85582         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85583
85584         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85585         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85586         All uses removed.
85587         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85588         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85589         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85590         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85591         jm_AC_HEADER_INTTYPES_H.
85592         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85593
85594         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85595
85596         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85597         Quote first arg of AC_DEFUN.
85598         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85599         since they are needed to parse the include file even if we need
85600         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85601         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85602         but with opposite signedness.
85603
85604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85605
85606         Merge 'exclude' changes from tar 1.13.22.
85607         This fixes one or two unlikely storage allocation overflow bugs,
85608         but doesn't change user-visible behavior otherwise.
85609
85610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85611
85612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85613         (jm_PREREQ_EXCLUDE): New macro.
85614
85615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85616
85617         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85618         tm to be declared.
85619
85620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85621
85622         * lib/hash.c: Remove '2001' from copyright notice.
85623
85624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85625
85626         * lib/full-write.h: New file.
85627         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85628         * lib/full-write.c: Correct credits, as cccp.c no longer
85629         exists and anyway it was so heavily changed from the old cccp
85630         code as to be unrecognizable.  Include full-write.h.
85631         (full_write): Return size_t, with short writes meaning failure.
85632         All callers changed.  This fixes a bug with large buffers
85633         on 64-bit hosts.
85634         * lib/utime.c: Include full-write.h.
85635
85636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85637
85638         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85639         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85640         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85641         Include if available.
85642         (<xalloc.h>): Include
85643         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85644         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85645         collide with FNM macros.
85646         (struct patopts): New struct.
85647         (struct exclude): Use it, as exclude patterns now come with options.
85648         (new_exclude): Support above changes.
85649         (new_exclude, add_exclude_file):
85650         Initial size must now be a power of two to simplify overflow checking.
85651         (free_exclude, fnmatch_no_wildcards): New function.
85652         (excluded_filename): No longer requires options arg, as the options
85653         are determined by add_exclude.  Now returns bool, not int.
85654         (excluded_filename, add_exclude):
85655         Add support for the fancy new exclusion options.
85656         (add_exclude, add_exclude_file): Now takes int options arg.
85657         Check for arithmetic overflow when computing sizes.
85658         (add_exclude_file): xrealloc might modify errno, so don't
85659         realloc until after errno might be used.
85660
85661         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85662         New macros.
85663         (free_exclude): New decl.
85664         (add_exclude, add_exclude_file): Now takes int options arg.
85665         (excluded_filename): No longer requires options arg, as the options
85666         are determined by add_exclude.  Now returns bool, not int.
85667
85668 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85669
85670         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85671
85672 2001-08-27  Jim Meyering  <meyering@lucent.com>
85673
85674         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85675
85676         * lib/version-etc.c (N_): Remove definition.
85677         Revert most of last change.
85678         Instead, simply don't mark the `Copyright...' string for translation.
85679         Based on advice from Paul Eggert.
85680
85681         * lib/strtoxmax.c: Tweak comment.
85682
85683 2001-08-26  Jim Meyering  <meyering@lucent.com>
85684
85685         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85686
85687         * m4/xstrtoimax.m4: New file.
85688         * m4/xstrtoumax.m4: Add comments explaining why we
85689         AC_REPLACE_FUNCS(strtol).
85690
85691 2001-08-26  Jim Meyering  <meyering@lucent.com>
85692
85693         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85694         of copyright with `%s' so translators don't get an untranslated
85695         message in 2002.
85696         (COPYRIGHT_YEAR): Define.
85697         (version_etc): Use fprintf rather than fputs.
85698         Suggestion from Ulrich Drepper.
85699
85700         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85701
85702         * lib/strtoll.c: New file, from GNU libc.
85703         * lib/xstrtoimax.c: New file.
85704
85705         * lib/xstrtol.h: Add xstrtoimax.
85706         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85707         * lib/strtoimax.c: New file.  Likewise, but first define
85708         STRTOUXMAX_SIGNED.
85709
85710         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85711         ...
85712         * lib/strtoxmax.c: ... then renamed to this.
85713
85714 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85715
85716         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85717         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85718         (jm_AC_TYPE_INTMAX_T): New macro.
85719         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85720
85721         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85722
85723         * m4/longlong.m4: Renamed from ulonglong.m4.
85724         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85725         * m4/uintmax_t.m4: Removed.
85726
85727 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85728
85729         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85730         Port to Solaris 8, where 'sed' requires a space after the 'r'
85731         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85732         Redirect output to $tmp just once.
85733
85734 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85735
85736         * lib/addext.c (<errno.h>): Include.
85737         (errno): Declare if not defined.
85738         (addext): Work correctly when pathconf returns -1 and leaves
85739         errno alone because there is no limit.  Also, work even if
85740         pathconf returns a value greater than SIZE_MAX.
85741
85742 2001-08-12  Jim Meyering  <meyering@lucent.com>
85743
85744         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85745         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85746         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85747         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85748         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85749         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85750         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85751         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85752         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85753         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85754         utime.m4, utimes.m4, xstrtoumax.m4:
85755         Quote the first argument in each use of AC_DEFUN.
85756
85757 2001-08-12  Jim Meyering  <meyering@lucent.com>
85758
85759         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85760         Simply `return getcwd (NULL, 0);'.
85761         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85762         Use 1300 as initial value for length, not PATH_MAX.
85763
85764         * lib/pathmax.h: Clean up cpp syntax.
85765
85766 2001-08-12  Jim Meyering  <meyering@lucent.com>
85767
85768         * lib/gettimeofday.c: New file.
85769         * lib/gtod.h: New file.
85770         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85771
85772 2001-08-05  Jim Meyering  <meyering@lucent.com>
85773
85774         * m4/jm-macros.m4: Require autoconf-2.52.
85775
85776 2001-08-04  Jim Meyering  <meyering@lucent.com>
85777
85778         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85779         stmt, to get in sync with glibc.
85780
85781 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85782
85783         The following changes are from gettext 0.10.39 as maintained by
85784         Bruno Haible.
85785
85786         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85787         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85788         with inverted sense.  All uses changed.
85789
85790         * lib/mbswidth.c: Don't include <limits.h>.
85791         Include <stdlib.h> and <string.h> unconditionally.
85792         (iswcntrl, mbsinit, ISCNTRL): New macros.
85793         (mbsnwidth): Use K&R style function declarations.
85794         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85795         can optimize it when MB_CUR_MAX == 1.
85796         The width of control characters is zero, not 1.
85797
85798 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85799
85800         The following changes are from gettext 0.10.39 as maintained by
85801         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85802
85803         * m4/codeset.m4: Upgrade to serial AM1.
85804         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85805         all uses changed.  Quote first arg of AC_DEFUN.
85806         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85807
85808         * m4/iconv.m4: Upgrade to serial AM2.
85809         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85810         Add --with-libconv-prefix.
85811         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85812         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85813         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85814         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85815         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85816
85817         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85818         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85819         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85820         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85821         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85822         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85823         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85824         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85826
85827         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85828         string.h any more.
85829
85830         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85831         not the default value.
85832
85833         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85834         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85835         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85836         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85837         Also check for iswcntrl, used for wcwidth fallback.
85838         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85839         to Autoconf 2.13.
85840
85841 2001-08-03  Jim Meyering  <meyering@lucent.com>
85842
85843         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85844         as it was in the original.  Reported by Paul Eggert.
85845
85846 2001-07-16  Jim Meyering  <meyering@lucent.com>
85847
85848         * m4/gettimeofday.m4: New file.
85849         Prompted by a report from Bernhard Baehr.
85850
85851 2001-07-15  Jim Meyering  <meyering@lucent.com>
85852
85853         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85854         stuff. Now it's in ../Makefile.cfg.
85855
85856 2001-07-15  Jim Meyering  <meyering@lucent.com>
85857
85858         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85859         (BUILT_SOURCES): Add unlocked-io.h.
85860         (io_functions): Define.
85861         (unlocked-io.h): New rule.
85862         (DISTCLEANFILES): Add unlocked-io.h.
85863         (all-local): Depend on unlocked-io.h, to ensure it is created.
85864
85865         * lib/unlocked-io.hin: New file
85866
85867         * lib/regex.c: Update from glibc.
85868
85869 2001-07-05  Jim Meyering  <meyering@lucent.com>
85870
85871         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85872         recommendation.
85873         (libfetish_a_SOURCES): Put all .h files here instead.
85874         Remove a thus-exposed (better checks in automake) duplicate and
85875         two unnecessary .h files.
85876
85877 2001-07-04  Jim Meyering  <meyering@lucent.com>
85878
85879         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85880         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85881         distcheck failure.
85882
85883 2001-07-02  Jim Meyering  <meyering@lucent.com>
85884
85885         The following changes were prompted by suggestions from Bruno Haible.
85886
85887         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85888         is now generated.
85889         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85890         definition of EXTRA_DIST.
85891         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85892         ensure that the generated file is created/updated whenever the list
85893         of $(unlocked_functions) is changed.
85894         (jm-glibc-io.m4): New rule.
85895         (unlocked-io.h): New rule -- currently unused.
85896
85897 2001-06-24  Jim Meyering  <meyering@lucent.com>
85898
85899         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85900         unmatched right bracket, rather than kludging it with an extra,
85901         falsely-matching quote in a comment.  Patch by Akim Demaille.
85902
85903 2001-06-11  Jim Meyering  <meyering@lucent.com>
85904
85905         * lib/regex.c: Update from GNU libc.
85906
85907 2001-05-27  Jim Meyering  <meyering@lucent.com>
85908
85909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85910         Check for ut_type in struct utmp.
85911
85912 2001-05-27  Jim Meyering  <meyering@lucent.com>
85913
85914         * lib/readutmp.h (UT_TYPE): Define.
85915
85916 2001-05-24  Jim Meyering  <meyering@lucent.com>
85917
85918         * lib/argmatch.c: Include "quote.h".
85919         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85920         quote function.  Reported by Göran Uddeborg.
85921
85922 2001-05-22  Jim Meyering  <meyering@lucent.com>
85923
85924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85925         now that we use the package-supplied version unconditionally.
85926         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85927
85928 2001-05-21  Jim Meyering  <meyering@lucent.com>
85929
85930         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85931         shell syntax errors.
85932
85933 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85934
85935         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85936
85937 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85938
85939         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85940         Don't bother to check library strftime, since
85941         we'll be using our own my_strftime function anyway.
85942         Define my_strftime instead of strftime.
85943
85944 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85945
85946         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85947         which is not yet declared.
85948
85949 2001-05-15  Jim Meyering  <meyering@lucent.com>
85950
85951         * m4/regex.m4: Use proper quoting so brackets appear in the test
85952         program.
85953         Reported by, and with help from, Bruno Haible.
85954
85955 2001-05-13  Jim Meyering  <meyering@lucent.com>
85956
85957         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85958         undefined.
85959
85960 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85961
85962         dirname code cleanup.  base_name now behaves more compatibly
85963         with POSIX basename when given file names that have trailing
85964         slashes, and similarly for dir_name.  Add new primitives
85965         base_len and dir_len.  Put the directory-name-related decls
85966         into dirname.h.
85967
85968         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85969         * lib/backupfile.c (base_name): Likewise.
85970         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85971         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85972         * lib/makepath.c (strip_trailing_slashes): Likewise.
85973         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85974         ISSLASH): Likewise.
85975         * lib/rename.c (strip_trailing_slashes): Likewise.
85976         * lib/same.c (base_name): Likewise.
85977         * lib/stripslash.c (ISSLASH): Likewise.
85978
85979         * lib/addext.c: Include <dirname.h> after size_t is defined.
85980         * lib/backupfile.c: Likewise.
85981
85982         * lib/addext.c (addext): Use base_len to trim redundant
85983         trailing slashes instead of doing it ourselves.
85984         But do not trim the last slash if it is not redundant.
85985
85986         * lib/backupfile.c (find_backup_file_name,
85987         max_backup_version): Use base_len instead of rolling it ourselves.
85988         Handle the case of "" and (on DOS) "C:" correctly.
85989
85990         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85991         needed. Include <string.h>, <dirname.h>.
85992         (base_name): Allow file names ending in slashes, other than names
85993         that are all slashes.  In this case, return the basename followed
85994         by the slashes.  This is more general, and can be used in places
85995         where the original base_name purposely had an assertion failure.
85996         (base_len): New function.
85997
85998         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85999         Do not include <assert.h>; no longer needed.
86000         Include xalloc.h.
86001         (memrchr): Remove decl.
86002         (dir_name_r): Remove.
86003         (dir_len): Renamed from dirlen.  All callers changed.
86004         Rewrite in terms of base_name, for simplicity and consistency.
86005         (dir_name): Never return NULL.  All callers changed.
86006         Do not include <stdlib.h> in test program; no longer needed.
86007         return 0; is fine for test program.
86008
86009         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86010         New macros.
86011         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86012
86013         * lib/path-concat.c (path_concat): Use base_len to compute
86014         base length, not strlen; this means we cannot rely on memcpy
86015         to null-terminate.
86016
86017         * lib/same.c (STREQ): Remove.
86018         (same_name): Handle the case where the basename ends in trailing '/'.
86019
86020         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86021         a slash was stripped.  Do not strip the last slash after a
86022         file system prefix.
86023
86024 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86025
86026         * lib/Makefile.am (libfetish_a_SOURCES):
86027         Add strftime.c, since we now compile it on all hosts.
86028
86029         * lib/strftime.c (my_strftime):
86030         Define to nstrftime if emacs, but only if my_strftime is not defined.
86031         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86032         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86033         Add one more extra argument: a nanoseconds value.
86034         All uses changed.
86035         (ns): New macro.
86036         (my_strftime function): Add %N format.
86037         (emacs_strftimeu): Renamed from emacs_strftime,
86038         with extra ut argument.
86039
86040 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86041
86042         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86043
86044 2001-04-21  Jim Meyering  <meyering@lucent.com>
86045
86046         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86047         doesn't interfere.
86048
86049 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86050
86051         * m4/ftruncate.m4: Check for chsize.
86052         Link with ftruncate.o unconditionally if ftruncate is missing.
86053         This was required when cross-compiling to i586-mingw32msvc.
86054
86055 2001-04-08  Jim Meyering  <meyering@lucent.com>
86056
86057         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86058         recomputed; that's necessary when the offset spans a DST transition.
86059         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86060
86061 2001-04-02  Jim Meyering  <meyering@lucent.com>
86062
86063         * lib/regex.h, regex.c: Update from GNU libc.
86064
86065 2001-03-24  Jim Meyering  <meyering@lucent.com>
86066
86067         * m4/jm-macros.m4: Require autoconf-2.49d.
86068
86069 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86070
86071         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86072
86073 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86074
86075         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86076
86077 2001-03-17  Jim Meyering  <meyering@lucent.com>
86078
86079         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86080         now that the version in autoconf is equivalent.
86081         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86082
86083         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86084         Suggestion from Akim Demaille.
86085
86086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86087         (jm_PREREQ_TEMPNAME): New function.
86088
86089 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86090
86091         * lib/tempname.c (uint64_t): Define to uintmax_t if
86092         not defined, and if UINT64_MAX is not defined.
86093         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86094         Reported by John David Anglin.
86095
86096 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86097
86098         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86099         resolve alias if codeset is empty.
86100         * lib/config.charset (BeOS): Use wildcard syntax.
86101
86102 2001-03-13  Jim Meyering  <meyering@lucent.com>
86103
86104         * lib/path-concat.c (path_concat)
86105         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86106         concatenating e.g., `C:' and `foo'.
86107         From Bruno Haible.
86108
86109 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86110
86111         * lib/localcharset.c (locale_charset): Don't use
86112         setlocale(LC_CTYPE,NULL). Don't return NULL.
86113         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86114
86115 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86116
86117         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86118         support for DOS/DJGPP.
86119
86120 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86121
86122         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86123         lacks mkstemp.  Compile our own tempname.c if we compile our own
86124         mkstemp.c, as mkstemp relies on tempname.
86125
86126 2001-03-01  Jim Meyering  <meyering@lucent.com>
86127
86128         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86129         AH_VERBATIM really does output its argument verbatim.
86130
86131 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86132
86133         * lib/Makefile.am (libfetish_a_SOURCES):
86134         Add dup-safer.c, fopen-safer.c.
86135         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86136
86137         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86138         * lib/unistd-safer.h: New files.
86139
86140 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86141
86142         The mkstemp replacement is taken from glibc 2.2.2, with some
86143         portability fixes for use outside glibc, as follows:
86144
86145         * lib/tempname.c (struct_stat64): New macro.
86146         (direxists, __gen_tempname): Use it.
86147         This avoids a portability problem with Solaris 8.
86148
86149         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86150         (<stddef.h>, <stdint.h>, <string.h>):
86151         Include only if STDC_HEADERS || _LIBC.
86152         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86153         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86154         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86155         (__set_errno): Define this macro if <errno.h> doesn't.
86156         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86157         Define these macros if <stdio.h> doesn't.
86158         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86159         Define these macros if <sys/stat.h>
86160         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86161         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86162         __xstat64): Define if not _LIBC.
86163         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86164         (__gen_tempname): Invoke gettimeofday only if
86165         HAVE_GETTIMEOFDAY || _LIBC;
86166         otherwise, fall back on plain "time".
86167         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86168
86169         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86170
86171         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86172
86173 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86174
86175         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86176
86177 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86178
86179         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86181         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86183
86184 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86185
86186         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86187         Remove workaround macros for hosts that have mbrtowc but not
86188         mbstate_t, as we now insist on proper declarations for both
86189         before using mbrtowc.
86190
86191 2001-02-17  Jim Meyering  <meyering@lucent.com>
86192
86193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86194         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86195         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86196         UnixWare 7.1.1.
86197
86198         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86199         rather than AC_CACHE_VAL.
86200
86201 2001-02-17  Jim Meyering  <meyering@lucent.com>
86202
86203         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86204         around included file name.
86205
86206         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86207
86208         * lib/strftime.c: Update from GNU libc (the only changes were to
86209         comments).
86210
86211 2001-02-17  Jim Meyering  <meyering@lucent.com>
86212
86213         * lib/regex.c: Update from libc.
86214
86215 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86216
86217         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86218         clash.
86219
86220 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86221
86222         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86223         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86224         Reported by Mark Hounschell via Paul Eggert.
86225
86226 2001-02-07  Jim Meyering  <meyering@lucent.com>
86227
86228         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86229
86230 2001-02-05  Jim Meyering  <meyering@lucent.com>
86231
86232         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86233         it includes the patch required for `large file' support with at least
86234         HP-UX's 10.20 /bin/cc.
86235
86236 2001-02-03  Jim Meyering  <meyering@lucent.com>
86237
86238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86239         AS_IF, now that it works once again (mysteriously).
86240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86241
86242 2001-01-30  Jim Meyering  <meyering@lucent.com>
86243
86244         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86245         * m4/chown.m4: Rename conftestchown to conftest.chown.
86246         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86247         s/conftestdir2/conftest.d2/.
86248         * m4/utimes.m4: s/conftestdata/conftest.data/
86249         Inspired by Pavel Roskin's change in autoconf.
86250
86251 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86252
86253         * lib/config.charset: Update for FreeBSD 4.2.
86254
86255 2001-01-27  Jim Meyering  <meyering@lucent.com>
86256
86257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86258         a use of AS_IF.
86259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86260
86261 2001-01-26  Jim Meyering  <meyering@lucent.com>
86262
86263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86264         quotearg.c includes it.
86265
86266 2001-01-26  Jim Meyering  <meyering@lucent.com>
86267
86268         * lib/quotearg.c: Include stddef.h.
86269         * lib/quote.c: Include stddef.h.
86270         Reported by Axel Kittenberger.
86271
86272         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86273         line in double quotes so that it evokes a better diagnostic.
86274         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86275         Reported by Axel Kittenberger.
86276
86277 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86278
86279         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86280         as if it was a `charset'.
86281
86282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86283
86284         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86285         has const.
86286
86287 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86288
86289         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86290         to avoid a warning.  Add back 'const' to inptr.
86291
86292 2001-01-20  Jim Meyering  <meyering@lucent.com>
86293
86294         Be sure that headers are checked before used in code compiled
86295         for the type checks.
86296         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86297         In place of that, invoke jm_CHECK_ALL_TYPES.
86298         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86299         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86300         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86301         The check for ssize_t was mistakenly run before the test for unistd.h.
86302
86303         The configure-time check for stdbool.h was missing.
86304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86305         (jm_PREREQ_HASH): New function.
86306
86307 2001-01-17  Jim Meyering  <meyering@lucent.com>
86308
86309         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86310         for autoconf-2.49c.
86311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86312
86313 2001-01-16  Jim Meyering  <meyering@lucent.com>
86314
86315         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86316         From Bruno Haible.
86317
86318 2001-01-14  Jim Meyering  <meyering@lucent.com>
86319
86320         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86321         foo and bar.  Create conftestdir/ in the script, not in the C code.
86322         Remove directories in the script, not in the C code.
86323         Remove conftestdir{,2} before trying to create the directory.
86324         Make the entire configure script fail if the mkdir fails.
86325
86326 2001-01-14  Jim Meyering  <meyering@lucent.com>
86327
86328         * lib/rename.c: New file.  From Volker Borchert.
86329         Include stdlib.h, string.h or strings.h, and xalloc.h.
86330         Use strip_trailing_slashes rather than open-coding it.
86331
86332 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86333
86334         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86335
86336 2001-01-03  Jim Meyering  <meyering@lucent.com>
86337
86338         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86339         of local `inptr' to avoid warning with some system declarations of
86340         iconv.
86341
86342 2001-01-02  Volker Borchert  <bt@teknon.de>
86343
86344         * m4/rename.m4: New file.
86345         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86346
86347 2001-01-01  Jim Meyering  <meyering@lucent.com>
86348
86349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86350         even on systems with utmpx.h.  It's necessary for the declaration of
86351         utmp's ut_user member.  Reported by Andreas Jaeger.
86352
86353         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86354         available. They are required for the declarations of getgrgid and
86355         getpwuid resp.
86356         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86357         Reported by Andreas Jaeger.
86358
86359 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86360
86361         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86362         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86363         so `make install' also works in VPATH builds.
86364
86365 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86366
86367         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86368         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86369         can be used in subdirectories.
86370
86371 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86372
86373         * lib/modechange.c: Do not assume that mode_t uses the
86374         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86375         the other-execute bit of FOO even if S_IXOTH != 1.
86376
86377         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86378         WOTH, XOTH, ALLM): New macros.
86379         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86380          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86381         Use them.
86382         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86383         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86384         (mode_compile):
86385         No need to use uintmax_t; unsigned long is long enough.
86386         Don't bother to get suffix since we don't use it.
86387
86388 2000-12-26  Jim Meyering  <meyering@lucent.com>
86389
86390         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86391         better with autoheader.
86392
86393 2000-12-24  Jim Meyering  <meyering@lucent.com>
86394
86395         * lib/hash.c (is_prime): Return explicit boolean values.
86396         (hash_get_first): Return NULL to appease Irix5.6's 89.
86397         Reported by Nelson Beebe.
86398
86399 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86400
86401         * lib/localcharset.c (locale_charset): Add support for Win32.
86402
86403 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86404
86405         * lib/physmem.h, lib/physmem.c: New files.
86406
86407         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86408         (noinst_HEADERS): Add physmem.h.
86409
86410         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86411         't' for compatibility with Solaris 8 sort.
86412
86413 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86414
86415         * lib/config.charset: Add support for BeOS.
86416
86417 2000-12-17  Jim Meyering  <meyering@lucent.com>
86418
86419         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86420         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86421
86422 2000-12-16  Jim Meyering  <meyering@lucent.com>
86423
86424         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86425         N and M) would have treated it like `chown N:N FILE'.
86426
86427         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86428
86429 2000-12-16  Jim Meyering  <meyering@lucent.com>
86430
86431         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86432         SHELLS_FILE to a file name that's useful on djgpp systems.
86433         Include stdlib.h.
86434         (ADDITIONAL_DEFAULT_SHELLS): Define.
86435         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86436         Based mostly on a patch from Prashant TR.
86437
86438 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86439
86440         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86441         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86442         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86443
86444 2000-12-08  Andreas Schwab  <schwab@suse.de>
86445
86446         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86447         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86448
86449 2000-12-07  Jim Meyering  <meyering@lucent.com>
86450
86451         * lib/stripslash.c (ISSLASH): Define.
86452         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86453         `/'.
86454         From Prashant TR.
86455
86456         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86457         (dir_name_r): Declare this function as static.
86458         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86459         manifest itself on a name containing a mix of slashes and
86460         backslashes.
86461         Make this function work with names starting with a DOS-style
86462         drive letter and colon prefix.
86463         (dir_name): Append `.' if necessary.
86464         Based mostly on patches from Prashant TR and Eli Zaretskii.
86465
86466         * lib/dirname.h (dir_name_r): Remove prototype.
86467
86468 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86469
86470         * m4/off_t-format.m4: Remove this file.
86471         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86472
86473 2000-12-06  Jim Meyering  <meyering@lucent.com>
86474
86475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86476         replacement strtoull, we may well need the replacement strtoul, too.
86477         Check for declarations of strtoul and strtoull.
86478         Check for strtol.  Mainly as a cue to cause automake to include
86479         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86480         Check for limits.h -- strtol.c needs it.
86481
86482 2000-12-05  Jim Meyering  <meyering@lucent.com>
86483
86484         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86485
86486 2000-12-04  Jim Meyering  <meyering@lucent.com>
86487
86488         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86489         Also include memory.h, stdlib.h, unistd.h if appropriate.
86490         Reported by Andreas Jaeger (conflicting declaration of malloc).
86491
86492 2000-12-02  Jim Meyering  <meyering@lucent.com>
86493
86494         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86495         * m4/jm-macros.m4 (jm_MACROS): require it.
86496
86497 2000-12-02  Jim Meyering  <meyering@lucent.com>
86498
86499         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86500
86501 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86502
86503         * lib/memrchr.c: Include <config.h> before any system include file.
86504
86505 2000-11-30  Jim Meyering  <meyering@lucent.com>
86506
86507         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86508
86509 2000-11-30  Jim Meyering  <meyering@lucent.com>
86510
86511         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86512
86513 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86514
86515         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86516
86517 2000-11-26  Jim Meyering  <meyering@lucent.com>
86518
86519         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86520
86521 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86522
86523         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86524         size of (size_t) -1; it's not portable.
86525
86526 2000-11-17  Jim Meyering  <meyering@lucent.com>
86527
86528         * lib/strstr.c: Update from GNU libc.
86529
86530 2000-11-17  Akim Demaille  <akim@epita.fr>
86531
86532         * lib/obstack.h: Formatting changes.
86533         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86534         prevent type checking.
86535         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86536         cast the value to (void *): assigning a `foo *' to a `void *'
86537         variable is valid.
86538         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86539
86540 2000-11-16  Jim Meyering  <meyering@lucent.com>
86541
86542         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86543
86544 2000-11-11  Jim Meyering  <meyering@lucent.com>
86545
86546         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86547
86548 2000-11-10  Jim Meyering  <meyering@lucent.com>
86549
86550         * lib/obstack.h: Update from GNU libc.
86551         * lib/obstack.c: Likewise.
86552
86553 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86554
86555         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86556
86557 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86558
86559         * lib/getusershell.c (setusershell): Use rewind rather than
86560         fseek/fseeko, to avoid configuration hassles with fseeko.
86561         Don't bother opening SHELLS_FILE if shellstream is NULL;
86562         it's not necessary.
86563
86564 2000-11-05  Jim Meyering  <meyering@lucent.com>
86565
86566         * lib/makepath.h (make_dir): Declare.
86567         * lib/makepath.c (make_dir): Remove `static' attribute.
86568         Tweak a comment.
86569
86570 2000-11-04  Jim Meyering  <meyering@lucent.com>
86571
86572         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86573
86574 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86575
86576         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86577         last one in a bucket, advance to the next bucket.
86578
86579 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86580
86581         * lib/fnmatch.c: Do not comment out all the code if we are using
86582         the GNU C library, because in some cases we are replacing buggy
86583         code in the GNU C library itself.
86584
86585 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86586
86587         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86588         (regex_compile): Catch bogus \(\1\).
86589
86590 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86591
86592         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86593         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86594         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86595
86596 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86597
86598         * lib/error.h, getline.h, modechange.h:
86599         Remove "2000" from Copyright line, as the file hasn't been
86600         changed this year other than in the copyright notice.
86601
86602         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86603         was changed this year.
86604
86605 2000-10-29  Jim Meyering  <meyering@lucent.com>
86606
86607         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86608         renaming.
86609         * m4/ls-mntd-fs.m4: Likewise
86610
86611 2000-10-29  Jim Meyering  <meyering@lucent.com>
86612
86613         * lib/xstat.in: Fix grammar in comment.
86614
86615 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86616
86617         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86618         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86619         doesn't define __restrict_arr.
86620
86621 2000-10-28  Jim Meyering  <meyering@lucent.com>
86622
86623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86624         (jm_PREREQ_MEMCHR): New function.
86625
86626 2000-10-28  Jim Meyering  <meyering@lucent.com>
86627
86628         * lib/memchr.c: Update from libc.
86629         Adjust for portability:
86630         [HAVE_STDLIB_H]: Include stdlib.h.
86631         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86632         Undef __memchr, too.
86633         [!weak_alias]: Define __memchr to memchr.
86634
86635         * lib/regex.c: Update from libc.
86636         * lib/regex.h: Likewise.
86637         * lib/getopt1.c: Likewise.
86638         * lib/memcmp.c: Likewise.
86639
86640         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86641         Avoid using fseek, when possible -- it's broken by design.
86642         Patch by Ulrich Drepper.
86643
86644 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86645
86646         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86647         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86648         Giving in to popular pressure to shut up the compiler with casts.
86649
86650 2000-10-26  Jim Meyering  <meyering@lucent.com>
86651
86652         * lib/strftime.c: Update from libc.
86653
86654 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86655
86656         * regex.c: More `unsigned char' -> `re_char' changes.
86657         Also change several `int' into `re_wchar_t'.
86658         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86659         (PUSH_FAILURE_POINTER): Don't cast any more.
86660         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86661         We want GCC to complain, since this piece of code makes
86662         re_match non-reentrant, which *should* be fixed.
86663         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86664         (EXTEND_BUFFER): Use RETALLOC.
86665         (SET_LIST_BIT): Don't cast.
86666         (re_wchar_t): New type.
86667         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86668         that those two functions will always properly return.
86669         (IMMEDIATE_QUIT_CHECK): Cast to void.
86670         (analyse_first): Use recursion rather than an explicit stack.
86671         (re_compile_fastmap): Can't fail anymore.
86672         (re_search_2): Don't check re_compile_fastmap for failure.
86673         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86674         Now also sets the new value (passed in a new argument).
86675         (re_match_2_internal): Use it.
86676         Also, use a new var `reg' of type size_t when looping through regs
86677         rather than reuse the inappropriate `mcnt'.
86678
86679 2000-10-25  Jim Meyering  <meyering@lucent.com>
86680
86681         * lib/obstack.c: Update from libc.
86682
86683 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86684
86685         * regex.c (regex_compile): Change the way of handling a range from
86686         a char less than 256 to a char not less than 256.
86687
86688 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86689
86690         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86691         NT-Emacs only.
86692         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86693         so that re_search functions only quit when callers expect them to.
86694
86695 2000-10-23  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86698         wrong.  That set_locale call must not have any side effects.
86699         From Paul Eggert.
86700
86701 2000-10-22  Jim Meyering  <meyering@lucent.com>
86702
86703         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86704         [CYCLIC]: Remove now-unused definition.
86705
86706         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86707         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86708         Suggestion from Ulrich Drepper.
86709
86710 2000-10-21  Jim Meyering  <meyering@lucent.com>
86711
86712         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86713         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86715
86716 2000-10-21  Jim Meyering  <meyering@lucent.com>
86717
86718         * lib/dirname.c (memrchr): Declare if necessary.
86719         (dir_name): Remove the restriction that there be no
86720         trailing slashes.  Now, this code skips past them, effectively
86721         ignoring them.
86722         [TEST_DIRNAME] (main): New unit tests.
86723
86724         * lib/memrchr.c: New file from GNU libc.
86725         Undef __memrchr, too.
86726         [!weak_alias]: Define __memrchr to memrchr.
86727         Guard weak_alias use with `#ifdef weak_alias'.
86728
86729 2000-10-21  Jim Meyering  <meyering@lucent.com>
86730
86731         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86732         (dir_name): Use dir_name_r.
86733         * lib/dirname.h (dir_name_r): Declare it.
86734
86735 2000-10-17  Jim Meyering  <meyering@lucent.com>
86736
86737         * lib/quote.h (PARAMS): Define and use.
86738         Reported by Akim Demaille.
86739
86740         * lib/getopt.c: Update from libc.
86741
86742 2000-10-16  Jim Meyering  <meyering@lucent.com>
86743
86744         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86745         setlocale.
86746         From Jan Fedak.
86747
86748 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86749
86750         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86751
86752 2000-09-25  Jim Meyering  <meyering@lucent.com>
86753
86754         * lib/md5.h (rol): Define (from GnuPG).
86755
86756         * lib/sha.c: Give credit (GnuPG) where due.
86757         (M): Use rol rather than open-coding it.
86758         Add a FIXME comment.
86759
86760 2000-09-21  Jim Meyering  <meyering@lucent.com>
86761
86762         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86763         Reported by Michael Stone.
86764
86765 2000-09-20  Jim Meyering  <meyering@lucent.com>
86766
86767         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86768         (noinst_HEADERS): Add sha.h.
86769         Based on code from Scott G. Miller and from GnuPG.
86770
86771 2000-09-18  Jim Meyering  <meyering@lucent.com>
86772
86773         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86774         LIBS. Otherwise, everyone ends up linking with -lelf for some
86775         configurations.
86776         Reported by Mike Stone.
86777
86778 2000-09-15  Jim Meyering  <meyering@lucent.com>
86779
86780         * lib/regex.c: Update from libc.
86781
86782 2000-09-10  Jim Meyering  <meyering@lucent.com>
86783
86784         * lib/getopt.c (_getopt_internal): Update from glibc.
86785
86786 2000-09-09  Jim Meyering  <meyering@lucent.com>
86787
86788         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86789         think it should be used as a general replacement for isascii.
86790         * lib/fnmatch.c: Likewise.
86791         * lib/mbswidth.c: Likewise
86792         * lib/regex.c: Likewise.
86793
86794         Don't use atoi.
86795         * lib/userspec.c: Include sys/param.h and limits.h.
86796         Include xstrtol.h.
86797         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86798         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86799         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86800         UID, GID.  Check range.
86801
86802 2000-09-06  Jim Meyering  <meyering@lucent.com>
86803
86804         * lib/getopt.c (_getopt_internal): Update from glibc.
86805
86806 2000-08-30  Jim Meyering  <meyering@lucent.com>
86807
86808         * lib/strftime.c: Merge in changes from GNU libc.
86809
86810 2000-08-26  Jim Meyering  <meyering@lucent.com>
86811
86812         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86813         * m4/fpending.m4: New file.
86814
86815 2000-08-26  Jim Meyering  <meyering@lucent.com>
86816
86817         * lib/closeout.c: Include "__fpending.h".
86818         (close_stdout_status): Return right away if there's nothing to flush.
86819
86820         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86821         * lib/__fpending.c: New file.
86822         * lib/__fpending.h: New file.
86823
86824 2000-08-20  Jim Meyering  <meyering@lucent.com>
86825
86826         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86827         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86828         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86829
86830 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86831
86832         Improve fileutils installation on systems where running
86833         programs (like install) can't be unlinked.
86834         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86835         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86836
86837 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86838
86839         Standardize on "memory exhausted" instead of "Memory exhausted"
86840         or "virtual memory exhausted".
86841         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86842         "virtual memory exhausted".
86843         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86844         our own message.
86845         * lib/userspec.c (parse_user_spec): Likewise.
86846         * lib/bumpalloc.h: comment fix
86847         * lib/same.c, userspec.c: Include xalloc.h.
86848
86849         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86850         not char *const and pointing to a constant array.
86851         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86852         (xrealloc): Comment fix.
86853
86854         * lib/userspec.c (parse_user_spec):
86855         Don't translate a message until just before returning,
86856         to avoid unnecessary translation.
86857
86858 2000-08-07  Jim Meyering  <meyering@lucent.com>
86859
86860         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86861         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86862         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86863         getgroups.c, gethostname.c, getopt.h, group-member.c,
86864         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86865         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86866         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86867         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86868         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86869         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86870         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86871         yesno.c: Back out Copyright date changes for each file with no change
86872         this year.  This eases coordination with other programs using the same
86873         source code modules.  From Paul Eggert.
86874
86875 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86876
86877         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86878         not char, for compatibility with glibc 2.1.3 strftime.c.
86879
86880 2000-08-03  Greg McGary  <greg@mcgary.org>
86881
86882         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86883         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86884         (EXTEND_BUFFER): Use them.
86885
86886 2000-08-01  Jim Meyering  <meyering@lucent.com>
86887
86888         * lib/dirname.c (ISSLASH): Define.
86889         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86890         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86891         both `\' and `/' may be use as path separators.
86892         Based on a patch from Prashant TR.
86893
86894 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86895
86896         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86897         slot vector a constant, since it might get modified.
86898
86899 2000-07-31  Jim Meyering  <meyering@lucent.com>
86900
86901         * lib/xmalloc.c: Use `virtual memory exhausted', not
86902         `Memory exhausted'.
86903         * lib/obstack.c (print_and_abort): Likewise.
86904
86905 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86906
86907         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86908         buffer, so that the caller can always quote one small
86909         component of a "memory exhausted" message in slot 0.
86910         From a suggestion by Jim Meyering.
86911
86912 2000-07-30  Jim Meyering  <meyering@lucent.com>
86913
86914         * lib/makepath.c (make_path): Quote the other instance, too.
86915
86916         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86917         (STATIC_BUF_SIZE): Define.
86918         (quotearg_n_options): Use only statically allocated storage when
86919         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86920         than STATIC_BUF_SIZE.
86921
86922 2000-07-29  Jim Meyering  <meyering@lucent.com>
86923
86924         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86925         * lib/dirname.c (dir_name): Likewise.
86926
86927         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86928         `/'.
86929
86930         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86931         (dir_name): Assert that there are no trailing slashes.
86932
86933 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86934
86935         * lib/mbswidth.h (mbswidth): Add a flags argument.
86936         (mbswidth): New declaration.
86937         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86938         * lib/mbswidth.c (mbswidth): Add a flags argument.
86939         (mbsnwidth): New function.
86940
86941 2000-07-24  Jim Meyering  <meyering@lucent.com>
86942
86943         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86944
86945 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86946
86947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86948
86949 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86950
86951         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86952         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86953         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86954         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86955         invoke multibyte primitives.
86956
86957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86958
86959         * lib/quotearg.c:
86960         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86961         so that mbstate_t is always defined.
86962
86963         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86964         be 1 in at least one GCC installation, and this configuration
86965         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86966         performance on hosts that have mbrtowc but have only unibyte
86967         locales, but I assume these hosts are rare.
86968
86969 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86970
86971         * lib/mbswidth.c (_XOPEN_SOURCE):
86972         Don't define; this causes problems on Solaris 7.
86973         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86974
86975 2000-07-23  Jim Meyering  <meyering@lucent.com>
86976
86977         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86978         too: getgrgid, getpwuid, getuid.
86979
86980 2000-07-23  Jim Meyering  <meyering@lucent.com>
86981
86982         * lib/basename.c (base_name): Add an assertion.
86983
86984 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86985
86986         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86987         shadow its mbsinit function.
86988
86989 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86990
86991         * lib/mbswidth.h: New file.
86992         * lib/mbswidth.c: New file.
86993         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86994         (noinst_HEADERS): Add mbswidth.h.
86995
86996 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86997
86998         * lib/config.charset: Add support for FreeBSD. Improve support for
86999         HP-UX and IRIX 6.
87000
87001 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87002
87003         * m4/mbswidth.m4: New file.
87004         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87005
87006 2000-07-15  Jim Meyering  <meyering@lucent.com>
87007
87008         * lib/makepath.c: Include quote.h.
87009         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87010         corresponding argument in a `quote (...)' call.
87011         Give better diagnostics.
87012
87013         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87014         (noinst_HEADERS): Add quote.h.
87015
87016         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87017         from tar's src/misc.c.
87018         * lib/quote.h: New file.  Prototypes for same.
87019
87020 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87021
87022         From a suggestion by Bruno Haible.
87023         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87024         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87025         to decide whether to define the BeOS workaround macro;
87026         this adjusts to the change to AC_MBSTATE_T.
87027
87028 2000-07-14  Jim Meyering  <meyering@lucent.com>
87029
87030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87031         jm_AC_TYPE_UINTMAX_T.
87032
87033 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87034
87035         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87036
87037         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87038         quotearg_buffer_restyled): Add support for
87039         clocale_quoting_style.  Undo previous change to
87040         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87041         and "{RIGHT QUOTATION MARK}" msgids.
87042
87043 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87044
87045         From a suggestion by Bruno Haible.
87046         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87047         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87048         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87049         and mbstate_t, to a single-part test that simply defines mbstate_t.
87050         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87051         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87052
87053 2000-07-10  Jim Meyering  <meyering@lucent.com>
87054
87055         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87056
87057         * m4/gnu-source.m4: Output to confdefs.h directly.
87058         Suggestion from Akim Demaille.
87059
87060 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87061
87062         The old behavior of quoting `like this' doesn't look good with
87063         newer, ISO-style fonts.  See:
87064         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87065
87066         Instead, quote "like this" by default.  Let the translator
87067         tailor the locale-specific quoting behavior by providing
87068         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87069
87070         * lib/quotearg.c (N_): New macro.
87071         (gettext_default): New function.
87072         (quotearg_buffer_restyled): Use
87073         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87074         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87075
87076 2000-07-09  Jim Meyering  <meyering@lucent.com>
87077
87078         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87079         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87080
87081         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87083
87084 2000-07-09  Jim Meyering  <meyering@lucent.com>
87085
87086         * lib/Most files: Update copyright dates to include 2000.
87087
87088 2000-07-08  Jim Meyering  <meyering@lucent.com>
87089
87090         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87091         if not defined.
87092         (xgethostname): Remove now-unnecessary #ifdef.
87093         Move declaration of `err' into loop where it's used.
87094
87095 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87096         and Bruno Haible  <haible@clisp.cons.org>
87097
87098         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87099         only if the test for an object-type mbstate_t fails.  This
87100         prevents us from mistakenly reporting that mbstate_t is a
87101         system object type after we "#define mbstate_t int" to work
87102         around its lack.
87103
87104 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87105         and Bruno Haible  <haible@clisp.cons.org>
87106
87107         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87108
87109 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87110
87111         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87112         to strerror_r.
87113         Include <ctype.h> for use of isalpha.
87114
87115 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87116
87117         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87118         by allocating a larger buffer. Test the gethostname return value for
87119         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87120         returns an error and ENAMETOOLONG isn't defined.
87121
87122 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87123
87124         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87125         dimension.
87126
87127 2000-07-04  Jim Meyering  <meyering@lucent.com>
87128
87129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87130         of the deprecated AC_CHECKING.
87131
87132 2000-07-04  Jim Meyering  <meyering@lucent.com>
87133
87134         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87135         Reported by Bruno Haible.
87136
87137 2000-07-04  Jim Meyering  <meyering@lucent.com>
87138
87139         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87140         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87141         lacks mbrtowc.
87142
87143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87144
87145         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87146         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87147
87148 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87149         and Bruno Haible  <haible@clisp.cons.org>
87150
87151         * lib/quotearg.c (mbrtowc):
87152         Assign to *pwc, and return 1 only if result is nonzero.
87153         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87154
87155 2000-07-03  Jim Meyering  <meyering@lucent.com>
87156
87157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87158
87159 2000-07-03  Jim Meyering  <meyering@lucent.com>
87160
87161         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87162         This is necessary to get a definition of e.g., UTMP_FILE on
87163         HP-UX 10.20.
87164         From Bob Proulx.
87165
87166 2000-07-02  Jim Meyering  <meyering@lucent.com>
87167
87168         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87169
87170         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87171         AC_LIBOBJ(function_name).
87172         * m4/chown.m4: Likewise.
87173         * m4/fnmatch.m4: Likewise.
87174         * m4/ftruncate.m4: Likewise.
87175         * m4/getgroups.m4: Likewise.
87176         * m4/getline.m4: Likewise.
87177         * m4/group-member.m4: Likewise.
87178         * m4/jm-macros.m4: Likewise.
87179         * m4/lstat.m4: Likewise.
87180         * m4/malloc.m4: Likewise.
87181         * m4/memcmp.m4: Likewise.
87182         * m4/nanosleep.m4: Likewise.
87183         * m4/putenv.m4: Likewise.
87184         * m4/realloc.m4: Likewise.
87185         * m4/regex.m4: Likewise.
87186         * m4/stat.m4: Likewise.
87187         * m4/strftime.m4: Likewise.
87188
87189 2000-07-02  Jim Meyering  <meyering@lucent.com>
87190
87191         * lib/quotearg.c (mbstate_t): Don't define here.
87192
87193 2000-07-02  Jim Meyering  <meyering@lucent.com>
87194
87195         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87196
87197 2000-07-01  Jim Meyering  <meyering@lucent.com>
87198
87199         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87200
87201 2000-07-01  Jim Meyering  <meyering@lucent.com>
87202
87203         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87204         problem.
87205
87206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87207
87208         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87209         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87210
87211 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87212
87213         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87214         per change in ../m4/ls-mntd-fs.m4.
87215         (read_filesystem_list): Ignore symbolic links.
87216
87217 2000-06-29  Jim Meyering  <meyering@lucent.com>
87218
87219         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87220         for declaration of strcmp.
87221
87222         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87223
87224         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87225         Avoid warning by casting result to `char *' to remove `const'.
87226
87227 2000-06-28  Jim Meyering  <meyering@lucent.com>
87228
87229         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87230         included by quotearg.c, for which we perform this test.  From
87231         Bruno Haible.
87232
87233 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87234
87235         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87237         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87238
87239 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87240
87241         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87242
87243 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87244
87245         savedir now sets errno on failure and invokes xmalloc to get memory.
87246         Fix a couple of other minor bugs while we're at it.
87247
87248         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87249         (NAMLEN): Remove macro.
87250         (malloc, realloc): Remove decls.
87251         (stpcpy): Likewise.
87252         ("xalloc.h"): Include.
87253         (NAME_SIZE_DEFAULT): New macro.
87254         (savedir): Use xmalloc / xrealloc to allocate memory.
87255         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87256         Skip "" directory entries.
87257         Use strlen to calculate directory entry length, since the old method
87258         is rarely used these days and isn't worth supporting.
87259         Don't use a pointer after freeing it.
87260         Check for integer overflow when calculating allocation size.
87261         Use memcpy to copy entries, instead of stpcpy.
87262         Set errno properly when returning NULL.
87263         Check for readdir error.
87264
87265 2000-06-26  Jim Meyering  <meyering@lucent.com>
87266
87267         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87268
87269 2000-06-25  Jim Meyering  <meyering@lucent.com>
87270
87271         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87272         Linux header bug when _XOPEN_SOURCE is defined to 500.
87273
87274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87275
87276         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87277         deficiency.
87278
87279 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87280
87281         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87282         Include xalloc.h.
87283         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87284
87285 2000-06-24  Jim Meyering  <meyering@lucent.com>
87286
87287         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87288         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87289         for which strerror does return char*, but which lacks a conveniently
87290         accessible declaration of the function.  If the compile-test says
87291         strerror_r doesn't work, then resort to a `run'-test that works on
87292         BeOS and segfaults on DEC Unix.
87293
87294 2000-06-24  Jim Meyering  <meyering@lucent.com>
87295
87296         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87297
87298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87299
87300         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87302
87303 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87304
87305         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87306         (mbrtowc, mbstate_t): Define substitutes if
87307         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87308         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87309         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87310
87311 2000-06-23  Jim Meyering  <meyering@lucent.com>
87312
87313         * m4/afs.m4: Add missing AC_MSG_RESULT.
87314         Reported by Bruno Haible.
87315
87316         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87317         Suggestion from Bruno Haible.
87318
87319 2000-06-23  Jim Meyering  <meyering@lucent.com>
87320
87321         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87322
87323 2000-06-21  Jim Meyering  <meyering@lucent.com>
87324
87325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87326
87327 2000-06-21  Jim Meyering  <meyering@lucent.com>
87328
87329         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87330         (noinst_HEADERS): Add getstr.h.
87331
87332         * lib/getline.c (getstr): Move into a separate file.
87333         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87334         the following changes: new parameter, delim2; both delim[12]
87335         parameters have type `int', not `char'.  The latter would lose
87336         with 8-bit delimiters.
87337         * lib/getstr.h: New file.
87338
87339 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87340
87341         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87342         than 1024, return a memory chunk of least possible size, instead
87343         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87344         Use free/xmalloc instead of xrealloc to avoid copying for very long
87345         paths.
87346
87347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87348
87349         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87350         the empty string.
87351
87352 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87353
87354         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87355         address, not strdup.  Include <stdlib.h> and don't declare free().
87356
87357 2000-06-19  Jim Meyering  <meyering@lucent.com>
87358
87359         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87360
87361 2000-06-18  Jim Meyering  <meyering@lucent.com>
87362
87363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87364
87365         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87366         `checking whether...' message to be consistent with that of the
87367         lstat test.
87368
87369 2000-06-18  Jim Meyering  <meyering@lucent.com>
87370
87371         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87372         Besides, these days every porting target provides a mkdir function.
87373
87374         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87375         needed. (this snippet comes from src/system.h).
87376
87377 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87378
87379         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87380
87381 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87382
87383         * lib/human.c (adjust_value): New function.
87384         (human_readable_inexact): Apply rounding style even when
87385         printing approximate values.
87386
87387 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87388
87389         * lib/human.c (human_readable_inexact): Allow an input block
87390         size that is not a multiple of the output block size, and vice versa.
87391         Reported by Piergiorgio Sartor.
87392
87393 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87394
87395         * lib/getdate.y (get_date): Apply relative times after time
87396         zone indicator, not before.  Reported by Todd A. Jacobs.
87397
87398 2000-06-13  Jim Meyering  <meyering@lucent.com>
87399
87400         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87401
87402         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87403
87404 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87405
87406         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87407
87408 2000-06-12  Jim Meyering  <meyering@lucent.com>
87409
87410         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87411         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87412         optional argument.
87413         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87414         the optional argument, `lib'.
87415
87416 2000-06-08  Jim Meyering  <meyering@lucent.com>
87417
87418         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87419
87420 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87421
87422         Rewrite largefile configuration so that we don't need to run
87423         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87424         AC_CANONICAL_HOST in configure.in -- jmm]
87425
87426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87427         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87428         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87429         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87430         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87431         All uses changed.
87432         Instead of inspecting the output of getconf, try to compile the
87433         test program without and with the macro definition.
87434         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87435         for getconf.  Instead, check for the needed flags by compiling
87436         test programs.
87437
87438 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87439
87440         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87441
87442 2000-06-04  Jim Meyering  <meyering@lucent.com>
87443
87444         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87445         SunOS 4.1.4 for which gid_t is an unsigned type.
87446
87447 2000-06-03  Jim Meyering  <meyering@lucent.com>
87448
87449         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87450         now that autoconf requires that.
87451
87452         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87453         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87454         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87455
87456 2000-06-03  Jim Meyering  <meyering@lucent.com>
87457
87458         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87459
87460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87461
87462         * m4/glibc21.m4: New file.
87463         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87464
87465 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87466
87467         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87468         newer, don't install charset.alias.
87469         * lib/config.charset: Change the Linux/glibc rules so they become empty
87470         on glibc-2.1 or newer.
87471
87472 2000-06-02  Jim Meyering  <meyering@lucent.com>
87473
87474         * lib/mountlist.c: Back out last change.  Instead, do this...
87475         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87476         me_dummy member using the same `ignore'-testing code.
87477         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87478         fs_type strings.
87479         From Mark D. Roth.
87480
87481 2000-05-29  Jim Meyering  <meyering@lucent.com>
87482
87483         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87484         mounts with the `ignore' attribute.  Based on a patch from
87485         Mark D. Roth.
87486
87487 2000-05-28  Jim Meyering  <meyering@lucent.com>
87488
87489         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87490         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87491         * m4/stat.m4: Likewise.
87492         * m4/lstat.m4: Likewise.
87493         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87494
87495         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87496         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87497
87498 2000-05-26  Jim Meyering  <meyering@lucent.com>
87499
87500         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87501
87502 2000-05-24  Jim Meyering  <meyering@lucent.com>
87503
87504         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87505         autoconf requires that.
87506         * m4/lib-check.m4: Likewise.
87507         * m4/jm-macros.m4: Likewise.
87508         * m4/strftime.m4: Likewise.
87509
87510         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87511         AC_CHECK_DECLS, now that autoconf requires that.
87512
87513 2000-05-22  Jim Meyering  <meyering@lucent.com>
87514
87515         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87516         * m4/lstat.m4: Likewise.
87517
87518 2000-05-22  Jim Meyering  <meyering@lucent.com>
87519
87520         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87521
87522 2000-05-20  Jim Meyering  <meyering@lucent.com>
87523
87524         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87525         (jm_PREREQ): Use it.
87526
87527 2000-05-18  Jim Meyering  <meyering@lucent.com>
87528
87529         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87530         back, too, since it may have been modified by allocate_entry.
87531         (hash_delete): Rewrite to use neither the assignment operator
87532         nor the comma operator in an if-expression.
87533
87534 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87535
87536         * lib/closeout.c:
87537         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87538         Remove; no longer needed.
87539         "quotearg.h": Add include.
87540         (file_name): Do not bother to explicitly initialize to NULL; it's less
87541         efficient on some hosts.
87542         (close_stdout_status): Remove test as to whether stdout was already
87543         closed; it breaks for the case "echo x | sort >&-".
87544         Quote file name colons.
87545         Do not assume that _("write error") lacks format strings.
87546
87547 2000-05-15  Jim Meyering  <meyering@lucent.com>
87548
87549         * lib/version-etc.c (version_etc_copyright): Update the copyright
87550         string used in all --version output.
87551
87552 2000-05-14  Jim Meyering  <meyering@lucent.com>
87553
87554         * lib/closeout.c (close_stdout_set_file_name): New function.
87555         (close_stdout_status): Use new file-scoped global.
87556         Return right away if fstat says the stdout file descriptor is invalid.
87557         * lib/closeout.h (close_stdout_set_file_name): Declare.
87558
87559 2000-05-10  Jim Meyering  <meyering@lucent.com>
87560
87561         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87562         (close_stdout_set_status): New function.
87563         * lib/closeout.h (close_stdout_set_status): Declare.
87564
87565 2000-05-09  Jim Meyering  <meyering@lucent.com>
87566
87567         * m4/gettext.m4: Rename this...
87568         * m4/libintl.m4: ...to this.
87569
87570 2000-05-08  Jim Meyering  <meyering@lucent.com>
87571
87572         * lib/long-options.c: Don't include closeout.h.
87573         (parse_long_options): Don't call close_stdout for --version.
87574
87575 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87576
87577         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87578         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87579         2.1.3 bug.  This avoids a clash when files like regex.c define
87580         _GNU_SOURCE.
87581
87582 2000-05-06  Jim Meyering  <meyering@lucent.com>
87583
87584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87585         (AC_REPLACE_FUNCS): Add strnlen.
87586
87587         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87588         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87589
87590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87591         AC_SEARCH_LIBS call for nanosleep.
87592         (LIB_NANOSLEEP): Set and AC_SUBST.
87593
87594 2000-05-06  Jim Meyering  <meyering@lucent.com>
87595
87596         * lib/strnlen.c: Undefine __strnlen and strnlen.
87597         [!weak_alias]: Define __strnlen to strnlen.
87598
87599         * lib/atexit.c: New file, from libiberty.
87600
87601 2000-05-06  Jim Meyering  <meyering@lucent.com>
87602
87603         * lib/closeout.c (close_stdout_status): Also check for errors on the
87604         stderr stream.
87605
87606 2000-05-05  Jim Meyering  <meyering@lucent.com>
87607
87608         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87609         AC_SEARCH_LIBS call for clock_gettime.
87610         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87611
87612         * m4/search-libs.m4: Update from autoconf.
87613
87614         su doesn't work on Solaris 2.6.
87615         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87616         <shadow.h>.  Reported by Dragos Harabor.
87617
87618 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87619
87620         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87621         memcpy instead of xmalloc, xrealloc, path_concat.
87622         (locale_charset): Treat empty environment variables as absent.
87623         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87624
87625 2000-05-04  Jim Meyering  <meyering@lucent.com>
87626
87627         * lib/getopt.c: Update from glibc.
87628         * lib/obstack.c: Likewise.
87629         * lib/obstack.h: Likewise.
87630         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87631         file
87632
87633         * lib/regex.h: Likewise.
87634         * lib/strndup.c: Likewise.
87635         * lib/strnlen.c: New file, from glibc.
87636
87637 2000-05-03  Jim Meyering  <meyering@lucent.com>
87638
87639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87640
87641 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87642
87643         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87644         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87645         compile-time test, rather than inspecting host and OS, to
87646         decide whether to define _LARGEFILE_SOURCE.
87647
87648 2000-05-01  Jim Meyering  <meyering@lucent.com>
87649
87650         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87651
87652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87653         Based on a patch from Bruno Haible.
87654
87655 2000-05-01  Jim Meyering  <meyering@lucent.com>
87656
87657         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87658
87659 2000-04-29  Jim Meyering  <meyering@lucent.com>
87660
87661         * lib/path-concat.c: Declare strdup only if it's not defined.
87662         * lib/canon-host.c: Likewise.
87663
87664 2000-04-28  Jim Meyering  <meyering@lucent.com>
87665
87666         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87667         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87668         is included first, then limits.h is included by locale.h by libintl.h.
87669         From John David Anglin.
87670
87671 2000-04-25  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/makepath.c (S_IRWXUGO): Define.
87674         (make_path): Always perform explicit chmod if MODE specifies any
87675         of the `special' permission bits.  Prompted by a bug report against
87676         install from Mate Wierdl and Joost van Baal.
87677
87678 2000-04-18  Jim Meyering  <meyering@lucent.com>
87679
87680         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87681         (jm_PREREQ): Use it.
87682
87683 2000-04-18  Jim Meyering  <meyering@lucent.com>
87684
87685         * lib/README: New file.
87686
87687         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87688         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87689
87690 2000-04-17  Jim Meyering  <meyering@lucent.com>
87691
87692         Get it right :-)
87693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87694         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87695         Suggestion from Akim Demaille.
87696
87697 2000-04-17  Jim Meyering  <meyering@lucent.com>
87698
87699         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87700         the definition of it to rpl_strftime also defined-away the system's
87701         declaration.
87702
87703 2000-04-15  Jim Meyering  <meyering@lucent.com>
87704
87705         Use `C' to denote so-called `contiguous' files, the same way
87706         that tar does.
87707         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87708         (ftypelet): Use S_ISCTG.
87709         From Michael Deutschmann.
87710
87711 2000-04-14  Jim Meyering  <meyering@lucent.com>
87712
87713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87714         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87715         clobbered.
87716
87717 2000-04-14  Jim Meyering  <meyering@lucent.com>
87718
87719         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87720
87721 2000-04-13  Jim Meyering  <meyering@lucent.com>
87722
87723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87724         AH_VERBATIM to insert required #ifndef into config.h.in.
87725         Suggestion from Akim Demaille.
87726
87727 2000-04-12  Jim Meyering  <meyering@lucent.com>
87728
87729         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87730         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87731         Christian Krackowizer.
87732
87733         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87734         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87735         (AC_SYS_LARGEFILE): Require.
87736         (AM_C_PROTOTYPES): Require.
87737
87738 2000-04-08  Jim Meyering  <meyering@lucent.com>
87739
87740         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87741         names don't conflict.  Reported by Eli Zaretskii.
87742
87743 2000-04-07  Jim Meyering  <meyering@lucent.com>
87744
87745         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87746         sys/types.h, to work around system header problems on AIX 3.2.5.
87747         From Bruno Haible.
87748
87749 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87750
87751         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87752         bug.  Deal with the different error behavior of Irix iconv.
87753
87754 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87755
87756         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87757         IRIX if the installer said otherwise.
87758
87759 2000-04-05  Jim Meyering  <meyering@lucent.com>
87760
87761         Portability tweaks required for ultrix4.3.
87762         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87763         (jm_CHECK_DECLS): Add getutent to the list of functions.
87764         (_jm_DECL_HEADERS): Add utmpx.h.
87765         From John David Anglin.
87766
87767         * m4/strftime.m4: Back out the 2000-04-02 change.
87768         Instead of that change, simply undefine putenv in the test program.
87769
87770 2000-04-05  Jim Meyering  <meyering@lucent.com>
87771
87772         Portability tweaks required for ultrix4.3.
87773         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87774         getutent.
87775         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87776         * lib/canon-host.c: Declare strdup.
87777         * lib/path-concat.c: Likewise.
87778         From John David Anglin.
87779
87780 2000-04-04  Jim Meyering  <meyering@lucent.com>
87781
87782         Be more DOS 8.3-friendly.
87783         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87784         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87785         * lib/Makefile.am: Reflect renaming.
87786         Reported by Eli Zaretskii.
87787
87788         Use a temporary file name that won't clash with `charset.alias'
87789         in the DOS 8.3 name space.
87790         * lib/Makefile.am (charset_tmp): Define.
87791         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87792         (uninstall-local): Likewise.
87793         Reported by Eli Zaretskii.
87794
87795 2000-04-03  Jim Meyering  <meyering@lucent.com>
87796
87797         * m4/gettext.m4: Fix typo in comment.
87798
87799         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87800         textutils/configure.in).  Suggestion from Paul Eggert.
87801         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87802
87803 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87804
87805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87806         variable in the shell rather than using putenv, which isn't
87807         portable.  This avoids the configure-time inter-test dependency
87808         on the potentially-renamed putenv function.
87809
87810 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87811
87812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87813         before checking struct stat.st_blksize, so that
87814         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87815
87816 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87817
87818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87819         since strftime.c uses HAVE_STRFTIME to decide whether to use
87820         the underlying strftime.
87821
87822 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87823
87824         * lib/time/strftime.c (my_strftime): Make sure we call the system
87825         strftime, not ourselves, when invoking the underlying strftime.
87826
87827 2000-03-24  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87830         (charset_alias): Define.
87831         (install-exec-local): Factor out common code.
87832         (uninstall-local): Split lines longer than 80.
87833         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87834         (SUFFIXES): Define.
87835         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87836         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87837
87838 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87839
87840         * lib/config.charset: Output a line containing "Packages using this
87841         file".
87842         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87843         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87844         ref-del.sed): New rules.
87845
87846 2000-03-17  Jim Meyering  <meyering@lucent.com>
87847
87848         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87849         Otherwise, include <strings.h>
87850
87851 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87852
87853         * lib/unicodeio.c (utf8_wctomb): New function.
87854         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87855         format instead of in UCS-4 with platform dependent endianness.
87856
87857 2000-03-10  Jim Meyering  <meyering@lucent.com>
87858
87859         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87860         From Marco Franzen.
87861
87862 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87863
87864         * lib/savedir.c (savedir): Work even if directory size is
87865         negative; this can happen with some screwy NFS configurations.
87866
87867 2000-03-06  Jim Meyering  <meyering@lucent.com>
87868
87869         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87870         if it's NULL (because we ran out of memory).  From Bruno Haible.
87871
87872 2000-03-05  Jim Meyering  <meyering@lucent.com>
87873
87874         * lib/localcharset.c ("path-concat.h"): Include.
87875         (get_charset_aliases): Use path_concat instead of ANSI string
87876         concatenation.
87877
87878         * lib/unicodeio.h (PARAMS): Define.
87879         Use it to guard prototype.
87880
87881 2000-03-04  Jim Meyering  <meyering@lucent.com>
87882
87883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87884         for lib/localcharset.c.
87885
87886 2000-03-04  Jim Meyering  <meyering@lucent.com>
87887
87888         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87889         installing into it.
87890         (uninstall-local): Uncomment this rule so `make distcheck' works
87891         once again.
87892
87893         * lib/unicodeio.c (<errno.h>): Include it.
87894         (errno): Declare if not defined.
87895
87896         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87897
87898         * lib/config.charset: New version, incorporating remarks from a linux
87899         i18n mailing list.  From Bruno Haible.
87900
87901 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87902
87903         * m4/codeset.m4: New file.
87904         * m4/iconv.m4: New file.
87905         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87906
87907 2000-03-03  Jim Meyering  <meyering@lucent.com>
87908
87909         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87910
87911 2000-03-02  Jim Meyering  <meyering@lucent.com>
87912
87913         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87914         the messages come out on separate lines.
87915
87916         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87917         rather than jm_CHECK_DECLARATIONS.
87918         * m4/decl.m4: Remove now-unused file.
87919
87920         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87921         geteuid.
87922
87923 2000-03-02  Jim Meyering  <meyering@lucent.com>
87924
87925         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87926
87927 2000-03-01  Jim Meyering  <meyering@lucent.com>
87928
87929         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87930         * lib/unicodeio.c: Likewise.
87931
87932 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87933
87934         * lib/config.charset: New file.
87935         * lib/localcharset.c: New file.
87936         * lib/unicodeio.h, lib/unicodeio.c: New files.
87937         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87938         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87939         (noinst_HEADERS): Add unicodeio.h.
87940         (all-local, install-exec-local, charset.alias): New targets.
87941
87942 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87943
87944         * lib/quotearg.c (ALERT_CHAR): New macro.
87945         (quotearg_buffer_restyled): Use it.
87946
87947 2000-02-27  Jim Meyering  <meyering@lucent.com>
87948
87949         * m4/check-decl.m4: Add getenv to the list.
87950
87951 2000-02-27  Jim Meyering  <meyering@lucent.com>
87952
87953         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87954         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87955
87956         * lib/backupfile.c: Guard inclusion of stdlib.h with
87957         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87958         Declare malloc if needed.
87959
87960         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87961         `#ifndef HAVE_DECL..'
87962         now that autoconf always defines the HAVE_DECL_ symbols.
87963         * lib/human.c: Likewise.
87964         * lib/same.c: Likewise.
87965         * lib/strtoumax.c: Likewise.
87966
87967         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87968         declaration check was not run.
87969         * lib/hash.c: Likewise.
87970         * lib/human.c: Likewise.
87971         * lib/same.c: Likewise.
87972         * lib/strtoumax.c: Likewise.
87973
87974         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87975         `.', then first look up the entire `.'-containing string as a login
87976         name.
87977
87978 2000-02-23  Jim Meyering  <meyering@lucent.com>
87979
87980         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87981         in place of my hack.
87982
87983 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87984
87985         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87986         (textint): New typedef.
87987         (parser_control): Member year changed from int to textint.
87988         All uses changed.
87989         (YYSTYPE): Removed; replaced by %union with int and textint members.
87990         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87991         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87992         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87993         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87994         (date, number, to_year): Use width of number in digits, not its value,
87995         to determine whether it's a 2-digit year, or a 2-digit time.
87996         (yylex): Store number of digits of numeric tokens.
87997         Reported by John Kendall.
87998
87999         (parser_control): Changed from struct parser_control to typedef (for
88000         consistency).  All uses changed.
88001
88002         (tID): Removed; not used.
88003         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88004
88005 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88006
88007         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88008         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88009
88010 2000-02-12  Jim Meyering  <meyering@lucent.com>
88011
88012         * lib/userspec.c (ISDIGIT): Define it.
88013         (isdigit): Remove definition.
88014         (is_number): Use ISDIGIT, not isdigit.
88015         <libintl.h>: Include.
88016         (_ and N_): Define.
88017         (parse_user_spec): Mark translatable strings.
88018
88019 2000-02-10  Jim Meyering  <meyering@lucent.com>
88020
88021         With these changes, nanosleep.[ch] are finally enough like the other
88022         lib/* replacement files to compile on a few more losing systems.
88023
88024         * lib/nanosleep.h: Don't include config.h.
88025         Remove prototype from declaration of nanosleep.
88026         (PARAMS): Remove now-unneeded definition.
88027         * lib/nanosleep.c: #undef nanosleep.
88028         (rpl_nanosleep): Rename from nanosleep.
88029
88030 2000-02-10  Jim Meyering  <meyering@lucent.com>
88031
88032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88033         gnu_nanosleep to rpl_nanosleep.
88034
88035 2000-02-09  Jim Meyering  <meyering@lucent.com>
88036
88037         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88038         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88039
88040 2000-02-08  Akim Demaille  <akim@epita.fr>
88041
88042         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88043         `[' and `]' and remove uses of `changequote'.
88044         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88045         (AC_SYS_LARGEFILE): Likewise.
88046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88048         of changequote.
88049         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88050         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88051         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88053
88054 2000-02-05  Jim Meyering  <meyering@lucent.com>
88055
88056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88057         Remove explicit use of AC_HEADER_TIME.  It is required by
88058         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88059         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88060         in autoconf whereby the expansion of the latter ended up preceding
88061         the expansion of its prerequisite, AC_HEADER_TIME.
88062         Reported by Volker Borchert.
88063
88064 2000-02-03  Jim Meyering  <meyering@lucent.com>
88065
88066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88067
88068 2000-02-03  Jim Meyering  <meyering@lucent.com>
88069
88070         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88071         rather than with `#if HAVE_UTMPNAME'.
88072
88073 2000-02-02  Jim Meyering  <meyering@lucent.com>
88074
88075         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88076         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88077         Reported by Eli Zaretskii.
88078
88079 2000-02-01  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88082
88083 2000-01-31  Jim Meyering  <meyering@lucent.com>
88084
88085         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88086         functions.  Add the time.h and sys/time.h headers along with the
88087         AC_REQUIRE'ment of AC_HEADER_TIME.
88088
88089 2000-01-31  Jim Meyering  <meyering@lucent.com>
88090
88091         * lib/nanosleep.h (nanosleep): Guard declaration with
88092         `#if ! HAVE_DECL_NANOSLEEP'.
88093         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88094         the declaration in that vendor's sys/timers.h.
88095         Reported by Christian Krackowizer.
88096
88097         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88098         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88099         (ISPRINT): Likewise.
88100         Reported by Tom Tromey.
88101
88102 2000-01-30  Jim Meyering  <meyering@lucent.com>
88103
88104         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88105
88106         * m4/prereq.m4 (utmp_includes): Define.
88107         Check for ut_user and ut_name members in both struct utmpx
88108         and struct utmp.
88109
88110 2000-01-30  Jim Meyering  <meyering@lucent.com>
88111
88112         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88113         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88114         header files where only utmpx.ut_user is declared.
88115
88116         * lib/readutmp.h (UT_USER): Define.
88117
88118 2000-01-29  Jim Meyering  <meyering@lucent.com>
88119
88120         * m4/lib-check.m4: New file containing library-related checks from
88121         fileutils and sh-utils (textutils had none).
88122
88123 2000-01-28  Jim Meyering  <meyering@lucent.com>
88124
88125         * m4/perl.m4: Change format of warning message to look more like that
88126         from the missing script.  Suggestion from François Pinard.
88127
88128 2000-01-25  Jim Meyering  <meyering@lucent.com>
88129
88130         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88131         well as time.h in the compile check.
88132         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88133         Fix typo in cross-compiling case: s/yes/no/.
88134
88135 2000-01-23  Jim Meyering  <meyering@lucent.com>
88136
88137         * m4/jm-macros.m4: Move df-related tests here from
88138         fileutils/configure.in
88139
88140         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88141         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88142
88143         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88144         s/space/ac_fsusage_space/.
88145         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88146
88147         * m4/ftruncate.m4: New file (derived from part of
88148         fileutils/configure.in).
88149         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88150         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88151
88152         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88153         AC_SUBST these here, rather than just in sh-util/configure.in, so
88154         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88155         all the same.
88156         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88157         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88158         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88159         (AC_SUBST(POW_LIBM)): Likewise.
88160         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88161
88162 2000-01-23  Jim Meyering  <meyering@lucent.com>
88163
88164         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88165         obstack.c.
88166
88167 2000-01-22  Jim Meyering  <meyering@lucent.com>
88168
88169         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88170
88171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88172
88173         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88174         configure.in
88175         (AC_CHECK_HEADERS): Likewise for sh-utils.
88176         (AC_CHECK_HEADERS): Likewise for textutils.
88177         Merge the three lists of headers.
88178
88179         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88180         from fileutils' configure.in.
88181
88182         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88183         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88184         check-decl.m4.
88185
88186         * m4/check-decl.m4: Use #if rather than #ifdef.
88187         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88188         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88189         (_jm_DECL_HEADERS): Define new function.
88190         (jm_CHECK_DECLARATIONS): Require it.
88191
88192 2000-01-22  Jim Meyering  <meyering@lucent.com>
88193
88194         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88195         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88196         Required for some AIX systems.  Reported by Christian Krackowizer.
88197         [TESTING] (main): New function.
88198
88199         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88200         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88201         letters.
88202
88203         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88204         iswprint.
88205
88206         * lib/strverscmp.c (ISDIGIT): Define.
88207         (strverscmp): Use ISDIGIT, not isdigit.
88208
88209 2000-01-19  Jim Meyering  <meyering@lucent.com>
88210
88211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88212         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88213         defines `struct timespec' in <sys/time.h>
88214
88215         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88216         Thanks to Akim for explaining.
88217
88218 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88219
88220         * lib/nanosleep.c (nanosleep):
88221         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88222         POSIX.1 doesn't require SA_INTERRUPT and some systems
88223         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88224         it's been part of POSIX.1 since day 1 (in 1988).
88225
88226 2000-01-17  Jim Meyering  <meyering@lucent.com>
88227
88228         * lib/interlock: Remove unused file.  Reported by François Pinard.
88229
88230 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88231
88232         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88233         alert, backslash, formfeed, and vertical tab unnecessarily in
88234         shell quoting style.
88235
88236 2000-01-16  Jim Meyering  <meyering@lucent.com>
88237
88238         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88239         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88240         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88241         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88242
88243 2000-01-16  Jim Meyering  <meyering@lucent.com>
88244
88245         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88246         because the latter didn't work.
88247
88248 2000-01-15  Jim Meyering  <meyering@lucent.com>
88249
88250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88251         (AC_REPLACE_FUNCS): Add memcpy and memset.
88252         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88253         Add strpbrk.
88254         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88255
88256 2000-01-12  Jim Meyering  <meyering@lucent.com>
88257
88258         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88259         (jm_PREREQ): Use it.
88260         (jm_PREREQ_READUTMP): New macro.
88261         (jm_PREREQ): Use it.
88262
88263 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88264
88265         Quote multibyte characters correctly.
88266         * m4/c-bs-a.m4: New file.
88267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88268         (jm_PREREQ): Use it.
88269
88270 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88271
88272         * m4/uintmax_t.m4: Port to autoconf 2.13.
88273
88274 2000-01-08  Jim Meyering  <meyering@ascend.com>
88275
88276         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88277         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88278
88279 2000-01-04  Jim Meyering  <meyering@ascend.com>
88280
88281         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88282         jm_STRUCT_DIRENT_D_TYPE.
88283         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88284         jm_STRUCT_DIRENT_D_INO.
88285         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88286         jm_STRUCT_UTIMBUF.
88287         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88288         renamings.
88289         * m4/utime.m4: Likewise.
88290
88291         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88292         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88293
88294 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88295
88296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88297         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88298
88299 2000-01-02  Jim Meyering  <meyering@ascend.com>
88300
88301         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88302         remember if this is necessary.
88303
88304 1999-12-26  Jim Meyering  <meyering@ascend.com>
88305
88306         * m4/jm-macros.m4: Use it here.
88307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88308
88309 1999-12-23  Jim Meyering  <meyering@ascend.com>
88310
88311         * m4/jm-macros.m4: Check for clock_gettime (moved from
88312         fileutils/configure.in)
88313         Check for gettimeofday.
88314
88315 1999-12-20  Jim Meyering  <meyering@ascend.com>
88316
88317         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88318         autoconf-2.14a-1999-12-20.
88319
88320 1999-12-19  Jim Meyering  <meyering@ascend.com>
88321
88322         * m4/lstat-slash.m4: New file.
88323         * m4/jm-macros.m4: Use the new macro:
88324         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88325
88326 1999-12-07  Jim Meyering  <meyering@ascend.com>
88327
88328         * m4/perl.m4: Require that File::Compare be available, too.
88329         Too many systems seem to lack it.
88330
88331         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88332         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88333
88334 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88335
88336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88337         problem with the QNX 4.25 shell, which doesn't propagate exit
88338         status of failed commands inside shell assignments.
88339
88340 1999-11-17  Jim Meyering  <meyering@ascend.com>
88341
88342         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88343
88344 1999-11-07  Jim Meyering  <meyering@ascend.com>
88345
88346         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88347
88348 1999-11-06  Jim Meyering  <meyering@ascend.com>
88349
88350         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88351         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88352
88353 1999-11-05  Jim Meyering  <meyering@ascend.com>
88354
88355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88356         configure.in of textutils, fileutils, and sh-utils into this one
88357         (shared between those packages) file.
88358         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88359         AC_STRUCT_ST_BLKSIZE.
88360
88361 1999-11-03  Jim Meyering  <meyering@ascend.com>
88362
88363         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88364         of AC_CHECK_TYPE checks includes unistd.h.
88365         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88366         Suggestion from Akim Demaille.
88367
88368 1999-10-30  Jim Meyering  <meyering@ascend.com>
88369
88370         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88371         m4-quoted string.
88372         * m4/ls-mntd-fs.m4: Likewise.
88373         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88374         * m4/jm-winsz1.m4: Likewise.
88375
88376         * m4/const.m4: Remove file, since the fix made it into the experimental
88377         version of autoconf.
88378         * m4/mktime.m4: Likewise.
88379
88380         * m4/check-type.m4: Remove file, now that the latest version of
88381         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88382
88383         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88384         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88385         AC_CHECK_TYPE.
88386
88387 1999-10-04  Jim Meyering  <meyering@ascend.com>
88388
88389         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88390
88391 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88392
88393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88394         2.95.1 bug with HP-UX 10.20.
88395
88396 1999-09-17  Jim Meyering  <meyering@ascend.com>
88397
88398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88399         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88400         due to missing strdup (against sh-utils-2.0).
88401
88402 1999-08-29  Jim Meyering  <meyering@ascend.com>
88403
88404         * m4/jm-macros.m4: Require jm_BISON.
88405         * m4/bison.m4: New file.
88406
88407 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88408
88409         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88410         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88411
88412 1999-08-05  Jim Meyering  <meyering@ascend.com>
88413
88414         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88415         to avoid conflicts with `conftest' on 8+3 filesystems.
88416         Suggestion from Eli Zaretskii.
88417
88418 1999-08-04  Jim Meyering  <meyering@ascend.com>
88419
88420         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88421         fileutils and sh-utils (textutils's getline test was inadequate).
88422         (AM_FUNC_GETLINE): Run this test.
88423         (AC_CHECK_FUNCS): Check for getdelim.
88424         Reported by Bob Proulx.
88425
88426 1999-08-02  Jim Meyering  <meyering@ascend.com>
88427
88428         * m4/jm-macros.m4: Add a comment.
88429
88430 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88431
88432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88433         <inttypes.h> defines strtoumax as a macro (and not as a
88434         function).
88435
88436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88437
88438         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88439         that we can shift, multiply and divide unsigned long long
88440         values; Ultrix cc can't do it.
88441
88442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88443
88444         * m4/mktime.m4: New file, which is a preview of what should appear
88445         in the next public autoconf release.
88446
88447 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88448
88449         * m4/lfs.m4: Remove this file.
88450         * m4/largefile.m4: New file.  It contains the old contents of
88451         lfs.m4, except that all names with prefix AC_LFS have been
88452         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88453         compatible with future autoconf versions.  Also, some minor m4
88454         quoting problems have been fixed.
88455
88456 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88457
88458         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88459         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88460         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88461         and simplify the shell code.
88462
88463 1999-08-01  Jim Meyering  <meyering@ascend.com>
88464
88465         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88466         m4.
88467
88468 1999-07-20  Jim Meyering  <meyering@ascend.com>
88469
88470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88471
88472 1999-07-15  Jim Meyering  <meyering@ascend.com>
88473
88474         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88475
88476 1999-05-22  Jim Meyering  <meyering@ascend.com>
88477
88478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88479
88480 1999-05-20  Jim Meyering  <meyering@ascend.com>
88481
88482         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88483         Add a colon after each `then' in case $4 is empty.
88484
88485 1999-05-16  Jim Meyering  <meyering@ascend.com>
88486
88487         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88488
88489 1999-05-10  Jim Meyering  <meyering@ascend.com>
88490
88491         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88492
88493         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88494         AC_FUNC_MKTIME.
88495
88496 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88497
88498         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88499
88500 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88501
88502         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88503         not CPPFLAGS, so that linking works correctly in IRIX.
88504
88505 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88506
88507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88508
88509 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88510
88511         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88512         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88514         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88516
88517         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88518
88519 1999-04-20  Jim Meyering  <meyering@ascend.com>
88520
88521         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88522         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88523         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88524
88525 1999-04-18  Jim Meyering  <meyering@ascend.com>
88526
88527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88528         * m4/jm-macros.m4: Use it.
88529
88530 1999-04-06  Jim Meyering  <meyering@ascend.com>
88531
88532         * m4/strftime.m4: Remove test for %f.
88533
88534 1999-03-29  Jim Meyering  <meyering@ascend.com>
88535
88536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88537         superset of the AC_TYPE_* checks in the textutils, fileutils,
88538         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88539         AC_TYPE_PID_T.
88540
88541 1999-03-28  Jim Meyering  <meyering@ascend.com>
88542
88543         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88544         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88545         replaced e.g., in the *.sh files of the sh-utils.
88546
88547 1999-03-20  Jim Meyering  <meyering@ascend.com>
88548
88549         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88550         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88551         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88552
88553 1999-03-19  Jim Meyering  <meyering@ascend.com>
88554
88555         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88556
88557 1999-03-12  Jim Meyering  <meyering@ascend.com>
88558
88559         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88560
88561 1999-03-07  Jim Meyering  <meyering@ascend.com>
88562
88563         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88564         declared.
88565
88566 1999-02-17  Jim Meyering  <meyering@ascend.com>
88567
88568         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88569         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88570
88571 1999-02-07  Jim Meyering  <meyering@ascend.com>
88572
88573         * m4/group-member.m4: New file -- extracted from sh-utils'
88574         configure.in.
88575
88576         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88577         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88578
88579 1999-02-06  Jim Meyering  <meyering@ascend.com>
88580
88581         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88582         * m4/fnmatch.m4: Likewise.
88583         * m4/getgroups.m4: Likewise.
88584         * m4/lstat.m4: Likewise.
88585         * m4/malloc.m4: Likewise.
88586         * m4/putenv.m4: Likewise.
88587         * m4/realloc.m4: Likewise.
88588         * m4/regex.m4: Likewise.
88589         * m4/stat.m4: Likewise.
88590         * m4/strftime.m4: Likewise.
88591         Suggestion from Alain Magloire.
88592
88593         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88594         * m4/fnmatch.m4: Likewise.
88595         * m4/getgroups.m4: Likewise.
88596         * m4/getline.m4: Likewise.
88597         * m4/lstat.m4: Likewise.
88598         * m4/malloc.m4: Likewise.
88599         * m4/memcmp.m4: Likewise.
88600         * m4/putenv.m4: Likewise.
88601         * m4/realloc.m4: Likewise.
88602         * m4/regex.m4: Likewise.
88603         * m4/stat.m4: Likewise.
88604         * m4/strftime.m4: Likewise.
88605         Suggestion from Alain Magloire.
88606
88607         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88608         an argument.
88609
88610         * m4/regex.m4: Add a run-time Test for proper operation of
88611         re_compile_pattern.
88612
88613 1999-01-31  Jim Meyering  <meyering@ascend.com>
88614
88615         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88616
88617 1999-01-30  Jim Meyering  <meyering@ascend.com>
88618
88619         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88620
88621         * m4/jm-mktime.m4: Make this a wrapper around the official
88622         AM_FUNC_MKTIME rather than my private copy, now that the official one
88623         is up to date.
88624         * m4/mktime.m4: Remove file.
88625
88626         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88627         * m4/uptime.m4: Likewise.
88628         * m4/uintmax_t.m4: Likewise.
88629
88630 1999-01-28  Jim Meyering  <meyering@ascend.com>
88631
88632         * m4/jm-macros.m4: Use jm_AFS.
88633         * m4/afs.m4: New file (from fileutils' configure.in).
88634
88635         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88636         * m4/chown.m4: Likewise.
88637         * m4/d-ino.m4: Likewise.
88638         * m4/d-type.m4: Likewise.
88639         * m4/fnmatch.m4: Likewise.
88640         * m4/getgroups.m4: Likewise.
88641         * m4/gettext.m4: Likewise.
88642         * m4/jm-mktime.m4: Likewise.
88643         * m4/jm-winsz2.m4: Likewise.
88644         * m4/lcmessage.m4: Likewise.
88645         * m4/ls-mntd-fs.m4: Likewise.
88646         * m4/malloc.m4: Likewise.
88647         * m4/memcmp.m4: Likewise.
88648         * m4/putenv.m4: Likewise.
88649         * m4/realloc.m4: Likewise.
88650         * m4/st_mtim.m4: Likewise.
88651         * m4/strftime.m4: Likewise.
88652
88653 1999-01-16  Jim Meyering  <meyering@ascend.com>
88654
88655         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88656         (ARGMATCH_DIE_DECL): Define.
88657
88658 1999-01-12  Jim Meyering  <meyering@ascend.com>
88659
88660         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88661         Reported by Lars Hecking.
88662
88663 1999-01-10  Jim Meyering  <meyering@ascend.com>
88664
88665         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88666         gross kludge.
88667         * m4/inttypes_h.m4: Likewise.
88668         * m4/lstat.m4: Likewise.
88669         * m4/malloc.m4: Likewise.
88670         * m4/readdir.m4: Likewise.
88671         * m4/realloc.m4: Likewise.
88672         * m4/st_dm_mode.m4: Likewise.
88673         * m4/stat.m4: Likewise.
88674         * m4/utimbuf.m4: Likewise.
88675         * m4/utimes.m4: Likewise.
88676
88677         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88678         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88679         comments in config.h.in are meaningful.
88680
88681         * m4/jm-macros.m4: Require autoconf-2.13 here.
88682
88683         * m4/regex.m4: By default, don't use the included regex.c on systems
88684         with glibc 2.  Suggestion from Uli Drepper.
88685
88686 1999-01-02  Jim Meyering  <meyering@ascend.com>
88687
88688         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88689
88690 1998-12-18  Jim Meyering  <meyering@ascend.com>
88691
88692         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88693         Based on a suggestion from Lars Hecking.
88694
88695 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88696
88697         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88698
88699 1998-11-16  Jim Meyering  <meyering@ascend.com>
88700
88701         * m4/lfs.m4: Double-quote the `uname...` expression.
88702
88703 1998-11-14  Jim Meyering  <meyering@ascend.com>
88704
88705         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88706         * m4/stat.m4: Likewise.
88707
88708 1998-11-03  Jim Meyering  <meyering@ascend.com>
88709
88710         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88711         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88712
88713 1998-10-18  Jim Meyering  <meyering@ascend.com>
88714
88715         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88716
88717 1998-10-17  Jim Meyering  <meyering@ascend.com>
88718
88719         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88720         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88721         calls for those previously hard-coded headers.  Instead, take a new
88722         parameter.
88723         (jm_CHECK_DECLARATIONS): Reflect interface change.
88724         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88725         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88726
88727         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88728
88729 1998-10-14  Jim Meyering  <meyering@ascend.com>
88730
88731         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88732         instead of "TZ=America/Vancouver".  From Paul Eggert.
88733
88734 1998-10-11  Jim Meyering  <meyering@ascend.com>
88735
88736         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88737         This adds a test for a recently added compatibility fix for mktime.c.
88738         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88739
88740 1998-09-27  Jim Meyering  <meyering@ascend.com>
88741
88742         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88743
88744         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88745         ../configure.in, including a change from Gordon Matzigkeit to allow
88746         cross-compiling for the Hurd.
88747
88748         * m4/glibc.m4: New file/macro to test for the GNU C Library
88749         versions 1 and 2.  From Gordon Matzigkeit.
88750         Indent.
88751
88752 1998-09-21  Jim Meyering  <meyering@ascend.com>
88753
88754         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88755
88756 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88757
88758         Port nanosecond-resolution times to UnixWare 2.1.2 and
88759         pedantic Solaris 2.6.
88760
88761         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88762         AC_STRUCT_ST_MTIM.
88763         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88764         Generate name of ns member, instead of just 1 or undef.
88765         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88766
88767 1998-08-15  Jim Meyering  <meyering@ascend.com>
88768
88769         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88770         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88771         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88772         instead of jm_TYPE_SSIZE_T.
88773
88774 1998-08-12  Jim Meyering  <meyering@ascend.com>
88775
88776         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88777
88778 1998-08-02  Jim Meyering  <meyering@ascend.com>
88779
88780         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88781         in acconfig.h manually.
88782
88783 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88784
88785         * m4/st_mtim.m4: New file.
88786
88787 1998-07-28  Jim Meyering  <meyering@ascend.com>
88788
88789         * m4/utimes.m4: Undef stat.
88790
88791 1998-07-25  Jim Meyering  <meyering@ascend.com>
88792
88793         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88794         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88795
88796 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88797
88798         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88799         uid and gid actually remain unchanged.
88800
88801 1998-07-07  Jim Meyering  <meyering@ascend.com>
88802
88803         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88804
88805 1998-07-04  Jim Meyering  <meyering@ascend.com>
88806
88807         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88808         to prove that this macro can be used in packages without regex.c.
88809
88810 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88811
88812         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88813         is to be used.
88814
88815 1998-07-03  Jim Meyering  <meyering@ascend.com>
88816
88817         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88818
88819         * m4/gettext.m4: New file -- from gettext-0.10.35.
88820         * m4/lcmessage.m4: Likewise.
88821         * m4/progtest.m4: Likewise.
88822
88823         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88824         * m4/jm-macros.m4: Require the new macro.
88825
88826 1998-06-29  Jim Meyering  <meyering@ascend.com>
88827
88828         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88829         for the definition of NGROUPS (used in a system header included
88830         by sys/mount.h).
88831
88832 1998-06-28  Jim Meyering  <meyering@ascend.com>
88833
88834         * m4/ls-mntd-fs.m4: New file.
88835         * m4/fstypename.m4: New file.
88836
88837         * m4/jm-macros.m4: Require the new macro.
88838         * m4/jm-glibc-io.m4: New file.
88839
88840 1998-05-19  Jim Meyering  <meyering@ascend.com>
88841
88842         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88843         * m4/lchown.m4: New file.
88844
88845         * m4/Makefile.am.in: New file.
88846         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88847
88848 1998-05-14  Jim Meyering  <meyering@ascend.com>
88849
88850         * m4/Makefile.am (EXTRA_DIST): Add them.
88851         * m4/jm-macros.m4: New file.
88852         * m4/utimbuf.m4: New file.
88853
88854 1998-05-12  Jim Meyering  <meyering@ascend.com>
88855
88856         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88857
88858 1998-05-11  Jim Meyering  <meyering@ascend.com>
88859
88860         * m4/isc-posix.m4: New file.
88861
88862 1998-05-10  Jim Meyering  <meyering@ascend.com>
88863
88864         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88865
88866 1998-05-09  Jim Meyering  <meyering@ascend.com>
88867
88868         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88869         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88870         with automake.
88871
88872         * m4/ssize_t.m4: New file.
88873         * m4/mktime.m4: Remove file -- the new automake has this now.
88874
88875 1998-04-26  Jim Meyering  <meyering@ascend.com>
88876
88877         * m4/assert.m4: New file.
88878         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88879
88880 1998-04-05  Jim Meyering  <meyering@ascend.com>
88881
88882         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88883         (jm_PREREQ): Use it here.
88884
88885 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88886
88887         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88888         in acconfig.h.
88889
88890 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88891
88892         * m4/prereq.m4: New file.
88893         * m4/error.m4: New file.
88894         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88895
88896 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88897
88898         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88899         cache-check for the same variable -- that defeated the purpose of
88900         the test; the test program was never run.  This was a problem only
88901         on systems with losing getline functions -- HP-UX 10.20 is one.
88902         Reported by Bjorn Helgaas.
88903
88904 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88905
88906         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88907
88908 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88909
88910         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88911
88912         * m4/const.m4: New file.  Use an initializer in this declaration
88913         typedef int charset[2]; const charset x;
88914         Reported by Bob Glickstein.
88915
88916 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88917
88918         * m4/chown.m4: Fix reversed types on -1 args to chown.
88919         From Kaveh Ghazi.
88920
88921 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88922
88923         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88924         Add lseek and memchr.
88925
88926         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88927         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88928         have a 20-character limit on names.
88929
88930 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88931
88932         * m4/inttypes_h.m4: New file.
88933         * m4/uintmax_t.m4: New file.
88934         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88935
88936
88937         -----
88938
88939         Local Variables:
88940         coding: utf-8
88941         End:
88942
88943         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88944
88945         Copying and distribution of this file, with or without
88946         modification, are permitted provided the copyright notice
88947         and this notice are preserved.